@zoom/cobrowsesdk 2.7.0
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/CHANGELOG.md +1 -0
- package/LICENSE.md +1 -0
- package/README.md +143 -0
- package/esm/agent.js +1 -0
- package/esm/base.js +1 -0
- package/esm/customer.js +1 -0
- package/esm/sdk-channel.js +1 -0
- package/esm/sdk-client-agent.js +1 -0
- package/esm/sdk-client.js +1 -0
- package/esm/sdk-controller.js +1 -0
- package/esm/sdk-core-css.js +1 -0
- package/esm/sdk-core.js +1 -0
- package/esm/sdk-portal-agent-css.js +1 -0
- package/esm/sdk-portal-agent.js +1 -0
- package/esm/sdk-portal-customer-css.js +1 -0
- package/esm/sdk-portal-customer.js +1 -0
- package/oss_attribution.txt +5929 -0
- package/package.json +45 -0
- package/types/agent-umd.d.ts +1029 -0
- package/types/agent.d.ts +1023 -0
- package/types/customer-umd.d.ts +1031 -0
- package/types/customer.d.ts +1025 -0
- package/umd/agent.js +1 -0
- package/umd/customer.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e='(function(){"use strict";function M4(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var qa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var xv={exports:{}},au={},wv={exports:{}},_e={};/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var Qa=Symbol.for("react.element"),D4=Symbol.for("react.portal"),L4=Symbol.for("react.fragment"),F4=Symbol.for("react.strict_mode"),$4=Symbol.for("react.profiler"),B4=Symbol.for("react.provider"),U4=Symbol.for("react.context"),z4=Symbol.for("react.forward_ref"),j4=Symbol.for("react.suspense"),W4=Symbol.for("react.memo"),V4=Symbol.for("react.lazy"),Tv=Symbol.iterator;function H4(e){return e===null||typeof e!="object"?null:(e=Tv&&e[Tv]||e["@@iterator"],typeof e=="function"?e:null)}var _v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Iv=Object.assign,Ov={};function As(e,t,n){this.props=e,this.context=t,this.refs=Ov,this.updater=n||_v}As.prototype.isReactComponent={},As.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},As.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Av(){}Av.prototype=As.prototype;function Vp(e,t,n){this.props=e,this.context=t,this.refs=Ov,this.updater=n||_v}var Hp=Vp.prototype=new Av;Hp.constructor=Vp,Iv(Hp,As.prototype),Hp.isPureReactComponent=!0;var Rv=Array.isArray,Pv=Object.prototype.hasOwnProperty,Gp={current:null},Nv={key:!0,ref:!0,__self:!0,__source:!0};function kv(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Pv.call(t,r)&&!Nv.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Qa,type:e,key:i,ref:s,props:o,_owner:Gp.current}}function G4(e,t){return{$$typeof:Qa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Yp(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qa}function Y4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Mv=/\\/+/g;function Kp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Y4(""+e.key):t.toString(36)}function lu(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Qa:case D4:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Kp(s,0):r,Rv(o)?(n="",e!=null&&(n=e.replace(Mv,"$&/")+"/"),lu(o,t,n,"",function(c){return c})):o!=null&&(Yp(o)&&(o=G4(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Mv,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Rv(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Kp(i,a);s+=lu(i,t,n,l,o)}else if(l=H4(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Kp(i,a++),s+=lu(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function cu(e,t,n){if(e==null)return e;var r=[],o=0;return lu(e,r,"","",function(i){return t.call(n,i,o++)}),r}function K4(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var cn={current:null},uu={transition:null},Z4={ReactCurrentDispatcher:cn,ReactCurrentBatchConfig:uu,ReactCurrentOwner:Gp};_e.Children={map:cu,forEach:function(e,t,n){cu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return cu(e,function(){t++}),t},toArray:function(e){return cu(e,function(t){return t})||[]},only:function(e){if(!Yp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},_e.Component=As,_e.Fragment=L4,_e.Profiler=$4,_e.PureComponent=Vp,_e.StrictMode=F4,_e.Suspense=j4,_e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z4,_e.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Iv({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Gp.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Pv.call(t,l)&&!Nv.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Qa,type:e.type,key:o,ref:i,props:r,_owner:s}},_e.createContext=function(e){return e={$$typeof:U4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:B4,_context:e},e.Consumer=e},_e.createElement=kv,_e.createFactory=function(e){var t=kv.bind(null,e);return t.type=e,t},_e.createRef=function(){return{current:null}},_e.forwardRef=function(e){return{$$typeof:z4,render:e}},_e.isValidElement=Yp,_e.lazy=function(e){return{$$typeof:V4,_payload:{_status:-1,_result:e},_init:K4}},_e.memo=function(e,t){return{$$typeof:W4,type:e,compare:t===void 0?null:t}},_e.startTransition=function(e){var t=uu.transition;uu.transition={};try{e()}finally{uu.transition=t}},_e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},_e.useCallback=function(e,t){return cn.current.useCallback(e,t)},_e.useContext=function(e){return cn.current.useContext(e)},_e.useDebugValue=function(){},_e.useDeferredValue=function(e){return cn.current.useDeferredValue(e)},_e.useEffect=function(e,t){return cn.current.useEffect(e,t)},_e.useId=function(){return cn.current.useId()},_e.useImperativeHandle=function(e,t,n){return cn.current.useImperativeHandle(e,t,n)},_e.useInsertionEffect=function(e,t){return cn.current.useInsertionEffect(e,t)},_e.useLayoutEffect=function(e,t){return cn.current.useLayoutEffect(e,t)},_e.useMemo=function(e,t){return cn.current.useMemo(e,t)},_e.useReducer=function(e,t,n){return cn.current.useReducer(e,t,n)},_e.useRef=function(e){return cn.current.useRef(e)},_e.useState=function(e){return cn.current.useState(e)},_e.useSyncExternalStore=function(e,t,n){return cn.current.useSyncExternalStore(e,t,n)},_e.useTransition=function(){return cn.current.useTransition()},_e.version="18.2.0",wv.exports=_e;var p=wv.exports;const U=Xo(p),Rs=M4({__proto__:null,default:U},[p]);/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var J4=p,X4=Symbol.for("react.element"),q4=Symbol.for("react.fragment"),Q4=Object.prototype.hasOwnProperty,eT=J4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tT={key:!0,ref:!0,__self:!0,__source:!0};function Dv(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Q4.call(t,r)&&!tT.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:X4,type:e,key:i,ref:s,props:o,_owner:eT.current}}au.Fragment=q4,au.jsx=Dv,au.jsxs=Dv,xv.exports=au;var Zp=xv.exports;const nT=Zp.Fragment,le=Zp.jsx,Co=Zp.jsxs;var rT=!1;function oT(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function iT(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sT=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!rT:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(iT(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=oT(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Jt="-ms-",du="-moz-",De="-webkit-",Lv="comm",Jp="rule",Xp="decl",aT="@import",Fv="@keyframes",lT="@layer",cT=Math.abs,fu=String.fromCharCode,uT=Object.assign;function dT(e,t){return zt(e,0)^45?(((t<<2^zt(e,0))<<2^zt(e,1))<<2^zt(e,2))<<2^zt(e,3):0}function $v(e){return e.trim()}function fT(e,t){return(e=t.exec(e))?e[0]:e}function Le(e,t,n){return e.replace(t,n)}function qp(e,t){return e.indexOf(t)}function zt(e,t){return e.charCodeAt(t)|0}function el(e,t,n){return e.slice(t,n)}function Gr(e){return e.length}function Qp(e){return e.length}function pu(e,t){return t.push(e),e}function pT(e,t){return e.map(t).join("")}var gu=1,Ps=1,Bv=0,wn=0,At=0,Ns="";function hu(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:gu,column:Ps,length:s,return:""}}function tl(e,t){return uT(hu("",null,null,"",null,null,0),e,{length:-e.length},t)}function gT(){return At}function hT(){return At=wn>0?zt(Ns,--wn):0,Ps--,At===10&&(Ps=1,gu--),At}function $n(){return At=wn<Bv?zt(Ns,wn++):0,Ps++,At===10&&(Ps=1,gu++),At}function Yr(){return zt(Ns,wn)}function mu(){return wn}function nl(e,t){return el(Ns,e,t)}function rl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Uv(e){return gu=Ps=1,Bv=Gr(Ns=e),wn=0,[]}function zv(e){return Ns="",e}function vu(e){return $v(nl(wn-1,eg(e===91?e+2:e===40?e+1:e)))}function mT(e){for(;(At=Yr())&&At<33;)$n();return rl(e)>2||rl(At)>3?"":" "}function vT(e,t){for(;--t&&$n()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return nl(e,mu()+(t<6&&Yr()==32&&$n()==32))}function eg(e){for(;$n();)switch(At){case e:return wn;case 34:case 39:e!==34&&e!==39&&eg(At);break;case 40:e===41&&eg(e);break;case 92:$n();break}return wn}function yT(e,t){for(;$n()&&e+At!==47+10;)if(e+At===42+42&&Yr()===47)break;return"/*"+nl(t,wn-1)+"*"+fu(e===47?e:$n())}function CT(e){for(;!rl(Yr());)$n();return nl(e,wn)}function ST(e){return zv(yu("",null,null,null,[""],e=Uv(e),0,[0],e))}function yu(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,f=s,d=0,h=0,g=0,m=1,b=1,y=1,v=0,C="",S=o,w=i,_=r,E=C;b;)switch(g=v,v=$n()){case 40:if(g!=108&&zt(E,f-1)==58){qp(E+=Le(vu(v),"&","&\\f"),"&\\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=vu(v);break;case 9:case 10:case 13:case 32:E+=mT(g);break;case 92:E+=vT(mu()-1,7);continue;case 47:switch(Yr()){case 42:case 47:pu(bT(yT($n(),mu()),t,n),l);break;default:E+="/"}break;case 123*m:a[c++]=Gr(E)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+u:y==-1&&(E=Le(E,/\\f/g,"")),h>0&&Gr(E)-f&&pu(h>32?Wv(E+";",r,n,f-1):Wv(Le(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(pu(_=jv(E,t,n,c,u,o,a,C,S=[],w=[],f),i),v===123)if(u===0)yu(E,t,_,_,S,i,f,a,w);else switch(d===99&&zt(E,3)===110?100:d){case 100:case 108:case 109:case 115:yu(e,_,_,r&&pu(jv(e,_,_,0,0,o,a,C,o,S=[],f),w),o,w,f,a,r?S:w);break;default:yu(E,_,_,_,[""],w,0,a,w)}}c=u=h=0,m=y=1,C=E="",f=s;break;case 58:f=1+Gr(E),h=g;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&hT()==125)continue}switch(E+=fu(v),v*m){case 38:y=u>0?1:(E+="\\f",-1);break;case 44:a[c++]=(Gr(E)-1)*y,y=1;break;case 64:Yr()===45&&(E+=vu($n())),d=Yr(),u=f=Gr(C=E+=CT(mu())),v++;break;case 45:g===45&&Gr(E)==2&&(m=0)}}return i}function jv(e,t,n,r,o,i,s,a,l,c,u){for(var f=o-1,d=o===0?i:[""],h=Qp(d),g=0,m=0,b=0;g<r;++g)for(var y=0,v=el(e,f+1,f=cT(m=s[g])),C=e;y<h;++y)(C=$v(m>0?d[y]+" "+v:Le(v,/&\\f/g,d[y])))&&(l[b++]=C);return hu(e,t,n,o===0?Jp:a,l,c,u)}function bT(e,t,n){return hu(e,t,n,Lv,fu(gT()),el(e,2,-2),0)}function Wv(e,t,n,r){return hu(e,t,n,Xp,el(e,0,r),el(e,r+1,-1),r)}function ks(e,t){for(var n="",r=Qp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ET(e,t,n,r){switch(e.type){case lT:if(e.children.length)break;case aT:case Xp:return e.return=e.return||e.value;case Lv:return"";case Fv:return e.return=e.value+"{"+ks(e.children,r)+"}";case Jp:e.value=e.props.join(",")}return Gr(n=ks(e.children,r))?e.return=e.value+"{"+n+"}":""}function xT(e){var t=Qp(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function wT(e){return function(t){t.root||(t=t.return)&&e(t)}}var TT=function(t,n,r){for(var o=0,i=0;o=i,i=Yr(),o===38&&i===12&&(n[r]=1),!rl(i);)$n();return nl(t,wn)},_T=function(t,n){var r=-1,o=44;do switch(rl(o)){case 0:o===38&&Yr()===12&&(n[r]=1),t[r]+=TT(wn-1,n,r);break;case 2:t[r]+=vu(o);break;case 4:if(o===44){t[++r]=Yr()===58?"&\\f":"",n[r]=t[r].length;break}default:t[r]+=fu(o)}while(o=$n());return t},IT=function(t,n){return zv(_T(Uv(t),n))},Vv=new WeakMap,OT=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Vv.get(r))&&!o){Vv.set(t,!0);for(var i=[],s=IT(n,i),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\\f/g,a[u]):a[u]+" "+s[l]}}},AT=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Hv(e,t){switch(dT(e,t)){case 5103:return De+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return De+e+du+e+Jt+e+e;case 6828:case 4268:return De+e+Jt+e+e;case 6165:return De+e+Jt+"flex-"+e+e;case 5187:return De+e+Le(e,/(\\w+).+(:[^]+)/,De+"box-$1$2"+Jt+"flex-$1$2")+e;case 5443:return De+e+Jt+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return De+e+Jt+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+Jt+Le(e,"shrink","negative")+e;case 5292:return De+e+Jt+Le(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Le(e,"-grow","")+De+e+Jt+Le(e,"grow","positive")+e;case 4554:return De+Le(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\\([^]*)/,De+"$1$`$1");case 4968:return Le(Le(e,/(.+:)(flex-)?(.*)/,De+"box-pack:$3"+Jt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+De+e+e;case 4095:case 3583:case 4068:case 2532:return Le(e,/(.+)-inline(.+)/,De+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Gr(e)-1-t>6)switch(zt(e,t+1)){case 109:if(zt(e,t+4)!==45)break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+du+(zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qp(e,"stretch")?Hv(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zt(e,t+1)!==115)break;case 6444:switch(zt(e,Gr(e)-3-(~qp(e,"!important")&&10))){case 107:return Le(e,":",":"+De)+e;case 101:return Le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+De+(zt(e,14)===45?"inline-":"")+"box$3$1"+De+"$2$3$1"+Jt+"$2box$3")+e}break;case 5936:switch(zt(e,t+11)){case 114:return De+e+Jt+Le(e,/[svh]\\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+Jt+Le(e,/[svh]\\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+Jt+Le(e,/[svh]\\w+-[tblr]{2}/,"lr")+e}return De+e+Jt+e+e}return e}var RT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Xp:t.return=Hv(t.value,t.length);break;case Fv:return ks([tl(t,{value:Le(t.value,"@","@"+De)})],o);case Jp:if(t.length)return pT(t.props,function(i){switch(fT(i,/(::plac\\w+|:read-\\w+)/)){case":read-only":case":read-write":return ks([tl(t,{props:[Le(i,/:(read-\\w+)/,":"+du+"$1")]})],o);case"::placeholder":return ks([tl(t,{props:[Le(i,/:(plac\\w+)/,":"+De+"input-$1")]}),tl(t,{props:[Le(i,/:(plac\\w+)/,":"+du+"$1")]}),tl(t,{props:[Le(i,/:(plac\\w+)/,Jt+"input-$1")]})],o)}return""})}},PT=[RT],tg=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||PT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(\'style[data-emotion^="\'+n+\' "]\'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;a.push(m)});var l,c=[OT,AT];{var u,f=[ET,wT(function(m){u.insert(m)})],d=xT(c.concat(o,f)),h=function(b){return ks(ST(b),d)};l=function(b,y,v,C){u=v,h(b?b+"{"+y.styles+"}":y.styles),C&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new sT({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(a),g};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(null,arguments)}const NT=Object.freeze(Object.defineProperty({__proto__:null,get default(){return W}},Symbol.toStringTag,{value:"Module"}));var Gv={exports:{}},je={};/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var Lt=typeof Symbol=="function"&&Symbol.for,ng=Lt?Symbol.for("react.element"):60103,rg=Lt?Symbol.for("react.portal"):60106,Cu=Lt?Symbol.for("react.fragment"):60107,Su=Lt?Symbol.for("react.strict_mode"):60108,bu=Lt?Symbol.for("react.profiler"):60114,Eu=Lt?Symbol.for("react.provider"):60109,xu=Lt?Symbol.for("react.context"):60110,og=Lt?Symbol.for("react.async_mode"):60111,wu=Lt?Symbol.for("react.concurrent_mode"):60111,Tu=Lt?Symbol.for("react.forward_ref"):60112,_u=Lt?Symbol.for("react.suspense"):60113,kT=Lt?Symbol.for("react.suspense_list"):60120,Iu=Lt?Symbol.for("react.memo"):60115,Ou=Lt?Symbol.for("react.lazy"):60116,MT=Lt?Symbol.for("react.block"):60121,DT=Lt?Symbol.for("react.fundamental"):60117,LT=Lt?Symbol.for("react.responder"):60118,FT=Lt?Symbol.for("react.scope"):60119;function Bn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ng:switch(e=e.type,e){case og:case wu:case Cu:case bu:case Su:case _u:return e;default:switch(e=e&&e.$$typeof,e){case xu:case Tu:case Ou:case Iu:case Eu:return e;default:return t}}case rg:return t}}}function Yv(e){return Bn(e)===wu}je.AsyncMode=og,je.ConcurrentMode=wu,je.ContextConsumer=xu,je.ContextProvider=Eu,je.Element=ng,je.ForwardRef=Tu,je.Fragment=Cu,je.Lazy=Ou,je.Memo=Iu,je.Portal=rg,je.Profiler=bu,je.StrictMode=Su,je.Suspense=_u,je.isAsyncMode=function(e){return Yv(e)||Bn(e)===og},je.isConcurrentMode=Yv,je.isContextConsumer=function(e){return Bn(e)===xu},je.isContextProvider=function(e){return Bn(e)===Eu},je.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ng},je.isForwardRef=function(e){return Bn(e)===Tu},je.isFragment=function(e){return Bn(e)===Cu},je.isLazy=function(e){return Bn(e)===Ou},je.isMemo=function(e){return Bn(e)===Iu},je.isPortal=function(e){return Bn(e)===rg},je.isProfiler=function(e){return Bn(e)===bu},je.isStrictMode=function(e){return Bn(e)===Su},je.isSuspense=function(e){return Bn(e)===_u},je.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Cu||e===wu||e===bu||e===Su||e===_u||e===kT||typeof e=="object"&&e!==null&&(e.$$typeof===Ou||e.$$typeof===Iu||e.$$typeof===Eu||e.$$typeof===xu||e.$$typeof===Tu||e.$$typeof===DT||e.$$typeof===LT||e.$$typeof===FT||e.$$typeof===MT)},je.typeOf=Bn,Gv.exports=je;var $T=Gv.exports,Kv=$T,BT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zv={};Zv[Kv.ForwardRef]=BT,Zv[Kv.Memo]=UT;var zT=!0;function Jv(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ig=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||zT===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},sg=function(t,n,r){ig(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function jT(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var WT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Xv(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var VT=/[A-Z]|^ms/g,HT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qv=function(t){return t.charCodeAt(1)===45},Qv=function(t){return t!=null&&typeof t!="boolean"},ag=Xv(function(e){return qv(e)?e:e.replace(VT,"-$&").toLowerCase()}),ey=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(HT,function(r,o,i){return Kr={name:o,styles:i,next:Kr},o})}return WT[t]!==1&&!qv(t)&&typeof n=="number"&&n!==0?n+"px":n},kH="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ol(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Kr={name:n.name,styles:n.styles,next:Kr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Kr={name:r.name,styles:r.styles,next:Kr},r=r.next;var o=n.styles+";";return o}return GT(e,t,n)}case"function":{if(e!==void 0){var i=Kr,s=n(e);return Kr=i,ol(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function GT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ol(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":Qv(s)&&(r+=ag(i)+":"+ey(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)Qv(s[a])&&(r+=ag(i)+":"+ey(i,s[a])+";");else{var l=ol(e,t,s);switch(i){case"animation":case"animationName":{r+=ag(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var ty=/label:\\s*([^\\s;\\n{]+)\\s*(;|$)/g,Kr,Au=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Kr=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=ol(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=ol(r,n,t[a]),o&&(i+=s[a]);ty.lastIndex=0;for(var l="",c;(c=ty.exec(i))!==null;)l+="-"+c[1];var u=jT(i)+l;return{name:u,styles:i,next:Kr}},YT=function(t){return t()},ny=Rs["useInsertionEffect"]?Rs["useInsertionEffect"]:!1,ry=ny||YT,oy=ny||p.useLayoutEffect,Ru={}.hasOwnProperty,iy=p.createContext(typeof HTMLElement<"u"?tg({key:"css"}):null),sy=iy.Provider,lg=function(t){return p.forwardRef(function(n,r){var o=p.useContext(iy);return t(n,o,r)})},Ms=p.createContext({}),cg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ay=function(t,n){var r={};for(var o in n)Ru.call(n,o)&&(r[o]=n[o]);return r[cg]=t,r},KT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ig(n,r,o),ry(function(){return sg(n,r,o)}),null},ZT=lg(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[cg],i=[r],s="";typeof e.className=="string"?s=Jv(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=Au(i,void 0,p.useContext(Ms));s+=t.key+"-"+a.name;var l={};for(var c in e)Ru.call(e,c)&&c!=="css"&&c!==cg&&(l[c]=e[c]);return l.ref=n,l.className=s,p.createElement(p.Fragment,null,p.createElement(KT,{cache:t,serialized:a,isStringTag:typeof o=="string"}),p.createElement(o,l))}),ly=ZT,sr=nT;function x(e,t,n){return Ru.call(t,"css")?le(ly,ay(e,t),n):le(e,t,n)}function q(e,t,n){return Ru.call(t,"css")?Co(ly,ay(e,t),n):Co(e,t,n)}function Se(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var cy={exports:{}},JT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",XT=JT,qT=XT;function uy(){}function dy(){}dy.resetWarningCache=uy;var QT=function(){function e(r,o,i,s,a,l){if(l!==qT){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:dy,resetWarningCache:uy};return n.PropTypes=n,n};cy.exports=QT();var fy=cy.exports;function il(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const e_=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),Ds="$$material";var t_=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,n_=Xv(function(e){return t_.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),r_=lg(function(e,t){var n=e.styles,r=Au([n],void 0,p.useContext(Ms)),o=p.useRef();return oy(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector(\'style[data-emotion="\'+i+" "+r.name+\'"]\');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",i),s.hydrate([l])),o.current=[s,a],function(){s.flush()}},[t]),oy(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&sg(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Au(t)}var sl=function(){var t=ee.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},o_=n_,i_=function(t){return t!=="theme"},py=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?o_:i_},gy=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},s_=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ig(n,r,o),ry(function(){return sg(n,r,o)}),null},Ls=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=gy(t,n,r),l=a||py(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var d=u.length,h=1;h<d;h++)f.push(u[h],u[0][h])}var g=lg(function(m,b,y){var v=c&&m.as||o,C="",S=[],w=m;if(m.theme==null){w={};for(var _ in m)w[_]=m[_];w.theme=p.useContext(Ms)}typeof m.className=="string"?C=Jv(b.registered,S,m.className):m.className!=null&&(C=m.className+" ");var E=Au(f.concat(S),b.registered,w);C+=b.key+"-"+E.name,s!==void 0&&(C+=" "+s);var M=c&&a===void 0?py(v):l,$={};for(var D in m)c&&D==="as"||M(D)&&($[D]=m[D]);return $.className=C,$.ref=y,p.createElement(p.Fragment,null,p.createElement(s_,{cache:b,serialized:E,isStringTag:typeof v=="string"}),p.createElement(v,$))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=f,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return"."+s}}),g.withComponent=function(m,b){return e(m,W({},n,b,{shouldForwardProp:gy(g,b,!0)})).apply(void 0,f)},g}},a_=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ug=Ls.bind();a_.forEach(function(e){ug[e]=ug(e)});let dg;typeof document=="object"&&(dg=tg({key:"css",prepend:!0}));function l_(e){const{injectFirst:t,children:n}=e;return t&&dg?le(sy,{value:dg,children:n}):n}function c_(e){return e==null||Object.keys(e).length===0}function u_(e){const{styles:t,defaultTheme:n={}}=e;return le(r_,{styles:typeof t=="function"?o=>t(c_(o)?n:o):t})}/**\n * @mui/styled-engine v5.15.14\n *\n * @license MIT\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */function hy(e,t){return ug(e,t)}const d_=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:u_,StyledEngineProvider:l_,ThemeContext:Ms,css:ee,default:hy,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:sl},Symbol.toStringTag,{value:"Module"}));function qo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function my(e){if(!qo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=my(e[n])}),t}function Zr(e,t,n={clone:!0}){const r=n.clone?W({},e):e;return qo(e)&&qo(t)&&Object.keys(t).forEach(o=>{qo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&qo(e[o])?r[o]=Zr(e[o],t[o],n):n.clone?r[o]=qo(t[o])?my(t[o]):t[o]:r[o]=t[o]}),r}const f_=Object.freeze(Object.defineProperty({__proto__:null,default:Zr,isPlainObject:qo},Symbol.toStringTag,{value:"Module"})),p_=["values","unit","step"],g_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>W({},n,{[r.key]:r.val}),{})};function vy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Se(e,p_),i=g_(t),s=Object.keys(i);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function c(d,h){const g=s.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:h)-r/100}${n})`}function u(d){return s.indexOf(d)+1<s.length?c(d,s[s.indexOf(d)+1]):a(d)}function f(d){const h=s.indexOf(d);return h===0?a(s[1]):h===s.length-1?l(s[h]):c(d,s[s.indexOf(d)+1]).replace("@media","@media not all and")}return W({keys:s,values:i,up:a,down:l,between:c,only:u,not:f,unit:n},o)}const h_={borderRadius:4};function al(e,t){return t?Zr(e,t,{clone:!1}):e}const fg={xs:0,sm:600,md:900,lg:1200,xl:1536},yy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fg[e]}px)`};function So(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||yy;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||yy;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||fg).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function m_(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function v_(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function $e(e){if(typeof e!="string")throw new Error(il(7));return e.charAt(0).toUpperCase()+e.slice(1)}const y_=Object.freeze(Object.defineProperty({__proto__:null,default:$e},Symbol.toStringTag,{value:"Module"}));function Pu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Nu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Pu(e,n)||r,t&&(o=t(o,r,e)),o}function Tt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Pu(l,r)||{};return So(s,a,f=>{let d=Nu(c,o,f);return f===d&&typeof f=="string"&&(d=Nu(c,o,`${t}${f==="default"?"":$e(f)}`,f)),n===!1?d:{[n]:d}})};return i.propTypes={},i.filterProps=[t],i}function C_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const S_={m:"margin",p:"padding"},b_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Cy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},E_=C_(e=>{if(e.length>2)if(Cy[e])e=Cy[e];else return[e];const[t,n]=e.split(""),r=S_[t],o=b_[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),pg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...pg,...gg];function ll(e,t,n,r){var o;const i=(o=Pu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Sy(e){return ll(e,"spacing",8)}function cl(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function x_(e,t){return n=>e.reduce((r,o)=>(r[o]=cl(t,n),r),{})}function w_(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=E_(n),i=x_(o,r),s=e[n];return So(e,s,i)}function by(e,t){const n=Sy(e.theme);return Object.keys(e).map(r=>w_(e,t,r,n)).reduce(al,{})}function ft(e){return by(e,pg)}ft.propTypes={},ft.filterProps=pg;function pt(e){return by(e,gg)}pt.propTypes={},pt.filterProps=gg;function T_(e=8){if(e.mui)return e;const t=Sy({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function ku(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?al(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ar(e){return typeof e!="number"?e:`${e}px solid`}function lr(e,t){return Tt({prop:e,themeKey:"borders",transform:t})}const __=lr("border",ar),I_=lr("borderTop",ar),O_=lr("borderRight",ar),A_=lr("borderBottom",ar),R_=lr("borderLeft",ar),P_=lr("borderColor"),N_=lr("borderTopColor"),k_=lr("borderRightColor"),M_=lr("borderBottomColor"),D_=lr("borderLeftColor"),L_=lr("outline",ar),F_=lr("outlineColor"),Mu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ll(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:cl(t,r)});return So(e,e.borderRadius,n)}return null};Mu.propTypes={},Mu.filterProps=["borderRadius"],ku(__,I_,O_,A_,R_,P_,N_,k_,M_,D_,Mu,L_,F_);const Du=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ll(e.theme,"spacing",8),n=r=>({gap:cl(t,r)});return So(e,e.gap,n)}return null};Du.propTypes={},Du.filterProps=["gap"];const Lu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ll(e.theme,"spacing",8),n=r=>({columnGap:cl(t,r)});return So(e,e.columnGap,n)}return null};Lu.propTypes={},Lu.filterProps=["columnGap"];const Fu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ll(e.theme,"spacing",8),n=r=>({rowGap:cl(t,r)});return So(e,e.rowGap,n)}return null};Fu.propTypes={},Fu.filterProps=["rowGap"];const $_=Tt({prop:"gridColumn"}),B_=Tt({prop:"gridRow"}),U_=Tt({prop:"gridAutoFlow"}),z_=Tt({prop:"gridAutoColumns"}),j_=Tt({prop:"gridAutoRows"}),W_=Tt({prop:"gridTemplateColumns"}),V_=Tt({prop:"gridTemplateRows"}),H_=Tt({prop:"gridTemplateAreas"}),G_=Tt({prop:"gridArea"});ku(Du,Lu,Fu,$_,B_,U_,z_,j_,W_,V_,H_,G_);function Fs(e,t){return t==="grey"?t:e}const Y_=Tt({prop:"color",themeKey:"palette",transform:Fs}),K_=Tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fs}),Z_=Tt({prop:"backgroundColor",themeKey:"palette",transform:Fs});ku(Y_,K_,Z_);function Un(e){return e<=1&&e!==0?`${e*100}%`:e}const J_=Tt({prop:"width",transform:Un}),hg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||fg[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Un(n)}};return So(e,e.maxWidth,t)}return null};hg.filterProps=["maxWidth"];const X_=Tt({prop:"minWidth",transform:Un}),q_=Tt({prop:"height",transform:Un}),Q_=Tt({prop:"maxHeight",transform:Un}),e6=Tt({prop:"minHeight",transform:Un});Tt({prop:"size",cssProperty:"width",transform:Un}),Tt({prop:"size",cssProperty:"height",transform:Un});const t6=Tt({prop:"boxSizing"});ku(J_,hg,X_,q_,Q_,e6,t6);const ul={border:{themeKey:"borders",transform:ar},borderTop:{themeKey:"borders",transform:ar},borderRight:{themeKey:"borders",transform:ar},borderBottom:{themeKey:"borders",transform:ar},borderLeft:{themeKey:"borders",transform:ar},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ar},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mu},color:{themeKey:"palette",transform:Fs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fs},backgroundColor:{themeKey:"palette",transform:Fs},p:{style:pt},pt:{style:pt},pr:{style:pt},pb:{style:pt},pl:{style:pt},px:{style:pt},py:{style:pt},padding:{style:pt},paddingTop:{style:pt},paddingRight:{style:pt},paddingBottom:{style:pt},paddingLeft:{style:pt},paddingX:{style:pt},paddingY:{style:pt},paddingInline:{style:pt},paddingInlineStart:{style:pt},paddingInlineEnd:{style:pt},paddingBlock:{style:pt},paddingBlockStart:{style:pt},paddingBlockEnd:{style:pt},m:{style:ft},mt:{style:ft},mr:{style:ft},mb:{style:ft},ml:{style:ft},mx:{style:ft},my:{style:ft},margin:{style:ft},marginTop:{style:ft},marginRight:{style:ft},marginBottom:{style:ft},marginLeft:{style:ft},marginX:{style:ft},marginY:{style:ft},marginInline:{style:ft},marginInlineStart:{style:ft},marginInlineEnd:{style:ft},marginBlock:{style:ft},marginBlockStart:{style:ft},marginBlockEnd:{style:ft},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Du},rowGap:{style:Fu},columnGap:{style:Lu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Un},maxWidth:{style:hg},minWidth:{transform:Un},height:{transform:Un},maxHeight:{transform:Un},minHeight:{transform:Un},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function n6(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function r6(e,t){return typeof e=="function"?e(t):e}function Ey(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const d=Pu(o,c)||{};return f?f(s):So(s,r,g=>{let m=Nu(d,u,g);return g===m&&typeof g=="string"&&(m=Nu(d,u,`${n}${g==="default"?"":$e(g)}`,g)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:ul;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=m_(i.breakpoints),f=Object.keys(u);let d=u;return Object.keys(c).forEach(h=>{const g=r6(c[h],i);if(g!=null)if(typeof g=="object")if(s[h])d=al(d,e(h,g,i,s));else{const m=So({theme:i},g,b=>({[h]:b}));n6(m,g)?d[h]=t({sx:g,theme:i}):d=al(d,m)}else d=al(d,e(h,g,i,s))}),v_(f,d)}return Array.isArray(o)?o.map(a):a(o)}return t}const xy=Ey();xy.filterProps=["sx"];const $u=xy;function wy(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\\[[^\\]]+\\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const o6=["breakpoints","palette","spacing","shape"];function mg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=Se(e,o6),a=vy(n),l=T_(o);let c=Zr({breakpoints:a,direction:"ltr",components:{},palette:W({mode:"light"},r),spacing:l,shape:W({},h_,i)},s);return c.applyStyles=wy,c=t.reduce((u,f)=>Zr(u,f),c),c.unstable_sxConfig=W({},ul,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return $u({sx:f,theme:this})},c}const i6=Object.freeze(Object.defineProperty({__proto__:null,default:mg,private_createBreakpoints:vy,unstable_applyStyles:wy},Symbol.toStringTag,{value:"Module"}));function s6(e){return Object.keys(e).length===0}function Ty(e=null){const t=p.useContext(Ms);return!t||s6(t)?e:t}const a6=mg();function vg(e=a6){return Ty(e)}const l6=["sx"],c6=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ul;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function yg(e){const{sx:t}=e,n=Se(e,l6),{systemProps:r,otherProps:o}=c6(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return qo(a)?W({},r,a):r}:i=W({},r,t),W({},o,{sx:i})}const u6=Object.freeze(Object.defineProperty({__proto__:null,default:$u,extendSxProp:yg,unstable_createStyleFunctionSx:Ey,unstable_defaultSxConfig:ul},Symbol.toStringTag,{value:"Module"})),_y=e=>e,Iy=(()=>{let e=_y;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_y}}})();function Oy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Oy(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function d6(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Oy(e))&&(r&&(r+=" "),r+=t);return r}const f6=["className","component"];function p6(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=hy("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})($u);return p.forwardRef(function(l,c){const u=vg(n),f=yg(l),{className:d,component:h="div"}=f,g=Se(f,f6);return le(i,W({as:h,ref:c,className:d6(d,o?o(r):r),theme:t&&u[t]||u},g))})}const Ay={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function jt(e,t,n="Mui"){const r=Ay[t];return r?`${n}-${r}`:`${Iy.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=jt(e,o,n)}),r}var Ry={exports:{}},We={};/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var Cg=Symbol.for("react.element"),Sg=Symbol.for("react.portal"),Bu=Symbol.for("react.fragment"),Uu=Symbol.for("react.strict_mode"),zu=Symbol.for("react.profiler"),ju=Symbol.for("react.provider"),Wu=Symbol.for("react.context"),g6=Symbol.for("react.server_context"),Vu=Symbol.for("react.forward_ref"),Hu=Symbol.for("react.suspense"),Gu=Symbol.for("react.suspense_list"),Yu=Symbol.for("react.memo"),Ku=Symbol.for("react.lazy"),h6=Symbol.for("react.offscreen"),Py;Py=Symbol.for("react.module.reference");function cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Cg:switch(e=e.type,e){case Bu:case zu:case Uu:case Hu:case Gu:return e;default:switch(e=e&&e.$$typeof,e){case g6:case Wu:case Vu:case Ku:case Yu:case ju:return e;default:return t}}case Sg:return t}}}We.ContextConsumer=Wu,We.ContextProvider=ju,We.Element=Cg,We.ForwardRef=Vu,We.Fragment=Bu,We.Lazy=Ku,We.Memo=Yu,We.Portal=Sg,We.Profiler=zu,We.StrictMode=Uu,We.Suspense=Hu,We.SuspenseList=Gu,We.isAsyncMode=function(){return!1},We.isConcurrentMode=function(){return!1},We.isContextConsumer=function(e){return cr(e)===Wu},We.isContextProvider=function(e){return cr(e)===ju},We.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cg},We.isForwardRef=function(e){return cr(e)===Vu},We.isFragment=function(e){return cr(e)===Bu},We.isLazy=function(e){return cr(e)===Ku},We.isMemo=function(e){return cr(e)===Yu},We.isPortal=function(e){return cr(e)===Sg},We.isProfiler=function(e){return cr(e)===zu},We.isStrictMode=function(e){return cr(e)===Uu},We.isSuspense=function(e){return cr(e)===Hu},We.isSuspenseList=function(e){return cr(e)===Gu},We.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bu||e===zu||e===Uu||e===Hu||e===Gu||e===h6||typeof e=="object"&&e!==null&&(e.$$typeof===Ku||e.$$typeof===Yu||e.$$typeof===ju||e.$$typeof===Wu||e.$$typeof===Vu||e.$$typeof===Py||e.getModuleId!==void 0)},We.typeOf=cr,Ry.exports=We;var Ny=Ry.exports;const m6=/^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;function ky(e){const t=`${e}`.match(m6);return t&&t[1]||""}function My(e,t=""){return e.displayName||e.name||ky(e)||t}function Dy(e,t,n){const r=My(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function v6(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return My(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ny.ForwardRef:return Dy(e,e.render,"ForwardRef");case Ny.Memo:return Dy(e,e.type,"memo");default:return}}}const y6=Object.freeze(Object.defineProperty({__proto__:null,default:v6,getFunctionName:ky},Symbol.toStringTag,{value:"Module"}));function bg(e,t){const n=W({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=W({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=W({},i),Object.keys(o).forEach(s=>{n[r][s]=bg(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function C6(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:bg(t.components[n].defaultProps,r)}function S6({props:e,name:t,defaultTheme:n,themeId:r}){let o=vg(n);return r&&(o=o[r]||o),C6({theme:o,name:t,props:e})}const Fi=typeof window<"u"?p.useLayoutEffect:p.useEffect;function b6(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const E6=Object.freeze(Object.defineProperty({__proto__:null,default:b6},Symbol.toStringTag,{value:"Module"}));function Ly(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Eg(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Wt(e){return e&&e.ownerDocument||document}function dl(e){return Wt(e).defaultView||window}function xg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Fy=0;function x6(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(Fy+=1,n(`mui-${Fy}`))},[t]),r}const $y=Rs["useId".toString()];function By(e){if($y!==void 0){const t=$y();return e??t}return x6(e)}function Uy({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[i,s]=p.useState(t),a=o?e:i,l=p.useCallback(c=>{o||s(c)},[]);return[a,l]}function bo(e){const t=p.useRef(e);return Fi(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Ft(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{xg(n,t)})},e)}const zy={};function w6(e,t){const n=p.useRef(zy);return n.current===zy&&(n.current=e(t)),n}const T6=[];function _6(e){p.useEffect(e,T6)}class fl{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new fl}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function $s(){const e=w6(fl.create).current;return _6(e.disposeEffect),e}let Zu=!0,wg=!1;const I6=new fl,O6={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function A6(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&O6[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function R6(e){e.metaKey||e.altKey||e.ctrlKey||(Zu=!0)}function Tg(){Zu=!1}function P6(){this.visibilityState==="hidden"&&wg&&(Zu=!0)}function N6(e){e.addEventListener("keydown",R6,!0),e.addEventListener("mousedown",Tg,!0),e.addEventListener("pointerdown",Tg,!0),e.addEventListener("touchstart",Tg,!0),e.addEventListener("visibilitychange",P6,!0)}function k6(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Zu||A6(t)}function jy(){const e=p.useCallback(o=>{o!=null&&N6(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(wg=!0,I6.start(100,()=>{wg=!1}),t.current=!1,!0):!1}function r(o){return k6(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Wy(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Vt(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const Vy=p.createContext(null);function Hy(){return p.useContext(Vy)}const M6=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function D6(e,t){return typeof t=="function"?t(e):W({},e,t)}function L6(e){const{children:t,theme:n}=e,r=Hy(),o=p.useMemo(()=>{const i=r===null?n:D6(r,n);return i!=null&&(i[M6]=r!==null),i},[n,r]);return le(Vy.Provider,{value:o,children:t})}const F6=["value"],Gy=p.createContext();function $6(e){let{value:t}=e,n=Se(e,F6);return le(Gy.Provider,W({value:t??!0},n))}const Yy=()=>{const e=p.useContext(Gy);return e??!1},Ky={};function Zy(e,t,n,r=!1){return p.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?W({},t,{[e]:i}):i;return r?()=>s:s}return e?W({},t,{[e]:n}):W({},t,n)},[e,t,n,r])}function B6(e){const{children:t,theme:n,themeId:r}=e,o=Ty(Ky),i=Hy()||Ky,s=Zy(r,o,n),a=Zy(r,i,n,!0),l=s.direction==="rtl";return le(L6,{theme:a,children:le(Ms.Provider,{value:s,children:le($6,{value:l,children:t})})})}function U6(e,t){return W({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var It={},Jy={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Jy);var Xy=Jy.exports;const z6=Hr(e_),j6=Hr(E6);var qy=Xy;Object.defineProperty(It,"__esModule",{value:!0});var Tn=It.alpha=rC;It.blend=tI,It.colorChannel=void 0;var W6=It.darken=Ig;It.decomposeColor=ur,It.emphasize=oC;var V6=It.getContrastRatio=J6;It.getLuminance=Ju,It.hexToRgb=eC,It.hslToRgb=nC;var H6=It.lighten=Og;It.private_safeAlpha=X6,It.private_safeColorChannel=void 0,It.private_safeDarken=q6,It.private_safeEmphasize=eI,It.private_safeLighten=Q6,It.recomposeColor=Bs,It.rgbToHex=Z6;var Qy=qy(z6),G6=qy(j6);function _g(e,t=0,n=1){return(0,G6.default)(e,t,n)}function eC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Y6(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ur(e){if(e.type)return e;if(e.charAt(0)==="#")return ur(eC(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Qy.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Qy.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const tC=e=>{const t=ur(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};It.colorChannel=tC;const K6=(e,t)=>{try{return tC(e)}catch{return e}};It.private_safeColorChannel=K6;function Bs(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Z6(e){if(e.indexOf("#")===0)return e;const{values:t}=ur(e);return`#${t.map((n,r)=>Y6(r===3?Math.round(255*n):n)).join("")}`}function nC(e){e=ur(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Bs({type:a,values:l})}function Ju(e){e=ur(e);let t=e.type==="hsl"||e.type==="hsla"?ur(nC(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function J6(e,t){const n=Ju(e),r=Ju(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rC(e,t){return e=ur(e),t=_g(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Bs(e)}function X6(e,t,n){try{return rC(e,t)}catch{return e}}function Ig(e,t){if(e=ur(e),t=_g(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Bs(e)}function q6(e,t,n){try{return Ig(e,t)}catch{return e}}function Og(e,t){if(e=ur(e),t=_g(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Bs(e)}function Q6(e,t,n){try{return Og(e,t)}catch{return e}}function oC(e,t=.15){return Ju(e)>.5?Ig(e,t):Og(e,t)}function eI(e,t,n){try{return oC(e,t)}catch{return e}}function tI(e,t,n,r=1){const o=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),i=ur(e),s=ur(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Bs({type:"rgb",values:a})}const pl={black:"#000",white:"#fff"},nI={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Us={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},zs={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},gl={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},js={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ws={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Vs={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},rI=["mode","contrastThreshold","tonalOffset"],iC={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:pl.white,default:pl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ag={text:{primary:pl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:pl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function sC(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=H6(e.main,o):t==="dark"&&(e.dark=W6(e.main,i)))}function oI(e="light"){return e==="dark"?{main:js[200],light:js[50],dark:js[400]}:{main:js[700],light:js[400],dark:js[800]}}function iI(e="light"){return e==="dark"?{main:Us[200],light:Us[50],dark:Us[400]}:{main:Us[500],light:Us[300],dark:Us[700]}}function sI(e="light"){return e==="dark"?{main:zs[500],light:zs[300],dark:zs[700]}:{main:zs[700],light:zs[400],dark:zs[800]}}function aI(e="light"){return e==="dark"?{main:Ws[400],light:Ws[300],dark:Ws[700]}:{main:Ws[700],light:Ws[500],dark:Ws[900]}}function lI(e="light"){return e==="dark"?{main:Vs[400],light:Vs[300],dark:Vs[700]}:{main:Vs[800],light:Vs[500],dark:Vs[900]}}function cI(e="light"){return e==="dark"?{main:gl[400],light:gl[300],dark:gl[700]}:{main:"#ed6c02",light:gl[500],dark:gl[900]}}function uI(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Se(e,rI),i=e.primary||oI(t),s=e.secondary||iI(t),a=e.error||sI(t),l=e.info||aI(t),c=e.success||lI(t),u=e.warning||cI(t);function f(m){return V6(m,Ag.text.primary)>=n?Ag.text.primary:iC.text.primary}const d=({color:m,name:b,mainShade:y=500,lightShade:v=300,darkShade:C=700})=>{if(m=W({},m),!m.main&&m[y]&&(m.main=m[y]),!m.hasOwnProperty("main"))throw new Error(il(11,b?` (${b})`:"",y));if(typeof m.main!="string")throw new Error(il(12,b?` (${b})`:"",JSON.stringify(m.main)));return sC(m,"light",v,r),sC(m,"dark",C,r),m.contrastText||(m.contrastText=f(m.main)),m},h={dark:Ag,light:iC};return Zr(W({common:W({},pl),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:nI,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},h[t]),o)}const dI=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function fI(e){return Math.round(e*1e5)/1e5}const aC={textTransform:"uppercase"},lC=\'"Roboto", "Helvetica", "Arial", sans-serif\';function pI(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=lC,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,d=Se(n,dI),h=o/14,g=f||(y=>`${y/c*h}rem`),m=(y,v,C,S,w)=>W({fontFamily:r,fontWeight:y,fontSize:g(v),lineHeight:C},r===lC?{letterSpacing:`${fI(S/v)}em`}:{},w,u),b={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,aC),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,aC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zr(W({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},b),d,{clone:!1})}const gI=.2,hI=.14,mI=.12;function it(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${gI})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${hI})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${mI})`].join(",")}const vI=["none",it(0,2,1,-1,0,1,1,0,0,1,3,0),it(0,3,1,-2,0,2,2,0,0,1,5,0),it(0,3,3,-2,0,3,4,0,0,1,8,0),it(0,2,4,-1,0,4,5,0,0,1,10,0),it(0,3,5,-1,0,5,8,0,0,1,14,0),it(0,3,5,-1,0,6,10,0,0,1,18,0),it(0,4,5,-2,0,7,10,1,0,2,16,1),it(0,5,5,-3,0,8,10,1,0,3,14,2),it(0,5,6,-3,0,9,12,1,0,3,16,2),it(0,6,6,-3,0,10,14,1,0,4,18,3),it(0,6,7,-4,0,11,15,1,0,4,20,3),it(0,7,8,-4,0,12,17,2,0,5,22,4),it(0,7,8,-4,0,13,19,2,0,5,24,4),it(0,7,9,-4,0,14,21,2,0,5,26,4),it(0,8,9,-5,0,15,22,2,0,6,28,5),it(0,8,10,-5,0,16,24,2,0,6,30,5),it(0,8,11,-5,0,17,26,2,0,6,32,5),it(0,9,11,-5,0,18,28,2,0,7,34,6),it(0,9,12,-6,0,19,29,2,0,7,36,6),it(0,10,13,-6,0,20,31,3,0,8,38,7),it(0,10,13,-6,0,21,33,3,0,8,40,7),it(0,10,14,-6,0,22,35,3,0,8,42,7),it(0,11,14,-7,0,23,36,3,0,9,44,8),it(0,11,15,-7,0,24,38,3,0,9,46,8)],yI=["duration","easing","delay"],CI={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},SI={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cC(e){return`${Math.round(e)}ms`}function bI(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function EI(e){const t=W({},CI,e.easing),n=W({},SI,e.duration);return W({getAutoHeightDuration:bI,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return Se(i,yI),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:cC(s)} ${a} ${typeof l=="string"?l:cC(l)}`).join(",")}},e,{easing:t,duration:n})}const xI={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},wI=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Rg(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=Se(e,wI);if(e.vars)throw new Error(il(18));const a=uI(r),l=mg(e);let c=Zr(l,{mixins:U6(l.breakpoints,n),palette:a,shadows:vI.slice(),typography:pI(a,i),transitions:EI(o),zIndex:W({},xI)});return c=Zr(c,s),c=t.reduce((u,f)=>Zr(u,f),c),c.unstable_sxConfig=W({},ul,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return $u({sx:f,theme:this})},c}const Pg=Rg();function hl(){const e=vg(Pg);return e[Ds]||e}function Nt({props:e,name:t}){return S6({props:e,name:t,defaultTheme:Pg,themeId:Ds})}var ml={};const TI=Hr(NT);var Ng={exports:{}},uC;function _I(){return uC||(uC=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)!==-1)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ng)),Ng.exports}const dC=Hr(d_),II=Hr(f_),OI=Hr(y_),AI=Hr(y6),RI=Hr(i6),PI=Hr(u6);var Hs=Xy;Object.defineProperty(ml,"__esModule",{value:!0});var NI=ml.default=HI;ml.shouldForwardProp=Xu,ml.systemDefaultTheme=void 0;var dr=Hs(TI),kg=Hs(_I()),fC=BI(dC),kI=II;Hs(OI),Hs(AI);var MI=Hs(RI),DI=Hs(PI);const LI=["ownerState"],FI=["variants"],$I=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function pC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(pC=function(r){return r?n:t})(e)}function BI(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=pC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function UI(e){return Object.keys(e).length===0}function zI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Xu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jI=ml.systemDefaultTheme=(0,MI.default)(),WI=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function qu({defaultTheme:e,theme:t,themeId:n}){return UI(t)?e:t[n]||t}function VI(e){return e?(t,n)=>n[e]:null}function Qu(e,t){let{ownerState:n}=t,r=(0,kg.default)(t,LI);const o=typeof e=="function"?e((0,dr.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Qu(i,(0,dr.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,kg.default)(o,FI);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,dr.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(u=>{(n==null?void 0:n[u])!==l.props[u]&&r[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,dr.default)({ownerState:n},r,n)):l.style))}),a}return o}function HI(e={}){const{themeId:t,defaultTheme:n=jI,rootShouldForwardProp:r=Xu,slotShouldForwardProp:o=Xu}=e,i=s=>(0,DI.default)((0,dr.default)({},s,{theme:qu((0,dr.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,fC.internal_processStyles)(s,w=>w.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:d=VI(WI(c))}=a,h=(0,kg.default)(a,$I),g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=f||!1;let b,y=Xu;c==="Root"||c==="root"?y=r:c?y=o:zI(s)&&(y=void 0);const v=(0,fC.default)(s,(0,dr.default)({shouldForwardProp:y,label:b},h)),C=w=>typeof w=="function"&&w.__emotion_real!==w||(0,kI.isPlainObject)(w)?_=>Qu(w,(0,dr.default)({},_,{theme:qu({theme:_.theme,defaultTheme:n,themeId:t})})):w,S=(w,..._)=>{let E=C(w);const M=_?_.map(C):[];l&&d&&M.push(k=>{const R=qu((0,dr.default)({},k,{defaultTheme:n,themeId:t}));if(!R.components||!R.components[l]||!R.components[l].styleOverrides)return null;const O=R.components[l].styleOverrides,I={};return Object.entries(O).forEach(([A,P])=>{I[A]=Qu(P,(0,dr.default)({},k,{theme:R}))}),d(k,I)}),l&&!g&&M.push(k=>{var R;const O=qu((0,dr.default)({},k,{defaultTheme:n,themeId:t})),I=O==null||(R=O.components)==null||(R=R[l])==null?void 0:R.variants;return Qu({variants:I},(0,dr.default)({},k,{theme:O}))}),m||M.push(i);const $=M.length-_.length;if(Array.isArray(w)&&$>0){const k=new Array($).fill("");E=[...w,...k],E.raw=[...w.raw,...k]}const D=v(E,...M);return s.muiName&&(D.muiName=s.muiName),D};return v.withConfig&&(S.withConfig=v.withConfig),S}}function GI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ed=e=>GI(e)&&e!=="classes",Ee=NI({themeId:Ds,defaultTheme:Pg,rootShouldForwardProp:ed}),YI=["theme"];function KI(e){let{theme:t}=e,n=Se(e,YI);const r=t[Ds];return le(B6,W({},n,{themeId:r?Ds:void 0,theme:r||t}))}const gC=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ZI=["localeText"],hC=p.createContext(null),JI=function(t){var n;const{localeText:r}=t,o=Se(t,ZI),{utils:i,localeText:s}=(n=p.useContext(hC))!=null?n:{utils:void 0,localeText:void 0},a=Nt({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:d,localeText:h}=a,g=p.useMemo(()=>W({},h,s,r),[h,s,r]),m=p.useMemo(()=>{if(!c)return i||null;const v=new c({locale:d,formats:u,instance:f});if(!v.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from \'@mui/x-date-pickers/AdapterDayjs\'` instead of `import AdapterDayjs from \'@date-io/dayjs\'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`\n`));return v},[c,d,u,f,i]),b=p.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),y=p.useMemo(()=>({utils:m,defaultDates:b,localeText:g}),[b,m,g]);return le(hC.Provider,{value:y,children:l})};function mC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=mC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Re(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=mC(e))&&(r&&(r+=" "),r+=t);return r}function XI(e){return jt("MuiTypography",e)}_t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const qI=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],QI=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${$e(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Vt(a,XI,s)},eO=Ee("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${$e(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>W({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),vC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tO={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nO=e=>tO[e]||e,rO=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTypography"}),o=nO(r.color),i=yg(W({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=vC}=i,g=Se(i,qI),m=W({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:d,variantMapping:h}),b=l||(f?"p":h[d]||vC[d])||"span",y=QI(m);return le(eO,W({as:b,ref:n,ownerState:m,className:Re(y.root,a)},g))});function yC(e){return typeof e=="string"}function vl(e,t,n){return e===void 0||yC(e)?t:W({},t,{ownerState:W({},t.ownerState,n)})}const oO={disableDefaultClasses:!1},iO=p.createContext(oO);function sO(e){const{disableDefaultClasses:t}=p.useContext(iO);return n=>t?"":e(n)}function CC(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function aO(e,t,n){return typeof e=="function"?e(t,n):e}function SC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=SC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bC(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=SC(e))&&(r&&(r+=" "),r+=t);return r}function EC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function lO(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=bC(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=W({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=W({},n,o,r);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const s=CC(W({},o,r)),a=EC(r),l=EC(o),c=t(s),u=bC(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=W({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),d=W({},c,n,l,a);return u.length>0&&(d.className=u),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:c.ref}}const cO=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function $i(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=Se(e,cO),a=i?{}:aO(r,o),{props:l,internalRef:c}=lO(W({},s,{externalSlotProps:a})),u=Ft(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return vl(n,W({},l,{ref:u}),o)}function Mg(e,t){return Mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mg(e,t)}function xC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mg(e,t)}var wC={exports:{}},zn={},TC={exports:{}},_C={};/**\n * @license React\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */(function(e){function t(T,L){var z=T.length;T.push(L);e:for(;0<z;){var B=z-1>>>1,V=T[B];if(0<o(V,L))T[B]=L,T[z]=V,z=B;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var L=T[0],z=T.pop();if(z!==L){T[0]=z;e:for(var B=0,V=T.length,H=V>>>1;B<H;){var K=2*(B+1)-1,G=T[K],te=K+1,ne=T[te];if(0>o(G,z))te<V&&0>o(ne,G)?(T[B]=ne,T[te]=z,B=te):(T[B]=G,T[K]=z,B=K);else if(te<V&&0>o(ne,z))T[B]=ne,T[te]=z,B=te;else break e}}return L}function o(T,L){var z=T.sortIndex-L.sortIndex;return z!==0?z:T.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,f=null,d=3,h=!1,g=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(T){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=T)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function S(T){if(m=!1,C(T),!g)if(n(l)!==null)g=!0,P(w);else{var L=n(c);L!==null&&N(S,L.startTime-T)}}function w(T,L){g=!1,m&&(m=!1,y(M),M=-1),h=!0;var z=d;try{for(C(L),f=n(l);f!==null&&(!(f.expirationTime>L)||T&&!k());){var B=f.callback;if(typeof B=="function"){f.callback=null,d=f.priorityLevel;var V=B(f.expirationTime<=L);L=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(l)&&r(l),C(L)}else r(l);f=n(l)}if(f!==null)var H=!0;else{var K=n(c);K!==null&&N(S,K.startTime-L),H=!1}return H}finally{f=null,d=z,h=!1}}var _=!1,E=null,M=-1,$=5,D=-1;function k(){return!(e.unstable_now()-D<$)}function R(){if(E!==null){var T=e.unstable_now();D=T;var L=!0;try{L=E(!0,T)}finally{L?O():(_=!1,E=null)}}else _=!1}var O;if(typeof v=="function")O=function(){v(R)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,A=I.port2;I.port1.onmessage=R,O=function(){A.postMessage(null)}}else O=function(){b(R,0)};function P(T){E=T,_||(_=!0,O())}function N(T,L){M=b(function(){T(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){g||h||(g=!0,P(w))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var L=3;break;default:L=d}var z=d;d=L;try{return T()}finally{d=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,L){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var z=d;d=T;try{return L()}finally{d=z}},e.unstable_scheduleCallback=function(T,L,z){var B=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?B+z:B):z=B,T){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=z+V,T={id:u++,callback:L,priorityLevel:T,startTime:z,expirationTime:V,sortIndex:-1},z>B?(T.sortIndex=z,t(c,T),n(l)===null&&T===n(c)&&(m?(y(M),M=-1):m=!0,N(S,z-B))):(T.sortIndex=V,t(l,T),g||h||(g=!0,P(w))),T},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(T){var L=d;return function(){var z=d;d=L;try{return T.apply(this,arguments)}finally{d=z}}}})(_C),TC.exports=_C;var uO=TC.exports;/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var IC=p,jn=uO;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var OC=new Set,yl={};function Bi(e,t){Gs(e,t),Gs(e+"Capture",t)}function Gs(e,t){for(yl[e]=t,e=0;e<t.length;e++)OC.add(t[e])}var Eo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dg=Object.prototype.hasOwnProperty,dO=/^[: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]*$/,AC={},RC={};function fO(e){return Dg.call(RC,e)?!0:Dg.call(AC,e)?!1:dO.test(e)?RC[e]=!0:(AC[e]=!0,!1)}function pO(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gO(e,t,n,r){if(t===null||typeof t>"u"||pO(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function un(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ht[e]=new un(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ht[t]=new un(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ht[e]=new un(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ht[e]=new un(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ht[e]=new un(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ht[e]=new un(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ht[e]=new un(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ht[e]=new un(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ht[e]=new un(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lg=/[\\-:]([a-z])/g;function Fg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Lg,Fg);Ht[t]=new un(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Lg,Fg);Ht[t]=new un(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Lg,Fg);Ht[t]=new un(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ht[e]=new un(e,1,!1,e.toLowerCase(),null,!1,!1)}),Ht.xlinkHref=new un("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ht[e]=new un(e,1,!1,e.toLowerCase(),null,!0,!0)});function $g(e,t,n,r){var o=Ht.hasOwnProperty(t)?Ht[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gO(t,n,o,r)&&(n=null),r||o===null?fO(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var xo=IC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,td=Symbol.for("react.element"),Ys=Symbol.for("react.portal"),Ks=Symbol.for("react.fragment"),Bg=Symbol.for("react.strict_mode"),Ug=Symbol.for("react.profiler"),PC=Symbol.for("react.provider"),NC=Symbol.for("react.context"),zg=Symbol.for("react.forward_ref"),jg=Symbol.for("react.suspense"),Wg=Symbol.for("react.suspense_list"),Vg=Symbol.for("react.memo"),Qo=Symbol.for("react.lazy"),kC=Symbol.for("react.offscreen"),MC=Symbol.iterator;function Cl(e){return e===null||typeof e!="object"?null:(e=MC&&e[MC]||e["@@iterator"],typeof e=="function"?e:null)}var lt=Object.assign,Hg;function Sl(e){if(Hg===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\\n( *(at )?)/);Hg=t&&t[1]||""}return`\n`+Hg+e}var Gg=!1;function Yg(e,t){if(!e||Gg)return"";Gg=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`\n`),i=r.stack.split(`\n`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`\n`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Gg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Sl(e):""}function hO(e){switch(e.tag){case 5:return Sl(e.type);case 16:return Sl("Lazy");case 13:return Sl("Suspense");case 19:return Sl("SuspenseList");case 0:case 2:case 15:return e=Yg(e.type,!1),e;case 11:return e=Yg(e.type.render,!1),e;case 1:return e=Yg(e.type,!0),e;default:return""}}function Kg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ks:return"Fragment";case Ys:return"Portal";case Ug:return"Profiler";case Bg:return"StrictMode";case jg:return"Suspense";case Wg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NC:return(e.displayName||"Context")+".Consumer";case PC:return(e._context.displayName||"Context")+".Provider";case zg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vg:return t=e.displayName||null,t!==null?t:Kg(e.type)||"Memo";case Qo:t=e._payload,e=e._init;try{return Kg(e(t))}catch{}}return null}function mO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kg(t);case 8:return t===Bg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function DC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vO(e){var t=DC(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nd(e){e._valueTracker||(e._valueTracker=vO(e))}function LC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=DC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zg(e,t){var n=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function FC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ei(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $C(e,t){t=t.checked,t!=null&&$g(e,"checked",t,!1)}function Jg(e,t){$C(e,t);var n=ei(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xg(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xg(e,t.type,ei(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function BC(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xg(e,t,n){(t!=="number"||rd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bl=Array.isArray;function Zs(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ei(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function qg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Z(91));return lt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function UC(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Z(92));if(bl(n)){if(1<n.length)throw Error(Z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ei(n)}}function zC(e,t){var n=ei(t.value),r=ei(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function jC(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function WC(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?WC(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var od,VC=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(od=od||document.createElement("div"),od.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=od.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function El(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yO=["Webkit","ms","Moz","O"];Object.keys(xl).forEach(function(e){yO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xl[t]=xl[e]})});function HC(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xl.hasOwnProperty(e)&&xl[e]?(""+t).trim():t+"px"}function GC(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=HC(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var CO=lt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eh(e,t){if(t){if(CO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function th(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nh=null;function rh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oh=null,Js=null,Xs=null;function YC(e){if(e=Hl(e)){if(typeof oh!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=Id(t),oh(e.stateNode,e.type,t))}}function KC(e){Js?Xs?Xs.push(e):Xs=[e]:Js=e}function ZC(){if(Js){var e=Js,t=Xs;if(Xs=Js=null,YC(e),t)for(e=0;e<t.length;e++)YC(t[e])}}function JC(e,t){return e(t)}function XC(){}var ih=!1;function qC(e,t,n){if(ih)return e(t,n);ih=!0;try{return JC(e,t,n)}finally{ih=!1,(Js!==null||Xs!==null)&&(XC(),ZC())}}function wl(e,t){var n=e.stateNode;if(n===null)return null;var r=Id(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Z(231,t,typeof n));return n}var sh=!1;if(Eo)try{var Tl={};Object.defineProperty(Tl,"passive",{get:function(){sh=!0}}),window.addEventListener("test",Tl,Tl),window.removeEventListener("test",Tl,Tl)}catch{sh=!1}function SO(e,t,n,r,o,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var _l=!1,id=null,sd=!1,ah=null,bO={onError:function(e){_l=!0,id=e}};function EO(e,t,n,r,o,i,s,a,l){_l=!1,id=null,SO.apply(bO,arguments)}function xO(e,t,n,r,o,i,s,a,l){if(EO.apply(this,arguments),_l){if(_l){var c=id;_l=!1,id=null}else throw Error(Z(198));sd||(sd=!0,ah=c)}}function Ui(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function QC(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function eS(e){if(Ui(e)!==e)throw Error(Z(188))}function wO(e){var t=e.alternate;if(!t){if(t=Ui(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return eS(o),e;if(i===r)return eS(o),t;i=i.sibling}throw Error(Z(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(Z(189))}}if(n.alternate!==r)throw Error(Z(190))}if(n.tag!==3)throw Error(Z(188));return n.stateNode.current===n?e:t}function tS(e){return e=wO(e),e!==null?nS(e):null}function nS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=nS(e);if(t!==null)return t;e=e.sibling}return null}var rS=jn.unstable_scheduleCallback,oS=jn.unstable_cancelCallback,TO=jn.unstable_shouldYield,_O=jn.unstable_requestPaint,Ot=jn.unstable_now,IO=jn.unstable_getCurrentPriorityLevel,lh=jn.unstable_ImmediatePriority,iS=jn.unstable_UserBlockingPriority,ad=jn.unstable_NormalPriority,OO=jn.unstable_LowPriority,sS=jn.unstable_IdlePriority,ld=null,Jr=null;function AO(e){if(Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(ld,e,void 0,(e.current.flags&128)===128)}catch{}}var kr=Math.clz32?Math.clz32:NO,RO=Math.log,PO=Math.LN2;function NO(e){return e>>>=0,e===0?32:31-(RO(e)/PO|0)|0}var cd=64,ud=4194304;function Il(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Il(a):(i&=s,i!==0&&(r=Il(i)))}else s=n&~o,s!==0?r=Il(s):i!==0&&(r=Il(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-kr(t),o=1<<n,r|=e[n],t&=~o;return r}function kO(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function MO(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-kr(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=kO(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function ch(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function aS(){var e=cd;return cd<<=1,!(cd&4194240)&&(cd=64),e}function uh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ol(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kr(t),e[t]=n}function DO(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-kr(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function dh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ve=0;function lS(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var cS,fh,uS,dS,fS,ph=!1,fd=[],ti=null,ni=null,ri=null,Al=new Map,Rl=new Map,oi=[],LO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pS(e,t){switch(e){case"focusin":case"focusout":ti=null;break;case"dragenter":case"dragleave":ni=null;break;case"mouseover":case"mouseout":ri=null;break;case"pointerover":case"pointerout":Al.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(t.pointerId)}}function Pl(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Hl(t),t!==null&&fh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function FO(e,t,n,r,o){switch(t){case"focusin":return ti=Pl(ti,e,t,n,r,o),!0;case"dragenter":return ni=Pl(ni,e,t,n,r,o),!0;case"mouseover":return ri=Pl(ri,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Al.set(i,Pl(Al.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rl.set(i,Pl(Rl.get(i)||null,e,t,n,r,o)),!0}return!1}function gS(e){var t=zi(e.target);if(t!==null){var n=Ui(t);if(n!==null){if(t=n.tag,t===13){if(t=QC(n),t!==null){e.blockedOn=t,fS(e.priority,function(){uS(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hh(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nh=r,n.target.dispatchEvent(r),nh=null}else return t=Hl(n),t!==null&&fh(t),e.blockedOn=n,!1;t.shift()}return!0}function hS(e,t,n){pd(e)&&n.delete(t)}function $O(){ph=!1,ti!==null&&pd(ti)&&(ti=null),ni!==null&&pd(ni)&&(ni=null),ri!==null&&pd(ri)&&(ri=null),Al.forEach(hS),Rl.forEach(hS)}function Nl(e,t){e.blockedOn===t&&(e.blockedOn=null,ph||(ph=!0,jn.unstable_scheduleCallback(jn.unstable_NormalPriority,$O)))}function kl(e){function t(o){return Nl(o,e)}if(0<fd.length){Nl(fd[0],e);for(var n=1;n<fd.length;n++){var r=fd[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ti!==null&&Nl(ti,e),ni!==null&&Nl(ni,e),ri!==null&&Nl(ri,e),Al.forEach(t),Rl.forEach(t),n=0;n<oi.length;n++)r=oi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<oi.length&&(n=oi[0],n.blockedOn===null);)gS(n),n.blockedOn===null&&oi.shift()}var qs=xo.ReactCurrentBatchConfig,gd=!0;function BO(e,t,n,r){var o=Ve,i=qs.transition;qs.transition=null;try{Ve=1,gh(e,t,n,r)}finally{Ve=o,qs.transition=i}}function UO(e,t,n,r){var o=Ve,i=qs.transition;qs.transition=null;try{Ve=4,gh(e,t,n,r)}finally{Ve=o,qs.transition=i}}function gh(e,t,n,r){if(gd){var o=hh(e,t,n,r);if(o===null)Nh(e,t,r,hd,n),pS(e,r);else if(FO(o,e,t,n,r))r.stopPropagation();else if(pS(e,r),t&4&&-1<LO.indexOf(e)){for(;o!==null;){var i=Hl(o);if(i!==null&&cS(i),i=hh(e,t,n,r),i===null&&Nh(e,t,r,hd,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Nh(e,t,r,null,n)}}var hd=null;function hh(e,t,n,r){if(hd=null,e=rh(r),e=zi(e),e!==null)if(t=Ui(e),t===null)e=null;else if(n=t.tag,n===13){if(e=QC(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return hd=e,null}function mS(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(IO()){case lh:return 1;case iS:return 4;case ad:case OO:return 16;case sS:return 536870912;default:return 16}default:return 16}}var ii=null,mh=null,md=null;function vS(){if(md)return md;var e,t=mh,n=t.length,r,o="value"in ii?ii.value:ii.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return md=o.slice(e,1<r?1-r:void 0)}function vd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yd(){return!0}function yS(){return!1}function Wn(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?yd:yS,this.isPropagationStopped=yS,this}return lt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=yd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=yd)},persist:function(){},isPersistent:yd}),t}var Qs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vh=Wn(Qs),Ml=lt({},Qs,{view:0,detail:0}),zO=Wn(Ml),yh,Ch,Dl,Cd=lt({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Dl&&(Dl&&e.type==="mousemove"?(yh=e.screenX-Dl.screenX,Ch=e.screenY-Dl.screenY):Ch=yh=0,Dl=e),yh)},movementY:function(e){return"movementY"in e?e.movementY:Ch}}),CS=Wn(Cd),jO=lt({},Cd,{dataTransfer:0}),WO=Wn(jO),VO=lt({},Ml,{relatedTarget:0}),Sh=Wn(VO),HO=lt({},Qs,{animationName:0,elapsedTime:0,pseudoElement:0}),GO=Wn(HO),YO=lt({},Qs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),KO=Wn(YO),ZO=lt({},Qs,{data:0}),SS=Wn(ZO),JO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XO={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"},qO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function QO(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qO[e])?!!t[e]:!1}function bh(){return QO}var e8=lt({},Ml,{key:function(e){if(e.key){var t=JO[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?XO[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bh,charCode:function(e){return e.type==="keypress"?vd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),t8=Wn(e8),n8=lt({},Cd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bS=Wn(n8),r8=lt({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bh}),o8=Wn(r8),i8=lt({},Qs,{propertyName:0,elapsedTime:0,pseudoElement:0}),s8=Wn(i8),a8=lt({},Cd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),l8=Wn(a8),c8=[9,13,27,32],Eh=Eo&&"CompositionEvent"in window,Ll=null;Eo&&"documentMode"in document&&(Ll=document.documentMode);var u8=Eo&&"TextEvent"in window&&!Ll,ES=Eo&&(!Eh||Ll&&8<Ll&&11>=Ll),xS=String.fromCharCode(32),wS=!1;function TS(e,t){switch(e){case"keyup":return c8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _S(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ea=!1;function d8(e,t){switch(e){case"compositionend":return _S(t);case"keypress":return t.which!==32?null:(wS=!0,xS);case"textInput":return e=t.data,e===xS&&wS?null:e;default:return null}}function f8(e,t){if(ea)return e==="compositionend"||!Eh&&TS(e,t)?(e=vS(),md=mh=ii=null,ea=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ES&&t.locale!=="ko"?null:t.data;default:return null}}var p8={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 IS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!p8[e.type]:t==="textarea"}function OS(e,t,n,r){KC(r),t=wd(t,"onChange"),0<t.length&&(n=new vh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fl=null,$l=null;function g8(e){GS(e,0)}function Sd(e){var t=ia(e);if(LC(t))return e}function h8(e,t){if(e==="change")return t}var AS=!1;if(Eo){var xh;if(Eo){var wh="oninput"in document;if(!wh){var RS=document.createElement("div");RS.setAttribute("oninput","return;"),wh=typeof RS.oninput=="function"}xh=wh}else xh=!1;AS=xh&&(!document.documentMode||9<document.documentMode)}function PS(){Fl&&(Fl.detachEvent("onpropertychange",NS),$l=Fl=null)}function NS(e){if(e.propertyName==="value"&&Sd($l)){var t=[];OS(t,$l,e,rh(e)),qC(g8,t)}}function m8(e,t,n){e==="focusin"?(PS(),Fl=t,$l=n,Fl.attachEvent("onpropertychange",NS)):e==="focusout"&&PS()}function v8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sd($l)}function y8(e,t){if(e==="click")return Sd(t)}function C8(e,t){if(e==="input"||e==="change")return Sd(t)}function S8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mr=typeof Object.is=="function"?Object.is:S8;function Bl(e,t){if(Mr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Dg.call(t,o)||!Mr(e[o],t[o]))return!1}return!0}function kS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function MS(e,t){var n=kS(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kS(n)}}function DS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?DS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function LS(){for(var e=window,t=rd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rd(e.document)}return t}function Th(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function b8(e){var t=LS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&DS(n.ownerDocument.documentElement,n)){if(r!==null&&Th(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=MS(n,i);var s=MS(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var E8=Eo&&"documentMode"in document&&11>=document.documentMode,ta=null,_h=null,Ul=null,Ih=!1;function FS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ih||ta==null||ta!==rd(r)||(r=ta,"selectionStart"in r&&Th(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ul&&Bl(Ul,r)||(Ul=r,r=wd(_h,"onSelect"),0<r.length&&(t=new vh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ta)))}function bd(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var na={animationend:bd("Animation","AnimationEnd"),animationiteration:bd("Animation","AnimationIteration"),animationstart:bd("Animation","AnimationStart"),transitionend:bd("Transition","TransitionEnd")},Oh={},$S={};Eo&&($S=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function Ed(e){if(Oh[e])return Oh[e];if(!na[e])return e;var t=na[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $S)return Oh[e]=t[n];return e}var BS=Ed("animationend"),US=Ed("animationiteration"),zS=Ed("animationstart"),jS=Ed("transitionend"),WS=new Map,VS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function si(e,t){WS.set(e,t),Bi(t,[e])}for(var Ah=0;Ah<VS.length;Ah++){var Rh=VS[Ah],x8=Rh.toLowerCase(),w8=Rh[0].toUpperCase()+Rh.slice(1);si(x8,"on"+w8)}si(BS,"onAnimationEnd"),si(US,"onAnimationIteration"),si(zS,"onAnimationStart"),si("dblclick","onDoubleClick"),si("focusin","onFocus"),si("focusout","onBlur"),si(jS,"onTransitionEnd"),Gs("onMouseEnter",["mouseout","mouseover"]),Gs("onMouseLeave",["mouseout","mouseover"]),Gs("onPointerEnter",["pointerout","pointerover"]),Gs("onPointerLeave",["pointerout","pointerover"]),Bi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zl="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(" "),T8=new Set("cancel close invalid load scroll toggle".split(" ").concat(zl));function HS(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,xO(r,t,void 0,e),e.currentTarget=null}function GS(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;HS(o,a,c),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;HS(o,a,c),i=l}}}if(sd)throw e=ah,sd=!1,ah=null,e}function Qe(e,t){var n=t[$h];n===void 0&&(n=t[$h]=new Set);var r=e+"__bubble";n.has(r)||(YS(t,e,2,!1),n.add(r))}function Ph(e,t,n){var r=0;t&&(r|=4),YS(n,e,r,t)}var xd="_reactListening"+Math.random().toString(36).slice(2);function jl(e){if(!e[xd]){e[xd]=!0,OC.forEach(function(n){n!=="selectionchange"&&(T8.has(n)||Ph(n,!1,e),Ph(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,Ph("selectionchange",!1,t))}}function YS(e,t,n,r){switch(mS(t)){case 1:var o=BO;break;case 4:o=UO;break;default:o=gh}n=o.bind(null,t,n,e),o=void 0,!sh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Nh(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=zi(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}qC(function(){var c=i,u=rh(n),f=[];e:{var d=WS.get(e);if(d!==void 0){var h=vh,g=e;switch(e){case"keypress":if(vd(n)===0)break e;case"keydown":case"keyup":h=t8;break;case"focusin":g="focus",h=Sh;break;case"focusout":g="blur",h=Sh;break;case"beforeblur":case"afterblur":h=Sh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=CS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=WO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=o8;break;case BS:case US:case zS:h=GO;break;case jS:h=s8;break;case"scroll":h=zO;break;case"wheel":h=l8;break;case"copy":case"cut":case"paste":h=KO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=bS}var m=(t&4)!==0,b=!m&&e==="scroll",y=m?d!==null?d+"Capture":null:d;m=[];for(var v=c,C;v!==null;){C=v;var S=C.stateNode;if(C.tag===5&&S!==null&&(C=S,y!==null&&(S=wl(v,y),S!=null&&m.push(Wl(v,S,C)))),b)break;v=v.return}0<m.length&&(d=new h(d,g,null,n,u),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==nh&&(g=n.relatedTarget||n.fromElement)&&(zi(g)||g[wo]))break e;if((h||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=c,g=g?zi(g):null,g!==null&&(b=Ui(g),g!==b||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=c),h!==g)){if(m=CS,S="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(m=bS,S="onPointerLeave",y="onPointerEnter",v="pointer"),b=h==null?d:ia(h),C=g==null?d:ia(g),d=new m(S,v+"leave",h,n,u),d.target=b,d.relatedTarget=C,S=null,zi(u)===c&&(m=new m(y,v+"enter",g,n,u),m.target=C,m.relatedTarget=b,S=m),b=S,h&&g)t:{for(m=h,y=g,v=0,C=m;C;C=ra(C))v++;for(C=0,S=y;S;S=ra(S))C++;for(;0<v-C;)m=ra(m),v--;for(;0<C-v;)y=ra(y),C--;for(;v--;){if(m===y||y!==null&&m===y.alternate)break t;m=ra(m),y=ra(y)}m=null}else m=null;h!==null&&KS(f,d,h,m,!1),g!==null&&b!==null&&KS(f,b,g,m,!0)}}e:{if(d=c?ia(c):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var w=h8;else if(IS(d))if(AS)w=C8;else{w=v8;var _=m8}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=y8);if(w&&(w=w(e,c))){OS(f,w,n,u);break e}_&&_(e,d,c),e==="focusout"&&(_=d._wrapperState)&&_.controlled&&d.type==="number"&&Xg(d,"number",d.value)}switch(_=c?ia(c):window,e){case"focusin":(IS(_)||_.contentEditable==="true")&&(ta=_,_h=c,Ul=null);break;case"focusout":Ul=_h=ta=null;break;case"mousedown":Ih=!0;break;case"contextmenu":case"mouseup":case"dragend":Ih=!1,FS(f,n,u);break;case"selectionchange":if(E8)break;case"keydown":case"keyup":FS(f,n,u)}var E;if(Eh)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else ea?TS(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(ES&&n.locale!=="ko"&&(ea||M!=="onCompositionStart"?M==="onCompositionEnd"&&ea&&(E=vS()):(ii=u,mh="value"in ii?ii.value:ii.textContent,ea=!0)),_=wd(c,M),0<_.length&&(M=new SS(M,e,null,n,u),f.push({event:M,listeners:_}),E?M.data=E:(E=_S(n),E!==null&&(M.data=E)))),(E=u8?d8(e,n):f8(e,n))&&(c=wd(c,"onBeforeInput"),0<c.length&&(u=new SS("onBeforeInput","beforeinput",null,n,u),f.push({event:u,listeners:c}),u.data=E))}GS(f,t)})}function Wl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wd(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=wl(e,n),i!=null&&r.unshift(Wl(e,i,o)),i=wl(e,t),i!=null&&r.push(Wl(e,i,o))),e=e.return}return r}function ra(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function KS(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,o?(l=wl(n,i),l!=null&&s.unshift(Wl(n,l,a))):o||(l=wl(n,i),l!=null&&s.push(Wl(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var _8=/\\r\\n?/g,I8=/\\u0000|\\uFFFD/g;function ZS(e){return(typeof e=="string"?e:""+e).replace(_8,`\n`).replace(I8,"")}function Td(e,t,n){if(t=ZS(t),ZS(e)!==t&&n)throw Error(Z(425))}function _d(){}var kh=null,Mh=null;function Dh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Lh=typeof setTimeout=="function"?setTimeout:void 0,O8=typeof clearTimeout=="function"?clearTimeout:void 0,JS=typeof Promise=="function"?Promise:void 0,A8=typeof queueMicrotask=="function"?queueMicrotask:typeof JS<"u"?function(e){return JS.resolve(null).then(e).catch(R8)}:Lh;function R8(e){setTimeout(function(){throw e})}function Fh(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),kl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);kl(t)}function ai(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function XS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var oa=Math.random().toString(36).slice(2),Xr="__reactFiber$"+oa,Vl="__reactProps$"+oa,wo="__reactContainer$"+oa,$h="__reactEvents$"+oa,P8="__reactListeners$"+oa,N8="__reactHandles$"+oa;function zi(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wo]||n[Xr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=XS(e);e!==null;){if(n=e[Xr])return n;e=XS(e)}return t}e=n,n=e.parentNode}return null}function Hl(e){return e=e[Xr]||e[wo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ia(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function Id(e){return e[Vl]||null}var Bh=[],sa=-1;function li(e){return{current:e}}function et(e){0>sa||(e.current=Bh[sa],Bh[sa]=null,sa--)}function Ze(e,t){sa++,Bh[sa]=e.current,e.current=t}var ci={},Xt=li(ci),_n=li(!1),ji=ci;function aa(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function In(e){return e=e.childContextTypes,e!=null}function Od(){et(_n),et(Xt)}function qS(e,t,n){if(Xt.current!==ci)throw Error(Z(168));Ze(Xt,t),Ze(_n,n)}function QS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Z(108,mO(e)||"Unknown",o));return lt({},n,r)}function Ad(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,ji=Xt.current,Ze(Xt,e),Ze(_n,_n.current),!0}function eb(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=QS(e,t,ji),r.__reactInternalMemoizedMergedChildContext=e,et(_n),et(Xt),Ze(Xt,e)):et(_n),Ze(_n,n)}var To=null,Rd=!1,Uh=!1;function tb(e){To===null?To=[e]:To.push(e)}function k8(e){Rd=!0,tb(e)}function ui(){if(!Uh&&To!==null){Uh=!0;var e=0,t=Ve;try{var n=To;for(Ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}To=null,Rd=!1}catch(o){throw To!==null&&(To=To.slice(e+1)),rS(lh,ui),o}finally{Ve=t,Uh=!1}}return null}var la=[],ca=0,Pd=null,Nd=0,fr=[],pr=0,Wi=null,_o=1,Io="";function Vi(e,t){la[ca++]=Nd,la[ca++]=Pd,Pd=e,Nd=t}function nb(e,t,n){fr[pr++]=_o,fr[pr++]=Io,fr[pr++]=Wi,Wi=e;var r=_o;e=Io;var o=32-kr(r)-1;r&=~(1<<o),n+=1;var i=32-kr(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,_o=1<<32-kr(t)+o|n<<o|r,Io=i+e}else _o=1<<i|n<<o|r,Io=e}function zh(e){e.return!==null&&(Vi(e,1),nb(e,1,0))}function jh(e){for(;e===Pd;)Pd=la[--ca],la[ca]=null,Nd=la[--ca],la[ca]=null;for(;e===Wi;)Wi=fr[--pr],fr[pr]=null,Io=fr[--pr],fr[pr]=null,_o=fr[--pr],fr[pr]=null}var Vn=null,Hn=null,st=!1,Dr=null;function rb(e,t){var n=vr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ob(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Vn=e,Hn=ai(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Vn=e,Hn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Wi!==null?{id:_o,overflow:Io}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Vn=e,Hn=null,!0):!1;default:return!1}}function Wh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Vh(e){if(st){var t=Hn;if(t){var n=t;if(!ob(e,t)){if(Wh(e))throw Error(Z(418));t=ai(n.nextSibling);var r=Vn;t&&ob(e,t)?rb(r,n):(e.flags=e.flags&-4097|2,st=!1,Vn=e)}}else{if(Wh(e))throw Error(Z(418));e.flags=e.flags&-4097|2,st=!1,Vn=e}}}function ib(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Vn=e}function kd(e){if(e!==Vn)return!1;if(!st)return ib(e),st=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Dh(e.type,e.memoizedProps)),t&&(t=Hn)){if(Wh(e))throw sb(),Error(Z(418));for(;t;)rb(e,t),t=ai(t.nextSibling)}if(ib(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Hn=ai(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Hn=null}}else Hn=Vn?ai(e.stateNode.nextSibling):null;return!0}function sb(){for(var e=Hn;e;)e=ai(e.nextSibling)}function ua(){Hn=Vn=null,st=!1}function Hh(e){Dr===null?Dr=[e]:Dr.push(e)}var M8=xo.ReactCurrentBatchConfig;function Lr(e,t){if(e&&e.defaultProps){t=lt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Md=li(null),Dd=null,da=null,Gh=null;function Yh(){Gh=da=Dd=null}function Kh(e){var t=Md.current;et(Md),e._currentValue=t}function Zh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function fa(e,t){Dd=e,Gh=da=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(On=!0),e.firstContext=null)}function gr(e){var t=e._currentValue;if(Gh!==e)if(e={context:e,memoizedValue:t,next:null},da===null){if(Dd===null)throw Error(Z(308));da=e,Dd.dependencies={lanes:0,firstContext:e}}else da=da.next=e;return t}var Hi=null;function Jh(e){Hi===null?Hi=[e]:Hi.push(e)}function ab(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Jh(t)):(n.next=o.next,o.next=n),t.interleaved=n,Oo(e,r)}function Oo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var di=!1;function Xh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ao(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Oo(e,n)}return o=r.interleaved,o===null?(t.next=t,Jh(r)):(t.next=o.next,o.next=t),r.interleaved=t,Oo(e,n)}function Ld(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dh(e,n)}}function cb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fd(e,t,n,r){var o=e.updateQueue;di=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,u=c=l=null,a=i;do{var d=a.lane,h=a.eventTime;if((r&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,m=a;switch(d=t,h=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){f=g.call(h,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,d=typeof g=="function"?g.call(h,f,d):g,d==null)break e;f=lt({},f,d);break e;case 2:di=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ki|=s,e.lanes=s,e.memoizedState=f}}function ub(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Z(191,o));o.call(r)}}}var db=new IC.Component().refs;function qh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:lt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $d={isMounted:function(e){return(e=e._reactInternals)?Ui(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fn(),o=mi(e),i=Ao(r,o);i.payload=t,n!=null&&(i.callback=n),t=fi(e,i,o),t!==null&&(Br(t,e,o,r),Ld(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fn(),o=mi(e),i=Ao(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=fi(e,i,o),t!==null&&(Br(t,e,o,r),Ld(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fn(),r=mi(e),o=Ao(n,r);o.tag=2,t!=null&&(o.callback=t),t=fi(e,o,r),t!==null&&(Br(t,e,r,n),Ld(t,e,r))}};function fb(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Bl(n,r)||!Bl(o,i):!0}function pb(e,t,n){var r=!1,o=ci,i=t.contextType;return typeof i=="object"&&i!==null?i=gr(i):(o=In(t)?ji:Xt.current,r=t.contextTypes,i=(r=r!=null)?aa(e,o):ci),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$d,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function gb(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$d.enqueueReplaceState(t,t.state,null)}function Qh(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=db,Xh(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=gr(i):(i=In(t)?ji:Xt.current,o.context=aa(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(qh(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&$d.enqueueReplaceState(o,o.state,null),Fd(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Gl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Z(309));var r=n.stateNode}if(!r)throw Error(Z(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===db&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Z(284));if(!n._owner)throw Error(Z(290,e))}return e}function Bd(e,t){throw e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hb(e){var t=e._init;return t(e._payload)}function mb(e){function t(y,v){if(e){var C=y.deletions;C===null?(y.deletions=[v],y.flags|=16):C.push(v)}}function n(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function r(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function o(y,v){return y=yi(y,v),y.index=0,y.sibling=null,y}function i(y,v,C){return y.index=C,e?(C=y.alternate,C!==null?(C=C.index,C<v?(y.flags|=2,v):C):(y.flags|=2,v)):(y.flags|=1048576,v)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,v,C,S){return v===null||v.tag!==6?(v=L0(C,y.mode,S),v.return=y,v):(v=o(v,C),v.return=y,v)}function l(y,v,C,S){var w=C.type;return w===Ks?u(y,v,C.props.children,S,C.key):v!==null&&(v.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Qo&&hb(w)===v.type)?(S=o(v,C.props),S.ref=Gl(y,v,C),S.return=y,S):(S=of(C.type,C.key,C.props,null,y.mode,S),S.ref=Gl(y,v,C),S.return=y,S)}function c(y,v,C,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==C.containerInfo||v.stateNode.implementation!==C.implementation?(v=F0(C,y.mode,S),v.return=y,v):(v=o(v,C.children||[]),v.return=y,v)}function u(y,v,C,S,w){return v===null||v.tag!==7?(v=qi(C,y.mode,S,w),v.return=y,v):(v=o(v,C),v.return=y,v)}function f(y,v,C){if(typeof v=="string"&&v!==""||typeof v=="number")return v=L0(""+v,y.mode,C),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case td:return C=of(v.type,v.key,v.props,null,y.mode,C),C.ref=Gl(y,null,v),C.return=y,C;case Ys:return v=F0(v,y.mode,C),v.return=y,v;case Qo:var S=v._init;return f(y,S(v._payload),C)}if(bl(v)||Cl(v))return v=qi(v,y.mode,C,null),v.return=y,v;Bd(y,v)}return null}function d(y,v,C,S){var w=v!==null?v.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return w!==null?null:a(y,v,""+C,S);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case td:return C.key===w?l(y,v,C,S):null;case Ys:return C.key===w?c(y,v,C,S):null;case Qo:return w=C._init,d(y,v,w(C._payload),S)}if(bl(C)||Cl(C))return w!==null?null:u(y,v,C,S,null);Bd(y,C)}return null}function h(y,v,C,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(C)||null,a(v,y,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case td:return y=y.get(S.key===null?C:S.key)||null,l(v,y,S,w);case Ys:return y=y.get(S.key===null?C:S.key)||null,c(v,y,S,w);case Qo:var _=S._init;return h(y,v,C,_(S._payload),w)}if(bl(S)||Cl(S))return y=y.get(C)||null,u(v,y,S,w,null);Bd(v,S)}return null}function g(y,v,C,S){for(var w=null,_=null,E=v,M=v=0,$=null;E!==null&&M<C.length;M++){E.index>M?($=E,E=null):$=E.sibling;var D=d(y,E,C[M],S);if(D===null){E===null&&(E=$);break}e&&E&&D.alternate===null&&t(y,E),v=i(D,v,M),_===null?w=D:_.sibling=D,_=D,E=$}if(M===C.length)return n(y,E),st&&Vi(y,M),w;if(E===null){for(;M<C.length;M++)E=f(y,C[M],S),E!==null&&(v=i(E,v,M),_===null?w=E:_.sibling=E,_=E);return st&&Vi(y,M),w}for(E=r(y,E);M<C.length;M++)$=h(E,y,M,C[M],S),$!==null&&(e&&$.alternate!==null&&E.delete($.key===null?M:$.key),v=i($,v,M),_===null?w=$:_.sibling=$,_=$);return e&&E.forEach(function(k){return t(y,k)}),st&&Vi(y,M),w}function m(y,v,C,S){var w=Cl(C);if(typeof w!="function")throw Error(Z(150));if(C=w.call(C),C==null)throw Error(Z(151));for(var _=w=null,E=v,M=v=0,$=null,D=C.next();E!==null&&!D.done;M++,D=C.next()){E.index>M?($=E,E=null):$=E.sibling;var k=d(y,E,D.value,S);if(k===null){E===null&&(E=$);break}e&&E&&k.alternate===null&&t(y,E),v=i(k,v,M),_===null?w=k:_.sibling=k,_=k,E=$}if(D.done)return n(y,E),st&&Vi(y,M),w;if(E===null){for(;!D.done;M++,D=C.next())D=f(y,D.value,S),D!==null&&(v=i(D,v,M),_===null?w=D:_.sibling=D,_=D);return st&&Vi(y,M),w}for(E=r(y,E);!D.done;M++,D=C.next())D=h(E,y,M,D.value,S),D!==null&&(e&&D.alternate!==null&&E.delete(D.key===null?M:D.key),v=i(D,v,M),_===null?w=D:_.sibling=D,_=D);return e&&E.forEach(function(R){return t(y,R)}),st&&Vi(y,M),w}function b(y,v,C,S){if(typeof C=="object"&&C!==null&&C.type===Ks&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case td:e:{for(var w=C.key,_=v;_!==null;){if(_.key===w){if(w=C.type,w===Ks){if(_.tag===7){n(y,_.sibling),v=o(_,C.props.children),v.return=y,y=v;break e}}else if(_.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Qo&&hb(w)===_.type){n(y,_.sibling),v=o(_,C.props),v.ref=Gl(y,_,C),v.return=y,y=v;break e}n(y,_);break}else t(y,_);_=_.sibling}C.type===Ks?(v=qi(C.props.children,y.mode,S,C.key),v.return=y,y=v):(S=of(C.type,C.key,C.props,null,y.mode,S),S.ref=Gl(y,v,C),S.return=y,y=S)}return s(y);case Ys:e:{for(_=C.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===C.containerInfo&&v.stateNode.implementation===C.implementation){n(y,v.sibling),v=o(v,C.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=F0(C,y.mode,S),v.return=y,y=v}return s(y);case Qo:return _=C._init,b(y,v,_(C._payload),S)}if(bl(C))return g(y,v,C,S);if(Cl(C))return m(y,v,C,S);Bd(y,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,v!==null&&v.tag===6?(n(y,v.sibling),v=o(v,C),v.return=y,y=v):(n(y,v),v=L0(C,y.mode,S),v.return=y,y=v),s(y)):n(y,v)}return b}var pa=mb(!0),vb=mb(!1),Yl={},qr=li(Yl),Kl=li(Yl),Zl=li(Yl);function Gi(e){if(e===Yl)throw Error(Z(174));return e}function e0(e,t){switch(Ze(Zl,t),Ze(Kl,e),Ze(qr,Yl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qg(t,e)}et(qr),Ze(qr,t)}function ga(){et(qr),et(Kl),et(Zl)}function yb(e){Gi(Zl.current);var t=Gi(qr.current),n=Qg(t,e.type);t!==n&&(Ze(Kl,e),Ze(qr,n))}function t0(e){Kl.current===e&&(et(qr),et(Kl))}var ct=li(0);function Ud(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var n0=[];function r0(){for(var e=0;e<n0.length;e++)n0[e]._workInProgressVersionPrimary=null;n0.length=0}var zd=xo.ReactCurrentDispatcher,o0=xo.ReactCurrentBatchConfig,Yi=0,ut=null,kt=null,$t=null,jd=!1,Jl=!1,Xl=0,D8=0;function qt(){throw Error(Z(321))}function i0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}function s0(e,t,n,r,o,i){if(Yi=i,ut=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zd.current=e===null||e.memoizedState===null?B8:U8,e=n(r,o),Jl){i=0;do{if(Jl=!1,Xl=0,25<=i)throw Error(Z(301));i+=1,$t=kt=null,t.updateQueue=null,zd.current=z8,e=n(r,o)}while(Jl)}if(zd.current=Hd,t=kt!==null&&kt.next!==null,Yi=0,$t=kt=ut=null,jd=!1,t)throw Error(Z(300));return e}function a0(){var e=Xl!==0;return Xl=0,e}function Qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?ut.memoizedState=$t=e:$t=$t.next=e,$t}function hr(){if(kt===null){var e=ut.alternate;e=e!==null?e.memoizedState:null}else e=kt.next;var t=$t===null?ut.memoizedState:$t.next;if(t!==null)$t=t,kt=e;else{if(e===null)throw Error(Z(310));kt=e,e={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},$t===null?ut.memoizedState=$t=e:$t=$t.next=e}return $t}function ql(e,t){return typeof t=="function"?t(e):t}function l0(e){var t=hr(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=kt,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,c=i;do{var u=c.lane;if((Yi&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,ut.lanes|=u,Ki|=u}c=c.next}while(c!==null&&c!==i);l===null?s=r:l.next=a,Mr(r,t.memoizedState)||(On=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ut.lanes|=i,Ki|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function c0(e){var t=hr(),n=t.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Mr(i,t.memoizedState)||(On=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Cb(){}function Sb(e,t){var n=ut,r=hr(),o=t(),i=!Mr(r.memoizedState,o);if(i&&(r.memoizedState=o,On=!0),r=r.queue,u0(xb.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||$t!==null&&$t.memoizedState.tag&1){if(n.flags|=2048,Ql(9,Eb.bind(null,n,r,o,t),void 0,null),Bt===null)throw Error(Z(349));Yi&30||bb(n,t,o)}return o}function bb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ut.updateQueue,t===null?(t={lastEffect:null,stores:null},ut.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Eb(e,t,n,r){t.value=n,t.getSnapshot=r,wb(t)&&Tb(e)}function xb(e,t,n){return n(function(){wb(t)&&Tb(e)})}function wb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mr(e,n)}catch{return!0}}function Tb(e){var t=Oo(e,1);t!==null&&Br(t,e,1,-1)}function _b(e){var t=Qr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ql,lastRenderedState:e},t.queue=e,e=e.dispatch=$8.bind(null,ut,e),[t.memoizedState,e]}function Ql(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ut.updateQueue,t===null?(t={lastEffect:null,stores:null},ut.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ib(){return hr().memoizedState}function Wd(e,t,n,r){var o=Qr();ut.flags|=e,o.memoizedState=Ql(1|t,n,void 0,r===void 0?null:r)}function Vd(e,t,n,r){var o=hr();r=r===void 0?null:r;var i=void 0;if(kt!==null){var s=kt.memoizedState;if(i=s.destroy,r!==null&&i0(r,s.deps)){o.memoizedState=Ql(t,n,i,r);return}}ut.flags|=e,o.memoizedState=Ql(1|t,n,i,r)}function Ob(e,t){return Wd(8390656,8,e,t)}function u0(e,t){return Vd(2048,8,e,t)}function Ab(e,t){return Vd(4,2,e,t)}function Rb(e,t){return Vd(4,4,e,t)}function Pb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nb(e,t,n){return n=n!=null?n.concat([e]):null,Vd(4,4,Pb.bind(null,t,e),n)}function d0(){}function kb(e,t){var n=hr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&i0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Mb(e,t){var n=hr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&i0(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Db(e,t,n){return Yi&21?(Mr(n,t)||(n=aS(),ut.lanes|=n,Ki|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,On=!0),e.memoizedState=n)}function L8(e,t){var n=Ve;Ve=n!==0&&4>n?n:4,e(!0);var r=o0.transition;o0.transition={};try{e(!1),t()}finally{Ve=n,o0.transition=r}}function Lb(){return hr().memoizedState}function F8(e,t,n){var r=mi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fb(e))$b(t,n);else if(n=ab(e,t,n,r),n!==null){var o=fn();Br(n,e,r,o),Bb(n,t,r)}}function $8(e,t,n){var r=mi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fb(e))$b(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Mr(a,s)){var l=t.interleaved;l===null?(o.next=o,Jh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=ab(e,t,o,r),n!==null&&(o=fn(),Br(n,e,r,o),Bb(n,t,r))}}function Fb(e){var t=e.alternate;return e===ut||t!==null&&t===ut}function $b(e,t){Jl=jd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dh(e,n)}}var Hd={readContext:gr,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useInsertionEffect:qt,useLayoutEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useMutableSource:qt,useSyncExternalStore:qt,useId:qt,unstable_isNewReconciler:!1},B8={readContext:gr,useCallback:function(e,t){return Qr().memoizedState=[e,t===void 0?null:t],e},useContext:gr,useEffect:Ob,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wd(4194308,4,Pb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wd(4,2,e,t)},useMemo:function(e,t){var n=Qr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=F8.bind(null,ut,e),[r.memoizedState,e]},useRef:function(e){var t=Qr();return e={current:e},t.memoizedState=e},useState:_b,useDebugValue:d0,useDeferredValue:function(e){return Qr().memoizedState=e},useTransition:function(){var e=_b(!1),t=e[0];return e=L8.bind(null,e[1]),Qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ut,o=Qr();if(st){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),Bt===null)throw Error(Z(349));Yi&30||bb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ob(xb.bind(null,r,i,e),[e]),r.flags|=2048,Ql(9,Eb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Qr(),t=Bt.identifierPrefix;if(st){var n=Io,r=_o;n=(r&~(1<<32-kr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=D8++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},U8={readContext:gr,useCallback:kb,useContext:gr,useEffect:u0,useImperativeHandle:Nb,useInsertionEffect:Ab,useLayoutEffect:Rb,useMemo:Mb,useReducer:l0,useRef:Ib,useState:function(){return l0(ql)},useDebugValue:d0,useDeferredValue:function(e){var t=hr();return Db(t,kt.memoizedState,e)},useTransition:function(){var e=l0(ql)[0],t=hr().memoizedState;return[e,t]},useMutableSource:Cb,useSyncExternalStore:Sb,useId:Lb,unstable_isNewReconciler:!1},z8={readContext:gr,useCallback:kb,useContext:gr,useEffect:u0,useImperativeHandle:Nb,useInsertionEffect:Ab,useLayoutEffect:Rb,useMemo:Mb,useReducer:c0,useRef:Ib,useState:function(){return c0(ql)},useDebugValue:d0,useDeferredValue:function(e){var t=hr();return kt===null?t.memoizedState=e:Db(t,kt.memoizedState,e)},useTransition:function(){var e=c0(ql)[0],t=hr().memoizedState;return[e,t]},useMutableSource:Cb,useSyncExternalStore:Sb,useId:Lb,unstable_isNewReconciler:!1};function ha(e,t){try{var n="",r=t;do n+=hO(r),r=r.return;while(r);var o=n}catch(i){o=`\nError generating stack: `+i.message+`\n`+i.stack}return{value:e,source:t,stack:o,digest:null}}function f0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function p0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var j8=typeof WeakMap=="function"?WeakMap:Map;function Ub(e,t,n){n=Ao(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qd||(qd=!0,O0=r),p0(e,t)},n}function zb(e,t,n){n=Ao(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){p0(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){p0(e,t),typeof r!="function"&&(gi===null?gi=new Set([this]):gi.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function jb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new j8;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=nA.bind(null,e,t,n),t.then(e,e))}function Wb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vb(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ao(-1,1),t.tag=2,fi(n,t,1))),n.lanes|=1),e)}var W8=xo.ReactCurrentOwner,On=!1;function dn(e,t,n,r){t.child=e===null?vb(t,null,n,r):pa(t,e.child,n,r)}function Hb(e,t,n,r,o){n=n.render;var i=t.ref;return fa(t,o),r=s0(e,t,n,r,i,o),n=a0(),e!==null&&!On?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ro(e,t,o)):(st&&n&&zh(t),t.flags|=1,dn(e,t,r,o),t.child)}function Gb(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!D0(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Yb(e,t,i,r,o)):(e=of(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Bl,n(s,r)&&e.ref===t.ref)return Ro(e,t,o)}return t.flags|=1,e=yi(i,r),e.ref=t.ref,e.return=t,t.child=e}function Yb(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Bl(i,r)&&e.ref===t.ref)if(On=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(On=!0);else return t.lanes=e.lanes,Ro(e,t,o)}return g0(e,t,n,r,o)}function Kb(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ze(va,Gn),Gn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ze(va,Gn),Gn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ze(va,Gn),Gn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ze(va,Gn),Gn|=r;return dn(e,t,o,n),t.child}function Zb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function g0(e,t,n,r,o){var i=In(n)?ji:Xt.current;return i=aa(t,i),fa(t,o),n=s0(e,t,n,r,i,o),r=a0(),e!==null&&!On?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ro(e,t,o)):(st&&r&&zh(t),t.flags|=1,dn(e,t,n,o),t.child)}function Jb(e,t,n,r,o){if(In(n)){var i=!0;Ad(t)}else i=!1;if(fa(t,o),t.stateNode===null)Yd(e,t),pb(t,n,r),Qh(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=gr(c):(c=In(n)?ji:Xt.current,c=aa(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&gb(t,s,r,c),di=!1;var d=t.memoizedState;s.state=d,Fd(t,r,s,o),l=t.memoizedState,a!==r||d!==l||_n.current||di?(typeof u=="function"&&(qh(t,n,u,r),l=t.memoizedState),(a=di||fb(t,n,a,r,d,l,c))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,lb(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Lr(t.type,a),s.props=c,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=gr(l):(l=In(n)?ji:Xt.current,l=aa(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&gb(t,s,r,l),di=!1,d=t.memoizedState,s.state=d,Fd(t,r,s,o);var g=t.memoizedState;a!==f||d!==g||_n.current||di?(typeof h=="function"&&(qh(t,n,h,r),g=t.memoizedState),(c=di||fb(t,n,c,r,d,g,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return h0(e,t,n,r,i,o)}function h0(e,t,n,r,o,i){Zb(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&eb(t,n,!1),Ro(e,t,i);r=t.stateNode,W8.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=pa(t,e.child,null,i),t.child=pa(t,null,a,i)):dn(e,t,a,i),t.memoizedState=r.state,o&&eb(t,n,!0),t.child}function Xb(e){var t=e.stateNode;t.pendingContext?qS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qS(e,t.context,!1),e0(e,t.containerInfo)}function qb(e,t,n,r,o){return ua(),Hh(o),t.flags|=256,dn(e,t,n,r),t.child}var m0={dehydrated:null,treeContext:null,retryLane:0};function v0(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qb(e,t,n){var r=t.pendingProps,o=ct.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ze(ct,o&1),e===null)return Vh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=sf(s,r,0,null),e=qi(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=v0(n),t.memoizedState=m0,e):y0(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return V8(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=yi(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=yi(a,i):(i=qi(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?v0(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=m0,r}return i=e.child,e=i.sibling,r=yi(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function y0(e,t){return t=sf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gd(e,t,n,r){return r!==null&&Hh(r),pa(t,e.child,null,n),e=y0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function V8(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=f0(Error(Z(422))),Gd(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=sf({mode:"visible",children:r.children},o,0,null),i=qi(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&pa(t,e.child,null,s),t.child.memoizedState=v0(s),t.memoizedState=m0,i);if(!(t.mode&1))return Gd(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(Z(419)),r=f0(i,r,void 0),Gd(e,t,s,r)}if(a=(s&e.childLanes)!==0,On||a){if(r=Bt,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Oo(e,o),Br(r,e,o,-1))}return M0(),r=f0(Error(Z(421))),Gd(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=rA.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Hn=ai(o.nextSibling),Vn=t,st=!0,Dr=null,e!==null&&(fr[pr++]=_o,fr[pr++]=Io,fr[pr++]=Wi,_o=e.id,Io=e.overflow,Wi=t),t=y0(t,r.children),t.flags|=4096,t)}function e2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zh(e.return,t,n)}function C0(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function t2(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(dn(e,t,r.children,n),r=ct.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&e2(e,n,t);else if(e.tag===19)e2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ze(ct,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ud(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),C0(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ud(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}C0(t,!0,n,null,i);break;case"together":C0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ro(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ki|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=yi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function H8(e,t,n){switch(t.tag){case 3:Xb(t),ua();break;case 5:yb(t);break;case 1:In(t.type)&&Ad(t);break;case 4:e0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ze(Md,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ze(ct,ct.current&1),t.flags|=128,null):n&t.child.childLanes?Qb(e,t,n):(Ze(ct,ct.current&1),e=Ro(e,t,n),e!==null?e.sibling:null);Ze(ct,ct.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return t2(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ze(ct,ct.current),r)break;return null;case 22:case 23:return t.lanes=0,Kb(e,t,n)}return Ro(e,t,n)}var n2,S0,r2,o2;n2=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},S0=function(){},r2=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Gi(qr.current);var i=null;switch(n){case"input":o=Zg(e,o),r=Zg(e,r),i=[];break;case"select":o=lt({},o,{value:void 0}),r=lt({},r,{value:void 0}),i=[];break;case"textarea":o=qg(e,o),r=qg(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_d)}eh(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(yl.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(yl.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Qe("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},o2=function(e,t,n,r){n!==r&&(t.flags|=4)};function ec(e,t){if(!st)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function G8(e,t,n){var r=t.pendingProps;switch(jh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(t),null;case 1:return In(t.type)&&Od(),Qt(t),null;case 3:return r=t.stateNode,ga(),et(_n),et(Xt),r0(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dr!==null&&(P0(Dr),Dr=null))),S0(e,t),Qt(t),null;case 5:t0(t);var o=Gi(Zl.current);if(n=t.type,e!==null&&t.stateNode!=null)r2(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return Qt(t),null}if(e=Gi(qr.current),kd(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Xr]=t,r[Vl]=i,e=(t.mode&1)!==0,n){case"dialog":Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":case"embed":Qe("load",r);break;case"video":case"audio":for(o=0;o<zl.length;o++)Qe(zl[o],r);break;case"source":Qe("error",r);break;case"img":case"image":case"link":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"input":FC(r,i),Qe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Qe("invalid",r);break;case"textarea":UC(r,i),Qe("invalid",r)}eh(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Td(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Td(r.textContent,a,e),o=["children",""+a]):yl.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Qe("scroll",r)}switch(n){case"input":nd(r),BC(r,i,!0);break;case"textarea":nd(r),jC(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=_d)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=WC(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xr]=t,e[Vl]=r,n2(e,t,!1,!1),t.stateNode=e;e:{switch(s=th(n,r),n){case"dialog":Qe("cancel",e),Qe("close",e),o=r;break;case"iframe":case"object":case"embed":Qe("load",e),o=r;break;case"video":case"audio":for(o=0;o<zl.length;o++)Qe(zl[o],e);o=r;break;case"source":Qe("error",e),o=r;break;case"img":case"image":case"link":Qe("error",e),Qe("load",e),o=r;break;case"details":Qe("toggle",e),o=r;break;case"input":FC(e,r),o=Zg(e,r),Qe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=lt({},r,{value:void 0}),Qe("invalid",e);break;case"textarea":UC(e,r),o=qg(e,r),Qe("invalid",e);break;default:o=r}eh(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?GC(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&VC(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&El(e,l):typeof l=="number"&&El(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(yl.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Qe("scroll",e):l!=null&&$g(e,i,l,s))}switch(n){case"input":nd(e),BC(e,r,!1);break;case"textarea":nd(e),jC(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ei(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Zs(e,!!r.multiple,i,!1):r.defaultValue!=null&&Zs(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=_d)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qt(t),null;case 6:if(e&&t.stateNode!=null)o2(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Z(166));if(n=Gi(Zl.current),Gi(qr.current),kd(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,(i=r.nodeValue!==n)&&(e=Vn,e!==null))switch(e.tag){case 3:Td(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Td(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xr]=t,t.stateNode=r}return Qt(t),null;case 13:if(et(ct),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(st&&Hn!==null&&t.mode&1&&!(t.flags&128))sb(),ua(),t.flags|=98560,i=!1;else if(i=kd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Z(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Z(317));i[Xr]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qt(t),i=!1}else Dr!==null&&(P0(Dr),Dr=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ct.current&1?Mt===0&&(Mt=3):M0())),t.updateQueue!==null&&(t.flags|=4),Qt(t),null);case 4:return ga(),S0(e,t),e===null&&jl(t.stateNode.containerInfo),Qt(t),null;case 10:return Kh(t.type._context),Qt(t),null;case 17:return In(t.type)&&Od(),Qt(t),null;case 19:if(et(ct),i=t.memoizedState,i===null)return Qt(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)ec(i,!1);else{if(Mt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ud(e),s!==null){for(t.flags|=128,ec(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ze(ct,ct.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ot()>ya&&(t.flags|=128,r=!0,ec(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ud(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ec(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!st)return Qt(t),null}else 2*Ot()-i.renderingStartTime>ya&&n!==1073741824&&(t.flags|=128,r=!0,ec(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ot(),t.sibling=null,n=ct.current,Ze(ct,r?n&1|2:n&1),t):(Qt(t),null);case 22:case 23:return k0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gn&1073741824&&(Qt(t),t.subtreeFlags&6&&(t.flags|=8192)):Qt(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function Y8(e,t){switch(jh(t),t.tag){case 1:return In(t.type)&&Od(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(),et(_n),et(Xt),r0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return t0(t),null;case 13:if(et(ct),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(ct),null;case 4:return ga(),null;case 10:return Kh(t.type._context),null;case 22:case 23:return k0(),null;case 24:return null;default:return null}}var Kd=!1,en=!1,K8=typeof WeakSet=="function"?WeakSet:Set,ie=null;function ma(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){gt(e,t,r)}else n.current=null}function b0(e,t,n){try{n()}catch(r){gt(e,t,r)}}var i2=!1;function Z8(e,t){if(kh=gd,e=LS(),Th(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++c===o&&(a=s),d===i&&++u===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mh={focusedElem:e,selectionRange:n},gd=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,b=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:Lr(t.type,m),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(S){gt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return g=i2,i2=!1,g}function tc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&b0(t,n,i)}o=o.next}while(o!==r)}}function Zd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function E0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function s2(e){var t=e.alternate;t!==null&&(e.alternate=null,s2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xr],delete t[Vl],delete t[$h],delete t[P8],delete t[N8])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function a2(e){return e.tag===5||e.tag===3||e.tag===4}function l2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||a2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function x0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_d));else if(r!==4&&(e=e.child,e!==null))for(x0(e,t,n),e=e.sibling;e!==null;)x0(e,t,n),e=e.sibling}function w0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(w0(e,t,n),e=e.sibling;e!==null;)w0(e,t,n),e=e.sibling}var Gt=null,Fr=!1;function pi(e,t,n){for(n=n.child;n!==null;)c2(e,t,n),n=n.sibling}function c2(e,t,n){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(ld,n)}catch{}switch(n.tag){case 5:en||ma(n,t);case 6:var r=Gt,o=Fr;Gt=null,pi(e,t,n),Gt=r,Fr=o,Gt!==null&&(Fr?(e=Gt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Gt.removeChild(n.stateNode));break;case 18:Gt!==null&&(Fr?(e=Gt,n=n.stateNode,e.nodeType===8?Fh(e.parentNode,n):e.nodeType===1&&Fh(e,n),kl(e)):Fh(Gt,n.stateNode));break;case 4:r=Gt,o=Fr,Gt=n.stateNode.containerInfo,Fr=!0,pi(e,t,n),Gt=r,Fr=o;break;case 0:case 11:case 14:case 15:if(!en&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&b0(n,t,s),o=o.next}while(o!==r)}pi(e,t,n);break;case 1:if(!en&&(ma(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){gt(n,t,a)}pi(e,t,n);break;case 21:pi(e,t,n);break;case 22:n.mode&1?(en=(r=en)||n.memoizedState!==null,pi(e,t,n),en=r):pi(e,t,n);break;default:pi(e,t,n)}}function u2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new K8),t.forEach(function(r){var o=oA.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $r(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Gt=a.stateNode,Fr=!1;break e;case 3:Gt=a.stateNode.containerInfo,Fr=!0;break e;case 4:Gt=a.stateNode.containerInfo,Fr=!0;break e}a=a.return}if(Gt===null)throw Error(Z(160));c2(i,s,o),Gt=null,Fr=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){gt(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)d2(t,e),t=t.sibling}function d2(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($r(t,e),eo(e),r&4){try{tc(3,e,e.return),Zd(3,e)}catch(m){gt(e,e.return,m)}try{tc(5,e,e.return)}catch(m){gt(e,e.return,m)}}break;case 1:$r(t,e),eo(e),r&512&&n!==null&&ma(n,n.return);break;case 5:if($r(t,e),eo(e),r&512&&n!==null&&ma(n,n.return),e.flags&32){var o=e.stateNode;try{El(o,"")}catch(m){gt(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&$C(o,i),th(a,s);var c=th(a,i);for(s=0;s<l.length;s+=2){var u=l[s],f=l[s+1];u==="style"?GC(o,f):u==="dangerouslySetInnerHTML"?VC(o,f):u==="children"?El(o,f):$g(o,u,f,c)}switch(a){case"input":Jg(o,i);break;case"textarea":zC(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?Zs(o,!!i.multiple,h,!1):d!==!!i.multiple&&(i.defaultValue!=null?Zs(o,!!i.multiple,i.defaultValue,!0):Zs(o,!!i.multiple,i.multiple?[]:"",!1))}o[Vl]=i}catch(m){gt(e,e.return,m)}}break;case 6:if($r(t,e),eo(e),r&4){if(e.stateNode===null)throw Error(Z(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(m){gt(e,e.return,m)}}break;case 3:if($r(t,e),eo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{kl(t.containerInfo)}catch(m){gt(e,e.return,m)}break;case 4:$r(t,e),eo(e);break;case 13:$r(t,e),eo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(I0=Ot())),r&4&&u2(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(en=(c=en)||u,$r(t,e),en=c):$r(t,e),eo(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(ie=e,u=e.child;u!==null;){for(f=ie=u;ie!==null;){switch(d=ie,h=d.child,d.tag){case 0:case 11:case 14:case 15:tc(4,d,d.return);break;case 1:ma(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){gt(r,n,m)}}break;case 5:ma(d,d.return);break;case 22:if(d.memoizedState!==null){g2(f);continue}}h!==null?(h.return=d,ie=h):g2(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{o=f.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=HC("display",s))}catch(m){gt(e,e.return,m)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(m){gt(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:$r(t,e),eo(e),r&4&&u2(e);break;case 21:break;default:$r(t,e),eo(e)}}function eo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(a2(n)){var r=n;break e}n=n.return}throw Error(Z(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(El(o,""),r.flags&=-33);var i=l2(e);w0(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=l2(e);x0(e,a,s);break;default:throw Error(Z(161))}}catch(l){gt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function J8(e,t,n){ie=e,f2(e)}function f2(e,t,n){for(var r=(e.mode&1)!==0;ie!==null;){var o=ie,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Kd;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||en;a=Kd;var c=en;if(Kd=s,(en=l)&&!c)for(ie=o;ie!==null;)s=ie,l=s.child,s.tag===22&&s.memoizedState!==null?h2(o):l!==null?(l.return=s,ie=l):h2(o);for(;i!==null;)ie=i,f2(i),i=i.sibling;ie=o,Kd=a,en=c}p2(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,ie=i):p2(e)}}function p2(e){for(;ie!==null;){var t=ie;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:en||Zd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!en)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Lr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&ub(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ub(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&kl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Z(163))}en||t.flags&512&&E0(t)}catch(d){gt(t,t.return,d)}}if(t===e){ie=null;break}if(n=t.sibling,n!==null){n.return=t.return,ie=n;break}ie=t.return}}function g2(e){for(;ie!==null;){var t=ie;if(t===e){ie=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ie=n;break}ie=t.return}}function h2(e){for(;ie!==null;){var t=ie;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zd(4,t)}catch(l){gt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){gt(t,o,l)}}var i=t.return;try{E0(t)}catch(l){gt(t,i,l)}break;case 5:var s=t.return;try{E0(t)}catch(l){gt(t,s,l)}}}catch(l){gt(t,t.return,l)}if(t===e){ie=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ie=a;break}ie=t.return}}var X8=Math.ceil,Jd=xo.ReactCurrentDispatcher,T0=xo.ReactCurrentOwner,mr=xo.ReactCurrentBatchConfig,Ne=0,Bt=null,Rt=null,Yt=0,Gn=0,va=li(0),Mt=0,nc=null,Ki=0,Xd=0,_0=0,rc=null,An=null,I0=0,ya=1/0,Po=null,qd=!1,O0=null,gi=null,Qd=!1,hi=null,ef=0,oc=0,A0=null,tf=-1,nf=0;function fn(){return Ne&6?Ot():tf!==-1?tf:tf=Ot()}function mi(e){return e.mode&1?Ne&2&&Yt!==0?Yt&-Yt:M8.transition!==null?(nf===0&&(nf=aS()),nf):(e=Ve,e!==0||(e=window.event,e=e===void 0?16:mS(e.type)),e):1}function Br(e,t,n,r){if(50<oc)throw oc=0,A0=null,Error(Z(185));Ol(e,n,r),(!(Ne&2)||e!==Bt)&&(e===Bt&&(!(Ne&2)&&(Xd|=n),Mt===4&&vi(e,Yt)),Rn(e,r),n===1&&Ne===0&&!(t.mode&1)&&(ya=Ot()+500,Rd&&ui()))}function Rn(e,t){var n=e.callbackNode;MO(e,t);var r=dd(e,e===Bt?Yt:0);if(r===0)n!==null&&oS(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&oS(n),t===1)e.tag===0?k8(v2.bind(null,e)):tb(v2.bind(null,e)),A8(function(){!(Ne&6)&&ui()}),n=null;else{switch(lS(r)){case 1:n=lh;break;case 4:n=iS;break;case 16:n=ad;break;case 536870912:n=sS;break;default:n=ad}n=T2(n,m2.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function m2(e,t){if(tf=-1,nf=0,Ne&6)throw Error(Z(327));var n=e.callbackNode;if(Ca()&&e.callbackNode!==n)return null;var r=dd(e,e===Bt?Yt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=rf(e,r);else{t=r;var o=Ne;Ne|=2;var i=C2();(Bt!==e||Yt!==t)&&(Po=null,ya=Ot()+500,Ji(e,t));do try{eA();break}catch(a){y2(e,a)}while(1);Yh(),Jd.current=i,Ne=o,Rt!==null?t=0:(Bt=null,Yt=0,t=Mt)}if(t!==0){if(t===2&&(o=ch(e),o!==0&&(r=o,t=R0(e,o))),t===1)throw n=nc,Ji(e,0),vi(e,r),Rn(e,Ot()),n;if(t===6)vi(e,r);else{if(o=e.current.alternate,!(r&30)&&!q8(o)&&(t=rf(e,r),t===2&&(i=ch(e),i!==0&&(r=i,t=R0(e,i))),t===1))throw n=nc,Ji(e,0),vi(e,r),Rn(e,Ot()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Z(345));case 2:Xi(e,An,Po);break;case 3:if(vi(e,r),(r&130023424)===r&&(t=I0+500-Ot(),10<t)){if(dd(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){fn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Lh(Xi.bind(null,e,An,Po),t);break}Xi(e,An,Po);break;case 4:if(vi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-kr(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ot()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*X8(r/1960))-r,10<r){e.timeoutHandle=Lh(Xi.bind(null,e,An,Po),r);break}Xi(e,An,Po);break;case 5:Xi(e,An,Po);break;default:throw Error(Z(329))}}}return Rn(e,Ot()),e.callbackNode===n?m2.bind(null,e):null}function R0(e,t){var n=rc;return e.current.memoizedState.isDehydrated&&(Ji(e,t).flags|=256),e=rf(e,t),e!==2&&(t=An,An=n,t!==null&&P0(t)),e}function P0(e){An===null?An=e:An.push.apply(An,e)}function q8(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Mr(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vi(e,t){for(t&=~_0,t&=~Xd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kr(t),r=1<<n;e[n]=-1,t&=~r}}function v2(e){if(Ne&6)throw Error(Z(327));Ca();var t=dd(e,0);if(!(t&1))return Rn(e,Ot()),null;var n=rf(e,t);if(e.tag!==0&&n===2){var r=ch(e);r!==0&&(t=r,n=R0(e,r))}if(n===1)throw n=nc,Ji(e,0),vi(e,t),Rn(e,Ot()),n;if(n===6)throw Error(Z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xi(e,An,Po),Rn(e,Ot()),null}function N0(e,t){var n=Ne;Ne|=1;try{return e(t)}finally{Ne=n,Ne===0&&(ya=Ot()+500,Rd&&ui())}}function Zi(e){hi!==null&&hi.tag===0&&!(Ne&6)&&Ca();var t=Ne;Ne|=1;var n=mr.transition,r=Ve;try{if(mr.transition=null,Ve=1,e)return e()}finally{Ve=r,mr.transition=n,Ne=t,!(Ne&6)&&ui()}}function k0(){Gn=va.current,et(va)}function Ji(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,O8(n)),Rt!==null)for(n=Rt.return;n!==null;){var r=n;switch(jh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Od();break;case 3:ga(),et(_n),et(Xt),r0();break;case 5:t0(r);break;case 4:ga();break;case 13:et(ct);break;case 19:et(ct);break;case 10:Kh(r.type._context);break;case 22:case 23:k0()}n=n.return}if(Bt=e,Rt=e=yi(e.current,null),Yt=Gn=t,Mt=0,nc=null,_0=Xd=Ki=0,An=rc=null,Hi!==null){for(t=0;t<Hi.length;t++)if(n=Hi[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Hi=null}return e}function y2(e,t){do{var n=Rt;try{if(Yh(),zd.current=Hd,jd){for(var r=ut.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}jd=!1}if(Yi=0,$t=kt=ut=null,Jl=!1,Xl=0,T0.current=null,n===null||n.return===null){Mt=1,nc=t,Rt=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=Yt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,f=u.tag;if(!(u.mode&1)&&(f===0||f===11||f===15)){var d=u.alternate;d?(u.updateQueue=d.updateQueue,u.memoizedState=d.memoizedState,u.lanes=d.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=Wb(s);if(h!==null){h.flags&=-257,Vb(h,s,a,i,t),h.mode&1&&jb(i,c,t),t=h,l=c;var g=t.updateQueue;if(g===null){var m=new Set;m.add(l),t.updateQueue=m}else g.add(l);break e}else{if(!(t&1)){jb(i,c,t),M0();break e}l=Error(Z(426))}}else if(st&&a.mode&1){var b=Wb(s);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Vb(b,s,a,i,t),Hh(ha(l,a));break e}}i=l=ha(l,a),Mt!==4&&(Mt=2),rc===null?rc=[i]:rc.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=Ub(i,l,t);cb(i,y);break e;case 1:a=l;var v=i.type,C=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(gi===null||!gi.has(C)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=zb(i,a,t);cb(i,S);break e}}i=i.return}while(i!==null)}b2(n)}catch(w){t=w,Rt===n&&n!==null&&(Rt=n=n.return);continue}break}while(1)}function C2(){var e=Jd.current;return Jd.current=Hd,e===null?Hd:e}function M0(){(Mt===0||Mt===3||Mt===2)&&(Mt=4),Bt===null||!(Ki&268435455)&&!(Xd&268435455)||vi(Bt,Yt)}function rf(e,t){var n=Ne;Ne|=2;var r=C2();(Bt!==e||Yt!==t)&&(Po=null,Ji(e,t));do try{Q8();break}catch(o){y2(e,o)}while(1);if(Yh(),Ne=n,Jd.current=r,Rt!==null)throw Error(Z(261));return Bt=null,Yt=0,Mt}function Q8(){for(;Rt!==null;)S2(Rt)}function eA(){for(;Rt!==null&&!TO();)S2(Rt)}function S2(e){var t=w2(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,t===null?b2(e):Rt=t,T0.current=null}function b2(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Y8(n,t),n!==null){n.flags&=32767,Rt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Mt=6,Rt=null;return}}else if(n=G8(n,t,Gn),n!==null){Rt=n;return}if(t=t.sibling,t!==null){Rt=t;return}Rt=t=e}while(t!==null);Mt===0&&(Mt=5)}function Xi(e,t,n){var r=Ve,o=mr.transition;try{mr.transition=null,Ve=1,tA(e,t,n,r)}finally{mr.transition=o,Ve=r}return null}function tA(e,t,n,r){do Ca();while(hi!==null);if(Ne&6)throw Error(Z(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Z(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(DO(e,i),e===Bt&&(Rt=Bt=null,Yt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Qd||(Qd=!0,T2(ad,function(){return Ca(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=mr.transition,mr.transition=null;var s=Ve;Ve=1;var a=Ne;Ne|=4,T0.current=null,Z8(e,n),d2(n,e),b8(Mh),gd=!!kh,Mh=kh=null,e.current=n,J8(n),_O(),Ne=a,Ve=s,mr.transition=i}else e.current=n;if(Qd&&(Qd=!1,hi=e,ef=o),i=e.pendingLanes,i===0&&(gi=null),AO(n.stateNode),Rn(e,Ot()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(qd)throw qd=!1,e=O0,O0=null,e;return ef&1&&e.tag!==0&&Ca(),i=e.pendingLanes,i&1?e===A0?oc++:(oc=0,A0=e):oc=0,ui(),null}function Ca(){if(hi!==null){var e=lS(ef),t=mr.transition,n=Ve;try{if(mr.transition=null,Ve=16>e?16:e,hi===null)var r=!1;else{if(e=hi,hi=null,ef=0,Ne&6)throw Error(Z(331));var o=Ne;for(Ne|=4,ie=e.current;ie!==null;){var i=ie,s=i.child;if(ie.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(ie=c;ie!==null;){var u=ie;switch(u.tag){case 0:case 11:case 15:tc(8,u,i)}var f=u.child;if(f!==null)f.return=u,ie=f;else for(;ie!==null;){u=ie;var d=u.sibling,h=u.return;if(s2(u),u===c){ie=null;break}if(d!==null){d.return=h,ie=d;break}ie=h}}}var g=i.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(m!==null)}}ie=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,ie=s;else e:for(;ie!==null;){if(i=ie,i.flags&2048)switch(i.tag){case 0:case 11:case 15:tc(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,ie=y;break e}ie=i.return}}var v=e.current;for(ie=v;ie!==null;){s=ie;var C=s.child;if(s.subtreeFlags&2064&&C!==null)C.return=s,ie=C;else e:for(s=v;ie!==null;){if(a=ie,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Zd(9,a)}}catch(w){gt(a,a.return,w)}if(a===s){ie=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,ie=S;break e}ie=a.return}}if(Ne=o,ui(),Jr&&typeof Jr.onPostCommitFiberRoot=="function")try{Jr.onPostCommitFiberRoot(ld,e)}catch{}r=!0}return r}finally{Ve=n,mr.transition=t}}return!1}function E2(e,t,n){t=ha(n,t),t=Ub(e,t,1),e=fi(e,t,1),t=fn(),e!==null&&(Ol(e,1,t),Rn(e,t))}function gt(e,t,n){if(e.tag===3)E2(e,e,n);else for(;t!==null;){if(t.tag===3){E2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gi===null||!gi.has(r))){e=ha(n,e),e=zb(t,e,1),t=fi(t,e,1),e=fn(),t!==null&&(Ol(t,1,e),Rn(t,e));break}}t=t.return}}function nA(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fn(),e.pingedLanes|=e.suspendedLanes&n,Bt===e&&(Yt&n)===n&&(Mt===4||Mt===3&&(Yt&130023424)===Yt&&500>Ot()-I0?Ji(e,0):_0|=n),Rn(e,t)}function x2(e,t){t===0&&(e.mode&1?(t=ud,ud<<=1,!(ud&130023424)&&(ud=4194304)):t=1);var n=fn();e=Oo(e,t),e!==null&&(Ol(e,t,n),Rn(e,n))}function rA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),x2(e,n)}function oA(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),x2(e,n)}var w2;w2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)On=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return On=!1,H8(e,t,n);On=!!(e.flags&131072)}else On=!1,st&&t.flags&1048576&&nb(t,Nd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yd(e,t),e=t.pendingProps;var o=aa(t,Xt.current);fa(t,n),o=s0(null,t,r,e,o,n);var i=a0();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,In(r)?(i=!0,Ad(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Xh(t),o.updater=$d,t.stateNode=o,o._reactInternals=t,Qh(t,r,e,n),t=h0(null,t,r,!0,i,n)):(t.tag=0,st&&i&&zh(t),dn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=sA(r),e=Lr(r,e),o){case 0:t=g0(null,t,r,e,n);break e;case 1:t=Jb(null,t,r,e,n);break e;case 11:t=Hb(null,t,r,e,n);break e;case 14:t=Gb(null,t,r,Lr(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lr(r,o),g0(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lr(r,o),Jb(e,t,r,o,n);case 3:e:{if(Xb(t),e===null)throw Error(Z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,lb(e,t),Fd(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ha(Error(Z(423)),t),t=qb(e,t,r,n,o);break e}else if(r!==o){o=ha(Error(Z(424)),t),t=qb(e,t,r,n,o);break e}else for(Hn=ai(t.stateNode.containerInfo.firstChild),Vn=t,st=!0,Dr=null,n=vb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ua(),r===o){t=Ro(e,t,n);break e}dn(e,t,r,n)}t=t.child}return t;case 5:return yb(t),e===null&&Vh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Dh(r,o)?s=null:i!==null&&Dh(r,i)&&(t.flags|=32),Zb(e,t),dn(e,t,s,n),t.child;case 6:return e===null&&Vh(t),null;case 13:return Qb(e,t,n);case 4:return e0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pa(t,null,r,n):dn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lr(r,o),Hb(e,t,r,o,n);case 7:return dn(e,t,t.pendingProps,n),t.child;case 8:return dn(e,t,t.pendingProps.children,n),t.child;case 12:return dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Ze(Md,r._currentValue),r._currentValue=s,i!==null)if(Mr(i.value,s)){if(i.children===o.children&&!_n.current){t=Ro(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Ao(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Zh(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Zh(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}dn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,fa(t,n),o=gr(o),r=r(o),t.flags|=1,dn(e,t,r,n),t.child;case 14:return r=t.type,o=Lr(r,t.pendingProps),o=Lr(r.type,o),Gb(e,t,r,o,n);case 15:return Yb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lr(r,o),Yd(e,t),t.tag=1,In(r)?(e=!0,Ad(t)):e=!1,fa(t,n),pb(t,r,o),Qh(t,r,o,n),h0(null,t,r,!0,e,n);case 19:return t2(e,t,n);case 22:return Kb(e,t,n)}throw Error(Z(156,t.tag))};function T2(e,t){return rS(e,t)}function iA(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vr(e,t,n,r){return new iA(e,t,n,r)}function D0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sA(e){if(typeof e=="function")return D0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zg)return 11;if(e===Vg)return 14}return 2}function yi(e,t){var n=e.alternate;return n===null?(n=vr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function of(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")D0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ks:return qi(n.children,o,i,t);case Bg:s=8,o|=8;break;case Ug:return e=vr(12,n,t,o|2),e.elementType=Ug,e.lanes=i,e;case jg:return e=vr(13,n,t,o),e.elementType=jg,e.lanes=i,e;case Wg:return e=vr(19,n,t,o),e.elementType=Wg,e.lanes=i,e;case kC:return sf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case PC:s=10;break e;case NC:s=9;break e;case zg:s=11;break e;case Vg:s=14;break e;case Qo:s=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=vr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function qi(e,t,n,r){return e=vr(7,e,r,t),e.lanes=n,e}function sf(e,t,n,r){return e=vr(22,e,r,t),e.elementType=kC,e.lanes=n,e.stateNode={isHidden:!1},e}function L0(e,t,n){return e=vr(6,e,null,t),e.lanes=n,e}function F0(e,t,n){return t=vr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aA(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uh(0),this.expirationTimes=uh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $0(e,t,n,r,o,i,s,a,l){return e=new aA(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=vr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xh(i),e}function lA(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ys,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _2(e){if(!e)return ci;e=e._reactInternals;e:{if(Ui(e)!==e||e.tag!==1)throw Error(Z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(In(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Z(171))}if(e.tag===1){var n=e.type;if(In(n))return QS(e,n,t)}return t}function I2(e,t,n,r,o,i,s,a,l){return e=$0(n,r,!0,e,o,i,s,a,l),e.context=_2(null),n=e.current,r=fn(),o=mi(n),i=Ao(r,o),i.callback=t??null,fi(n,i,o),e.current.lanes=o,Ol(e,o,r),Rn(e,r),e}function af(e,t,n,r){var o=t.current,i=fn(),s=mi(o);return n=_2(n),t.context===null?t.context=n:t.pendingContext=n,t=Ao(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=fi(o,t,s),e!==null&&(Br(e,o,s,i),Ld(e,o,s)),s}function lf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function O2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function B0(e,t){O2(e,t),(e=e.alternate)&&O2(e,t)}function cA(){return null}var A2=typeof reportError=="function"?reportError:function(e){console.error(e)};function U0(e){this._internalRoot=e}cf.prototype.render=U0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));af(e,t,null,null)},cf.prototype.unmount=U0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zi(function(){af(null,e,null,null)}),t[wo]=null}};function cf(e){this._internalRoot=e}cf.prototype.unstable_scheduleHydration=function(e){if(e){var t=dS();e={blockedOn:null,target:e,priority:t};for(var n=0;n<oi.length&&t!==0&&t<oi[n].priority;n++);oi.splice(n,0,e),n===0&&gS(e)}};function z0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function uf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function R2(){}function uA(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=lf(s);i.call(c)}}var s=I2(t,r,e,0,null,!1,!1,"",R2);return e._reactRootContainer=s,e[wo]=s.current,jl(e.nodeType===8?e.parentNode:e),Zi(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=lf(l);a.call(c)}}var l=$0(e,0,!1,null,null,!1,!1,"",R2);return e._reactRootContainer=l,e[wo]=l.current,jl(e.nodeType===8?e.parentNode:e),Zi(function(){af(t,l,n,r)}),l}function df(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=lf(s);a.call(l)}}af(t,s,e,o)}else s=uA(n,t,e,o,r);return lf(s)}cS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Il(t.pendingLanes);n!==0&&(dh(t,n|1),Rn(t,Ot()),!(Ne&6)&&(ya=Ot()+500,ui()))}break;case 13:Zi(function(){var r=Oo(e,1);if(r!==null){var o=fn();Br(r,e,1,o)}}),B0(e,1)}},fh=function(e){if(e.tag===13){var t=Oo(e,134217728);if(t!==null){var n=fn();Br(t,e,134217728,n)}B0(e,134217728)}},uS=function(e){if(e.tag===13){var t=mi(e),n=Oo(e,t);if(n!==null){var r=fn();Br(n,e,t,r)}B0(e,t)}},dS=function(){return Ve},fS=function(e,t){var n=Ve;try{return Ve=e,t()}finally{Ve=n}},oh=function(e,t,n){switch(t){case"input":if(Jg(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+\'][type="radio"]\'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Id(r);if(!o)throw Error(Z(90));LC(r),Jg(r,o)}}}break;case"textarea":zC(e,n);break;case"select":t=n.value,t!=null&&Zs(e,!!n.multiple,t,!1)}},JC=N0,XC=Zi;var dA={usingClientEntryPoint:!1,Events:[Hl,ia,Id,KC,ZC,N0]},ic={findFiberByHostInstance:zi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},fA={bundleType:ic.bundleType,version:ic.version,rendererPackageName:ic.rendererPackageName,rendererConfig:ic.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tS(e),e===null?null:e.stateNode},findFiberByHostInstance:ic.findFiberByHostInstance||cA,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ff=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ff.isDisabled&&ff.supportsFiber)try{ld=ff.inject(fA),Jr=ff}catch{}}zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dA,zn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!z0(t))throw Error(Z(200));return lA(e,t,null,n)},zn.createRoot=function(e,t){if(!z0(e))throw Error(Z(299));var n=!1,r="",o=A2;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=$0(e,1,!1,null,null,n,!1,r,o),e[wo]=t.current,jl(e.nodeType===8?e.parentNode:e),new U0(t)},zn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=tS(t),e=e===null?null:e.stateNode,e},zn.flushSync=function(e){return Zi(e)},zn.hydrate=function(e,t,n){if(!uf(t))throw Error(Z(200));return df(null,e,t,!0,n)},zn.hydrateRoot=function(e,t,n){if(!z0(e))throw Error(Z(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=A2;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=I2(t,null,e,1,n??null,o,!1,i,s),e[wo]=t.current,jl(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new cf(t)},zn.render=function(e,t,n){if(!uf(t))throw Error(Z(200));return df(null,e,t,!1,n)},zn.unmountComponentAtNode=function(e){if(!uf(e))throw Error(Z(40));return e._reactRootContainer?(Zi(function(){df(null,null,e,!1,function(){e._reactRootContainer=null,e[wo]=null})}),!0):!1},zn.unstable_batchedUpdates=N0,zn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!uf(n))throw Error(Z(200));if(e==null||e._reactInternals===void 0)throw Error(Z(38));return df(e,t,n,!1,r)},zn.version="18.2.0-next-9e3b772b8-20220608";function P2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P2)}catch(e){console.error(e)}}P2(),wC.exports=zn;var Sa=wC.exports;const yr=Xo(Sa),N2={disabled:!1},pf=U.createContext(null);var pA=function(t){return t.scrollTop},sc="unmounted",Qi="exited",es="entering",ba="entered",j0="exiting",No=function(e){xC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Qi,i.appearStatus=es):l=ba:r.unmountOnExit||r.mountOnEnter?l=sc:l=Qi,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===sc?{status:Qi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==es&&s!==ba&&(i=es):(s===es||s===ba)&&(i=j0)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===es){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:yr.findDOMNode(this);s&&pA(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qi&&this.setState({status:sc})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[yr.findDOMNode(this),a],c=l[0],u=l[1],f=this.getTimeouts(),d=a?f.appear:f.enter;if(!o&&!s||N2.disabled){this.safeSetState({status:ba},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:es},function(){i.props.onEntering(c,u),i.onTransitionEnd(d,function(){i.safeSetState({status:ba},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:yr.findDOMNode(this);if(!i||N2.disabled){this.safeSetState({status:Qi},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:j0},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Qi},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:yr.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===sc)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=Se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return U.createElement(pf.Provider,{value:null},typeof s=="function"?s(o,a):U.cloneElement(U.Children.only(s),a))},t}(U.Component);No.contextType=pf,No.propTypes={};function Ea(){}No.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ea,onEntering:Ea,onEntered:Ea,onExit:Ea,onExiting:Ea,onExited:Ea},No.UNMOUNTED=sc,No.EXITED=Qi,No.ENTERING=es,No.ENTERED=ba,No.EXITING=j0;const k2=No;function gA(e){if(e===void 0)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}function W0(e,t){var n=function(i){return t&&p.isValidElement(i)?t(i):i},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function hA(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;s<r[l].length;s++){var c=r[l][s];a[r[l][s]]=n(c)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function ts(e,t,n){return n[t]!=null?n[t]:e.props[t]}function mA(e,t){return W0(e.children,function(n){return p.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ts(n,"appear",e),enter:ts(n,"enter",e),exit:ts(n,"exit",e)})})}function vA(e,t,n){var r=W0(e.children),o=hA(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(p.isValidElement(s)){var a=i in t,l=i in r,c=t[i],u=p.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[i]=p.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:ts(s,"exit",e),enter:ts(s,"enter",e)}):!l&&a&&!u?o[i]=p.cloneElement(s,{in:!1}):l&&a&&p.isValidElement(c)&&(o[i]=p.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:ts(s,"exit",e),enter:ts(s,"enter",e)}))}}),o}var yA=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},CA={component:"div",childFactory:function(t){return t}},V0=function(e){xC(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(gA(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?mA(o,a):vA(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=W0(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=W({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=Se(o,["component","childFactory"]),l=this.state.contextValue,c=yA(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?U.createElement(pf.Provider,{value:l},c):U.createElement(pf.Provider,{value:l},U.createElement(i,a,c))},t}(U.Component);V0.propTypes={},V0.defaultProps=CA;const SA=V0;function bA(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,f]=p.useState(!1),d=Re(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},g=Re(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&f(!0),p.useEffect(()=>{if(!a&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,a,c]),le("span",{className:d,style:h,children:le("span",{className:g})})}const Cr=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),EA=["center","classes","className"];let gf=e=>e,M2,D2,L2,F2;const H0=550,xA=80,wA=sl(M2||(M2=gf`\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n`)),TA=sl(D2||(D2=gf`\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n`)),_A=sl(L2||(L2=gf`\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n`)),IA=Ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),OA=Ee(bA,{name:"MuiTouchRipple",slot:"Ripple"})(F2||(F2=gf`\n opacity: 0;\n position: absolute;\n\n &.${0} {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n &.${0} {\n animation-duration: ${0}ms;\n }\n\n & .${0} {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & .${0} {\n opacity: 0;\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n & .${0} {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ${0};\n animation-duration: 2500ms;\n animation-timing-function: ${0};\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n`),Cr.rippleVisible,wA,H0,({theme:e})=>e.transitions.easing.easeInOut,Cr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Cr.child,Cr.childLeaving,TA,H0,({theme:e})=>e.transitions.easing.easeInOut,Cr.childPulsate,_A,({theme:e})=>e.transitions.easing.easeInOut),AA=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=Se(r,EA),[l,c]=p.useState([]),u=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=p.useRef(!1),h=$s(),g=p.useRef(null),m=p.useRef(null),b=p.useCallback(S=>{const{pulsate:w,rippleX:_,rippleY:E,rippleSize:M,cb:$}=S;c(D=>[...D,le(OA,{classes:{ripple:Re(i.ripple,Cr.ripple),rippleVisible:Re(i.rippleVisible,Cr.rippleVisible),ripplePulsate:Re(i.ripplePulsate,Cr.ripplePulsate),child:Re(i.child,Cr.child),childLeaving:Re(i.childLeaving,Cr.childLeaving),childPulsate:Re(i.childPulsate,Cr.childPulsate)},timeout:H0,pulsate:w,rippleX:_,rippleY:E,rippleSize:M},u.current)]),u.current+=1,f.current=$},[i]),y=p.useCallback((S={},w={},_=()=>{})=>{const{pulsate:E=!1,center:M=o||w.pulsate,fakeElement:$=!1}=w;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const D=$?null:m.current,k=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,O,I;if(M||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)R=Math.round(k.width/2),O=Math.round(k.height/2);else{const{clientX:A,clientY:P}=S.touches&&S.touches.length>0?S.touches[0]:S;R=Math.round(A-k.left),O=Math.round(P-k.top)}if(M)I=Math.sqrt((2*k.width**2+k.height**2)/3),I%2===0&&(I+=1);else{const A=Math.max(Math.abs((D?D.clientWidth:0)-R),R)*2+2,P=Math.max(Math.abs((D?D.clientHeight:0)-O),O)*2+2;I=Math.sqrt(A**2+P**2)}S!=null&&S.touches?g.current===null&&(g.current=()=>{b({pulsate:E,rippleX:R,rippleY:O,rippleSize:I,cb:_})},h.start(xA,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:E,rippleX:R,rippleY:O,rippleSize:I,cb:_})},[o,b,h]),v=p.useCallback(()=>{y({},{pulsate:!0})},[y]),C=p.useCallback((S,w)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&g.current){g.current(),g.current=null,h.start(0,()=>{C(S,w)});return}g.current=null,c(_=>_.length>0?_.slice(1):_),f.current=w},[h]);return p.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:C}),[v,y,C]),le(IA,W({className:Re(Cr.root,i.root,s),ref:m},a,{children:le(SA,{component:null,exit:!0,children:l})}))});function RA(e){return jt("MuiButtonBase",e)}const PA=_t("MuiButtonBase",["root","disabled","focusVisible"]),NA=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],kA=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Vt({root:["root",t&&"disabled",n&&"focusVisible"]},RA,o);return n&&r&&(s.root+=` ${r}`),s},MA=Ee("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${PA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),G0=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:g,onClick:m,onContextMenu:b,onDragLeave:y,onFocus:v,onFocusVisible:C,onKeyDown:S,onKeyUp:w,onMouseDown:_,onMouseLeave:E,onMouseUp:M,onTouchEnd:$,onTouchMove:D,onTouchStart:k,tabIndex:R=0,TouchRippleProps:O,touchRippleRef:I,type:A}=r,P=Se(r,NA),N=p.useRef(null),T=p.useRef(null),L=Ft(T,I),{isFocusVisibleRef:z,onFocus:B,onBlur:V,ref:H}=jy(),[K,G]=p.useState(!1);c&&K&&G(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),N.current.focus()}}),[]);const[te,ne]=p.useState(!1);p.useEffect(()=>{ne(!0)},[]);const ge=te&&!u&&!c;p.useEffect(()=>{K&&d&&!u&&te&&T.current.pulsate()},[u,d,K,te]);function se(pe,Dt,Pr=f){return bo(sn=>(Dt&&Dt(sn),!Pr&&T.current&&T.current[pe](sn),!0))}const he=se("start",_),fe=se("stop",b),Ce=se("stop",y),Q=se("stop",M),ve=se("stop",pe=>{K&&pe.preventDefault(),E&&E(pe)}),X=se("start",k),de=se("stop",$),ae=se("stop",D),xe=se("stop",pe=>{V(pe),z.current===!1&&G(!1),g&&g(pe)},!1),qe=bo(pe=>{N.current||(N.current=pe.currentTarget),B(pe),z.current===!0&&(G(!0),C&&C(pe)),v&&v(pe)}),Pe=()=>{const pe=N.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},Ke=p.useRef(!1),bt=bo(pe=>{d&&!Ke.current&&K&&T.current&&pe.key===" "&&(Ke.current=!0,T.current.stop(pe,()=>{T.current.start(pe)})),pe.target===pe.currentTarget&&Pe()&&pe.key===" "&&pe.preventDefault(),S&&S(pe),pe.target===pe.currentTarget&&Pe()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),m&&m(pe))}),Et=bo(pe=>{d&&pe.key===" "&&T.current&&K&&!pe.defaultPrevented&&(Ke.current=!1,T.current.stop(pe,()=>{T.current.pulsate(pe)})),w&&w(pe),m&&pe.target===pe.currentTarget&&Pe()&&pe.key===" "&&!pe.defaultPrevented&&m(pe)});let ke=l;ke==="button"&&(P.href||P.to)&&(ke=h);const Ue={};ke==="button"?(Ue.type=A===void 0?"button":A,Ue.disabled=c):(!P.href&&!P.to&&(Ue.role="button"),c&&(Ue["aria-disabled"]=c));const re=Ft(n,H,N),me=W({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:d,tabIndex:R,focusVisible:K}),we=kA(me);return Co(MA,W({as:ke,className:Re(we.root,a),ownerState:me,onBlur:xe,onClick:m,onContextMenu:fe,onFocus:qe,onKeyDown:bt,onKeyUp:Et,onMouseDown:he,onMouseLeave:ve,onMouseUp:Q,onDragLeave:Ce,onTouchEnd:de,onTouchMove:ae,onTouchStart:X,ref:re,tabIndex:c?-1:R,type:A},Ue,P,{children:[s,ge?le(AA,W({ref:L,center:i},O)):null]}))});function DA(e){return jt("MuiIconButton",e)}const LA=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),FA=["edge","children","className","color","disabled","disableFocusRipple","size"],$A=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${$e(r)}`,o&&`edge${$e(o)}`,`size${$e(i)}`]};return Vt(s,DA,t)},BA=Ee(G0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${$e(n.color)}`],n.edge&&t[`edge${$e(n.edge)}`],t[`size${$e(n.size)}`]]}})(({theme:e,ownerState:t})=>W({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return W({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&W({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":W({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${LA.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Y0=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Se(r,FA),d=W({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:u}),h=$A(d);return le(BA,W({className:Re(h.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},f,{ownerState:d,children:i}))}),K0=p.createContext({}),$2=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),B2=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),U2=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function UA(e){return jt("MuiMenuItem",e)}const ac=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),zA=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],jA=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},WA=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=Vt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},UA,s);return W({},s,l)},VA=Ee(G0,{shouldForwardProp:e=>ed(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:jA})(({theme:e,ownerState:t})=>W({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ac.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ac.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ac.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ac.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ac.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${$2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${$2.inset}`]:{marginLeft:52},[`& .${U2.root}`]:{marginTop:0,marginBottom:0},[`& .${U2.inset}`]:{paddingLeft:36},[`& .${B2.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&W({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${B2.root} svg`]:{fontSize:"1.25rem"}}))),z2=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:d}=r,h=Se(r,zA),g=p.useContext(K0),m=p.useMemo(()=>({dense:s||g.dense||!1,disableGutters:l}),[g.dense,s,l]),b=p.useRef(null);Fi(()=>{o&&b.current&&b.current.focus()},[o]);const y=W({},r,{dense:m.dense,divider:a,disableGutters:l}),v=WA(r),C=Ft(b,n);let S;return r.disabled||(S=f!==void 0?f:-1),le(K0.Provider,{value:m,children:le(VA,W({ref:C,role:u,tabIndex:S,component:i,focusVisibleClassName:Re(v.focusVisible,c),className:Re(v.root,d)},h,{ownerState:y,classes:v}))})});var He={};/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var Z0=Symbol.for("react.element"),J0=Symbol.for("react.portal"),hf=Symbol.for("react.fragment"),mf=Symbol.for("react.strict_mode"),vf=Symbol.for("react.profiler"),yf=Symbol.for("react.provider"),Cf=Symbol.for("react.context"),HA=Symbol.for("react.server_context"),Sf=Symbol.for("react.forward_ref"),bf=Symbol.for("react.suspense"),Ef=Symbol.for("react.suspense_list"),xf=Symbol.for("react.memo"),wf=Symbol.for("react.lazy"),GA=Symbol.for("react.offscreen"),j2;j2=Symbol.for("react.module.reference");function Sr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Z0:switch(e=e.type,e){case hf:case vf:case mf:case bf:case Ef:return e;default:switch(e=e&&e.$$typeof,e){case HA:case Cf:case Sf:case wf:case xf:case yf:return e;default:return t}}case J0:return t}}}He.ContextConsumer=Cf,He.ContextProvider=yf,He.Element=Z0,He.ForwardRef=Sf,He.Fragment=hf,He.Lazy=wf,He.Memo=xf,He.Portal=J0,He.Profiler=vf,He.StrictMode=mf,He.Suspense=bf,He.SuspenseList=Ef,He.isAsyncMode=function(){return!1},He.isConcurrentMode=function(){return!1},He.isContextConsumer=function(e){return Sr(e)===Cf},He.isContextProvider=function(e){return Sr(e)===yf},He.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Z0},He.isForwardRef=function(e){return Sr(e)===Sf},He.isFragment=function(e){return Sr(e)===hf},He.isLazy=function(e){return Sr(e)===wf},He.isMemo=function(e){return Sr(e)===xf},He.isPortal=function(e){return Sr(e)===J0},He.isProfiler=function(e){return Sr(e)===vf},He.isStrictMode=function(e){return Sr(e)===mf},He.isSuspense=function(e){return Sr(e)===bf},He.isSuspenseList=function(e){return Sr(e)===Ef},He.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hf||e===vf||e===mf||e===bf||e===Ef||e===GA||typeof e=="object"&&e!==null&&(e.$$typeof===wf||e.$$typeof===xf||e.$$typeof===yf||e.$$typeof===Cf||e.$$typeof===Sf||e.$$typeof===j2||e.getModuleId!==void 0)},He.typeOf=Sr;function YA(e){return jt("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const KA=["children","className","component","dense","disablePadding","subheader"],ZA=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Vt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},YA,t)},JA=Ee("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>W({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),XA=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=Se(r,KA),f=p.useMemo(()=>({dense:a}),[a]),d=W({},r,{component:s,dense:a,disablePadding:l}),h=ZA(d);return le(K0.Provider,{value:f,children:Co(JA,W({as:s,className:Re(h.root,i),ref:n,ownerState:d},u,{children:[c,o]}))})}),qA=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function X0(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function W2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function V2(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function lc(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!V2(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const QA=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,d=Se(t,qA),h=p.useRef(null),g=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Fi(()=>{o&&h.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,{direction:S})=>{const w=!h.current.style.width;if(C.clientHeight<h.current.clientHeight&&w){const _=`${Wy(Wt(C))}px`;h.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=_,h.current.style.width=`calc(100% + ${_})`}return h.current}}),[]);const m=C=>{const S=h.current,w=C.key,_=Wt(S).activeElement;if(w==="ArrowDown")C.preventDefault(),lc(S,_,c,l,X0);else if(w==="ArrowUp")C.preventDefault(),lc(S,_,c,l,W2);else if(w==="Home")C.preventDefault(),lc(S,null,c,l,X0);else if(w==="End")C.preventDefault(),lc(S,null,c,l,W2);else if(w.length===1){const E=g.current,M=w.toLowerCase(),$=performance.now();E.keys.length>0&&($-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&M!==E.keys[0]&&(E.repeating=!1)),E.lastTime=$,E.keys.push(M);const D=_&&!E.repeating&&V2(_,E);E.previousKeyMatched&&(D||lc(S,_,!1,l,X0,E))?C.preventDefault():E.previousKeyMatched=!1}u&&u(C)},b=Ft(h,n);let y=-1;p.Children.forEach(s,(C,S)=>{if(!p.isValidElement(C)){y===S&&(y+=1,y>=s.length&&(y=-1));return}C.props.disabled||(f==="selectedMenu"&&C.props.selected||y===-1)&&(y=S),y===S&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(y+=1,y>=s.length&&(y=-1))});const v=p.Children.map(s,(C,S)=>{if(S===y){const w={};return i&&(w.autoFocus=!0),C.props.tabIndex===void 0&&f==="selectedMenu"&&(w.tabIndex=0),p.cloneElement(C,w)}return C});return le(XA,W({role:"menu",ref:b,className:a,onKeyDown:m,tabIndex:o?0:-1},d,{children:v}))}),H2="base";function e7(e){return`${H2}--${e}`}function t7(e,t){return`${H2}-${e}-${t}`}function G2(e,t){const n=Ay[t];return n?e7(n):t7(e,t)}function n7(e,t){const n={};return t.forEach(r=>{n[r]=G2(e,r)}),n}function Y2(e){return e.substring(2).toLowerCase()}function r7(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function q0(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=p.useRef(!1),a=p.useRef(null),l=p.useRef(!1),c=p.useRef(!1);p.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Ft(t.ref,a),f=bo(g=>{const m=c.current;c.current=!1;const b=Wt(a.current);if(!l.current||!a.current||"clientX"in g&&r7(g,b))return;if(s.current){s.current=!1;return}let y;g.composedPath?y=g.composedPath().indexOf(a.current)>-1:y=!b.documentElement.contains(g.target)||a.current.contains(g.target),!y&&(n||!m)&&o(g)}),d=g=>m=>{c.current=!0;const b=t.props[g];b&&b(m)},h={ref:u};return i!==!1&&(h[i]=d(i)),p.useEffect(()=>{if(i!==!1){const g=Y2(i),m=Wt(a.current),b=()=>{s.current=!0};return m.addEventListener(g,f),m.addEventListener("touchmove",b),()=>{m.removeEventListener(g,f),m.removeEventListener("touchmove",b)}}},[f,i]),r!==!1&&(h[r]=d(r)),p.useEffect(()=>{if(r!==!1){const g=Y2(r),m=Wt(a.current);return m.addEventListener(g,f),()=>{m.removeEventListener(g,f)}}},[f,r]),le(p.Fragment,{children:p.cloneElement(t,h)})}const o7=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",\'[contenteditable]:not([contenteditable="false"])\'].join(",");function i7(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function s7(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function a7(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||s7(e))}function l7(e){const t=[],n=[];return Array.from(e.querySelectorAll(o7)).forEach((r,o)=>{const i=i7(r);i===-1||!a7(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function c7(){return!0}function u7(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=l7,isEnabled:s=c7,open:a}=e,l=p.useRef(!1),c=p.useRef(null),u=p.useRef(null),f=p.useRef(null),d=p.useRef(null),h=p.useRef(!1),g=p.useRef(null),m=Ft(t.ref,g),b=p.useRef(null);p.useEffect(()=>{!a||!g.current||(h.current=!n)},[n,a]),p.useEffect(()=>{if(!a||!g.current)return;const C=Wt(g.current);return g.current.contains(C.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),p.useEffect(()=>{if(!a||!g.current)return;const C=Wt(g.current),S=E=>{b.current=E,!(r||!s()||E.key!=="Tab")&&C.activeElement===g.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},w=()=>{const E=g.current;if(E===null)return;if(!C.hasFocus()||!s()||l.current){l.current=!1;return}if(E.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let M=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(M=i(g.current)),M.length>0){var $,D;const k=!!(($=b.current)!=null&&$.shiftKey&&((D=b.current)==null?void 0:D.key)==="Tab"),R=M[0],O=M[M.length-1];typeof R!="string"&&typeof O!="string"&&(k?O.focus():R.focus())}else E.focus()};C.addEventListener("focusin",w),C.addEventListener("keydown",S,!0);const _=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(_),C.removeEventListener("focusin",w),C.removeEventListener("keydown",S,!0)}},[n,r,o,s,a,i]);const y=C=>{f.current===null&&(f.current=C.relatedTarget),h.current=!0,d.current=C.target;const S=t.props.onFocus;S&&S(C)},v=C=>{f.current===null&&(f.current=C.relatedTarget),h.current=!0};return Co(p.Fragment,{children:[le("div",{tabIndex:a?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:m,onFocus:y}),le("div",{tabIndex:a?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}function d7(e){return typeof e=="function"?e():e}const K2=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=p.useState(null),l=Ft(p.isValidElement(r)?r.ref:null,n);if(Fi(()=>{i||a(d7(o)||document.body)},[o,i]),Fi(()=>{if(s&&!i)return xg(n,s),()=>{xg(n,null)}},[n,s,i]),i){if(p.isValidElement(r)){const c={ref:l};return p.cloneElement(r,c)}return le(p.Fragment,{children:r})}return le(p.Fragment,{children:s&&Sa.createPortal(r,s)})});function f7(e){const t=Wt(e);return t.body===e?dl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function cc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Z2(e){return parseInt(dl(e).getComputedStyle(e).paddingRight,10)||0}function p7(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function J2(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!p7(s);a&&l&&cc(s,o)})}function Q0(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function g7(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(f7(r)){const s=Wy(Wt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Z2(r)+s}px`;const a=Wt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Z2(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Wt(r).body;else{const s=r.parentElement,a=dl(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function h7(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class m7{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&cc(t.modalRef,!1);const o=h7(n);J2(n,t.mount,t.modalRef,o,!0);const i=Q0(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Q0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=g7(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Q0(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&cc(t.modalRef,n),J2(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&cc(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function v7(e){return typeof e=="function"?e():e}function y7(e){return e?e.props.hasOwnProperty("in"):!1}const C7=new m7;function S7(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=C7,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:f}=e,d=p.useRef({}),h=p.useRef(null),g=p.useRef(null),m=Ft(g,f),[b,y]=p.useState(!u),v=y7(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const S=()=>Wt(h.current),w=()=>(d.current.modalRef=g.current,d.current.mount=h.current,d.current),_=()=>{o.mount(w(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},E=bo(()=>{const P=v7(t)||S().body;o.add(w(),P),g.current&&_()}),M=p.useCallback(()=>o.isTopModal(w()),[o]),$=bo(P=>{h.current=P,P&&(u&&M()?_():g.current&&cc(g.current,C))}),D=p.useCallback(()=>{o.remove(w(),C)},[C,o]);p.useEffect(()=>()=>{D()},[D]),p.useEffect(()=>{u?E():(!v||!i)&&D()},[u,D,v,i,E]);const k=P=>N=>{var T;(T=P.onKeyDown)==null||T.call(P,N),!(N.key!=="Escape"||N.which===229||!M())&&(n||(N.stopPropagation(),c&&c(N,"escapeKeyDown")))},R=P=>N=>{var T;(T=P.onClick)==null||T.call(P,N),N.target===N.currentTarget&&c&&c(N,"backdropClick")};return{getRootProps:(P={})=>{const N=CC(e);delete N.onTransitionEnter,delete N.onTransitionExited;const T=W({},N,P);return W({role:"presentation"},T,{onKeyDown:k(T),ref:m})},getBackdropProps:(P={})=>{const N=P;return W({"aria-hidden":!0},N,{onClick:R(N),open:u})},getTransitionProps:()=>{const P=()=>{y(!1),s&&s()},N=()=>{y(!0),a&&a(),i&&D()};return{onEnter:Ly(P,l==null?void 0:l.props.onEnter),onExited:Ly(N,l==null?void 0:l.props.onExited)}},rootRef:m,portalRef:$,isTopModal:M,exited:b,hasTransition:v}}var Pn="top",br="bottom",Er="right",Nn="left",e1="auto",uc=[Pn,br,Er,Nn],xa="start",dc="end",b7="clippingParents",X2="viewport",fc="popper",E7="reference",q2=uc.reduce(function(e,t){return e.concat([t+"-"+xa,t+"-"+dc])},[]),Q2=[].concat(uc,[e1]).reduce(function(e,t){return e.concat([t,t+"-"+xa,t+"-"+dc])},[]),x7="beforeRead",w7="read",T7="afterRead",_7="beforeMain",I7="main",O7="afterMain",A7="beforeWrite",R7="write",P7="afterWrite",N7=[x7,w7,T7,_7,I7,O7,A7,R7,P7];function to(e){return e?(e.nodeName||"").toLowerCase():null}function Yn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ns(e){var t=Yn(e).Element;return e instanceof t||e instanceof Element}function xr(e){var t=Yn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function t1(e){if(typeof ShadowRoot>"u")return!1;var t=Yn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k7(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!xr(i)||!to(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function M7(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!xr(o)||!to(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const D7={name:"applyStyles",enabled:!0,phase:"write",fn:k7,effect:M7,requires:["computeStyles"]};function no(e){return e.split("-")[0]}var rs=Math.max,Tf=Math.min,wa=Math.round;function n1(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function eE(){return!/^((?!chrome|android).)*safari/i.test(n1())}function Ta(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&xr(e)&&(o=e.offsetWidth>0&&wa(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&wa(r.height)/e.offsetHeight||1);var s=ns(e)?Yn(e):window,a=s.visualViewport,l=!eE()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/o,d=r.height/i;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function r1(e){var t=Ta(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function tE(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&t1(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ko(e){return Yn(e).getComputedStyle(e)}function L7(e){return["table","td","th"].indexOf(to(e))>=0}function Ci(e){return((ns(e)?e.ownerDocument:e.document)||window.document).documentElement}function _f(e){return to(e)==="html"?e:e.assignedSlot||e.parentNode||(t1(e)?e.host:null)||Ci(e)}function nE(e){return!xr(e)||ko(e).position==="fixed"?null:e.offsetParent}function F7(e){var t=/firefox/i.test(n1()),n=/Trident/i.test(n1());if(n&&xr(e)){var r=ko(e);if(r.position==="fixed")return null}var o=_f(e);for(t1(o)&&(o=o.host);xr(o)&&["html","body"].indexOf(to(o))<0;){var i=ko(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function pc(e){for(var t=Yn(e),n=nE(e);n&&L7(n)&&ko(n).position==="static";)n=nE(n);return n&&(to(n)==="html"||to(n)==="body"&&ko(n).position==="static")?t:n||F7(e)||t}function o1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gc(e,t,n){return rs(e,Tf(t,n))}function $7(e,t,n){var r=gc(e,t,n);return r>n?n:r}function rE(){return{top:0,right:0,bottom:0,left:0}}function oE(e){return Object.assign({},rE(),e)}function iE(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var B7=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,oE(typeof t!="number"?t:iE(t,uc))};function U7(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=no(n.placement),l=o1(a),c=[Nn,Er].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var f=B7(o.padding,n),d=r1(i),h=l==="y"?Pn:Nn,g=l==="y"?br:Er,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],b=s[l]-n.rects.reference[l],y=pc(i),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,C=m/2-b/2,S=f[h],w=v-d[u]-f[g],_=v/2-d[u]/2+C,E=gc(S,_,w),M=l;n.modifiersData[r]=(t={},t[M]=E,t.centerOffset=E-_,t)}}function z7(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||tE(t.elements.popper,o)&&(t.elements.arrow=o))}const j7={name:"arrow",enabled:!0,phase:"main",fn:U7,effect:z7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _a(e){return e.split("-")[1]}var W7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function V7(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:wa(n*o)/o||0,y:wa(r*o)/o||0}}function sE(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=d===void 0?0:d,g=s.y,m=g===void 0?0:g,b=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),C=Nn,S=Pn,w=window;if(c){var _=pc(n),E="clientHeight",M="clientWidth";if(_===Yn(n)&&(_=Ci(n),ko(_).position!=="static"&&a==="absolute"&&(E="scrollHeight",M="scrollWidth")),_=_,o===Pn||(o===Nn||o===Er)&&i===dc){S=br;var $=f&&_===w&&w.visualViewport?w.visualViewport.height:_[E];m-=$-r.height,m*=l?1:-1}if(o===Nn||(o===Pn||o===br)&&i===dc){C=Er;var D=f&&_===w&&w.visualViewport?w.visualViewport.width:_[M];h-=D-r.width,h*=l?1:-1}}var k=Object.assign({position:a},c&&W7),R=u===!0?V7({x:h,y:m},Yn(n)):{x:h,y:m};if(h=R.x,m=R.y,l){var O;return Object.assign({},k,(O={},O[S]=v?"0":"",O[C]=y?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",O))}return Object.assign({},k,(t={},t[S]=v?m+"px":"",t[C]=y?h+"px":"",t.transform="",t))}function H7(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:no(t.placement),variation:_a(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,sE(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,sE(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const G7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:H7,data:{}};var If={passive:!0};function Y7(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Yn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,If)}),a&&l.addEventListener("resize",n.update,If),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,If)}),a&&l.removeEventListener("resize",n.update,If)}}const K7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Y7,data:{}};var Z7={left:"right",right:"left",bottom:"top",top:"bottom"};function Of(e){return e.replace(/left|right|bottom|top/g,function(t){return Z7[t]})}var J7={start:"end",end:"start"};function aE(e){return e.replace(/start|end/g,function(t){return J7[t]})}function i1(e){var t=Yn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function s1(e){return Ta(Ci(e)).left+i1(e).scrollLeft}function X7(e,t){var n=Yn(e),r=Ci(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=eE();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+s1(e),y:l}}function q7(e){var t,n=Ci(e),r=i1(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=rs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=rs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+s1(e),l=-r.scrollTop;return ko(o||n).direction==="rtl"&&(a+=rs(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function a1(e){var t=ko(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function lE(e){return["html","body","#document"].indexOf(to(e))>=0?e.ownerDocument.body:xr(e)&&a1(e)?e:lE(_f(e))}function hc(e,t){var n;t===void 0&&(t=[]);var r=lE(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Yn(r),s=o?[i].concat(i.visualViewport||[],a1(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(hc(_f(s)))}function l1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Q7(e,t){var n=Ta(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function cE(e,t,n){return t===X2?l1(X7(e,n)):ns(t)?Q7(t,n):l1(q7(Ci(e)))}function eR(e){var t=hc(_f(e)),n=["absolute","fixed"].indexOf(ko(e).position)>=0,r=n&&xr(e)?pc(e):e;return ns(r)?t.filter(function(o){return ns(o)&&tE(o,r)&&to(o)!=="body"}):[]}function tR(e,t,n,r){var o=t==="clippingParents"?eR(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=cE(e,c,r);return l.top=rs(u.top,l.top),l.right=Tf(u.right,l.right),l.bottom=Tf(u.bottom,l.bottom),l.left=rs(u.left,l.left),l},cE(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function uE(e){var t=e.reference,n=e.element,r=e.placement,o=r?no(r):null,i=r?_a(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Pn:l={x:s,y:t.y-n.height};break;case br:l={x:s,y:t.y+t.height};break;case Er:l={x:t.x+t.width,y:a};break;case Nn:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?o1(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case xa:l[c]=l[c]-(t[u]/2-n[u]/2);break;case dc:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function mc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?b7:a,c=n.rootBoundary,u=c===void 0?X2:c,f=n.elementContext,d=f===void 0?fc:f,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,b=m===void 0?0:m,y=oE(typeof b!="number"?b:iE(b,uc)),v=d===fc?E7:fc,C=e.rects.popper,S=e.elements[g?v:d],w=tR(ns(S)?S:S.contextElement||Ci(e.elements.popper),l,u,s),_=Ta(e.elements.reference),E=uE({reference:_,element:C,strategy:"absolute",placement:o}),M=l1(Object.assign({},C,E)),$=d===fc?M:_,D={top:w.top-$.top+y.top,bottom:$.bottom-w.bottom+y.bottom,left:w.left-$.left+y.left,right:$.right-w.right+y.right},k=e.modifiersData.offset;if(d===fc&&k){var R=k[o];Object.keys(D).forEach(function(O){var I=[Er,br].indexOf(O)>=0?1:-1,A=[Pn,br].indexOf(O)>=0?"y":"x";D[O]+=R[A]*I})}return D}function nR(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Q2:l,u=_a(r),f=u?a?q2:q2.filter(function(g){return _a(g)===u}):uc,d=f.filter(function(g){return c.indexOf(g)>=0});d.length===0&&(d=f);var h=d.reduce(function(g,m){return g[m]=mc(e,{placement:m,boundary:o,rootBoundary:i,padding:s})[no(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function rR(e){if(no(e)===e1)return[];var t=Of(e);return[aE(e),t,aE(t)]}function oR(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,m=n.allowedAutoPlacements,b=t.options.placement,y=no(b),v=y===b,C=l||(v||!g?[Of(b)]:rR(b)),S=[b].concat(C).reduce(function(K,G){return K.concat(no(G)===e1?nR(t,{placement:G,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:m}):G)},[]),w=t.rects.reference,_=t.rects.popper,E=new Map,M=!0,$=S[0],D=0;D<S.length;D++){var k=S[D],R=no(k),O=_a(k)===xa,I=[Pn,br].indexOf(R)>=0,A=I?"width":"height",P=mc(t,{placement:k,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),N=I?O?Er:Nn:O?br:Pn;w[A]>_[A]&&(N=Of(N));var T=Of(N),L=[];if(i&&L.push(P[R]<=0),a&&L.push(P[N]<=0,P[T]<=0),L.every(function(K){return K})){$=k,M=!1;break}E.set(k,L)}if(M)for(var z=g?3:1,B=function(G){var te=S.find(function(ne){var ge=E.get(ne);if(ge)return ge.slice(0,G).every(function(se){return se})});if(te)return $=te,"break"},V=z;V>0;V--){var H=B(V);if(H==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const iR={name:"flip",enabled:!0,phase:"main",fn:oR,requiresIfExists:["offset"],data:{_skip:!1}};function dE(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fE(e){return[Pn,Er,br,Nn].some(function(t){return e[t]>=0})}function sR(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=mc(t,{elementContext:"reference"}),a=mc(t,{altBoundary:!0}),l=dE(s,r),c=dE(a,o,i),u=fE(l),f=fE(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const aR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sR};function lR(e,t,n){var r=no(e),o=[Nn,Pn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Nn,Er].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function cR(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Q2.reduce(function(u,f){return u[f]=lR(f,t.rects,i),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const uR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cR};function dR(e){var t=e.state,n=e.name;t.modifiersData[n]=uE({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const fR={name:"popperOffsets",enabled:!0,phase:"read",fn:dR,data:{}};function pR(e){return e==="x"?"y":"x"}function gR(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,g=n.tetherOffset,m=g===void 0?0:g,b=mc(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),y=no(t.placement),v=_a(t.placement),C=!v,S=o1(y),w=pR(S),_=t.modifiersData.popperOffsets,E=t.rects.reference,M=t.rects.popper,$=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(_){if(i){var O,I=S==="y"?Pn:Nn,A=S==="y"?br:Er,P=S==="y"?"height":"width",N=_[S],T=N+b[I],L=N-b[A],z=h?-M[P]/2:0,B=v===xa?E[P]:M[P],V=v===xa?-M[P]:-E[P],H=t.elements.arrow,K=h&&H?r1(H):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rE(),te=G[I],ne=G[A],ge=gc(0,E[P],K[P]),se=C?E[P]/2-z-ge-te-D.mainAxis:B-ge-te-D.mainAxis,he=C?-E[P]/2+z+ge+ne+D.mainAxis:V+ge+ne+D.mainAxis,fe=t.elements.arrow&&pc(t.elements.arrow),Ce=fe?S==="y"?fe.clientTop||0:fe.clientLeft||0:0,Q=(O=k==null?void 0:k[S])!=null?O:0,ve=N+se-Q-Ce,X=N+he-Q,de=gc(h?Tf(T,ve):T,N,h?rs(L,X):L);_[S]=de,R[S]=de-N}if(a){var ae,xe=S==="x"?Pn:Nn,qe=S==="x"?br:Er,Pe=_[w],Ke=w==="y"?"height":"width",bt=Pe+b[xe],Et=Pe-b[qe],ke=[Pn,Nn].indexOf(y)!==-1,Ue=(ae=k==null?void 0:k[w])!=null?ae:0,re=ke?bt:Pe-E[Ke]-M[Ke]-Ue+D.altAxis,me=ke?Pe+E[Ke]+M[Ke]-Ue-D.altAxis:Et,we=h&&ke?$7(re,Pe,me):gc(h?re:bt,Pe,h?me:Et);_[w]=we,R[w]=we-Pe}t.modifiersData[r]=R}}const hR={name:"preventOverflow",enabled:!0,phase:"main",fn:gR,requiresIfExists:["offset"]};function mR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vR(e){return e===Yn(e)||!xr(e)?i1(e):mR(e)}function yR(e){var t=e.getBoundingClientRect(),n=wa(t.width)/e.offsetWidth||1,r=wa(t.height)/e.offsetHeight||1;return n!==1||r!==1}function CR(e,t,n){n===void 0&&(n=!1);var r=xr(t),o=xr(t)&&yR(t),i=Ci(t),s=Ta(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((to(t)!=="body"||a1(i))&&(a=vR(t)),xr(t)?(l=Ta(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=s1(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function SR(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function bR(e){var t=SR(e);return N7.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function ER(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xR(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var pE={placement:"bottom",modifiers:[],strategy:"absolute"};function gE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function wR(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?pE:o;return function(a,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},pE,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(y){var v=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},i,u.options,v),u.scrollParents={reference:ns(a)?hc(a):a.contextElement?hc(a.contextElement):[],popper:hc(l)};var C=bR(xR([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(S){return S.enabled}),g(),h.update()},forceUpdate:function(){if(!d){var y=u.elements,v=y.reference,C=y.popper;if(gE(v,C)){u.rects={reference:CR(v,pc(C),u.options.strategy==="fixed"),popper:r1(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var w=u.orderedModifiers[S],_=w.fn,E=w.options,M=E===void 0?{}:E,$=w.name;typeof _=="function"&&(u=_({state:u,options:M,name:$,instance:h})||u)}}}},update:ER(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){m(),d=!0}};if(!gE(a,l))return h;h.setOptions(c).then(function(b){!d&&c.onFirstUpdate&&c.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var y=b.name,v=b.options,C=v===void 0?{}:v,S=b.effect;if(typeof S=="function"){var w=S({state:u,name:y,instance:h,options:C}),_=function(){};f.push(w||_)}})}function m(){f.forEach(function(b){return b()}),f=[]}return h}}var TR=[K7,fR,G7,D7,uR,iR,hR,j7,aR],_R=wR({defaultModifiers:TR});const hE="Popper";function IR(e){return G2(hE,e)}n7(hE,["root"]);const OR=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],AR=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function RR(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function c1(e){return typeof e=="function"?e():e}function PR(e){return e.nodeType!==void 0}const NR=()=>Vt({root:["root"]},sO(IR)),kR={},MR=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:d,slotProps:h={},slots:g={},TransitionProps:m}=t,b=Se(t,OR),y=p.useRef(null),v=Ft(y,n),C=p.useRef(null),S=Ft(C,d),w=p.useRef(S);Fi(()=>{w.current=S},[S]),p.useImperativeHandle(d,()=>C.current,[]);const _=RR(u,s),[E,M]=p.useState(_),[$,D]=p.useState(c1(o));p.useEffect(()=>{C.current&&C.current.forceUpdate()}),p.useEffect(()=>{o&&D(c1(o))},[o]),Fi(()=>{if(!$||!c)return;const A=T=>{M(T.placement)};let P=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:T})=>{A(T)}}];l!=null&&(P=P.concat(l)),f&&f.modifiers!=null&&(P=P.concat(f.modifiers));const N=_R($,y.current,W({placement:_},f,{modifiers:P}));return w.current(N),()=>{N.destroy(),w.current(null)}},[$,a,l,c,f,_]);const k={placement:E};m!==null&&(k.TransitionProps=m);const R=NR(),O=(r=g.root)!=null?r:"div",I=$i({elementType:O,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:R.root});return le(O,W({},I,{children:typeof i=="function"?i(k):i}))}),DR=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:d=kR,popperRef:h,style:g,transition:m=!1,slotProps:b={},slots:y={}}=t,v=Se(t,AR),[C,S]=p.useState(!0),w=()=>{S(!1)},_=()=>{S(!0)};if(!l&&!u&&(!m||C))return null;let E;if(i)E=i;else if(r){const D=c1(r);E=D&&PR(D)?Wt(D).body:Wt(null).body}const M=!u&&l&&(!m||C)?"none":void 0,$=m?{in:u,onEnter:w,onExited:_}:void 0;return le(K2,{disablePortal:a,container:E,children:le(MR,W({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:m?!C:u,placement:f,popperOptions:d,popperRef:h,slotProps:b,slots:y},v,{style:W({position:"fixed",top:0,left:0,display:M},g),TransitionProps:$,children:o}))})}),mE=e=>e.scrollTop;function Af(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}const LR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function u1(e){return`scale(${e}, ${e**2})`}const FR={entering:{opacity:1,transform:u1(1)},entered:{opacity:1,transform:"none"}},d1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\\/)15(.|_)4/i.test(navigator.userAgent),vE=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:d,onExiting:h,style:g,timeout:m="auto",TransitionComponent:b=k2}=t,y=Se(t,LR),v=$s(),C=p.useRef(),S=hl(),w=p.useRef(null),_=Ft(w,i.ref,n),E=A=>P=>{if(A){const N=w.current;P===void 0?A(N):A(N,P)}},M=E(u),$=E((A,P)=>{mE(A);const{duration:N,delay:T,easing:L}=Af({style:g,timeout:m,easing:s},{mode:"enter"});let z;m==="auto"?(z=S.transitions.getAutoHeightDuration(A.clientHeight),C.current=z):z=N,A.style.transition=[S.transitions.create("opacity",{duration:z,delay:T}),S.transitions.create("transform",{duration:d1?z:z*.666,delay:T,easing:L})].join(","),l&&l(A,P)}),D=E(c),k=E(h),R=E(A=>{const{duration:P,delay:N,easing:T}=Af({style:g,timeout:m,easing:s},{mode:"exit"});let L;m==="auto"?(L=S.transitions.getAutoHeightDuration(A.clientHeight),C.current=L):L=P,A.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:d1?L:L*.666,delay:d1?N:N||L*.333,easing:T})].join(","),A.style.opacity=0,A.style.transform=u1(.75),f&&f(A)}),O=E(d);return le(b,W({appear:o,in:a,nodeRef:w,onEnter:$,onEntered:D,onEntering:M,onExit:R,onExited:O,onExiting:k,addEndListener:A=>{m==="auto"&&v.start(C.current||0,A),r&&r(w.current,A)},timeout:m==="auto"?null:m},y,{children:(A,P)=>p.cloneElement(i,W({style:W({opacity:0,transform:u1(.75),visibility:A==="exited"&&!a?"hidden":void 0},FR[A],g,i.props.style),ref:_},P))}))});vE.muiSupportAuto=!0;const Rf=vE,$R=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],BR={entering:{opacity:1},entered:{opacity:1}},Pf=p.forwardRef(function(t,n){const r=hl(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:f,onEntering:d,onExit:h,onExited:g,onExiting:m,style:b,timeout:y=o,TransitionComponent:v=k2}=t,C=Se(t,$R),S=p.useRef(null),w=Ft(S,a.ref,n),_=I=>A=>{if(I){const P=S.current;A===void 0?I(P):I(P,A)}},E=_(d),M=_((I,A)=>{mE(I);const P=Af({style:b,timeout:y,easing:l},{mode:"enter"});I.style.webkitTransition=r.transitions.create("opacity",P),I.style.transition=r.transitions.create("opacity",P),u&&u(I,A)}),$=_(f),D=_(m),k=_(I=>{const A=Af({style:b,timeout:y,easing:l},{mode:"exit"});I.style.webkitTransition=r.transitions.create("opacity",A),I.style.transition=r.transitions.create("opacity",A),h&&h(I)}),R=_(g);return le(v,W({appear:s,in:c,nodeRef:S,onEnter:M,onEntered:$,onEntering:E,onExit:k,onExited:R,onExiting:D,addEndListener:I=>{i&&i(S.current,I)},timeout:y},C,{children:(I,A)=>p.cloneElement(a,W({style:W({opacity:0,visibility:I==="exited"&&!c?"hidden":void 0},BR[I],b,a.props.style),ref:w},A))}))});function UR(e){return jt("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const zR=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],jR=e=>{const{classes:t,invisible:n}=e;return Vt({root:["root",n&&"invisible"]},UR,t)},WR=Ee("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>W({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),yE=p.forwardRef(function(t,n){var r,o,i;const s=Nt({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:f={},invisible:d=!1,open:h,slotProps:g={},slots:m={},TransitionComponent:b=Pf,transitionDuration:y}=s,v=Se(s,zR),C=W({},s,{component:c,invisible:d}),S=jR(C),w=(r=g.root)!=null?r:f.root;return le(b,W({in:h,timeout:y},v,{children:le(WR,W({"aria-hidden":!0},w,{as:(o=(i=m.root)!=null?i:u.Root)!=null?o:c,className:Re(S.root,l,w==null?void 0:w.className),ownerState:W({},C,w==null?void 0:w.ownerState),classes:S,ref:n,children:a}))}))});function VR(e){return jt("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const HR=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],GR=e=>{const{open:t,exited:n,classes:r}=e;return Vt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},VR,r)},YR=Ee("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>W({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),KR=Ee(yE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),CE=p.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Nt({name:"MuiModal",props:t}),{BackdropComponent:u=KR,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:g,container:m,component:b,components:y={},componentsProps:v={},disableAutoFocus:C=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:w=!1,disablePortal:_=!1,disableRestoreFocus:E=!1,disableScrollLock:M=!1,hideBackdrop:$=!1,keepMounted:D=!1,onBackdropClick:k,open:R,slotProps:O,slots:I}=c,A=Se(c,HR),P=W({},c,{closeAfterTransition:h,disableAutoFocus:C,disableEnforceFocus:S,disableEscapeKeyDown:w,disablePortal:_,disableRestoreFocus:E,disableScrollLock:M,hideBackdrop:$,keepMounted:D}),{getRootProps:N,getBackdropProps:T,getTransitionProps:L,portalRef:z,isTopModal:B,exited:V,hasTransition:H}=S7(W({},P,{rootRef:n})),K=W({},P,{exited:V}),G=GR(K),te={};if(g.props.tabIndex===void 0&&(te.tabIndex="-1"),H){const{onEnter:Q,onExited:ve}=L();te.onEnter=Q,te.onExited=ve}const ne=(r=(o=I==null?void 0:I.root)!=null?o:y.Root)!=null?r:YR,ge=(i=(s=I==null?void 0:I.backdrop)!=null?s:y.Backdrop)!=null?i:u,se=(a=O==null?void 0:O.root)!=null?a:v.root,he=(l=O==null?void 0:O.backdrop)!=null?l:v.backdrop,fe=$i({elementType:ne,externalSlotProps:se,externalForwardedProps:A,getSlotProps:N,additionalProps:{ref:n,as:b},ownerState:K,className:Re(d,se==null?void 0:se.className,G==null?void 0:G.root,!K.open&&K.exited&&(G==null?void 0:G.hidden))}),Ce=$i({elementType:ge,externalSlotProps:he,additionalProps:f,getSlotProps:Q=>T(W({},Q,{onClick:ve=>{k&&k(ve),Q!=null&&Q.onClick&&Q.onClick(ve)}})),className:Re(he==null?void 0:he.className,f==null?void 0:f.className,G==null?void 0:G.backdrop),ownerState:K});return!D&&!R&&(!H||V)?null:le(K2,{ref:z,container:m,disablePortal:_,children:Co(ne,W({},fe,{children:[!$&&u?le(ge,W({},Ce)):null,le(u7,{disableEnforceFocus:S,disableAutoFocus:C,disableRestoreFocus:E,isEnabled:B,open:R,children:p.cloneElement(g,te)})]}))})});function ZR(e){return jt("MuiPaper",e)}_t("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const JR=["className","component","elevation","square","variant"],XR=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Vt(i,ZR,o)},qR=Ee("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return W({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&W({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Tn("#fff",gC(t.elevation))}, ${Tn("#fff",gC(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),f1=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=Se(r,JR),u=W({},r,{component:i,elevation:s,square:a,variant:l}),f=XR(u);return le(qR,W({as:i,ownerState:u,className:Re(f.root,o),ref:n},c))});function QR(e){return jt("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const eP=["onEntering"],tP=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],nP=["slotProps"];function SE(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function bE(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function EE(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function p1(e){return typeof e=="function"?e():e}const rP=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"]},QR,t)},oP=Ee(CE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xE=Ee(f1,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),iP=p.forwardRef(function(t,n){var r,o,i;const s=Nt({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:d,className:h,container:g,elevation:m=8,marginThreshold:b=16,open:y,PaperProps:v={},slots:C,slotProps:S,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:_=Rf,transitionDuration:E="auto",TransitionProps:{onEntering:M}={},disableScrollLock:$=!1}=s,D=Se(s.TransitionProps,eP),k=Se(s,tP),R=(r=S==null?void 0:S.paper)!=null?r:v,O=p.useRef(),I=Ft(O,R.ref),A=W({},s,{anchorOrigin:c,anchorReference:f,elevation:m,marginThreshold:b,externalPaperSlotProps:R,transformOrigin:w,TransitionComponent:_,transitionDuration:E,TransitionProps:D}),P=rP(A),N=p.useCallback(()=>{if(f==="anchorPosition")return u;const Q=p1(l),X=(Q&&Q.nodeType===1?Q:Wt(O.current).body).getBoundingClientRect();return{top:X.top+SE(X,c.vertical),left:X.left+bE(X,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),T=p.useCallback(Q=>({vertical:SE(Q,w.vertical),horizontal:bE(Q,w.horizontal)}),[w.horizontal,w.vertical]),L=p.useCallback(Q=>{const ve={width:Q.offsetWidth,height:Q.offsetHeight},X=T(ve);if(f==="none")return{top:null,left:null,transformOrigin:EE(X)};const de=N();let ae=de.top-X.vertical,xe=de.left-X.horizontal;const qe=ae+ve.height,Pe=xe+ve.width,Ke=dl(p1(l)),bt=Ke.innerHeight-b,Et=Ke.innerWidth-b;if(b!==null&&ae<b){const ke=ae-b;ae-=ke,X.vertical+=ke}else if(b!==null&&qe>bt){const ke=qe-bt;ae-=ke,X.vertical+=ke}if(b!==null&&xe<b){const ke=xe-b;xe-=ke,X.horizontal+=ke}else if(Pe>Et){const ke=Pe-Et;xe-=ke,X.horizontal+=ke}return{top:`${Math.round(ae)}px`,left:`${Math.round(xe)}px`,transformOrigin:EE(X)}},[l,f,N,T,b]),[z,B]=p.useState(y),V=p.useCallback(()=>{const Q=O.current;if(!Q)return;const ve=L(Q);ve.top!==null&&(Q.style.top=ve.top),ve.left!==null&&(Q.style.left=ve.left),Q.style.transformOrigin=ve.transformOrigin,B(!0)},[L]);p.useEffect(()=>($&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[l,$,V]);const H=(Q,ve)=>{M&&M(Q,ve),V()},K=()=>{B(!1)};p.useEffect(()=>{y&&V()}),p.useImperativeHandle(a,()=>y?{updatePosition:()=>{V()}}:null,[y,V]),p.useEffect(()=>{if(!y)return;const Q=Eg(()=>{V()}),ve=dl(l);return ve.addEventListener("resize",Q),()=>{Q.clear(),ve.removeEventListener("resize",Q)}},[l,y,V]);let G=E;E==="auto"&&!_.muiSupportAuto&&(G=void 0);const te=g||(l?Wt(p1(l)).body:void 0),ne=(o=C==null?void 0:C.root)!=null?o:oP,ge=(i=C==null?void 0:C.paper)!=null?i:xE,se=$i({elementType:ge,externalSlotProps:W({},R,{style:z?R.style:W({},R.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:A,className:Re(P.paper,R==null?void 0:R.className)}),he=$i({elementType:ne,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:k,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:te,open:y},ownerState:A,className:Re(P.root,h)}),{slotProps:fe}=he,Ce=Se(he,nP);return le(ne,W({},Ce,!yC(ne)&&{slotProps:fe,disableScrollLock:$},{children:le(_,W({appear:!0,in:y,onEntering:H,onExited:K,timeout:G},D,{children:le(ge,W({},se,{children:d}))}))}))});function sP(e){return jt("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const aP=["onEntering"],lP=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],cP={vertical:"top",horizontal:"right"},uP={vertical:"top",horizontal:"left"},dP=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"],list:["list"]},sP,t)},fP=Ee(iP,{shouldForwardProp:e=>ed(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pP=Ee(xE,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gP=Ee(QA,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),hP=p.forwardRef(function(t,n){var r,o;const i=Nt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:d,PaperProps:h={},PopoverClasses:g,transitionDuration:m="auto",TransitionProps:{onEntering:b}={},variant:y="selectedMenu",slots:v={},slotProps:C={}}=i,S=Se(i.TransitionProps,aP),w=Se(i,lP),_=Yy(),E=W({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:b,PaperProps:h,transitionDuration:m,TransitionProps:S,variant:y}),M=dP(E),$=s&&!c&&d,D=p.useRef(null),k=(T,L)=>{D.current&&D.current.adjustStyleForScrollbar(T,{direction:_?"rtl":"ltr"}),b&&b(T,L)},R=T=>{T.key==="Tab"&&(T.preventDefault(),f&&f(T,"tabKeyDown"))};let O=-1;p.Children.map(a,(T,L)=>{p.isValidElement(T)&&(T.props.disabled||(y==="selectedMenu"&&T.props.selected||O===-1)&&(O=L))});const I=(r=v.paper)!=null?r:pP,A=(o=C.paper)!=null?o:h,P=$i({elementType:v.root,externalSlotProps:C.root,ownerState:E,className:[M.root,l]}),N=$i({elementType:I,externalSlotProps:A,ownerState:E,className:M.paper});return le(fP,W({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?cP:uP,slots:{paper:I,root:v.root},slotProps:{root:P,paper:N},open:d,ref:n,transitionDuration:m,TransitionProps:W({onEntering:k},S),ownerState:E},w,{classes:g,children:le(gP,W({onKeyDown:R,actions:D,autoFocus:s&&(O===-1||c),autoFocusItem:$,variant:y},u,{className:Re(M.list,u.className),children:a}))}))});function mP(e){return jt("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);function vP(e){return jt("MuiDialogTitle",e)}const yP=_t("MuiDialogTitle",["root"]),CP=["className","dividers"],SP=e=>{const{classes:t,dividers:n}=e;return Vt({root:["root",n&&"dividers"]},mP,t)},bP=Ee("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>W({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${yP.root} + &`]:{paddingTop:0}})),g1=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=Se(r,CP),a=W({},r,{dividers:i}),l=SP(a);return le(bP,W({className:Re(l.root,o),ownerState:a,ref:n},s))});function EP(e){return jt("MuiDialog",e)}const h1=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),wE=p.createContext({}),xP=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],wP=Ee(yE,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),TP=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${$e(n)}`],paper:["paper",`paperScroll${$e(n)}`,`paperWidth${$e(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Vt(s,EP,t)},_P=Ee(CE,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),IP=Ee("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${$e(n.scroll)}`]]}})(({ownerState:e})=>W({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:\'""\',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),OP=Ee(f1,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${$e(n.scroll)}`],t[`paperWidth${$e(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>W({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${h1.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${h1.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${h1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),m1=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialog"}),o=hl(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:d=!1,fullScreen:h=!1,fullWidth:g=!1,maxWidth:m="sm",onBackdropClick:b,onClick:y,onClose:v,open:C,PaperComponent:S=f1,PaperProps:w={},scroll:_="paper",TransitionComponent:E=Pf,transitionDuration:M=i,TransitionProps:$}=r,D=Se(r,xP),k=W({},r,{disableEscapeKeyDown:d,fullScreen:h,fullWidth:g,maxWidth:m,scroll:_}),R=TP(k),O=p.useRef(),I=T=>{O.current=T.target===T.currentTarget},A=T=>{y&&y(T),O.current&&(O.current=null,b&&b(T),v&&v(T,"backdropClick"))},P=By(a),N=p.useMemo(()=>({titleId:P}),[P]);return le(_P,W({className:Re(R.root,f),closeAfterTransition:!0,components:{Backdrop:wP},componentsProps:{backdrop:W({transitionDuration:M,as:l},c)},disableEscapeKeyDown:d,onClose:v,open:C,ref:n,onClick:A,ownerState:k},D,{children:le(E,W({appear:!0,in:C,timeout:M,role:"presentation"},$,{children:le(IP,{className:Re(R.container),onMouseDown:I,ownerState:k,children:le(OP,W({as:S,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":P},w,{className:Re(R.paper,w.className),ownerState:k,children:le(wE.Provider,{value:N,children:u})}))})}))}))});var v1={};Object.defineProperty(v1,"__esModule",{value:!0});var TE=v1.default=void 0,AP=PP(p),RP=dC;function _E(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(_E=function(r){return r?n:t})(e)}function PP(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=_E(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function NP(e){return Object.keys(e).length===0}function kP(e=null){const t=AP.useContext(RP.ThemeContext);return!t||NP(t)?e:t}TE=v1.default=kP;const MP=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],DP=Ee(DR,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),os=p.forwardRef(function(t,n){var r;const o=TE(),i=Nt({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:d,modifiers:h,open:g,placement:m,popperOptions:b,popperRef:y,transition:v,slots:C,slotProps:S}=i,w=Se(i,MP),_=(r=C==null?void 0:C.root)!=null?r:l==null?void 0:l.Root,E=W({anchorEl:s,container:u,disablePortal:f,keepMounted:d,modifiers:h,open:g,placement:m,popperOptions:b,popperRef:y,transition:v},w);return le(DP,W({as:a,direction:o==null?void 0:o.direction,slots:{root:_},slotProps:S??c},E,{ref:n}))});function LP(e){return jt("MuiButton",e)}const Nf=_t("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),FP=p.createContext({}),$P=p.createContext(void 0),BP=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],UP=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${$e(t)}`,`size${$e(o)}`,`${i}Size${$e(o)}`,`color${$e(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${$e(o)}`],endIcon:["icon","endIcon",`iconSize${$e(o)}`]},l=Vt(a,LP,s);return W({},s,l)},IE=e=>W({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),zP=Ee(G0,{shouldForwardProp:e=>ed(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$e(n.color)}`],t[`size${$e(n.size)}`],t[`${n.variant}Size${$e(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return W({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":W({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":W({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Nf.focusVisible}`]:W({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Nf.disabled}`]:W({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Tn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Nf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Nf.disabled}`]:{boxShadow:"none"}}),jP=Ee("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${$e(n.size)}`]]}})(({ownerState:e})=>W({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},IE(e))),WP=Ee("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${$e(n.size)}`]]}})(({ownerState:e})=>W({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},IE(e))),is=p.forwardRef(function(t,n){const r=p.useContext(FP),o=p.useContext($P),i=bg(r,t),s=Nt({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:g,focusVisibleClassName:m,fullWidth:b=!1,size:y="medium",startIcon:v,type:C,variant:S="text"}=s,w=Se(s,BP),_=W({},s,{color:l,component:c,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:b,size:y,type:C,variant:S}),E=UP(_),M=v&&le(jP,{className:E.startIcon,ownerState:_,children:v}),$=g&&le(WP,{className:E.endIcon,ownerState:_,children:g}),D=o||"";return Co(zP,W({ownerState:_,className:Re(r.className,E.root,u,D),component:c,disabled:f,focusRipple:!h,focusVisibleClassName:Re(E.focusVisible,m),ref:n,type:C},w,{classes:E,children:[M,a,$]}))}),VP=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`\n`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};function HP(e){return jt("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const GP=["className","disableSpacing"],YP=e=>{const{classes:t,disableSpacing:n}=e;return Vt({root:["root",!n&&"spacing"]},HP,t)},KP=Ee("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>W({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),kf=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=Se(r,GP),a=W({},r,{disableSpacing:i}),l=YP(a);return le(KP,W({className:Re(l.root,o),ownerState:a,ref:n},s))});var OE={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qa,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",a="minute",l="hour",c="day",u="week",f="month",d="quarter",h="year",g="date",m="Invalid Date",b=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var A=["th","st","nd","rd"],P=I%100;return"["+I+(A[(P-20)%10]||A[P]||A[0])+"]"}},C=function(I,A,P){var N=String(I);return!N||N.length>=A?I:""+Array(A+1-N.length).join(P)+I},S={s:C,z:function(I){var A=-I.utcOffset(),P=Math.abs(A),N=Math.floor(P/60),T=P%60;return(A<=0?"+":"-")+C(N,2,"0")+":"+C(T,2,"0")},m:function I(A,P){if(A.date()<P.date())return-I(P,A);var N=12*(P.year()-A.year())+(P.month()-A.month()),T=A.clone().add(N,f),L=P-T<0,z=A.clone().add(N+(L?-1:1),f);return+(-(N+(P-T)/(L?T-z:z-T))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:h,w:u,d:c,D:g,h:l,m:a,s,ms:i,Q:d}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",_={};_[w]=v;var E="$isDayjsObject",M=function(I){return I instanceof R||!(!I||!I[E])},$=function I(A,P,N){var T;if(!A)return w;if(typeof A=="string"){var L=A.toLowerCase();_[L]&&(T=L),P&&(_[L]=P,T=L);var z=A.split("-");if(!T&&z.length>1)return I(z[0])}else{var B=A.name;_[B]=A,T=B}return!N&&T&&(w=T),T||!N&&w},D=function(I,A){if(M(I))return I.clone();var P=typeof A=="object"?A:{};return P.date=I,P.args=arguments,new R(P)},k=S;k.l=$,k.i=M,k.w=function(I,A){return D(I,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var R=function(){function I(P){this.$L=$(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[E]=!0}var A=I.prototype;return A.parse=function(P){this.$d=function(N){var T=N.date,L=N.utc;if(T===null)return new Date(NaN);if(k.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var z=T.match(b);if(z){var B=z[2]-1||0,V=(z[7]||"0").substring(0,3);return L?new Date(Date.UTC(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,V)):new Date(z[1],B,z[3]||1,z[4]||0,z[5]||0,z[6]||0,V)}}return new Date(T)}(P),this.init()},A.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},A.$utils=function(){return k},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(P,N){var T=D(P);return this.startOf(N)<=T&&T<=this.endOf(N)},A.isAfter=function(P,N){return D(P)<this.startOf(N)},A.isBefore=function(P,N){return this.endOf(N)<D(P)},A.$g=function(P,N,T){return k.u(P)?this[N]:this.set(T,P)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(P,N){var T=this,L=!!k.u(N)||N,z=k.p(P),B=function(se,he){var fe=k.w(T.$u?Date.UTC(T.$y,he,se):new Date(T.$y,he,se),T);return L?fe:fe.endOf(c)},V=function(se,he){return k.w(T.toDate()[se].apply(T.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(he)),T)},H=this.$W,K=this.$M,G=this.$D,te="set"+(this.$u?"UTC":"");switch(z){case h:return L?B(1,0):B(31,11);case f:return L?B(1,K):B(0,K+1);case u:var ne=this.$locale().weekStart||0,ge=(H<ne?H+7:H)-ne;return B(L?G-ge:G+(6-ge),K);case c:case g:return V(te+"Hours",0);case l:return V(te+"Minutes",1);case a:return V(te+"Seconds",2);case s:return V(te+"Milliseconds",3);default:return this.clone()}},A.endOf=function(P){return this.startOf(P,!1)},A.$set=function(P,N){var T,L=k.p(P),z="set"+(this.$u?"UTC":""),B=(T={},T[c]=z+"Date",T[g]=z+"Date",T[f]=z+"Month",T[h]=z+"FullYear",T[l]=z+"Hours",T[a]=z+"Minutes",T[s]=z+"Seconds",T[i]=z+"Milliseconds",T)[L],V=L===c?this.$D+(N-this.$W):N;if(L===f||L===h){var H=this.clone().set(g,1);H.$d[B](V),H.init(),this.$d=H.set(g,Math.min(this.$D,H.daysInMonth())).$d}else B&&this.$d[B](V);return this.init(),this},A.set=function(P,N){return this.clone().$set(P,N)},A.get=function(P){return this[k.p(P)]()},A.add=function(P,N){var T,L=this;P=Number(P);var z=k.p(N),B=function(K){var G=D(L);return k.w(G.date(G.date()+Math.round(K*P)),L)};if(z===f)return this.set(f,this.$M+P);if(z===h)return this.set(h,this.$y+P);if(z===c)return B(1);if(z===u)return B(7);var V=(T={},T[a]=r,T[l]=o,T[s]=n,T)[z]||1,H=this.$d.getTime()+P*V;return k.w(H,this)},A.subtract=function(P,N){return this.add(-1*P,N)},A.format=function(P){var N=this,T=this.$locale();if(!this.isValid())return T.invalidDate||m;var L=P||"YYYY-MM-DDTHH:mm:ssZ",z=k.z(this),B=this.$H,V=this.$m,H=this.$M,K=T.weekdays,G=T.months,te=T.meridiem,ne=function(he,fe,Ce,Q){return he&&(he[fe]||he(N,L))||Ce[fe].slice(0,Q)},ge=function(he){return k.s(B%12||12,he,"0")},se=te||function(he,fe,Ce){var Q=he<12?"AM":"PM";return Ce?Q.toLowerCase():Q};return L.replace(y,function(he,fe){return fe||function(Ce){switch(Ce){case"YY":return String(N.$y).slice(-2);case"YYYY":return k.s(N.$y,4,"0");case"M":return H+1;case"MM":return k.s(H+1,2,"0");case"MMM":return ne(T.monthsShort,H,G,3);case"MMMM":return ne(G,H);case"D":return N.$D;case"DD":return k.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return ne(T.weekdaysMin,N.$W,K,2);case"ddd":return ne(T.weekdaysShort,N.$W,K,3);case"dddd":return K[N.$W];case"H":return String(B);case"HH":return k.s(B,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return se(B,V,!0);case"A":return se(B,V,!1);case"m":return String(V);case"mm":return k.s(V,2,"0");case"s":return String(N.$s);case"ss":return k.s(N.$s,2,"0");case"SSS":return k.s(N.$ms,3,"0");case"Z":return z}return null}(he)||z.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(P,N,T){var L,z=this,B=k.p(N),V=D(P),H=(V.utcOffset()-this.utcOffset())*r,K=this-V,G=function(){return k.m(z,V)};switch(B){case h:L=G()/12;break;case f:L=G();break;case d:L=G()/3;break;case u:L=(K-H)/6048e5;break;case c:L=(K-H)/864e5;break;case l:L=K/o;break;case a:L=K/r;break;case s:L=K/n;break;default:L=K}return T?L:k.a(L)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return _[this.$L]},A.locale=function(P,N){if(!P)return this.$L;var T=this.clone(),L=$(P,N,!0);return L&&(T.$L=L),T},A.clone=function(){return k.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},I}(),O=R.prototype;return D.prototype=O,[["$ms",i],["$s",s],["$m",a],["$H",l],["$W",c],["$M",f],["$y",h],["$D",g]].forEach(function(I){O[I[1]]=function(A){return this.$g(A,I[0],I[1])}}),D.extend=function(I,A){return I.$i||(I(A,R,D),I.$i=!0),D},D.locale=$,D.isDayjs=M,D.unix=function(I){return D(1e3*I)},D.en=_[w],D.Ls=_,D.p={},D})})(OE);var ZP=OE.exports;const tn=Xo(ZP);var AE={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qa,function(){var n="week",r="year";return function(o,i,s){var a=i.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(c),f=s(this).endOf(n);if(u.isBefore(f))return 1}var d=s(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(d,n,!0);return h<0?s(this).startOf("week").week():Math.ceil(h)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(AE);var JP=AE.exports;const XP=Xo(JP);var RE={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qa,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\\d\\d/,i=/\\d\\d?/,s=/\\d*[^-_:/,()\\s\\d]+/,a={},l=function(m){return(m=+m)+(m>68?1900:2e3)},c=function(m){return function(b){this[m]=+b}},u=[/[+-]\\d\\d:?(\\d\\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\\d\\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v}(m)}],f=function(m){var b=a[m];return b&&(b.indexOf?b:b.s.concat(b.f))},d=function(m,b){var y,v=a.meridiem;if(v){for(var C=1;C<=24;C+=1)if(m.indexOf(v(C,0,b))>-1){y=C>12;break}}else y=m===(b?"pm":"PM");return y},h={A:[s,function(m){this.afternoon=d(m,!1)}],a:[s,function(m){this.afternoon=d(m,!0)}],S:[/\\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\\d{3}/,function(m){this.milliseconds=+m}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[o,c("day")],Do:[s,function(m){var b=a.ordinal,y=m.match(/\\d+/);if(this.day=y[0],b)for(var v=1;v<=31;v+=1)b(v).replace(/\\[|\\]/g,"")===m&&(this.day=v)}],M:[i,c("month")],MM:[o,c("month")],MMM:[s,function(m){var b=f("months"),y=(f("monthsShort")||b.map(function(v){return v.slice(0,3)})).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(m){var b=f("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\\d+/,c("year")],YY:[o,function(m){this.year=l(m)}],YYYY:[/\\d{4}/,c("year")],Z:u,ZZ:u};function g(m){var b,y;b=m,y=a&&a.formats;for(var v=(m=b.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,D,k){var R=k&&k.toUpperCase();return D||y[k]||n[k]||y[R].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,function(O,I,A){return I||A.slice(1)})})).match(r),C=v.length,S=0;S<C;S+=1){var w=v[S],_=h[w],E=_&&_[0],M=_&&_[1];v[S]=M?{regex:E,parser:M}:w.replace(/^\\[|\\]$/g,"")}return function($){for(var D={},k=0,R=0;k<C;k+=1){var O=v[k];if(typeof O=="string")R+=O.length;else{var I=O.regex,A=O.parser,P=$.slice(R),N=I.exec(P)[0];A.call(D,N),$=$.replace(N,"")}}return function(T){var L=T.afternoon;if(L!==void 0){var z=T.hours;L?z<12&&(T.hours+=12):z===12&&(T.hours=0),delete T.afternoon}}(D),D}}return function(m,b,y){y.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(l=m.parseTwoDigitYear);var v=b.prototype,C=v.parse;v.parse=function(S){var w=S.date,_=S.utc,E=S.args;this.$u=_;var M=E[1];if(typeof M=="string"){var $=E[2]===!0,D=E[3]===!0,k=$||D,R=E[2];D&&(R=E[2]),a=this.$locale(),!$&&R&&(a=y.Ls[R]),this.$d=function(P,N,T){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*P);var L=g(N)(P),z=L.year,B=L.month,V=L.day,H=L.hours,K=L.minutes,G=L.seconds,te=L.milliseconds,ne=L.zone,ge=new Date,se=V||(z||B?1:ge.getDate()),he=z||ge.getFullYear(),fe=0;z&&!B||(fe=B>0?B-1:ge.getMonth());var Ce=H||0,Q=K||0,ve=G||0,X=te||0;return ne?new Date(Date.UTC(he,fe,se,Ce,Q,ve,X+60*ne.offset*1e3)):T?new Date(Date.UTC(he,fe,se,Ce,Q,ve,X)):new Date(he,fe,se,Ce,Q,ve,X)}catch{return new Date("")}}(w,M,_),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),k&&w!=this.format(M)&&(this.$d=new Date("")),a={}}else if(M instanceof Array)for(var O=M.length,I=1;I<=O;I+=1){E[1]=M[I-1];var A=y.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}I===O&&(this.$d=new Date(""))}else C.call(this,S)}}})})(RE);var qP=RE.exports;const QP=Xo(qP);var PE={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qa,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var s=o.prototype,a=s.format;i.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,d){return f.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,g,m){var b=m&&m.toUpperCase();return g||d[m]||n[m]||d[b].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,function(y,v,C){return v||C.slice(1)})})}(l,c===void 0?{}:c);return a.call(this,u)}}})})(PE);var e9=PE.exports;const t9=Xo(e9);var NE={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(qa,function(){return function(n,r,o){r.prototype.isBetween=function(i,s,a,l){var c=o(i),u=o(s),f=(l=l||"()")[0]==="(",d=l[1]===")";return(f?this.isAfter(c,a):!this.isBefore(c,a))&&(d?this.isBefore(u,a):!this.isAfter(u,a))||(f?this.isBefore(c,a):!this.isAfter(c,a))&&(d?this.isAfter(u,a):!this.isBefore(u,a))}}})})(NE);var n9=NE.exports;const r9=Xo(n9);tn.extend(QP),tn.extend(t9),tn.extend(r9);const o9=VP(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from \'dayjs/locale/{localeUsed}\'","fallback on English locale"]),i9={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},s9={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},y1=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`\n`),kE=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`\n`),a9=(e,t)=>t?(...n)=>e(...n).locale(t):e;class l9{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=i9,this.setLocaleToValue=i=>{const s=this.getCurrentLocaleCode();return s===i.locale()?i:i.locale(s)},this.hasUTCPlugin=()=>typeof tn.utc<"u",this.hasTimezonePlugin=()=>typeof tn.tz<"u",this.isSame=(i,s,a)=>{const l=this.setTimezone(s,this.getTimezone(i));return i.format(a)===l.format(a)},this.cleanTimezone=i=>{switch(i){case"default":return;case"system":return tn.tz.guess();default:return i}},this.createSystemDate=i=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(i);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const s=tn.tz.guess();return s!=="UTC"?tn.tz(i,s):tn(i)}return tn(i)},this.createUTCDate=i=>{if(!this.hasUTCPlugin())throw new Error(y1);return tn.utc(i)},this.createTZDate=(i,s)=>{if(!this.hasUTCPlugin())throw new Error(y1);if(!this.hasTimezonePlugin())throw new Error(kE);const a=i!==void 0&&!i.endsWith("Z");return tn(i).tz(this.cleanTimezone(s),a)},this.getLocaleFormats=()=>{const i=tn.Ls,s=this.locale||"en";let a=i[s];return a===void 0&&(o9(),a=i.en),a.formats},this.adjustOffset=i=>{if(!this.hasTimezonePlugin())return i;const s=this.getTimezone(i);if(s!=="UTC"){var a,l;const c=i.tz(this.cleanTimezone(s),!0);return((a=c.$offset)!=null?a:0)===((l=i.$offset)!=null?l:0)?i:c}return i},this.date=i=>i===null?null:this.dayjs(i),this.dateWithTimezone=(i,s)=>{if(i===null)return null;let a;return s==="UTC"?a=this.createUTCDate(i):s==="system"||s==="default"&&!this.hasTimezonePlugin()?a=this.createSystemDate(i):a=this.createTZDate(i,s),this.locale===void 0?a:a.locale(this.locale)},this.getTimezone=i=>{if(this.hasTimezonePlugin()){var s;const a=(s=i.$x)==null?void 0:s.$timezone;if(a)return a}return this.hasUTCPlugin()&&i.isUTC()?"UTC":"system"},this.setTimezone=(i,s)=>{if(this.getTimezone(i)===s)return i;if(s==="UTC"){if(!this.hasUTCPlugin())throw new Error(y1);return i.utc()}if(s==="system")return i.local();if(!this.hasTimezonePlugin()){if(s==="default")return i;throw new Error(kE)}return tn.tz(i,this.cleanTimezone(s))},this.toJsDate=i=>i.toDate(),this.parseISO=i=>this.dayjs(i),this.toISO=i=>i.toISOString(),this.parse=(i,s)=>i===""?null:this.dayjs(i,s,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=i=>{const s=this.getLocaleFormats(),a=l=>l.replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(c,u,f)=>u||f.slice(1));return i.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(l,c,u)=>{const f=u&&u.toUpperCase();return c||s[u]||a(s[f])})},this.getFormatHelperText=i=>this.expandFormat(i).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=i=>i===null,this.isValid=i=>this.dayjs(i).isValid(),this.format=(i,s)=>this.formatByString(i,this.formats[s]),this.formatByString=(i,s)=>this.dayjs(i).format(s),this.formatNumber=i=>i,this.getDiff=(i,s,a)=>i.diff(s,a),this.isEqual=(i,s)=>i===null&&s===null?!0:this.dayjs(i).toDate().getTime()===this.dayjs(s).toDate().getTime(),this.isSameYear=(i,s)=>this.isSame(i,s,"YYYY"),this.isSameMonth=(i,s)=>this.isSame(i,s,"YYYY-MM"),this.isSameDay=(i,s)=>this.isSame(i,s,"YYYY-MM-DD"),this.isSameHour=(i,s)=>i.isSame(s,"hour"),this.isAfter=(i,s)=>i>s,this.isAfterYear=(i,s)=>this.hasUTCPlugin()?!this.isSameYear(i,s)&&i.utc()>s.utc():i.isAfter(s,"year"),this.isAfterDay=(i,s)=>this.hasUTCPlugin()?!this.isSameDay(i,s)&&i.utc()>s.utc():i.isAfter(s,"day"),this.isBefore=(i,s)=>i<s,this.isBeforeYear=(i,s)=>this.hasUTCPlugin()?!this.isSameYear(i,s)&&i.utc()<s.utc():i.isBefore(s,"year"),this.isBeforeDay=(i,s)=>this.hasUTCPlugin()?!this.isSameDay(i,s)&&i.utc()<s.utc():i.isBefore(s,"day"),this.isWithinRange=(i,[s,a])=>i>=s&&i<=a,this.startOfYear=i=>this.adjustOffset(i.startOf("year")),this.startOfMonth=i=>this.adjustOffset(i.startOf("month")),this.startOfWeek=i=>this.adjustOffset(i.startOf("week")),this.startOfDay=i=>this.adjustOffset(i.startOf("day")),this.endOfYear=i=>this.adjustOffset(i.endOf("year")),this.endOfMonth=i=>this.adjustOffset(i.endOf("month")),this.endOfWeek=i=>this.adjustOffset(i.endOf("week")),this.endOfDay=i=>this.adjustOffset(i.endOf("day")),this.addYears=(i,s)=>this.adjustOffset(s<0?i.subtract(Math.abs(s),"year"):i.add(s,"year")),this.addMonths=(i,s)=>this.adjustOffset(s<0?i.subtract(Math.abs(s),"month"):i.add(s,"month")),this.addWeeks=(i,s)=>this.adjustOffset(s<0?i.subtract(Math.abs(s),"week"):i.add(s,"week")),this.addDays=(i,s)=>this.adjustOffset(s<0?i.subtract(Math.abs(s),"day"):i.add(s,"day")),this.addHours=(i,s)=>this.adjustOffset(s<0?i.subtract(Math.abs(s),"hour"):i.add(s,"hour")),this.addMinutes=(i,s)=>this.adjustOffset(s<0?i.subtract(Math.abs(s),"minute"):i.add(s,"minute")),this.addSeconds=(i,s)=>this.adjustOffset(s<0?i.subtract(Math.abs(s),"second"):i.add(s,"second")),this.getYear=i=>i.year(),this.getMonth=i=>i.month(),this.getDate=i=>i.date(),this.getHours=i=>i.hour(),this.getMinutes=i=>i.minute(),this.getSeconds=i=>i.second(),this.getMilliseconds=i=>i.millisecond(),this.setYear=(i,s)=>this.adjustOffset(i.set("year",s)),this.setMonth=(i,s)=>this.adjustOffset(i.set("month",s)),this.setDate=(i,s)=>this.adjustOffset(i.set("date",s)),this.setHours=(i,s)=>this.adjustOffset(i.set("hour",s)),this.setMinutes=(i,s)=>this.adjustOffset(i.set("minute",s)),this.setSeconds=(i,s)=>this.adjustOffset(i.set("second",s)),this.setMilliseconds=(i,s)=>this.adjustOffset(i.set("millisecond",s)),this.getDaysInMonth=i=>i.daysInMonth(),this.getNextMonth=i=>this.addMonths(i,1),this.getPreviousMonth=i=>this.addMonths(i,-1),this.getMonthArray=i=>{const a=[i.startOf("year")];for(;a.length<12;){const l=a[a.length-1];a.push(this.addMonths(l,1))}return a},this.mergeDateAndTime=(i,s)=>i.hour(s.hour()).minute(s.minute()).second(s.second()),this.getWeekdays=()=>{const i=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(s=>this.formatByString(this.addDays(i,s),"dd"))},this.getWeekArray=i=>{const s=this.setLocaleToValue(i),a=s.startOf("month").startOf("week"),l=s.endOf("month").endOf("week");let c=0,u=a;const f=[];for(;u<l;){const d=Math.floor(c/7);f[d]=f[d]||[],f[d].push(u),u=this.addDays(u,1),c+=1}return f},this.getWeekNumber=i=>i.week(),this.getYearRange=(i,s)=>{const a=i.startOf("year"),l=s.endOf("year"),c=[];let u=a;for(;u<l;)c.push(u),u=this.addYears(u,1);return c},this.getMeridiemText=i=>i==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=a9((o=this.rawDayJsInstance)!=null?o:tn,t),this.locale=t,this.formats=W({},s9,n),tn.extend(XP)}}function ME(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ME(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ss(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ME(e))&&(r&&(r+=" "),r+=t);return r}let c9={data:""},u9=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||c9,d9=/(?:([\\u0080-\\uFFFF\\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\\s*)/g,f9=/\\/\\*[^]*?\\*\\/| +/g,DE=/\\n+/g,as=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?as(s,i):i+"{"+as(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=as(s,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=as.p?as.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Mo={},LE=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+LE(e[n]);return t}return e},p9=(e,t,n,r,o)=>{let i=LE(e),s=Mo[i]||(Mo[i]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(i));if(!Mo[s]){let l=i!==e?e:(c=>{let u,f,d=[{}];for(;u=d9.exec(c.replace(f9,""));)u[4]?d.shift():u[3]?(f=u[3].replace(DE," ").trim(),d.unshift(d[0][f]=d[0][f]||{})):d[0][u[1]]=u[2].replace(DE," ").trim();return d[0]})(e);Mo[s]=as(o?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&Mo.g?Mo.g:null;return n&&(Mo.g=Mo[s]),((l,c,u,f)=>{f?c.data=c.data.replace(f,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Mo[s],t,r,a),s},g9=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":as(a,""):a===!1?"":a}return r+o+(s??"")},"");function C1(e){let t=this||{},n=e.call?e(t.p):e;return p9(n.unshift?n.raw?g9(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,u9(t.target),t.g,t.o,t.k)}C1.bind({g:1}),C1.bind({k:1});function FE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $E(e,t,n){return t&&FE(e.prototype,t),n&&FE(e,n),e}function Ge(){return Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ge.apply(this,arguments)}function BE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function vc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function UE(e){if(e===void 0)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}var zE=function(){return""},jE=U.createContext({enqueueSnackbar:zE,closeSnackbar:zE}),ls={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},WE=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},S1=function(t){return""+WE(t.vertical)+WE(t.horizontal)},Mf=function(t){return!!t||t===0},Df="unmounted",Ia="exited",Oa="entering",yc="entered",VE="exiting",b1=function(e){BE(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,s;return o.appearStatus=null,r.in?i?(s=Ia,o.appearStatus=Oa):s=yc:r.unmountOnExit||r.mountOnEnter?s=Df:s=Ia,o.state={status:s},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Df?{status:Ia}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Oa&&s!==yc&&(i=Oa):(s===Oa||s===yc)&&(i=VE)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,s=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(s=o.exit,i=o.enter),{exit:s,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Oa?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Ia&&this.setState({status:Df})},n.performEnter=function(o){var i=this,s=this.props.enter,a=o,l=this.getTimeouts();if(!o&&!s){this.safeSetState({status:yc},function(){i.props.onEntered&&i.props.onEntered(i.node,a)});return}this.props.onEnter&&this.props.onEnter(this.node,a),this.safeSetState({status:Oa},function(){i.props.onEntering&&i.props.onEntering(i.node,a),i.onTransitionEnd(l.enter,function(){i.safeSetState({status:yc},function(){i.props.onEntered&&i.props.onEntered(i.node,a)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts();if(!i){this.safeSetState({status:Ia},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:VE},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Ia},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(){s&&(s=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=o==null&&!this.props.addEndListener;if(!this.node||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Df)return null;var i=this.props,s=i.children,a=vc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s(o,a)},$E(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(U.Component);function Aa(){}b1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Aa,onEntering:Aa,onEntered:Aa,onExit:Aa,onExiting:Aa,onExited:Aa};function HE(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function E1(e,t){return p.useMemo(function(){return e==null&&t==null?null:function(n){HE(e,n),HE(t,n)}},[e,t])}function Lf(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var x1={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},GE=function(t){t.scrollTop=t.scrollTop},YE=function(t){return Math.round(t)+"ms"};function Ra(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,s=i===void 0?x1.easeInOut:i,a=n.delay,l=a===void 0?0:a,c=Array.isArray(e)?e:[e];return c.map(function(u){var f=typeof o=="string"?o:YE(o),d=typeof l=="string"?l:YE(l);return u+" "+f+" "+s+" "+d}).join(",")}function h9(e){return e&&e.ownerDocument||document}function KE(e){var t=h9(e);return t.defaultView||window}function m9(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var l=function(){e.apply(o,s)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=function(){clearTimeout(n)},r}function v9(e,t){var n=t.getBoundingClientRect(),r=KE(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var s=0,a=0;if(o&&o!=="none"&&typeof o=="string"){var l=o.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),a=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+s-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-s)+"px)";case"up":return"translateY("+(r.innerHeight+a-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-a)+"px)"}}function Ff(e,t){if(t){var n=v9(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var ZE=p.forwardRef(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,s=e.style,a=e.timeout,l=a===void 0?0:a,c=e.onEnter,u=e.onEntered,f=e.onExit,d=e.onExited,h=vc(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=p.useRef(null),m=E1(n.ref,g),b=E1(m,t),y=function(E,M){Ff(o,E),GE(E),c&&c(E,M)},v=function(E){var M=(s==null?void 0:s.transitionTimingFunction)||x1.easeOut,$=Lf({timeout:l,mode:"enter",style:Ge({},s,{transitionTimingFunction:M})});E.style.webkitTransition=Ra("-webkit-transform",$),E.style.transition=Ra("transform",$),E.style.webkitTransform="none",E.style.transform="none"},C=function(E){var M=(s==null?void 0:s.transitionTimingFunction)||x1.sharp,$=Lf({timeout:l,mode:"exit",style:Ge({},s,{transitionTimingFunction:M})});E.style.webkitTransition=Ra("-webkit-transform",$),E.style.transition=Ra("transform",$),Ff(o,E),f&&f(E)},S=function(E){E.style.webkitTransition="",E.style.transition="",d&&d(E)},w=p.useCallback(function(){g.current&&Ff(o,g.current)},[o]);return p.useEffect(function(){if(!(i||o==="down"||o==="right")){var _=m9(function(){g.current&&Ff(o,g.current)}),E=KE(g.current);return E.addEventListener("resize",_),function(){_.clear(),E.removeEventListener("resize",_)}}},[o,i]),p.useEffect(function(){i||w()},[i,w]),p.createElement(b1,Object.assign({appear:!0,nodeRef:g,onEnter:y,onEntered:u,onEntering:v,onExit:C,onExited:S,in:i,timeout:l},h),function(_,E){return p.cloneElement(n,Ge({ref:b,style:Ge({visibility:_==="exited"&&!i?"hidden":void 0},s,{},n.props.style)},E))})});ZE.displayName="Slide";var $f=function(t){return U.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},y9=function(){return U.createElement($f,null,U.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},C9=function(){return U.createElement($f,null,U.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},S9=function(){return U.createElement($f,null,U.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},b9=function(){return U.createElement($f,null,U.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z`}))},E9={default:void 0,success:U.createElement(y9,null),warning:U.createElement(C9,null),error:U.createElement(S9,null),info:U.createElement(b9,null)},cs={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:E9,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:ZE,transitionDuration:{enter:225,exit:195}},x9=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:cs.autoHideDuration},w9=function(t,n){var r=function(i,s){return s.some(function(a){return typeof i===a})};return r(t,["string","number"])?t:r(t,["object"])?Ge({},cs.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?Ge({},cs.transitionDuration,{},n):cs.transitionDuration},T9=function(t,n){return function(r,o){return o===void 0&&(o=!1),o?Ge({},cs[r],{},n[r],{},t[r]):r==="autoHideDuration"?x9(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?w9(t.transitionDuration,n.transitionDuration):t[r]||n[r]||cs[r]}};function Cc(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return Ge({},t,(r={},r[o]=C1(i),r))},{})}var Pa={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},JE=Cc({root:{height:0},entered:{height:"auto"}}),w1="0px",T1=175,XE=p.forwardRef(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=p.useRef(null),s=p.useRef(null),a=E1(t,s),l=function(){return i.current?i.current.clientHeight:0},c=function(m){m.style.height=w1},u=function(m){var b=l(),y=Lf({timeout:T1,mode:"enter"}),v=y.duration,C=y.easing;m.style.transitionDuration=typeof v=="string"?v:v+"ms",m.style.height=b+"px",m.style.transitionTimingFunction=C||""},f=function(m){m.style.height="auto"},d=function(m){m.style.height=l()+"px"},h=function(m){GE(m);var b=Lf({timeout:T1,mode:"exit"}),y=b.duration,v=b.easing;m.style.transitionDuration=typeof y=="string"?y:y+"ms",m.style.height=w1,m.style.transitionTimingFunction=v||""};return p.createElement(b1,{in:r,unmountOnExit:!0,onEnter:c,onEntered:f,onEntering:u,onExit:d,onExited:o,onExiting:h,nodeRef:s,timeout:T1},function(g,m){return p.createElement("div",Object.assign({ref:a,className:ss(JE.root,g==="entered"&&JE.entered),style:Ge({pointerEvents:"all",overflow:"hidden",minHeight:w1,transition:Ra("height")},g==="entered"&&{overflow:"visible"},{},g==="exited"&&!r&&{visibility:"hidden"})},m),p.createElement("div",{ref:i,className:Pa.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});XE.displayName="Collapse";var qE={right:"left",left:"right",bottom:"up",top:"down"},_9=function(t){return t.horizontal!=="center"?qE[t.horizontal]:qE[t.vertical]},I9=function(t){return"anchorOrigin"+S1(t)},O9=function(t){t===void 0&&(t={});var n={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!n[r]}).reduce(function(r,o){var i;return Ge({},r,(i={},i[o]=t[o],i))},{})},A9=function(){};function Sc(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var l=[].concat(s);t&&l.indexOf(t)===-1&&l.push(t),n.apply(this,l),r.apply(this,l)}},A9)}var R9=typeof window<"u"?p.useLayoutEffect:p.useEffect;function QE(e){var t=p.useRef(e);return R9(function(){t.current=e}),p.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var ex=p.forwardRef(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,s=i===void 0?!1:i,a=e.onClose,l=e.id,c=e.open,u=e.SnackbarProps,f=u===void 0?{}:u,d=p.useRef(),h=QE(function(){a&&a.apply(void 0,arguments)}),g=QE(function(C){!a||C==null||(d.current&&clearTimeout(d.current),d.current=setTimeout(function(){h(null,"timeout",l)},C))});p.useEffect(function(){return c&&g(o),function(){d.current&&clearTimeout(d.current)}},[c,o,g]);var m=function(){d.current&&clearTimeout(d.current)},b=p.useCallback(function(){o!=null&&g(o*.5)},[o,g]),y=function(S){f.onMouseEnter&&f.onMouseEnter(S),m()},v=function(S){f.onMouseLeave&&f.onMouseLeave(S),b()};return p.useEffect(function(){if(!s&&c)return window.addEventListener("focus",b),window.addEventListener("blur",m),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",m)}},[s,b,c]),p.createElement("div",Object.assign({ref:t},f,{className:ss(Pa.Snackbar,r),onMouseEnter:y,onMouseLeave:v}),n)});ex.displayName="Snackbar";var _1,P9=Cc({root:(_1={display:"flex",flexWrap:"wrap",flexGrow:1},_1[ls.upSm]={flexGrow:"initial",minWidth:"288px"},_1)}),tx=p.forwardRef(function(e,t){var n=e.className,r=vc(e,["className"]);return U.createElement("div",Object.assign({ref:t,className:ss(P9.root,n)},r))});tx.displayName="SnackbarContent";var bc=Cc({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),nx="notistack-snackbar",rx=p.forwardRef(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,s=e.variant,a=e.hideIconVariant,l=e.style,c=e.className,u=i[s],f=o;return typeof f=="function"&&(f=f(n)),U.createElement(tx,{ref:t,role:"alert","aria-describedby":nx,style:l,className:ss(Pa.MuiContent,Pa.MuiContentVariant(s),bc.root,bc[s],c,!a&&u&&bc.lessPadding)},U.createElement("div",{id:nx,className:bc.message},a?null:u,r),f&&U.createElement("div",{className:bc.action},f))});rx.displayName="MaterialDesignContent";var Na=p.memo(rx),N9=Cc({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),k9=function(t){var n=p.useRef(),r=p.useState(!0),o=r[0],i=r[1],s=Sc([t.snack.onClose,t.onClose]),a=function(){t.snack.requestClose&&s(null,"instructed",t.snack.id)},l=p.useCallback(function(){n.current=setTimeout(function(){i(function($){return!$})},125)},[]);p.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var c=t.snack,u=t.classes,f=t.Component,d=f===void 0?Na:f,h=p.useMemo(function(){return O9(u)},[u]),g=c.open,m=c.SnackbarProps,b=c.TransitionComponent,y=c.TransitionProps,v=c.transitionDuration,C=c.disableWindowBlurListener,S=c.content,w=vc(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),_=Ge({direction:_9(w.anchorOrigin),timeout:v},y),E=S;typeof E=="function"&&(E=E(w.id,w.message));var M=["onEnter","onEntered","onExit","onExited"].reduce(function($,D){var k;return Ge({},$,(k={},k[D]=Sc([t.snack[D],t[D]],w.id),k))},{});return U.createElement(XE,{in:o,onExited:M.onExited},U.createElement(ex,{open:g,id:w.id,disableWindowBlurListener:C,autoHideDuration:w.autoHideDuration,className:ss(N9.wrappedRoot,h.root,h[I9(w.anchorOrigin)]),SnackbarProps:m,onClose:s},U.createElement(b,Object.assign({},_,{appear:!0,in:g,onExit:M.onExit,onExited:l,onEnter:M.onEnter,onEntered:Sc([M.onEntered,a],w.id)}),E||U.createElement(d,Object.assign({},w)))))},Ec,I1,Bf,Uf,O1,Do={view:{default:20,dense:4},snackbar:{default:6,dense:2}},ox="."+Pa.CollapseWrapper,A1=16,zf=Cc({root:(Ec={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Ra(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Ec[ox]={padding:Do.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Ec.maxWidth="calc(100% - "+Do.view.default*2+"px)",Ec[ls.downXs]={width:"100%",maxWidth:"calc(100% - "+A1*2+"px)"},Ec),rootDense:(I1={},I1[ox]={padding:Do.snackbar.dense+"px 0px"},I1),top:{top:Do.view.default-Do.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Do.view.default-Do.snackbar.default+"px",flexDirection:"column-reverse"},left:(Bf={left:Do.view.default+"px"},Bf[ls.upSm]={alignItems:"flex-start"},Bf[ls.downXs]={left:A1+"px"},Bf),right:(Uf={right:Do.view.default+"px"},Uf[ls.upSm]={alignItems:"flex-end"},Uf[ls.downXs]={right:A1+"px"},Uf),center:(O1={left:"50%",transform:"translateX(-50%)"},O1[ls.upSm]={alignItems:"center"},O1)}),M9=function(t){var n=t.classes,r=n===void 0?{}:n,o=t.anchorOrigin,i=t.dense,s=t.children,a=ss(Pa.SnackbarContainer,zf[o.vertical],zf[o.horizontal],zf.root,r.containerRoot,r["containerAnchorOrigin"+S1(o)],i&&zf.rootDense);return U.createElement("div",{className:a},s)},D9=p.memo(M9),ix=function(t){var n=typeof t=="string"||p.isValidElement(t);return!n},sx=function(e){BE(t,e);function t(r){var o;return o=e.call(this,r)||this,o.enqueueSnackbar=function(i,s){if(s===void 0&&(s={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var a=ix(i)?i:s,l=ix(i)?i.message:i,c=a.key,u=a.preventDuplicate,f=vc(a,["key","preventDuplicate"]),d=Mf(c),h=d?c:new Date().getTime()+Math.random(),g=T9(f,o.props),m=Ge({id:h},f,{message:l,open:!0,entered:!1,requestClose:!1,persist:g("persist"),action:g("action"),content:g("content"),variant:g("variant"),anchorOrigin:g("anchorOrigin"),disableWindowBlurListener:g("disableWindowBlurListener"),autoHideDuration:g("autoHideDuration"),hideIconVariant:g("hideIconVariant"),TransitionComponent:g("TransitionComponent"),transitionDuration:g("transitionDuration"),TransitionProps:g("TransitionProps",!0),iconVariant:g("iconVariant",!0),style:g("style",!0),SnackbarProps:g("SnackbarProps",!0),className:ss(o.props.className,f.className)});return m.persist&&(m.autoHideDuration=void 0),o.setState(function(b){if(u===void 0&&o.props.preventDuplicate||u){var y=function(w){return d?w.id===h:w.message===l},v=b.queue.findIndex(y)>-1,C=b.snacks.findIndex(y)>-1;if(v||C)return b}return o.handleDisplaySnack(Ge({},b,{queue:[].concat(b.queue,[m])}))}),h},o.handleDisplaySnack=function(i){var s=i.snacks;return s.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var s=i.queue,a=i.snacks;return s.length>0?Ge({},i,{snacks:[].concat(a,[s[0]]),queue:s.slice(1,s.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(u){return!u.open||u.requestClose}))return i;var s=!1,a=!1,l=i.snacks.reduce(function(u,f){return u+(f.open&&f.persist?1:0)},0);l===o.maxSnack&&(a=!0);var c=i.snacks.map(function(u){return!s&&(!u.persist||a)?(s=!0,u.entered?(u.onClose&&u.onClose(null,"maxsnack",u.id),o.props.onClose&&o.props.onClose(null,"maxsnack",u.id),Ge({},u,{open:!1})):Ge({},u,{requestClose:!0})):Ge({},u)});return Ge({},i,{snacks:c})},o.handleEnteredSnack=function(i,s,a){if(!Mf(a))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(l){var c=l.snacks;return{snacks:c.map(function(u){return u.id===a?Ge({},u,{entered:!0}):Ge({},u)})}})},o.handleCloseSnack=function(i,s,a){o.props.onClose&&o.props.onClose(i,s,a);var l=a===void 0;o.setState(function(c){var u=c.snacks,f=c.queue;return{snacks:u.map(function(d){return!l&&d.id!==a?Ge({},d):d.entered?Ge({},d,{open:!1}):Ge({},d,{requestClose:!0})}),queue:f.filter(function(d){return d.id!==a})}})},o.closeSnackbar=function(i){var s=o.state.snacks.find(function(a){return a.id===i});Mf(i)&&s&&s.onClose&&s.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,s){if(!Mf(s))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(a){var l=o.processQueue(Ge({},a,{snacks:a.snacks.filter(function(c){return c.id!==s})}));return l.queue.length===0?l:o.handleDismissOldest(l)})},o.enqueueSnackbar,o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(UE(o)),closeSnackbar:o.closeSnackbar.bind(UE(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,s=this.props,a=s.domRoot,l=s.children,c=s.dense,u=c===void 0?!1:c,f=s.Components,d=f===void 0?{}:f,h=s.classes,g=this.state.snacks.reduce(function(b,y){var v,C=S1(y.anchorOrigin),S=b[C]||[];return Ge({},b,(v={},v[C]=[].concat(S,[y]),v))},{}),m=Object.keys(g).map(function(b){var y=g[b],v=y[0];return U.createElement(D9,{key:b,dense:u,anchorOrigin:v.anchorOrigin,classes:h},y.map(function(C){return U.createElement(k9,{key:C.id,snack:C,classes:h,Component:d[C.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:Sc([o.handleExitedSnack,o.props.onExited],C.id),onEntered:Sc([o.handleEnteredSnack,o.props.onEntered],C.id)})}))});return U.createElement(jE.Provider,{value:i},l,a?Sa.createPortal(m,a):m)},$E(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||cs.maxSnack}}]),t}(p.Component),L9=function(){return p.useContext(jE)};/**\n * @remix-run/router v1.0.3\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jf.apply(this,arguments)}var Si;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Si||(Si={}));const ax="popstate";function F9(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return R1("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:P1(o)}return U9(t,n,null,e)}function $9(){return Math.random().toString(36).substr(2,8)}function lx(e){return{usr:e.state,key:e.key}}function R1(e,t,n,r){return n===void 0&&(n=null),jf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wf(t):t,{state:n,key:t&&t.key||r||$9()})}function P1(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Wf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function B9(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:"unknown://unknown",n=typeof e=="string"?e:P1(e);return new URL(n,t)}function U9(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Si.Pop,l=null;function c(){a=Si.Pop,l&&l({action:a,location:d.location})}function u(h,g){a=Si.Push;let m=R1(d.location,h,g);n&&n(m,h);let b=lx(m),y=d.createHref(m);try{s.pushState(b,"",y)}catch{o.location.assign(y)}i&&l&&l({action:a,location:d.location})}function f(h,g){a=Si.Replace;let m=R1(d.location,h,g);n&&n(m,h);let b=lx(m),y=d.createHref(m);s.replaceState(b,"",y),i&&l&&l({action:a,location:d.location})}let d={get action(){return a},get location(){return e(o,s)},listen(h){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(ax,c),l=h,()=>{o.removeEventListener(ax,c),l=null}},createHref(h){return t(o,h)},encodeLocation(h){let g=B9(P1(h));return jf({},h,{pathname:g.pathname,search:g.search,hash:g.hash})},push:u,replace:f,go(h){return s.go(h)}};return d}var cx;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cx||(cx={}));function z9(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Wf(t):t,o=fx(r.pathname||"/",n);if(o==null)return null;let i=ux(e);j9(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=X9(i[a],eN(o));return s}function ux(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((o,i)=>{let s={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(Kn(s.relativePath.startsWith(r),\'Absolute route path "\'+s.relativePath+\'" nested under path \'+(\'"\'+r+\'" is not valid. An absolute child route path \')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=ka([r,s.relativePath]),l=n.concat(s);o.children&&o.children.length>0&&(Kn(o.index!==!0,"Index routes must not have child routes. Please remove "+(\'all child routes from route path "\'+a+\'".\')),ux(o.children,t,l,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Z9(a,o.index),routesMeta:l})}),t}function j9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:J9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const W9=/^:\\w+$/,V9=3,H9=2,G9=1,Y9=10,K9=-2,dx=e=>e==="*";function Z9(e,t){let n=e.split("/"),r=n.length;return n.some(dx)&&(r+=K9),t&&(r+=H9),n.filter(o=>!dx(o)).reduce((o,i)=>o+(W9.test(i)?V9:i===""?G9:Y9),r)}function J9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function X9(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s<n.length;++s){let a=n[s],l=s===n.length-1,c=o==="/"?t:t.slice(o.length)||"/",u=q9({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c);if(!u)return null;Object.assign(r,u.params);let f=a.route;i.push({params:r,pathname:ka([o,u.pathname]),pathnameBase:nN(ka([o,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(o=ka([o,u.pathnameBase]))}return i}function q9(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Q9(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((c,u,f)=>{if(u==="*"){let d=a[f]||"";s=i.slice(0,i.length-d.length).replace(/(.)\\/+$/,"$1")}return c[u]=tN(a[f]||"",u),c},{}),pathname:i,pathnameBase:s,pattern:e}}function Q9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),N1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),\'Route path "\'+e+\'" will be treated as if it were \'+(\'"\'+e.replace(/\\*$/,"/*")+\'" because the `*` character must \')+"always follow a `/` in the pattern. To get rid of this warning, "+(\'please change the route path to "\'+e.replace(/\\*$/,"/*")+\'".\'));let r=[],o="^"+e.replace(/\\/*\\*?$/,"").replace(/^\\/*/,"/").replace(/[\\\\.*+^$?{}|()[\\]]/g,"\\\\$&").replace(/:(\\w+)/g,(s,a)=>(r.push(a),"([^\\\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\\\/(.+)|\\\\/*)$"):n?o+="\\\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function eN(e){try{return decodeURI(e)}catch(t){return N1(!1,\'The URL path "\'+e+\'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent \'+("encoding ("+t+").")),e}}function tN(e,t){try{return decodeURIComponent(e)}catch(n){return N1(!1,\'The value for the URL param "\'+t+\'" will not be decoded because\'+(\' the string "\'+e+\'" is a malformed URL segment. This is probably\')+(" due to a bad percent encoding ("+n+").")),e}}function fx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Kn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function N1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}const ka=e=>e.join("/").replace(/\\/\\/+/g,"/"),nN=e=>e.replace(/\\/+$/,"").replace(/^\\/*/,"/");class rN{constructor(t,n,r){this.status=t,this.statusText=n||"",this.data=r}}function oN(e){return e instanceof rN}[...new Set(["POST","PUT","PATCH","DELETE"])];/**\n * React Router v6.4.3\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k1.apply(this,arguments)}function iN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const sN=typeof Object.is=="function"?Object.is:iN,{useState:aN,useEffect:lN,useLayoutEffect:cN,useDebugValue:uN}=Rs;function dN(e,t,n){const r=t(),[{inst:o},i]=aN({inst:{value:r,getSnapshot:t}});return cN(()=>{o.value=r,o.getSnapshot=t,M1(o)&&i({inst:o})},[e,r,t]),lN(()=>(M1(o)&&i({inst:o}),e(()=>{M1(o)&&i({inst:o})})),[e]),uN(r),r}function M1(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!sN(n,r)}catch{return!0}}function fN(e,t,n){return t()}const pN=!(typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u")?fN:dN;"useSyncExternalStore"in Rs&&(e=>e.useSyncExternalStore)(Rs);const gN=p.createContext(null),hN=p.createContext(null),px=p.createContext(null),mN=p.createContext(null),Vf=p.createContext(null),D1=p.createContext({outlet:null,matches:[]}),gx=p.createContext(null);function L1(){return p.useContext(Vf)!=null}function vN(){return L1()||Kn(!1),p.useContext(Vf).location}function yN(e,t){L1()||Kn(!1);let n=p.useContext(px),{matches:r}=p.useContext(D1),o=r[r.length-1],i=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let a=vN(),l;if(t){var c;let g=typeof t=="string"?Wf(t):t;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||Kn(!1),l=g}else l=a;let u=l.pathname||"/",f=s==="/"?u:u.slice(s.length)||"/",d=z9(e,{pathname:f}),h=EN(d&&d.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:ka([s,g.pathname]),pathnameBase:g.pathnameBase==="/"?s:ka([s,g.pathnameBase])})),r,n||void 0);return t&&h?p.createElement(Vf.Provider,{value:{location:k1({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:Si.Pop}},h):h}function CN(){let e=wN(),t=oN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unhandled Thrown Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:i},"errorElement")," props on ",p.createElement("code",{style:i},"<Route>")))}class SN extends p.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?p.createElement(gx.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function bN(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(gN);return o&&n.route.errorElement&&(o._deepestRenderedBoundaryId=n.route.id),p.createElement(D1.Provider,{value:t},r)}function EN(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(s=>s.route.id&&(o==null?void 0:o[s.route.id]));i>=0||Kn(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,s,a)=>{let l=s.route.id?o==null?void 0:o[s.route.id]:null,c=n?s.route.errorElement||p.createElement(CN,null):null,u=()=>p.createElement(bN,{match:s,routeContext:{outlet:i,matches:t.concat(r.slice(0,a+1))}},l?c:s.route.element!==void 0?s.route.element:i);return n&&(s.route.errorElement||a===0)?p.createElement(SN,{location:n.location,component:c,error:l,children:u()}):u()},null)}var hx;(function(e){e.UseRevalidator="useRevalidator"})(hx||(hx={}));var F1;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(F1||(F1={}));function xN(e){let t=p.useContext(px);return t||Kn(!1),t}function wN(){var e;let t=p.useContext(gx),n=xN(F1.UseRouteError),r=p.useContext(D1),o=r.matches[r.matches.length-1];return t||(r||Kn(!1),o.route.id||Kn(!1),(e=n.errors)==null?void 0:e[o.route.id])}function $1(e){Kn(!1)}function TN(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Si.Pop,navigator:i,static:s=!1}=e;L1()&&Kn(!1);let a=t.replace(/^\\/*/,"/"),l=p.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=Wf(r));let{pathname:c="/",search:u="",hash:f="",state:d=null,key:h="default"}=r,g=p.useMemo(()=>{let m=fx(c,a);return m==null?null:{pathname:m,search:u,hash:f,state:d,key:h}},[a,c,u,f,d,h]);return g==null?null:p.createElement(mN.Provider,{value:l},p.createElement(Vf.Provider,{children:n,value:{location:g,navigationType:o}}))}function _N(e){let{children:t,location:n}=e,r=p.useContext(hN),o=r&&!t?r.router.routes:B1(t);return yN(o,n)}var mx;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(mx||(mx={})),new Promise(()=>{});function B1(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;if(r.type===p.Fragment){n.push.apply(n,B1(r.props.children,t));return}r.type!==$1&&Kn(!1),!r.props.index||!r.props.children||Kn(!1);let i=[...t,o],s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(s.children=B1(r.props.children,i)),n.push(s)}),n}/**\n * React Router DOM v6.4.3\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */function IN(e){let{basename:t,children:n,window:r}=e,o=p.useRef();o.current==null&&(o.current=F9({window:r,v5Compat:!0}));let i=o.current,[s,a]=p.useState({action:i.action,location:i.location});return p.useLayoutEffect(()=>i.listen(a),[i]),p.createElement(TN,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}var vx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(vx||(vx={}));var yx;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yx||(yx={}));function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function ON(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var AN=p.createContext(void 0),wr;(function(e){e.SHOW="SHOW",e.HIDE="HIDE",e.UPDATE="UPDATE",e.DESTROY="DESTROY",e.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",e.UNKNOWN="UNKNOWN"})(wr||(wr={}));var RN={};function PN(e,t){switch(t.type){case wr.SHOW:{var n,r=t.payload,o=r.id,i=r.component,s=r.props,a=r.options;return Zn({},e,(n={},n[o]={component:i,props:Zn({},s,{open:!0}),options:a},n))}case wr.HIDE:{var l,c=t.payload.id;return e[c]?Zn({},e,(l={},l[c]=Zn({},e[c],{props:Zn({},e[c].props,{open:!1})}),l)):e}case wr.UPDATE:{var u,f=t.payload,d=f.id,h=f.props;return e[d]?Zn({},e,(u={},u[d]=Zn({},e[d],{props:Zn({},e[d].props,h)}),u)):e}case wr.DESTROY:{var g=t.payload.id,m=Zn({},e);return delete m[g],m}case wr.DESTROY_BY_ROOT_ID:{var b=t.payload.rootId;return Object.keys(e).filter(function(y){return y.split(".")[0]!==b}).reduce(function(y,v){var C;return Zn({},y,(C={},C[v]=e[v],C))},{})}default:throw new Error("Unexpected action")}}var U1="[ERROR]: Modal ID is missing",NN="[ERROR]: Modal root ID is missing",kN=function(t){t===void 0&&(t=8);for(var n=[],r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=r.length,i=0;i<t;i++)n[i]=r.charAt(Math.floor(Math.random()*o));return n.join("")},MN=["open"];function DN(e){var t=e.children,n=e.legacy,r=n===void 0?!1:n,o=e.suspense,i=o===void 0?!0:o,s=e.fallback,a=s===void 0?null:s,l=U.useReducer(PN,RN),c=l[0],u=l[1],f=U.useCallback(function(v,C){var S=ON(C,MN);if(!v){console.error(U1);return}u({type:wr.UPDATE,payload:{id:v,props:S}})},[u]),d=U.useCallback(function(v){if(!v){console.error(U1);return}u({type:wr.HIDE,payload:{id:v}})},[u]),h=U.useCallback(function(v){if(!v){console.error(U1);return}u({type:wr.DESTROY,payload:{id:v}})},[u]),g=U.useCallback(function(v){if(!v){console.error(NN);return}u({type:wr.DESTROY_BY_ROOT_ID,payload:{rootId:v}})},[u]),m=U.useCallback(function(v,C,S){var w=kN(8);return S&&S.rootId&&(w=S.rootId+"."+w),u({type:wr.SHOW,payload:{id:w,component:v,props:C,options:S}}),{id:w,hide:function(){return d(w)},destroy:function(){return h(w)},update:function(E){return f(w,E)}}},[u,d,h,f]),b=function(){return Object.keys(c).map(function(C){var S=c[C],w=S.component,_=S.props,E=S.options,M=function(){E&&E.destroyOnClose?h(C):d(C),_&&_.onClose&&_.onClose.apply(_,arguments)},$=function(){var R;if(_!=null&&_.onExited&&_.onExited.apply(_,arguments),_!=null&&(R=_.TransitionProps)!=null&&R.onExited){var O;(O=_.TransitionProps).onExited.apply(O,arguments)}h(C)},D={};return r?D={onExited:$}:D={TransitionProps:Zn({},_==null?void 0:_.TransitionProps,{onExited:$})},U.createElement(w,Object.assign({},_,{key:C,onClose:M},E&&!E.destroyOnClose&&D))})},y=i?p.Suspense:p.Fragment;return U.createElement(AN.Provider,{value:{state:c,updateModal:f,hideModal:d,destroyModal:h,showModal:m,destroyModalsByRootId:g}},t,U.createElement(y,{fallback:a},b()))}const Cx=window.ZCBCoChannel.comStore,Lo=e=>{const[t,n]=p.useState(e(Cx.getState()));return p.useEffect(()=>{const r=Cx.subscribe(o=>{const i=e(o);n(i)});return()=>r()},[e]),t},Sx=window.ZCBCoChannel.publicStore,Je=e=>{const[t,n]=p.useState(e(Sx.getState()));return p.useEffect(()=>{const r=Sx.subscribe(o=>{const i=e(o);n(i)});return()=>r()},[e]),t},bx=window.ZCBCoChannel.recordingStore,Hf=e=>{const[t,n]=p.useState(e(bx.getState()));return p.useEffect(()=>{const r=bx.subscribe(o=>{const i=e(o);n(i)});return()=>r()},[e]),t};function xc(){const{enqueueSnackbar:e,closeSnackbar:t}=L9(),n=p.useRef(null),o=p.useCallback((i,s="info",a={vertical:"top",horizontal:"center"},l=3e3)=>{n.current!=null&&t(n.current);let c;if(typeof i=="string")c=e(i,{variant:s,anchorOrigin:a,autoHideDuration:l,disableWindowBlurListener:!0});else{const{msg:u,type:f="info",pos:d={vertical:"top",horizontal:"center"},duration:h=3e3}=i;c=e(u,{variant:f,anchorOrigin:d,autoHideDuration:h,disableWindowBlurListener:!0})}n.current=c},[e,t]);return o.close=()=>{n.current!=null&&(t(n.current),n.current=null)},o}const LN=(...e)=>{console!=null&&console.warn&&(us(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},Ex={},z1=(...e)=>{us(e[0])&&Ex[e[0]]||(us(e[0])&&(Ex[e[0]]=new Date),LN(...e))},xx=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},wx=(e,t,n)=>{e.loadNamespaces(t,xx(e,n))},Tx=(e,t,n,r)=>{us(n)&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,xx(e,r))},FN=(e,t,n={})=>!t.languages||!t.languages.length?(z1("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),us=e=>typeof e=="string",$N=e=>typeof e=="object"&&e!==null,BN=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,UN={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"\'","'":"\'",""":\'"\',""":\'"\'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},zN=e=>UN[e];let j1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(BN,zN)};const jN=(e={})=>{j1={...j1,...e}},WN=()=>j1;let _x;const VN=e=>{_x=e},HN=()=>_x,GN={type:"3rdParty",init(e){jN(e.options.react),VN(e)}},YN=p.createContext();class KN{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ZN=(e,t)=>{const n=p.useRef();return p.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current},Ix=(e,t,n,r)=>e.getFixedT(t,n,r),JN=(e,t,n,r)=>p.useCallback(Ix(e,t,n,r),[e,t,n,r]),ds=(e,t={})=>{var S,w,_,E;const{i18n:n}=t,{i18n:r,defaultNS:o}=p.useContext(YN)||{},i=n||r||HN();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new KN),!i){z1("You will need to pass in an i18next instance by using initReactI18next");const M=(D,k)=>us(k)?k:$N(k)&&us(k.defaultValue)?k.defaultValue:Array.isArray(D)?D[D.length-1]:D,$=[M,{},!1];return $.t=M,$.i18n={},$.ready=!1,$}(S=i.options.react)!=null&&S.wait&&z1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...WN(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=s;let c=e||o||((w=i.options)==null?void 0:w.defaultNS);c=us(c)?[c]:c||["translation"],(E=(_=i.reportNamespaces).addUsedNamespaces)==null||E.call(_,c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(M=>FN(M,i,s)),f=JN(i,t.lng||null,s.nsMode==="fallback"?c:c[0],l),d=()=>f,h=()=>Ix(i,t.lng||null,s.nsMode==="fallback"?c:c[0],l),[g,m]=p.useState(d);let b=c.join();t.lng&&(b=`${t.lng}${b}`);const y=ZN(b),v=p.useRef(!0);p.useEffect(()=>{const{bindI18n:M,bindI18nStore:$}=s;v.current=!0,!u&&!a&&(t.lng?Tx(i,t.lng,c,()=>{v.current&&m(h)}):wx(i,c,()=>{v.current&&m(h)})),u&&y&&y!==b&&v.current&&m(h);const D=()=>{v.current&&m(h)};return M&&(i==null||i.on(M,D)),$&&(i==null||i.store.on($,D)),()=>{v.current=!1,i&&(M==null||M.split(" ").forEach(k=>i.off(k,D))),$&&i&&$.split(" ").forEach(k=>i.store.off(k,D))}},[i,b]),p.useEffect(()=>{v.current&&u&&m(d)},[i,l,u]);const C=[g,i,u];if(C.t=g,C.i18n=i,C.ready=u,u||!u&&!a)return C;throw new Promise(M=>{t.lng?Tx(i,t.lng,c,()=>M()):wx(i,c,()=>M())})},XN=_t("MuiBox",["root"]),qN=Rg(),tt=p6({themeId:Ds,defaultTheme:qN,defaultClassName:XN.root,generateClassName:Iy.generate}),QN=["className","id"],ek=e=>{const{classes:t}=e;return Vt({root:["root"]},vP,t)},tk=Ee(rO,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ox=p.forwardRef(function(t,n){const r=Nt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=Se(r,QN),a=r,l=ek(a),{titleId:c=i}=p.useContext(wE);return le(tk,W({component:"h2",className:Re(l.root,o),ownerState:a,ref:n,variant:"h6",id:i??c},s))});function nk(e){return jt("MuiTooltip",e)}const Fo=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),rk=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function ok(e){return Math.round(e*1e5)/1e5}const ik=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${$e(i.split("-")[0])}`],arrow:["arrow"]};return Vt(s,nk,t)},sk=Ee(os,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>W({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Fo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Fo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Fo.arrow}`]:W({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Fo.arrow}`]:W({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ak=Ee("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${$e(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>W({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${ok(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Fo.popper}[data-popper-placement*="left"] &`]:W({transformOrigin:"right center"},t.isRtl?W({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):W({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Fo.popper}[data-popper-placement*="right"] &`]:W({transformOrigin:"left center"},t.isRtl?W({marginRight:"14px"},t.touch&&{marginRight:"24px"}):W({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Fo.popper}[data-popper-placement*="top"] &`]:W({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Fo.popper}[data-popper-placement*="bottom"] &`]:W({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),lk=Ee("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tn(e.palette.grey[700],.9),"&::before":{content:\'""\',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Gf=!1;const Ax=new fl;let wc={x:0,y:0};function Yf(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Rx=p.forwardRef(function(t,n){var r,o,i,s,a,l,c,u,f,d,h,g,m,b,y,v,C,S,w;const _=Nt({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:M,components:$={},componentsProps:D={},describeChild:k=!1,disableFocusListener:R=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:A=!1,enterDelay:P=100,enterNextDelay:N=0,enterTouchDelay:T=700,followCursor:L=!1,id:z,leaveDelay:B=0,leaveTouchDelay:V=1500,onClose:H,onOpen:K,open:G,placement:te="bottom",PopperComponent:ne,PopperProps:ge={},slotProps:se={},slots:he={},title:fe,TransitionComponent:Ce=Rf,TransitionProps:Q}=_,ve=Se(_,rk),X=p.isValidElement(M)?M:le("span",{children:M}),de=hl(),ae=Yy(),[xe,qe]=p.useState(),[Pe,Ke]=p.useState(null),bt=p.useRef(!1),Et=I||L,ke=$s(),Ue=$s(),re=$s(),me=$s(),[we,pe]=Uy({controlled:G,default:!1,name:"Tooltip",state:"open"});let Dt=we;const Pr=By(z),sn=p.useRef(),or=bo(()=>{sn.current!==void 0&&(document.body.style.WebkitUserSelect=sn.current,sn.current=void 0),me.clear()});p.useEffect(()=>or,[or]);const an=F=>{Ax.clear(),Gf=!0,pe(!0),K&&!Dt&&K(F)},ir=bo(F=>{Ax.start(800+B,()=>{Gf=!1}),pe(!1),H&&Dt&&H(F),ke.start(de.transitions.duration.shortest,()=>{bt.current=!1})}),ho=F=>{bt.current&&F.type!=="touchstart"||(xe&&xe.removeAttribute("title"),Ue.clear(),re.clear(),P||Gf&&N?Ue.start(Gf?N:P,()=>{an(F)}):an(F))},mo=F=>{Ue.clear(),re.start(B,()=>{ir(F)})},{isFocusVisibleRef:_s,onBlur:Ko,onFocus:Zo,ref:oe}=jy(),[,Ae]=p.useState(!1),xt=F=>{Ko(F),_s.current===!1&&(Ae(!1),mo(F))},ze=F=>{xe||qe(F.currentTarget),Zo(F),_s.current===!0&&(Ae(!0),ho(F))},ye=F=>{bt.current=!0;const Y=X.props;Y.onTouchStart&&Y.onTouchStart(F)},ot=F=>{ye(F),re.clear(),ke.clear(),or(),sn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",me.start(T,()=>{document.body.style.WebkitUserSelect=sn.current,ho(F)})},Jo=F=>{X.props.onTouchEnd&&X.props.onTouchEnd(F),or(),re.start(V,()=>{ir(F)})};p.useEffect(()=>{if(!Dt)return;function F(Y){(Y.key==="Escape"||Y.key==="Esc")&&ir(Y)}return document.addEventListener("keydown",F),()=>{document.removeEventListener("keydown",F)}},[ir,Dt]);const Bp=Ft(X.ref,oe,qe,n);!fe&&fe!==0&&(Dt=!1);const Is=p.useRef(),Up=F=>{const Y=X.props;Y.onMouseMove&&Y.onMouseMove(F),wc={x:F.clientX,y:F.clientY},Is.current&&Is.current.update()},Di={},nu=typeof fe=="string";k?(Di.title=!Dt&&nu&&!O?fe:null,Di["aria-describedby"]=Dt?Pr:null):(Di["aria-label"]=nu?fe:null,Di["aria-labelledby"]=Dt&&!nu?Pr:null);const wt=W({},Di,ve,X.props,{className:Re(ve.className,X.props.className),onTouchStart:ye,ref:Bp},L?{onMouseMove:Up}:{}),vo={};A||(wt.onTouchStart=ot,wt.onTouchEnd=Jo),O||(wt.onMouseOver=Yf(ho,wt.onMouseOver),wt.onMouseLeave=Yf(mo,wt.onMouseLeave),Et||(vo.onMouseOver=ho,vo.onMouseLeave=mo)),R||(wt.onFocus=Yf(ze,wt.onFocus),wt.onBlur=Yf(xt,wt.onBlur),Et||(vo.onFocus=ze,vo.onBlur=xt));const zp=p.useMemo(()=>{var F;let Y=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(F=ge.popperOptions)!=null&&F.modifiers&&(Y=Y.concat(ge.popperOptions.modifiers)),W({},ge.popperOptions,{modifiers:Y})},[Pe,ge]),Li=W({},_,{isRtl:ae,arrow:E,disableInteractive:Et,placement:te,PopperComponentProp:ne,touch:bt.current}),Os=ik(Li),ru=(r=(o=he.popper)!=null?o:$.Popper)!=null?r:sk,Nr=(i=(s=(a=he.transition)!=null?a:$.Transition)!=null?s:Ce)!=null?i:Rf,ou=(l=(c=he.tooltip)!=null?c:$.Tooltip)!=null?l:ak,iu=(u=(f=he.arrow)!=null?f:$.Arrow)!=null?u:lk,jp=vl(ru,W({},ge,(d=se.popper)!=null?d:D.popper,{className:Re(Os.popper,ge==null?void 0:ge.className,(h=(g=se.popper)!=null?g:D.popper)==null?void 0:h.className)}),Li),Wp=vl(Nr,W({},Q,(m=se.transition)!=null?m:D.transition),Li),Ev=vl(ou,W({},(b=se.tooltip)!=null?b:D.tooltip,{className:Re(Os.tooltip,(y=(v=se.tooltip)!=null?v:D.tooltip)==null?void 0:y.className)}),Li),ue=vl(iu,W({},(C=se.arrow)!=null?C:D.arrow,{className:Re(Os.arrow,(S=(w=se.arrow)!=null?w:D.arrow)==null?void 0:S.className)}),Li);return Co(p.Fragment,{children:[p.cloneElement(X,wt),le(ru,W({as:ne??os,placement:te,anchorEl:L?{getBoundingClientRect:()=>({top:wc.y,left:wc.x,right:wc.x,bottom:wc.y,width:0,height:0})}:xe,popperRef:Is,open:xe?Dt:!1,id:Pr,transition:!0},vo,jp,{popperOptions:zp,children:({TransitionProps:F})=>le(Nr,W({timeout:de.transitions.duration.shorter},F,Wp,{children:Co(ou,W({},Ev,{children:[fe,E?le(iu,W({},ue,{ref:Ke})):null]}))}))}))]})});function Px(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Px(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Be(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Px(e))&&(r&&(r+=" "),r+=t);return r}var ck=typeof global=="object"&&global&&global.Object===Object&&global;const Nx=ck;var uk=typeof self=="object"&&self&&self.Object===Object&&self,dk=Nx||uk||Function("return this")();const ro=dk;var fk=ro.Symbol;const oo=fk;var kx=Object.prototype,pk=kx.hasOwnProperty,gk=kx.toString,Tc=oo?oo.toStringTag:void 0;function hk(e){var t=pk.call(e,Tc),n=e[Tc];try{e[Tc]=void 0;var r=!0}catch{}var o=gk.call(e);return r&&(t?e[Tc]=n:delete e[Tc]),o}var mk=Object.prototype,vk=mk.toString;function yk(e){return vk.call(e)}var Ck="[object Null]",Sk="[object Undefined]",Mx=oo?oo.toStringTag:void 0;function fs(e){return e==null?e===void 0?Sk:Ck:Mx&&Mx in Object(e)?hk(e):yk(e)}function bi(e){return e!=null&&typeof e=="object"}var bk="[object Symbol]";function W1(e){return typeof e=="symbol"||bi(e)&&fs(e)==bk}function Dx(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Ek=Array.isArray;const $o=Ek;var xk=1/0,Lx=oo?oo.prototype:void 0,Fx=Lx?Lx.toString:void 0;function $x(e){if(typeof e=="string")return e;if($o(e))return Dx(e,$x)+"";if(W1(e))return Fx?Fx.call(e):"";var t=e+"";return t=="0"&&1/e==-xk?"-0":t}function Ei(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Bx(e){return e}var wk="[object AsyncFunction]",Tk="[object Function]",_k="[object GeneratorFunction]",Ik="[object Proxy]";function V1(e){if(!Ei(e))return!1;var t=fs(e);return t==Tk||t==_k||t==wk||t==Ik}var Ok=ro["__core-js_shared__"];const H1=Ok;var Ux=function(){var e=/[^.]+$/.exec(H1&&H1.keys&&H1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ak(e){return!!Ux&&Ux in e}var Rk=Function.prototype,Pk=Rk.toString;function ps(e){if(e!=null){try{return Pk.call(e)}catch{}try{return e+""}catch{}}return""}var Nk=/[\\\\^$.*+?()[\\]{}|]/g,kk=/^\\[object .+?Constructor\\]$/,Mk=Function.prototype,Dk=Object.prototype,Lk=Mk.toString,Fk=Dk.hasOwnProperty,$k=RegExp("^"+Lk.call(Fk).replace(Nk,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");function Bk(e){if(!Ei(e)||Ak(e))return!1;var t=V1(e)?$k:kk;return t.test(ps(e))}function Uk(e,t){return e==null?void 0:e[t]}function gs(e,t){var n=Uk(e,t);return Bk(n)?n:void 0}var zk=gs(ro,"WeakMap");const G1=zk;var zx=Object.create,jk=function(){function e(){}return function(t){if(!Ei(t))return{};if(zx)return zx(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Wk=jk;function Vk(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function jx(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Hk=800,Gk=16,Yk=Date.now;function Kk(e){var t=0,n=0;return function(){var r=Yk(),o=Gk-(r-n);if(n=r,o>0){if(++t>=Hk)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Zk(e){return function(){return e}}var Jk=function(){try{var e=gs(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Kf=Jk;var Xk=Kf?function(e,t){return Kf(e,"toString",{configurable:!0,enumerable:!1,value:Zk(t),writable:!0})}:Bx,qk=Kk(Xk);const Wx=qk;function Qk(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var eM=9007199254740991,tM=/^(?:0|[1-9]\\d*)$/;function Vx(e,t){var n=typeof e;return t=t??eM,!!t&&(n=="number"||n!="symbol"&&tM.test(e))&&e>-1&&e%1==0&&e<t}function Y1(e,t,n){t=="__proto__"&&Kf?Kf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Zf(e,t){return e===t||e!==e&&t!==t}var nM=Object.prototype,rM=nM.hasOwnProperty;function Hx(e,t,n){var r=e[t];(!(rM.call(e,t)&&Zf(r,n))||n===void 0&&!(t in e))&&Y1(e,t,n)}function Ma(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),o?Y1(n,a,l):Hx(n,a,l)}return n}var Gx=Math.max;function Yx(e,t,n){return t=Gx(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Gx(r.length-t,0),s=Array(i);++o<i;)s[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(s),Vk(e,this,a)}}function oM(e,t){return Wx(Yx(e,t,Bx),e+"")}var iM=9007199254740991;function Kx(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=iM}function Jf(e){return e!=null&&Kx(e.length)&&!V1(e)}function sM(e,t,n){if(!Ei(n))return!1;var r=typeof t;return(r=="number"?Jf(n)&&Vx(t,n.length):r=="string"&&t in n)?Zf(n[t],e):!1}function aM(e){return oM(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&sM(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var a=n[r];a&&e(t,a,r,i)}return t})}var lM=Object.prototype;function K1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lM;return e===n}function cM(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var uM="[object Arguments]";function Zx(e){return bi(e)&&fs(e)==uM}var Jx=Object.prototype,dM=Jx.hasOwnProperty,fM=Jx.propertyIsEnumerable,pM=Zx(function(){return arguments}())?Zx:function(e){return bi(e)&&dM.call(e,"callee")&&!fM.call(e,"callee")};const Xf=pM;function gM(){return!1}var Xx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qx=Xx&&typeof module=="object"&&module&&!module.nodeType&&module,hM=qx&&qx.exports===Xx,Qx=hM?ro.Buffer:void 0,mM=Qx?Qx.isBuffer:void 0,vM=mM||gM;const Z1=vM;var yM="[object Arguments]",CM="[object Array]",SM="[object Boolean]",bM="[object Date]",EM="[object Error]",xM="[object Function]",wM="[object Map]",TM="[object Number]",_M="[object Object]",IM="[object RegExp]",OM="[object Set]",AM="[object String]",RM="[object WeakMap]",PM="[object ArrayBuffer]",NM="[object DataView]",kM="[object Float32Array]",MM="[object Float64Array]",DM="[object Int8Array]",LM="[object Int16Array]",FM="[object Int32Array]",$M="[object Uint8Array]",BM="[object Uint8ClampedArray]",UM="[object Uint16Array]",zM="[object Uint32Array]",nt={};nt[kM]=nt[MM]=nt[DM]=nt[LM]=nt[FM]=nt[$M]=nt[BM]=nt[UM]=nt[zM]=!0,nt[yM]=nt[CM]=nt[PM]=nt[SM]=nt[NM]=nt[bM]=nt[EM]=nt[xM]=nt[wM]=nt[TM]=nt[_M]=nt[IM]=nt[OM]=nt[AM]=nt[RM]=!1;function jM(e){return bi(e)&&Kx(e.length)&&!!nt[fs(e)]}function J1(e){return function(t){return e(t)}}var ew=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_c=ew&&typeof module=="object"&&module&&!module.nodeType&&module,WM=_c&&_c.exports===ew,X1=WM&&Nx.process,VM=function(){try{var e=_c&&_c.require&&_c.require("util").types;return e||X1&&X1.binding&&X1.binding("util")}catch{}}();const Da=VM;var tw=Da&&Da.isTypedArray,HM=tw?J1(tw):jM;const nw=HM;var GM=Object.prototype,YM=GM.hasOwnProperty;function rw(e,t){var n=$o(e),r=!n&&Xf(e),o=!n&&!r&&Z1(e),i=!n&&!r&&!o&&nw(e),s=n||r||o||i,a=s?cM(e.length,String):[],l=a.length;for(var c in e)(t||YM.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Vx(c,l)))&&a.push(c);return a}function ow(e,t){return function(n){return e(t(n))}}var KM=ow(Object.keys,Object);const ZM=KM;var JM=Object.prototype,XM=JM.hasOwnProperty;function qM(e){if(!K1(e))return ZM(e);var t=[];for(var n in Object(e))XM.call(e,n)&&n!="constructor"&&t.push(n);return t}function q1(e){return Jf(e)?rw(e):qM(e)}function QM(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var eD=Object.prototype,tD=eD.hasOwnProperty;function nD(e){if(!Ei(e))return QM(e);var t=K1(e),n=[];for(var r in e)r=="constructor"&&(t||!tD.call(e,r))||n.push(r);return n}function Ic(e){return Jf(e)?rw(e,!0):nD(e)}var rD=/\\.|\\[(?:[^[\\]]*|(["\'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,oD=/^\\w*$/;function iD(e,t){if($o(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||W1(e)?!0:oD.test(e)||!rD.test(e)||t!=null&&e in Object(t)}var sD=gs(Object,"create");const Oc=sD;function aD(){this.__data__=Oc?Oc(null):{},this.size=0}function lD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cD="__lodash_hash_undefined__",uD=Object.prototype,dD=uD.hasOwnProperty;function fD(e){var t=this.__data__;if(Oc){var n=t[e];return n===cD?void 0:n}return dD.call(t,e)?t[e]:void 0}var pD=Object.prototype,gD=pD.hasOwnProperty;function hD(e){var t=this.__data__;return Oc?t[e]!==void 0:gD.call(t,e)}var mD="__lodash_hash_undefined__";function vD(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Oc&&t===void 0?mD:t,this}function hs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}hs.prototype.clear=aD,hs.prototype.delete=lD,hs.prototype.get=fD,hs.prototype.has=hD,hs.prototype.set=vD;function yD(){this.__data__=[],this.size=0}function qf(e,t){for(var n=e.length;n--;)if(Zf(e[n][0],t))return n;return-1}var CD=Array.prototype,SD=CD.splice;function bD(e){var t=this.__data__,n=qf(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():SD.call(t,n,1),--this.size,!0}function ED(e){var t=this.__data__,n=qf(t,e);return n<0?void 0:t[n][1]}function xD(e){return qf(this.__data__,e)>-1}function wD(e,t){var n=this.__data__,r=qf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Bo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bo.prototype.clear=yD,Bo.prototype.delete=bD,Bo.prototype.get=ED,Bo.prototype.has=xD,Bo.prototype.set=wD;var TD=gs(ro,"Map");const Ac=TD;function _D(){this.size=0,this.__data__={hash:new hs,map:new(Ac||Bo),string:new hs}}function ID(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qf(e,t){var n=e.__data__;return ID(t)?n[typeof t=="string"?"string":"hash"]:n.map}function OD(e){var t=Qf(this,e).delete(e);return this.size-=t?1:0,t}function AD(e){return Qf(this,e).get(e)}function RD(e){return Qf(this,e).has(e)}function PD(e,t){var n=Qf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function xi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xi.prototype.clear=_D,xi.prototype.delete=OD,xi.prototype.get=AD,xi.prototype.has=RD,xi.prototype.set=PD;var ND="Expected a function";function Q1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ND);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Q1.Cache||xi),n}Q1.Cache=xi;var kD=500;function MD(e){var t=Q1(e,function(r){return n.size===kD&&n.clear(),r}),n=t.cache;return t}var DD=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,LD=/\\\\(\\\\)?/g,FD=MD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(DD,function(n,r,o,i){t.push(o?i.replace(LD,"$1"):r||n)}),t});const $D=FD;function BD(e){return e==null?"":$x(e)}function em(e,t){return $o(e)?e:iD(e,t)?[e]:$D(BD(e))}var UD=1/0;function iw(e){if(typeof e=="string"||W1(e))return e;var t=e+"";return t=="0"&&1/e==-UD?"-0":t}function sw(e,t){t=em(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[iw(t[n++])];return n&&n==r?e:void 0}function zD(e,t,n){var r=e==null?void 0:sw(e,t);return r===void 0?n:r}function tm(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var aw=oo?oo.isConcatSpreadable:void 0;function jD(e){return $o(e)||Xf(e)||!!(aw&&e&&e[aw])}function lw(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=jD),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?lw(a,t-1,n,r,o):tm(o,a):r||(o[o.length]=a)}return o}function WD(e){var t=e==null?0:e.length;return t?lw(e,1):[]}function VD(e){return Wx(Yx(e,void 0,WD),e+"")}var HD=ow(Object.getPrototypeOf,Object);const nm=HD;var GD="[object Object]",YD=Function.prototype,KD=Object.prototype,cw=YD.toString,ZD=KD.hasOwnProperty,JD=cw.call(Object);function uw(e){if(!bi(e)||fs(e)!=GD)return!1;var t=nm(e);if(t===null)return!0;var n=ZD.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&cw.call(n)==JD}function XD(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function qD(){this.__data__=new Bo,this.size=0}function QD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function eL(e){return this.__data__.get(e)}function tL(e){return this.__data__.has(e)}var nL=200;function rL(e,t){var n=this.__data__;if(n instanceof Bo){var r=n.__data__;if(!Ac||r.length<nL-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new xi(r)}return n.set(e,t),this.size=n.size,this}function ms(e){var t=this.__data__=new Bo(e);this.size=t.size}ms.prototype.clear=qD,ms.prototype.delete=QD,ms.prototype.get=eL,ms.prototype.has=tL,ms.prototype.set=rL;function oL(e,t){return e&&Ma(t,q1(t),e)}function iL(e,t){return e&&Ma(t,Ic(t),e)}var dw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fw=dw&&typeof module=="object"&&module&&!module.nodeType&&module,sL=fw&&fw.exports===dw,pw=sL?ro.Buffer:void 0,gw=pw?pw.allocUnsafe:void 0;function hw(e,t){if(t)return e.slice();var n=e.length,r=gw?gw(n):new e.constructor(n);return e.copy(r),r}function aL(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function mw(){return[]}var lL=Object.prototype,cL=lL.propertyIsEnumerable,vw=Object.getOwnPropertySymbols,uL=vw?function(e){return e==null?[]:(e=Object(e),aL(vw(e),function(t){return cL.call(e,t)}))}:mw;const rm=uL;function dL(e,t){return Ma(e,rm(e),t)}var fL=Object.getOwnPropertySymbols,pL=fL?function(e){for(var t=[];e;)tm(t,rm(e)),e=nm(e);return t}:mw;const yw=pL;function gL(e,t){return Ma(e,yw(e),t)}function Cw(e,t,n){var r=t(e);return $o(e)?r:tm(r,n(e))}function hL(e){return Cw(e,q1,rm)}function Sw(e){return Cw(e,Ic,yw)}var mL=gs(ro,"DataView");const om=mL;var vL=gs(ro,"Promise");const im=vL;var yL=gs(ro,"Set");const sm=yL;var bw="[object Map]",CL="[object Object]",Ew="[object Promise]",xw="[object Set]",ww="[object WeakMap]",Tw="[object DataView]",SL=ps(om),bL=ps(Ac),EL=ps(im),xL=ps(sm),wL=ps(G1),vs=fs;(om&&vs(new om(new ArrayBuffer(1)))!=Tw||Ac&&vs(new Ac)!=bw||im&&vs(im.resolve())!=Ew||sm&&vs(new sm)!=xw||G1&&vs(new G1)!=ww)&&(vs=function(e){var t=fs(e),n=t==CL?e.constructor:void 0,r=n?ps(n):"";if(r)switch(r){case SL:return Tw;case bL:return bw;case EL:return Ew;case xL:return xw;case wL:return ww}return t});const am=vs;var TL=Object.prototype,_L=TL.hasOwnProperty;function IL(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&_L.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var OL=ro.Uint8Array;const _w=OL;function lm(e){var t=new e.constructor(e.byteLength);return new _w(t).set(new _w(e)),t}function AL(e,t){var n=t?lm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var RL=/\\w*$/;function PL(e){var t=new e.constructor(e.source,RL.exec(e));return t.lastIndex=e.lastIndex,t}var Iw=oo?oo.prototype:void 0,Ow=Iw?Iw.valueOf:void 0;function NL(e){return Ow?Object(Ow.call(e)):{}}function Aw(e,t){var n=t?lm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var kL="[object Boolean]",ML="[object Date]",DL="[object Map]",LL="[object Number]",FL="[object RegExp]",$L="[object Set]",BL="[object String]",UL="[object Symbol]",zL="[object ArrayBuffer]",jL="[object DataView]",WL="[object Float32Array]",VL="[object Float64Array]",HL="[object Int8Array]",GL="[object Int16Array]",YL="[object Int32Array]",KL="[object Uint8Array]",ZL="[object Uint8ClampedArray]",JL="[object Uint16Array]",XL="[object Uint32Array]";function qL(e,t,n){var r=e.constructor;switch(t){case zL:return lm(e);case kL:case ML:return new r(+e);case jL:return AL(e,n);case WL:case VL:case HL:case GL:case YL:case KL:case ZL:case JL:case XL:return Aw(e,n);case DL:return new r;case LL:case BL:return new r(e);case FL:return PL(e);case $L:return new r;case UL:return NL(e)}}function Rw(e){return typeof e.constructor=="function"&&!K1(e)?Wk(nm(e)):{}}var QL="[object Map]";function eF(e){return bi(e)&&am(e)==QL}var Pw=Da&&Da.isMap,tF=Pw?J1(Pw):eF;const nF=tF;var rF="[object Set]";function oF(e){return bi(e)&&am(e)==rF}var Nw=Da&&Da.isSet,iF=Nw?J1(Nw):oF;const sF=iF;var aF=1,lF=2,cF=4,kw="[object Arguments]",uF="[object Array]",dF="[object Boolean]",fF="[object Date]",pF="[object Error]",Mw="[object Function]",gF="[object GeneratorFunction]",hF="[object Map]",mF="[object Number]",Dw="[object Object]",vF="[object RegExp]",yF="[object Set]",CF="[object String]",SF="[object Symbol]",bF="[object WeakMap]",EF="[object ArrayBuffer]",xF="[object DataView]",wF="[object Float32Array]",TF="[object Float64Array]",_F="[object Int8Array]",IF="[object Int16Array]",OF="[object Int32Array]",AF="[object Uint8Array]",RF="[object Uint8ClampedArray]",PF="[object Uint16Array]",NF="[object Uint32Array]",Xe={};Xe[kw]=Xe[uF]=Xe[EF]=Xe[xF]=Xe[dF]=Xe[fF]=Xe[wF]=Xe[TF]=Xe[_F]=Xe[IF]=Xe[OF]=Xe[hF]=Xe[mF]=Xe[Dw]=Xe[vF]=Xe[yF]=Xe[CF]=Xe[SF]=Xe[AF]=Xe[RF]=Xe[PF]=Xe[NF]=!0,Xe[pF]=Xe[Mw]=Xe[bF]=!1;function ep(e,t,n,r,o,i){var s,a=t&aF,l=t&lF,c=t&cF;if(n&&(s=o?n(e,r,o,i):n(e)),s!==void 0)return s;if(!Ei(e))return e;var u=$o(e);if(u){if(s=IL(e),!a)return jx(e,s)}else{var f=am(e),d=f==Mw||f==gF;if(Z1(e))return hw(e,a);if(f==Dw||f==kw||d&&!o){if(s=l||d?{}:Rw(e),!a)return l?gL(e,iL(s,e)):dL(e,oL(s,e))}else{if(!Xe[f])return o?e:{};s=qL(e,f,a)}}i||(i=new ms);var h=i.get(e);if(h)return h;i.set(e,s),sF(e)?e.forEach(function(b){s.add(ep(b,t,n,b,e,i))}):nF(e)&&e.forEach(function(b,y){s.set(y,ep(b,t,n,y,e,i))});var g=c?l?Sw:hL:l?Ic:q1,m=u?void 0:g(e);return Qk(m||e,function(b,y){m&&(y=b,b=e[y]),Hx(s,y,ep(b,t,n,y,e,i))}),s}function kF(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var l=s[e?a:++o];if(n(i[l],l,i)===!1)break}return t}}var MF=kF();const DF=MF;function cm(e,t,n){(n!==void 0&&!Zf(e[t],n)||n===void 0&&!(t in e))&&Y1(e,t,n)}function LF(e){return bi(e)&&Jf(e)}function um(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function FF(e){return Ma(e,Ic(e))}function $F(e,t,n,r,o,i,s){var a=um(e,n),l=um(t,n),c=s.get(l);if(c){cm(e,n,c);return}var u=i?i(a,l,n+"",e,t,s):void 0,f=u===void 0;if(f){var d=$o(l),h=!d&&Z1(l),g=!d&&!h&&nw(l);u=l,d||h||g?$o(a)?u=a:LF(a)?u=jx(a):h?(f=!1,u=hw(l,!0)):g?(f=!1,u=Aw(l,!0)):u=[]:uw(l)||Xf(l)?(u=a,Xf(a)?u=FF(a):(!Ei(a)||V1(a))&&(u=Rw(l))):f=!1}f&&(s.set(l,u),o(u,l,r,i,s),s.delete(l)),cm(e,n,u)}function Lw(e,t,n,r,o){e!==t&&DF(t,function(i,s){if(o||(o=new ms),Ei(i))$F(e,t,s,n,Lw,r,o);else{var a=r?r(um(e,s),i,s+"",e,t,o):void 0;a===void 0&&(a=i),cm(e,s,a)}},Ic)}var BF=aM(function(e,t,n,r){Lw(e,t,n,r)});const UF=BF;function zF(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function jF(e,t){return t.length<2?e:sw(e,XD(t,0,-1))}function WF(e,t){return t=em(t,e),e=jF(e,t),e==null||delete e[iw(zF(t))]}function VF(e){return uw(e)?void 0:e}var HF=1,GF=2,YF=4,KF=VD(function(e,t){var n={};if(e==null)return n;var r=!1;t=Dx(t,function(i){return i=em(i,e),r||(r=i.length>1),i}),Ma(e,Sw(e),n),r&&(n=ep(n,HF|GF|YF,VF));for(var o=t.length;o--;)WF(n,t[o]);return n});const Rc=KF,ZF={ui:{black:"#000000",white:"#FFFFFF",gray:{0:"#FFFFFF",5:"#FCFDFD",10:"#F7F9FA",20:"#F1F4F6",30:"#DFE3E8",40:"#C1C6CE",50:"#98A0A9",60:"#6E7680",70:"#555B62",80:"#3B3F44",90:"#323539",100:"#27282B",110:"#1D1E20",120:"#131619"},blue:{10:"#F2F8FF",20:"#D0E3FB",30:"#A8CCF8",40:"#7AB1F4",50:"#4793F1",60:"#0E72ED",70:"#2057B1",80:"#213C77",90:"#1F3363",100:"#1B2749"},orange:{10:"#FFF7F2",20:"#FFD1B9",30:"#FFAB81",40:"#FF8548",50:"#FF5F0F",60:"#CF4B0A",70:"#9D3B0F",80:"#6B2C0F",90:"#59260F",100:"#441E0D"},teal:{10:"#E9FEFD",20:"#D4FCFB",30:"#61F6F2",40:"#00B2AE",50:"#009E9A",60:"#009591",70:"#007C7C",80:"#007573",90:"#006462",100:"#003130",110:"#002322",120:"#001E1E"},purple:{10:"#FAF7FD",20:"#F7F2FB",30:"#EBDDF6",40:"#BB8CE0",50:"#AD75DA",60:"#A66BD7",70:"#9053C2",80:"#864EB5",90:"#73439A",100:"#38214C",110:"#261735",120:"#22132D"},red:{10:"#FFF2F5",20:"#FAD1D9",30:"#F6AAB8",40:"#F17E93",50:"#ED4D6A",60:"#E8173D",70:"#AF1E30",80:"#771D23",90:"#621B1E",100:"#491718"},yellow:{10:"#FFF9F2",20:"#F0DCC4",30:"#E1BD93",40:"#D19F61",50:"#C28030",60:"#B36200",70:"#884B0A",80:"#5D350E",90:"#4D2D0E",100:"#3B230C"},green:{10:"#F2FFF6",20:"#C9E7D2",30:"#9ECEAD",40:"#74B688",50:"#4B9D64",60:"#268543",70:"#196830",80:"#174823",90:"#173C1F",100:"#142E19"},steelblue:{10:"#F6F9FC",20:"#F0F4F9",30:"#D8E3F0",40:"#77A4CE",50:"#5892C4",60:"#478BBF",70:"#2974A8",80:"#286D9D",90:"#265D85",100:"#1A2D3E",110:"#151F29",120:"#131B24"}},brand:{blue:"#2D8CFF",purple:"#925DFF",bloom:"#0B5CFF",rose:"#FF0055",goldenrod:"#FFCD00",spearmint:"#00FF91",saffron:"#FF7A00",lavender:"#9D5BD3",agave:"#00F0EA"},accent:{r500:"#FD3D4A",r400:"#F46670",br600:"#CF5A35",o550:"#FF5F0F",o600:"#DC7929",o500:"#FF8422",gld500:"#C28030",y400:"#FFBF39",g400:"#66CC84",t500:"#14BCA0",t600:"#2BA09B",b500:"#2D8CFF",b600:"#1E71D6",b700:"#0956B5",b800:"#285081",bp400:"#A477FF",bp500:"#9D87C9",bp600:"#925DFF",p500:"#5B4FB0",p600:"#493AB7",gry100:"#F7F9FA",gry800:"#252A30"}},wi={fontFamily:{sfPro:"SF Pro",segoeUI:"Segoe UI",roboto:"Roboto",ubuntu:"Ubuntu",sfMono:"SF Mono",consolas:"Consolas",robotoMono:"Roboto Mono",ubuntuMono:"Ubuntu Mono"},fontWeight:{display1:"700",display2:"600",display3:"600",bodyLargeBold:"600",bodyLarge:"400",bodyBold:"600",body:"400",subtitleBold:"600",subtitle:"400",caption:"400",label:"600"},fontSize:{display1:"36px",display2:"24px",display3:"20px",bodyLargeBold:"16px",bodyLarge:"16px",bodyBold:"14px",body:"14px",subtitleBold:"12px",subtitle:"12px",caption:"10px",label:"9px"},lineHeight:{display1:"40px",display2:"28px",display3:"24px",bodyLargeBold:"20px",bodyLarge:"20px",bodyBold:"20px",body:"20px",subtitleBold:"16px",subtitle:"16px",caption:"12px",label:"12px"},letterSpacing:{display1:"0.37px",display2:"0.07px",display3:"-0.31px",bodyLargeBold:"-0.31px",bodyLarge:"-0.15px",bodyBold:"-0.15px",body:"-0.15px",subtitleBold:"0",subtitle:"0",caption:"0.12px",label:"0.27px"},textCase:{none:"none",upper:"uppercase",lower:"lowercase",cap:"capitalize"},textDecoration:{none:"none",underline:"underline",lineThrough:"line-through"}},JF={bg:{default:"#131619",neutral:"#1D1E20"},fill:{default:"#27282B",neutral:"#98A0A9",primary:"#4793F1",error:"#ED4D6A",warning:"#C28030",success:"#4B9D64",complementary:"#FF5F0F",supplementary1:"#A66BD7",supplementary2:"#009591",contrary:{transparent:"#FFFFFF54",subtler:{transparent:"#FFFFFF08"},subtle:{transparent:"#FFFFFF1A"},strong:{transparent:"#FFFFFF7A"}},blend:{transparent:"#0000006B",subtle:{transparent:"#0000001F"},strong:{transparent:"#0000008F"}},subtler:{neutral:"#323539",primary:"#1F3363",error:"#621B1E",warning:"#4D2D0E",success:"#173C1F",complementary:"#59260F",supplementary1:"#261735",supplementary2:"#002322"},subtle:{neutral:"#555B62",primary:"#033A7D",error:"#7A051B",warning:"#603400",success:"#0A491D",complementary:"#6E2603",supplementary1:"#261735",supplementary2:"#002322"},global:{primary:"#0E72ED",error:"#E8173D",dark:{transparent:"#0000006B"},light:{transparent:"#FFFFFF54"},subtle:{dark:{transparent:"#0000001F"},light:{transparent:"#FFFFFF1A"}},strong:{dark:{transparent:"#0000008F"},light:{transparent:"#FFFFFF7A"}},success:"#268543",supplementary1:"#9053C2",supplementary2:"#007C7C",supplementary3:"#2974A8",neutral:"#555B62",complementary:"#9D3B0F",warning:"#B36200"}},text:{neutral:"#98A0A9",primary:"#4793F1",error:"#ED4D6A",warning:"#C28030",success:"#4B9D64",complementary:"#FF5F0F",supplementary1:"#A66BD7",supplementary2:"#009591",strong:{neutral:"#DFE3E8",primary:"#A8CCF8",error:"#F6AAB8",warning:"#E1BD93",success:"#9ECEAD",complementary:"#FFAB81",supplementary1:"#BB8CE0",supplementary2:"#00B2AE"},stronger:{neutral:"#F7F9FA",primary:"#F2F8FF",error:"#FFF2F5",warning:"#FFF9F2",success:"#F2FFF6",complementary:"#FFF7F2",supplementary1:"#F7F2FB",supplementary2:"#D4FCFB"},inverse:{neutral:"#131619",primary:"#001F45",error:"#44010D",warning:"#361E00",success:"#022B0F",complementary:"#3D1501",supplementary1:"#22132D",supplementary2:"#001E1E"},global:{strong:{warning:"#884B0A"}}},icon:{neutral:"#8E9194",primary:"#3B90F7",error:"#FF2638",warning:"#FFD700",success:"#09A639",complementary:"#FF5500",supplementary1:"#864EB5",supplementary2:"#007573",inverse:"#131619"},border:{neutral:"#6E7680",primary:"#0E72ED",error:"#E8173D",warning:"#B36200",success:"#268543",complementary:"#CF4B0A",supplementary1:"#864EB5",supplementary2:"#007573",subtle:{neutral:"#3B3F44",primary:"#213C77",error:"#771D23",warning:"#5D350E",success:"#174823",complementary:"#6B2C0F",supplementary1:"#38214C",supplementary2:"#003130"},strong:{neutral:"#C1C6CE",primary:"#7AB1F4",error:"#F17E93",warning:"#D19F61",success:"#74B688",complementary:"#FF8548",supplementary1:"#BB8CE0",supplementary2:"#00B2AE"}},state:{hover:"#FFFFFF54",press:"#0000006B",disable:"#40464D",inactive:"#000000A6",neutral:{hover:"#B6BAC0",press:"#42474D"},subtle:{disable:"#27282B",neutral:{hover:"#6E768054",press:"#0000006B"},primary:{hover:"#0E72ED54",press:"#0000006B",disable:"#1B2749"},error:{hover:"#E8173D54",press:"#0000006B",disable:"#491718"},warning:{hover:"#B3620054",press:"#0000006B"},success:{hover:"#26854354",press:"#0000006B"},complementary:{hover:"#CF4B0A54",press:"#0000006B"},supplementary1:{hover:"#9053C254",press:"#0000006B"},supplementary2:{hover:"#007C7C54",press:"#0000006B"}},primary:{hover:"#85B8F8",press:"#08458E"},error:{hover:"#F48B9E",press:"#8B0E25"},warning:{hover:"#FFB459",press:"#6C3B00"},success:{hover:"#7BD998",press:"#175028"},complementary:{hover:"#F89F73",press:"#7C2D06"},supplementary1:{hover:"#C8A9E1",press:"#572C7B"},supplementary2:{hover:"#3EFFFF",press:"#004A4A"},contrary:{subtler:{transparent:{hover:"#FFFFFF52",press:"#0000007A"}},subtle:{transparent:{hover:"#FFFFFF7A",press:"#00000052"}},transparent:{hover:"#FFFFFFA3",press:"#0000003D"},strong:{transparent:{hover:"#FFFFFFCC",press:"#00000029"}}},global:{disable:"#C5C8CD",dark:{transparent:{hover:"#0000007A",press:"#000000CC"}},light:{transparent:{hover:"#FFFFFFA3",press:"#0000003D"}},subtle:{dark:{transparent:{hover:"#0000003D",press:"#0000007A"}},light:{transparent:{hover:"#FFFFFF7A",press:"#00000052"}}},strong:{dark:{transparent:{hover:"#000000A3",press:"#000000F5"}},light:{transparent:{hover:"#FFFFFFCC",press:"#00000029"}}}}},inverse:{default:"#131619",neutral:"#1D1E20",global:{default:"#FFFFFF"}},underlay:{dark:"#0000007A"},component:{input:{border:"#555B62"}}},XF={bg:{default:"#FFFFFF",neutral:"#F7F9FA"},fill:{default:"#FFFFFF",neutral:"#6E7680",primary:"#0E72ED",error:"#E8173D",warning:"#B36200",success:"#268543",complementary:"#FF5F0F",supplementary1:"#9053C2",supplementary2:"#007C7C",contrary:{transparent:"#0000006B",subtler:{transparent:"#00000008"},subtle:{transparent:"#0000001F"},strong:{transparent:"#0000008F"}},blend:{transparent:"#FFFFFF54",subtle:{transparent:"#FFFFFF1A"},strong:{transparent:"#FFFFFF7A"}},subtler:{neutral:"#F1F4F6",primary:"#F2F8FF",error:"#FFF2F5",warning:"#FFF9F2",success:"#F2FFF6",complementary:"#FFF7F2",supplementary1:"#F7F2FB",supplementary2:"#D4FCFB"},subtle:{neutral:"#DFE3E8",primary:"#F2F8FF",error:"#FFF2F5",warning:"#FFF9F2",success:"#F2FFF6",complementary:"#FFF7F2",supplementary1:"#F7F2FB",supplementary2:"#D4FCFB"},global:{primary:"#0E72ED",error:"#E8173D",dark:{transparent:"#0000006B"},light:{transparent:"#FFFFFF54"},subtle:{dark:{transparent:"#0000001F"},light:{transparent:"#FFFFFF1A"}},strong:{dark:{transparent:"#0000008F"},light:{transparent:"#FFFFFF7A"}},success:"#268543",supplementary1:"#9053C2",supplementary2:"#007C7C",supplementary3:"#2974A8",neutral:"#555B62",complementary:"#9D3B0F",warning:"#B36200"}},text:{neutral:"#6E7680",primary:"#0E72ED",error:"#E8173D",warning:"#B36200",success:"#268543",complementary:"#CF4B0A",supplementary1:"#9053C2",supplementary2:"#007C7C",strong:{neutral:"#555B62",primary:"#2057B1",error:"#AF1E30",warning:"#884B0A",success:"#196830",complementary:"#9D3B0F",supplementary1:"#73439A",supplementary2:"#006462"},stronger:{neutral:"#323539",primary:"#1F3363",error:"#621B1E",warning:"#4D2D0E",success:"#173C1F",complementary:"#59260F",supplementary1:"#261735",supplementary2:"#002322"},global:{strong:{warning:"#884B0A"}},inverse:{neutral:"#F7F9FA",primary:"#F2F8FF",error:"#FFF2F5",warning:"#FFF9F2",success:"#F2FFF6",complementary:"#FFF7F2",supplementary1:"#FAF7FD",supplementary2:"#E9FEFD"}},icon:{neutral:"#8E9194",primary:"#3B90F7",error:"#FF2638",warning:"#FFD700",success:"#09A639",complementary:"#FF5500",supplementary1:"#AD75DA",supplementary2:"#009E9A",inverse:"#FFFFFF"},border:{neutral:"#98A0A9",primary:"#4793F1",error:"#ED4D6A",warning:"#C28030",success:"#4B9D64",complementary:"#FF5F0F",supplementary1:"#AD75DA",supplementary2:"#009E9A",subtle:{neutral:"#DFE3E8",primary:"#A8CCF8",error:"#F6AAB8",warning:"#E1BD93",success:"#9ECEAD",complementary:"#FFAB81",supplementary1:"#EBDDF6",supplementary2:"#61F6F2"},strong:{neutral:"#555B62",primary:"#2057B1",error:"#AF1E30",warning:"#884B0A",success:"#196830",complementary:"#9D3B0F",supplementary1:"#73439A",supplementary2:"#006462"}},state:{hover:"#0000001F",press:"#0000006B",disable:"#C5C8CD",inactive:"#FFFFFF99",neutral:{hover:"#636A73",press:"#42474D"},subtle:{disable:"#F1F4F6",neutral:{hover:"#6E76801F",press:"#6E76806B"},primary:{hover:"#0E72ED1F",press:"#0E72ED6B",disable:"#D0E3FB"},error:{hover:"#E8173D1F",press:"#E8173D6B",disable:"#FAD1D9"},warning:{hover:"#B362001F",press:"#B362006B"},success:{hover:"#2685431F",press:"#2685436B"},complementary:{hover:"#CF4B0A1F",press:"#CF4B0A6B"},supplementary1:{hover:"#9053C21F",press:"#9053C26B"},supplementary2:{hover:"#007C7C1F",press:"#007C7C6B"}},primary:{hover:"#0D67D5",press:"#08458E"},error:{hover:"#D11537",press:"#8B0E25"},warning:{hover:"#A15800",press:"#6C3B00"},success:{hover:"#22783C",press:"#175028"},complementary:{hover:"#BA4409",press:"#7C2D06"},supplementary1:{hover:"#8341B8",press:"#572C7B"},supplementary2:{hover:"#007070",press:"#004A4A"},contrary:{subtle:{transparent:{hover:"#0000003D",press:"#0000007A"}},subtler:{transparent:{hover:"#00000014",press:"#0000003D"}},transparent:{hover:"#0000007A",press:"#000000CC"},strong:{transparent:{hover:"#000000A3",press:"#000000F5"}}},global:{disable:"#C5C8CD",dark:{transparent:{hover:"#0000007A",press:"#000000CC"}},light:{transparent:{hover:"#FFFFFFA3",press:"#0000003D"}},subtle:{dark:{transparent:{hover:"#0000003D",press:"#0000007A"}},light:{transparent:{hover:"#FFFFFF7A",press:"#00000052"}}},strong:{dark:{transparent:{hover:"#000000A3",press:"#000000F5"}},light:{transparent:{hover:"#FFFFFFCC",press:"#00000029"}}}}},inverse:{default:"#FFFFFF",neutral:"#F7F9FA",global:{default:"#FFFFFF"}},underlay:{dark:"#00000014"},component:{input:{border:"#C1C6CE"}}};function qF(){return{fontFamily:[wi.fontFamily.sfPro,wi.fontFamily.segoeUI,"system-ui","Almaden Sans",wi.fontFamily.roboto,wi.fontFamily.ubuntu,"Helvetica","Arial"].join(","),fontSize:wi.fontSize,fontWeight:wi.fontWeight,lineHeight:wi.lineHeight,letterSpacing:wi.letterSpacing}}function QF(){return{keys:["s","m","l","xl","xxl"],unit:"px"}}const e$=1,io=1e3,Uo=100;function t$(){return{base:e$,overlay:io,Dialog:io+Uo*1,Drawer:io+Uo*1,DatePicker:io+Uo*2,TimePicker:io+Uo*2,ColorPicker:io+Uo*2,Dropdown:io+Uo*3,Popover:io+Uo*4,Toast:io+Uo*5,Tooltip:io+Uo*6}}function n$(){const e="rgba(0, 0, 0, 0.08)";return{sm:`0 4px 8px 0 ${e}, 0 2px 4px 0 ${e}`,md:`0 12px 24px 0 ${e}, 0 6px 12px 0 ${e}`,lg:`0 24px 48px 0 ${e}, 0 12px 24px 0 ${e}`}}function r$(){return ZF}function Fw(){return{light:XF,dark:JF}}function o$(){return{color:r$(),semantic:Fw(),typography:qF(),breakpoints:QF(),zIndex:t$(),shadow:n$()}}function Pc(e){var t,n,r,o;const i=(n=(t=e==null?void 0:e.zoomUI)===null||t===void 0?void 0:t.semantic)!==null&&n!==void 0?n:Fw(),s=(o=(r=e==null?void 0:e.palette)===null||r===void 0?void 0:r.mode)!==null&&o!==void 0?o:"light",a=s==="light"?i.light:i.dark;return Object.assign(Object.assign({},a),{activeMode:s})}function Ur(){const e=o$();return{color:e.color,semantic:e.semantic,typography:e.typography,breakpoints:e.breakpoints,shadow:e.shadow,zIndex:e.zIndex}}function ys(e,t){const n=(r,o)=>{const i=r,s=Object.prototype.toString.call(o);if(s==="[object Object]")Object.keys(o).forEach(a=>{Object.prototype.hasOwnProperty.call(i,a)!==!0&&(Object.prototype.toString.call(o[a])==="[object Object]"?i[a]={}:Object.prototype.toString.call(o[a])==="[object Array]"?i[a]=[]:i[a]=o[a]),n(i[a],o[a])});else if(s==="[object Array]"&&i.length<o.length)for(let a=i.length;a<o.length;a+=1){const l=Object.prototype.toString.call(o[a]);l==="[object Object]"?(i[a]={},n(i[a],o[a])):l==="[object Array]"?(i[a]=[],n(i[a],o[a])):i[a]=o[a]}};return n(e,t),e}function dm(e){return/^{.*}$/.test(`${e}`)}function $w(e,t,n){try{if(typeof t=="string"&&dm(t)){const i=t.replace(/^{|}$/g,"").replace(/\\[(\\d+)\\]/g,".$1").split(".").reduce((s,a)=>Object(s)[a],e);return typeof i=="number"||typeof i=="string"?i:n}}catch(r){console.warn(r)}}function fm(e,t){const n=Ur();return{palette:{mode:e},typography:{fontFamily:n.typography.fontFamily,fontSize:14},zoomUI:ys(t??{},n)}}function i$(e){var t,n,r,o,i,s,a,l,c,u,f,d;const{componentName:h,theme:g,themeToken:m}=e,b=m;let y=b.light;((t=g==null?void 0:g.palette)===null||t===void 0?void 0:t.mode)==="dark"&&(y=ys(b.dark,b.light)),!((r=(n=g==null?void 0:g.zoomUI)===null||n===void 0?void 0:n.componentTokens)===null||r===void 0)&&r[h]&&(((o=g==null?void 0:g.palette)===null||o===void 0?void 0:o.mode)==="dark"?y=ys((a=(s=(i=g==null?void 0:g.zoomUI)===null||i===void 0?void 0:i.componentTokens)===null||s===void 0?void 0:s[h])===null||a===void 0?void 0:a.dark,y):y=ys((u=(c=(l=g==null?void 0:g.zoomUI)===null||l===void 0?void 0:l.componentTokens)===null||c===void 0?void 0:c[h])===null||u===void 0?void 0:u.light,y));const v=(g==null?void 0:g.zoomUI)||((d=fm((f=g==null?void 0:g.palette)===null||f===void 0?void 0:f.mode))===null||d===void 0?void 0:d.zoomUI);function C(S){return dm(S)?$w(v,S):S}return[y,C]}function Ti(e){var t,n,r,o,i,s,a,l,c,u,f;const{componentName:d,theme:h,dynamicToken:g}=e;let m=g;!((n=(t=h==null?void 0:h.zoomUI)===null||t===void 0?void 0:t.componentTokens)===null||n===void 0)&&n[d]&&(((r=h==null?void 0:h.palette)===null||r===void 0?void 0:r.mode)==="dark"?m=ys((s=(i=(o=h==null?void 0:h.zoomUI)===null||o===void 0?void 0:o.componentTokens)===null||i===void 0?void 0:i[d])===null||s===void 0?void 0:s.dark,m):m=ys((c=(l=(a=h==null?void 0:h.zoomUI)===null||a===void 0?void 0:a.componentTokens)===null||l===void 0?void 0:l[d])===null||c===void 0?void 0:c.light,m));const b=(h==null?void 0:h.zoomUI)||((f=fm((u=h==null?void 0:h.palette)===null||u===void 0?void 0:u.mode))===null||f===void 0?void 0:f.zoomUI);function y(v){return dm(v)?$w(b,v):v}return[m,y]}const s$=e=>{const{mode:t="light",children:n,zoomUI:r}=e,o=p.useMemo(()=>{const i=fm(t,r);return Rg(i,{components:{MuiButtonBase:{defaultProps:{disableRipple:!0}}}})},[t,r]);return U.createElement(KI,{theme:o},n)};function Bw(e){return typeof e=="function"}function a$(e,t){let n=-1;for(let r=0;r<e.length;r+=1)if(e[r]===t){n=r;break}return n}let l$=class{constructor(){this.internalEventMap=new Map}on(t,n){var r,o;if(!t||!n)return;if(typeof t!="string"){console.error(`Event name listener must be string, but got ${typeof t}!`);return}if(!Bw(n)){console.error(`Event "${t}" listener must be a function!`);return}const i=this.internalEventMap;let s=[];i.has(t)&&Array.isArray((r=i.get(t))===null||r===void 0?void 0:r.listeners)?s=(o=i.get(t))===null||o===void 0?void 0:o.listeners:i.set(t,{listeners:s}),a$(s,n)===-1&&s.push(n)}off(t,n){var r;if(typeof t!="string")return;const o=this.internalEventMap;if(!o.has(t))return;const i=(r=o.get(t))===null||r===void 0?void 0:r.listeners;if(!Array.isArray(i))return;let s;for(let a=0,l=i.length;a<l;a+=1)if(i[a]&&i[a]===n){s=a;break}typeof s<"u"&&i.splice(s,1)}emit(t,...n){var r;if(typeof t!="string")return;const o=this.internalEventMap;if(!o.has(t))return;const i=(r=o.get(t))===null||r===void 0?void 0:r.listeners;Array.isArray(i)&&i.forEach(s=>{Bw(s)&&s.apply(this,n||[])})}};const pn=new l$;let pm="light",La=Ur();pn.on("updateThemeMode",e=>{pm=e}),pn.on("defineLocale",e=>{var t;La.localeMap=Object.assign(Object.assign({},(t=La.localeMap)!==null&&t!==void 0?t:{}),e)}),pn.on("updateLocaleKey",e=>{La.localeKey=e}),pn.on("updateZoomUI",e=>{La=e}),pn.on("resetZoomUI",()=>{La=Ur()});function tp(e){pn.emit("updateThemeMode",e)}function Uw(){return pm}function c$(){tp(pm==="light"?"dark":"light")}function u$(e){pn.emit("defineLocale",e)}function d$(e){pn.emit("updateLocaleKey",e)}function f$(e){pn.emit("updateZoomUI",e)}function np(){return La}function p$(){pn.emit("resetZoomUI")}const g$=Ee(tt)(e=>{var t,n;const{theme:r}=e,o=(t=r.zoomUI)!==null&&t!==void 0?t:Ur();let i=o.semantic.light;return((n=r==null?void 0:r.palette)===null||n===void 0?void 0:n.mode)==="dark"&&(i=o.semantic.dark),{color:i.text.stronger.neutral,background:i.bg.default}}),h$=e=>{const t=Rc(e,"component");return U.createElement(g$,Object.assign({},t))},zo=e=>{const{children:t,defaultMode:n}=e,r=np(),[o,i]=p.useState(Object.assign({},r)),[s,a]=p.useState(()=>n??Uw());return p.useLayoutEffect(()=>{tp(n??Uw()),pn.on("updateThemeMode",l=>{a(l)}),pn.on("defineLocale",l=>{const c=np(),u=Object.assign(Object.assign({},c),{localeMap:l});i(u)}),pn.on("updateLocaleKey",l=>{const c=np(),u=Object.assign(Object.assign({},c),{localeKey:l});i(u)}),pn.on("updateZoomUI",l=>{const c=np(),u=ys(l,c);i(u)}),pn.on("resetZoomUI",()=>{const l=Ur();i(l)})},[]),U.createElement(s$,{mode:s,zoomUI:o},t)};zo.updateMode=tp,zo.switchMode=c$,zo.defineLocale=u$,zo.updateLocale=d$,zo.updateZoomUI=f$,zo.resetZoomUI=p$,zo.Box=h$;const Jn=()=>Math.random().toString(36).substring(2);var m$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const v$=e=>{const{size:n,color:r,bgColor:o,sx:i,className:s}=e,a=m$(e,["size","color","bgColor","sx","className"]);return U.createElement(tt,Object.assign({component:"span",className:Be("ui-internal-icon",s),display:"inline-flex",sx:Object.assign({color:r,fontSize:n??14,background:o},i),"aria-hidden":!0},a),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M2.82347 14.3458H13.1765C13.555 14.3458 13.8801 14.2657 14.1517 14.1054C14.4233 13.9451 14.6326 13.7269 14.7796 13.4508C14.9265 13.1792 15 12.8741 15 12.5357C15 12.3799 14.9777 12.2218 14.9332 12.0615C14.8887 11.9012 14.8241 11.7476 14.7395 11.6006L9.5563 2.57008C9.38263 2.26728 9.15553 2.04018 8.875 1.88878C8.59892 1.73292 8.30725 1.655 8 1.655C7.69275 1.655 7.39885 1.73292 7.11832 1.88878C6.83779 2.04018 6.61291 2.26728 6.4437 2.57008L1.2605 11.6006C1.08683 11.899 1 12.2107 1 12.5357C1 12.8741 1.07347 13.1792 1.22042 13.4508C1.36737 13.7269 1.57665 13.9451 1.84828 14.1054C2.11991 14.2657 2.44497 14.3458 2.82347 14.3458Z",fill:"#FFD700"}),U.createElement("path",{d:"M7.45917 9.32962C7.46808 9.69476 7.65065 9.87733 8.00688 9.87733C8.35421 9.87733 8.5301 9.69476 8.53455 9.32962L8.63474 5.69603C8.6392 5.52236 8.57908 5.37764 8.4544 5.26187C8.33417 5.14164 8.18277 5.08152 8.0002 5.08152C7.81318 5.08152 7.65955 5.13941 7.53932 5.25519C7.42355 5.37096 7.36789 5.51568 7.37234 5.68935L7.45917 9.32962Z",fill:"#B36200"}),U.createElement("path",{d:"M7.47921 11.9079C7.63061 12.0459 7.8065 12.1149 8.00688 12.1149C8.20726 12.1149 8.38093 12.0459 8.52787 11.9079C8.67927 11.7698 8.75497 11.6006 8.75497 11.4002C8.75497 11.1998 8.67927 11.0306 8.52787 10.8926C8.38093 10.7501 8.20726 10.6789 8.00688 10.6789C7.80205 10.6789 7.62616 10.7501 7.47921 10.8926C7.33226 11.0351 7.25879 11.2043 7.25879 11.4002C7.25879 11.6006 7.33226 11.7698 7.47921 11.9079Z",fill:"#B36200"})))};var y$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const C$=e=>{const{size:n,color:r,bgColor:o,sx:i,className:s}=e,a=y$(e,["size","color","bgColor","sx","className"]);return U.createElement(tt,Object.assign({component:"span",className:Be("ui-internal-icon",s),display:"inline-flex",sx:Object.assign({color:r,fontSize:n??14,background:o},i),"aria-hidden":!0},a),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M8 15C8.95621 15 9.85523 14.817 10.6971 14.451C11.5435 14.085 12.2892 13.5794 12.9343 12.9343C13.5794 12.2892 14.085 11.5458 14.451 10.7039C14.817 9.85752 15 8.95621 15 8C15 7.04379 14.817 6.14477 14.451 5.30294C14.085 4.45654 13.5794 3.71078 12.9343 3.06569C12.2892 2.42059 11.5435 1.91503 10.6971 1.54902C9.85065 1.18301 8.94935 1 7.99314 1C7.03693 1 6.13562 1.18301 5.28922 1.54902C4.44739 1.91503 3.70392 2.42059 3.05882 3.06569C2.4183 3.71078 1.91503 4.45654 1.54902 5.30294C1.18301 6.14477 1 7.04379 1 8C1 8.95621 1.18301 9.85752 1.54902 10.7039C1.91503 11.5458 2.42059 12.2892 3.06569 12.9343C3.71078 13.5794 4.45425 14.085 5.29608 14.451C6.14248 14.817 7.04379 15 8 15ZM7.23137 11.349C7.11242 11.349 7.0049 11.3239 6.90882 11.2735C6.81275 11.2232 6.71895 11.1386 6.62745 11.0196L4.9049 8.90588C4.85458 8.83726 4.8134 8.76634 4.78137 8.69314C4.75392 8.61536 4.7402 8.53758 4.7402 8.4598C4.7402 8.30425 4.79281 8.17157 4.89804 8.06177C5.00327 7.94739 5.13366 7.8902 5.28922 7.8902C5.38987 7.8902 5.47909 7.91078 5.55686 7.95196C5.63922 7.99314 5.72386 8.07092 5.81078 8.18529L7.20392 9.98333L10.1343 5.27549C10.2624 5.06503 10.4271 4.9598 10.6284 4.9598C10.7748 4.9598 10.9075 5.00784 11.0265 5.10392C11.1454 5.19543 11.2049 5.32124 11.2049 5.48137C11.2049 5.55915 11.1866 5.63693 11.15 5.71471C11.1134 5.79248 11.0745 5.86569 11.0333 5.93431L7.80784 11.0196C7.73464 11.1294 7.65 11.2118 7.55392 11.2667C7.45784 11.3216 7.35033 11.349 7.23137 11.349Z",fill:"currentColor"})))};var S$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const zw=e=>{const{size:n,color:r,bgColor:o,sx:i,className:s}=e,a=S$(e,["size","color","bgColor","sx","className"]);return U.createElement(tt,Object.assign({component:"span",className:Be("ui-internal-icon",s),display:"inline-flex",sx:Object.assign({color:r,fontSize:n??14,background:o},i),"aria-hidden":!0},a),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M5.02426 4.17574C4.78995 3.94142 4.41005 3.94142 4.17574 4.17574C3.94142 4.41005 3.94142 4.78995 4.17574 5.02426L7.15147 8L4.17574 10.9757C3.94142 11.2101 3.94142 11.59 4.17574 11.8243C4.41005 12.0586 4.78995 12.0586 5.02426 11.8243L8 8.84853L10.9757 11.8243C11.2101 12.0586 11.59 12.0586 11.8243 11.8243C12.0586 11.59 12.0586 11.2101 11.8243 10.9757L8.84853 8L11.8243 5.02426C12.0586 4.78995 12.0586 4.41005 11.8243 4.17574C11.59 3.94142 11.2101 3.94142 10.9757 4.17574L8 7.15147L5.02426 4.17574Z",fill:"currentColor"})))};var b$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const E$=e=>{const{size:n,color:r,bgColor:o,sx:i,className:s}=e,a=b$(e,["size","color","bgColor","sx","className"]);return U.createElement(tt,Object.assign({component:"span",className:Be("ui-internal-icon",s),display:"inline-flex",sx:Object.assign({color:r,fontSize:n??14,background:o},i),"aria-hidden":!0},a),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.28907 1.28907C1.6745 0.903644 2.29939 0.903644 2.68482 1.28907L7 5.60425L11.3152 1.28907C11.7006 0.903644 12.3255 0.903644 12.7109 1.28907C13.0964 1.6745 13.0964 2.29939 12.7109 2.68482L8.39575 7L12.7109 11.3152C13.0964 11.7006 13.0964 12.3255 12.7109 12.7109C12.3255 13.0964 11.7006 13.0964 11.3152 12.7109L7 8.39575L2.68482 12.7109C2.29939 13.0964 1.6745 13.0964 1.28907 12.7109C0.903644 12.3255 0.903644 11.7006 1.28907 11.3152L5.60425 7L1.28907 2.68482C0.903644 2.29939 0.903644 1.6745 1.28907 1.28907Z",fill:"currentColor"})))};var x$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const w$=e=>{const{size:n,color:r,bgColor:o,sx:i,className:s}=e,a=x$(e,["size","color","bgColor","sx","className"]);return U.createElement(tt,Object.assign({component:"span",className:Be("ui-internal-icon",s),display:"inline-flex",sx:Object.assign({color:r,fontSize:n??14,background:o},i),"aria-hidden":!0},a),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M8 15C8.95621 15 9.85523 14.817 10.6971 14.451C11.5435 14.085 12.2892 13.5794 12.9343 12.9343C13.5794 12.2892 14.085 11.5458 14.451 10.7039C14.817 9.85752 15 8.95621 15 8C15 7.04379 14.817 6.14477 14.451 5.30294C14.085 4.45654 13.5794 3.71078 12.9343 3.06569C12.2892 2.42059 11.5435 1.91503 10.6971 1.54902C9.85065 1.18301 8.94935 1 7.99314 1C7.03693 1 6.13562 1.18301 5.28922 1.54902C4.44739 1.91503 3.70392 2.42059 3.05882 3.06569C2.4183 3.71078 1.91503 4.45654 1.54902 5.30294C1.18301 6.14477 1 7.04379 1 8C1 8.95621 1.18301 9.85752 1.54902 10.7039C1.91503 11.5458 2.42059 12.2892 3.06569 12.9343C3.71078 13.5794 4.45425 14.085 5.29608 14.451C6.14248 14.817 7.04379 15 8 15ZM8 9.27647C7.63399 9.27647 7.44641 9.08889 7.43726 8.71373L7.34804 4.97353C7.34346 4.7951 7.40065 4.64641 7.51961 4.52745C7.64314 4.4085 7.80098 4.34902 7.99314 4.34902C8.18072 4.34902 8.33628 4.41078 8.4598 4.53431C8.58791 4.65327 8.64967 4.80196 8.6451 4.98039L8.54216 8.71373C8.53758 9.08889 8.35686 9.27647 8 9.27647ZM8 11.5755C7.79412 11.5755 7.6134 11.5046 7.45784 11.3627C7.30686 11.2209 7.23137 11.0471 7.23137 10.8412C7.23137 10.6399 7.30686 10.466 7.45784 10.3196C7.60882 10.1732 7.78954 10.1 8 10.1C8.20588 10.1 8.38431 10.1732 8.53529 10.3196C8.69085 10.4614 8.76863 10.6353 8.76863 10.8412C8.76863 11.0471 8.69085 11.2209 8.53529 11.3627C8.38431 11.5046 8.20588 11.5755 8 11.5755Z",fill:"currentColor"})))};var T$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _$=e=>{const{size:n,color:r,bgColor:o,sx:i,className:s}=e,a=T$(e,["size","color","bgColor","sx","className"]);return U.createElement(tt,Object.assign({component:"span",className:Be("ui-internal-icon",s),display:"inline-flex",sx:Object.assign({color:r,fontSize:n??14,background:o},i),"aria-hidden":!0},a),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M8 15C8.95621 15 9.85523 14.817 10.6971 14.451C11.5435 14.085 12.2892 13.5794 12.9343 12.9343C13.5794 12.2892 14.085 11.5458 14.451 10.7039C14.817 9.85752 15 8.95621 15 8C15 7.04379 14.817 6.14477 14.451 5.30294C14.085 4.45654 13.5794 3.71078 12.9343 3.06569C12.2892 2.42059 11.5435 1.91503 10.6971 1.54902C9.85065 1.18301 8.94935 1 7.99314 1C7.03693 1 6.13562 1.18301 5.28922 1.54902C4.44739 1.91503 3.70392 2.42059 3.05882 3.06569C2.4183 3.71078 1.91503 4.45654 1.54902 5.30294C1.18301 6.14477 1 7.04379 1 8C1 8.95621 1.18301 9.85752 1.54902 10.7039C1.91503 11.5458 2.42059 12.2892 3.06569 12.9343C3.71078 13.5794 4.45425 14.085 5.29608 14.451C6.14248 14.817 7.04379 15 8 15ZM6.76471 11.9667C6.6183 11.9667 6.49477 11.9209 6.39412 11.8294C6.29346 11.7333 6.24314 11.6121 6.24314 11.4657C6.24314 11.3284 6.29346 11.2118 6.39412 11.1157C6.49477 11.015 6.6183 10.9647 6.76471 10.9647H7.63627V7.73235H6.88137C6.73954 7.73235 6.6183 7.6866 6.51765 7.5951C6.41699 7.49902 6.36667 7.37778 6.36667 7.23137C6.36667 7.09412 6.41699 6.97745 6.51765 6.88137C6.6183 6.78072 6.73954 6.73039 6.88137 6.73039H8.21275C8.39575 6.73039 8.53301 6.78987 8.62451 6.90882C8.72059 7.02778 8.76863 7.18333 8.76863 7.37549V10.9647H9.6402C9.7866 10.9647 9.91013 11.015 10.0108 11.1157C10.1114 11.2118 10.1618 11.3284 10.1618 11.4657C10.1618 11.6121 10.1114 11.7333 10.0108 11.8294C9.91013 11.9209 9.7866 11.9667 9.6402 11.9667H6.76471ZM7.93824 5.55686C7.68203 5.55686 7.46242 5.46765 7.27941 5.28922C7.10098 5.10621 7.01176 4.8866 7.01176 4.63039C7.01176 4.36961 7.10098 4.15 7.27941 3.97157C7.46242 3.78856 7.68203 3.69706 7.93824 3.69706C8.19902 3.69706 8.41634 3.78856 8.5902 3.97157C8.76863 4.15 8.85784 4.36961 8.85784 4.63039C8.85784 4.8866 8.76863 5.10621 8.5902 5.28922C8.41634 5.46765 8.19902 5.55686 7.93824 5.55686Z",fill:"currentColor"})))};var I$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const O$=e=>{const{size:n,color:r,bgColor:o,sx:i,className:s}=e,a=I$(e,["size","color","bgColor","sx","className"]),l=Math.random();return U.createElement(tt,Object.assign({component:"span",className:Be("ui-internal-icon",s),display:"inline-flex",sx:Object.assign({color:r,fontSize:n??14,background:o},i),"aria-hidden":!0},a),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},U.createElement("rect",{id:"Glyph",opacity:"0.9",x:"7",y:"1",width:"2",height:"4",rx:"1",fill:"currentColor"}),U.createElement("rect",{id:`Glyph_2_${l}`,opacity:"0.8",x:"3.75684",y:"2.34326",width:"4",height:"2",rx:"1",transform:"rotate(45 3.75684 2.34326)",fill:"currentColor"}),U.createElement("rect",{id:`Glyph_3_${l}`,opacity:"0.7",x:"1",y:"7",width:"4",height:"2",rx:"1",fill:"currentColor"}),U.createElement("rect",{id:`Glyph_4_${l}`,opacity:"0.6",x:"5.17188",y:"9.41406",width:"2",height:"4",rx:"1",transform:"rotate(45 5.17188 9.41406)",fill:"currentColor"}),U.createElement("rect",{id:`Glyph_5_${l}`,opacity:"0.5",x:"7",y:"11",width:"2",height:"4",rx:"1",fill:"currentColor"}),U.createElement("rect",{id:`Glyph_6_${l}`,opacity:"0.4",x:"10.8281",y:"9.41406",width:"4",height:"2",rx:"1",transform:"rotate(45 10.8281 9.41406)",fill:"currentColor"}),U.createElement("rect",{id:`Glyph_7_${l}`,opacity:"0.3",x:"11",y:"7",width:"4",height:"2",rx:"1",fill:"currentColor"}),U.createElement("rect",{id:`Glyph_8_${l}`,opacity:"0.2",x:"12.2432",y:"2.34326",width:"2",height:"4",rx:"1",transform:"rotate(45 12.2432 2.34326)",fill:"currentColor"})))};function jw(e,t,n){function r(o){return o===null||n!=null&&n(o)?null:t(o)?o:r(o.parentElement)}return r(e.nodeType===1?e:e.parentElement)}var A$=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})},gm;const Ww=typeof window=="object"&&(!((gm=window.performance)===null||gm===void 0)&&gm.now)?()=>window.performance.now():()=>new Date().getTime();class R$ extends Error{}const rp=new Map;function P$(e,t={}){return A$(this,void 0,void 0,function*(){yield new Promise((n,r)=>{var o,i,s,a,l;const{scrollLeft:c,scrollTop:u}=e,f=(i=(o=t.getX)!==null&&o!==void 0?o:t.deltaX!==void 0?()=>c+t.deltaX:void 0)!==null&&i!==void 0?i:t.x!==void 0?()=>t.x:void 0,d=(a=(s=t.getY)!==null&&s!==void 0?s:t.deltaY!==void 0?()=>u+t.deltaY:void 0)!==null&&a!==void 0?a:t.y!==void 0?()=>t.y:void 0;if(!f&&!d){n();return}let h;function g(_,E){return E?Math.abs(E()-_):0}const m=Math.sqrt(Math.pow(g(c,f),2)+Math.pow(g(u,d),2)),b=t.animated?(l=t.animationDuration)!==null&&l!==void 0?l:Math.pow(m,.15)*120:0,y=Ww();function v(_,E,M){if(M<=0)return _;if(M>=1)return E;const $=(1-Math.cos(Math.pow(M,.7)*Math.PI))/2;return(E-_)*$+_}function C(){h&&(window.cancelAnimationFrame(h),h=void 0),r(new R$("The scroll is interrupted by the user or another scroll.")),S()}function S(){e.removeEventListener("mousedown",C),e.removeEventListener("touchstart",C),e.removeEventListener("keydown",C),e.removeEventListener("wheel",C),rp.delete(e),Promise.resolve().then(()=>{n()})}function w(){const _=b?(Ww()-y)/b:1;let E=!1;if(f){const M=f();Math.abs(e.scrollLeft-M)<1?e.scrollLeft=M:(E=!0,e.scrollLeft=v(c,M,_))}if(d){const M=d();Math.abs(e.scrollTop-M)<1?e.scrollTop=M:(E=!0,e.scrollTop=v(u,M,_))}_<1&&E?h=window.requestAnimationFrame(w):S()}rp.has(e)&&rp.get(e)(),rp.set(e,C),t.allowUserInterrupt&&(e.addEventListener("mousedown",C),e.addEventListener("touchstart",C),e.addEventListener("keydown",C),e.addEventListener("wheel",C)),w()})})}function N$(e,t,n,r){const o=p.useRef(e),i=r==null?void 0:r.isSameValue,[s,a]=p.useState(()=>e!==void 0?e:t);p.useLayoutEffect(()=>{e!==void 0&&(o.current===void 0||!(i!=null&&i(o.current,e)))&&a(e),o.current=e},[e]);const l=p.useCallback((u,...f)=>{n==null||n(u,...f),o.current===void 0&&a(u)},[n]);return[e!==void 0?e:s,l]}const k$={"en-US":{Shared:{ok:"Ok",cancel:"Cancel",close:"Close",conjunction:", ",conjunctionLast:" and ",percentage:"{{number}}%"},Autocomplete:{selectAll:"All",addLabel:"Add “{{value}}”",removeLabel:"Remove “{{label}}”",limitTags:"and {{more}} more",loading:"Loading…",noOptions:"No options",clear:"Clear"},Avatar:{defaultProfileAvatar:"user profile avatar",profileAvatar:"{{name}} profile avatar",inactive:"inactive",online:"online",offline:"offline",mobile:"mobile",inCall:"in call",inMeeting:"in meeting",outOfOffice:"out of office",doNotDisturb:"do not disturb",inACalendarEvent:"in a calendar event",away:"away",block:"block",busy:"busy"},ImageCropper:{cropArea:"crop frame",moveInstruction:"Use arrow keys to move",topLeftCorner:"top left corner control",topRightCorner:"top right corner control",bottomLeftCorner:"bottom left corner control",bottomRightCorner:"bottom right corner control",topEdge:"top edge control",bottomEdge:"bottom edge control",leftEdge:"left edge control",rightEdge:"right edge control",resizeInstruction:"Use arrow keys to resize",croppedDimension:"Cropped {{dimension}}",leftPercentage:"{{percentage}} left",topPercentage:"{{percentage}} top",rightPercentage:"{{percentage}} right",bottomPercentage:"{{percentage}} bottom"},Input:{prefix:"Prefix is “{{prefix}}”.",suffix:"Suffix is “{{suffix}}”.",prefixAndSuffix:"Prefix is “{{prefix}}” and suffix is “{{suffix}}”.",maxLengthMessage:"{{maxLength}} character limit reached.",showPassword:"Show password",hidePassword:"Hide password",clear:"Clear"},InputNumber:{increaseValue:"Increase value",decreaseValue:"Decrease value",decimalSeparator:"."},Pagination:{pageNumber:"Page {{page}}",perPage:"{{items}} per page",pageIndex:"Page {{page}} of {{total}}",results:"{{total}} results",pageSizeLabel:"Page size",firstPage:"First page",lastPage:"Last page",previousPage:"Previous page",nextPage:"Next page",morePreviousPage:"More pages before are omitted.",moreNextPage:"More pages after are omitted."},Select:{noData:"No options",clear:"Clear"},Stepper:{finished:"Finished",inProgress:"In Progress",notStarted:"Not started",error:"Error"},Table:{emptyText:"No data",expand:"More options about Row {{rowIndex}}, {{header}}: {{cellValue}}",dragRow:"Change order of Row {{rowIndex}}, {{header}}: {{cellValue}}",sortLabel:"Sort {{header}}",sortInDesc:"Sort {{header}} in descending order",sortInAsc:"Sort {{header}} in ascending order",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting",toggleSelectAll:"Select all",toggleSelectRow:"Select Row {{rowIndex}}, {{header}}: {{cellValue}}",toggleSingleSelect:"Select Row {{rowIndex}}, {{header}}: {{cellValue}}",showAll:"Show all",reset:"Reset",confirm:"Confirm",columnSetting:"Column setting",blank:"blank"},Tag:{remove:"Remove “{{label}}”"},Breadcrumbs:{expand:"View more breadcrumbs",navLabel:"Breadcrumb"},Empty:{noResults:"No results"},ColorPicker:{ok:"Ok",add:"Add",cancel:"Cancel",edit:"Edit",nameLabel:"Name this color",namePlaceholder:"Color name",transparent:"Transparent",white:"White",lightGray:"Light gray",gray:"Gray",darkGray:"Dark gray",black:"Black",lightRed:"Light red",lightOrange:"Light orange",lightYellow:"Light yellow",lightGreen:"Light green",lightBlue:"Light blue",lightPurple:"Light purple",red:"Red",orange:"Orange",yellow:"Yellow",green:"Green",blue:"Blue",purple:"Purple",darkRed:"Dark red",darkOrange:"Dark orange",darkYellow:"Dark yellow",darkGreen:"Dark green",darkBlue:"Dark blue",darkPurple:"Dark purple",addColor:"Add color",colorNameTip:"Give your color swatch a name for those who are using a screen reader.",learnMore:"Learn more about information"},DatePicker:{weekdayNames:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",weekdayNamesShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat",weekdayNamesAbbr:"S,M,T,W,T,F,S",monthNames:"January,February,March,April,May,June,July,August,September,October,November,December",monthNamesShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",yearFormat:"yyyy",yearMonthFormat:"MMMM yyyy",yearMonthFormatSeparated:"{{month}} {{year}}",dateFormat:"MM/dd/yyyy",mediumDateFormat:"MMM dd yyyy",longDateFormat:"ddd MMM dd yyyy",previousMonth:"Previous month",nextMonth:"Next month",previousYear:"Previous year",nextYear:"Next year",previousDecade:"Previous decade",nextDecade:"Next decade",selected:"selected",startDate:"start date",endDate:"end date",inSelection:"in selection range",selectDate:"Select date",selectDateTime:"Select date and time",selectMonth:"Select month",selectYear:"Select year",selectStartDate:"Start date",selectEndDate:"End date",amPm:"am,pm",timeFormat:"hh:mm A",dateTimeFormat:"MM/dd/yyyy hh:mm A",hourOrder:"Hour {{number}}",minuteOrder:"Minute {{number}}",secondOrder:"Second {{number}}",firstDayOfWeek:"0",clear:"Clear"},TimePicker:{amPm:"am,pm",timeFormat:"hh:mm A",hourAbbr:"h",minuteAbbr:"min",secondAbbr:"s",hourOrder:"Hour {{number}}",minuteOrder:"Minute {{number}}",secondOrder:"Second {{number}}",selectTime:"Select time"},Coachmark:{next:"Next",previous:"Previous",finish:"Finish",indicatorAriaLabel:"step {{current}} of {{total}}"},Carousel:{prevSlide:"Previous carousel page",nextSlide:"Next carousel page",play:"Start auto scroll",pause:"Pause auto scroll",carouselRole:"carousel list",itemOrder:"{{number}} of {{total}}.",navigateViaArrowKeys:"Press arrow keys to move.",interactiveElementsAvailable:"Press Tab for more interactive elements.",slideOrder:"Page {{number}}",slideOrderWithTotal:"Page {{number}} of {{total}}"},FileUploader:{title:"File upload",description:"Max file size is 50MB. Supported file types are JPG, PNG, Video, and PDF.",uploadButton:"Upload",dragDescription:"Drag and drop files or {{chooseFileButton}}",chooseFile:"Choose files",acceptErrorMessage:"Unaccepted type.",limitSizeErrorMessage:"File exceeds size limit.",multipleErrorMessage:"You can\'t select multiple files to upload.",maxCountErrorMessage:"Exceeded maximum count of files"},Tabs:{previous:"Previous tab page",next:"Next tab page"},Form:{optional:"(Optional)"},MediaControls:{play:"Play",pause:"Pause",volume:"Volume",rate:"Rate"},VideoControls:{fullScreen:"Full screen"}}};function M$(){return k$}function D$(){return"en-US"}const hm=D$(),Vw=M$();function mm(e,t,n,r){var o;const i=r?(o=e[r])!==null&&o!==void 0?o:{}:e;return(a,l)=>{const c=zD(i,a)||"";if(!l)return t?[c]:c;if(t){const u=[];return c.split(/\\{\\{([^}]+)\\}\\}/g).forEach((f,d)=>{f&&(n?d%2?u.push(U.createElement(U.Fragment,{key:d},l[f])):u.push(U.createElement(U.Fragment,{key:d},f)):d%2?u.push(l[f]):u.push(f))}),u}return c.replace(/\\{\\{([^}]+)\\}\\}/g,(u,f)=>`${l[f]}`)}}function vm(e){var t,n,r;const o=hl(),i=(t=o==null?void 0:o.zoomUI)===null||t===void 0?void 0:t.localeMap,s=(r=(n=o==null?void 0:o.zoomUI)===null||n===void 0?void 0:n.localeKey)!==null&&r!==void 0?r:hm,a=p.useMemo(()=>UF({},Vw[hm],i==null?void 0:i[hm],Vw[s],i==null?void 0:i[s],(c,u)=>u===""?c:void 0),[s,i]);return p.useMemo(()=>({t:mm(a,!1,!1,e),translateArray:mm(a,!0,!1,e),translateElement:mm(a,!0,!0,e)}),[a,e])}/*! *****************************************************************************\n Copyright (c) Microsoft Corporation.\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted.\n\n THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.\n ***************************************************************************** */var ym=function(e,t){return ym=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ym(e,t)};function L$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ym(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var _i=function(){return _i=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_i.apply(this,arguments)};function F$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var $$=function(e){L$(t,e);function t(n){var r=e.call(this,n)||this;return r.state={focusedBy:""},r.handleBlur=r.handleBlur.bind(r),r.handleFocus=r.handleFocus.bind(r),r}return t.handleGlobalKeyDown=function(n){n.keyCode===9&&(t.isTab=!0)},t.handleGlobalKeyUp=function(){t.isTab=!1},t.prototype.componentDidMount=function(){var n=this.props.tabIndex;n&&n>=0&&(t.count===0&&(window.addEventListener("keydown",t.handleGlobalKeyDown,!1),window.addEventListener("keyup",t.handleGlobalKeyUp,!1)),t.count++)},t.prototype.componentWillUnmount=function(){var n=this.props.tabIndex;n&&n>=0&&(t.count>0&&t.count--,t.count===0&&(window.removeEventListener("keydown",t.handleGlobalKeyDown),window.removeEventListener("keyup",t.handleGlobalKeyUp)))},t.prototype.handleFocus=function(n){var r=this.props.onFocus;t.isTab?this.setState({focusedBy:"tab"}):this.setState({focusedBy:"click"}),r==null||r(n)},t.prototype.handleBlur=function(n){var r=this.props.onBlur;this.setState({focusedBy:""}),r==null||r(n)},t.prototype.render=function(){var n=this.props,r=n.style,o=n.spin,i=n.className,s=n.children,a=n.size,l=n.color,c=n.tabIndex,u=n.innerRef,f=n.onKeyDown,d=F$(n,["style","spin","className","children","size","color","tabIndex","innerRef","onKeyDown"]),h=this.state.focusedBy,g="";h==="tab"?g="zmicon-acc-outline":g="zmicon-acc-no-outline";var m;return a??l?(m=_i({},r)||{},a&&(m.fontSize=a),l&&(m.color=l)):m=r,U.createElement("i",_i({tabIndex:c,className:"zmicon ".concat(g," ").concat(o?"zmicon-spin":""," ").concat(i??""),style:m,role:"img",ref:u},d,{onKeyDown:function(b){var y;b.keyCode===13&&(b.preventDefault(),(y=d.onClick)===null||y===void 0||y.call(d)),f==null||f(b)},onFocus:this.handleFocus,onBlur:this.handleBlur}),s)},t.isTab=!1,t.count=0,t}(U.Component),Cm=U.forwardRef(function(e,t){return U.createElement($$,_i({innerRef:t},e))}),B$=U.forwardRef(function(e,t){return U.createElement(Cm,_i({"aria-label":"Alert Circle",ref:t},e),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8Z",fill:"#FFD700"}),U.createElement("path",{d:"M7.99905 9.602C7.80272 9.602 7.6389 9.45206 7.62155 9.25651L7.242 4.97789C7.20234 4.53085 7.55456 4.146 8.00336 4.146C8.45277 4.146 8.80519 4.53184 8.76459 4.97941L8.37648 9.25726C8.35876 9.45249 8.19508 9.602 7.99905 9.602ZM8.0042 12.088C7.77687 12.088 7.58253 12.0257 7.4212 11.901C7.25987 11.7763 7.1792 11.56 7.1792 11.252C7.1792 10.9367 7.25987 10.7203 7.4212 10.603C7.58253 10.4857 7.77687 10.427 8.0042 10.427C8.2242 10.427 8.41487 10.4857 8.5762 10.603C8.74487 10.7203 8.8292 10.9367 8.8292 11.252C8.8292 11.5673 8.74487 11.7873 8.5762 11.912C8.41487 12.0293 8.2242 12.088 8.0042 12.088Z",fill:"#B36200"})))}),U$=U.forwardRef(function(e,t){return U.createElement(Cm,_i({spin:!0,"aria-label":"Loading Spinner",ref:t},e),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2C4.68629 2 2 4.68629 2 8H0C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8H14C14 4.68629 11.3137 2 8 2Z",fill:"url(#IconLoadingSpinner__paint0_linear_2198_347)"}),U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8L16 8C16 12.4183 12.4183 16 8 16C3.58172 16 -3.13124e-07 12.4183 -6.99382e-07 8C-7.47664e-07 7.44772 0.447714 7 0.999999 7C1.55228 7 2 7.44772 2 8C2 11.3137 4.68629 14 8 14Z",fill:"url(#IconLoadingSpinner__paint1_linear_2198_347)"}),U.createElement("defs",null,U.createElement("linearGradient",{id:"IconLoadingSpinner__paint0_linear_2198_347",x1:16,y1:8,x2:-447035e-12,y2:8,gradientUnits:"userSpaceOnUse"},U.createElement("stop",{offset:.0622558,stopColor:"currentColor",stopOpacity:.5}),U.createElement("stop",{offset:1,stopColor:"currentColor",stopOpacity:0})),U.createElement("linearGradient",{id:"IconLoadingSpinner__paint1_linear_2198_347",x1:226212e-11,y1:8,x2:16,y2:8,gradientUnits:"userSpaceOnUse"},U.createElement("stop",{stopColor:"currentColor"}),U.createElement("stop",{offset:.9375,stopColor:"currentColor",stopOpacity:.5})))))}),z$=U.forwardRef(function(e,t){return U.createElement(Cm,_i({"aria-label":"Refresh Small",ref:t},e),U.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M1.95996 9.30797C1.95996 10.1511 2.11491 10.9395 2.4248 11.6732C2.73926 12.4024 3.1722 13.0449 3.72363 13.6009C4.27507 14.1524 4.91536 14.583 5.64453 14.8929C6.37826 15.2028 7.16439 15.3578 8.00293 15.3578C8.83691 15.3578 9.61849 15.2028 10.3477 14.8929C11.0814 14.583 11.724 14.1524 12.2754 13.6009C12.8314 13.0449 13.2643 12.4024 13.5742 11.6732C13.8841 10.9395 14.0391 10.1511 14.0391 9.30797C14.0391 9.14391 13.9867 9.00947 13.8818 8.90465C13.777 8.79527 13.6403 8.74059 13.4717 8.74059C13.3076 8.74059 13.1777 8.79527 13.082 8.90465C12.9863 9.00947 12.9385 9.14391 12.9385 9.30797C12.9385 9.99612 12.8109 10.641 12.5557 11.2425C12.3005 11.8395 11.9473 12.3659 11.4961 12.8216C11.0449 13.2728 10.5208 13.6237 9.92383 13.8744C9.32682 14.1296 8.68652 14.2572 8.00293 14.2572C7.31478 14.2572 6.6722 14.1296 6.0752 13.8744C5.47819 13.6237 4.9541 13.2728 4.50293 12.8216C4.05176 12.3659 3.69857 11.8395 3.44336 11.2425C3.18815 10.641 3.06055 9.99612 3.06055 9.30797C3.06055 8.62437 3.18815 7.98408 3.44336 7.38707C3.69857 6.79006 4.05176 6.26598 4.50293 5.8148C4.9541 5.36363 5.47819 5.01044 6.0752 4.75523C6.6722 4.50003 7.31478 4.37242 8.00293 4.37242C8.2627 4.37242 8.51107 4.38381 8.74805 4.4066C8.98958 4.42939 9.21061 4.46357 9.41113 4.50914L7.36719 6.53258C7.31706 6.58727 7.27832 6.64879 7.25098 6.71715C7.22363 6.78095 7.20996 6.84931 7.20996 6.92223C7.20996 7.07717 7.26237 7.20706 7.36719 7.31187C7.47201 7.41669 7.59961 7.4691 7.75 7.4691C7.91862 7.4691 8.05078 7.41669 8.14648 7.31187L10.9629 4.4818C11.0221 4.42255 11.0654 4.35875 11.0928 4.29039C11.1201 4.22203 11.1338 4.14911 11.1338 4.07164C11.1338 3.91669 11.0768 3.77997 10.9629 3.66148L8.14648 0.804062C8.04622 0.694687 7.91406 0.639999 7.75 0.639999C7.59505 0.639999 7.46517 0.694687 7.36035 0.804062C7.26009 0.90888 7.20996 1.04104 7.20996 1.20055C7.20996 1.26891 7.22135 1.33727 7.24414 1.40562C7.27148 1.47398 7.31022 1.53551 7.36035 1.59019L9.17871 3.38805C9.00098 3.35159 8.81185 3.32424 8.61133 3.30602C8.41536 3.28323 8.21256 3.27184 8.00293 3.27184C7.16439 3.27184 6.37826 3.42906 5.64453 3.74352C4.91536 4.05341 4.27507 4.48407 3.72363 5.03551C3.1722 5.58694 2.73926 6.22952 2.4248 6.96324C2.11491 7.69241 1.95996 8.47398 1.95996 9.30797Z",fill:"currentColor"})))});function Sm(e){var t;const n=Pc(e),{typography:r}=(t=e==null?void 0:e.zoomUI)!==null&&t!==void 0?t:Ur();return{fontFamily:r.fontFamily,focusBorderColor:n.border.primary,focusBorderBackground:n.bg.default,lineHeight:{default:r.lineHeight.body,small:r.lineHeight.subtitle,medium:r.lineHeight.body,large:r.lineHeight.bodyLarge,extraLarge:r.lineHeight.bodyLarge},minWidth:{default:"60px",small:"47px",medium:"60px",large:"73px",extraLarge:"81px"},height:{default:"32px",small:"24px",medium:"32px",large:"40px",extraLarge:"48px"},padding:{default:"6px 12px",small:"4px 8px",medium:"6px 12px",large:"10px 16px",extraLarge:"14px 20px"},borderRadius:{default:"8px",small:"6px",medium:"8px",large:"10px",extraLarge:"12px"},fontSize:{default:r.fontSize.body,small:r.fontSize.body,medium:r.fontSize.body,large:r.fontSize.bodyLarge,extraLarge:r.fontSize.bodyLarge},fontWeight:{default:r.fontWeight.body,small:r.fontWeight.body,medium:r.fontWeight.body,large:r.fontWeight.bodyLarge,extraLarge:r.fontWeight.bodyLarge},loadingMask:n.fill.blend.strong.transparent,loadingColor:n.fill.contrary.strong.transparent,loadingMaskOffset:{default:-1,primary:-1,secondary:0,tertiary:-1},color:{default:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},primary:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},secondary:{default:n.text.stronger.neutral,hover:n.text.stronger.neutral,active:n.text.stronger.neutral},tertiary:{default:n.text.primary,hover:n.text.primary,active:n.text.primary},disabled:{default:{default:n.state.disable,hover:n.state.disable,active:n.state.disable},primary:{default:n.state.disable,hover:n.state.disable,active:n.state.disable},secondary:{default:n.state.disable,hover:n.state.disable,active:n.state.disable},tertiary:{default:n.state.disable,hover:n.state.disable,active:n.state.disable}},danger:{default:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},primary:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},secondary:{default:n.text.error,hover:n.text.error,active:n.text.error},tertiary:{default:n.text.error,hover:n.text.error,active:n.text.error}}},background:{default:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},primary:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},secondary:{default:"transparent",hover:n.state.subtle.neutral.hover,active:n.state.subtle.neutral.press},tertiary:{default:"transparent",hover:n.state.subtle.primary.hover,active:n.state.subtle.primary.press},disabled:{default:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},primary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},secondary:{default:"transparent",hover:"transparent",active:"transparent"},tertiary:{default:"transparent",hover:"transparent",active:"transparent"}},danger:{default:{default:n.fill.global.error,hover:n.state.error.hover,active:n.state.error.press},primary:{default:n.fill.global.error,hover:n.state.error.hover,active:n.state.error.press},secondary:{default:"transparent",hover:n.state.subtle.error.hover,active:n.state.subtle.error.press},tertiary:{default:"transparent",hover:n.state.subtle.error.hover,active:n.state.subtle.error.press}}},borderColor:{default:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},primary:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},secondary:{default:n.border.neutral,hover:n.border.neutral,active:n.border.neutral},tertiary:{default:"transparent",hover:"transparent",active:"transparent"},disabled:{default:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},primary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},secondary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},tertiary:{default:"transparent",hover:"transparent",active:"transparent"}},danger:{default:{default:n.fill.global.error,hover:n.state.error.hover,active:n.state.error.press},primary:{default:n.fill.global.error,hover:n.state.error.hover,active:n.state.error.press},secondary:{default:n.border.error,hover:n.border.error,active:n.border.error},tertiary:{default:"transparent",hover:"transparent",active:"transparent"}}},iconButton:{width:{default:"32px",small:"24px",medium:"32px",large:"40px",extraLarge:"48px"},height:{default:"32px",small:"24px",medium:"32px",large:"40px",extraLarge:"48px"},fontSize:{default:"16px",small:"14px",medium:"16px",large:"18px",extraLarge:"20px"},borderRadius:{default:"8px",small:"6px",medium:"8px",large:"10px",extraLarge:"12px"},color:{default:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},primary:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},secondary:{default:n.text.stronger.neutral,hover:n.text.stronger.neutral,active:n.text.stronger.neutral},tertiary:{default:n.text.stronger.neutral,hover:n.text.stronger.neutral,active:n.text.stronger.neutral},disabled:{default:{default:n.state.disable,hover:n.state.disable,active:n.state.disable},primary:{default:n.state.disable,hover:n.state.disable,active:n.state.disable},secondary:{default:n.state.disable,hover:n.state.disable,active:n.state.disable},tertiary:{default:n.state.disable,hover:n.state.disable,active:n.state.disable}},loading:{default:{default:n.fill.global.strong.light.transparent,hover:n.fill.global.strong.light.transparent,active:n.fill.global.strong.light.transparent},primary:{default:n.fill.global.strong.light.transparent,hover:n.fill.global.strong.light.transparent,active:n.fill.global.strong.light.transparent},secondary:{default:n.fill.contrary.strong.transparent,hover:n.fill.contrary.strong.transparent,active:n.fill.contrary.strong.transparent},tertiary:{default:n.fill.contrary.strong.transparent,hover:n.fill.contrary.strong.transparent,active:n.fill.contrary.strong.transparent}}},background:{default:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},primary:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},secondary:{default:"transparent",hover:n.state.subtle.neutral.hover,active:n.state.subtle.neutral.press},tertiary:{default:"transparent",hover:n.state.subtle.neutral.hover,active:n.state.subtle.neutral.press},disabled:{default:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},primary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},secondary:{default:"transparent",hover:"transparent",active:"transparent"},tertiary:{default:"transparent",hover:"transparent",active:"transparent"}}},borderColor:{default:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},primary:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},secondary:{default:n.border.neutral,hover:n.border.neutral,active:n.border.neutral},tertiary:{default:"transparent",hover:"transparent",active:"transparent"},disabled:{default:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},primary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},secondary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},tertiary:{default:"transparent",hover:"transparent",active:"transparent"}}}},homeButton:{width:"56px",height:"56px",fontSize:"30px",borderRadius:"16px",color:{default:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},primary:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},secondary:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},tertiary:{default:n.inverse.global.default,hover:n.inverse.global.default,active:n.inverse.global.default},disabled:{default:{default:n.state.disable,hover:n.state.disable,active:n.state.disable},primary:{default:n.state.disable,hover:n.state.disable,active:n.state.disable},secondary:{default:n.state.disable,hover:n.state.disable,active:n.state.disable},tertiary:{default:n.state.disable,hover:n.state.disable,active:n.state.disable}}},background:{default:{default:n.fill.complementary,hover:n.state.complementary.hover,active:n.state.complementary.press},primary:{default:n.fill.complementary,hover:n.state.complementary.hover,active:n.state.complementary.press},secondary:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},tertiary:{default:n.fill.global.error,hover:n.state.error.hover,active:n.state.error.press},disabled:{default:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},primary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},secondary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},tertiary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable}}},borderColor:{default:{default:n.fill.complementary,hover:n.state.complementary.hover,active:n.state.complementary.press},primary:{default:n.fill.complementary,hover:n.state.complementary.hover,active:n.state.complementary.press},secondary:{default:n.fill.global.primary,hover:n.state.primary.hover,active:n.state.primary.press},tertiary:{default:n.fill.global.error,hover:n.state.error.hover,active:n.state.error.press},disabled:{default:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},primary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},secondary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable},tertiary:{default:n.state.subtle.disable,hover:n.state.subtle.disable,active:n.state.subtle.disable}}}}}}function Ii(e){return["primary","secondary","tertiary"].includes(e)}function bm(e){const t=Object.keys(e),n={};return t.forEach(r=>{const o=r.toLowerCase();(o.startsWith("aria-")||o.startsWith("data-")||o.startsWith("on")||["id","title","role","tabindex"].includes(o)||typeof e.href=="string"&&["href","target","download"].includes(o))&&(n[r]=e[r])}),n}function Em(){return{".zmicon":{display:"inline-block",verticalAlign:"-0.125em",lineHeight:0},".zmicon-acc-outline":{outline:"2px solid #4f9af7"},".zmicon-acc-no-outline":{outline:"none"}}}const Ut="ui-Button",J={root:`${Ut}-root-${Jn()}`,focusVisible:`${Ut}-focusVisible`,small:`${Ut}-small`,medium:`${Ut}-medium`,large:`${Ut}-large`,extraLarge:`${Ut}-extraLarge`,primary:`${Ut}-primary`,secondary:`${Ut}-secondary`,tertiary:`${Ut}-tertiary`,loading:`${Ut}-loading`,disabled:`${Ut}-disabled`,danger:`${Ut}-danger`,startIcon:`${Ut}-startIcon`,endIcon:`${Ut}-endIcon`,loadingIcon:`${Ut}-loadingIcon`,loadingMask:`${Ut}-loadingMask`,iconButton:`${Ut}-iconButton`,homeButton:`${Ut}-homeButton`};function j$(e){const t=Sm(e),[n,r]=Ti({componentName:"Button",theme:e,dynamicToken:t}),o=c=>{const u=c;return{height:r(n.height[u]),minWidth:r(n.minWidth[u]),padding:r(n.padding[u]),fontSize:r(n.fontSize[u]),fontWeight:r(n.fontWeight[u]),borderRadius:r(n.borderRadius[u]),lineHeight:r(n.lineHeight[u]),[`.${J.startIcon}, .${J.endIcon}`]:{fontSize:r(n.fontSize[u]),svg:{fontSize:r(n.fontSize[u])}},[`.${J.loadingMask}`]:{borderRadius:r(n.borderRadius[u])}}},i=c=>{const u=c;return{background:r(n.background[u].default),color:r(n.color[u].default),borderColor:r(n.borderColor[u].default),"&:hover":{background:r(n.background[u].hover),color:r(n.color[u].hover),borderColor:r(n.borderColor[u].hover)},"&:active":{background:r(n.background[u].active),color:r(n.color[u].active),borderColor:r(n.borderColor[u].active)},[`.${J.loadingMask}`]:{left:r(n.loadingMaskOffset[u]),right:r(n.loadingMaskOffset[u]),top:r(n.loadingMaskOffset[u]),bottom:r(n.loadingMaskOffset[u])}}},s=c=>{const u=c&&Ii(c)?c:"default";return{background:r(n.background.danger[u].default),color:r(n.color.danger[u].default),borderColor:r(n.borderColor.danger[u].default),"&:hover":{background:r(n.background.danger[u].hover),color:r(n.color.danger[u].hover),borderColor:r(n.borderColor.danger[u].hover)},"&:active":{background:r(n.background.danger[u].active),color:r(n.color.danger[u].active),borderColor:r(n.borderColor.danger[u].active)}}},a=c=>{const u=c&&Ii(c)?c:"default";return{background:r(n.background.disabled[u].default),color:r(n.color.disabled[u].default),borderColor:r(n.borderColor.disabled[u].default),"&:hover":{background:r(n.background.disabled[u].hover),color:r(n.color.disabled[u].hover),borderColor:r(n.borderColor.disabled[u].hover)},"&:active":{background:r(n.background.disabled[u].active),color:r(n.color.disabled[u].active),borderColor:r(n.borderColor.disabled[u].active)}}};return{[`&.${J.root}`]:Object.assign({fontFamily:r(n.fontFamily),textTransform:"none",borderStyle:"solid",borderWidth:1,whiteSpace:"nowrap",position:"relative",height:r(n.height.default),minWidth:r(n.minWidth.default),padding:r(n.padding.default),borderRadius:r(n.borderRadius.default),lineHeight:r(n.lineHeight.default),fontSize:r(n.fontSize.default),fontWeight:r(n.fontWeight.default),background:r(n.background.default.default),color:r(n.color.default.default),borderColor:r(n.borderColor.default.default),"&:hover":{background:r(n.background.default.hover),color:r(n.color.default.hover),borderColor:r(n.borderColor.default.hover)},"&:active":{background:r(n.background.default.active),color:r(n.color.default.active),borderColor:r(n.borderColor.default.active)},[`&.${J.focusVisible}`]:{boxShadow:`0px 0px 0px 2px ${r(n.focusBorderBackground)}, 0px 0px 0px 4px ${r(n.focusBorderColor)}`},[`.${J.startIcon}, .${J.endIcon}`]:{fontSize:r(n.fontSize.default),svg:{fontSize:r(n.fontSize.default)}},[`&.${J.small}`]:o("small"),[`&.${J.medium}`]:o("medium"),[`&.${J.large}`]:o("large"),[`&.${J.extraLarge}`]:o("extraLarge"),[`&.${J.primary}`]:i("primary"),[`&.${J.secondary}`]:i("secondary"),[`&.${J.tertiary}`]:i("tertiary"),[`&.${J.danger}`]:Object.assign(Object.assign({},s()),{[`&.${J.primary}`]:s("primary"),[`&.${J.secondary}`]:s("secondary"),[`&.${J.tertiary}`]:s("tertiary")}),[`&.${J.disabled}`]:Object.assign(Object.assign({cursor:"not-allowed",pointerEvents:"auto"},a()),{[`&.${J.primary}`]:a("primary"),[`&.${J.secondary}`]:a("secondary"),[`&.${J.tertiary}`]:a("tertiary")}),[`.${J.loadingMask}`]:{background:r(n.loadingMask),position:"absolute",left:r(n.loadingMaskOffset.default),right:r(n.loadingMaskOffset.default),top:r(n.loadingMaskOffset.default),bottom:r(n.loadingMaskOffset.default),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:r(n.borderRadius.default),[`.${J.loadingIcon}`]:{color:r(n.loadingColor),svg:{fontSize:16}}}},Em())}}function xm(e){const t=[];return t.push(J.root),e.type&&t.push(J[e.type]),e.size&&t.push(J[e.size]),e.danger&&t.push(J.danger),e.loading&&t.push(J.loading),e.disabled&&t.push(J.disabled),Be(t)}function W$(e,t){const n=Sm(e),[r,o]=Ti({componentName:"Button",theme:e,dynamicToken:n}),i=f=>{const d=f,h={height:o(r.iconButton.height[d]),minWidth:o(r.iconButton.width[d]),width:o(r.iconButton.width[d]),borderRadius:o(r.iconButton.borderRadius[d]),padding:0,fontSize:o(r.iconButton.fontSize[d]),svg:{fontSize:o(r.iconButton.fontSize[d])},[`.${J.startIcon}, .${J.endIcon}`]:{display:"none"}};return t!=null&&t.fullWidth&&delete h.width,h},s=f=>{const d=f&&Ii(f)?f:"default";return{background:o(r.iconButton.background[d].default),color:o(r.iconButton.color[d].default),borderColor:o(r.iconButton.borderColor[d].default),"&:hover":{background:o(r.iconButton.background[d].hover),color:o(r.iconButton.color[d].hover),borderColor:o(r.iconButton.borderColor[d].hover)},"&:active":{background:o(r.iconButton.background[d].active),color:o(r.iconButton.color[d].active),borderColor:o(r.iconButton.borderColor[d].active)}}},a=f=>{const d=f&&Ii(f)?f:"default";return{background:o(r.background.disabled[d].default),color:o(r.color.disabled[d].default),borderColor:o(r.borderColor.disabled[d].default),"&:hover":{background:o(r.background.disabled[d].hover),color:o(r.color.disabled[d].hover),borderColor:o(r.borderColor.disabled[d].hover)},"&:active":{background:o(r.background.disabled[d].active),color:o(r.color.disabled[d].active),borderColor:o(r.borderColor.disabled[d].active)}}},l=f=>{const d=f&&Ii(f)?f:"default";return{background:o(r.iconButton.background.disabled[d].default),color:o(r.iconButton.color.disabled[d].default),borderColor:o(r.iconButton.borderColor.disabled[d].default),"&:hover":{background:o(r.iconButton.background.disabled[d].hover),color:o(r.iconButton.color.disabled[d].hover),borderColor:o(r.iconButton.borderColor.disabled[d].hover)},"&:active":{background:o(r.iconButton.background.disabled[d].active),color:o(r.iconButton.color.disabled[d].active),borderColor:o(r.iconButton.borderColor.disabled[d].active)}}},c=f=>{const d=f&&Ii(f)?f:"default";return{color:o(r.iconButton.color.loading[d].default),"&:hover":{color:o(r.iconButton.color.loading[d].hover)},"&:active":{color:o(r.iconButton.color.loading[d].active)}}};return{[`&.${J.root}`]:Object.assign({textTransform:"none",borderStyle:"solid",borderWidth:1,whiteSpace:"nowrap",height:o(r.height.default),minWidth:o(r.minWidth.default),padding:o(r.padding.default),borderRadius:o(r.borderRadius.default),fontSize:o(r.fontSize.default),fontWeight:o(r.fontWeight.default),background:o(r.background.default.default),color:o(r.color.default.default),borderColor:o(r.borderColor.default.default),"&:hover":{background:o(r.background.default.hover),color:o(r.color.default.hover),borderColor:o(r.borderColor.default.hover)},"&:active":{background:o(r.background.default.active),color:o(r.color.default.active),borderColor:o(r.borderColor.default.active)},[`&.${J.focusVisible}`]:{boxShadow:`0px 0px 0px 2px ${o(r.focusBorderBackground)}, 0px 0px 0px 4px ${o(r.focusBorderColor)}`},[`.${J.startIcon}, .${J.endIcon}`]:{fontSize:o(r.fontSize.default),svg:{fontSize:o(r.fontSize.default)}},[`&.${J.disabled}`]:Object.assign(Object.assign({cursor:"not-allowed"},a()),{[`&.${J.primary}`]:a("primary"),[`&.${J.secondary}`]:a("secondary"),[`&.${J.tertiary}`]:a("tertiary")}),[`&.${J.iconButton}`]:Object.assign(Object.assign(Object.assign({},i("medium")),s("default")),{[`&.${J.small}`]:i("small"),[`&.${J.medium}`]:i("medium"),[`&.${J.large}`]:i("large"),[`&.${J.extraLarge}`]:i("extraLarge"),[`&.${J.primary}`]:s("primary"),[`&.${J.secondary}`]:s("secondary"),[`&.${J.tertiary}`]:s("tertiary"),[`&.${J.loading}`]:Object.assign(Object.assign({},c()),{[`&.${J.primary}`]:c("primary"),[`&.${J.secondary}`]:c("secondary"),[`&.${J.tertiary}`]:c("tertiary")}),[`&.${J.disabled}`]:Object.assign(Object.assign({cursor:"not-allowed"},l()),{[`&.${J.primary}`]:l("primary"),[`&.${J.secondary}`]:l("secondary"),[`&.${J.tertiary}`]:l("tertiary")})})},Em())}}function V$(e){const t=[];return t.push(J.root),e.type&&t.push(J[e.type]),t.push(J.iconButton),e.disabled&&t.push(J.disabled),Be(t)}const H$=sl`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`,Hw=Ee(O$)`\n animation: ${H$} 1s steps(8, end) infinite;\n`;var Gw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const G$=U.forwardRef((e,t)=>{const{children:n,onClick:r,className:o,autoFocus:i,sx:s,classes:a,fullWidth:l,htmlType:c,loading:u,autoLoading:f}=e,d=Gw(e,["children","onClick","className","autoFocus","sx","classes","fullWidth","htmlType","loading","autoLoading"]),h=bm(d);return U.createElement(is,Object.assign({ref:t,disableRipple:!0,className:o,onClick:r,autoFocus:i,classes:{startIcon:J.startIcon,endIcon:J.endIcon,focusVisible:J.focusVisible},sx:s,fullWidth:l,type:c},h),u?U.createElement(Hw,{className:J.loadingIcon}):n)}),Y$=Ee(G$)(e=>{const{theme:t}=e;return W$(t,e)}),K$=U.forwardRef((e,t)=>U.createElement(Y$,Object.assign({},e,{ref:t}))),Z$=U.forwardRef((e,t)=>{const{children:n,onClick:r,className:o,type:i,size:s,disabled:a,autoFocus:l,sx:c,fullWidth:u}=e,f=Gw(e,["children","onClick","className","type","size","disabled","autoFocus","sx","fullWidth"]);return U.createElement(K$,Object.assign({ref:t,className:Be(V$(e),o),onClick:r,size:s,type:i,disabled:a,autoFocus:l,sx:c,fullWidth:u},f),n)});function J$(e,t){const n=Sm(e),[r,o]=Ti({componentName:"Button",theme:e,dynamicToken:n}),i=l=>{const c=l&&Ii(l)?l:"default";return{background:o(r.homeButton.background[c].default),color:o(r.homeButton.color[c].default),borderColor:o(r.homeButton.borderColor[c].default),"&:hover":{background:o(r.homeButton.background[c].hover),color:o(r.homeButton.color[c].hover),borderColor:o(r.homeButton.borderColor[c].hover)},"&:active":{background:o(r.homeButton.background[c].active),color:o(r.homeButton.color[c].active),borderColor:o(r.homeButton.borderColor[c].active)}}},s=l=>{const c=l&&Ii(l)?l:"default";return{background:o(r.homeButton.background.disabled[c].default),color:o(r.homeButton.color.disabled[c].default),borderColor:o(r.homeButton.borderColor.disabled[c].default),"&:hover":{background:o(r.homeButton.background.disabled[c].hover),color:o(r.homeButton.color.disabled[c].hover),borderColor:o(r.homeButton.borderColor.disabled[c].hover)},"&:active":{background:o(r.homeButton.background.disabled[c].active),color:o(r.homeButton.color.disabled[c].active),borderColor:o(r.homeButton.borderColor.disabled[c].active)}}};return{[`&.${J.root}`]:Object.assign({textTransform:"none",borderStyle:"solid",borderWidth:1,whiteSpace:"nowrap",[`&.${J.focusVisible}`]:{boxShadow:`0px 0px 0px 2px ${o(r.focusBorderBackground)}, 0px 0px 0px 4px ${o(r.focusBorderColor)}`},[`&.${J.homeButton}`]:Object.assign(Object.assign(Object.assign(Object.assign({height:o(r.homeButton.height),minWidth:o(r.homeButton.width)},!(t!=null&&t.fullWidth)&&{width:o(r.homeButton.width)}),{padding:0,fontSize:o(r.homeButton.fontSize),svg:{fontSize:o(r.homeButton.fontSize)},borderRadius:o(r.homeButton.borderRadius)}),i("default")),{[`.${J.startIcon}, .${J.endIcon}`]:{display:"none"},[`&.${J.primary}`]:i("primary"),[`&.${J.secondary}`]:i("secondary"),[`&.${J.tertiary}`]:i("tertiary"),[`&.${J.disabled}`]:Object.assign(Object.assign({cursor:"not-allowed"},s()),{[`&.${J.primary}`]:s("primary"),[`&.${J.secondary}`]:s("secondary"),[`&.${J.tertiary}`]:s("tertiary")})})},Em())}}function X$(e){const t=[];return t.push(J.root),e.type&&t.push(J[e.type]),t.push(J.homeButton),e.disabled&&t.push(J.disabled),Be(t)}var Yw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q$=U.forwardRef((e,t)=>{const{children:n,onClick:r,className:o,autoFocus:i,sx:s,classes:a,fullWidth:l,htmlType:c}=e,u=Yw(e,["children","onClick","className","autoFocus","sx","classes","fullWidth","htmlType"]),f=bm(u);return U.createElement(is,Object.assign({ref:t,disableRipple:!0,className:o,onClick:r,autoFocus:i,classes:{startIcon:J.startIcon,endIcon:J.endIcon,focusVisible:J.focusVisible},sx:s,fullWidth:l,type:c},f),n)}),Q$=Ee(q$)(e=>{const{theme:t}=e;return J$(t,e)}),eB=U.forwardRef((e,t)=>U.createElement(Q$,Object.assign({},e,{ref:t}))),tB=U.forwardRef((e,t)=>{const{children:n,onClick:r,className:o,type:i,size:s,disabled:a,autoFocus:l,sx:c,variant:u,fullWidth:f}=e,d=Yw(e,["children","onClick","className","type","size","disabled","autoFocus","sx","variant","fullWidth"]);return U.createElement(eB,Object.assign({ref:t,className:Be(X$(e),o),onClick:r,size:s,type:i,disabled:a,autoFocus:l,sx:c,fullWidth:f},d),n)});var nB=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};function rB({autoLoading:e,loading:t,onClick:n}){const[r,o]=p.useState(t);return p.useEffect(()=>{o(t)},[t]),[r,s=>nB(this,void 0,void 0,function*(){if(!t)if(e){if(r)return;try{o(!0),yield n==null?void 0:n(s)}catch(a){console.error(a)}o(!1)}else n==null||n(s)})]}var Kw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oB=U.forwardRef((e,t)=>{const{children:n,onClick:r,className:o,autoFocus:i,startIcon:s,endIcon:a,loading:l,sx:c,classes:u,fullWidth:f,htmlType:d,disabled:h}=e,g=Kw(e,["children","onClick","className","autoFocus","startIcon","endIcon","loading","sx","classes","fullWidth","htmlType","disabled"]),m=bm(g);return U.createElement(is,Object.assign({ref:t,disableRipple:!0,className:o,onClick:r,autoFocus:i,startIcon:s,endIcon:a,classes:{startIcon:J.startIcon,endIcon:J.endIcon,focusVisible:J.focusVisible},sx:c,fullWidth:f,type:d},m),n,l?U.createElement("div",{"aria-hidden":!0,className:J.loadingMask},U.createElement(Hw,{className:J.loadingIcon})):null)}),iB=Ee(oB)(e=>{const{theme:t}=e;return j$(t)}),sB=U.forwardRef((e,t)=>U.createElement(iB,Object.assign({},e,{ref:t}))),Xn=U.forwardRef((e,t)=>{const n=Rc(e,["style"]),{children:r,onClick:o,className:i,type:s,size:a,danger:l,disabled:c,autoFocus:u,startIcon:f,endIcon:d,loading:h,autoLoading:g,sx:m,variant:b,fullWidth:y}=n,v=Kw(n,["children","onClick","className","type","size","danger","disabled","autoFocus","startIcon","endIcon","loading","autoLoading","sx","variant","fullWidth"]),[C,S]=rB({loading:!!h,autoLoading:g,onClick:o}),w=!!(C||c);return c&&("aria-disabled"in v||(v["aria-disabled"]="true"),"tabIndex"in v||(v.tabIndex=-1)),typeof r=="string"&&!("aria-label"in v)&&(v["aria-label"]=r),b==="icon"?U.createElement(Z$,Object.assign({ref:t,className:Be(xm(Object.assign(Object.assign({},e),{loading:C})),i),size:a,type:s,disabled:c,autoFocus:u,sx:m,fullWidth:y,loading:C,onClick:w?void 0:S},v),r):b==="home"?U.createElement(tB,Object.assign({ref:t,className:Be(xm(Object.assign(Object.assign({},e),{loading:C})),i),size:a,type:s,disabled:c,autoFocus:u,sx:m,fullWidth:y,onClick:w?void 0:S},v),r):U.createElement(sB,Object.assign({ref:t,className:Be(xm(Object.assign(Object.assign({},e),{loading:C})),i),size:a,type:s,danger:l,disabled:c,autoFocus:u,startIcon:f,endIcon:d,loading:C,sx:m,fullWidth:y,onClick:w?void 0:S},v),r)}),op=e=>{const{onClick:t,afterAction:n,loading:r}=e,o=t,[i,s]=p.useState(!1),a=l=>{if(typeof o!="function"){n==null||n();return}const c=o(l);Object.prototype.toString.call(c)==="[object Promise]"?(s(!0),c==null||c.then(()=>{s(!1),n==null||n()}).catch(u=>{s(!1),console.error(u)})):n==null||n()};return U.createElement(Xn,Object.assign({},e,{loading:i||r,onClick:a}))};function aB(e){const{semantic:t,shadow:n,typography:r,zIndex:o}=e;return{zIndex:o.Tooltip,fontFamily:r.fontFamily,fontSize:r.fontSize.subtitle,fontWeight:r.fontWeight.subtitle,lineHeight:r.lineHeight.subtitle,borderColor:t.light.border.subtle.neutral,backgroundColor:t.light.fill.default,boxShadow:n.sm,textColor:t.light.text.stronger.neutral}}function lB(e){const{semantic:t,shadow:n,typography:r,zIndex:o}=e;return{zIndex:o.Tooltip,fontFamily:r.fontFamily,fontSize:r.fontSize.subtitle,fontWeight:r.fontWeight.subtitle,lineHeight:r.lineHeight.subtitle,borderColor:t.dark.border.subtle.neutral,backgroundColor:t.dark.fill.default,boxShadow:n.sm,textColor:t.dark.text.stronger.neutral}}function cB(e){return{light:aB(e),dark:lB(e)}}const jo={popper:`ui-tooltip-popper-${Jn()}`,tooltip:`ui-tooltip-${Jn()}`,arrow:"ui-tooltip-arrow"};function uB(e,t){var n;const r=cB(e.zoomUI||Ur()),[o,i]=i$({componentName:"Tooltip",theme:e,themeToken:r}),{maxWidth:s,mode:a,width:l}=t,u=typeof a<"u"&&a!==((n=e==null?void 0:e.palette)===null||n===void 0?void 0:n.mode)?r[a]:o;return{[`& .${jo.tooltip}`]:{fontFamily:i(u.fontFamily),backgroundColor:i(u.backgroundColor),color:i(u.textColor),padding:"3px 6px",fontSize:i(u.fontSize),lineHeight:i(u.lineHeight),fontWeight:i(u.fontWeight),borderRadius:"4px",border:`0.5px solid ${i(u.borderColor)}`,boxShadow:i(u.boxShadow),width:l?`${l}px`:"auto",maxWidth:s?`${s}px`:"240px"},[`& .${jo.arrow}`]:{color:i(u.backgroundColor),"&::before":{border:`1px solid ${i(u.borderColor)}`}},[`&.${jo.popper}`]:{zIndex:i(u.zIndex),\'&[data-popper-placement="top"], &[data-popper-placement*="top"]\':{[`.${jo.tooltip}`]:{marginBottom:"4px"}},\'&[data-popper-placement="bottom"], &[data-popper-placement*="bottom"]\':{[`.${jo.tooltip}`]:{marginTop:"4px"}},\'&[data-popper-placement="left"], &[data-popper-placement*="left"]\':{[`.${jo.tooltip}`]:{marginRight:"4px"}},\'&[data-popper-placement="right"], &[data-popper-placement*="right"]\':{[`.${jo.tooltip}`]:{marginLeft:"4px"}}}}}function dB(e){var t;const n=Pc(e),{typography:r,shadow:o,zIndex:i}=(t=e==null?void 0:e.zoomUI)!==null&&t!==void 0?t:Ur();return{zIndex:i.Popover,width:"auto",maxWidth:"400px",padding:12,fontSize:r.fontSize.body,fontFamily:r.fontFamily,border:n.border.subtle.neutral,borderRadius:8,arrow:{width:"1em",height:"0.71em",color:n.bg.default,border:n.border.subtle.neutral},title:{color:n.text.stronger.neutral,fontWeight:r.fontWeight.bodyBold,lineHeight:r.lineHeight.bodyBold,paddingRight:"30px",marginBottom:"4px"},closeIcon:{position:"absolute",right:6,top:6},content:{color:n.text.stronger.neutral,fontWeight:r.fontWeight.body,lineHeight:r.lineHeight.body,paddingRight:"30px",a:{color:n.text.primary}},footer:{marginTop:16,paddingRight:36,ok:{marginLeft:8}},outline:{default:"none",focus:`2px solid ${n.border.primary}`,offset:2},background:n.bg.default,boxShadow:o.lg}}const Fa="navigation-with-keyboard",Tr=typeof document=="object"?document==null?void 0:document.documentElement:void 0,$a=typeof document=="object"?document==null?void 0:document.body:void 0;$a==null||$a.addEventListener("keydown",()=>{Tr!=null&&Tr.classList.contains(Fa)||Tr==null||Tr.classList.add(Fa)},{capture:!0}),$a==null||$a.addEventListener("mousedown",e=>{e.offsetX!==0&&e.offsetY!==0&&Tr!=null&&Tr.classList.contains(Fa)&&(Tr==null||Tr.classList.remove(Fa))},{capture:!0});function fB(e){var t;const n=(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"tabindex");let r=!1;return n?r=+n>=0:e.tagName==="A"?r=!!e.href:["INPUT","SELECT","TEXTAREA","BUTTON","OBJECT"].includes(e.tagName)&&(r=!e.disabled),r&&window.getComputedStyle(e).visibility!=="hidden"&&!jw(e,o=>window.getComputedStyle(o).display==="none")}function Nc(e,t){const n=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT);for(n.currentNode=e;;){const r=t?n.previousNode():n.nextNode();if(!r)return null;if(fB(r))return r}}const pB="Popover",Oi="ui-Popover",ht={root:`${Oi}-root-${Jn()}`,paper:`${Oi}-paper`,arrow:`${Oi}-arrow`,title:`${Oi}-title`,closeIcon:`${Oi}-closeIcon`,content:`${Oi}-content`,footer:`${Oi}-footer`,okButton:`${Oi}-okButton`};function gB(e,t){const n=dB(e),[r,o]=Ti({componentName:pB,theme:e,dynamicToken:n}),{width:i,maxWidth:s,closable:a,title:l,content:c}=t;return{[`&.${ht.root}`]:{zIndex:o(r.zIndex),[`.${ht.paper}`]:{width:i??o(r.width),maxWidth:s??o(r.maxWidth),padding:o(r.padding),background:o(r.background),boxShadow:o(r.boxShadow),borderStyle:"solid",borderWidth:1,borderColor:o(r.border),borderRadius:o(r.borderRadius),position:"relative",fontSize:"16px"},[`.${ht.arrow}`]:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:o(r.arrow.color),"&::before":{content:\'""\',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",borderStyle:"solid",borderWidth:1,borderColor:o(r.arrow.border),transform:"rotate(45deg)",borderRadius:3}},[`&[data-popper-placement*="bottom"] .${ht.arrow}`]:{top:0,left:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ht.arrow}`]:{bottom:0,left:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ht.arrow}`]:{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ht.arrow}`]:{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}},[`.${ht.title}`]:Object.assign({display:"flex",color:o(r.title.color),fontWeight:o(r.title.fontWeight),lineHeight:o(r.title.lineHeight),fontFamily:o(r.fontFamily),fontSize:o(r.fontSize),marginBottom:o(r.title.marginBottom)},a&&{paddingRight:o(r.title.paddingRight)}),[`.${ht.closeIcon}`]:{position:o(r.closeIcon.position),right:o(r.closeIcon.right),top:o(r.closeIcon.top)},[`.${ht.content}`]:Object.assign(Object.assign({color:o(r.content.color),lineHeight:o(r.content.lineHeight),fontFamily:o(r.fontFamily),fontSize:o(r.fontSize)},a&&!l&&{paddingRight:o(r.content.paddingRight)}),{"& a":{color:o(r.content.a.color)}}),[`.${ht.footer}`]:Object.assign(Object.assign({marginTop:o(r.footer.marginTop),display:"flex",justifyContent:"flex-end",fontFamily:o(r.fontFamily)},a&&!l&&!c&&{paddingRight:o(r.footer.paddingRight)}),{"& > button":{fontFamily:o(r.fontFamily),fontSize:o(r.fontSize)},[`.${ht.okButton}`]:{marginLeft:o(r.footer.ok.marginLeft)}}),[`html.${Fa} &.${ht.root}, body.${Fa} &.${ht.root}`]:{"a:focus-within":{outline:o(r.outline.focus),outlineOffset:o(r.outline.offset)}}}}}const Zw=e=>{const{onClick:t,onClose:n}=e,[r,o]=p.useState(!1),i=s=>{const a=t==null?void 0:t(s);Object.prototype.toString.call(a)==="[object Promise]"?(o(!0),a==null||a.then(()=>{o(!1),n==null||n()}).catch(l=>{o(!1),console.error(l)})):n==null||n()};return U.createElement(Xn,Object.assign({},e,{loading:r,disabled:r,onClick:i}))},hB=U.useId||(()=>p.useMemo(()=>Jn(),[]));function mB(e){const t=hB();return n=>`${e}-${t}-${n}`}var vB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yB=p.forwardRef((e,t)=>{const{children:n,isModal:r=!0,autoFocus:o=!0,autoFocusCallback:i,restoreFocus:s=!0,restoreFocusCallback:a,onEscape:l,disableSentinel:c,shouldEscapeOnClickAway:u}=e,f=vB(e,["children","isModal","autoFocus","autoFocusCallback","restoreFocus","restoreFocusCallback","onEscape","disableSentinel","shouldEscapeOnClickAway"]),d=p.useRef(document.activeElement),h=p.useRef(null),g=Ft(h,t),m=p.useRef(null),b=p.useRef(null),y=p.useRef(!1),v=p.useRef(a),C=p.useRef(s);p.useEffect(()=>{v.current=a},[a]),p.useEffect(()=>{C.current=s},[s]),p.useLayoutEffect(()=>(setTimeout(()=>{const E=m.current,M=b.current,$=h.current;if(y.current=!0,d.current=document.activeElement,typeof i=="function")i({container:$,start:E,end:M});else if(E&&o){const D=document.activeElement;if($.contains(D)&&D!==E&&D!==M)return;const k=Nc(E);if(!k||!$.contains(k)||k===E||k===M)return;k.focus()}},0),()=>{var E,M;const $=d.current;typeof v.current=="function"?v.current({originActiveElement:$}):C.current&&($&&$!==document.body?document.activeElement&&(!((E=h.current)===null||E===void 0)&&E.contains(document.activeElement))&&$.focus({preventScroll:!0}):(M=document.activeElement)===null||M===void 0||M.blur())}),[]),p.useLayoutEffect(()=>{if(l){const E=M=>{var $;y.current&&!(!(($=h.current)===null||$===void 0)&&$.contains(M.target))&&(!u||u(M))&&l()};return document.body.addEventListener("mousedown",E),document.body.addEventListener("touchstart",E),()=>{document.body.removeEventListener("mousedown",E),document.body.removeEventListener("touchstart",E)}}},[l,u]);function S(E){var M;if(!r){l==null||l();return}const $=E?b.current:m.current;if($){const D=Nc($,E);if(D===(E?m.current:b.current)){(M=document.activeElement)===null||M===void 0||M.blur();return}D==null||D.focus()}}const w=E=>{const M=m.current,$=b.current;E.key==="Tab"&&!E.ctrlKey&&!E.metaKey?document.activeElement&&!c&&(E.shiftKey?Nc(document.activeElement,!0)===M&&(E.preventDefault(),E.stopPropagation(),S(!0)):Nc(document.activeElement)===$&&(E.preventDefault(),E.stopPropagation(),S(!1))):E.key==="Escape"&&!E.ctrlKey&&!E.metaKey&&!E.shiftKey&&(l==null||l())};function _(E){return U.createElement(tt,{ref:E?b:m,tabIndex:c?-1:0,"data-testid":E?"sentinelEnd":"sentinelStart","aria-hidden":!0,sx:{position:"absolute",pointerEvents:"none",left:0,right:0,top:0,bottom:0,":focus":{outline:"none"},":focus-visible":{outline:"none"}},onFocus:()=>{S(!E)}})}return U.createElement(tt,Object.assign({ref:g,onKeyDown:w,role:"dialog","aria-modal":!0,sx:{position:"relative"}},f),_(!1),n,_(!0))});var Jw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CB=Ee(e=>{var t;const{t:n}=vm("Shared"),{open:r,defaultOpen:o,className:i,closable:s,width:a,maxWidth:l,title:c,content:u,footer:f,okText:d=n("ok"),cancelText:h=n("cancel"),cancelButtonProps:g,okButtonProps:m,onOpen:b,onOk:y,onCancel:v,onClose:C,children:S,loopFocus:w=!0,anchorEl:_,closeButtonProps:E,maskClosable:M=!0,trigger:$="click",arrow:D=!0}=e,k=Jw(e,["open","defaultOpen","className","closable","width","maxWidth","title","content","footer","okText","cancelText","cancelButtonProps","okButtonProps","onOpen","onOk","onCancel","onClose","children","loopFocus","anchorEl","closeButtonProps","maskClosable","trigger","arrow"]),[R,O]=N$(r,o),[I,A]=p.useState(null),[P,N]=p.useState(null),[T,L]=p.useState(_),z=m??{},{className:B=""}=z,V=Jw(z,["className"]),H=p.useRef(null);p.useEffect(()=>{_?L(_):H.current&&L(H.current)},[_]);const G=mB("popover")("content"),te=p.useCallback(()=>{R||(O(!0),b==null||b())},[R,O,b]),ne=p.useCallback(()=>{R&&(O(!1),C==null||C())},[R,O,C]),ge=()=>s?U.createElement(Xn,Object.assign({className:ht.closeIcon,variant:"icon",type:"tertiary",onClick:ne,"aria-label":n("close")},E),U.createElement(zw,{size:20,"aria-hidden":!0})):null,se=()=>{if(f===null)return null;if(!f||!U.isValidElement(f))return v||y?U.createElement(tt,{className:ht.footer},U.createElement(Zw,Object.assign({key:"cancel",type:"secondary",onClick:v,onClose:ne},g),h),U.createElement(Zw,Object.assign({key:"ok",onClick:y,onClose:ne,className:Be(ht.okButton,B)},V),d)):null;const X=U.Children.only(f);return U.cloneElement(X,Object.assign({},X.props))},he=p.useCallback(X=>{var de;return M&&!(!((de=H.current)===null||de===void 0)&&de.contains(X.target))},[M]),fe=p.useRef();function Ce(){$==="hover"&&(te(),fe.current&&(clearTimeout(fe.current),fe.current=void 0))}function Q(){$==="hover"&&(fe.current&&clearTimeout(fe.current),fe.current=setTimeout(()=>{ne(),fe.current=void 0},100))}p.useEffect(()=>{if(!R)return;function X(de){var ae;if(P){const xe=de.target;(!xe||!P.contains(xe)&&!(!((ae=H.current)===null||ae===void 0)&&ae.contains(xe)))&&ne()}}return document.body.addEventListener("focusin",X),()=>{document.body.removeEventListener("focusin",X)}},[R,ne,P]);const ve=Ft(H,(t=S==null?void 0:S.props)===null||t===void 0?void 0:t.ref);return U.createElement(U.Fragment,null,S?U.cloneElement(S,{ref:ve,"aria-expanded":R??!1,"aria-describedby":R?G:void 0,onClick:X=>{var de,ae;$==="click"&&R?ne():te(),(ae=(de=S.props).onClick)===null||ae===void 0||ae.call(de,X)},onKeyDown:X=>{var de,ae;X.key==="Escape"&&ne(),(ae=(de=S.props).onKeyDown)===null||ae===void 0||ae.call(de,X)},onFocus:X=>{var de,ae;($==="hover"||$==="focus")&&te(),(ae=(de=S.props).onFocus)===null||ae===void 0||ae.call(de,X)},onMouseEnter:X=>{var de,ae;Ce(),(ae=(de=S.props).onMouseEnter)===null||ae===void 0||ae.call(de,X)},onMouseLeave:X=>{var de,ae;Q(),(ae=(de=S.props).onMouseLeave)===null||ae===void 0||ae.call(de,X)}}):null,T&&U.createElement(os,Object.assign({transition:!0,open:R??!1,ref:N,modifiers:[{name:"preventOverflow",options:{enabled:!0,boundariesElement:"viewport"}},{name:"arrow",options:{enabled:D,element:I}},{name:"offset",options:{offset:[0,D?10:8]}}],anchorEl:T,className:Be(ht.root,i),onMouseEnter:Ce,onMouseLeave:Q},k),({TransitionProps:X})=>U.createElement(Pf,Object.assign({},X,{timeout:200}),U.createElement(yB,{isModal:!!s||!M,className:ht.paper,onEscape:ne,id:G,shouldEscapeOnClickAway:he,disableSentinel:!w},D?U.createElement("span",{ref:A,className:ht.arrow}):null,U.createElement(tt,null,c?U.createElement(tt,{className:ht.title},c):null,u?U.createElement(tt,{className:ht.content},u):null),ge(),se()))))})(e=>{const{theme:t,width:n,maxWidth:r,title:o,content:i,closable:s}=e;return gB(t,{width:n,maxWidth:r,title:o,content:i,closable:s})}),SB=U.forwardRef((e,t)=>U.createElement(CB,Object.assign({},e,{ref:t})));var bB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Xw(e,t){return n=>{t==null||t(n),e(n)}}function EB(e){return e?Array.isArray(e)?e:[e]:[]}const xB=p.forwardRef((e,t)=>{var n,{arrow:r=!1,title:o,children:i,classes:s,mode:a,width:l,maxWidth:c,disablePortal:u=!1,PopperProps:f={},trigger:d=["hover","touch","focus"],open:h,onClose:g,onOpen:m,className:b,sx:y}=e,v=bB(e,["arrow","title","children","classes","mode","width","maxWidth","disablePortal","PopperProps","trigger","open","onClose","onOpen","className","sx"]);const[C,S]=Uy({controlled:h,default:!1,name:"Tooltip",state:"open"}),w=p.useRef(null),_=Ft(w,f.ref),E=p.useRef(),M=i.props,$={},D=new Set(EB(d)),k=()=>{clearTimeout(E.current)},R=A=>{C!==A&&S(A)},O=(A,P=0,N=()=>{})=>{k(),P===0?(R(A),N()):E.current=setTimeout(()=>{R(A),N()},P)},I={disableFocusListener:!D.has("focus"),disableHoverListener:!D.has("hover"),disableTouchListener:!D.has("touch")};if(D.has("click")&&($.onClick=Xw(A=>{var P;O(!0,(P=v.enterDelay)!==null&&P!==void 0?P:100,()=>{m==null||m(A)})},M.onClick)),D.has("contextMenu")&&($.onContextMenu=Xw(A=>{var P;A.preventDefault(),O(!0,(P=v==null?void 0:v.enterDelay)!==null&&P!==void 0?P:100,()=>{m==null||m(A)})},M.onContextMenu)),$.onKeyDown=A=>{var P,N,T;A.key==="Enter"||A.key===" "?O(!0,(P=v==null?void 0:v.enterDelay)!==null&&P!==void 0?P:100,()=>{m==null||m(A)}):A.key==="Tab"&&!u&&C&&O(!1,(N=v==null?void 0:v.enterDelay)!==null&&N!==void 0?N:100,()=>{g==null||g(A)}),(T=M.onKeyDown)===null||T===void 0||T.call(M,A)},r){const A=D.has("hover")||D.has("touch")?"hover":"click";return p.createElement(SB,Object.assign({content:o,width:l,maxWidth:c,disablePortal:u,trigger:A,open:h,onOpen:m,onClose:g,className:b,placement:"top",sx:y},v,{ref:t}),i)}return p.createElement(q0,{onClickAway:A=>{var P,N;const{target:T}=A;!(w.current===T||((P=w.current)===null||P===void 0?void 0:P.contains(T)))&&C&&O(!1,(N=v==null?void 0:v.leaveDelay)!==null&&N!==void 0?N:0,()=>g==null?void 0:g(A))}},p.createElement(Rx,Object.assign({className:b,sx:y,classes:Object.assign(Object.assign({},s),{popper:Be(jo.popper,s==null?void 0:s.popper),tooltip:Be(jo.tooltip,s==null?void 0:s.tooltip)}),open:C,placement:"top",arrow:!1,describeChild:!0,PopperProps:Object.assign(Object.assign({},f),{disablePortal:(n=f.disablePortal)!==null&&n!==void 0?n:u,sx:[A=>uB(A,{mode:a,width:l,maxWidth:c}),...Array.isArray(f.sx)?f.sx:[f.sx]],ref:_}),onOpen:A=>{O(!0),m==null||m(A)},onClose:A=>{O(!1),g==null||g(A)},ref:t,title:o},Rc(v,["style","sx","className"]),I),p.cloneElement(i,$)))});function kc(e,t){const n=p.useRef(null),r=p.useRef();return[p.useCallback(i=>{var s;(s=r.current)===null||s===void 0||s.call(r),i&&(r.current=e(i)),n.current=i},t),n]}function qw(e){const t=Pc(e);return{thumb:{background:{default:t.activeMode==="light"?t.fill.global.dark.transparent:t.fill.global.light.transparent,active:t.activeMode==="light"?t.fill.global.strong.dark.transparent:t.fill.global.strong.light.transparent},width:{default:4,hover:8}},track:{background:t.activeMode==="light"?t.fill.global.subtle.dark.transparent:t.fill.global.subtle.light.transparent,width:16,border:t.border.subtle.neutral}}}const wB="ScrollView",Ai="ui-ScrollView",Fe={root:`${Ai}-root-${Jn()}`,scroller:`${Ai}-scroller`,content:`${Ai}-content`,track:`${Ai}-track`,thumb:`${Ai}-thumb`,horizontal:`${Ai}-horizontal`,vertical:`${Ai}-vertical`,active:`${Ai}-active`};function TB(e){const t=qw(e),[n,r]=Ti({componentName:wB,theme:e,dynamicToken:t});return{[`&.${Fe.root}`]:{position:"relative",overflow:"hidden",display:"flex",alignItems:"stretch",justifyContent:"stretch",[`&:hover .${Fe.track}, &.${Fe.active} .${Fe.track}`]:{opacity:1,transition:"background .3s ease-out, border-color .3s ease-out, opacity .2s ease-out"},[`.${Fe.scroller}`]:{overflow:"hidden",flex:"1 1 auto",minWidth:0,scrollbarWidth:"none",position:"relative",zIndex:0,"&::scrollbar":{display:"none"},[`&.${Fe.horizontal}`]:{overflowX:"auto"},[`&.${Fe.vertical}`]:{overflowY:"auto"}},[`.${Fe.track}`]:{position:"absolute",right:0,bottom:0,boxSizing:"border-box",transition:"background .3s ease-out, border-color .3s ease-out, opacity .5s",opacity:0,border:"0px solid transparent",[`&.${Fe.horizontal}`]:{left:0,height:r(n.track.width),borderTopWidth:1},[`&.${Fe.vertical}`]:{top:0,width:r(n.track.width),borderLeftWidth:1},"@media (pointer: coarse)":{pointerEvents:"none"}},[`.${Fe.thumb}`]:{position:"absolute","&::before":{content:\'""\',position:"absolute",background:r(n.thumb.background.default),borderRadius:99},[`&.${Fe.horizontal}`]:{top:0,height:"100%","&::before":{left:0,right:0,top:"50%",height:r(n.thumb.width.default),transform:"translateY(-50%)",transition:"height .25s ease-out"}},[`&.${Fe.vertical}`]:{left:0,width:"100%","&::before":{top:0,bottom:0,left:"50%",width:r(n.thumb.width.default),transform:"translateX(-50%)",transition:"width .25s ease-out"}},[`&:active::before, &.${Fe.active}::before`]:{background:r(n.thumb.background.active)}}},[`.${Fe.track}:hover, .${Fe.track}.${Fe.active}`]:{transition:"background .2s ease-out, border-color .2s ease-out, opacity .5s 1s",background:r(n.track.background),borderColor:n.track.border,[`.${Fe.thumb}`]:{[`&.${Fe.horizontal}::before`]:{height:r(n.thumb.width.hover)},[`&.${Fe.vertical}::before`]:{width:r(n.thumb.width.hover)}}}}}function ip(e){const t=e.type.startsWith("touch")?e.changedTouches[0]:e;return{x:t.clientX,y:t.clientY}}function _B(e,{threshold:t=4,onStart:n,onMove:r,onEnd:o,cursor:i}){const s=ip(e);let a=s;const{target:l}=e,c=i??l instanceof Element?window.getComputedStyle(l).cursor:void 0;let u=t<=0,f=!1,d;function h(y,v){const C={clientX:y,clientY:v,deltaX:y-s.x,deltaY:v-s.y,dX:y-a.x,dY:v-a.y};return a={x:y,y:v},C}function g(y){const{x:v,y:C}=ip(y);u=!0,d=document.createElement("div");const{style:S}=d;S.position="fixed",S.top="0",S.bottom="0",S.left="0",S.right="0",S.zIndex="9999",S.cursor=c??"",S.userSelect="none",document.body.appendChild(d),n==null||n(Object.assign({event:y},h(v,C)))}function m(y){const{x:v,y:C}=ip(y);u?(r==null||r(Object.assign({event:y},h(v,C))),y.preventDefault()):Math.abs(v-s.x)+Math.abs(C-s.y)>=t&&g(y)}function b(y){if(f)return;f=!0;const{x:v,y:C}=y?ip(y):a;d&&(document.body.removeChild(d),d=void 0),document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",b),document.removeEventListener("pointercancel",b),document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",m),document.removeEventListener("touchend",b),document.removeEventListener("touchcancel",b),u&&(r==null||r(Object.assign({event:y},h(v,C))),o==null||o(Object.assign({event:y},h(v,C))),y==null||y.preventDefault())}return e.type.startsWith("pointer")&&(document.addEventListener("pointermove",m),document.addEventListener("pointerup",b),document.addEventListener("pointercancel",b)),e.type.startsWith("mouse")&&(document.addEventListener("mousemove",m),document.addEventListener("mouseup",b)),e.type.startsWith("touch")&&(document.addEventListener("touchmove",m,{passive:!1}),document.addEventListener("touchend",b,{passive:!1}),document.addEventListener("touchcancel",b,{passive:!1})),u&&(g(e),e.preventDefault()),{stop:()=>{b()}}}var IB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wm={scrollPositionName:"scrollLeft",scrollRangeName:"scrollWidth",clientRangeName:"clientWidth",positionStyleName:"left",rangeStyleName:"width",cornerStyleName:"right"},Tm={scrollPositionName:"scrollTop",scrollRangeName:"scrollHeight",clientRangeName:"clientHeight",positionStyleName:"top",rangeStyleName:"height",cornerStyleName:"bottom"},OB=U.forwardRef((e,t)=>{const n=e,{className:r,children:o,onScrollEnd:i,scrollerProps:s,onScroll:a,orientation:l="both",theme:c}=n,u=IB(n,["className","children","onScrollEnd","scrollerProps","onScroll","orientation","theme"]),f=qw(c).track.width,d=l!=="vertical",h=l!=="horizontal",g=p.useRef(d),m=p.useRef(h);p.useLayoutEffect(()=>{g.current=d,m.current=h,w()},[d,h]);const b=p.useRef(null),y=p.useRef(null),v=p.useRef(null);function C(P){b.current=P,typeof t=="function"?t(P):t&&(t.current=P)}const S=p.useMemo(()=>({horizontal:{scale:1,position:0,range:0},vertical:{scale:1,position:0,range:0}}),[]),w=p.useCallback(()=>{const P=$.current;if(!P)return;function N(B){const{scrollRangeName:V,clientRangeName:H}=B?wm:Tm,{[V]:K,[H]:G}=P;return!(K<=G)}const T=g.current&&N(!0),L=m.current&&N(!1);function z(B){const V=(B?v:y).current;if(!V)return;const H=V.parentElement;if(!(B?T:L)){H.style.display="none";return}const{scrollPositionName:G,scrollRangeName:te,clientRangeName:ne,positionStyleName:ge,rangeStyleName:se,cornerStyleName:he}=B?wm:Tm,{[G]:fe,[te]:Ce,[ne]:Q}=P,X=(B?L:T)?f:0,de=Math.min(3,(Q-X)/4),ae=Q-de*2-X,xe=Math.max(Math.min(ae/2,16),Q/Ce*ae);V.style[se]=`${xe}px`;const qe=(ae-xe)/(Ce-Q),Pe=qe*fe+de;V.style[ge]=`${Pe}px`,H.style[he]=`${X}px`,H.style.display="block",S[B?"horizontal":"vertical"]={scale:qe,position:Pe,range:xe}}g.current&&z(!0),m.current&&z(!1)},[]),_=p.useMemo(()=>{if(window.ResizeObserver)return new window.ResizeObserver(w)},[w]),E=p.useCallback(P=>(_==null||_.observe(P),()=>{_==null||_.unobserve(P)}),[_]),[M,$]=kc(P=>{const N=s==null?void 0:s.ref,T=typeof N=="function"?N:N&&(z=>{N.current=z});T==null||T(P);const L=E(P);return()=>{L(),T==null||T(null)}},[]),[D]=kc(E,[]);function k(P){var N;if(w(),a==null||a(P),(N=s==null?void 0:s.onScroll)===null||N===void 0||N.call(s,P),i){const T=P.currentTarget;T.scrollTop&&T.scrollTop>=T.scrollHeight-T.clientHeight&&i("vertical"),T.scrollLeft&&T.scrollLeft>=T.scrollWidth-T.clientWidth&&i("horizontal")}}function R(P){const N=T=>{const L=$.current;if(!L)return;T.preventDefault();let{deltaX:z,deltaY:B}=T;Math.abs(z)>Math.abs(B)?B=0:z=0,L.scrollBy(z,B)};return P.addEventListener("wheel",N,{passive:!1}),()=>{P.removeEventListener("wheel",N)}}const[O]=kc(R,[]),[I]=kc(R,[]);function A(P){function N(z){const B=b.current,V=$.current,H=z.currentTarget,K=H.parentElement;if(!B||!V||!H||!K)return;const{scrollPositionName:G}=P?wm:Tm,te=V[G];[B,H,K].forEach(ne=>{ne.classList.add(Fe.active)}),_B(z,{threshold:0,onMove({deltaX:ne,deltaY:ge}){const se=P?ne:ge,{scale:he}=P?S.horizontal:S.vertical;V[G]=te+se/he},onEnd(){[B,H,K].forEach(ne=>{ne.classList.remove(Fe.active)})}})}function T(z){if(z.target!==z.currentTarget)return;const B=$.current;if(!B)return;const{position:V,range:H,scale:K}=P?S.horizontal:S.vertical,G=z.currentTarget.getBoundingClientRect(),te=(P?z.clientX-G.left:z.clientY-G.top)>V+H/2?1:-1,ne=H/K;P$(B,{[P?"deltaX":"deltaY"]:te*Math.max(ne*.8,ne-32),allowUserInterrupt:!0,animated:!0,animationDuration:100}).catch(()=>{})}const L=P?Fe.horizontal:Fe.vertical;return U.createElement("div",{className:Be(Fe.track,L),"aria-hidden":!0,ref:P?I:O,key:P?"horizontal":"vertical",onMouseDown:T},U.createElement("div",{className:Be(Fe.thumb,L),ref:P?v:y,onMouseDown:N}))}return U.createElement(tt,Object.assign({},u,{className:Be(r,Fe.root),ref:C}),U.createElement(tt,Object.assign({},s,{className:Be(s==null?void 0:s.className,Fe.scroller,{[Fe.horizontal]:d,[Fe.vertical]:h}),onScroll:k,ref:M}),U.createElement("div",{className:Fe.content,ref:D},o)),d?A(!0):null,h?A(!1):null)}),AB=Ee(OB)(e=>{const{theme:t}=e;return TB(t)});function RB(e){var t;const n=Pc(e),{typography:r,zIndex:o,shadow:i}=(t=e==null?void 0:e.zoomUI)!==null&&t!==void 0?t:Ur();return{zIndex:o.Dialog,background:n.bg.default,fontFamily:r.fontFamily,width:"448px",padding:"24px",margin:"60px",borderRadius:"12px",backdropColor:n.underlay.dark,scrollSplitColor:n.border.subtle.neutral,shadow:i.md,title:{color:n.text.stronger.neutral,minHeight:r.lineHeight.display3,paddingBottom:"16px",lineHeight:r.lineHeight.display3,fontSize:r.fontSize.display3,fontWeight:r.fontWeight.display3},content:{color:n.text.stronger.neutral,minHeight:r.lineHeight.body,lineHeight:r.lineHeight.body,fontSize:r.fontSize.body,fontWeight:r.fontWeight.body}}}const _r="ui-Dialog",Me={root:`${_r}-root-${Jn()}`,container:`${_r}-container-${Jn()}`,backdrop:`${_r}-backdrop-${Jn()}`,paperRoot:`${_r}-paper-root`,scrollAtTop:`${_r}-scroll-at-top`,scrollAtBottom:`${_r}-scroll-at-bottom`,titleRoot:`${_r}-title-root`,titleWithButton:`${_r}-title-with-button`,contentRoot:`${_r}-content-root`,content:`${_r}-content`,footerRoot:`${_r}-footer-root`,closeIcon:`${_r}-closeIcon`};function PB(e){var t;const{theme:n,scroll:r,width:o}=e,i=RB(n),[s,a]=Ti({componentName:"Dialog",theme:n,dynamicToken:i});return{[`&.${Me.root}`]:{zIndex:a(s.zIndex)},[`.${Me.container}`]:{[`>.${Me.paperRoot}`]:{"--dialog-margin":a(s.margin),fontFamily:(t=n==null?void 0:n.typography)===null||t===void 0?void 0:t.fontFamily,boxSizing:"border-box",width:o??a(s.width),maxWidth:"none",margin:"var(--dialog-margin)",maxHeight:r==="body"?"none":"calc(100vh - var(--dialog-margin) * 2)",borderRadius:a(s.borderRadius),background:a(s.background),boxShadow:a(s.shadow)},[`.${Me.titleRoot}`]:{padding:a(s.padding),paddingBottom:a(s.title.paddingBottom),color:a(s.title.color),minHeight:a(s.title.minHeight),lineHeight:a(s.title.lineHeight),fontSize:a(s.title.fontSize),fontWeight:a(s.title.fontWeight),position:"relative",zIndex:1,background:a(s.background),boxShadow:`inset 0 -1px ${a(s.scrollSplitColor)}`},[`.${Me.scrollAtTop}& .${Me.titleRoot}`]:{background:"transparent",boxShadow:"none"},[`.${Me.titleWithButton}`]:{paddingRight:"52px"},[`.${Me.contentRoot}`]:{padding:0,flex:1,color:a(s.content.color),minHeight:a(s.content.minHeight),lineHeight:a(s.content.lineHeight),fontSize:a(s.content.fontSize),fontWeight:a(s.content.fontWeight),marginBottom:"-4px",overflow:"hidden",[`.${Me.content}`]:{padding:a(s.padding),paddingBottom:"4px"},"&:last-child":{marginBottom:0,[`.${Me.content}`]:{paddingBottom:a(s.padding)}}},[`.${Me.titleRoot} ~ .${Me.contentRoot}`]:{marginTop:"-4px",[`.${Me.content}`]:{paddingTop:"4px"}},[`.${Me.footerRoot}`]:{padding:a(s.padding),zIndex:1,background:a(s.background),boxShadow:`inset 0 1px ${a(s.scrollSplitColor)}`},[`.${Me.scrollAtBottom}& .${Me.footerRoot}`]:{background:"transparent",boxShadow:"none"},[`.${Me.closeIcon}`]:{position:"absolute",right:a(s.padding),top:a(s.padding),zIndex:2}},[`.${Me.backdrop}`]:{background:a(s.backdropColor)}}}var Qw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NB=e=>{const{children:t,open:n,className:r,style:o,onClose:i,TransitionComponent:s,scroll:a,autoFocus:l=!0,titleLabel:c}=e,u=Qw(e,["children","open","className","style","onClose","TransitionComponent","scroll","autoFocus","titleLabel"]),f=p.useRef(!0);function d(h){if(l&&f.current&&h.target.classList.contains(Me.container)){f.current=!1;const g=Nc(h.target);g&&jw(g,m=>m===h.target)&&g.focus()}}return p.useEffect(()=>{n||(f.current=!0)},[n]),U.createElement(m1,Object.assign({open:n,className:r,style:o,onClose:i,TransitionComponent:s,scroll:a,classes:{container:Me.container},PaperProps:{classes:{root:Me.paperRoot},"aria-label":c,"aria-labelledby":void 0},componentsProps:{backdrop:{className:Me.backdrop}},onFocus:d},u),t)},kB=U.forwardRef((e,t)=>U.createElement(Rf,Object.assign({ref:t},e))),e5=e=>{const{t}=vm("Shared"),{open:n=!0,className:r,zIndex:o,sx:i,width:s,title:a,content:l,children:c,footer:u,cancelText:f=t("cancel"),okText:d=t("ok"),onBackdropClick:h,onEscapeKeyDown:g,onOk:m,onCancel:b,autoFocusFooter:y,reverseButtons:v=!1,okButtonProps:C,cancelButtonProps:S,closable:w=!1,scroll:_,closeButtonProps:E,contentProps:M,titleProps:$,footerProps:D}=e,k=Qw(e,["open","className","zIndex","sx","width","title","content","children","footer","cancelText","okText","onBackdropClick","onEscapeKeyDown","onOk","onCancel","autoFocusFooter","reverseButtons","okButtonProps","cancelButtonProps","closable","scroll","closeButtonProps","contentProps","titleProps","footerProps"]),R=(B,V)=>{B&&V==="backdropClick"&&(h==null||h()),B&&V==="escapeKeyDown"&&(g==null||g())},O=[U.createElement(op,Object.assign({key:0,type:"secondary",onClick:b,"aria-label":typeof f=="string"?f:t("cancel")},S),f),U.createElement(op,Object.assign({key:1,onClick:m,autoFocus:y===!0,"aria-label":typeof d=="string"?d:t("ok")},C),d)];v&&O.reverse();const I=p.useRef(null),[A,P]=p.useState(!0),[N,T]=p.useState(!0),L=p.useCallback(()=>{const B=I.current;if(!B)return;const{scrollHeight:V,scrollTop:H,clientHeight:K}=B;P(H<=0),T(H+K>=V)},[]),[z]=kc(B=>{const V=window.ResizeObserver&&new window.ResizeObserver(L);return V==null||V.observe(B),L(),()=>{V==null||V.disconnect()}},[L]);return U.createElement(NB,Object.assign({className:Be(Me.root,r,{[Me.scrollAtTop]:A,[Me.scrollAtBottom]:N}),scroll:_,open:n,style:{zIndex:o},sx:[B=>PB({theme:B,scroll:_,width:s}),...Array.isArray(i)?i:[i]],onClose:R,TransitionComponent:kB,titleLabel:typeof a=="string"?a:void 0},k),a&&U.createElement(Ox,Object.assign({classes:{root:Be(Me.titleRoot,{[Me.titleWithButton]:w})}},$),a),w&&U.createElement(Xn,Object.assign({className:Me.closeIcon,onClick:b,variant:"icon",type:"tertiary","aria-label":t("close"),size:"small"},E),U.createElement(E$,null)),l??c?U.createElement(AB,Object.assign({component:g1},M,{classes:{root:Me.contentRoot},ref:z,scrollerProps:{ref:I},onScroll:L}),U.createElement("div",{className:Me.content},l,c)):null,u??u===null?u&&U.createElement(kf,Object.assign({classes:{root:Me.footerRoot}},D),u):U.createElement(kf,Object.assign({classes:{root:Me.footerRoot}},D),O.map(B=>B)))},_m=Object.assign({},yr);function t5(e){const t=_m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&typeof t=="object"&&(t.usingClientEntryPoint=e)}function n5(e,t){if(Number((yr.version||"").split(".")[0])>=18&&_m.createRoot){t5(!0);const n=_m.createRoot(t);return t5(!1),n.render(e),{unmount(){n.unmount()}}}return yr.render(e,t),{unmount(){yr.unmountComponentAtNode(t)}}}const Im=[],sp=Im;function MB(){for(;Im.length;){const e=Im.pop();e&&typeof e=="function"&&e()}}var r5=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const DB={escapeKeyDownClosable:!0,backdropClickClosable:!0},LB=U.forwardRef((e,t)=>{const[n,r]=p.useState(!0),[o,i]=p.useState(e);p.useImperativeHandle(t,()=>({close:()=>{r(!1)},open:()=>{r(!0)},update:l=>{i(Object.assign(Object.assign({},o),l))}}));const s=Rc(o,["open","onOk","onCancel","onBackdropClick","onEscapeKeyDown","escapeKeyDownClosable","backdropClickClosable"]);return U.createElement(zo,null,U.createElement(e5,Object.assign({},s,{open:n,onOk:()=>r5(void 0,void 0,void 0,function*(){var a;yield(a=o==null?void 0:o.onOk)===null||a===void 0?void 0:a.call(o),r(!1)}),onCancel:()=>r5(void 0,void 0,void 0,function*(){var a;yield(a=o==null?void 0:o.onCancel)===null||a===void 0?void 0:a.call(o),r(!1)}),onBackdropClick:()=>{var a;o.backdropClickClosable&&((a=o==null?void 0:o.onCancel)===null||a===void 0||a.call(o),r(!1))},onEscapeKeyDown:()=>{var a;o.escapeKeyDownClosable&&((a=o==null?void 0:o.onCancel)===null||a===void 0||a.call(o),r(!1))}})))});function FB(e){const t=Object.assign(Object.assign({},e),{open:!0});let n=document.createDocumentFragment(),r=!1;const o=U.createRef();let i=null;function s(f){const d=Object.assign(Object.assign({},DB),f);n&&(i=n5(U.createElement(LB,Object.assign({},d,{ref:o})),n))}function a(){var f;if(r){console.error("Can\'t destroy this dialog, because this confirm dialog has been destroyed!");return}(f=o.current)===null||f===void 0||f.close(),i&&i.unmount(),n=null,i=null,r=!0;for(let d=0;d<sp.length;d+=1)if(sp[d]===a){sp.splice(d,1);break}r=!0}function l(){var f;if(r){console.error("Can\'t close this dialog, because this confirm dialog has been destroyed!");return}(f=o.current)===null||f===void 0||f.close()}function c(){var f;if(r){console.error("Can\'t open this dialog, because this confirm dialog has been destroyed!");return}(f=o.current)===null||f===void 0||f.open()}function u(f){var d;if(r){console.error("Can\'t update this dialog, because this confirm dialog has been destroyed!");return}(d=o.current)===null||d===void 0||d.update(f)}return sp.push(a),s(t),{destroy:a,open:c,close:l,update:u}}const Om=e5;Om.confirm=FB,Om.destroyAll=MB;const o5=Om;function i5(e){var t;const n=Pc(e),{typography:r,shadow:o,zIndex:i}=(t=e==null?void 0:e.zoomUI)!==null&&t!==void 0?t:Ur();return{zIndex:i.Toast,fontFamily:r.fontFamily,minHeight:"52px",maxWidth:"400px",background:n.bg.default,color:n.text.stronger.neutral,linkColor:n.text.primary,borderColor:n.border.subtle.neutral,iconColor:{info:n.icon.primary,success:n.icon.success,error:n.icon.error,warn:n.icon.warning},boxShadow:o.md}}const Am="Toast",kn=`ui-${Am}`,Ye={container:`${kn}-container-${Jn()}`,component:`${kn}-component-${Jn()}`,icon:`${kn}-icon`,iconWrapper:`${kn}-icon-wrapper`,iconInfo:`${kn}-icon-info`,iconSuccess:`${kn}-icon-success`,iconWarn:`${kn}-icon-warn`,iconError:`${kn}-icon-error`,main:`${kn}-main`,title:`${kn}-title`,content:`${kn}-content`,close:`${kn}-close`,action:`${kn}-action`,list:`${kn}-list-${Jn()}`};function $B(e){const{theme:t}=e,n=i5(t),[r,o]=Ti({componentName:Am,theme:t,dynamicToken:n});return{[`&.${Ye.component}`]:{fontFamily:o(r.fontFamily),display:"flex",boxSizing:"border-box",minHeight:o(r.minHeight),maxWidth:o(r.maxWidth),padding:"16px",paddingLeft:r.minHeight,paddingRight:"21px",border:`0.5px solid ${o(r.borderColor)}`,borderRadius:"8px",boxShadow:o(r.boxShadow),background:o(r.background),position:"relative",flexDirection:"column",[`.${Ye.iconWrapper}`]:{position:"absolute",top:0,left:0,width:o(r.minHeight),height:o(r.minHeight),display:"flex",justifyContent:"center",alignItems:"center",marginRight:"8px"},[`.${Ye.icon}`]:{fontSize:"20px",height:"20px",[`&.${Ye.iconInfo}`]:{color:o(r.iconColor.info)},[`&.${Ye.iconSuccess}`]:{color:o(r.iconColor.success)},[`&.${Ye.iconWarn}`]:{color:o(r.iconColor.warn)},[`&.${Ye.iconError}`]:{color:o(r.iconColor.error)}},[`.${Ye.main}`]:{display:"flex",flexDirection:"column",marginLeft:"-8px"},[`.${Ye.title}`]:{fontSize:"14px",color:o(r.color),lineHeight:"20px",fontWeight:"500",textAlign:"left",boxSizing:"border-box",paddingRight:"24px",marginBottom:"4px"},[`.${Ye.content}`]:{fontSize:"14px",color:o(r.color),lineHeight:"20px",margin:0,paddingRight:"24px",fontWeight:"400",textAlign:"left",boxSizing:"border-box",letterSpacing:"-0.15px",a:{color:o(r.linkColor),margin:"0 4px"}},[`.${Ye.close}`]:{position:"absolute",right:"10px",top:"10px"},[`.${Ye.action}`]:{display:"flex",justifyContent:"flex-end",marginTop:"16px",">button":{marginRight:"8px","&:last-child":{marginRight:0}}}}}}function BB(e){const{theme:t}=e,n=i5(t),[r,o]=Ti({componentName:Am,theme:t,dynamicToken:n}),{zIndex:i,placement:s}=e.config,a={zIndex:i??o(r.zIndex),position:"fixed",top:0,left:"50%",maxHeight:"100%",overflow:"auto",paddingTop:0,boxSizing:"border-box",transform:"translateX(-50%)",">*":{padding:"0 20px",paddingBottom:"20px",boxSizing:"border-box","&:first-of-type":{paddingTop:"20px"},"&:last-of-type":{paddingBottom:"30px"}}};return s==="top-start"?(a.left="0",a.transform="translateX(20px)"):s==="top-end"?(a.left="unset",a.right="0",a.transform="translateX(-20px)"):s==="bottom"?(a.top="unset",a.bottom=0):s==="bottom-start"?(a.top="unset",a.bottom=0,a.right="unset",a.left=0,a.transform="translateX(20px)"):s==="bottom-end"&&(a.top="unset",a.bottom=0,a.right=0,a.left="unset",a.transform="translateX(-20px)"),a}var UB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const zB={type:"info"};function jB(e){const{type:t,icon:n}=e;let r=()=>U.createElement(_$,{className:Be(Ye.icon,Ye.iconInfo)});return n?r=()=>U.createElement(U.Fragment,null,n):t==="success"?r=()=>U.createElement(C$,{className:Be(Ye.icon,Ye.iconSuccess)}):t==="warn"||t==="warning"?r=()=>U.createElement(v$,{className:Be(Ye.icon,Ye.iconWarn)}):t==="error"&&(r=()=>U.createElement(w$,{className:Be(Ye.icon,Ye.iconError)})),U.createElement(r,null)}const WB=e=>{const{t}=vm("Shared"),n=Object.assign(Object.assign({},zB),e),{className:r,toastKey:o,title:i,type:s,content:a,closable:l,actionable:c,onClickClose:u,cancelText:f=t("cancel"),okText:d=t("ok"),onCancel:h,onOk:g,reverseButtons:m,closeButtonProps:b,titleProps:y,contentProps:v,okButtonProps:C,cancelButtonProps:S,rootProps:w}=n,_=UB(n,["className","toastKey","title","type","content","closable","actionable","onClickClose","cancelText","okText","onCancel","onOk","reverseButtons","closeButtonProps","titleProps","contentProps","okButtonProps","cancelButtonProps","rootProps"]);function E(){u==null||u(o)}const M=[U.createElement(op,Object.assign({key:0,type:"secondary",onClick:h,afterAction:E,"aria-label":t("cancel")},S),f),U.createElement(op,Object.assign({key:1,onClick:g,afterAction:E,"aria-label":t("ok")},C),d)];return m&&M.reverse(),U.createElement(tt,Object.assign({},_,{role:c?"alertdialog":"alert",className:Be(Ye.component,r),sx:[$=>$B({theme:$,type:s})]},w),U.createElement(tt,{className:Ye.iconWrapper},jB(e)),U.createElement(tt,{className:Ye.main},i&&U.createElement(tt,Object.assign({className:Ye.title},y),i),a&&U.createElement(tt,Object.assign({className:Ye.content},v),a)),(l??c)&&U.createElement(Xn,Object.assign({className:Ye.close,variant:"icon",type:"tertiary",onClick:()=>{u==null||u(o)},"aria-label":t("close")},b),U.createElement(zw,{size:20})),c&&U.createElement(tt,{className:Ye.action},M.map($=>$)))};function VB(e){var t,n,r,o;let i="center";return typeof(e==null?void 0:e.placement)=="string"&&(!((n=(t=e.placement).endsWith)===null||n===void 0)&&n.call(t,"-start")?i="left":!((o=(r=e.placement).endsWith)===null||o===void 0)&&o.call(r,"-end")&&(i="right")),i}const HB=U.forwardRef((e,t)=>{const{defaultConfig:n}=e,[r,o]=p.useState(n),[i,s]=p.useState([]),a=(c,u)=>{const f=[];for(let d=0;d<c.length;d+=1){const h=c[d];h!=null&&h.isHidden||f.push(h)}return u.maxCount!==void 0&&u.maxCount>0&&f.length+1>=u.maxCount&&f.splice(0,f.length-u.maxCount+1),f};p.useImperativeHandle(t,()=>({updateConfig(u){o(Object.assign(Object.assign({},r),u))},appendToasts(u){const f=u.map(h=>Object.assign(Object.assign({},h),{isHidden:!1,canBeDeleted:!1}));let d=a(i,r);d=d.concat(f),s([...d])},closeToast(u){var f,d,h,g;let m=-1;for(let b=0;b<i.length;b+=1)if(((f=i[b])===null||f===void 0?void 0:f.key)===u){m=b;break}if(m>=0){if(!((d=i[m])===null||d===void 0)&&d.isHidden)return;i[m].isHidden=!0,(g=(h=i[m])===null||h===void 0?void 0:h.onClose)===null||g===void 0||g.call(h),s([...i])}},destroyToast(u){var f;let d=-1;for(let h=0;h<i.length;h+=1)if(((f=i[h])===null||f===void 0?void 0:f.key)===u){d=h;break}d>=0&&(i.splice(d,1),s([...i]))},updateToast(u,f){var d;const h=Rc(f,["key","duration"]);for(let g=0;g<i.length;g+=1)if(((d=i[g])===null||d===void 0?void 0:d.key)===u){i[g]=Object.assign(Object.assign(Object.assign({},i[g]),h),{isHidden:!1,canBeDeleted:!1});break}s([...i])}}),[i,r]);const l=c=>{var u;let f=-1;for(let d=0;d<i.length;d+=1)if(((u=i[d])===null||u===void 0?void 0:u.key)===c){f=d;break}f>=0&&(i[f].canBeDeleted=!0,s([...i]))};return U.createElement(tt,{className:Ye.list,sx:[c=>BB({config:r,theme:c})]},i.map(c=>{const{key:u,className:f,type:d,isHidden:h,canBeDeleted:g,closable:m,actionable:b,onCancel:y,onOk:v,cancelText:C,okText:S,reverseButtons:w,okButtonProps:_,cancelButtonProps:E,icon:M,closeButtonProps:$,titleProps:D,contentProps:k,rootProps:R}=c;return g?null:U.createElement(tt,{key:u,style:{textAlign:VB(r)}},U.createElement(Pf,{in:!h,timeout:500,onExited:()=>{l(u)}},U.createElement(tt,{style:{position:"relative",display:"inline-block"}},U.createElement(WB,{toastKey:u,className:f,type:d,title:c.title,content:c.content,closable:m,icon:M,onClickClose:O=>{var I,A;(A=(I=t==null?void 0:t.current)===null||I===void 0?void 0:I.closeToast)===null||A===void 0||A.call(I,O)},actionable:b,onCancel:y,onOk:v,cancelText:C,okText:S,reverseButtons:w,okButtonProps:_,cancelButtonProps:E,closeButtonProps:$,titleProps:D,contentProps:k,rootProps:R}))))}))});function GB(){return{placement:"top",duration:3e3,zIndex:Ur().zIndex.Toast,maxCount:8}}class YB{constructor(){this.internalConfig=GB(),this.container=null,this.mountStage=null,this.waitingQueue=[],this.ref=U.createRef()}createOpen(t,n,r,o){const i=this.internalConfig;let s=null,a={type:t,zIndex:i.zIndex,duration:i.duration};typeof n=="string"?(a=Object.assign(Object.assign({},a),{content:n,onClose:o}),r!==void 0&&r>=0&&(a.duration=r)):a=Object.assign(Object.assign({},a),n),a!=null&&a.actionable&&(a.duration=0);const l=Object.assign({key:Jn()},a),c=()=>{var g;const m=[];if(this.waitingQueue.length>0)for(;this.waitingQueue.length>0;){const b=this.waitingQueue.shift();b&&m.push(b)}(g=this.ref.current)===null||g===void 0||g.appendToasts(m)};this.mountStage===null&&(this.mountStage="mounting",this.mount().then(()=>{c(),this.mountStage="mounted"}).catch(g=>{console.error(g)})),this.waitingQueue.push(l),this.mountStage==="mounted"&&c();const u=()=>{l.duration!==void 0&&l.duration>0&&(s=window.setTimeout(()=>{var g,m,b;(b=(m=(g=this===null||this===void 0?void 0:this.ref)===null||g===void 0?void 0:g.current)===null||m===void 0?void 0:m.destroyToast)===null||b===void 0||b.call(m,l.key),s=null},l.duration))};return u(),{destroy:()=>{this.destroy(l.key)},close:()=>{this.close(l.key)},update:g=>{var m,b,y;s!==null&&clearTimeout(s),(y=(b=(m=this===null||this===void 0?void 0:this.ref)===null||m===void 0?void 0:m.current)===null||b===void 0?void 0:b.updateToast)===null||y===void 0||y.call(b,l.key,g),u()}}}mount(){this.container||(this.container=document.createElement("div")),document.body.appendChild(this.container);const{internalConfig:t,ref:n}=this;return new Promise(r=>{const o=()=>(p.useEffect(()=>{r()},[]),U.createElement(zo,null,U.createElement(HB,{ref:n,defaultConfig:t})));n5(U.createElement(o,null),this.container)})}info(t,n,r){return this.createOpen("info",t,n,r)}success(t,n,r){return this.createOpen("success",t,n,r)}error(t,n,r){return this.createOpen("error",t,n,r)}warn(t,n,r){return this.createOpen("warn",t,n,r)}warning(t,n,r){return this.createOpen("warning",t,n,r)}destroy(t){var n,r,o;(o=(r=(n=this.ref)===null||n===void 0?void 0:n.current)===null||r===void 0?void 0:r.destroyToast)===null||o===void 0||o.call(r,t)}close(t){var n,r,o;(o=(r=(n=this.ref)===null||n===void 0?void 0:n.current)===null||r===void 0?void 0:r.closeToast)===null||o===void 0||o.call(r,t)}config(t){var n;this.internalConfig=Object.assign(Object.assign({},this.internalConfig),t),this.mountStage==="mounted"&&((n=this.ref.current)===null||n===void 0||n.updateConfig(Object.assign({},this.internalConfig)))}}function s5(e){const t=new YB;return e&&t.config(e),{info:t.info.bind(t),success:t.success.bind(t),error:t.error.bind(t),warn:t.warn.bind(t),warning:t.warning.bind(t),destroy:t.destroy.bind(t),close:t.close.bind(t),config:t.config.bind(t)}}const KB=s5(),Mc=Object.assign({create:s5},KB);var Cs=(e=>(e.SESSION_STARTED="session_started",e.SESSION_INITED="session_inited",e.SESSION_PAUSED="session_paused",e.SESSION_RESUMED="session_resumed",e.SESSION_ENDED="session_ended",e.SESSION_LEFT="session_left",e.SESSION_CANCELING="session_canceling",e.SESSION_CONNECTING="session_connecting",e.SESSION_RECONNECTING="session_reconnecting",e.SESSION_PERSISTING="session_persisting",e.PARTICIPANT_CHANGED="participant_changed",e.AGENT_JOINED="agent_joined",e.AGENT_LEFT="agent_left",e.AGENT_DISCONNECTED="agent_disconnected",e.CUSTOMER_JOINED="customer_joined",e.CUSTOMER_LEFT="customer_left",e.CUSTOMER_DISCONNECTED="customer_disconnected",e.SESSION_ERROR="session_error",e.REMOTE_CONTROL_STARTED="remote_control_started",e.REMOTE_CONTROL_STATUS="remote_control_status",e.REMOTE_CONTROL_REQUEST="remote_control_request",e.REMOTE_CONTROL_RESPONSE="remote_control_response",e.REMOTE_CONTROL_GIVE_UP="remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="remote_control_take_back",e.REMOTE_CONTROL_REJECT="remote_control_reject",e.REMOTE_CONTROL_CANCEL="remote_control_cancel",e.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_resumed",e.ORIGIN_UPDATED="origin_updated",e.START_REPLAY="start_replay",e.CURRENT_USER_TRANSFER="current_user_transfer",e.CUSTOMER_FOCUS_LOST="customer_focus_lost",e.CUSTOMER_TRANSFERRED="customer_transferred",e))(Cs||{}),gn=(e=>(e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk",e))(gn||{});const a5=2147483647;var Ir=(e=>(e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded",e))(Ir||{}),Rm=(e=>(e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e))(Rm||{}),Ba=(e=>(e.NOT_CREATED="session_not_created",e.RECOVERABLE="session_recoverable",e.STARTED="session_started",e.CONNECT_FAILED="connect_failed",e.CONNECTING="session_connecting",e.CANCELING="session_canceling",e.RECONNECTING="session_reconnecting",e.CAN_PERSIST="session_can_persist",e.PERSISTING="session_persisting",e))(Ba||{});const Dc="co-browsing-replay-iframe",ap="en-US",Wo="zcb-el-",so="CBS-internal-block";var l5=(e=>(e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session",e))(l5||{}),c5=(e=>(e.CUSTOMER_END_COBROWSE="Customer has left the Cobrowse session.",e.AGENT_END_COBROWSE="Agent has left the Cobrowse session.",e.END_COBROWSE_CC="THE_COBROWSE_SESSION_HAS_BEEN_ENDED",e))(c5||{}),u5=(e=>(e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END",e))(u5||{}),d5=(e=>(e.RECONNECTING_SESSION="Reconnecting Cobrowse session...",e.CONNECTING_SESSION="Connecting to Cobrowse session...",e.GIVE_CONSUMER_CODE="Give the pairing code to your consumer to join:",e.COBROWSE_PIN_CODE="Cobrowse code",e.COBROWSE_PIN_CODE_TIPS="Please inform the following pin code to your support agent, your agent and you will browse this page together.",e.COBROWSE_PIN_CODE_TIPS_MOBILE="Please give this code to your agent.",e.GIVE_CONSUMER_CODE_CC="GIVE_CONSUMER_CODE",e.COBROWSE_PIN_CODE_ERROR_TITLE="Unable to generate pin code",e.COBROWSE_PIN_CODE_ERROR_TIPS="Unable to generate pin code. Please try again later.",e))(d5||{}),f5=(e=>(e.WAIT_CONSUMER="WAIT_CONSUMER",e))(f5||{}),Ss=(e=>(e.SESSION_TIMER="SESSION_TIMER",e.AUTO_END_SESSION="AUTO_END_SESSION",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="CONNECTING_TO_COBROWSE_SESSION",e))(Ss||{}),Lc=(e=>(e.RegisterUser="register-user",e.UnregisterUser="unregister-user",e.Position="position",e.RegisterCustomerCursorDOM="register-customer-dom",e.RegisterOtherAgentCursorDOM="register-other-agent-dom",e.UpdateCursorPositionLocal="update-cursor-position-local",e))(Lc||{}),p5=(e=>(e[e.RECORD_NOT_ENABLED=2e4]="RECORD_NOT_ENABLED",e[e.START_RECORD_UNAVAILABLE=20001]="START_RECORD_UNAVAILABLE",e[e.START_RECORD_INVALID_BODY=20002]="START_RECORD_INVALID_BODY",e[e.EXIST_RECORD_CONFLICT=20003]="EXIST_RECORD_CONFLICT",e[e.RECORD_OVERHEAD_CAPACITY=20004]="RECORD_OVERHEAD_CAPACITY",e[e.LEADER_NOT_JOINED=20005]="LEADER_NOT_JOINED",e[e.LEADER_DENIED=20006]="LEADER_DENIED",e[e.RECORD_ABORTED=20007]="RECORD_ABORTED",e[e.END_RECORD_UNAVAILABLE=21e3]="END_RECORD_UNAVAILABLE",e[e.END_RECORD_INVALID_BODY=21001]="END_RECORD_INVALID_BODY",e[e.RECORD_ALREADY_PAUSED=22e3]="RECORD_ALREADY_PAUSED",e[e.RECORD_ALREADY_RESUMED=23e3]="RECORD_ALREADY_RESUMED",e[e.NO_ACTIVE_RECORD=24e3]="NO_ACTIVE_RECORD",e[e.RECORD_IN_START_PROGRESS=24001]="RECORD_IN_START_PROGRESS",e[e.RECORD_IN_STOP_PROGRESS=24002]="RECORD_IN_STOP_PROGRESS",e[e.CHS_JWT_MISSING=25100]="CHS_JWT_MISSING",e[e.CHS_JWT_DECODE_FAILED=25101]="CHS_JWT_DECODE_FAILED",e[e.CHS_JWT_INVALID_PAYLOAD=25102]="CHS_JWT_INVALID_PAYLOAD",e[e.CHS_JWT_ISS_AUD_MISSING=25103]="CHS_JWT_ISS_AUD_MISSING",e[e.CHS_JWT_ISS_AUD_DENIED=25104]="CHS_JWT_ISS_AUD_DENIED",e[e.CHS_JWT_VERIFY_FAILED=25105]="CHS_JWT_VERIFY_FAILED",e[e.SESSION_ID_NOT_MATCH=25200]="SESSION_ID_NOT_MATCH",e[e.AID_IN_JWT_MISSING=25201]="AID_IN_JWT_MISSING",e[e.UID_IN_JWT_MISSING=25202]="UID_IN_JWT_MISSING",e[e.RECORD_ID_MISSING=25203]="RECORD_ID_MISSING",e[e.RECORD_TASK_NOT_EXIST=25204]="RECORD_TASK_NOT_EXIST",e[e.PAGE_CONTEXT_BOOTSTRAP_FAILED=26100]="PAGE_CONTEXT_BOOTSTRAP_FAILED",e[e.PAGE_CONTROLLER_INIT_FAILED=26101]="PAGE_CONTROLLER_INIT_FAILED",e[e.PAGE_LOAD_HTML_FAILED=26102]="PAGE_LOAD_HTML_FAILED",e[e.PAGE_INJECT_INIT_FAILED=26103]="PAGE_INJECT_INIT_FAILED",e[e.PAGE_INJECT_CONTEXT_FAILED=26104]="PAGE_INJECT_CONTEXT_FAILED",e[e.PAGE_START_FAILED=26105]="PAGE_START_FAILED",e[e.PAGE_STOP_FAILED=26106]="PAGE_STOP_FAILED",e[e.RECORDER_INIT_FAILED=26200]="RECORDER_INIT_FAILED",e[e.RECORDER_CDP_SESSION_START_FAILED=26201]="RECORDER_CDP_SESSION_START_FAILED",e[e.RECORDER_CDP_SESSION_STOP_FAILED=26202]="RECORDER_CDP_SESSION_STOP_FAILED",e[e.RECORDER_CDP_SESSION_ALREADY_DESTROYED=26203]="RECORDER_CDP_SESSION_ALREADY_DESTROYED",e[e.DISK_USAGE_FULL=26204]="DISK_USAGE_FULL",e[e.CONNECT_CHS_FAILED=26301]="CONNECT_CHS_FAILED",e[e.CONNECT_CHS_FAILOVER=26302]="CONNECT_CHS_FAILOVER",e[e.CONNECT_CHS_DESTROYED=26303]="CONNECT_CHS_DESTROYED",e[e.CONNECT_CHS_DISCONNECTED=26304]="CONNECT_CHS_DISCONNECTED",e[e.CONNECT_CHS_TIMEOUT=26305]="CONNECT_CHS_TIMEOUT",e[e.UDS_INIT_FAILED=26400]="UDS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_FAILED=26401]="UDS_SUB_PROCESS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_TIMEOUT=26402]="UDS_SUB_PROCESS_INIT_TIMEOUT",e[e.UDS_CLINET_INIT_FAILED=26403]="UDS_CLINET_INIT_FAILED",e[e.UDS_SERVER_INIT_FAILED=26404]="UDS_SERVER_INIT_FAILED",e[e.UDS_SERVER_LISTEN_FAILED=26405]="UDS_SERVER_LISTEN_FAILED",e[e.FILE_INIT_FAILED=26500]="FILE_INIT_FAILED",e[e.FILE_META_INIT_FAILED=26501]="FILE_META_INIT_FAILED",e[e.FILE_META_CLIP_INIT_FAILED=26502]="FILE_META_CLIP_INIT_FAILED",e[e.FILE_META_OPEN_FAILED=26503]="FILE_META_OPEN_FAILED",e[e.FILE_META_LOCK_FAILED=26504]="FILE_META_LOCK_FAILED",e[e.FILE_META_RELEASE_FAILED=26505]="FILE_META_RELEASE_FAILED",e[e.FILE_META_WRITE_FAILED=26506]="FILE_META_WRITE_FAILED",e[e.ZCB_WEB_NOT_AVAILABLE=26600]="ZCB_WEB_NOT_AVAILABLE",e[e.ZCB_CRS_NOT_AVAILABLE=26601]="ZCB_CRS_NOT_AVAILABLE",e[e.REDIS_GET_CLIP_SIZE_FAILED=26700]="REDIS_GET_CLIP_SIZE_FAILED",e[e.REDIS_SET_CLIP_SIZE_FAILED=26701]="REDIS_SET_CLIP_SIZE_FAILED",e[e.REDIS_GET_START_TIME_FAILED=26702]="REDIS_GET_START_TIME_FAILED",e[e.REDIS_SET_START_TIME_FAILED=26703]="REDIS_SET_START_TIME_FAILED",e[e.ASSETS_FETCH_FAILED=26800]="ASSETS_FETCH_FAILED",e[e.ASSETS_WRITE_FAILED=26801]="ASSETS_WRITE_FAILED",e))(p5||{});const ZB=8192;var JB=(e=>(e[e.WS_CONN_KEEPALIVE=0]="WS_CONN_KEEPALIVE",e[e.WS_CONN_VECTOR_DATA=1]="WS_CONN_VECTOR_DATA",e[e.WS_DOC_JSON_JOIN_RES=2|ZB]="WS_DOC_JSON_JOIN_RES",e))(JB||{}),lp=(e=>(e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.END_ROOM="END_ROOM",e.LEAVE_ROOM="LEAVE_ROOM",e.INTERACTION_BINARY="INTERACTION_BINARY",e.INTERACTION="INTERACTION",e.FULL_SNAPSHOT_REQUEST="FULL_SNAPSHOT_REQUEST",e.GET_BINARY="GET_BINARY",e.USER_BE_HOLD_STATUS_CHANGE="USER_BE_HOLD_STATUS_CHANGE",e.USER_ROSTER="USER_ROSTER",e.ROOM_ROSTER="ROOM_ROSTER",e.REMOTE_CONTROL_STATUS="REMOTE_CONTROL_STATUS",e.REMOTE_CONTROL_REQUEST="REMOTE_CONTROL_REQUEST",e.REMOTE_CONTROL_RESPONSE="REMOTE_CONTROL_RESPONSE",e.REMOTE_CONTROL_GIVE_UP="REMOTE_CONTROL_GIVE_UP",e.REMOTE_CONTROL_TAKE_BACK="REMOTE_CONTROL_TAKE_BACK",e.REMOTE_CONTROL_REJECT="REMOTE_CONTROL_REJECT",e.REMOTE_CONTROL_CANCEL="REMOTE_CONTROL_CANCEL",e.START_RECORD="START_RECORD",e.STOP_RECORD="STOP_RECORD",e.PAUSE_RECORD="PAUSE_RECORD",e.RESUME_RECORD="RESUME_RECORD",e.START_RECORD_RESPONSE="START_RECORD_RESPONSE",e.STOP_RECORD_RESPONSE="STOP_RECORD_RESPONSE",e.PAUSE_RECORD_RESPONSE="PAUSE_RECORD_RESPONSE",e.RESUME_RECORD_RESPONSE="RESUME_RECORD_RESPONSE",e.RECORD_APPROVE_REQUEST="RECORD_APPROVE_REQUEST",e.RECORD_APPROVE_RESPONSE="RECORD_APPROVE_RESPONSE",e.ANNOTATION="ANNOTATION",e.FLYING_CURSOR="FLYING_CURSOR",e.LEADER_PAGE_VISIBILITY="LEADER_PAGE_VISIBILITY",e.RTT="RTT",e.NTP="NTP",e))(lp||{});Lc.RegisterCustomerCursorDOM+"",Lc.UnregisterUser+"",Lc.RegisterOtherAgentCursorDOM+"",Lc.UpdateCursorPositionLocal+"";var mt=(e=>(e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.AUTH_USER_ID_VERIFY_FAILED=40203]="AUTH_USER_ID_VERIFY_FAILED",e[e.AUTH_USER_ID_NO_EXIST=40204]="AUTH_USER_ID_NO_EXIST",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.USER_CONFLICT=40213]="USER_CONFLICT",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.FOLLOWER_CONFLICT=40215]="FOLLOWER_CONFLICT",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.SERVER_RESTARTED=40400]="SERVER_RESTARTED",e[e.WSSGW_REMOVE_NODE=40401]="WSSGW_REMOVE_NODE",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.NO_OTHER_ACTIVE_USER=42e3]="NO_OTHER_ACTIVE_USER",e[e.RECORD_ALREADY_ENDED=42001]="RECORD_ALREADY_ENDED",e[e.RECORD_START_FAILED=42002]="RECORD_START_FAILED",e))(mt||{}),Ua=(e=>(e[e.NONE=0]="NONE",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.END=2]="END",e[e.REQUESTING=3]="REQUESTING",e[e.REQUESTING_CANCELLED=4]="REQUESTING_CANCELLED",e))(Ua||{}),Pm=(e=>(e[e.ALL_PING_FAILED=10001]="ALL_PING_FAILED",e[e.REFRESH_PIN_CODE_FAILED=10002]="REFRESH_PIN_CODE_FAILED",e[e.EMPTY_PING_LIST=10003]="EMPTY_PING_LIST",e[e.SESSION_START_FAILED=10004]="SESSION_START_FAILED",e[e.SESSION_END_FAILED=10005]="SESSION_END_FAILED",e[e.SESSION_CREATE_FAILED=10006]="SESSION_CREATE_FAILED",e[e.PARTICIPANT_TYPE_ERROR=10007]="PARTICIPANT_TYPE_ERROR",e[e.CONNECT_SERVER_FAILED=10008]="CONNECT_SERVER_FAILED",e[e.CREATE_CHANNEL_FAILED=10009]="CREATE_CHANNEL_FAILED",e[e.SESSION_CONNECTING=10010]="SESSION_CONNECTING",e[e.SESSION_ID_NOT_FOUND=10011]="SESSION_ID_NOT_FOUND",e[e.SESSION_PERSISTING=10014]="SESSION_PERSISTING",e[e.SOCKET_RECONNECT_FAILED=10020]="SOCKET_RECONNECT_FAILED",e[e.SOCKET_FAIL_OVER_FAILED=10021]="SOCKET_FAIL_OVER_FAILED",e[e.DUPLICATE_SESSION=10023]="DUPLICATE_SESSION",e[e.FRAME_LEVEL_NOT_READY=10025]="FRAME_LEVEL_NOT_READY",e[e.SDK_VERSION_NOT_MATCH=10026]="SDK_VERSION_NOT_MATCH",e[e.SESSION_CANCELING=10027]="SESSION_CANCELING",e[e.UNKNOWN_SERVICE_EXCEPTION=19999]="UNKNOWN_SERVICE_EXCEPTION",e))(Pm||{}),Nm=(e=>(e[e.CONNECT_TIMEOUT_FAILED=10012]="CONNECT_TIMEOUT_FAILED",e[e.OTHER_SIDE_RECONNECT_TIMEOUT_FAILED=10013]="OTHER_SIDE_RECONNECT_TIMEOUT_FAILED",e[e.USER_EXIT_BEFORE_SESSION=10022]="USER_EXIT_BEFORE_SESSION",e))(Nm||{});const Pt={END_ROOM:"The user actively clicked \'end\'.",LEAVE_ROOM:"normal",DISCONNECTED:"user disconnected",LEADER_CONFLICT:"customer already exist",FOLLOWER_CONFLICT:"agent already exist",AUTH_DB_QUERY_ERROR:"get auth from redis failed",AUTH_VERIFY_FAILED:"auth payload is denyed",AUTH_CONFLICT:"auth is already used",ROOM_ID_MISSING:"room id is invalid",ROOM_NOT_EXIST:"room not exist or create failed",ROOM_ADD_USER_FAILED:"room add new user failed",SERVER_RESTARTED:"server restarted",WSSGW_REMOVE_NODE:"wssgw node instance removed",DESTROY_DEACTIVE_ROOM:"The session ended automatically because there was only 1 user present for 3 minutes.",DESTROY_SLEEP_ROOM:"The session ended automatically due to no user activity in the session for 5 minutes.",USER_CONFLICT:"user conflict",META_DATA_INVALID:"meta data invalid",WSSGW_INSTANCE_NOT_FOUND:"wssgw instance not found",REACHED_LEADER_LIMIT:"the number of customers has reached the limit",REACHED_FOLLOWER_LIMIT:"the number of agents has reached the limit"},Ri={RECORD_START_FAILED:29e3,RECORD_STOP_FAILED:29001,RECORD_PAUSE_FAILED:29002,RECORD_RESUME_FAILED:29003};mt.DISCONNECTED+"",Pt.DISCONNECTED,mt.END_ROOM+"",Pt.END_ROOM,mt.LEAVE_ROOM+"",Pt.LEAVE_ROOM,mt.LEADER_CONFLICT+"",Pt.LEADER_CONFLICT,mt.FOLLOWER_CONFLICT+"",Pt.FOLLOWER_CONFLICT,mt.AUTH_DB_QUERY_ERROR+"",Pt.AUTH_DB_QUERY_ERROR,mt.AUTH_VERIFY_FAILED+"",Pt.AUTH_VERIFY_FAILED,mt.AUTH_CONFLICT+"",Pt.AUTH_CONFLICT,mt.ROOM_ID_MISSING+"",Pt.ROOM_ID_MISSING,mt.ROOM_NOT_EXIST+"",Pt.ROOM_NOT_EXIST,mt.ROOM_ADD_USER_FAILED+"",Pt.ROOM_ADD_USER_FAILED,mt.SERVER_RESTARTED+"",Pt.SERVER_RESTARTED,mt.WSSGW_REMOVE_NODE+"",Pt.WSSGW_REMOVE_NODE,mt.DESTROY_DEACTIVE_ROOM+"",Pt.DESTROY_DEACTIVE_ROOM,mt.DESTROY_SLEEP_ROOM+"",Pt.DESTROY_SLEEP_ROOM,mt.USER_CONFLICT+"",Pt.USER_CONFLICT,mt.META_DATA_INVALID+"",Pt.META_DATA_INVALID,mt.WSSGW_INSTANCE_NOT_FOUND+"",Pt.WSSGW_INSTANCE_NOT_FOUND,mt.REACHED_LEADER_LIMIT+"",Pt.REACHED_LEADER_LIMIT,mt.REACHED_FOLLOWER_LIMIT+"",Pt.REACHED_FOLLOWER_LIMIT;var km=(e=>(e[e.UNKNOWN=-1]="UNKNOWN",e[e.INVALID_TOKEN=124]="INVALID_TOKEN",e[e.NO_PERMISSION=125]="NO_PERMISSION",e[e.LOCKED=126]="LOCKED",e[e.INVALID_TOKEN_MAX=127]="INVALID_TOKEN_MAX",e[e.INVALID_TOKEN_3=129]="INVALID_TOKEN_3",e[e.INVALID_TOKEN_4=401]="INVALID_TOKEN_4",e[e.NETWORK_ERROR=10016]="NETWORK_ERROR",e[e.PROVIDE_DATA=30100]="PROVIDE_DATA",e[e.TOKEN_EXPIRED=30101]="TOKEN_EXPIRED",e[e.INVALID_BUSINESS_TYPE=30102]="INVALID_BUSINESS_TYPE",e[e.INVALID_RECORDING_ID=30103]="INVALID_RECORDING_ID",e[e.MISSING_FIELD=30104]="MISSING_FIELD",e[e.INVALID_SDK_CDN_URL=30108]="INVALID_SDK_CDN_URL",e[e.INACTIVE_SDK_VERSION=30109]="INACTIVE_SDK_VERSION",e[e.SEARCH_ERROR=30200]="SEARCH_ERROR",e[e.INVALID_BUSINESS_TYPE2=30201]="INVALID_BUSINESS_TYPE2",e[e.APPKEY_NOT_FOUND=30202]="APPKEY_NOT_FOUND",e[e.FILE_SERVER_ERROR=30203]="FILE_SERVER_ERROR",e[e.FILE_SERVICE_ERROR=30204]="FILE_SERVICE_ERROR",e[e.FILE_SERVICE_ERROR2=30205]="FILE_SERVICE_ERROR2",e[e.SESSION_NOT_FOUND=30300]="SESSION_NOT_FOUND",e[e.INVALID_START_TIME=30301]="INVALID_START_TIME",e[e.INVALID_ACTION=30302]="INVALID_ACTION",e[e.INVALID_REGION=30303]="INVALID_REGION",e[e.INVALID_TOKEN2=30304]="INVALID_TOKEN2",e[e.EXCEEDED_FAILED=30305]="EXCEEDED_FAILED",e[e.INVALID_END_TIME=30306]="INVALID_END_TIME",e[e.PIN_CODE_ERROR=30307]="PIN_CODE_ERROR",e[e.PIN_CODE_NOT_FOUND=30308]="PIN_CODE_NOT_FOUND",e[e.PIN_CODE_EXPIRED=30309]="PIN_CODE_EXPIRED",e[e.PIN_CODE_NOT_READY=30310]="PIN_CODE_NOT_READY",e[e.PIN_CODE_INVALID=30311]="PIN_CODE_INVALID",e[e.PIN_CODE_IS_REQUIRED=30315]="PIN_CODE_IS_REQUIRED",e[e.PIN_CODE_HAS_BEEN_USED=30316]="PIN_CODE_HAS_BEEN_USED",e[e.SERVER_ERROR1=30400]="SERVER_ERROR1",e[e.SERVER_ERROR2=30401]="SERVER_ERROR2",e[e.SERVER_ERROR3=30402]="SERVER_ERROR3",e[e.SERVER_ERROR4=30403]="SERVER_ERROR4",e))(km||{});const be={SERVICE_ERROR:"Service exception.",TOKEN_ERROR:"Invalid token.",PIN_CODE_ERROR:"Invalid pincode.",PERMISSION_ERROR:"No permission.",BUSINESS_TYPE_ERROR:"Invalid business type.",APP_KEY_ERROR:"App Key not found.",SESSION_NOT_FOUND:"Session not found.",PIN_CODE_IS_REQUIRED:"Pincode is required.",PIN_CODE_HAS_BEEN_USED:"Pincode has been used.",NETWORK_ERROR:"Network error.",INVALID_SDK_CDN_URL:"Invalid sdk cdn url.",INACTIVE_SDK_VERSION:"Inactive sdk version."},XB={124:be.TOKEN_ERROR,127:be.TOKEN_ERROR,30101:be.TOKEN_ERROR,30304:be.TOKEN_ERROR,129:be.TOKEN_ERROR,401:be.TOKEN_ERROR,30307:be.PIN_CODE_ERROR,30308:be.PIN_CODE_ERROR,30309:be.PIN_CODE_ERROR,30310:be.PIN_CODE_ERROR,30311:be.PIN_CODE_ERROR,125:be.PERMISSION_ERROR,30202:be.APP_KEY_ERROR,30300:be.SESSION_NOT_FOUND,30315:be.PIN_CODE_IS_REQUIRED,30316:be.PIN_CODE_HAS_BEEN_USED,30201:be.BUSINESS_TYPE_ERROR,30102:be.BUSINESS_TYPE_ERROR,[-1]:be.SERVICE_ERROR,126:be.SERVICE_ERROR,30100:be.SERVICE_ERROR,30103:be.SERVICE_ERROR,30104:be.SERVICE_ERROR,30108:be.INVALID_SDK_CDN_URL,30109:be.INACTIVE_SDK_VERSION,30200:be.SERVICE_ERROR,30203:be.SERVICE_ERROR,30204:be.SERVICE_ERROR,30205:be.SERVICE_ERROR,30301:be.SERVICE_ERROR,30302:be.SERVICE_ERROR,30303:be.SERVICE_ERROR,30305:be.SERVICE_ERROR,30306:be.SERVICE_ERROR,30400:be.SERVICE_ERROR,30401:be.SERVICE_ERROR,30402:be.SERVICE_ERROR,30403:be.SERVICE_ERROR,10016:be.NETWORK_ERROR},Fc={DESK_WITH_VERSION:"/sdkapi/zcb/frame-templates/desk/:version",VIEWER_WITH_VERSION:"/sdkapi/zcb/frame-templates/viewer/:version",DESK:"/sdkapi/zcb/frame-templates/desk",VIEWER:"/sdkapi/zcb/frame-templates/viewer",AGENT:"/com-agent"};var j=(e=>(e.CustomerFloatingToolbar="customerFloatingToolbar",e.CustomerFloatingToolbarIcon="customerFloatingToolbarIcon",e.CustomerFloatingToolbarText="customerFloatingToolbarText",e.CustomerFloatingToolbarButton="customerFloatingToolbarButton",e.CustomerFloatingToolbarButtonPrefixIcon="customerFloatingToolbarButtonPrefixIcon",e.CustomerScreenBorder="customerScreenBorder",e.CustomerAnnotationToolbarMouseButton="customerAnnotationToolbarMouseButton",e.CustomerAnnotationToolbarVanishingPenButton="customerAnnotationToolbarVanishingPenButton",e.CustomerAnnotationToolbarPenButton="customerAnnotationToolbarPenButton",e.CustomerAnnotationToolbarVanishingRectangleButton="customerAnnotationToolbarVanishingRectangleButton",e.CustomerAnnotationToolbarRectangleButton="customerAnnotationToolbarRectangleButton",e.CustomerAnnotationToolbarEraserButton="customerAnnotationToolbarEraserButton",e.CustomerAnnotationToolbarColorButton="customerAnnotationToolbarColorButton",e.CustomerAnnotationToolbarClearButton="customerAnnotationToolbarClearButton",e.CustomerAnnotationToolbarCloseButton="customerAnnotationToolbarCloseButton",e.CustomerAnnotationToolbarOpenButton="customerAnnotationToolbarOpenButton",e.CustomerJoinSessionDialogOverall="customerJoinSessionDialogOverall",e.CustomerJoinSessionDialogTitle="customerJoinSessionDialogTitle",e.CustomerJoinSessionDialogTitleContent="customerJoinSessionDialogTitleContent",e.CustomerJoinSessionDialogTitleIcon="customerJoinSessionDialogTitleIcon",e.CustomerJoinSessionDialogTopRightCloseButton="customerJoinSessionDialogTopRightCloseButton",e.CustomerJoinSessionDialogLoadingPinCodeIcon="customerJoinSessionDialogLoadingPinCodeIcon",e.CustomerJoinSessionDialogPinCodeTipText="customerJoinSessionDialogPinCodeTipText",e.CustomerJoinSessionDialogPinCodeContent="customerJoinSessionDialogPinCodeContent",e.CustomerJoinSessionDialogFooterContainer="customerJoinSessionDialogFooterContainer",e.CustomerJoinSessionDialogCancelButton="customerJoinSessionDialogCancelButton",e.CustomerEndSessionDialogOverall="customerEndSessionDialogOverall",e.CustomerEndSessionDialogTitleContainer="customerEndSessionDialogTitleContainer",e.CustomerEndSessionDialogContentContainer="customerEndSessionDialogContentContainer",e.CustomerEndSessionDialogFooterContainer="customerEndSessionDialogFooterContainer",e.CustomerEndSessionDialogTitleContent="customerEndSessionDialogTitleContent",e.CustomerEndSessionDialogTitleIcon="customerEndSessionDialogTitleIcon",e.CustomerEndSessionDialogTextContent="customerEndSessionDialogTextContent",e.CustomerEndSessionDialogTopRightCloseButton="customerEndSessionDialogTopRightCloseButton",e.CustomerEndSessionDialogCancelButton="customerEndSessionDialogCancelButton",e.CustomerEndSessionDialogEndSessionButton="customerEndSessionDialogEndSessionButton",e.CustomerReconnectDialogOverall="customerReconnectDialogOverall",e.CustomerReconnectDialogContentContainer="customerReconnectDialogContentContainer",e.CustomerReconnectDialogFooterContainer="customerReconnectDialogFooterContainer",e.CustomerReconnectDialogLoadingIcon="customerReconnectDialogLoadingIcon",e.CustomerReconnectDialogTextContent="customerReconnectDialogTextContent",e.CustomerReconnectDialogCloseButton="customerReconnectDialogCloseButton",e.CustomerReconnectDialogCloseButtonPrefixIcon="customerReconnectDialogCloseButtonPrefixIcon",e.CustomerConnectDialogOverall="customerConnectDialogOverall",e.CustomerConnectDialogContentContainer="customerConnectDialogContentContainer",e.CustomerConnectDialogFooterContainer="customerConnectDialogFooterContainer",e.CustomerConnectDialogLoadingIcon="customerConnectDialogLoadingIcon",e.CustomerConnectDialogTextContent="customerConnectDialogTextContent",e.CustomerConnectDialogCloseButton="customerConnectDialogCloseButton",e.CustomerConnectDialogCloseButtonPrefixIcon="customerConnectDialogCloseButtonPrefixIcon",e.CustomerJoinFailedDialogOverall="customerJoinFailedDialogOverall",e.CustomerJoinFailedDialogTitleContainer="customerJoinFailedDialogTitleContainer",e.CustomerJoinFailedDialogContentContainer="customerJoinFailedDialogContentContainer",e.CustomerJoinFailedDialogFooterContainer="customerJoinFailedDialogFooterContainer",e.CustomerJoinFailedDialogTitleContent="customerJoinFailedDialogTitleContent",e.CustomerJoinFailedDialogTitleIcon="customerJoinFailedDialogTitleIcon",e.CustomerJoinFailedDialogTextContent="customerJoinFailedDialogTextContent",e.CustomerJoinFailedDialogTextSecondaryContent="customerJoinFailedDialogTextSecondaryContent",e.CustomerJoinFailedDialogOkButton="customerJoinFailedDialogOkButton",e.CustomerTransferFailedTitleContent="CustomerTransferFailedTitleContent",e.CustomerTransferFailedTextSecondaryContent="CustomerTransferFailedTextSecondaryContent",e.CustomerTransferFailedOkButton="CustomerTransferFailedOkButton",e.CustomerReconnectFailedDialogOverall="customerReconnectFailedDialogOverall",e.CustomerReconnectFailedDialogTitleContainer="customerReconnectFailedDialogTitleContainer",e.CustomerReconnectFailedDialogContentContainer="customerReconnectFailedDialogContentContainer",e.CustomerReconnectFailedDialogFooterContainer="customerReconnectFailedDialogFooterContainer",e.CustomerReconnectFailedDialogTitleContent="customerReconnectFailedDialogTitleContent",e.CustomerReconnectFailedDialogTitleIcon="customerReconnectFailedDialogTitleIcon",e.CustomerReconnectFailedDialogTextContent="customerReconnectFailedDialogTextContent",e.CustomerReconnectFailedDialogTextSecondaryContent="customerReconnectFailedDialogTextSecondaryContent",e.CustomerReconnectFailedDialogOkButton="customerReconnectFailedDialogOkButton",e.CustomerReconnectTimeoutDialogOverall="customerReconnectTimeoutDialogOverall",e.CustomerReconnectTimeoutDialogTitleContainer="customerReconnectTimeoutDialogTitleContainer",e.CustomerReconnectTimeoutDialogContentContainer="customerReconnectTimeoutDialogContentContainer",e.CustomerReconnectTimeoutDialogFooterContainer="customerReconnectTimeoutDialogFooterContainer",e.CustomerReconnectTimeoutDialogTitleContent="customerReconnectTimeoutDialogTitleContent",e.CustomerReconnectTimeoutDialogTitleIcon="customerReconnectTimeoutDialogTitleIcon",e.CustomerReconnectTimeoutDialogTextContent="customerReconnectTimeoutDialogTextContent",e.CustomerReconnectTimeoutDialogTextSecondaryContent="customerReconnectTimeoutDialogTextSecondaryContent",e.CustomerReconnectTimeoutDialogOkButton="customerReconnectTimeoutDialogOkButton",e.CustomerReconnectTimeoutDialogTopRightCloseButton="customerReconnectTimeoutDialogTopRightCloseButton",e.CustomerDisconnectDialogOverall="customerDisconnectDialogOverall",e.CustomerDisconnectDialogContentContainer="customerDisconnectDialogContentContainer",e.CustomerDisconnectDialogFooterContainer="customerDisconnectDialogFooterContainer",e.CustomerDisconnectDialogLoadingIcon="customerDisconnectDialogLoadingIcon",e.CustomerDisconnectDialogFirstLineTextContent="customerDisconnectDialogFirstLineTextContent",e.CustomerDisconnectDialogSecondLineTextContent="customerDisconnectDialogSecondLineTextContent",e.CustomerDisconnectDialogPinCode="customerDisconnectDialogPinCode",e.CustomerDisconnectDialogEndButton="customerDisconnectDialogCloseButton",e.CustomerDisconnectDialogEndButtonPrefixIcon="customerDisconnectDialogCloseButtonPrefixIcon",e.CustomerToastSuccessPrefixIcon="customerToastSuccessPrefixIcon",e.CustomerToastSuccessWrapper="customerToastSuccessWrapper",e.CustomerToastErrorPrefixIcon="customerToastErrorPrefixIcon",e.CustomerToastErrorWrapper="customerToastErrorWrapper",e.CustomerToastWarningPrefixIcon="customerToastWarningPrefixIcon",e.CustomerToastWarningWrapper="customerToastWarningWrapper",e.CustomerToastDefaultPrefixIcon="customerToastDefaultPrefixIcon",e.CustomerToastDefaultWrapper="customerToastDefaultWrapper",e.CustomerToastInfoPrefixIcon="customerToastInfoPrefixIcon",e.CustomerToastInfoWrapper="customerToastInfoWrapper",e.AgentToolbarVerticalWrapper="agentToolbarVerticalWrapper",e.AgentToolbarHorizontalWrapper="agentToolbarHorizontalWrapper",e.AgentToolbarAllowRotation="agentToolbarAllowRotation",e.AgentToolbarDefaultVertical="agentToolbarDefaultVertical",e.AgentToolbarVerticalNormalBtnsWrapper="agentToolbarVerticalNormalBtnsWrapper",e.AgentToolbarHorizontalNormalBtnsWrapper="agentToolbarHorizontalNormalBtnsWrapper",e.AgentToolbarButtonCommon="agentToolbarButtonCommon",e.AgentToolbarButtonActiveCommon="agentToolbarButtonActiveCommon",e.AgentToolbarTooltipCommon="agentToolbarTooltipCommon",e.AgentToolbarVerticalDivider="agentToolbarVerticalDivider",e.AgentToolbarHorizontalDivider="agentToolbarHorizontalDivider",e.AgentToolbarZoomInButton="agentToolbarZoomInButton",e.AgentToolbarZoomInIcon="agentToolbarZoomInIcon",e.AgentToolbarZoomOutButton="agentToolbarZoomOutButton",e.AgentToolbarZoomOutIcon="agentToolbarZoomOutIcon",e.AgentToolbarZoomMenuButton="agentToolbarZoomMenuButton",e.AgentToolbarZoomMenuIcon="agentToolbarZoomMenuIcon",e.AgentToolbarFullScreenButton="agentToolbarFullScreenButton",e.AgentToolbarFullScreenIcon="agentToolbarFullScreenIcon",e.AgentToolbarExitFullScreenButton="agentToolbarExitFullScreenButton",e.AgentToolbarExitFullScreenIcon="agentToolbarExitFullScreenIcon",e.AgentToolbarVanishingPenButton="agentToolbarVanishingPenButton",e.AgentToolbarVanishingPenIcon="agentToolbarVanishingPenIcon",e.AgentToolbarPenButton="agentToolbarPenButton",e.AgentToolbarPenIcon="agentToolbarPenIcon",e.AgentToolbarEndSessionButton="agentToolbarEndSessionButton",e.AgentToolbarEndSessionIcon="agentToolbarEndSessionIcon",e.AgentToolbarRemoteAssistIcon="agentToolbarRemoteAssistIcon",e.AgentVanishingPenSubMenuVerticalWrapper="agentVanishingPenSubMenuVerticalWrapper",e.AgentVanishingPenSubMenuHorizontalWrapper="agentVanishingPenSubMenuHorizontalWrapper",e.AgentVanishingPenSubMenuButtonCommon="agentVanishingPenSubMenuButtonCommon",e.AgentVanishingPenMenuButtonActiveCommon="agentVanishingPenSubMenuButtonActiveCommon",e.AgentVanishingPenSubMenuMouseButton="agentVanishingPenSubMenuMouseButton",e.AgentVanishingPenSubMenuMouseIcon="agentVanishingPenSubMenuMouseIcon",e.AgentVanishingPenSubMenuVanishingPenButton="agentVanishingPenSubMenuVanishingPenButton",e.AgentVanishingPenSubMenuVanishingPenIcon="agentVanishingPenSubMenuVanishingPenIcon",e.AgentVanishingPenSubMenuVanishingRectangleButton="agentVanishingPenSubMenuVanishingRectangleButton",e.AgentVanishingPenSubMenuVanishingRectangleIcon="agentVanishingPenSubMenuVanishingRectangleIcon",e.AgentVanishingPenSubMenuVanishingColorButton="agentVanishingPenSubMenuVanishingColorButton",e.AgentVanishingPenSubMenuVanishingColorIcon="agentVanishingPenSubMenuVanishingColorIcon",e.AgentPenAnnotationSubMenuVerticalWrapper="agentPenAnnotationSubMenuVerticalWrapper",e.AgentPenAnnotationSubMenuHorizontalWrapper="agentPenAnnotationSubMenuHorizontalWrapper",e.AgentPenAnnotationSubMenuButtonCommon="agentPenAnnotationSubMenuButtonCommon",e.AgentPenAnnotationSubMenuButtonActiveCommon="agentPenAnnotationSubMenuButtonActiveCommon",e.AgentPenAnnotationSubMenuMouseButton="agentPenAnnotationSubMenuMouseButton",e.AgentPenAnnotationSubMenuMouseIcon="agentPenAnnotationSubMenuMouseIcon",e.AgentPenAnnotationSubMenuPenButton="agentPenAnnotationSubMenuPenButton",e.AgentPenAnnotationSubMenuPenIcon="agentPenAnnotationSubMenuPenIcon",e.AgentPenAnnotationSubMenuRectangleButton="agentPenAnnotationSubMenuRectangleButton",e.AgentPenAnnotationSubMenuRectangleIcon="agentPenAnnotationSubMenuRectangleIcon",e.AgentPenAnnotationSubMenuEraserButton="agentPenAnnotationSubMenuEraserButton",e.AgentPenAnnotationSubMenuEraserIcon="agentPenAnnotationSubMenuEraserIcon",e.AgentPenAnnotationSubMenuColorButton="agentPenAnnotationSubMenuColorButton",e.AgentPenAnnotationSubMenuColorIcon="agentPenAnnotationSubMenuColorIcon",e.AgentPenAnnotationSubMenuUndoButton="agentPenAnnotationSubMenuUndoButton",e.AgentPenAnnotationSubMenuUndoIcon="agentPenAnnotationSubMenuUndoIcon",e.AgentPenAnnotationSubMenuRedoButton="agentPenAnnotationSubMenuRedoButton",e.AgentPenAnnotationSubMenuRedoIcon="agentPenAnnotationSubMenuRedoIcon",e.AgentPenAnnotationSubMenuClearButton="agentPenAnnotationSubMenuClearButton",e.AgentPenAnnotationSubMenuClearIcon="agentPenAnnotationSubMenuClearIcon",e.AgentPenSubMenuVerticalWrapper="agentPenSubMenuVerticalWrapper",e.AgentPenSubMenuHorizontalWrapper="agentPenSubMenuHorizontalWrapper",e.AgentPenSubMenuButtonCommon="agentPenSubMenuButtonCommon",e.AgentPenSubMenuButtonActiveCommon="agentPenSubMenuButtonActiveCommon",e.AgentPenSubMenuDrawText="agentPenSubMenuDrawText",e.AgentPenSubMenuLineWidthText="agentPenSubMenuLineWidthText",e.AgentColorSubMenuVerticalWrapper="agentColorSubMenuVerticalWrapper",e.AgentColorSubMenuHorizontalWrapper="agentColorSubMenuHorizontalWrapper",e.AgentColorSubMenuButtonCommon="agentColorSubMenuButtonCommon",e.AgentColorSubMenuActiveButtonCommon="agentColorSubMenuActiveButtonCommon",e.AgentZoomInOutMenuVerticalWrapper="agentZoomInOutMenuVerticalWrapper",e.AgentZoomInOutMenuHorizontalWrapper="agentZoomInOutMenuHorizontalWrapper",e.AgentZoomInOutMenuRoot="agentZoomInOutMenuRoot",e.AgentZoomInOutMenuItem="agentZoomInOutMenuItem",e.AgentZoomInOutMenuItemFitToWindow="agentZoomInOutMenuItemFitToWindow",e.AgentZoomInOutMenuItemActualSize="agentZoomInOutMenuItemActualSize",e.AgentSingleAgentEndSessionDialogOverall="agentSingleAgentEndSessionDialogOverall",e.AgentSingleAgentEndSessionDialogTitleContainer="agentSingleAgentEndSessionDialogTitleContainer",e.AgentSingleAgentEndSessionDialogContentContainer="agentSingleAgentEndSessionDialogContentContainer",e.AgentSingleAgentEndSessionDialogFooterContainer="agentSingleAgentEndSessionDialogFooterContainer",e.AgentSingleAgentEndSessionDialogTitleIcon="agentSingleAgentEndSessionDialogTitleIcon",e.AgentSingleAgentEndSessionDialogTitleContent="agentSingleAgentEndSessionDialogTitleContent",e.AgentSingleAgentEndSessionDialogTextContent="agentSingleAgentEndSessionDialogTextContent",e.AgentSingleAgentEndSessionDialogTopRightCloseButton="agentSingleAgentEndSessionDialogTopRightCloseButton",e.AgentSingleAgentEndSessionDialogCancelButton="agentSingleAgentEndSessionDialogCancelButton",e.AgentSingleAgentEndSessionDialogEndSessionButton="agentSingleAgentEndSessionDialogEndSessionButton",e.AgentMultiAgentsEndSessionDialogOverall="agentMultiAgentsEndSessionDialogOverall",e.AgentMultiAgentsEndSessionDialogTitleContainer="agentMultiAgentsEndSessionDialogTitleContainer",e.AgentMultiAgentsEndSessionDialogContentContainer="agentMultiAgentsEndSessionDialogContentContainer",e.AgentMultiAgentsEndSessionDialogFooterContainer="agentMultiAgentsEndSessionDialogFooterContainer",e.AgentMultiAgentsEndSessionDialogTitleIcon="agentMultiAgentsEndSessionDialogTitleIcon",e.AgentMultiAgentsEndSessionDialogTitleContent="agentMultiAgentsEndSessionDialogTitleContent",e.AgentMultiAgentsEndSessionDialogTextContent="agentMultiAgentsEndSessionDialogTextContent",e.AgentMultiAgentsEndSessionDialogTopRightCloseButton="agentMultiAgentsEndSessionDialogTopRightCloseButton",e.AgentMultiAgentsEndSessionDialogCancelButton="agentMultiAgentsEndSessionDialogCancelButton",e.AgentMultiAgentsEndSessionDialogLeaveSessionButton="agentMultiAgentsEndSessionDialogLeaveSessionButton",e.AgentMultiAgentsEndSessionDialogEndSessionButton="agentMultiAgentsEndSessionDialogEndSessionButton",e.AgentJoinFailedDialogOverall="agentJoinFailedDialogOverall",e.AgentJoinFailedDialogTitleContainer="agentJoinFailedDialogTitleContainer",e.AgentJoinFailedDialogContentContainer="agentJoinFailedDialogContentContainer",e.AgentJoinFailedDialogFooterContainer="agentJoinFailedDialogFooterContainer",e.AgentJoinFailedDialogTitleIcon="agentJoinFailedDialogTitleIcon",e.AgentJoinFailedDialogTitleContent="agentJoinFailedDialogTitleContent",e.AgentJoinFailedDialogTextContent="agentJoinFailedDialogTextContent",e.AgentJoinFailedDialogTopRightCloseButton="agentJoinFailedDialogTopRightCloseButton",e.AgentJoinFailedDialogOkButton="agentJoinFailedDialogOkButton",e.AgentFloatingPinToolbarWrapper="agentFloatingPinToolbarWrapper",e.AgentFloatingPinToolbarPrefixIcon="agentFloatingPinToolbarPrefixIcon",e.AgentFloatingPinToolbarContentText="agentFloatingPinToolbarContentText",e.AgentFloatingPinToolbarCopyIcon="agentFloatingPinToolbarCopyIcon",e.AgentToastSuccessPrefixIcon="agentToastSuccessPrefixIcon",e.AgentToastSuccessWrapper="agentToastSuccessWrapper",e.AgentToastErrorPrefixIcon="agentToastErrorPrefixIcon",e.AgentToastErrorWrapper="agentToastErrorWrapper",e.AgentToastWarningPrefixIcon="agentToastWarningPrefixIcon",e.AgentToastWarningWrapper="agentToastWarningWrapper",e.AgentToastDefaultPrefixIcon="agentToastDefaultPrefixIcon",e.AgentToastDefaultWrapper="agentToastDefaultWrapper",e.AgentToastInfoPrefixIcon="agentToastInfoPrefixIcon",e.AgentToastInfoWrapper="agentToastInfoWrapper",e))(j||{}),g5=(e=>(e.SESSION_PRE_INIT="session_pre_init",e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error",e))(g5||{}),h5=(e=>(e.SEND_SESSION_OPTIONS="send_session_options",e))(h5||{});const qB=["send_session_options"],QB=window.ZCBCoChannel.makeLogger,eU=QB(["CoBrowsing Page","CC"]);let Pi;function tU(){Pi==null||Pi.destroy(),Pi=null}function cp(e){const{t}=ds(),n=p.useCallback((o="")=>{Pi||(Pi=o5.confirm({title:o?t("STOP_COBROWSE_WITH_CONSUMER_NAME",{consumerName:o}):t("STOP_COBROWSE_QUESTION"),closable:!1,onOk(){Pi=null,eU.log("[PAGE CALL][BUTTON] showStopDialog trigger end"),e==null||e()},onCancel(){Pi=null},okButtonProps:{danger:!0,className:"zcb-stop-confirm-btn"},okText:t("STOP"),cancelText:t("CANCEL"),className:`${so} cobrowse-cc-module`}))},[e,t]),r=p.useCallback(()=>{tU()},[]);return{showStopDialog:n,cleanStopDialog:r}}const nU=window.ZCBController.init;let m5=!1;function rU({showSnackBar:e,setSession:t}){p.useEffect(()=>{if(!m5){if(!(window!=null&&window.ZMCoBrowsingConfig.sessionId)||!(window!=null&&window.ZMCoBrowsingConfig.authToken)){console.error("[useZCB] not get sessionId and token");return}m5=!0,nU({},function(n){const{success:r,session:o}=n;r&&o?(o.join({externalSessionId:window==null?void 0:window.ZMCoBrowsingConfig.sessionId,externalToken:window==null?void 0:window.ZMCoBrowsingConfig.authToken}),t(o)):console.log("ZoomCobrowseSDK is not supported by your browser, please update your browser")})}})}var oU={name:"w1atjl",styles:"width:100%;height:100%"};function iU({zcbAuthToken:e,sessionId:t,zcbDomain:n,isShow:r,innerEndpoint:o}){return x("div",{css:oU,children:x("iframe",{css:ee({display:r?"block":"none",width:"100%",height:"100%",border:"none",pointerEvents:r?"none":"inherit"},"",""),title:Dc,tabIndex:-1,src:`https://${n}${o}?sessionId=${t}&access_token=${e}&CPS_TAB_NAME=_CPS_TAB_1`})})}var v5;(function(e){e.dev="dev",e.qa="qa",e.go="go",e.us01="us01"})(v5||(v5={}));var y5;(function(e){e.dev="dev-integration.zoomdev.us",e.qa="zoomdev.us",e.go="go.zoom.us",e.us01="zoom.us"})(y5||(y5={}));var C5;(function(e){e.dev="https://ccizp.zoomdev.us",e.qa="https://qa01ccizp.zoomdev.us",e.go="https://gocci.zoom.us",e.us01="https://us01cci.zoom.us"})(C5||(C5={}));var za=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},sU=function(){function e(){this._listeners=new Map,this._listenersOnce=new Map}return e.prototype.on=function(t,n){var r=this._listeners.get(t)||[];this._listeners.set(t,za(za([],r,!0),[n],!1))},e.prototype.once=function(t,n){var r=this._listenersOnce.get(t)||[];this._listenersOnce.set(t,za(za([],r,!0),[n],!1))},e.prototype.off=function(t,n){var r=this._listeners.get(t)||[],o=this._listenersOnce.get(t)||[];if(r.length){var i=r.indexOf(n);i>-1&&r.splice(i,1),this._listeners.set(t,r)}if(o.length){var i=o.indexOf(n);i>-1&&o.splice(i,1),this._listenersOnce.set(t,o)}},e.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._listeners.get(t)||[],i=this._listenersOnce.get(t)||[];za(za([],o,!0),i,!0).forEach(function(s){return s.apply(void 0,n)}),this._listenersOnce.delete(t)},e}(),S5=globalThis&&globalThis.__assign||function(){return S5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},S5.apply(this,arguments)},b5=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},$c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.log.apply(console,b5(["[client-window]"],e,!1))},Mm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,b5(["[client-window]"],e,!1))};function E5(e){return"zcc-client-window:".concat(e)}var ja;(function(e){e.message="message",e.close="close"})(ja||(ja={}));var Dm;(function(e){e.close="close"})(Dm||(Dm={}));var hn;(function(e){e.getSupportedJsApis="getSupportedJsApis",e.openUrlInSysBrowser="openUrlInSysBrowser",e.getRunningContext="getRunningContext",e.getMeetingContext="getMeetingContext",e.removeVirtualBackground="removeVirtualBackground",e.setVirtualBackground="setVirtualBackground",e.showNotification="showNotification",e.CCIUIAPI_ReqMeeting="CCIUIAPI_ReqMeeting",e.CCIUIAPI_PresenceStatusSync="CCIUIAPI_PresenceStatusSync",e.CCIUIAPI_UseAudio="CCIUIAPI_UseAudio",e.CCIUIAPI_CheckRegistration="CCIUIAPI_CheckRegistration",e.CCIUIAPI_GetAccessToken="CCIUIAPI_GetAccessToken",e.CCIUIAPI_GetUserProfile="CCIUIAPI_GetUserProfile",e.CCIUIAPI_IncomingCall="CCIUIAPI_IncomingCall",e.CCIUIAPI_CancelIncomingCall="CCIUIAPI_CancelIncomingCall",e.CCIUIAPI_OnCallStart="CCIUIAPI_OnCallStart",e.CCIUIAPI_OnCallEnd="CCIUIAPI_OnCallEnd",e.CCIUIAPI_OnCallUpdate="CCIUIAPI_OnCallUpdate",e.CCIUIAPI_OnDeclineCall="CCIUIAPI_OnDeclineCall",e.CCIUIAPI_MuteCall="CCIUIAPI_MuteCall",e.CCIUIAPI_SendDTMF="CCIUIAPI_SendDTMF",e.CCIUIAPI_OnHandleCall="CCIUIAPI_OnHandleCall",e.CCIUIAPI_UpdateQosAdditionalData="CCIUIAPI_UpdateQosAdditionalData",e.CCIUIAPI_OnUpdateSDKConfiguration="CCIUIAPI_OnUpdateSDKConfiguration",e.CCIUIAPI_OnCCIWebPageLoaded="CCIUIAPI_OnCCIWebPageLoaded",e.CCIUIAPI_GetSIPInitializedStatus="CCIUIAPI_GetSIPInitializedStatus",e.CCIUIAPI_DownloadFileByUrl="CCIUIAPI_DownloadFileByUrl",e.CCIUIAPI_GetFolderPath="CCIUIAPI_GetFolderPath",e.CCIUIAPI_LogMessage="CCIUIAPI_LogMessage",e.CCIUIAPI_ShowInactiveToast="CCIUIAPI_ShowInactiveToast",e.CCIUIAPI_CloseInactiveToast="CCIUIAPI_CloseInactiveToast",e.CCIUIAPI_GetSupportedCapabilities="CCIUIAPI_GetSupportedCapabilities",e.CCIUIAPI_SetCCIAPIDomain="CCIUIAPI_SetCCIAPIDomain",e.CCIUIAPI_PopUpCCIWindow="CCIUIAPI_PopUpCCIWindow",e.CCIUIAPI_MergeCCIToTab="CCIUIAPI_MergeCCIToTab",e.CCIUIAPI_GetPopupWindowFlag="CCIUIAPI_GetPopupWindowFlag",e.CCIUIAPI_RefreshToken="CCIUIAPI_RefreshToken",e.CCIUIAPI_VideoJoin="CCIUIAPI_VideoJoin",e.CCIUIAPI_SetWindowPos="CCIUIAPI_SetWindowPos",e.CCIUIAPI_LaunchAppUrl="CCIUIAPI_LaunchAppUrl",e.CCIUIAPI_UpdateIncomingCall="CCIUIAPI_UpdateIncomingCall",e.CCIUIAPI_GetAudioOccupancyStatus="CCIUIAPI_GetAudioOccupancyStatus",e.CCIUIAPI_StartOutboundAudio="CCIUIAPI_StartOutboundAudio",e.CCIUIAPI_QuerySelectedTabType="CCIUIAPI_QuerySelectedTabType",e.CCIUIAPI_ResetMediaDevicePermission="CCIUIAPI_ResetMediaDevicePermission",e.CCIUIAPI_SendMsgToPopupWindow="CCIUIAPI_SendMsgToPopupWindow",e.CCIUIAPI_DestroyPopupWindow="CCIUIAPI_DestroyPopupWindow",e.CCIUIAPI_ShowPopupWindow="CCIUIAPI_ShowPopupWindow",e.CCIUIAPI_CreatePopupWindow="CCIUIAPI_CreatePopupWindow",e.CCIUIAPI_CreateEmbedWindow="CCIUIAPI_CreateEmbedWindow",e.CCIUIAPI_ShowEmbedWindow="CCIUIAPI_ShowEmbedWindow",e.CCIUIAPI_DestroyEmbedWindow="CCIUIAPI_DestroyEmbedWindow",e.CCIUIAPI_SendMsgToEmbedWindow="CCIUIAPI_SendMsgToEmbedWindow"})(hn||(hn={}));var up;(function(e){e.CCIUINotifySendMsgToPopupWindow="CCIUINotifySendMsgToPopupWindow",e.CCIUINotifySendMsgToEmbedWindow="CCIUINotifySendMsgToEmbedWindow"})(up||(up={}));var dp=globalThis&&globalThis.__assign||function(){return dp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dp.apply(this,arguments)},aU=function(){function e(){this.id=window.__id__||"",this.parentId=window.__parentid__||"",this.children={}}return e.prototype.setChild=function(t){var n=t.id;this.children[n]=dp(dp({},this.children[n]||{showState:!1,beforeReadyMessage:[]}),t)},e.prototype.removeChild=function(t){delete this.children[t]},e.prototype.findExistChild=function(t){var n=this,r=t.windowName,o=t.x,i=t.y,s=t.width,a=t.height,l=Object.keys(this.children).find(function(c){var u=n.children[c];return!u.showState&&u.windowName===r&&u.x===o&&u.y===i&&u.width===s&&u.height===a});if(l)return this.children[l]},e.prototype.emitBeforeReadyMessage=function(t){if(this.children[t]){var n=this.children[t].beforeReadyMessage,r=n===void 0?[]:n;$c("emitBeforeReadyMessage",t,r),r.map(function(o){return o&&o()}),this.children[t].beforeReadyMessage=[]}},e}(),lU="0.0.24",cU=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ao=globalThis&&globalThis.__assign||function(){return ao=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ao.apply(this,arguments)},lo=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})},co=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ie=new aU,uU=function(e){cU(t,e);function t(){var n=e.call(this)||this;return n.version=lU,n}return t.prototype.setUrl=function(n){this.url=n},Object.defineProperty(t.prototype,"_zoomSdk",{get:function(){if(!window.zoomSdk){Mm("window.zoomSdk is not defined");return}return window.zoomSdk},enumerable:!1,configurable:!0}),t.prototype.on=function(n,r){if(!Object.keys(ja).includes(n)){Mm("".concat(n," event is not in ").concat(Object.keys(ja).join(",")));return}e.prototype.on.call(this,n,r)},t.prototype.handleNotification=function(n){var r,o,i,s,a,l,c,u;[up.CCIUINotifySendMsgToPopupWindow,up.CCIUINotifySendMsgToEmbedWindow].includes((r=n==null?void 0:n.result)===null||r===void 0?void 0:r.notification)&&($c("handleNotification",n),((i=(o=n.result.params)===null||o===void 0?void 0:o.data)===null||i===void 0?void 0:i.event)===E5("ready")&&((s=n.result.params)===null||s===void 0?void 0:s.to)===Ie.id?(Ie.setChild({id:n.result.params.from,ready:!0}),Ie.emitBeforeReadyMessage(n.result.params.from)):((l=(a=n.result.params)===null||a===void 0?void 0:a.data)===null||l===void 0?void 0:l.event)===Dm.close&&((c=n.result.params)===null||c===void 0?void 0:c.to)===Ie.id?(Ie.setChild({id:n.result.params.from,showState:!1}),this.emit(ja.close,n.result.params.from)):this.emit(ja.message,(u=n.result.params)===null||u===void 0?void 0:u.data,n))},t.prototype.createWindow=function(n){var r,o,i=n===void 0?{}:n,s=i.windowName,a=s===void 0?"":s,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,d=i.width,h=d===void 0?100:d,g=i.height,m=g===void 0?100:g,b=i.hideTitle,y=b===void 0?!1:b,v=i.canDragAndDrop,C=v===void 0?!1:v,S=i.functionName,w=S===void 0?"":S,_=i.type,E=i.sticky,M=E===void 0?!1:E,$=i.stickyWindowId,D=i.stickyHeight;return lo(this,void 0,void 0,function(){var k,R;return co(this,function(O){switch(O.label){case 0:if(!this.url)throw new Error("url is required. use setUrl method to set");return k={windowName:a,parentWindowId:Ie.id,x:c,y:f,width:h,height:m,hideTitle:y,canDragAndDrop:C,htmlContext:this.url,type:_,sticky:M,stickyWindowId:$,stickyHeight:D,contactConfig:JSON.stringify({Domain:((r=window.ContactConfig)===null||r===void 0?void 0:r.Domain)||"",CciConfig:((o=window.ContactConfig)===null||o===void 0?void 0:o.CciConfig)||{}})},_&&(k.type=_),[4,this._zoomSdk.postJsMessage({functionName:w||hn.CCIUIAPI_CreatePopupWindow,params:k})];case 1:return R=O.sent(),$c("createWindow",R),Ie.setChild({id:R.windowId,windowName:a,x:c,y:f,width:h,height:m,type:_,sticky:M,stickyWindowId:$,stickyHeight:D}),[2,R]}})})},t.prototype.showWindow=function(n,r){var o,i,s=r===void 0?{}:r,a=s.x,l=s.y,c=s.width,u=s.height,f=s.showState,d=f===void 0?!0:f,h=s.hideTitle,g=h===void 0?!1:h,m=s.canDragAndDrop,b=m===void 0?!1:m,y=s.functionName,v=y===void 0?"":y,C=s.extra,S=s.stickyHeight;return lo(this,void 0,void 0,function(){var w,_;return co(this,function(E){switch(E.label){case 0:if(!n)throw new Error("windowId is required");if(!Ie.children[n])throw new Error("windowId is destroyed");return a===void 0&&(a=Ie.children[n].x),l===void 0&&(l=Ie.children[n].y),c===void 0&&(c=Ie.children[n].width),u===void 0&&(u=Ie.children[n].height),w={windowsId:n,showState:d,x:a,y:l,height:u,width:c,hideTitle:g,canDragAndDrop:b,stickyHeight:S},C&&(w.extra=C),!((o=Ie.children[n])===null||o===void 0)&&o.type&&(w.type=Ie.children[n].type),[4,(i=this._zoomSdk)===null||i===void 0?void 0:i.postJsMessage({functionName:v||hn.CCIUIAPI_ShowPopupWindow,params:w})];case 1:return _=E.sent(),Ie.setChild({id:n,showState:d}),[2,_]}})})},t.prototype.hideWindow=function(n){return lo(this,void 0,void 0,function(){var r;return co(this,function(o){switch(o.label){case 0:return[4,this.showWindow(n,{showState:!1})];case 1:return r=o.sent(),[2,r]}})})},t.prototype.destroyWindow=function(n){var r;return lo(this,void 0,void 0,function(){return co(this,function(o){switch(o.label){case 0:return[4,(r=this._zoomSdk)===null||r===void 0?void 0:r.postJsMessage({functionName:hn.CCIUIAPI_DestroyPopupWindow,params:{windowsId:n}})];case 1:return o.sent(),Ie.removeChild(n),[2]}})})},t.prototype.createEmbedWindow=function(n){return lo(this,void 0,void 0,function(){return co(this,function(r){return[2,this.createWindow(ao(ao({},n),{functionName:hn.CCIUIAPI_CreateEmbedWindow}))]})})},t.prototype.showEmbedWindow=function(n,r){return lo(this,void 0,void 0,function(){return co(this,function(o){return[2,this.showWindow(n,ao(ao({},r),{functionName:hn.CCIUIAPI_ShowEmbedWindow}))]})})},t.prototype.hideEmbedWindow=function(n){return lo(this,void 0,void 0,function(){var r;return co(this,function(o){switch(o.label){case 0:return[4,this.showEmbedWindow(n,{showState:!1})];case 1:return r=o.sent(),[2,r]}})})},t.prototype.destroyEmbedWindow=function(n){var r;return lo(this,void 0,void 0,function(){return co(this,function(o){switch(o.label){case 0:return[4,(r=this._zoomSdk)===null||r===void 0?void 0:r.postJsMessage({functionName:hn.CCIUIAPI_DestroyEmbedWindow,params:{windowsId:n}})];case 1:return o.sent(),Ie.removeChild(n),[2]}})})},t.prototype.postToParentMessage=function(n,r){var o,i,s=r===void 0?{}:r,a=s.jsCallId,l=s.functionName,c=l===void 0?"":l,u=s.extra,f={jsCallId:a,from:Ie.id,to:Ie.parentId,data:n};return u&&(f.extra=u),!((o=Ie.children[Ie.id])===null||o===void 0)&&o.type&&(f.type=Ie.children[Ie.id].type),(i=this._zoomSdk)===null||i===void 0?void 0:i.postJsMessage({functionName:c||hn.CCIUIAPI_SendMsgToPopupWindow,params:f})},t.prototype.postToEmbedParentMessage=function(n,r){return r===void 0&&(r={}),this.postToParentMessage(n,ao(ao({},r),{functionName:hn.CCIUIAPI_SendMsgToEmbedWindow}))},t.prototype.postToChildMessage=function(n,r,o){var i,s,a,l=o===void 0?{}:o,c=l.jsCallId,u=l.functionName,f=u===void 0?"":u,d=l.extra;return lo(this,void 0,void 0,function(){var h,g=this;return co(this,function(m){return Ie.children[n]?(h={jsCallId:c,from:Ie.id,to:n,data:r},d&&(h.extra=d),!((i=Ie.children[n])===null||i===void 0)&&i.type&&(h.type=Ie.children[n].type),((s=Ie.children[n])===null||s===void 0?void 0:s.ready)!==!0?($c("window ".concat(n," is not ready")),Ie.children[n].beforeReadyMessage||(Ie.children[n].beforeReadyMessage=[]),[2,new Promise(function(b,y){Ie.children[n].beforeReadyMessage.push(function(){var v;(v=g._zoomSdk)===null||v===void 0||v.postJsMessage({functionName:f||hn.CCIUIAPI_SendMsgToPopupWindow,params:h}).then(b).catch(y)})})]):[2,(a=this._zoomSdk)===null||a===void 0?void 0:a.postJsMessage({functionName:f||hn.CCIUIAPI_SendMsgToPopupWindow,params:h})]):[2,Promise.reject("windowId is not exist")]})})},t.prototype.postToEmbedChildMessage=function(n,r,o){return o===void 0&&(o={}),lo(this,void 0,void 0,function(){return co(this,function(i){return[2,this.postToChildMessage(n,r,ao(ao({},o),{functionName:hn.CCIUIAPI_SendMsgToEmbedWindow}))]})})},t.prototype.replyMessage=function(n){var r,o,i=n.message,s=n.data,a=n.isEmbed,l=a===void 0?!1:a;if(((r=i.result.params)===null||r===void 0?void 0:r.from)===Ie.parentId){var c=l?this.postToEmbedParentMessage.bind(this):this.postToParentMessage.bind(this);return c(s||{},{jsCallId:i.jsCallId})}var u=l?this.postToEmbedChildMessage.bind(this):this.postToChildMessage.bind(this);return u((o=i.result.params)===null||o===void 0?void 0:o.from,s||{},{jsCallId:i.jsCallId})},t.prototype.ready=function(){var n;if(Ie.parentId){$c("post ready to parent window");var r=hn.CCIUIAPI_SendMsgToPopupWindow;window.__type__==="embed"&&(r=hn.CCIUIAPI_SendMsgToEmbedWindow),(n=this._zoomSdk)===null||n===void 0||n.postJsMessage({functionName:r,params:{from:Ie.id,to:Ie.parentId,data:{event:E5("ready")}}})}else Mm("parent windowId is not exist")},t}(sU),Lm=window.clientWindow;Lm||(Lm=window.clientWindow=new uU);const dU=Lm;class fU{constructor(){this.events={}}$on(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)}$off(t,n){if(this.events[t])if(!n)delete this.events[t];else{const r=this.events[t].indexOf(n);r!==-1&&this.events[t].splice(r,1)}}$emit(t,...n){this.events[t]&&this.events[t].forEach(r=>{r(...n)})}}const x5={},fp=new fU;function pU(){return window.__MICRO_APP_ENVIRONMENT__}function gU(e){pU()&&(console.log("zcc microApp dispatch action: %o",e),window.microApp.dispatch(e))}const bs=function(){function e(R){var O=this.constructor;return this.then(function(I){return O.resolve(R()).then(function(){return I})},function(I){return O.resolve(R()).then(function(){return O.reject(I)})})}function t(R){var O=this;return new O(function(I,A){if(!(R&&typeof R.length<"u"))return A(new TypeError(typeof R+" "+R+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var P=Array.prototype.slice.call(R);if(P.length===0)return I([]);var N=P.length;function T(z,B){if(B&&(typeof B=="object"||typeof B=="function")){var V=B.then;if(typeof V=="function"){V.call(B,function(H){T(z,H)},function(H){P[z]={status:"rejected",reason:H},--N===0&&I(P)});return}}P[z]={status:"fulfilled",value:B},--N===0&&I(P)}for(var L=0;L<P.length;L++)T(L,P[L])})}var n=setTimeout;function r(R){return!!(R&&typeof R.length<"u")}function o(){}function i(R,O){return function(){R.apply(O,arguments)}}function s(R){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if(typeof R!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(R,this)}function a(R,O){for(;R._state===3;)R=R._value;if(R._state===0){R._deferreds.push(O);return}R._handled=!0,s._immediateFn(function(){var I=R._state===1?O.onFulfilled:O.onRejected;if(I===null){(R._state===1?l:c)(O.promise,R._value);return}var A;try{A=I(R._value)}catch(P){c(O.promise,P);return}l(O.promise,A)})}function l(R,O){try{if(O===R)throw new TypeError("A promise cannot be resolved with itself.");if(O&&(typeof O=="object"||typeof O=="function")){var I=O.then;if(O instanceof s){R._state=3,R._value=O,u(R);return}else if(typeof I=="function"){d(i(I,O),R);return}}R._state=1,R._value=O,u(R)}catch(A){c(R,A)}}function c(R,O){R._state=2,R._value=O,u(R)}function u(R){R._state===2&&R._deferreds.length===0&&s._immediateFn(function(){R._handled||s._unhandledRejectionFn(R._value)});for(var O=0,I=R._deferreds.length;O<I;O++)a(R,R._deferreds[O]);R._deferreds=null}function f(R,O,I){this.onFulfilled=typeof R=="function"?R:null,this.onRejected=typeof O=="function"?O:null,this.promise=I}function d(R,O){var I=!1;try{R(function(A){I||(I=!0,l(O,A))},function(A){I||(I=!0,c(O,A))})}catch(A){if(I)return;I=!0,c(O,A)}}s.prototype.catch=function(R){return this.then(null,R)},s.prototype.then=function(R,O){var I=new this.constructor(o);return a(this,new f(R,O,I)),I},s.prototype.finally=e,s.all=function(R){return new s(function(O,I){if(!r(R))return I(new TypeError("Promise.all accepts an array"));var A=Array.prototype.slice.call(R);if(A.length===0)return O([]);var P=A.length;function N(L,z){try{if(z&&(typeof z=="object"||typeof z=="function")){var B=z.then;if(typeof B=="function"){B.call(z,function(V){N(L,V)},I);return}}A[L]=z,--P===0&&O(A)}catch(V){I(V)}}for(var T=0;T<A.length;T++)N(T,A[T])})},s.allSettled=t,s.resolve=function(R){return R&&typeof R=="object"&&R.constructor===s?R:new s(function(O){O(R)})},s.reject=function(R){return new s(function(O,I){I(R)})},s.race=function(R){return new s(function(O,I){if(!r(R))return I(new TypeError("Promise.race accepts an array"));for(var A=0,P=R.length;A<P;A++)s.resolve(R[A]).then(O,I)})},s._immediateFn=typeof setImmediate=="function"&&function(R){setImmediate(R)}||function(R){n(R,0)},s._unhandledRejectionFn=function(O){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",O)};var h=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}();typeof h.Promise!="function"?h.Promise=s:h.Promise.prototype.finally?h.Promise.allSettled||(h.Promise.allSettled=t):h.Promise.prototype.finally=e;/*! *****************************************************************************\n Copyright (c) Microsoft Corporation.\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted.\n THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.\n ***************************************************************************** */function g(R,O,I,A){function P(N){return N instanceof I?N:new I(function(T){T(N)})}return new(I||(I=Promise))(function(N,T){function L(V){try{B(A.next(V))}catch(H){T(H)}}function z(V){try{B(A.throw(V))}catch(H){T(H)}}function B(V){V.done?N(V.value):P(V.value).then(L,z)}B((A=A.apply(R,O||[])).next())})}function m(R,O){var I={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},A,P,N,T;return T={next:L(0),throw:L(1),return:L(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function L(B){return function(V){return z([B,V])}}function z(B){if(A)throw new TypeError("Generator is already executing.");for(;I;)try{if(A=1,P&&(N=B[0]&2?P.return:B[0]?P.throw||((N=P.return)&&N.call(P),0):P.next)&&!(N=N.call(P,B[1])).done)return N;switch(P=0,N&&(B=[B[0]&2,N.value]),B[0]){case 0:case 1:N=B;break;case 4:return I.label++,{value:B[1],done:!1};case 5:I.label++,P=B[1],B=[0];continue;case 7:B=I.ops.pop(),I.trys.pop();continue;default:if(N=I.trys,!(N=N.length>0&&N[N.length-1])&&(B[0]===6||B[0]===2)){I=0;continue}if(B[0]===3&&(!N||B[1]>N[0]&&B[1]<N[3])){I.label=B[1];break}if(B[0]===6&&I.label<N[1]){I.label=N[1],N=B;break}if(N&&I.label<N[2]){I.label=N[2],I.ops.push(B);break}N[2]&&I.ops.pop(),I.trys.pop();continue}B=O.call(R,I)}catch(V){B=[6,V],P=0}finally{A=N=0}if(B[0]&5)throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}}function b(){for(var R=0,O=0,I=arguments.length;O<I;O++)R+=arguments[O].length;for(var A=Array(R),P=0,O=0;O<I;O++)for(var N=arguments[O],T=0,L=N.length;T<L;T++,P++)A[P]=N[T];return A}var y={},v=["getRunningContext","getMeetingContext","getSupportedJsApis","setVirtualBackground","onShareApp","onSendAppInvitation","showNotification","removeVirtualBackground"],C=function(R){if(dU.handleNotification(R),R.result){if(R.result.notification){var O=R.result.notification;fp.$emit(O,R)}}else if(R.name){if(!Object.keys(x5).includes(R.name))return;fp.$emit(x5[R.name],R)}},S=function(){function R(O){this.postMessage=O.postMessage,this.$bus=fp,this.version=O.version}return R.prototype.busOn=function(O,I){this.$bus.$on(O,I)},R.prototype.busOff=function(O,I){this.$bus.$off(O,I)},R.prototype.native2js=function(O){if(console.log("zoomSDK response",O),D.isWinWebview(window)||D.isWinCEF(window)){var I=O.data||O,A=I.jsCallId;A&&y[A]?y[A](I):(C(O),console.log("[native2js notifcation]:",I))}else{var A=O.jsCallId;A&&y[A]?y[A](O):(C(O),console.log("notifcation",O))}},R.prototype.config=function(O){return O===void 0&&(O={}),g(this,void 0,void 0,function(){return m(this,function(I){return O.capabilities&&(O.js_api_lists=b(O.capabilities),delete O.capabilities),O.js_api_lists.length||(O.js_api_lists=v),[2,w(this.postMessage,"config",O)]})})},R.prototype.postJsMessage=function(O){return g(this,void 0,void 0,function(){return m(this,function(I){return[2,w(this.postMessage,O.functionName,O.params,null,function(A){return typeof A=="string"?JSON.parse(A):A})]})})},R.prototype.getSupportedJsApis=function(){return g(this,void 0,void 0,function(){return m(this,function(O){return[2,w(this.postMessage,"getSupportedJsApis",null,null,function(I){return typeof I=="string"?JSON.parse(I):I})]})})},R.prototype.openUrl=function(O){return g(this,void 0,void 0,function(){return m(this,function(I){return[2,w(this.postMessage,"openUrlInSysBrowser",O)]})})},R.prototype.getRunningContext=function(){return g(this,void 0,void 0,function(){return m(this,function(O){return[2,w(this.postMessage,"getRunningContext")]})})},R.prototype.getMeetingContext=function(){return g(this,void 0,void 0,function(){return m(this,function(O){return[2,w(this.postMessage,"getMeetingContext",null,null,function(I){return typeof I=="string"?JSON.parse(I):I})]})})},R.prototype.removeVirtualBackground=function(){return g(this,void 0,void 0,function(){return m(this,function(O){return[2,w(this.postMessage,"removeVirtualBackground",null,null,function(I){return typeof I=="string"?JSON.parse(I):I})]})})},R.prototype.setVirtualBackground=function(O){return g(this,void 0,void 0,function(){return m(this,function(I){return[2,w(this.postMessage,"setVirtualBackground",O)]})})},R.prototype.showNotification=function(O){return g(this,void 0,void 0,function(){return m(this,function(I){return[2,w(this.postMessage,"showNotification",O)]})})},R.prototype.onShareApp=function(O){},R.prototype.onSendAppInvitation=function(O){},R}();function w(R,O,I,A,P){return g(this,void 0,void 0,function(){var N,T;return m(this,function(L){return N=(I==null?void 0:I.jsCallId)||_(),I!=null&&I.jsCallId&&delete I.jsCallId,T={jsCallId:N,functionName:O},I&&(T.params=I),[2,new Promise(function(z,B){E(N,function(V){var H=V.result,K=V.returnCode;if(K&&K!==100000204&&K!==1){var G=new Error(K+", jsCallId:"+N);B(G)}else z(P?P(H):H);M(N)}),R(T)})]})})}function _(){return"id"+Math.random().toString(16).slice(2)}function E(R,O){y[R]=O}function M(R){delete y[R]}var $="0.3.0",D=function(){function R(){!R.isDevMacOs(window)&&!R.isMacOs(window)&&!R.isWinCEF(window)&&!R.isWinWebview(window)&&!R.isMicroApp()&&!R.isAndroid()?(console.error("JS SDK does not support this platform"),setTimeout(function(){fp.$emit("JSSDKLibInitError")},500)):(this._zoomSdk=new S({postMessage:this.postMessage,version:$}),this.setEventListener())}return R.prototype.setEventListener=function(){R.isWinWebview(window)?window.chrome.webview.addEventListener("message",this.zoomSdk.native2js):R.isMicroApp()&&window.microApp.addDataListener(this.zoomSdk.native2js,!1)},R.isDevMacOs=function(O){return O.chrome},R.isMacOs=function(O){return!O.chrome&&O.webkit&&(O.webkit.messageHandlers.jsOCHelper||O.webkit.messageHandlers.cciUIJSObj)},R.isWinCEF=function(O){return O.chrome&&O.webkit},R.isWinWebview=function(O){return O.chrome&&O.chrome.webview},R.isMicroApp=function(){return window.__MICRO_APP_ENVIRONMENT__},R.isAndroid=function(){return window.android},R.prototype.postMessage=function(O){try{var I=JSON.stringify(O);O.functionName!=="CCIUIAPI_OnRegisterSipCallService"&&O.functionName!=="CCIUIAPI_LogMessage"&&console.log("ZoomSDK send",O),R.isMicroApp()?gU(O):R.isWinCEF(window)?window.webkit.messageHandlers.jsOCHelper.postMessage(I):R.isMacOs(window)?window.webkit.messageHandlers.cciUIJSObj?window.webkit.messageHandlers.cciUIJSObj.postMessage(O):window.webkit.messageHandlers.jsOCHelper.postMessage(O):R.isWinWebview(window)?window.chrome.webview.postMessage(I):R.isAndroid()&&window.android.postMessage(I)}catch(A){console.log("postmessage faied: "+A)}},Object.defineProperty(R.prototype,"zoomSdk",{get:function(){return this._zoomSdk},enumerable:!1,configurable:!0}),R}(),k=new D().zoomSdk;return k}();window&&(window.zoomSdk=bs);function qn(e){if(!bs||!e){console.error("zoomSdk is falsy");return}bs.postJsMessage({functionName:"CCIUIAPI_CoBrowserSendMsg",params:{from:window.__id__,to:window.__parentid__,data:e}})}function nn(e,t={}){if(!bs){console.error("zoomSdk is falsy");return}bs.postJsMessage({functionName:e,params:{...t,windowId:window.__id__}})}function pp(e,t){if(!bs){console.error("zoomSdk is falsy");return}bs.busOn(e,t)}const Qn={NOTIFY_COBROWSING_RECORD_START:"NOTIFY_COBROWSING_RECORD_START",NOTIFY_COBROWSING_RECORD_STOP:"NOTIFY_COBROWSING_RECORD_STOP",NOTIFY_COBROWSING_RECORD_PAUSE:"NOTIFY_COBROWSING_RECORD_PAUSE",NOTIFY_COBROWSING_RECORD_RESUME:"NOTIFY_COBROWSING_RECORD_RESUME",NOTIFY_JOIN_COBROWSING_SESSION:"NOTIFY_JOIN_COBROWSING_SESSION",NOTIFY_LEAVE_COBROWSING_SESSION:"NOTIFY_LEAVE_COBROWSING_SESSION"},Bc={LEAVE_COBROWSING_SESSION:"LEAVE_COBROWSING_SESSION",COBROWSING_START_RECORD:"COBROWSING_START_RECORD",COBROWSING_STOP_RECORD:"COBROWSING_STOP_RECORD",COBROWSING_PAUSE_RECORD:"COBROWSING_PAUSE_RECORD",COBROWSING_RESUME_RECORD:"COBROWSING_RESUME_RECORD"},rn={CoBrowserSetSessionInfo:"CCIUIAPI_CoBrowserSetSessionInfo",CoBrowserSetMenuItem:"CCIUIAPI_CoBrowserSetMenuItem",CoBrowserCustomerJoin:"CCIUIAPI_CoBrowserCustomerJoin",CoBrowserCustomerLeave:"CCIUIAPI_CoBrowserCustomerLeave",CoBrowserSetSessionState:"CCIUIAPI_CoBrowserSetSessionState",CoBrowserRecordStatus:"CCIUIAPI_CoBrowserRecordStatus"};var Oe=(e=>(e[e.STOP=0]="STOP",e[e.START=1]="START",e[e.PAUSE=2]="PAUSE",e[e.RESUME=3]="RESUME",e))(Oe||{}),Fm=(e=>(e[e.CONNECT=-1]="CONNECT",e))(Fm||{}),Uc=(e=>(e[e.CUSTOMER_RECONNECT=-1]="CUSTOMER_RECONNECT",e[e.JOINED_SESSION_NOT_ACTIVE=-2]="JOINED_SESSION_NOT_ACTIVE",e[e.AGENT_RECONNECT=-3]="AGENT_RECONNECT",e))(Uc||{});const $m={wrapper:"anotation-wrapper",wrapperCustomer:"anotation-wrapper-customer",wrapperAgent:"anotation-wrapper-agent",controller:"anotation-controller",toolbar:"anotation-toolbar",openBtn:"anotation-open-btn",fabricContainer:"anotation-fabric-container",basic:"anotation-canvas",drawing:"anotation-canvas-drawing",subMenuWrapper:"anotation-sub-menu-wrapper"},zc=[0,.5,1,1.5,2,3],hU=()=>{const e=document.querySelector(`.${$m.wrapper}`);return e==null?void 0:e.classList.contains($m.drawing)},mU=(e,t,n)=>{let{offsetX:r,offsetY:o}=e.nativeEvent;if(!r&&!o){const a=e.target;if(!a)return{x:-1,y:-1,timeStamp:-1};const l=a.getBoundingClientRect(),c=a.offsetWidth/l.width,u=a.offsetHeight/l.height;r=(e.clientX-l.left)*c,o=(e.clientY-l.top)*u}const i=r/t,s=o/n;return{x:i,y:s,timeStamp:+Date.now()}};var Bm=(e=>(e.ReplayViewportClassName="zcb-replay-viewport",e))(Bm||{});const vU=()=>typeof window=="object";function yU(e){if(vU()){const t=encodeURI(e);return btoa(t)}else return Buffer.from(e).toString("base64")}const Um=e=>yU(e),w5="--";class CU{constructor({requestOrigin:t,parentFrameId:n}){this.parentFrameId=n;let r=Um(t);n&&(r=n+w5+r),this.frameId=r}equal({requestOrigin:t,parentFrameId:n}){return n===this.parentFrameId&&this.frameId===n+w5+Um(t)}isParentFrame(t){return this.frameId===t}isSubFrame(t){return this.parentFrameId===t}}class SU{constructor(t){this.frames=new Map,this.tabId=t}getFrame({requestOrigin:t,parentFrameId:n}){let r=null;return this.frames.forEach(o=>{o.equal({requestOrigin:t,parentFrameId:n})&&(r=o)}),r}checkAddFrame({requestOrigin:t,parentFrameId:n}){const r=this.getFrame({requestOrigin:t,parentFrameId:n});if(r)return r;if(this.tabId===n)return this.addFrame({requestOrigin:t,parentFrameId:n});let o=null;return this.frames.forEach(i=>{o||i.isParentFrame(n)&&(o=this.addFrame({requestOrigin:t,parentFrameId:n}))}),o}getSubFrames(t){const n=[];return this.frames.forEach(r=>{r.isSubFrame(t)&&n.push(r)}),n}addFrame({requestOrigin:t,parentFrameId:n}){const r=new CU({requestOrigin:t,parentFrameId:n});return this.frames.set(r.frameId,r),r}}class bU{constructor(){this.tabs=new Map}makeRequest({requestOrigin:t,parentFrameId:n}){let r="";return n?(this.tabs.forEach(o=>{if(r)return;const i=o.checkAddFrame({requestOrigin:t,parentFrameId:n});if(i){r=i.frameId;return}}),r):this.tabs.size?(this.tabs.forEach((o,i)=>{r||(r=i)}),r):(r=Um(t),this.tabs.set(r,new SU(r)),r)}makeViewerRequest({parentFrameId:t}){let n="";return this.tabs.forEach(r=>{var o;if(t){if(n)return;n=((o=r.getSubFrames(t)[0])==null?void 0:o.frameId)||""}else n=r.tabId}),n}}class EU{constructor(){this.rooms=new Map}makeRequest({roomId:t,requestOrigin:n,parentFrameId:r,isViewer:o}){this.rooms.get(t)||this.rooms.set(t,new bU);const i=this.rooms.get(t);return i?o?i.makeViewerRequest({parentFrameId:r}):i.makeRequest({requestOrigin:n,parentFrameId:r}):""}}const xU=new EU;typeof global<"u"&&(global.cpsRoomManager=xU);const wU="/co-browsing",TU=/cps-blob-([^?#\\/]+)/,T5=(e,t)=>`${e}${t}`,_5=(e,t)=>{const n={};for(const r in e){const o=e[r];typeof o=="string"?n[r]=T5(t,o):typeof o=="function"?n[r]=(...i)=>T5(t,o(...i)):typeof o=="object"&&(o instanceof RegExp||(n[r]=_5(o,t)))}return n};_5({log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getBlobUrl:e=>`/cps-blob-${e}`,getBlobUrlReg:TU}},wU),(()=>{const e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,t=typeof window<"u",n=typeof importScripts=="function",r=e&&!n,o=!e&&!t;return{isWorker:e,isBrowser:t,isBrowserWorker:n,isNode:o,isNodeWorker:r,name:n?"worker":t?"browser":o?"node":r?"node_worker":"unknow"}})();function _U(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();!o&&n.leading===!1&&(o=s);const a=t-(s-o),l=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=s,e.apply(l,i)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(l,i)},a))}}function I5(e,t,n={}){const r=_U(e,t,n);let o=null,i=null,s=null;return function(...a){o=a,i=this,s||(s=setTimeout(()=>{o&&(r.apply(i,o),o=null,s=null)},t)),r.apply(this,a)}}var gp={exports:{}},O5={};function A5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=A5(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function R5(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=A5(e))&&(r&&(r+=" "),r+=t);return r}const IU=Hr(Object.freeze(Object.defineProperty({__proto__:null,clsx:R5,default:R5},Symbol.toStringTag,{value:"Module"})));var vt={},uo={};Object.defineProperty(uo,"__esModule",{value:!0}),uo.dontSetMe=NU,uo.findInArray=OU,uo.int=PU,uo.isFunction=AU,uo.isNum=RU;function OU(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function AU(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function RU(e){return typeof e=="number"&&!isNaN(e)}function PU(e){return parseInt(e,10)}function NU(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var Es={};Object.defineProperty(Es,"__esModule",{value:!0}),Es.browserPrefixToKey=N5,Es.browserPrefixToStyle=kU,Es.default=void 0,Es.getPrefix=P5;const zm=["Moz","Webkit","O","ms"];function P5(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let r=0;r<zm.length;r++)if(N5(t,zm[r])in n)return zm[r];return""}function N5(e,t){return t?"".concat(t).concat(MU(e)):e}function kU(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function MU(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}Es.default=P5(),Object.defineProperty(vt,"__esModule",{value:!0}),vt.addClassName=L5,vt.addEvent=FU,vt.addUserSelectStyles=KU,vt.createCSSTransform=VU,vt.createSVGTransform=HU,vt.getTouch=GU,vt.getTouchIdentifier=YU,vt.getTranslation=jm,vt.innerHeight=zU,vt.innerWidth=jU,vt.matchesSelector=D5,vt.matchesSelectorAndParentsTo=LU,vt.offsetXYFromParent=WU,vt.outerHeight=BU,vt.outerWidth=UU,vt.removeClassName=F5,vt.removeEvent=$U,vt.removeUserSelectStyles=ZU;var er=uo,k5=DU(Es);function M5(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(M5=function(r){return r?n:t})(e)}function DU(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=M5(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let hp="";function D5(e,t){return hp||(hp=(0,er.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,er.isFunction)(e[n])})),(0,er.isFunction)(e[hp])?e[hp](t):!1}function LU(e,t,n){let r=e;do{if(D5(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function FU(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function $U(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function BU(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,er.int)(n.borderTopWidth),t+=(0,er.int)(n.borderBottomWidth),t}function UU(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,er.int)(n.borderLeftWidth),t+=(0,er.int)(n.borderRightWidth),t}function zU(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,er.int)(n.paddingTop),t-=(0,er.int)(n.paddingBottom),t}function jU(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,er.int)(n.paddingLeft),t-=(0,er.int)(n.paddingRight),t}function WU(e,t,n){const o=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-o.left)/n,s=(e.clientY+t.scrollTop-o.top)/n;return{x:i,y:s}}function VU(e,t){const n=jm(e,t,"px");return{[(0,k5.browserPrefixToKey)("transform",k5.default)]:n}}function HU(e,t){return jm(e,t,"")}function jm(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const s="".concat(typeof t.x=="string"?t.x:t.x+n),a="".concat(typeof t.y=="string"?t.y:t.y+n);i="translate(".concat(s,", ").concat(a,")")+i}return i}function GU(e,t){return e.targetTouches&&(0,er.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,er.findInArray)(e.changedTouches,n=>t===n.identifier)}function YU(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function KU(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}\n`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&L5(e.body,"react-draggable-transparent-selection")}function ZU(e){if(e)try{if(e.body&&F5(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function L5(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\\\s)".concat(t,"(?!\\\\S)")))||(e.className+=" ".concat(t))}function F5(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\\\s)".concat(t,"(?!\\\\S)"),"g"),"")}var fo={};Object.defineProperty(fo,"__esModule",{value:!0}),fo.canDragX=qU,fo.canDragY=QU,fo.createCoreData=tz,fo.createDraggableData=nz,fo.getBoundPosition=JU,fo.getControlPosition=ez,fo.snapToGrid=XU;var tr=uo,Wa=vt;function JU(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:rz(r);const o=Wm(e);if(typeof r=="string"){const{ownerDocument:i}=o,s=i.defaultView;let a;if(r==="parent"?a=o.parentNode:a=i.querySelector(r),!(a instanceof s.HTMLElement))throw new Error(\'Bounds selector "\'+r+\'" could not find an element.\');const l=a,c=s.getComputedStyle(o),u=s.getComputedStyle(l);r={left:-o.offsetLeft+(0,tr.int)(u.paddingLeft)+(0,tr.int)(c.marginLeft),top:-o.offsetTop+(0,tr.int)(u.paddingTop)+(0,tr.int)(c.marginTop),right:(0,Wa.innerWidth)(l)-(0,Wa.outerWidth)(o)-o.offsetLeft+(0,tr.int)(u.paddingRight)-(0,tr.int)(c.marginRight),bottom:(0,Wa.innerHeight)(l)-(0,Wa.outerHeight)(o)-o.offsetTop+(0,tr.int)(u.paddingBottom)-(0,tr.int)(c.marginBottom)}}return(0,tr.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,tr.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,tr.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,tr.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function XU(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]}function qU(e){return e.props.axis==="both"||e.props.axis==="x"}function QU(e){return e.props.axis==="both"||e.props.axis==="y"}function ez(e,t,n){const r=typeof t=="number"?(0,Wa.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const o=Wm(n),i=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,Wa.offsetXYFromParent)(r||e,i,n.props.scale)}function tz(e,t,n){const r=!(0,tr.isNum)(e.lastX),o=Wm(e);return r?{node:o,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:o,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function nz(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function rz(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Wm(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var mp={},vp={};Object.defineProperty(vp,"__esModule",{value:!0}),vp.default=oz;function oz(){}Object.defineProperty(mp,"__esModule",{value:!0}),mp.default=void 0;var Vm=sz(p),Mn=Gm(fy),iz=Gm(Sa),on=vt,Ni=fo,Hm=uo,jc=Gm(vp);function Gm(e){return e&&e.__esModule?e:{default:e}}function $5(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return($5=function(r){return r?n:t})(e)}function sz(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=$5(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function mn(e,t,n){return t=az(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function az(e){var t=lz(e,"string");return typeof t=="symbol"?t:String(t)}function lz(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const zr={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let ki=zr.mouse,yp=class extends Vm.Component{constructor(){super(...arguments),mn(this,"dragging",!1),mn(this,"lastX",NaN),mn(this,"lastY",NaN),mn(this,"touchIdentifier",null),mn(this,"mounted",!1),mn(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,on.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,on.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const o=(0,on.getTouchIdentifier)(t);this.touchIdentifier=o;const i=(0,Ni.getControlPosition)(t,o,this);if(i==null)return;const{x:s,y:a}=i,l=(0,Ni.createCoreData)(this,s,a);(0,jc.default)("DraggableCore: handleDragStart: %j",l),(0,jc.default)("calling",this.props.onStart),!(this.props.onStart(t,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,on.addUserSelectStyles)(r),this.dragging=!0,this.lastX=s,this.lastY=a,(0,on.addEvent)(r,ki.move,this.handleDrag),(0,on.addEvent)(r,ki.stop,this.handleDragStop))}),mn(this,"handleDrag",t=>{const n=(0,Ni.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:o}=n;if(Array.isArray(this.props.grid)){let a=r-this.lastX,l=o-this.lastY;if([a,l]=(0,Ni.snapToGrid)(this.props.grid,a,l),!a&&!l)return;r=this.lastX+a,o=this.lastY+l}const i=(0,Ni.createCoreData)(this,r,o);if((0,jc.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(t,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=o}),mn(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,Ni.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:o}=n;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,c=o-this.lastY||0;[l,c]=(0,Ni.snapToGrid)(this.props.grid,l,c),r=this.lastX+l,o=this.lastY+c}const i=(0,Ni.createCoreData)(this,r,o);if(this.props.onStop(t,i)===!1||this.mounted===!1)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,on.removeUserSelectStyles)(a.ownerDocument),(0,jc.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,jc.default)("DraggableCore: Removing handlers"),(0,on.removeEvent)(a.ownerDocument,ki.move,this.handleDrag),(0,on.removeEvent)(a.ownerDocument,ki.stop,this.handleDragStop))}),mn(this,"onMouseDown",t=>(ki=zr.mouse,this.handleDragStart(t))),mn(this,"onMouseUp",t=>(ki=zr.mouse,this.handleDragStop(t))),mn(this,"onTouchStart",t=>(ki=zr.touch,this.handleDragStart(t))),mn(this,"onTouchEnd",t=>(ki=zr.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,on.addEvent)(t,zr.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,on.removeEvent)(n,zr.mouse.move,this.handleDrag),(0,on.removeEvent)(n,zr.touch.move,this.handleDrag),(0,on.removeEvent)(n,zr.mouse.stop,this.handleDragStop),(0,on.removeEvent)(n,zr.touch.stop,this.handleDragStop),(0,on.removeEvent)(t,zr.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,on.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:iz.default.findDOMNode(this)}render(){return Vm.cloneElement(Vm.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};mp.default=yp,mn(yp,"displayName","DraggableCore"),mn(yp,"propTypes",{allowAnyClick:Mn.default.bool,children:Mn.default.node.isRequired,disabled:Mn.default.bool,enableUserSelectHack:Mn.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable\'s offsetParent must be a DOM Node.")},grid:Mn.default.arrayOf(Mn.default.number),handle:Mn.default.string,cancel:Mn.default.string,nodeRef:Mn.default.object,onStart:Mn.default.func,onDrag:Mn.default.func,onStop:Mn.default.func,onMouseDown:Mn.default.func,scale:Mn.default.number,className:Hm.dontSetMe,style:Hm.dontSetMe,transform:Hm.dontSetMe}),mn(yp,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=d(p),n=u(fy),r=u(Sa),o=u(IU),i=vt,s=fo,a=uo,l=u(mp),c=u(vp);function u(v){return v&&v.__esModule?v:{default:v}}function f(v){if(typeof WeakMap!="function")return null;var C=new WeakMap,S=new WeakMap;return(f=function(w){return w?S:C})(v)}function d(v,C){if(!C&&v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var S=f(C);if(S&&S.has(v))return S.get(v);var w={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in v)if(E!=="default"&&Object.prototype.hasOwnProperty.call(v,E)){var M=_?Object.getOwnPropertyDescriptor(v,E):null;M&&(M.get||M.set)?Object.defineProperty(w,E,M):w[E]=v[E]}return w.default=v,S&&S.set(v,w),w}function h(){return h=Object.assign?Object.assign.bind():function(v){for(var C=1;C<arguments.length;C++){var S=arguments[C];for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(v[w]=S[w])}return v},h.apply(this,arguments)}function g(v,C,S){return C=m(C),C in v?Object.defineProperty(v,C,{value:S,enumerable:!0,configurable:!0,writable:!0}):v[C]=S,v}function m(v){var C=b(v,"string");return typeof C=="symbol"?C:String(C)}function b(v,C){if(typeof v!="object"||v===null)return v;var S=v[Symbol.toPrimitive];if(S!==void 0){var w=S.call(v,C||"default");if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(v)}class y extends t.Component{static getDerivedStateFromProps(C,S){let{position:w}=C,{prevPropsPosition:_}=S;return w&&(!_||w.x!==_.x||w.y!==_.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:_}),{x:w.x,y:w.y,prevPropsPosition:{...w}}):null}constructor(C){super(C),g(this,"onDragStart",(S,w)=>{if((0,c.default)("Draggable: onDragStart: %j",w),this.props.onStart(S,(0,s.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),g(this,"onDrag",(S,w)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",w);const _=(0,s.createDraggableData)(this,w),E={x:_.x,y:_.y,slackX:0,slackY:0};if(this.props.bounds){const{x:$,y:D}=E;E.x+=this.state.slackX,E.y+=this.state.slackY;const[k,R]=(0,s.getBoundPosition)(this,E.x,E.y);E.x=k,E.y=R,E.slackX=this.state.slackX+($-E.x),E.slackY=this.state.slackY+(D-E.y),_.x=E.x,_.y=E.y,_.deltaX=E.x-this.state.x,_.deltaY=E.y-this.state.y}if(this.props.onDrag(S,_)===!1)return!1;this.setState(E)}),g(this,"onDragStop",(S,w)=>{if(!this.state.dragging||this.props.onStop(S,(0,s.createDraggableData)(this,w))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",w);const E={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:$,y:D}=this.props.position;E.x=$,E.y=D}this.setState(E)}),this.state={dragging:!1,dragged:!1,x:C.position?C.position.x:C.defaultPosition.x,y:C.position?C.position.y:C.defaultPosition.y,prevPropsPosition:{...C.position},slackX:0,slackY:0,isElementSVG:!1},C.position&&!(C.onDrag||C.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var C,S;return(C=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&C!==void 0?C:r.default.findDOMNode(this)}render(){const{axis:C,bounds:S,children:w,defaultPosition:_,defaultClassName:E,defaultClassNameDragging:M,defaultClassNameDragged:$,position:D,positionOffset:k,scale:R,...O}=this.props;let I={},A=null;const N=!!!D||this.state.dragging,T=D||_,L={x:(0,s.canDragX)(this)&&N?this.state.x:T.x,y:(0,s.canDragY)(this)&&N?this.state.y:T.y};this.state.isElementSVG?A=(0,i.createSVGTransform)(L,k):I=(0,i.createCSSTransform)(L,k);const z=(0,o.default)(w.props.className||"",E,{[M]:this.state.dragging,[$]:this.state.dragged});return t.createElement(l.default,h({},O,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(w),{className:z,style:{...w.props.style,...I},transform:A}))}}e.default=y,g(y,"displayName","Draggable"),g(y,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),g(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(O5);const{default:B5,DraggableCore:cz}=O5;gp.exports=B5,gp.exports.default=B5,gp.exports.DraggableCore=cz;var uz=gp.exports;const U5=Xo(uz);function z5({children:e,cobrowse:t,isClickThroughEnabled:n,isMouseWheelZoomEnabled:r,isFitToWindowOrderEnabled:o=!1}){const{scale:i,setScale:s,setFitToWindowScale:a,viewportHeight:l,viewportWidth:c,scaleValueList:u,setScaleValueList:f,isRemoteControlling:d}=Je(L=>L),[h,g]=p.useState(0),[m,b]=p.useState(0),[y,v]=p.useState(0),[C,S]=p.useState(0),[w,_]=p.useState(0),[E,M]=p.useState(0),[$,D]=p.useState(1),[k,R]=p.useState({x:0,y:0}),O=p.useRef(null),I=p.useRef(null),A=p.useMemo(()=>i===0?$:i,[$,i]),P=p.useCallback(()=>{const L=O.current;I.current&&L&&requestAnimationFrame(()=>{let B=0,V=0,H=0,K=0;if(i>$){const ne=Math.max(0,c*i-w),ge=Math.max(0,l*i-E);B=-ne/2,V=-ge/2,H=ne/2,K=ge/2}g(B),b(V),S(H),v(K);let G=k.x,te=k.y;G<B?G=B:G>H&&(G=H),te<V?te=V:te>K&&(te=K),(G!==k.x||te!==k.y)&&R({x:G,y:te})})},[i,$,k.x,k.y,w,E,c,l]);p.useEffect(()=>P(),[A,w,P]),p.useEffect(()=>{if(O.current&&l&&c){const z=Math.min(w/c,E/l);D(z),a(z),f([...new Set(zc.map(B=>o&&B===0?z:B).sort((B,V)=>B-V).map(B=>B===z?0:B))])}},[O,l,c,E,w,a,f,o]),p.useEffect(()=>{const L=O.current,z=new ResizeObserver(B=>{B.forEach(V=>{_(V.contentRect.width),M(V.contentRect.height)})});return L&&z.observe(L),()=>{L&&z.disconnect()}},[]),p.useEffect(()=>{const L=O.current,z=B=>{if(B.preventDefault(),!!r&&(B.ctrlKey||B.metaKey)){const V=B.deltaY<0,H=u.indexOf(i);if(V&&H===u.length-1||!V&&H===0)return;s(u[H+(V?1:-1)])}};return L&&L.addEventListener("wheel",z,{passive:!1}),()=>{L&&L.removeEventListener("wheel",z)}},[r,i,u,s]);const N=p.useMemo(()=>I5(L=>{var B;const z=mU(L,c,l);z.timeStamp!==-1&&((B=t==null?void 0:t.session)==null||B.updateFlyingCursorPosition(z))},200),[c,l,t==null?void 0:t.session]),T=p.useMemo(()=>I5(L=>{var V,H;if((V=L.target)==null?void 0:V.closest(`.${Bm.ReplayViewportClassName}`))return;const B={x:0,y:0,timeStamp:-1};(H=t==null?void 0:t.session)==null||H.updateFlyingCursorPosition(B)},200),[t==null?void 0:t.session]);return x("div",{style:{width:"100%",height:"100%",overflow:"clip",pointerEvents:n?"none":"inherit",userSelect:"none"},ref:O,onMouseMove:T,children:x(U5,{bounds:{left:h,top:m,right:C,bottom:y},position:k,onStart:()=>{if(hU())return!1},onStop:(L,z)=>{R({x:z.x,y:z.y})},children:x("div",{style:{width:"100%",height:"100%"},children:x("div",{style:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},children:q("div",{style:{position:"absolute",margin:"auto",width:`${c}px`,height:`${l}px`,transform:`scale(${A})`,overflow:"hidden",borderRadius:`${8/A}px`,background:"#fff"},className:Bm.ReplayViewportClassName,onMouseMove:N,ref:I,children:[e,x("div",{className:"zcb-fix-safari-event-penetration-class",style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,bottom:0,right:0,pointerEvents:d?"none":"inherit"}})]})})})})})}var dz={name:"1sr43fr",styles:"position:fixed!important;z-index:100000;left:200px;bottom:20px;display:flex"},fz={name:"v0k2hx",styles:"position:fixed!important;z-index:100000;left:20px;bottom:20px;display:flex"};function pz(){const{session:e}=Je(a=>a),{isStartedRecord:t,isPausedRecord:n,isLoadingRecord:r,setIsLoadingRecord:o}=Hf(a=>a);function i(a){a?e.startRecord():e.stopRecord(),o(!0)}function s(a){a?e.pauseRecord():e.resumeRecord(),o(!0)}return q(sr,{children:[x(Xn,{className:"zcb-follower-record-btn",danger:!0,loading:r,css:fz,onClick:()=>i(!t),children:t?"stop record":"start record"}),t&&x(Xn,{className:"zcb-follower-record-btn",danger:!0,loading:r,css:dz,onClick:()=>s(!n),children:n?"resume record":"pause record"})]})}const j5=2*60*1e3,gz=2*60,W5=3*60*1e3;class Ym{constructor(){window.ZCB_CoBrowseConfigController=this,this.requestNpmModeAgentConfig()}static create(){return window.ZCB_CoBrowseConfigController||new Ym}getCoBrowsingConfig(t){var n;return t?window.ZMCoBrowsingConfig?window.ZMCoBrowsingConfig[t]:(n=this.coBrowsingConfig)==null?void 0:n[t]:window.ZMCoBrowsingConfig||this.coBrowsingConfig}setCoBrowsingConfig(t){this.coBrowsingConfig={...this.coBrowsingConfig,...t}}requestNpmModeAgentConfig(){var t,n,r;(t=window.ZCB_NPM_SDK_AGENT_MAIN)!=null&&t.isInnerFrame(document)&&window.ZCB_CoBrowseConfigController.setCoBrowsingConfig({isViewer:(n=window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)==null?void 0:n.isViewer,appKey:(r=window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)==null?void 0:r.appKey,...window.parent.ZCB_CoBrowseConfigController.coBrowsingConfig})}}const nr=Ym.create(),hz=()=>nr.getCoBrowsingConfig("isLoadFromSDKEntry")===!0,mz=(e,t)=>{try{const n=new URL(e),r=new URLSearchParams(n.search);if(!t)throw new Error("key is empty");const o=r.get(t);if(!o)throw new Error("value is empty");return o}catch{return""}},Km=()=>!!window.ZCB_NPM_SDK_AGENT_MAIN||window.ZCB_NPM_SDK_CUSTOMER_MAIN,Wc=()=>window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT,V5=()=>nr.getCoBrowsingConfig("sdkVersion"),vz=()=>!!nr.getCoBrowsingConfig("originalSdkVersion");function yz(){return document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight}function Cz(){return document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth}Cz(),yz();const H5="3.7.7",Sz=H5,Va=typeof Buffer=="function",G5=typeof TextDecoder=="function"?new TextDecoder:void 0,Y5=typeof TextEncoder=="function"?new TextEncoder:void 0,bz="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Vc=Array.prototype.slice.call(bz),Cp=(e=>{const t={};return e.forEach((n,r)=>t[n]=r),t})(Vc),Ez=/^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/,Kt=String.fromCharCode.bind(String),K5=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Z5=e=>e.replace(/=/g,"").replace(/[+\\/]/g,t=>t=="+"?"-":"_"),J5=e=>e.replace(/[^A-Za-z0-9\\+\\/]/g,""),X5=e=>{let t,n,r,o,i="";const s=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|o,i+=Vc[t>>18&63]+Vc[t>>12&63]+Vc[t>>6&63]+Vc[t&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Zm=typeof btoa=="function"?e=>btoa(e):Va?e=>Buffer.from(e,"binary").toString("base64"):X5,Jm=Va?e=>Buffer.from(e).toString("base64"):e=>{const n=[];for(let r=0,o=e.length;r<o;r+=4096)n.push(Kt.apply(null,e.subarray(r,r+4096)));return Zm(n.join(""))},Sp=(e,t=!1)=>t?Z5(Jm(e)):Jm(e),xz=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Kt(192|t>>>6)+Kt(128|t&63):Kt(224|t>>>12&15)+Kt(128|t>>>6&63)+Kt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Kt(240|t>>>18&7)+Kt(128|t>>>12&63)+Kt(128|t>>>6&63)+Kt(128|t&63)}},wz=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g,q5=e=>e.replace(wz,xz),Q5=Va?e=>Buffer.from(e,"utf8").toString("base64"):Y5?e=>Jm(Y5.encode(e)):e=>Zm(q5(e)),Ha=(e,t=!1)=>t?Z5(Q5(e)):Q5(e),e3=e=>Ha(e,!0),Tz=/[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g,_z=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return Kt((n>>>10)+55296)+Kt((n&1023)+56320);case 3:return Kt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Kt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},t3=e=>e.replace(Tz,_z),n3=e=>{if(e=e.replace(/\\s+/g,""),!Ez.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,o;for(let i=0;i<e.length;)t=Cp[e.charAt(i++)]<<18|Cp[e.charAt(i++)]<<12|(r=Cp[e.charAt(i++)])<<6|(o=Cp[e.charAt(i++)]),n+=r===64?Kt(t>>16&255):o===64?Kt(t>>16&255,t>>8&255):Kt(t>>16&255,t>>8&255,t&255);return n},Xm=typeof atob=="function"?e=>atob(J5(e)):Va?e=>Buffer.from(e,"base64").toString("binary"):n3,r3=Va?e=>K5(Buffer.from(e,"base64")):e=>K5(Xm(e).split("").map(t=>t.charCodeAt(0))),o3=e=>r3(i3(e)),Iz=Va?e=>Buffer.from(e,"base64").toString("utf8"):G5?e=>G5.decode(r3(e)):e=>t3(Xm(e)),i3=e=>J5(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),qm=e=>Iz(i3(e)),Oz=e=>{if(typeof e!="string")return!1;const t=e.replace(/\\s+/g,"").replace(/={0,2}$/,"");return!/[^\\s0-9a-zA-Z\\+/]/.test(t)||!/[^\\s0-9a-zA-Z\\-_]/.test(t)},s3=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),a3=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,s3(n));e("fromBase64",function(){return qm(this)}),e("toBase64",function(t){return Ha(this,t)}),e("toBase64URI",function(){return Ha(this,!0)}),e("toBase64URL",function(){return Ha(this,!0)}),e("toUint8Array",function(){return o3(this)})},l3=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,s3(n));e("toBase64",function(t){return Sp(this,t)}),e("toBase64URI",function(){return Sp(this,!0)}),e("toBase64URL",function(){return Sp(this,!0)})},c3={version:H5,VERSION:Sz,atob:Xm,atobPolyfill:n3,btoa:Zm,btoaPolyfill:X5,fromBase64:qm,toBase64:Ha,encode:Ha,encodeURI:e3,encodeURL:e3,utob:q5,btou:t3,decode:qm,isValid:Oz,fromUint8Array:Sp,toUint8Array:o3,extendString:a3,extendUint8Array:l3,extendBuiltins:()=>{a3(),l3()}};function Az(e){let t=!0;try{return c3.encode(e,!0)}catch{t=!1}if(!t)try{return btoa(e)}catch{}return e}function u3(e){let t=!0;try{return c3.decode(e)}catch{t=!1}if(!t)try{return atob(e)}catch{}return e}function Rz(e){let t="";try{t=u3(e)}catch{t=e}return t}function Pz(){const e=navigator.userAgent;return/Safari/.test(e)&&!/Chrome/.test(e)}function d3(){const e=navigator.userAgent;return/iPhone|iPad|iPod/.test(e)}function f3(){return Pz()||d3()}function p3(){const e=navigator.userAgent;return/ZoomApps/.test(e)&&!/Chrome/.test(e)}function Nz(){return navigator.userAgent.match(/Android/i)}function Hc(){return d3()||Nz()||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/Windows Phone/i)}const kz=e=>!![Ri.RECORD_START_FAILED,Ri.RECORD_STOP_FAILED,Ri.RECORD_PAUSE_FAILED,Ri.RECORD_RESUME_FAILED].includes(e),Mz=e=>!![Pm.DUPLICATE_SESSION,Pm.REFRESH_PIN_CODE_FAILED].includes(e);function g3(){return window.opener&&window.opener.location&&typeof window.opener.location=="object"&&Object.keys(window.opener.location).includes("origin")&&window.opener.location.origin||"*"}function Dz(e){if(Km()){if(window.parent){const t=window.parent.location&&typeof window.parent.location=="object"&&Object.keys(window.parent.location).includes("origin")?window.parent.location.origin:"*";window.parent.postMessage(e,t)}return}if(window.opener)window.opener.postMessage(e,g3());else if(window.top){const t=window.top.location&&typeof window.top.location=="object"&&Object.keys(window.top.location).includes("origin")?window.top.location.origin:"*";window.top.postMessage(e,t)}else{const t=window.location&&typeof window.location=="object"&&Object.keys(window.location).includes("origin")?window.location.origin:"*";window.postMessage(e,t)}}class h3 extends Error{constructor(t,n=-1,r=-1){super(t),this.msg=t,this.code=n,this.statusCode=r}}function Lz(e,t){const{retry:n,handleJsonResponse:r,...o}=t||{},i=r||(async c=>{if(c.ok)return c;{const u=await c.json();throw new h3(u.message,u.code,c.status)}}),s=Object.assign({limit:3},n),a=s.limit,l=s.delay;return new Promise(function(c,u){const f=async function(h){try{const g=await fetch(e,o),m=await i(g);c(m);return}catch(g){const m=g?g.statusCode??g.status??1/0:1/0;if(h>=a||m<500&&m!==0){!g||g instanceof TypeError&&/Load failed|fetch/i.test(g.message)?u(new h3(XB[km.NETWORK_ERROR],km.NETWORK_ERROR)):u(g);return}d(h)}};function d(h){l!==void 0?window.setTimeout(()=>{f(++h)},l):f(++h)}f(0)})}const Fz=()=>!!["test-zcb-go.zoomdev.us","test-zcb-us01.zoomdev.us","test-zcb.zoomdev.us"].includes(window.location.hostname);function bp(e){let t=Math.ceil(e/1e3);const n=Math.floor(t/3600);t%=3600;const r=Math.floor(t/60),o=t%60,i=String(n).padStart(2,"0"),s=String(r).padStart(2,"0"),a=String(o).padStart(2,"0");return`${i}:${s}:${a}`}function xs(e){if(window.opener)window.opener.postMessage(e,g3());else if(window.top){const t=window.top.location&&typeof window.top.location=="object"&&Object.keys(window.top.location).includes("origin")?window.top.location.origin:"*";window.top.postMessage(e,t)}else{const t=window.location&&typeof window.location=="object"&&Object.keys(window.location).includes("origin")?window.location.origin:"*";window.postMessage(e,t)}}var $z={name:"y9cbwx",styles:"font-size:24px;color:#4e89ff;margin-bottom:20px"},Bz={name:"17c3ltl",styles:"text-align:center;font-size:16px"};const Ep=({text:e})=>q("div",{css:Bz,"aria-live":"polite","aria-label":e,children:[x(U$,{css:$z}),x("div",{children:e})]});var Uz={name:"1rdzh27",styles:"font-size:24px;margin-bottom:20px"},zz={name:"17c3ltl",styles:"text-align:center;font-size:16px"};const m3=({text:e})=>q("div",{css:zz,children:[x(B$,{css:Uz}),x("div",{children:e})]});var Vo=(e=>(e[e.Loading=0]="Loading",e[e.Waiting=1]="Waiting",e[e.End=2]="End",e[e.Reconnecting=3]="Reconnecting",e[e.WaitLeaderReconnecting=4]="WaitLeaderReconnecting",e))(Vo||{}),jz={name:"1azakc",styles:"text-align:center"},Wz={name:"3k5mhv",styles:"font-weight:700;font-size:24px"},Vz={name:"1huv1ah",styles:"margin-top:60px"};const Hz=function({status:e,leaderName:t,endSession:n,scale:r,isFirstConnected:o}){const{showStopDialog:i}=cp(n),[s,a]=p.useState(!1),l=o&&!s&&e===1,c=p.useCallback(()=>{i()},[i]),{t:u}=ds(),f=h=>{a(h)},d=p.useMemo(()=>e===2?x("div",{}):s?x(Ep,{text:u(Ss.AUTO_END_SESSION)}):e===0||e===3?x(Ep,{text:u(e===3?Ss.RECONNECTING_SESSION_CC:Ss.CONNECTING_SESSION_CC)}):e===4?x(m3,{text:u("NAME_IS_RECONNECTING",{name:t})}):q("div",{css:jz,children:[x("div",{css:Wz,children:u(f5.WAIT_CONSUMER)}),x(Xn,{danger:!0,css:Vz,onClick:c,children:u("STOP_COBROWSE")})]}),[s,u,e,t,c]);return q("div",{css:ee({display:"flex",width:"100vw",height:"100vh",maxHeight:"100svh",background:"#111111",color:"#F5F5F5",fontSize:"16px",fontWeight:"400",justifyContent:"center",alignItems:"center",position:"fixed",top:"0",left:"0",...r!==1?{scale:r+""}:{}},"",""),children:[l&&x(v3,{status:e,handleTimerOver:f}),d]})};function Gz(){return x("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM10 4.375C10.3452 4.375 10.625 4.65482 10.625 5V9.375H13.75C14.0952 9.375 14.375 9.65482 14.375 10C14.375 10.3452 14.0952 10.625 13.75 10.625H10C9.65482 10.625 9.375 10.3452 9.375 10V5C9.375 4.65482 9.65482 4.375 10 4.375Z",fill:"#F2F8FF"})})}var Yz={name:"1u4mlz2",styles:"width:20px;text-align:center;display:inline-flex;justify-content:center;align-items:center;margin-right:8px"},Kz={name:"61p8ak",styles:"height:40px;position:absolute;top:60px;background:#27282b;border:1px solid #3b3f44;border-radius:12px;padding:8px;box-sizing:border-box;font-size:12px;display:flex;align-items:center"};const v3=function({status:e,handleTimerOver:t}){const{t:n}=ds(),[r,o]=p.useState(0),[i,s]=p.useState(0),a=p.useRef(null);p.useMemo(()=>{if(!f3()&&!p3())return"";const h=bp(i);if(a.current){const g=n("SESSION_TIMER",{time:h});a.current.innerText=g}return bp(i)},[i,n]);const l=p.useMemo(()=>bp(i),[i]),c=p.useRef(null),u=()=>{o(+new Date+W5),s(W5)};p.useEffect(()=>{(Ho.PinCode||e===Vo.Waiting)&&u()},[e]);const f=p.useCallback(()=>{c.current&&d(),c.current=setTimeout(()=>{i>0?s(r-+new Date):(s(0),t&&t(!0)),f()},1e3)},[r,i,t]),d=()=>{c.current&&(clearInterval(c.current),c.current=null)};return p.useEffect(()=>((i>0&&e===Ho.PinCode||e===Vo.Waiting)&&f(),()=>{d()}),[i,r,e,f]),q("div",{className:"session-timer",tabIndex:0,css:Kz,children:[x("div",{css:Yz,children:x(Gz,{})}),f3()||p3()?x("span",{ref:a}):q("span",{children:[" ",n("SESSION_TIMER",{time:l})]})]})};var Ho=(e=>(e[e.Loading=0]="Loading",e[e.PinCode=1]="PinCode",e[e.End=2]="End",e[e.Reconnecting=3]="Reconnecting",e[e.WaitLeaderReconnecting=4]="WaitLeaderReconnecting",e))(Ho||{}),Zz={name:"1r5ag4l",styles:"display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#7ab1f4;position:absolute;line-height:0;&:hover{color:#0e72ed;}"},Jz={name:"vpt023",styles:"border:0px!important;height:16px!important;min-height:16px!important;width:16px!important;min-width:16px!important;margin-left:10px;margin-bottom:2px;&:focus,&:hover,&:active{outline:none!important;background:transparent!important;border:0px!important;}"},Xz={name:"1azakc",styles:"text-align:center"},qz={name:"305c3w",styles:"font-weight:700;font-size:24px;line-height:32px;margin-top:33px;margin-bottom:4px"},Qz={name:"1huv1ah",styles:"margin-top:60px"};const ej=p.forwardRef(({status:e,pinCode:t,leaderName:n,endSession:r,refreshPinCode:o,scale:i,isFirstConnected:s},a)=>{const{showStopDialog:l}=cp(r),[c,u]=p.useState(!1),[f,d]=p.useState(0),[h,g]=p.useState(0),m=s&&!c&&e===1,b=p.useMemo(()=>bp(h),[h]),y=p.useRef(null),v=p.useCallback(()=>{l()},[l]),C=p.useCallback(()=>{o()},[o]);p.useImperativeHandle(a,()=>({resetTimer(){d(+new Date+j5),g(j5)}})),p.useEffect(()=>(h>0&&e===1&&(y.current=setInterval(()=>{g(f-+new Date)},1e3)),()=>{y.current&&(clearInterval(y.current),y.current=null)}),[h,f,e]);const{t:S}=ds(),w=E=>{u(E)},_=p.useMemo(()=>e===2?x("div",{}):c?x(Ep,{text:S(Ss.AUTO_END_SESSION)}):e===0||e===3?x(Ep,{text:S(e===3?Ss.RECONNECTING_SESSION_CC:Ss.CONNECTING_SESSION_CC)}):e===4?x(m3,{text:S("NAME_IS_RECONNECTING",{name:n})}):q("div",{css:Xz,children:[x("div",{tabIndex:0,children:S(d5.GIVE_CONSUMER_CODE_CC)}),x("div",{css:qz,id:"pinCodeTxt",tabIndex:0,children:t}),q("div",{css:ee({fontWeight:"400",fontSize:"16px",lineHeight:"20px",color:h>3e4?"#98A0A9":"#ED4D6A"},"",""),children:[x("span",{tabIndex:0,children:S("REFRESHES_IN_TIME",{time:b})}),x(xB,{title:S("REGENERATE_THE_PARING_CODE"),placement:"bottom-start",children:x(Xn,{variant:"icon",type:"tertiary",size:"small","aria-label":S("REGENERATE_THE_PARING_CODE"),onClick:C,css:Jz,children:x("span",{css:Zz,children:x(z$,{})})})})]}),x(Xn,{danger:!0,css:Qz,onClick:v,children:S("STOP_COBROWSE")})]}),[c,e,n,S,b,C,v,h,t]);return q("div",{css:ee({display:"flex",width:"100vw",height:"100vh",maxHeight:"100svh",background:"#111111",color:"#F5F5F5",fontSize:"16px",fontWeight:"400",justifyContent:"center",alignItems:"center",position:"fixed",top:"0",left:"0",...i!==1?{scale:i+""}:{}},"",""),children:[m&&x(v3,{status:e,handleTimerOver:w}),_]})}),fY="",tj=window.ZCBCoChannel.makeLogger,y3=tj(["CoBrowsing Event","COMMON"]),xp=()=>{const{session:e,isEndButtonLoading:t}=Je(r=>r);return{handleEndSession:p.useCallback(r=>{var o;t||e&&(r==="leave"?(y3.log("[PAGE CALL][EVENT] handleEndSession trigger leave"),e.leave()):(y3.log("[PAGE CALL][EVENT] handleEndSession trigger end"),(o=e==null?void 0:e.end)==null||o.call(e)))},[e,t])}};var nj={name:"1h308zk",styles:"margin-top:16px;text-align:right;margin-right:-24px"},rj={name:"1hgvsj0",styles:"letter-spacing:-0.15px"};function oj(){const{setIsOtherSideReconnecting:e}=Je(g=>g),{setShowMonitoringRecordingMessage:t}=Hf(g=>g),{handleEndSession:n}=xp(),{showStopDialog:r}=cp(n),o=p.useRef(null),i=p.useRef(null),{t:s}=ds(),a=p.useCallback(g=>{Mc.info({content:x("div",{children:g}),duration:5e3,className:"zcb-follower-joined-toast zcb-toast-dark-mode cobrowse-cc-module",icon:x(sr,{}),closable:!0,okText:s("OK")})},[s]),l=p.useCallback((g,m=!1)=>{o.current||(e(!0),o.current=Mc.warn({content:x("div",{children:g}),duration:0,className:`zcb-leader-reconnect-toast cobrowse-cc-module ${so} ${m?"zcb-toast-dark-mode":""}`}))},[e]),c=p.useCallback(()=>{var g,m;i.current&&((m=(g=i.current)==null?void 0:g.destroy)==null||m.call(g),i.current=null)},[]),u=p.useCallback((g,m=!1)=>{c();const b=()=>{c(),t(!1)};i.current=Mc.info({content:x("div",{children:g}),icon:x(sr,{}),duration:5e3,className:`zcb-leader-legal-consent-toast ${so} ${m?"zcb-toast-dark-mode":""}`,closable:!0,onClose(){b()}}),setTimeout(b,5e3)},[c,t]),f=p.useCallback((g,m=!1)=>{o.current||(e(!0),o.current=Mc.warn({content:q("div",{children:[g,x("div",{css:nj,children:x(Xn,{danger:!0,size:"medium",onClick:()=>r(),className:"zcb-leader-leave-btn",css:rj,children:s("STOP_COBROWSE")})})]}),duration:0,className:`zcb-leader-reconnect-toast cobrowse-cc-module ${so} ${m?"zcb-toast-dark-mode":""}`}))},[e,r,s]),d=p.useCallback(()=>{o.current&&(e(!1),o.current.destroy(),o.current=null)},[e]),h=p.useCallback(g=>{switch(g.toastType){case u5.CC_UI_SESSION_END:{Mc.success({content:x("div",{children:s(g.msg)}),duration:5e3,className:"zcb-leader-end-toast cobrowse-cc-module",closable:!0});break}}},[s]);return{showFollowerJoinedToast:a,showLeaderReconnectToast:f,showMonitoringRecordingMessageToast:u,hideMonitoringRecordingMessageToast:c,showReconnectToast:l,hideReconnectToast:d,showStoreToast:h}}const ij=zc.reduce((e,t)=>{const n=t===0?{text:"FIT_TO_WINDOW"}:{text:"PERCENTAGE",percent:Math.round(t*100)};return e[t*100]=n,e},{}),C3=(()=>{const e=[],t=n=>{e.push(n)};return Object.entries(ij).forEach(([n,r])=>{t(r)}),t("SeperateLine"),t({text:"ANNOTATION"}),e})();function sj(e,t){const n=[];return e.forEach(r=>{if(typeof r=="string"){n.push(r);return}r.percent===100&&(r.text==="PERCENTAGE"||r.text==="PERCENTAGE_ORIGINAL_SIZE")?r.text="PERCENTAGE_ORIGINAL_SIZE":(r.text==="FIT_TO_WINDOW"||r.text==="FIT_TO_WINDOW_PERCENTAGE")&&t>0&&(r.text="FIT_TO_WINDOW_PERCENTAGE",r.percent=Math.round(t*100)),n.push(r)}),n}const aj=e=>zc.indexOf(e),lj=window.ZCBCoChannel.makeLogger,cj=lj(["CoBrowsing Page","CC"]);let Ga;function uj(){Ga==null||Ga.destroy(),Ga=null}var dj={name:"1w3ndlg",styles:"font-size:14px;font-weight:400;color:#555B62"};function fj(){const{t:e}=ds(),t=p.useCallback(()=>{cj.log("[PAGE CALL][BUTTON] useAgentRecordDialog trigger cleanAgentRecordDialog"),uj()},[]);return{showAgentRecordFailedDialog:p.useCallback(r=>{Ga&&t(),Ga=o5.confirm({title:"Unable to record the cobrowse session at this time.",content:x("div",{css:dj,children:e("ERROR_MESSAGE",{code:r})}),closable:!1,footer:x(Xn,{size:"medium",danger:!0,onClick:t,children:e("OK")}),className:so})},[t,e]),cleanAgentRecordDialog:t}}const vn=window.ZCBController,pj=window.ZCBCoChannel.makeLogger,gj=window.ZCBCoChannel.performanceLog,Dn=window.ZCBCoChannel.PerformanceLogEnum,yt=pj(["CoBrowsing Page","CC","AGENT"]),jr=gj.logWithBaseTags(["CC","AGENT_PAGE"]);var hj={name:"tkj3dt",styles:"position:fixed;bottom:20px;right:20px"};function mj({endSession:e}){function t(){e()}return x("div",{css:hj,children:x(Xn,{danger:!0,onClick:t,children:"End"})})}let S3=!1,b3=!1,E3=!1;const x3=!!window.__id__;var vj={name:"1flmzio",styles:"-webkit-app-region:drag;width:100vw;height:100vh;z-index:2;position:absolute"},yj={name:"1y8xdef",styles:\'width:100vw;height:100vh;background:#111;display:flex;color:#000;font-family:"SF Pro", "Segoe UI", system-ui, "Almaden Sans", Roboto, Ubuntu, Helvetica, Arial\'};function w3(){var Ko,Zo;const{scale:e,setScale:t,fitToWindowScale:n,anotationManager:r,AnotationMethods:o}=Je(oe=>oe),i=xc(),{showFollowerJoinedToast:s,showReconnectToast:a,hideReconnectToast:l}=oj(),{showAgentRecordFailedDialog:c}=fj(),[u,f]=p.useState(!1),[d,h]=p.useState(!0),[g,m]=p.useState(!1),[b,y]=p.useState(""),[v]=p.useState((Ko=window.ZMCoBrowsingConfig)==null?void 0:Ko.sessionId),[C,S]=p.useState(!1),[w,_]=p.useState(!1),[E,M]=p.useState({width:0,height:0}),[$,D]=p.useState({width:window.innerWidth,height:window.innerHeight}),{session:k,setSession:R}=Je(oe=>oe),{setIsStartedRecord:O,setIsPausedRecord:I,setIsLoadingRecord:A}=Hf(oe=>oe),P=p.useRef(null),[N,T]=p.useState(""),[L,z]=p.useState(!1),[B,V]=p.useState(!1),H=p.useRef(!1),K=p.useRef(!1),G=p.useRef(""),te=p.useRef(!1),[ne,ge]=p.useState(!0),se=p.useRef(!1),he=p.useRef(null),fe=p.useRef(null),Ce=p.useRef(Oe.STOP),Q=p.useRef(!1),ve=p.useRef(Oe.STOP),X=p.useRef(null),de=p.useRef(!1),ae=p.useRef(""),xe=p.useRef(!1),qe=p.useRef(0),Pe=p.useRef(null),Ke=p.useRef(""),bt=p.useRef(!1),Et=p.useRef(null),ke=p.useRef(mz(window.location.href,"mode")||Rm.Voice),Ue=Number(ke.current)===Rm.Chat;rU({showSnackBar:i,setSession:R});const{t:re}=ds();p.useEffect(()=>{if(L){const oe=re("NAME_IS_RECONNECTING",{name:ae.current});a(oe,!0)}else l()},[l,L,a,re]);const me=p.useCallback((oe=!1,Ae=0,xt="")=>{var ze,ye;bt.current=!0,oe||(yt.log("[PAGE CALL][EVENT] endSession trigger end from agent page"),(ze=k==null?void 0:k.stopRecord)==null||ze.call(k),O(!1),I(!1),A(!1),(ye=k==null?void 0:k.end)==null||ye.call(k)),de.current||qn({event:Qn.NOTIFY_JOIN_COBROWSING_SESSION,payload:{code:Fm.CONNECT,errmsg:Nm.USER_EXIT_BEFORE_SESSION+"",data:{sessionId:v}}}),qn({event:Qn.NOTIFY_LEAVE_COBROWSING_SESSION,payload:{code:Ae,errmsg:xt,data:{sessionId:v}}}),nn(rn.CoBrowserSetSessionState,{state:"leave"}),f(!1),K.current=!1,G.current="",Ce.current=Oe.STOP,y(""),m(!1),h(!1),_(!1),V(!1),H.current=!1,z(!1)},[k,O,I,A,v]),we=p.useCallback(()=>{var oe,Ae,xt,ze;if(!Q.current&&X.current!==null){const ye=X.current,ot=ve.current;if(ye!==ot){let Jo=!1;ye===Oe.START?ot===Oe.STOP&&(X.current=null,A(!0),(oe=k==null?void 0:k.startRecord)==null||oe.call(k),Jo=!0,yt.log("retry startRecord")):ye===Oe.STOP?ot!==Oe.STOP&&(X.current=null,A(!0),(Ae=k==null?void 0:k.stopRecord)==null||Ae.call(k),Jo=!0,yt.log("retry stopRecord")):ye===Oe.PAUSE?(ot===Oe.START||ot===Oe.RESUME)&&(X.current=null,A(!0),(xt=k==null?void 0:k.pauseRecord)==null||xt.call(k),Jo=!0,yt.log("retry pauseRecord")):ye===Oe.RESUME&&ot===Oe.PAUSE&&(X.current=null,A(!0),(ze=k==null?void 0:k.resumeRecord)==null||ze.call(k),Jo=!0,yt.log("retry resumeRecord")),Jo||yt.log(`retry failed: CRS: ${ot} , CCI: ${ye}`)}X.current=null}},[k,A]),{showStopDialog:pe,cleanStopDialog:Dt}=cp(me),Pr=p.useCallback(()=>{var oe,Ae;(Ae=(oe=k==null?void 0:k.session)==null?void 0:oe.resetPinCode)==null||Ae.call(oe)},[k]),sn=p.useCallback(()=>{f(!1),K.current=!1,h(!1),Pr(),_(!0)},[Pr]),or=p.useCallback(()=>{f(!1),K.current=!1,h(!1),_(!0)},[]),an=p.useCallback(()=>{ge(!1),Ue?or():sn()},[Ue,or,sn]);p.useEffect(()=>{function oe(){yt.log("[PAGE CALL][EVENT] endSession trigger end from jsbridge"),me()}he.current=r,fe.current=o;function Ae(){var ze,ye;return(ye=(ze=he.current)==null?void 0:ze.getAnotationInstance())==null?void 0:ye.showToolbar}function xt(){const ze=Ae();he.current.use(fe.current.hideToolbar,ze),he.current.use(fe.current.hideOpenBtn,!ze)}!k||S3||(S3=!0,pp("CCIUINotifyCCICoBrowserSendMsg",ze=>{console.log("[listenToZcc] CCIUINotifyCCICoBrowserSendMsg get message",ze);const ye=ze.result.params.data;if(!ye){console.error("[listenToZcc] handler get data is falsy");return}if(ye.event===Bc.LEAVE_COBROWSING_SESSION&&oe(),ye.event===Bc.COBROWSING_START_RECORD){if(qn({event:Qn.NOTIFY_COBROWSING_RECORD_START,payload:{code:0,errmsg:"",data:null}}),yt.log("[CCI CALL] cci to start record"),!se.current)return;if(Ce.current=Oe.START,nn(rn.CoBrowserRecordStatus,{recStatus:Oe.START}),Q.current){X.current=Oe.START;return}Q.current=!0,A(!0),yt.log("[CCI CALL] call session start record"),k.startRecord()}if(ye.event===Bc.COBROWSING_STOP_RECORD){if(qn({event:Qn.NOTIFY_COBROWSING_RECORD_STOP,payload:{code:0,errmsg:"",data:null}}),yt.log("[CCI CALL] cci to stop record"),!se.current)return;if(Ce.current=Oe.STOP,nn(rn.CoBrowserRecordStatus,{recStatus:Oe.STOP}),Q.current){X.current=Oe.STOP;return}Q.current=!0,A(!0),yt.log("[CCI CALL] call session stop record"),k.stopRecord()}if(ye.event===Bc.COBROWSING_PAUSE_RECORD){if(qn({event:Qn.NOTIFY_COBROWSING_RECORD_PAUSE,payload:{code:0,errmsg:"",data:null}}),yt.log("[CCI CALL] cci to pause record"),!se.current)return;if(Ce.current=Oe.PAUSE,nn(rn.CoBrowserRecordStatus,{recStatus:Oe.PAUSE}),Q.current){X.current=Oe.PAUSE;return}Q.current=!0,A(!0),yt.log("[CCI CALL] call session pause record"),k.pauseRecord()}if(ye.event===Bc.COBROWSING_RESUME_RECORD){if(qn({event:Qn.NOTIFY_COBROWSING_RECORD_RESUME,payload:{code:0,errmsg:"",data:null}}),yt.log("[CCI CALL] cci to resume record"),!se.current)return;if(Ce.current=Oe.RESUME,nn(rn.CoBrowserRecordStatus,{recStatus:Oe.RESUME}),Q.current){X.current=Oe.RESUME;return}Q.current=!0,A(!0),yt.log("[CCI CALL] call session resume record"),k.resumeRecord()}}),pp("CCIUINotifyCCICoBrowserStopClicked",()=>{pe(ae.current)}),pp("CCIUINotifyCCICoBrowserMenuClicked",ze=>{const ot=ze.result.params.clickItemIndex;ot<zc.length?t(zc[ot]):ot===C3.length-1&&xt()}))},[o,r,me,k,A,t,pe]),p.useEffect(()=>{b3||(b3=!0,pp("CCIUINotifyCCICoBrowserOnMinimizeClick",oe=>{const Ae=oe.result.params,{status:xt,width:ze,height:ye}=Ae,ot=document.querySelector(`.${$m.controller}`);xt?(xe.current=!1,S(!1),t(qe.current),ot&&(ot.style.display="block")):(xe.current=!0,M({width:ze||window.innerWidth,height:ye||window.innerHeight}),S(!0),t(0),ot&&(ot.style.display="none"))}))},[t]),p.useEffect(()=>{k&&!E3&&(E3=!0,k.on(vn.SESSION_EVENT.SESSION_STARTED,()=>{const oe=k.getSessionInfo(),{isRecordingEnable:Ae}=oe||{};if(se.current=Ae,!oe)return yt.error("SESSION_STARTED sessionInfo is falsy"),!1;nn(rn.CoBrowserSetSessionState,{state:"join"}),m(!0),H.current=!1,H.current&&(jr.log(Dn.AgentReconnectingSuccessInAgentSide),jr.logRange(Dn.AgentReconnectingInAgentSide,Dn.AgentReconnectingSuccessInAgentSide)),bt.current=!1,Ue&&(h(!1),de.current||qn({event:Qn.NOTIFY_JOIN_COBROWSING_SESSION,payload:{code:0,errmsg:"",data:null}}),de.current=!0)}),k.on(vn.SESSION_EVENT.SESSION_RECONNECTING,()=>{H.current=!0,V(!0),m(!1),f(!1),K.current=!1,jr.log(Dn.AgentReconnectingInAgentSide)}),k.on(vn.SESSION_EVENT.CUSTOMER_DISCONNECTED,oe=>{var Ae;!ae.current&&((Ae=oe==null?void 0:oe.user)!=null&&Ae.name)&&(ae.current=oe.user.name),z(!0),an(),jr.log(Dn.CustomerDisconnectedInAgentSide),Pe.current=setTimeout(()=>{Pe.current=null,z(!1),yt.log("[PAGE CALL][EVENT] endSession trigger end from agent page CUSTOMER_DISCONNECTED"),me(!1,Uc.CUSTOMER_RECONNECT,Nm.OTHER_SIDE_RECONNECT_TIMEOUT_FAILED+""),jr.log(Dn.CustomerTimeoutInAgentSide)},(window.ZMCoBrowsingConfig.maxCBSReconnectTimeout??gz)*1e3)}),k.on(vn.SESSION_EVENT.PINCODE_UPDATED,oe=>{var xt;if(Ue){h(!1);return}(xt=Et==null?void 0:Et.current)==null||xt.resetTimer();const Ae=oe==null?void 0:oe.pinCode;Ke.current=Ae,de.current||qn({event:Qn.NOTIFY_JOIN_COBROWSING_SESSION,payload:{code:0,errmsg:"",data:{pinCode:Ae}}}),de.current=!0,y(Ae),h(!1)}),k.on(vn.SESSION_EVENT.CUSTOMER_JOINED,oe=>{const{user:Ae}=oe,{name:xt}=Ae;T(xt),ae.current=xt,Dt(),h(!1),P.current=setTimeout(()=>{s(re("CONSUMER_NAME_JOINED",{consumerName:ae.current}))},1e3),te.current?nn(rn.CoBrowserSetSessionInfo,{siteUrl:G.current}):nn(rn.CoBrowserCustomerJoin,{siteUrl:G.current,recStatus:Ce.current}),te.current=!0,Pe.current&&(clearTimeout(Pe.current),Pe.current=null,jr.log(Dn.CustomerReconnectingSuccessInAgentSide),jr.logRange(Dn.CustomerDisconnectedInAgentSide,Dn.CustomerReconnectingSuccessInAgentSide)),z(!1),jr.log(Dn.CustomerJoinedInAgentSide),setTimeout(()=>{t(e)},1e3)}),k.on(vn.SESSION_EVENT.AGENT_JOINED,()=>{jr.log(Dn.AgentJoinedInAgentSide),Ue&&V(!1)}),k.on(vn.SESSION_EVENT.START_REPLAY,oe=>{f(!0),y(""),K.current=!0,V(!1),_(!1),jr.log(Dn.StartReplayInAgentSide),jr.logRange(Dn.CustomerJoinedInAgentSide,Dn.StartReplayInAgentSide)}),k.on(vn.SESSION_EVENT.ORIGIN_UPDATED,oe=>{G.current=oe.origin,nn(rn.CoBrowserSetSessionInfo,{siteUrl:oe.origin})}),k.on(vn.SESSION_EVENT.CUSTOMER_LEFT,()=>{P.current&&(clearTimeout(P.current),P.current=null),an(),nn(rn.CoBrowserCustomerLeave)}),k.on(vn.SESSION_EVENT.SESSION_ENDED,oe=>{bt.current||(te.current=!1,!K.current&&Ke.current!==""&&oe.code===mt.DESTROY_DEACTIVE_ROOM?me(!0,Uc.JOINED_SESSION_NOT_ACTIVE,oe.code+""):me(!0))}),k.on(vn.SESSION_EVENT.SESSION_ERROR,oe=>{yt.log(`agent page error, code:${oe.code}`),!Mz(oe.code)&&(kz(oe.code)?(Q.current=!1,Ce.current=Oe.STOP,we(),nn(rn.CoBrowserRecordStatus,{recStatus:Oe.STOP})):de.current?H.current?me(!0,Uc.AGENT_RECONNECT,oe.code+""):me(!0,Uc.JOINED_SESSION_NOT_ACTIVE,oe.code+""):qn({event:Qn.NOTIFY_JOIN_COBROWSING_SESSION,payload:{code:Fm.CONNECT,errmsg:oe.code+"",data:null}}),oe.code===Ri.RECORD_START_FAILED&&(A(!1),[p5.LEADER_DENIED].includes(oe.detailCode)||c(String(oe.detailCode??oe.code)),yt.error("record start failed")),oe.code===Ri.RECORD_STOP_FAILED&&(A(!1),yt.error("record stop failed")),oe.code===Ri.RECORD_PAUSE_FAILED&&(A(!1),yt.error("record pause failed")),oe.code===Ri.RECORD_RESUME_FAILED&&(A(!1),yt.error("record resume failed")),H.current=!1,V(!1))}),k.on(vn.SESSION_EVENT.RECORD_STARTED,()=>{O(!0),I(!1),A(!1),ve.current=Oe.START,Q.current=!1,!X.current&&se.current&&(qn({event:Qn.NOTIFY_COBROWSING_RECORD_START,payload:{code:0,errmsg:"",data:null}}),nn(rn.CoBrowserRecordStatus,{recStatus:Oe.START})),we()}),k.on(vn.SESSION_EVENT.RECORD_STOPPED,()=>{O(!1),I(!1),A(!1),ve.current=Oe.STOP,Q.current=!1,!X.current&&se.current&&(qn({event:Qn.NOTIFY_COBROWSING_RECORD_STOP,payload:{code:0,errmsg:"",data:null}}),nn(rn.CoBrowserRecordStatus,{recStatus:Oe.STOP})),we()}),k.on(vn.SESSION_EVENT.RECORD_PAUSED,()=>{O(!0),I(!0),A(!1),ve.current=Oe.PAUSE,Q.current=!1,!X.current&&se.current&&(qn({event:Qn.NOTIFY_COBROWSING_RECORD_PAUSE,payload:{code:0,errmsg:"",data:null}}),nn(rn.CoBrowserRecordStatus,{recStatus:Oe.PAUSE})),we()}),k.on(vn.SESSION_EVENT.RECORD_RESUMED,()=>{O(!0),I(!1),A(!1),ve.current=Oe.RESUME,Q.current=!1,!X.current&&se.current&&(qn({event:Qn.NOTIFY_COBROWSING_RECORD_RESUME,payload:{code:0,errmsg:"",data:null}}),nn(rn.CoBrowserRecordStatus,{recStatus:Oe.RESUME})),we()}))},[me,v,k,O,I,s,N,Dt,A,t,e,u,an,c,we,Ue,re]);const ir=p.useMemo(()=>B?Ho.Reconnecting:L||w?Ho.PinCode:!d&&!g?Ho.End:d?Ho.Loading:Ho.PinCode,[B,L,w,d,g]),ho=p.useMemo(()=>B?Vo.Reconnecting:L||w?Vo.Waiting:!d&&!g?Vo.End:d?Vo.Loading:Vo.Waiting,[B,L,w,d,g]),mo=p.useMemo(()=>Eg((oe,Ae)=>{if(g&&!xe.current){qe.current=oe;const xt=aj(oe);xt>-1&&nn(rn.CoBrowserSetMenuItem,{menulist:sj(C3,Ae).map(ze=>typeof ze=="string"?ze:typeof ze.percent<"u"?re(ze.text,{percent:ze.percent}):re(ze.text)),default:xt})}},300),[g,re]),_s=p.useMemo(()=>{if(!C)return 1;const{width:oe,height:Ae}=$;return Math.min(Ae/E.height,oe/E.width)},[E,C,$]);return p.useEffect(()=>{function oe(){K.current||D({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",oe),()=>{window.removeEventListener("resize",oe)}},[]),p.useEffect(()=>{mo(e,n)},[e,mo,n]),q("div",{className:"agent",css:yj,children:[x("div",{css:ee({overflow:"hidden",borderRadius:"8px",width:"100%",height:"100%",display:g&&!w?"block":"none"},"",""),children:x(z5,{cobrowse:k,isClickThroughEnabled:!u,isMouseWheelZoomEnabled:!0,children:x(iU,{isShow:u,zcbDomain:window.ZMCoBrowsingConfig.domain,sessionId:v,zcbAuthToken:(Zo=window.ZMCoBrowsingConfig)==null?void 0:Zo.authToken,innerEndpoint:window.ZMCoBrowsingConfig.innerEndpoint})})}),!u&&!Ue&&x(ej,{ref:Et,status:ir,pinCode:b,leaderName:N,endSession:me,refreshPinCode:Pr,scale:_s,isFirstConnected:ne}),!u&&Ue&&x(Hz,{status:ho,leaderName:N,endSession:me,scale:_s,isFirstConnected:ne}),u&&!x3&&x(pz,{}),g&&!x3&&u&&x(mj,{endSession:()=>pe(N)}),C?x("div",{css:vj}):null]})}const Cj=[{path:"/api/zcb/frame-templates/portal",ele:x(w3,{})},{path:"/agent-sessions",ele:x(w3,{})}];var Sj={name:"11jf4ye",styles:"display:flex;gap:8px"};const bj=({code:e,setCode:t})=>{const[n,r]=p.useState(0),o=p.useRef(Array(e.length).fill(null)),i=f=>{t(f)},s=(f,d)=>{var b;const h=[...e],g=f.target.value,m=c();d===m&&g.length<=1&&(h[d]=g,i(h),g&&d<e.length-1&&((b=o.current[d+1])==null||b.focus()))},a=(f,d)=>{var h;if(f.key==="Backspace"){if(e[d]){const g=[...e];g[d]="",i(g)}else if(d>0){const g=[...e];g[d-1]="",i(g),(h=o.current[d-1])==null||h.focus()}}},l=f=>{var g;f.preventDefault();const d=f.clipboardData.getData("text"),h=[...e];for(let m=0;m<d.length&&m<h.length;m++)h[m]=d[m].slice(0,1);i(h),(g=o.current[Math.min(d.length,h.length-1)])==null||g.focus()},c=()=>e.findIndex(f=>f==="")===-1?e.length-1:e.findIndex(f=>f==="");p.useEffect(()=>{var d;const f=c();(d=o.current[f])==null||d.focus()},[e]);const u=f=>{var h;const d=c();f!==d&&((h=o.current[d])==null||h.focus())};return p.useEffect(()=>{const f=()=>{const d=document.activeElement,h=o==null?void 0:o.current.findIndex(g=>g===d);r(h)};return document.addEventListener("focusin",f),document.addEventListener("focusout",f),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",f)}},[o]),x("div",{className:"zcb-pincode-input",css:Sj,children:e.map((f,d)=>{const h=d===c()&&d===n;return x("input",{ref:g=>o.current[d]=g,type:"text",maxLength:1,value:f,onChange:g=>s(g,d),onKeyDown:g=>a(g,d),onClick:()=>u(d),onPaste:l,css:ee({width:"40px",height:"40px",textAlign:"center",fontSize:"16px",border:`1px solid ${h?"#0052D9":"#DCDCDC"}`,borderRadius:"3px",transition:"border-color 0.3s",pointerEvents:"auto",caretColor:h?"auto":"transparent",boxShadow:h?"0px 0px 0px 2px #D9E1FF":"none",outline:"none",boxSizing:"border-box"},"","")},d)})})},Ej=2*60,T3=80;/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:_3,setPrototypeOf:I3,isFrozen:xj,getPrototypeOf:wj,getOwnPropertyDescriptor:Tj}=Object;let{freeze:yn,seal:Or,create:O3}=Object,{apply:Qm,construct:ev}=typeof Reflect<"u"&&Reflect;yn||(yn=function(t){return t}),Or||(Or=function(t){return t}),Qm||(Qm=function(t,n,r){return t.apply(n,r)}),ev||(ev=function(t,n){return new t(...n)});const wp=Sn(Array.prototype.forEach),_j=Sn(Array.prototype.lastIndexOf),A3=Sn(Array.prototype.pop),Gc=Sn(Array.prototype.push),Ij=Sn(Array.prototype.splice),Tp=Sn(String.prototype.toLowerCase),tv=Sn(String.prototype.toString),R3=Sn(String.prototype.match),Yc=Sn(String.prototype.replace),Oj=Sn(String.prototype.indexOf),Aj=Sn(String.prototype.trim),Wr=Sn(Object.prototype.hasOwnProperty),Cn=Sn(RegExp.prototype.test),Kc=Rj(TypeError);function Sn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Qm(e,t,r)}}function Rj(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ev(e,n)}}function Te(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tp;I3&&I3(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(xj(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Pj(e){for(let t=0;t<e.length;t++)Wr(e,t)||(e[t]=null);return e}function ws(e){const t=O3(null);for(const[n,r]of _3(e))Wr(e,n)&&(Array.isArray(r)?t[n]=Pj(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=ws(r):t[n]=r);return t}function Zc(e,t){for(;e!==null;){const r=Tj(e,t);if(r){if(r.get)return Sn(r.get);if(typeof r.value=="function")return Sn(r.value)}e=wj(e)}function n(){return null}return n}const P3=yn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),nv=yn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),rv=yn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Nj=yn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ov=yn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),kj=yn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N3=yn(["#text"]),k3=yn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),iv=yn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M3=yn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),_p=yn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mj=Or(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm),Dj=Or(/<%[\\w\\W]*|[\\w\\W]*%>/gm),Lj=Or(/\\$\\{[\\w\\W]*/gm),Fj=Or(/^data-[\\-\\w.\\u00B7-\\uFFFF]+$/),$j=Or(/^aria-[\\-\\w]+$/),D3=Or(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i),Bj=Or(/^(?:\\w+script|data):/i),Uj=Or(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g),L3=Or(/^html$/i),zj=Or(/^[a-z][.\\w]*(-[.\\w]+)+$/i);var F3=Object.freeze({__proto__:null,ARIA_ATTR:$j,ATTR_WHITESPACE:Uj,CUSTOM_ELEMENT:zj,DATA_ATTR:Fj,DOCTYPE_NAME:L3,ERB_EXPR:Dj,IS_ALLOWED_URI:D3,IS_SCRIPT_OR_DATA:Bj,MUSTACHE_EXPR:Mj,TMPLIT_EXPR:Lj});const Jc={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},jj=function(){return typeof window>"u"?null:window},Wj=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},$3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function B3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jj();const t=ue=>B3(ue);if(t.version="3.2.5",t.removed=[],!e||!e.document||e.document.nodeType!==Jc.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:h}=e,g=l.prototype,m=Zc(g,"cloneNode"),b=Zc(g,"remove"),y=Zc(g,"nextSibling"),v=Zc(g,"childNodes"),C=Zc(g,"parentNode");if(typeof s=="function"){const ue=n.createElement("template");ue.content&&ue.content.ownerDocument&&(n=ue.content.ownerDocument)}let S,w="";const{implementation:_,createNodeIterator:E,createDocumentFragment:M,getElementsByTagName:$}=n,{importNode:D}=r;let k=$3();t.isSupported=typeof _3=="function"&&typeof C=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:O,TMPLIT_EXPR:I,DATA_ATTR:A,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:T,CUSTOM_ELEMENT:L}=F3;let{IS_ALLOWED_URI:z}=F3,B=null;const V=Te({},[...P3,...nv,...rv,...ov,...N3]);let H=null;const K=Te({},[...k3,...iv,...M3,..._p]);let G=Object.seal(O3(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,ne=null,ge=!0,se=!0,he=!1,fe=!0,Ce=!1,Q=!0,ve=!1,X=!1,de=!1,ae=!1,xe=!1,qe=!1,Pe=!0,Ke=!1;const bt="user-content-";let Et=!0,ke=!1,Ue={},re=null;const me=Te({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let we=null;const pe=Te({},["audio","video","img","source","image","track"]);let Dt=null;const Pr=Te({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sn="http://www.w3.org/1998/Math/MathML",or="http://www.w3.org/2000/svg",an="http://www.w3.org/1999/xhtml";let ir=an,ho=!1,mo=null;const _s=Te({},[sn,or,an],tv);let Ko=Te({},["mi","mo","mn","ms","mtext"]),Zo=Te({},["annotation-xml"]);const oe=Te({},["title","style","font","a","script"]);let Ae=null;const xt=["application/xhtml+xml","text/html"],ze="text/html";let ye=null,ot=null;const Jo=n.createElement("form"),Bp=function(F){return F instanceof RegExp||F instanceof Function},Is=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ot&&ot===F)){if((!F||typeof F!="object")&&(F={}),F=ws(F),Ae=xt.indexOf(F.PARSER_MEDIA_TYPE)===-1?ze:F.PARSER_MEDIA_TYPE,ye=Ae==="application/xhtml+xml"?tv:Tp,B=Wr(F,"ALLOWED_TAGS")?Te({},F.ALLOWED_TAGS,ye):V,H=Wr(F,"ALLOWED_ATTR")?Te({},F.ALLOWED_ATTR,ye):K,mo=Wr(F,"ALLOWED_NAMESPACES")?Te({},F.ALLOWED_NAMESPACES,tv):_s,Dt=Wr(F,"ADD_URI_SAFE_ATTR")?Te(ws(Pr),F.ADD_URI_SAFE_ATTR,ye):Pr,we=Wr(F,"ADD_DATA_URI_TAGS")?Te(ws(pe),F.ADD_DATA_URI_TAGS,ye):pe,re=Wr(F,"FORBID_CONTENTS")?Te({},F.FORBID_CONTENTS,ye):me,te=Wr(F,"FORBID_TAGS")?Te({},F.FORBID_TAGS,ye):{},ne=Wr(F,"FORBID_ATTR")?Te({},F.FORBID_ATTR,ye):{},Ue=Wr(F,"USE_PROFILES")?F.USE_PROFILES:!1,ge=F.ALLOW_ARIA_ATTR!==!1,se=F.ALLOW_DATA_ATTR!==!1,he=F.ALLOW_UNKNOWN_PROTOCOLS||!1,fe=F.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=F.SAFE_FOR_TEMPLATES||!1,Q=F.SAFE_FOR_XML!==!1,ve=F.WHOLE_DOCUMENT||!1,ae=F.RETURN_DOM||!1,xe=F.RETURN_DOM_FRAGMENT||!1,qe=F.RETURN_TRUSTED_TYPE||!1,de=F.FORCE_BODY||!1,Pe=F.SANITIZE_DOM!==!1,Ke=F.SANITIZE_NAMED_PROPS||!1,Et=F.KEEP_CONTENT!==!1,ke=F.IN_PLACE||!1,z=F.ALLOWED_URI_REGEXP||D3,ir=F.NAMESPACE||an,Ko=F.MATHML_TEXT_INTEGRATION_POINTS||Ko,Zo=F.HTML_INTEGRATION_POINTS||Zo,G=F.CUSTOM_ELEMENT_HANDLING||{},F.CUSTOM_ELEMENT_HANDLING&&Bp(F.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=F.CUSTOM_ELEMENT_HANDLING.tagNameCheck),F.CUSTOM_ELEMENT_HANDLING&&Bp(F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),F.CUSTOM_ELEMENT_HANDLING&&typeof F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(G.allowCustomizedBuiltInElements=F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(se=!1),xe&&(ae=!0),Ue&&(B=Te({},N3),H=[],Ue.html===!0&&(Te(B,P3),Te(H,k3)),Ue.svg===!0&&(Te(B,nv),Te(H,iv),Te(H,_p)),Ue.svgFilters===!0&&(Te(B,rv),Te(H,iv),Te(H,_p)),Ue.mathMl===!0&&(Te(B,ov),Te(H,M3),Te(H,_p))),F.ADD_TAGS&&(B===V&&(B=ws(B)),Te(B,F.ADD_TAGS,ye)),F.ADD_ATTR&&(H===K&&(H=ws(H)),Te(H,F.ADD_ATTR,ye)),F.ADD_URI_SAFE_ATTR&&Te(Dt,F.ADD_URI_SAFE_ATTR,ye),F.FORBID_CONTENTS&&(re===me&&(re=ws(re)),Te(re,F.FORBID_CONTENTS,ye)),Et&&(B["#text"]=!0),ve&&Te(B,["html","head","body"]),B.table&&(Te(B,["tbody"]),delete te.tbody),F.TRUSTED_TYPES_POLICY){if(typeof F.TRUSTED_TYPES_POLICY.createHTML!="function")throw Kc(\'TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.\');if(typeof F.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Kc(\'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.\');S=F.TRUSTED_TYPES_POLICY,w=S.createHTML("")}else S===void 0&&(S=Wj(h,o)),S!==null&&typeof w=="string"&&(w=S.createHTML(""));yn&&yn(F),ot=F}},Up=Te({},[...nv,...rv,...Nj]),Di=Te({},[...ov,...kj]),nu=function(F){let Y=C(F);(!Y||!Y.tagName)&&(Y={namespaceURI:ir,tagName:"template"});const ce=Tp(F.tagName),at=Tp(Y.tagName);return mo[F.namespaceURI]?F.namespaceURI===or?Y.namespaceURI===an?ce==="svg":Y.namespaceURI===sn?ce==="svg"&&(at==="annotation-xml"||Ko[at]):!!Up[ce]:F.namespaceURI===sn?Y.namespaceURI===an?ce==="math":Y.namespaceURI===or?ce==="math"&&Zo[at]:!!Di[ce]:F.namespaceURI===an?Y.namespaceURI===or&&!Zo[at]||Y.namespaceURI===sn&&!Ko[at]?!1:!Di[ce]&&(oe[ce]||!Up[ce]):!!(Ae==="application/xhtml+xml"&&mo[F.namespaceURI]):!1},wt=function(F){Gc(t.removed,{element:F});try{C(F).removeChild(F)}catch{b(F)}},vo=function(F,Y){try{Gc(t.removed,{attribute:Y.getAttributeNode(F),from:Y})}catch{Gc(t.removed,{attribute:null,from:Y})}if(Y.removeAttribute(F),F==="is")if(ae||xe)try{wt(Y)}catch{}else try{Y.setAttribute(F,"")}catch{}},zp=function(F){let Y=null,ce=null;if(de)F="<remove></remove>"+F;else{const Zt=R3(F,/^[\\r\\n\\t ]+/);ce=Zt&&Zt[0]}Ae==="application/xhtml+xml"&&ir===an&&(F=\'<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>\'+F+"</body></html>");const at=S?S.createHTML(F):F;if(ir===an)try{Y=new d().parseFromString(at,Ae)}catch{}if(!Y||!Y.documentElement){Y=_.createDocument(ir,"template",null);try{Y.documentElement.innerHTML=ho?w:at}catch{}}const ln=Y.body||Y.documentElement;return F&&ce&&ln.insertBefore(n.createTextNode(ce),ln.childNodes[0]||null),ir===an?$.call(Y,ve?"html":"body")[0]:ve?Y.documentElement:ln},Li=function(F){return E.call(F.ownerDocument||F,F,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Os=function(F){return F instanceof f&&(typeof F.nodeName!="string"||typeof F.textContent!="string"||typeof F.removeChild!="function"||!(F.attributes instanceof u)||typeof F.removeAttribute!="function"||typeof F.setAttribute!="function"||typeof F.namespaceURI!="string"||typeof F.insertBefore!="function"||typeof F.hasChildNodes!="function")},ru=function(F){return typeof a=="function"&&F instanceof a};function Nr(ue,F,Y){wp(ue,ce=>{ce.call(t,F,Y,ot)})}const ou=function(F){let Y=null;if(Nr(k.beforeSanitizeElements,F,null),Os(F))return wt(F),!0;const ce=ye(F.nodeName);if(Nr(k.uponSanitizeElement,F,{tagName:ce,allowedTags:B}),F.hasChildNodes()&&!ru(F.firstElementChild)&&Cn(/<[/\\w!]/g,F.innerHTML)&&Cn(/<[/\\w!]/g,F.textContent)||F.nodeType===Jc.progressingInstruction||Q&&F.nodeType===Jc.comment&&Cn(/<[/\\w]/g,F.data))return wt(F),!0;if(!B[ce]||te[ce]){if(!te[ce]&&jp(ce)&&(G.tagNameCheck instanceof RegExp&&Cn(G.tagNameCheck,ce)||G.tagNameCheck instanceof Function&&G.tagNameCheck(ce)))return!1;if(Et&&!re[ce]){const at=C(F)||F.parentNode,ln=v(F)||F.childNodes;if(ln&&at){const Zt=ln.length;for(let Fn=Zt-1;Fn>=0;--Fn){const yo=m(ln[Fn],!0);yo.__removalCount=(F.__removalCount||0)+1,at.insertBefore(yo,y(F))}}}return wt(F),!0}return F instanceof l&&!nu(F)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&Cn(/<\\/no(script|embed|frames)/i,F.innerHTML)?(wt(F),!0):(Ce&&F.nodeType===Jc.text&&(Y=F.textContent,wp([R,O,I],at=>{Y=Yc(Y,at," ")}),F.textContent!==Y&&(Gc(t.removed,{element:F.cloneNode()}),F.textContent=Y)),Nr(k.afterSanitizeElements,F,null),!1)},iu=function(F,Y,ce){if(Pe&&(Y==="id"||Y==="name")&&(ce in n||ce in Jo))return!1;if(!(se&&!ne[Y]&&Cn(A,Y))){if(!(ge&&Cn(P,Y))){if(!H[Y]||ne[Y]){if(!(jp(F)&&(G.tagNameCheck instanceof RegExp&&Cn(G.tagNameCheck,F)||G.tagNameCheck instanceof Function&&G.tagNameCheck(F))&&(G.attributeNameCheck instanceof RegExp&&Cn(G.attributeNameCheck,Y)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(Y))||Y==="is"&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&Cn(G.tagNameCheck,ce)||G.tagNameCheck instanceof Function&&G.tagNameCheck(ce))))return!1}else if(!Dt[Y]){if(!Cn(z,Yc(ce,T,""))){if(!((Y==="src"||Y==="xlink:href"||Y==="href")&&F!=="script"&&Oj(ce,"data:")===0&&we[F])){if(!(he&&!Cn(N,Yc(ce,T,"")))){if(ce)return!1}}}}}}return!0},jp=function(F){return F!=="annotation-xml"&&R3(F,L)},Wp=function(F){Nr(k.beforeSanitizeAttributes,F,null);const{attributes:Y}=F;if(!Y||Os(F))return;const ce={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0};let at=Y.length;for(;at--;){const ln=Y[at],{name:Zt,namespaceURI:Fn,value:yo}=ln,su=ye(Zt);let xn=Zt==="value"?yo:Aj(yo);if(ce.attrName=su,ce.attrValue=xn,ce.keepAttr=!0,ce.forceKeepAttr=void 0,Nr(k.uponSanitizeAttribute,F,ce),xn=ce.attrValue,Ke&&(su==="id"||su==="name")&&(vo(Zt,F),xn=bt+xn),Q&&Cn(/((--!?|])>)|<\\/(style|title)/i,xn)){vo(Zt,F);continue}if(ce.forceKeepAttr||(vo(Zt,F),!ce.keepAttr))continue;if(!fe&&Cn(/\\/>/i,xn)){vo(Zt,F);continue}Ce&&wp([R,O,I],k4=>{xn=Yc(xn,k4," ")});const N4=ye(F.nodeName);if(iu(N4,su,xn)){if(S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Fn)switch(h.getAttributeType(N4,su)){case"TrustedHTML":{xn=S.createHTML(xn);break}case"TrustedScriptURL":{xn=S.createScriptURL(xn);break}}try{Fn?F.setAttributeNS(Fn,Zt,xn):F.setAttribute(Zt,xn),Os(F)?wt(F):A3(t.removed)}catch{}}}Nr(k.afterSanitizeAttributes,F,null)},Ev=function ue(F){let Y=null;const ce=Li(F);for(Nr(k.beforeSanitizeShadowDOM,F,null);Y=ce.nextNode();)Nr(k.uponSanitizeShadowNode,Y,null),ou(Y),Wp(Y),Y.content instanceof i&&ue(Y.content);Nr(k.afterSanitizeShadowDOM,F,null)};return t.sanitize=function(ue){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=null,ce=null,at=null,ln=null;if(ho=!ue,ho&&(ue="\x3c!--\x3e"),typeof ue!="string"&&!ru(ue))if(typeof ue.toString=="function"){if(ue=ue.toString(),typeof ue!="string")throw Kc("dirty is not a string, aborting")}else throw Kc("toString is not a function");if(!t.isSupported)return ue;if(X||Is(F),t.removed=[],typeof ue=="string"&&(ke=!1),ke){if(ue.nodeName){const yo=ye(ue.nodeName);if(!B[yo]||te[yo])throw Kc("root node is forbidden and cannot be sanitized in-place")}}else if(ue instanceof a)Y=zp("\x3c!----\x3e"),ce=Y.ownerDocument.importNode(ue,!0),ce.nodeType===Jc.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?Y=ce:Y.appendChild(ce);else{if(!ae&&!Ce&&!ve&&ue.indexOf("<")===-1)return S&&qe?S.createHTML(ue):ue;if(Y=zp(ue),!Y)return ae?null:qe?w:""}Y&&de&&wt(Y.firstChild);const Zt=Li(ke?ue:Y);for(;at=Zt.nextNode();)ou(at),Wp(at),at.content instanceof i&&Ev(at.content);if(ke)return ue;if(ae){if(xe)for(ln=M.call(Y.ownerDocument);Y.firstChild;)ln.appendChild(Y.firstChild);else ln=Y;return(H.shadowroot||H.shadowrootmode)&&(ln=D.call(r,ln,!0)),ln}let Fn=ve?Y.outerHTML:Y.innerHTML;return ve&&B["!doctype"]&&Y.ownerDocument&&Y.ownerDocument.doctype&&Y.ownerDocument.doctype.name&&Cn(L3,Y.ownerDocument.doctype.name)&&(Fn="<!DOCTYPE "+Y.ownerDocument.doctype.name+`>\n`+Fn),Ce&&wp([R,O,I],yo=>{Fn=Yc(Fn,yo," ")}),S&&qe?S.createHTML(Fn):Fn},t.setConfig=function(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Is(ue),X=!0},t.clearConfig=function(){ot=null,X=!1},t.isValidAttribute=function(ue,F,Y){ot||Is({});const ce=ye(ue),at=ye(F);return iu(ce,at,Y)},t.addHook=function(ue,F){typeof F=="function"&&Gc(k[ue],F)},t.removeHook=function(ue,F){if(F!==void 0){const Y=_j(k[ue],F);return Y===-1?void 0:Ij(k[ue],Y,1)[0]}return A3(k[ue])},t.removeHooks=function(ue){k[ue]=[]},t.removeAllHooks=function(){k=$3()},t}var Vj=B3();function Hj(e){return Vj.sanitize(e,{KEEP_CONTENT:!0}).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")!==e}const Xc=window.ZCBController,U3=(e,t)=>{const[n,r]=p.useState(!1),[o,i]=p.useState(!1),{session:s}=Je(d=>d),a=xc(),{setComCurrentPage:l,comCoBrowsingConfig:c,setComSessionStart:u}=Lo(d=>d),f=()=>{if(!c.authToken){a("Empty sdkToken","warning");return}const d=t==null?void 0:t.slice(0,T3);if(d&&Hj(d)){a("Invalid name. Try another one.");return}r(!0);const h=s==null?void 0:s.getSessionInfo();s==null||s.join({pinCode:e,sessionId:c.sessionId,sdkToken:(h==null?void 0:h.authTemplateToken)||c.authToken,customAgentName:d})};return p.useEffect(()=>{s&&(s.on(Xc.SESSION_EVENT.SESSION_STARTED,()=>{const d=s.getSessionInfo();if(!d||!d.authToken){console.error("SESSION_STARTED sessionInfo or authToken is falsy");return}u(!0)}),i(!1),s.on(Xc.SESSION_EVENT.START_REPLAY,()=>{r(!1),l(gn.COM_VIEWER)}),s.on(Xc.SESSION_EVENT.SESSION_ERROR,()=>{r(!1)}),s.on(Xc.SESSION_EVENT.SESSION_ENDED,()=>{i(!0),r(!1)}),s.on(Xc.SESSION_EVENT.SESSION_LEFT,()=>{i(!0),r(!1)}))},[s,c.authToken,l,u]),{isEnd:o,isLocked:n,handleJoinByPincode:f}};var Gj={name:"pkfowv",styles:"animation:rotate 1s linear infinite;@keyframes rotate{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"};function z3(){return q("svg",{css:Gj,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12H0C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12H21C21 7.02944 16.9706 3 12 3Z",fill:"url(#paint0_linear_9805_6404)"}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21C16.9706 21 21 16.9706 21 12L24 12C24 18.6274 18.6274 24 12 24C5.37258 24 -4.69686e-07 18.6274 -1.04907e-06 12C-1.1215e-06 11.1716 0.671571 10.5 1.5 10.5C2.32843 10.5 3 11.1716 3 12C3 16.9706 7.02944 21 12 21Z",fill:"url(#paint1_linear_9805_6404)"}),q("defs",{children:[q("linearGradient",{id:"paint0_linear_9805_6404",x1:"24",y1:"12",x2:"-6.70552e-07",y2:"12",gradientUnits:"userSpaceOnUse",children:[x("stop",{offset:"0.0622558",stopColor:"#000001",stopOpacity:"0.5"}),x("stop",{offset:"1",stopColor:"#000001",stopOpacity:"0"})]}),q("linearGradient",{id:"paint1_linear_9805_6404",x1:"3.39317e-06",y1:"12",x2:"24",y2:"12",gradientUnits:"userSpaceOnUse",children:[x("stop",{stopColor:"#000001"}),x("stop",{offset:"0.9375",stopColor:"#000001",stopOpacity:"0.5"})]})]})]})}const Yj=({value:e,setValue:t})=>{const n=p.useRef(null),[r,o]=p.useState(!1);return p.useEffect(()=>{const i=()=>{document.activeElement===n.current&&o(!0)},s=()=>{o(!1)},a=n.current;return a==null||a.addEventListener("focus",i),a==null||a.addEventListener("blur",s),()=>{a==null||a.removeEventListener("focus",i),a==null||a.removeEventListener("blur",s)}},[]),x("input",{ref:n,type:"text",maxLength:T3,value:e,onChange:i=>{t(i.target.value)},css:ee({width:"100%",height:"40px",textAlign:"left",fontSize:"16px",padding:"0 11px",border:`1px solid ${r?"#0052D9":"#DCDCDC"}`,borderRadius:"3px",transition:"border-color 0.3s",pointerEvents:"auto",caretColor:r?"auto":"transparent",boxShadow:r?"0px 0px 0px 2px #D9E1FF":"none",outline:"none",boxSizing:"border-box"},"","")})};var Kj={name:"11en623",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center"},Zj={name:"1379lu9",styles:"font-size:18px;line-height:26px;font-weight:500;margin-top:24px"};const Jj=()=>q("div",{css:Kj,children:[x("div",{children:x(z3,{})}),x("div",{css:Zj,children:"Joining the Cobrowse session..."})]});var Xj={name:"3v662l",styles:"display:flex;gap:16px;flex-direction:column"},qj={name:"3v662l",styles:"display:flex;gap:16px;flex-direction:column"},Qj={name:"cub18p",styles:"width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center"},eW={name:"1qyszt4",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px"},tW={name:"1pvy3nk",styles:"font-size:18px;line-height:26px;font-weight:500;margin-bottom:16px"},nW={name:"s7gyuh",styles:"font-size:14px;line-height:22px;margin-bottom:16px;max-width:800px"},rW={name:"xwg6h1",styles:"display:flex;flex-direction:column;gap:16px;justify-content:center;max-width:400px"},oW={name:"ho1qnd",styles:"display:flex;flex-direction:row"},iW={name:"pnqzxb",styles:"font-size:16px;min-width:120px;max-width:120px;margin:auto;text-align:left"},sW={name:"ho1qnd",styles:"display:flex;flex-direction:row"},aW={name:"pnqzxb",styles:"font-size:16px;min-width:120px;max-width:120px;margin:auto;text-align:left"},lW={name:"1mhdh1",styles:"font-size:14px;line-height:22px;color:rgba(0, 0, 0, 0.9)"},cW={name:"14pldze",styles:"color:#0052D9;margin-left:4px;cursor:pointer"};const uW=({pinCodePageType:e,customerName:t})=>{var b;const[n,r]=p.useState(Array(6).fill("")),[o,i]=p.useState(!1),[s,a]=p.useState((b=window.ZMCoBrowsingConfig)!=null&&b.userDisplayName?Rz(window.ZMCoBrowsingConfig.userDisplayName):""),{isEnd:l,isLocked:c,handleJoinByPincode:u}=U3(n.join(""),s);p.useEffect(()=>{l&&(r(Array(6).fill("")),i(!1))},[l]);const f=p.useMemo(()=>n.some(y=>y==="")||s.trim()==="",[s,n]),d=y=>{y.key==="Enter"&&!f&&u()},h=p.useMemo(()=>e===Ir.Normal?"Start a Cobrowse session with your customer":e===Ir.CustomerEnded?"The customer ended the session":"Cobrowse session has ended",[e]),g=p.useMemo(()=>{if(e===Ir.Normal)return null;if(e===Ir.CustomerEnded)return x(sr,{children:"To start another Cobrowse session. Input the pin code to continue"});if(e===Ir.AgentReconnectFailed)return q("div",{css:Xj,children:[x("div",{children:"The Cobrowse session has ended automatically due to failed reconnection. Please check your network connection and restart the session."}),x("div",{children:"To start another Cobrowse session. Input the pin code to continue"})]});if(e===Ir.CustomerReconnectFailed)return q("div",{css:qj,children:[q("div",{children:["The Cobrowse session has ended automatically due to failed reconnection from ",t,"."]}),x("div",{children:"To start another Cobrowse session. Input the pin code to continue"})]})},[e,t]),m=p.useCallback(()=>{i(!0)},[]);return x("div",{css:Qj,onKeyDown:d,tabIndex:0,children:c?x(Jj,{}):q("div",{css:eW,children:[x("div",{css:tW,children:h}),x("div",{css:nW,children:g}),q("div",{css:rW,children:[q("div",{css:oW,children:[x("span",{css:iW,children:"Pin code"}),x(bj,{code:n,setCode:r})]}),o&&q("div",{css:sW,children:[x("span",{css:aW,children:"Your name"}),x(Yj,{value:s,setValue:a})]}),x("button",{css:ee({padding:"10px 20px",backgroundColor:f?"#B5C7FF":"#0052D9",color:"white",border:"none",borderRadius:"3px",height:"40px",cursor:f?"not-allowed":"pointer",transition:"background-color 0.3s"},"",""),disabled:f,onClick:u,children:"Continue"}),!o&&q("div",{css:lW,children:["You are connecting as ",s,".",x("span",{css:cW,onClick:m,children:"Rename"})]})]})]})})};function j3(){return q("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12H0C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12H21C21 7.02944 16.9706 3 12 3Z",fill:"url(#paint0_linear_9175_14884)"}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21C16.9706 21 21 16.9706 21 12L24 12C24 18.6274 18.6274 24 12 24C5.37258 24 -4.69686e-07 18.6274 -1.04907e-06 12C-1.1215e-06 11.1716 0.671571 10.5 1.5 10.5C2.32843 10.5 3 11.1716 3 12C3 16.9706 7.02944 21 12 21Z",fill:"url(#paint1_linear_9175_14884)"}),q("defs",{children:[q("linearGradient",{id:"paint0_linear_9175_14884",x1:"24",y1:"12",x2:"-6.70552e-07",y2:"12",gradientUnits:"userSpaceOnUse",children:[x("stop",{offset:"0.0622558",stopColor:"#000001",stopOpacity:"0.5"}),x("stop",{offset:"1",stopColor:"#000001",stopOpacity:"0"})]}),q("linearGradient",{id:"paint1_linear_9175_14884",x1:"3.39317e-06",y1:"12",x2:"24",y2:"12",gradientUnits:"userSpaceOnUse",children:[x("stop",{stopColor:"#000001"}),x("stop",{offset:"0.9375",stopColor:"#000001",stopOpacity:"0.5"})]})]})]})}function dW(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M8 1V8H9V1H8Z",fill:"white",fillOpacity:"0.9"}),x("path",{d:"M2 8.50007C2 6.00518 3.40561 3.83859 5.46813 2.74901L5.96865 3.61594C4.20487 4.53193 3 6.3753 3 8.50008C3 11.5376 5.46243 14.0001 8.5 14.0001C11.5376 14.0001 14 11.5376 14 8.50008C14 6.37522 12.795 4.53179 11.0311 3.61583L11.5317 2.7489C13.5943 3.83844 15 6.0051 15 8.50008C15 12.0899 12.0898 15.0001 8.5 15.0001C4.91015 15.0001 2 12.0899 2 8.50007Z",fill:"white",fillOpacity:"0.9"})]})}var fW={name:"rr9676",styles:"text-align:center;margin-bottom:16px;&>svg{transform-origin:center center;animation-name:rotating;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear;}"},pW={name:"1gxlehq",styles:"position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);max-width:480px;padding:32px;border-radius:9px;background:#FFFFFF;box-shadow:0px 5px 5px -3px #0000001A, 0px 8px 10px 1px #0000000F, 0px 3px 14px 2px #0000000D;font-size:18px;font-weight:600;line-height:26px;text-align:center"},gW={name:"utsztz",styles:"color:rgba(0, 0, 0, 0.9)"};const W3=({children:e})=>q("div",{css:pW,children:[x("div",{css:fW,children:x(j3,{})}),x("div",{css:gW,children:e})]});function Ip({cancelText:e="Cancel",insertStyles:t={},...n}){return x(is,{variant:"contained",sx:{textTransform:"none"},disableRipple:!0,css:ee({"&[type=button]":{display:"flex",justifyContent:"center",alignItems:"center",padding:"5px 16px",height:"32px",background:"#e7e7e7",borderRadius:"3px",boxShadow:"none",color:"rgba(0, 0, 0, 0.9)",fontSize:"12px",lineHeight:"20px",fontWeight:"400","&:hover":{background:"#dcdcdc"},"&:active":{background:"#a6a6a6"},...t}},"",""),...n,children:e})}const hW=window.ZCBCoChannel.makeLogger,mW=hW(["CoBrowsing Agent","COMMON"]);var vW={name:"xawa3g",styles:"display:flex;justify-content:center;margin-top:32px"};const V3=()=>{const{handleEndSession:e}=xp(),{setComStartReplay:t,setComSessionWaitAgentConnecting:n}=Lo(r=>r);return q(W3,{children:[x("div",{children:"Reconnecting to the Cobrowse session. Please wait..."}),x("div",{css:vW,children:x(Ip,{onClick:()=>{mW.log("[PAGE CALL][BUTTON] AgentConnectingCard trigger end "),n(!1),t(!1),e()}})})]})},yW=window.ZCBCoChannel.makeLogger,CW=yW(["CoBrowsing Customer","COMMON"]);var SW={name:"1pca9zg",styles:"word-wrap:break-word;word-break:break-word"},bW={name:"1uzi5y4",styles:"display:flex;justify-content:center;width:100%;margin-top:32px"};const H3=({customerName:e})=>{const{setComSessionWaitCustomerConnecting:t,setPinCodePageType:n}=Lo(o=>o),{handleEndSession:r}=xp();return q(W3,{children:[q("div",{css:SW,children:[e," is reconnecting to the Cobrowse session. Please wait..."]}),x("div",{css:bW,children:x(Ip,{onClick:()=>{CW.log("[PAGE CALL][BUTTON] CustomerConnectingCard trigger end "),t(!1),n(Ir.CustomerReconnectFailed),r()}})})]})};function EW(){const{comCurrentPage:e,comStartReplay:t,comSessionWaitAgentConnecting:n,comSessionWaitCustomerConnecting:r,pinCodePageType:o,customerName:i}=Lo(s=>s);return x("div",{className:"main",css:ee({width:"100vw",height:"100vh",display:e===gn.COM_DESK||!t?"block":"none",background:n||r?"rgba(238, 238, 238, 1)":"#FFFFFF"},"",""),children:n?x(V3,{}):r?x(H3,{customerName:i}):x(uW,{pinCodePageType:o,customerName:i})})}var xW={name:"w1atjl",styles:"width:100%;height:100%"};function wW({authToken:e,domain:t,isShow:n,innerEndpoint:r}){const o=p.useMemo(()=>vz()?`https://${t}${r}/${V5()}?access_token=${e}&CPS_TAB_NAME=_CPS_TAB_1`:`https://${t}${r}?access_token=${e}&CPS_TAB_NAME=_CPS_TAB_1`,[t,r,e]);return x("div",{css:xW,children:x("iframe",{css:ee({display:n?"block":"none",width:"100%",height:"100%",border:"none"},"",""),title:Dc,tabIndex:-1,src:o})})}const dt=({children:e,insertReplaceIconKey:t,cacheLinkUrl:n=null})=>{const{getInsertIconSrcData:r,getInsertCSSRule:o,getDisabledSwitcherData:i}=rr(),s=p.useMemo(()=>r(t)??n??void 0,[n,r,t]);return i(t)||s===null||s===""?x(sr,{}):s?x("img",{src:s,alt:"",draggable:"false",css:ee("user-drag:none;",o(t),";","")}):e};function rr(){const{insertDataStore:e}=Je(f=>f),t=p.useCallback(f=>(e==null?void 0:e.getInsertCSSRule(f))??null,[e]),n=p.useCallback(f=>(e==null?void 0:e.getInsertTextData(f))??null,[e]),r=p.useCallback(f=>e==null?void 0:e.getInsertIconSrcData(f),[e]),o=p.useCallback(f=>(e==null?void 0:e.getPositionData(f))??null,[e]),i=p.useCallback(f=>(e==null?void 0:e.getDisabledSwitcherData(f))??!1,[e]),s=p.useCallback(f=>f?t(f):null,[t]),a=p.useCallback(f=>f?n(f):null,[n]),l=p.useCallback(f=>f?i(f):!1,[i]),c=p.useCallback(f=>f?r(f)?x(dt,{insertReplaceIconKey:f,children:null}):l(f)?x(sr,{}):null:null,[l,r]),u=p.useCallback((f,d,h)=>{const g=e.getPositionData(f);if(!g)return null;const m={x:(d.width-h.width)/2,y:(d.height-h.height)/2};return g.top&&(m.y=parseInt(g.top)),g.bottom&&(m.y=d.height-h.height-parseInt(g.bottom)),g.left&&(m.x=parseInt(g.left)),g.right&&(m.x=d.width-h.width-parseInt(g.right)),m},[e]);return{getInsertCSSRule:t,getInsertTextData:n,getInsertIconSrcData:r,getDisabledSwitcherData:i,getPositionData:o,getCheckedInsertStyles:s,getCheckedInsertText:a,getCheckedInsertDisabled:l,getCheckedInsertIcon:c,transformInsertPos:u}}const TW=Ee(({className:e,insertStyles:t={},...n})=>x(Rx,{...n,classes:{popper:e}}))(({theme:e,insertStyles:t})=>({[`& .${Fo.tooltip}`]:{padding:"3px 6px",borderRadius:"5px",background:"rgba(37, 42, 48, 1)",boxShadow:"0px 5px 5px -3px rgba(0, 0, 0, 0.1), 0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 3px 14px 2px rgba(0, 0, 0, 0.05)",fontSize:"12px",fontWeight:"400",lineHeight:"20px",textAlign:"center",color:"rgba(255, 255, 255, 1)",...t}}));function Ct({active:e,activeBackgroundColor:t,children:n,size:r=32,tooltipTitle:o="",isVerticalToolbar:i=!0,tooltipPosition:s,commonFeatureKey:a=j.AgentToolbarButtonCommon,commonActiveFeatureKey:l=j.AgentToolbarButtonActiveCommon,insertDataFeatureKey:c,insertStyle:u={},...f}){const{getCheckedInsertStyles:d,getCheckedInsertText:h,getDisabledSwitcherData:g}=rr(),m=p.useMemo(()=>{var b;return{...d(a),...d(c),...e?d(l):null,...e&&((b=d(c))==null?void 0:b["&:active"])||null}},[d,a,e,l,c]);return g(c)?null:x(TW,{title:h(c)??o,placement:s,className:so,insertStyles:d(j.AgentToolbarTooltipCommon),children:x("span",{children:x(Y0,{disableRipple:!0,css:ee({boxSizing:"content-box",display:"flex",width:`${r}px`,height:`${r}px`,padding:"0px",margin:"0",justifyContent:"center",alignItems:"center",borderRadius:"5px",color:"#000",backgroundRepeat:"no-repeat",backgroundPosition:"center","&:hover":{backgroundColor:e?t??"#E7E7E7":"#E7E7E7"},"&:active":{backgroundColor:"#A6A6A6"},...e&&{color:"#FFF",backgroundColor:t??"#A6A6A6"},...u,...m},"",""),...f,children:n})})})}const Ts="#ed4d6a",_W=["#fff",Ts,"#f9df58","#90c38a","#4989f6","#ab7bf7","#e94cc1","#f09035","#73d346","#78d5e8","#404040","#73130B","#794517","#336f32","#274dbc"],G3={activeBtnChange:"activeBtnChange",historyChange:"history:change",historyUndo:"history:undo",historyRedo:"history:redo",hideToolbar:"hideToolbar"},sv={drawWidth:6,drawColor:Ts},Go={thin:"1.5",regular:"3",bulk:"4.5"},Y3={[Go.thin]:sv.drawWidth/2,[Go.regular]:sv.drawWidth,[Go.bulk]:sv.drawWidth*1.5};function IW(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M3.5 7C3.5 6.72386 3.72386 6.5 4 6.5H6.5V4C6.5 3.72386 6.72386 3.5 7 3.5C7.27614 3.5 7.5 3.72386 7.5 4V6.5H10C10.2761 6.5 10.5 6.72386 10.5 7C10.5 7.27614 10.2761 7.5 10 7.5H7.5V10C7.5 10.2761 7.27614 10.5 7 10.5C6.72386 10.5 6.5 10.2761 6.5 10V7.5H4C3.72386 7.5 3.5 7.27614 3.5 7Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5895 12.2856C10.3607 13.3535 8.75584 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 9.53674e-07 7 9.53674e-07C10.866 9.53674e-07 14 3.13401 14 7C14 8.75584 13.3535 10.3607 12.2856 11.5895C12.3095 11.6062 12.3323 11.6251 12.3536 11.6464L15.8536 15.1464C16.0488 15.3417 16.0488 15.6583 15.8536 15.8536C15.6583 16.0488 15.3417 16.0488 15.1464 15.8536L11.6464 12.3536C11.6251 12.3323 11.6062 12.3095 11.5895 12.2856ZM13 7C13 10.3137 10.3137 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7Z",fill:"currentColor",fillOpacity:"0.9"})]})}function OW(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M4 6.5C3.72386 6.5 3.5 6.72386 3.5 7C3.5 7.27614 3.72386 7.5 4 7.5H10C10.2761 7.5 10.5 7.27614 10.5 7C10.5 6.72386 10.2761 6.5 10 6.5H4Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14C8.75584 14 10.3607 13.3535 11.5895 12.2856C11.6062 12.3095 11.6251 12.3323 11.6464 12.3536L15.1464 15.8536C15.3417 16.0488 15.6583 16.0488 15.8536 15.8536C16.0488 15.6583 16.0488 15.3417 15.8536 15.1464L12.3536 11.6464C12.3323 11.6251 12.3095 11.6062 12.2856 11.5895C13.3535 10.3607 14 8.75584 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM7 13C10.3137 13 13 10.3137 13 7C13 3.68629 10.3137 1 7 1C3.68629 1 1 3.68629 1 7C1 10.3137 3.68629 13 7 13Z",fill:"currentColor",fillOpacity:"0.9"})]})}function AW(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M7.51997 9.7818C7.75987 10.0727 8.2397 10.0727 8.47963 9.78183L10.8789 6.87274C11.1755 6.51316 10.8934 6 10.3991 6H5.60087C5.10663 6 4.8245 6.51312 5.12103 6.87271L7.51997 9.7818Z",fill:"currentColor"})})}function RW(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M1 0.5C0.723858 0.5 0.5 0.723858 0.5 1V6C0.5 6.27614 0.723858 6.5 1 6.5C1.27614 6.5 1.5 6.27614 1.5 6V1.5H6C6.27614 1.5 6.5 1.27614 6.5 1C6.5 0.723858 6.27614 0.5 6 0.5H1Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{d:"M15.5 1C15.5 0.723858 15.2761 0.5 15 0.5H10C9.72386 0.5 9.5 0.723858 9.5 1C9.5 1.27614 9.72386 1.5 10 1.5L14.5 1.5V6C14.5 6.27614 14.7239 6.5 15 6.5C15.2761 6.5 15.5 6.27614 15.5 6V1Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{d:"M15.5 15C15.5 15.2761 15.2761 15.5 15 15.5L10 15.5C9.72386 15.5 9.5 15.2761 9.5 15C9.5 14.7239 9.72386 14.5 10 14.5L14.5 14.5L14.5 10C14.5 9.72386 14.7239 9.5 15 9.5C15.2761 9.5 15.5 9.72386 15.5 10V15Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{d:"M0.5 15C0.5 15.2761 0.723858 15.5 1 15.5H6C6.27614 15.5 6.5 15.2761 6.5 15C6.5 14.7239 6.27614 14.5 6 14.5L1.5 14.5L1.5 10C1.5 9.72386 1.27614 9.5 1 9.5C0.723858 9.5 0.5 9.72386 0.5 10V15Z",fill:"currentColor",fillOpacity:"0.9"})]})}function PW(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M9.5 6C9.5 6.27614 9.72386 6.5 10 6.5L15 6.5C15.2761 6.5 15.5 6.27614 15.5 6C15.5 5.72386 15.2761 5.5 15 5.5L10.5 5.5L10.5 1C10.5 0.723858 10.2761 0.5 10 0.5C9.72386 0.5 9.5 0.723857 9.5 1L9.5 6Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{d:"M6.5 6C6.5 6.27614 6.27614 6.5 6 6.5L1 6.5C0.723857 6.5 0.5 6.27614 0.5 6C0.5 5.72386 0.723857 5.5 1 5.5L5.5 5.5L5.5 1C5.5 0.723858 5.72386 0.5 6 0.5C6.27614 0.5 6.5 0.723858 6.5 1L6.5 6Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{d:"M6.5 10C6.5 9.72386 6.27614 9.5 6 9.5H1C0.723858 9.5 0.5 9.72386 0.5 10C0.5 10.2761 0.723858 10.5 1 10.5H5.5L5.5 15C5.5 15.2761 5.72386 15.5 6 15.5C6.27614 15.5 6.5 15.2761 6.5 15L6.5 10Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{d:"M10 9.5C9.72386 9.5 9.5 9.72386 9.5 10V15C9.5 15.2761 9.72386 15.5 10 15.5C10.2761 15.5 10.5 15.2761 10.5 15V10.5H15C15.2761 10.5 15.5 10.2761 15.5 10C15.5 9.72386 15.2761 9.5 15 9.5H10Z",fill:"currentColor",fillOpacity:"0.9"})]})}function NW(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M10.5 2.5C10.5 1.11929 9.38071 0 8 0H2.5C1.11929 0 0 1.11929 0 2.5V13.5C0 14.8807 1.11929 16 2.5 16H8C9.38071 16 10.5 14.8807 10.5 13.5V11.5C10.5 11.2239 10.2761 11 10 11C9.72386 11 9.5 11.2239 9.5 11.5V13.5C9.5 14.3284 8.82843 15 8 15H2.5C1.67157 15 1 14.3284 1 13.5V2.5C1 1.67157 1.67157 1 2.5 1H8C8.82843 1 9.5 1.67157 9.5 2.5V4.5C9.5 4.77614 9.72386 5 10 5C10.2761 5 10.5 4.77614 10.5 4.5V2.5Z",fill:"currentColor"}),x("path",{d:"M12.1457 4.64655C12.3409 4.45126 12.6575 4.45123 12.8528 4.64647L15.8535 7.64647C15.9473 7.74024 16 7.86743 16 8.00006C16 8.13269 15.9473 8.25988 15.8535 8.35366L12.8528 11.3537C12.6575 11.5489 12.3409 11.5489 12.1457 11.3536C11.9505 11.1583 11.9505 10.8417 12.1458 10.6465L14.2928 8.5H5C4.72386 8.5 4.5 8.27614 4.5 8C4.5 7.72386 4.72386 7.5 5 7.5H14.2926L12.1458 5.35366C11.9505 5.15842 11.9505 4.84184 12.1457 4.64655Z",fill:"currentColor"})]})}function K3(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 14.0194L7.01555 9.87307C7.27942 9.51024 7.72224 9.32299 8.16637 9.38644L13.3903 10.1327L4 1.59605V14.0194ZM3 15.471V0.529014C3 0.0706568 3.54397 -0.16998 3.88313 0.138344L15.2003 10.4267C15.5853 10.7766 15.2855 11.4136 14.7705 11.34L8.02495 10.3764C7.94751 10.3653 7.87029 10.398 7.82428 10.4612L3.95497 15.7816C3.65422 16.1951 3 15.9823 3 15.471Z",fill:"currentColor",fillOpacity:"0.9"})})}function kW(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M14.7053 2.98798C15.0963 3.378 15.0963 4.01034 14.7053 4.40035L5.41136 13.67C5.22358 13.8573 4.9689 13.9625 4.70334 13.9625L1.50065 13.9625C1.22415 13.9625 1 13.739 1 13.4632V10.2689C1 10.004 1.10549 9.74997 1.29328 9.56268L10.5872 0.292999C10.9782 -0.0970153 11.6122 -0.0970152 12.0032 0.292999L14.7053 2.98798ZM11.2952 0.999182L13.9973 3.69417L12.1697 5.51693L9.47123 2.81842L11.2952 0.999182ZM8.7632 3.5246L11.4617 6.22311L4.70333 12.9639H2.00131L2.00131 10.2689L8.7632 3.5246Z"}),x("path",{fill:"currentColor",d:"M1.50022 15C1.22408 15 1.00022 15.2238 1.00022 15.5C1.00022 15.7761 1.22408 16 1.50022 16H14.5002C14.7764 16 15.0002 15.7761 15.0002 15.5C15.0002 15.2238 14.7764 15 14.5002 15H1.50022Z"})]})}function Z3(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6985 0.406259C13.3522 0.0599525 12.8919 -0.0392999 12.4954 0.0131402C12.106 0.0646288 11.7636 0.256958 11.5122 0.508362L1.68028 10.3402C1.31759 10.7029 1.03483 11.1491 0.877384 11.6356L0.0781442 14.1048C-0.0665271 14.5518 -0.0344847 15.1522 0.406536 15.5932C0.847553 16.0343 1.44801 16.0663 1.89497 15.9216L4.36421 15.1224C4.85065 14.9649 5.29685 14.6822 5.65954 14.3195L15.4914 4.48763C15.7428 4.23622 15.9352 3.89377 15.9866 3.50442C16.0391 3.10787 15.9398 2.64762 15.5935 2.30131L13.6985 0.406259ZM12.6265 1.00451C12.7713 0.985362 12.9025 1.02452 12.9914 1.11337L14.8864 3.00841C14.9753 3.09726 15.0144 3.22852 14.9953 3.37332C14.9761 3.51812 14.9002 3.66459 14.7843 3.78052L12.1361 6.42871L9.57107 3.86366L12.2193 1.21547C12.3352 1.09954 12.4817 1.02366 12.6265 1.00451ZM8.86397 4.57077L2.38738 11.0473C2.1285 11.3062 1.93413 11.6181 1.82879 11.9435L1.02955 14.4128C0.970077 14.5965 1.00163 14.7741 1.11364 14.8861C1.22565 14.9981 1.40329 15.0297 1.58702 14.9702L4.05626 14.171C4.38172 14.0656 4.69355 13.8713 4.95243 13.6124L11.429 7.13582L8.86397 4.57077Z",fill:"currentColor",fillOpacity:"0.9"})})}function MW(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.58883 0.12017C9.08195 -0.0400564 9.61315 -0.0400566 10.1063 0.12017C10.4173 0.221219 10.6833 0.400034 10.9564 0.631824C11.2214 0.856805 11.5238 1.15923 11.8981 1.53358L14.4664 4.10188C14.8408 4.47621 15.1432 4.77863 15.3682 5.04364C15.6 5.31668 15.7788 5.58273 15.8798 5.89373C16.0401 6.38685 16.0401 6.91804 15.8798 7.41117C15.7788 7.72217 15.6 7.98822 15.3682 8.26126C15.1432 8.52629 14.8407 8.82872 14.4664 9.20308L9.20308 14.4664C8.82872 14.8407 8.52628 15.1432 8.26126 15.3682C7.98822 15.6 7.72217 15.7788 7.41117 15.8798C6.91804 16.0401 6.38685 16.0401 5.89373 15.8798C5.58273 15.7788 5.31668 15.6 5.04364 15.3682C4.77862 15.1432 4.47619 14.8408 4.10184 14.4664L1.5336 11.8982C1.15924 11.5238 0.856809 11.2214 0.631824 10.9564C0.400034 10.6833 0.221219 10.4173 0.12017 10.1063C-0.0400566 9.61315 -0.0400565 9.08196 0.12017 8.58883C0.221219 8.27783 0.400034 8.01178 0.631825 7.73874C0.856807 7.47373 1.15923 7.17131 1.53358 6.79696L6.79694 1.5336C7.1713 1.15924 7.47372 0.85681 7.73874 0.631824C8.01178 0.400034 8.27783 0.221219 8.58883 0.12017ZM9.79725 1.07123C9.50497 0.976258 9.19013 0.976258 8.89785 1.07123C8.7624 1.11524 8.61165 1.20253 8.38592 1.39416C8.15572 1.58959 7.88196 1.8628 7.48897 2.25579L3.54149 6.20326L9.79673 12.4585L13.7442 8.51103C14.1372 8.11804 14.4104 7.84428 14.6058 7.61408C14.7975 7.38835 14.8848 7.2376 14.9288 7.10215C15.0237 6.80987 15.0237 6.49503 14.9288 6.20274C14.8848 6.0673 14.7975 5.91655 14.6058 5.69082C14.4104 5.46062 14.1372 5.18686 13.7442 4.79387L11.2061 2.25579C10.8131 1.8628 10.5394 1.58959 10.3092 1.39416C10.0834 1.20253 9.9327 1.11524 9.79725 1.07123ZM9.08963 13.1656L2.83439 6.91037L2.25579 7.48897C1.8628 7.88196 1.58959 8.15572 1.39416 8.38592C1.20253 8.61166 1.11524 8.7624 1.07123 8.89785C0.976258 9.19013 0.976258 9.50497 1.07123 9.79725C1.11524 9.9327 1.20253 10.0834 1.39416 10.3092C1.58959 10.5394 1.8628 10.8131 2.25579 11.2061L4.79387 13.7442C5.18686 14.1372 5.46062 14.4104 5.69082 14.6058C5.91655 14.7975 6.0673 14.8848 6.20274 14.9288C6.49503 15.0237 6.80987 15.0237 7.10215 14.9288C7.2376 14.8848 7.38835 14.7975 7.61408 14.6058C7.84428 14.4104 8.11804 14.1372 8.51103 13.7442L9.08963 13.1656Z",fill:"currentColor",fillOpacity:"0.9"})})}function DW(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M4.35355 0.853553C4.54882 0.658291 4.54882 0.341709 4.35355 0.146447C4.15829 -0.0488155 3.84171 -0.0488155 3.64645 0.146447L0.146447 3.64645C-0.0488155 3.84171 -0.0488155 4.15829 0.146447 4.35355L3.64645 7.85355C3.84171 8.04882 4.15829 8.04882 4.35355 7.85355C4.54882 7.65829 4.54882 7.34171 4.35355 7.14645L1.70711 4.5H11C13.2091 4.5 15 6.29086 15 8.5C15 10.7091 13.2091 12.5 11 12.5H1C0.723858 12.5 0.5 12.7239 0.5 13C0.5 13.2761 0.723858 13.5 1 13.5H11C13.7614 13.5 16 11.2614 16 8.5C16 5.73858 13.7614 3.5 11 3.5H1.70711L4.35355 0.853553Z",fill:"currentColor",fillOpacity:"0.9"})})}function LW(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M11.6464 0.853553C11.4512 0.658291 11.4512 0.341709 11.6464 0.146447C11.8417 -0.0488155 12.1583 -0.0488155 12.3536 0.146447L15.8536 3.64645C16.0488 3.84171 16.0488 4.15829 15.8536 4.35355L12.3536 7.85355C12.1583 8.04882 11.8417 8.04882 11.6464 7.85355C11.4512 7.65829 11.4512 7.34171 11.6464 7.14645L14.2929 4.5H5C2.79086 4.5 1 6.29086 1 8.5C1 10.7091 2.79086 12.5 5 12.5H15C15.2761 12.5 15.5 12.7239 15.5 13C15.5 13.2761 15.2761 13.5 15 13.5H5C2.23858 13.5 0 11.2614 0 8.5C0 5.73858 2.23858 3.5 5 3.5H14.2929L11.6464 0.853553Z",fill:"currentColor",fillOpacity:"0.9"})})}function FW(){return q("svg",{width:"16",height:"1",viewBox:"0 0 16 1",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("g",{clipPath:"url(#clip0_8796_19689)",children:x("rect",{x:"16",width:"1",height:"16",transform:"rotate(90 16 0)",fill:"currentColor"})}),x("defs",{children:x("clipPath",{id:"clip0_8796_19689",children:x("rect",{width:"16",height:"1",fill:"white",transform:"translate(16 1) rotate(-180)"})})})]})}function $W(){return q("svg",{width:"1",height:"16",viewBox:"0 0 1 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[q("g",{clipPath:"url(#clip0_9551_12220)",children:[x("rect",{width:"16",height:"1",transform:"translate(1) rotate(90)",fill:"currentColor"}),x("rect",{width:"1",height:"16",fill:"currentColor"})]}),x("defs",{children:x("clipPath",{id:"clip0_9551_12220",children:x("rect",{width:"16",height:"1",fill:"white",transform:"translate(1) rotate(90)"})})})]})}function av({color:e=Ts,size:t="20px",className:n="",...r}){return x("div",{css:ee("cursor:pointer;width:",t,";height:",t,";flex-shrink:0;flex-grow:0;border-radius:2px;background:",e,";box-sizing:border-box;",""),className:n,...r})}function BW(){return q("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M5.5 6C5.22386 6 5 6.22386 5 6.5V10.5C5 10.7761 5.22386 11 5.5 11C5.77614 11 6 10.7761 6 10.5V6.5C6 6.22386 5.77614 6 5.5 6Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{d:"M8 6.5C8 6.22386 8.22386 6 8.5 6C8.77614 6 9 6.22386 9 6.5V10.5C9 10.7761 8.77614 11 8.5 11C8.22386 11 8 10.7761 8 10.5V6.5Z",fill:"currentColor",fillOpacity:"0.9"}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.7324 3L4.18526 0.818458C4.47872 0.317612 5.00736 0 5.59007 0H8.41021C8.99292 0 9.52157 0.317612 9.81502 0.818458L11.2679 3H13.5C13.7761 3 14 3.22386 14 3.5C14 3.77614 13.7761 4 13.5 4H12.9161L12.1923 12.6254C12.1271 13.4025 11.4773 14 10.6975 14H3.30248C2.52268 14 1.87294 13.4025 1.80773 12.6254L1.08392 4H0.5C0.223858 4 0 3.77614 0 3.5C0 3.22386 0.223858 3 0.5 3H2.7324ZM5.0442 1.33067C5.16579 1.1179 5.37611 1 5.59007 1H8.41021C8.62417 1 8.83449 1.1179 8.95608 1.33067L8.96457 1.34552L10.0664 3H3.93387L5.03572 1.34552L5.0442 1.33067ZM2.08743 4H11.9126L11.1958 12.5418C11.174 12.8008 10.9575 13 10.6975 13H3.30248C3.04254 13 2.82596 12.8008 2.80423 12.5418L2.08743 4Z",fill:"currentColor",fillOpacity:"0.9"})]})}function UW({width:e="3"}){return x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M12.8571 6.5C12.8571 6.5 10 8.27419 10 10.0484C10 12.5273 14 10.0484 14 12.5323C14 14.6613 10 17.5 10 17.5",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round"})})}function J3(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1131 4.48764L6.65856 11.9418C6.29588 12.3045 5.84967 12.5873 5.36323 12.7447L2.894 13.5439C2.44702 13.6886 1.84657 13.6566 1.40556 13.2156C0.964538 12.7745 0.932497 12.1741 1.07717 11.7271L1.87641 9.25787C2.03386 8.77143 2.31661 8.32523 2.6793 7.96254L10.1339 0.508362C10.3853 0.256965 10.7277 0.0646272 11.1171 0.0131402C11.5136 -0.0392999 11.9739 0.0599524 12.3202 0.406259L14.2152 2.30131C14.5616 2.64762 14.6608 3.10787 14.6084 3.50442C14.5569 3.89377 14.3645 4.23624 14.1131 4.48764ZM10.841 1.21547L9.18419 2.87217L11.7492 5.43722L13.406 3.78052C13.522 3.66459 13.5978 3.51812 13.617 3.37332C13.6361 3.22852 13.597 3.09726 13.5081 3.00841L11.6131 1.11337C11.5242 1.02452 11.393 0.985362 11.2482 1.00451C11.1034 1.02366 10.9569 1.09954 10.841 1.21547ZM3.3864 8.66964L8.47707 3.57926L11.0421 6.14431L5.95146 11.2347C5.69257 11.4936 5.38075 11.688 5.05528 11.7933L2.58604 12.5925C2.40231 12.652 2.22467 12.6205 2.11267 12.5084C2.00066 12.3964 1.9691 12.2188 2.02857 12.0351L2.82781 9.56582C2.93316 9.24036 3.12752 8.92853 3.3864 8.66964Z",fill:"currentColor"}),x("path",{d:"M8.06604 13.9383C7.88925 13.7262 7.57397 13.6975 7.36183 13.8743L7.22457 13.9887C5.71191 15.2493 3.51468 15.2493 2.00202 13.9887L1.93339 13.9315C1.72125 13.7547 1.40597 13.7834 1.22918 13.9955C1.0524 14.2077 1.08106 14.523 1.2932 14.6997L1.36183 14.7569C3.24534 16.3265 5.98125 16.3265 7.86476 14.7569L8.00202 14.6425C8.21416 14.4658 8.24282 14.1505 8.06604 13.9383Z",fill:"currentColor"}),x("path",{d:"M14.1133 13.5084C14.1133 13.7846 13.8894 14.0084 13.6133 14.0084C13.3371 14.0084 13.1133 13.7846 13.1133 13.5084C13.1133 13.2323 13.3371 13.0084 13.6133 13.0084C13.8894 13.0084 14.1133 13.2323 14.1133 13.5084Z",fill:"currentColor"}),x("path",{d:"M9.61328 13.5084C9.88942 13.5084 10.1133 13.2846 10.1133 13.0084C10.1133 12.7323 9.88942 12.5084 9.61328 12.5084C9.33714 12.5084 9.11328 12.7323 9.11328 13.0084C9.11328 13.2846 9.33714 13.5084 9.61328 13.5084Z",fill:"currentColor"}),x("path",{d:"M12.1133 12.5084C12.1133 12.7846 11.8894 13.0084 11.6133 13.0084C11.3371 13.0084 11.1133 12.7846 11.1133 12.5084C11.1133 12.2323 11.3371 12.0084 11.6133 12.0084C11.8894 12.0084 12.1133 12.2323 12.1133 12.5084Z",fill:"currentColor"}),x("path",{d:"M15.1133 15.5084C15.3894 15.5084 15.6133 15.2846 15.6133 15.0084C15.6133 14.7323 15.3894 14.5084 15.1133 14.5084C14.8371 14.5084 14.6133 14.7323 14.6133 15.0084C14.6133 15.2846 14.8371 15.5084 15.1133 15.5084Z",fill:"currentColor"})]})}function zW(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2.5H4C3.28343 2.5 2.80615 2.50078 2.43944 2.53074C2.0844 2.55975 1.92194 2.61105 1.81901 2.66349C1.53677 2.8073 1.3073 3.03677 1.16349 3.31901C1.11105 3.42194 1.05975 3.5844 1.03074 3.93944C1.00078 4.30615 1 4.78343 1 5.5V10.5C1 11.2166 1.00078 11.6938 1.03074 12.0606C1.05975 12.4156 1.11105 12.5781 1.16349 12.681C1.3073 12.9632 1.53677 13.1927 1.81901 13.3365C1.92194 13.389 2.0844 13.4403 2.43944 13.4693C2.80615 13.4992 3.28343 13.5 4 13.5H12C12.7166 13.5 13.1938 13.4992 13.5606 13.4693C13.9156 13.4403 14.0781 13.389 14.181 13.3365C14.4632 13.1927 14.6927 12.9632 14.8365 12.681C14.889 12.5781 14.9403 12.4156 14.9693 12.0606C14.9992 11.6938 15 11.2166 15 10.5V5.5C15 4.78343 14.9992 4.30615 14.9693 3.93944C14.9403 3.5844 14.889 3.42194 14.8365 3.31901C14.6927 3.03677 14.4632 2.8073 14.181 2.66349C14.0781 2.61105 13.9156 2.55975 13.5606 2.53074C13.1938 2.50078 12.7166 2.5 12 2.5ZM0.272484 2.86502C0 3.3998 0 4.09987 0 5.5V10.5C0 11.9001 0 12.6002 0.272484 13.135C0.512167 13.6054 0.894619 13.9878 1.36502 14.2275C1.8998 14.5 2.59987 14.5 4 14.5H12C13.4001 14.5 14.1002 14.5 14.635 14.2275C15.1054 13.9878 15.4878 13.6054 15.7275 13.135C16 12.6002 16 11.9001 16 10.5V5.5C16 4.09987 16 3.3998 15.7275 2.86502C15.4878 2.39462 15.1054 2.01217 14.635 1.77248C14.1002 1.5 13.4001 1.5 12 1.5H4C2.59987 1.5 1.8998 1.5 1.36502 1.77248C0.894619 2.01217 0.512167 2.39462 0.272484 2.86502Z",fill:"currentColor"})})}function jW(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M13 1.5H3C1.35 1.5 0 2.85 0 4.5V10.5C0 11.85 0.83 14.3 3.96 14.49C4.04126 14.49 4.11994 14.4926 4.19735 14.4951C4.27233 14.4976 4.34621 14.5 4.42 14.5C6.83253 14.5 7.86342 13.213 7.96375 13.0877L7.97 13.08C8.13 12.86 8.09 12.55 7.87 12.39C7.65 12.22 7.34 12.26 7.17 12.48L7.169 12.4813C7.11747 12.5459 6.2537 13.629 4.02 13.49C1.14 13.31 1 10.95 1 10.5V4.5C1 3.4 1.9 2.5 3 2.5H13C14.1 2.5 15 3.4 15 4.5V11.5C15 11.78 15.22 12 15.5 12C15.78 12 16 11.78 16 11.5V4.5C16 2.85 14.65 1.5 13 1.5Z",fill:"currentColor"}),x("path",{d:"M13.5 12.5699C13.7761 12.5699 14 12.3461 14 12.0699C14 11.7938 13.7761 11.5699 13.5 11.5699C13.2239 11.5699 13 11.7938 13 12.0699C13 12.3461 13.2239 12.5699 13.5 12.5699Z",fill:"currentColor"}),x("path",{d:"M10 11.5699C10 11.8461 9.77614 12.0699 9.5 12.0699C9.22386 12.0699 9 11.8461 9 11.5699C9 11.2938 9.22386 11.0699 9.5 11.0699C9.77614 11.0699 10 11.2938 10 11.5699Z",fill:"currentColor"}),x("path",{d:"M11.5 11.5699C11.7761 11.5699 12 11.3461 12 11.0699C12 10.7938 11.7761 10.5699 11.5 10.5699C11.2239 10.5699 11 10.7938 11 11.0699C11 11.3461 11.2239 11.5699 11.5 11.5699Z",fill:"currentColor"}),x("path",{d:"M15.5 13.5699C15.5 13.8461 15.2761 14.0699 15 14.0699C14.7239 14.0699 14.5 13.8461 14.5 13.5699C14.5 13.2938 14.7239 13.0699 15 13.0699C15.2761 13.0699 15.5 13.2938 15.5 13.5699Z",fill:"currentColor"})]})}function WW(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M8 3C7.44772 3 7 3.44772 7 4V7C7 7.55228 7.44772 8 8 8C8.55228 8 9 7.55228 9 7V4C9 3.44772 8.55228 3 8 3Z",fill:"currentColor"}),x("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 4.21053C2 1.88512 3.88512 0 6.21053 0H9.78947C12.1149 0 14 1.88512 14 4.21053V10C14 13.3137 11.3137 16 8 16C4.68629 16 2 13.3137 2 10V4.21053ZM6.21053 1H9.78947C11.5626 1 13 2.4374 13 4.21053V10C13 12.7614 10.7614 15 8 15C5.23858 15 3 12.7614 3 10V4.21053C3 2.4374 4.4374 1 6.21053 1Z",fill:"currentColor"})]})}var VW={name:"pkfowv",styles:"animation:rotate 1s linear infinite;@keyframes rotate{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"};function HW(){return q("svg",{css:VW,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("rect",{opacity:"0.9",x:"7",y:"1",width:"2",height:"4",rx:"1",fill:"#000001"}),x("rect",{opacity:"0.8",x:"3.75684",y:"2.34326",width:"4",height:"2",rx:"1",transform:"rotate(45 3.75684 2.34326)",fill:"#000001"}),x("rect",{opacity:"0.7",x:"1",y:"7",width:"4",height:"2",rx:"1",fill:"#000001"}),x("rect",{opacity:"0.6",x:"5.17188",y:"9.41406",width:"2",height:"4",rx:"1",transform:"rotate(45 5.17188 9.41406)",fill:"#000001"}),x("rect",{opacity:"0.5",x:"7",y:"11",width:"2",height:"4",rx:"1",fill:"#000001"}),x("rect",{opacity:"0.4",x:"10.8281",y:"9.41406",width:"4",height:"2",rx:"1",transform:"rotate(45 10.8281 9.41406)",fill:"#000001"}),x("rect",{opacity:"0.3",x:"11",y:"7",width:"4",height:"2",rx:"1",fill:"#000001"}),x("rect",{opacity:"0.2",x:"12.2432",y:"2.34326",width:"2",height:"4",rx:"1",transform:"rotate(45 12.2432 2.34326)",fill:"#000001"})]})}const lv={...yr};function X3(e){const t=lv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&typeof t=="object"&&(t.usingClientEntryPoint=e)}function q3(e,t){if(Number((yr.version||"").split(".")[0])>=18&&lv.createRoot){X3(!0);const n=lv.createRoot(t);return X3(!1),n.render(e),{unmount(){n.unmount()}}}return yr.render(e,t),{unmount(){yr.unmountComponentAtNode(t)}}}function GW(){return x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M22.5 12C22.5 6.20101 17.799 1.5 12 1.5C6.20101 1.5 1.5 6.20101 1.5 12C1.5 17.799 6.20101 22.5 12 22.5C17.799 22.5 22.5 17.799 22.5 12ZM12.75 6.00045V14.25H11.25V6.00045H12.75ZM11.0914 16.5H12.8914V18.3H11.0914V16.5Z",fill:"#D54941"})})}function YW(){return x("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:x("path",{d:"M8.00005 8.91929L11.076 11.9952L11.9952 11.076L8.91929 8.00005L11.9952 4.92415L11.076 4.00491L8.00005 7.08081L4.92412 4.00488L4.00488 4.92412L7.08081 8.00005L4.00488 11.076L4.92412 11.9952L8.00005 8.91929Z",fill:"black",fillOpacity:"0.6"})})}const KW=U.forwardRef((e,t)=>{const[n,r]=p.useState(!0),[o,i]=p.useState(e);p.useImperativeHandle(t,()=>({close:()=>{r(!1)},open:()=>{r(!0)},update:T=>{i({...o,...T})}}));const{title:s,closable:a=!0,content:l,secondary:c,cancelText:u,okText:f,onCancel:d,onOk:h,okButtonProps:g,okButtonIsDanger:m=!0,cancelButtonProps:b,insertData:y={},customElements:v,...C}=o,{dialogOverallInsertStyles:S={},titleContainerInsertStyles:w={},contentContainerInsertStyles:_={},footerContainerInsertStyles:E={},titleContentInsertStyles:M={},alertIconNode:$=null,alertIconInsertStyles:D={},closeButtonInsertStyles:k={},contentInsertStyles:R={},okButtonInsertStyles:O={},cancelButtonInsertStyles:I={}}=y||{};async function A(N,T){T!=="backdropClick"&&(await(d==null?void 0:d()),r(!1))}async function P(){await(h==null?void 0:h()),r(!1)}return q(m1,{...C,open:n,onClose:A,css:ee({zIndex:a5},"",""),sx:{"& .MuiDialog-paper":{width:"480px",borderRadius:"9px",boxShadow:"0px 5px 5px -3px rgba(0, 0, 0, 0.1), 0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 3px 14px 2px rgba(0, 0, 0, 0.05)",...S},...C.sx},children:[q(Ox,{css:ee({display:"flex",alignItems:"center",padding:"32px 32px 16px",margin:0,color:"rgba(0, 0, 0, 0.9)",fontWeight:600,fontSize:"16px",lineHeight:"24px",...w},"",""),children:[$||x(GW,{css:ee({...D},"","")}),x("span",{css:ee({marginLeft:"8px",flex:"1",textAlign:"left",...M},"",""),children:s}),a&&!Hc()&&x(Y0,{css:ee({"&[type=button]":{padding:"2px",cursor:"pointer",...k}},"",""),onClick:A,children:x(YW,{})})]}),q(g1,{css:ee({padding:"0 32px 16px 32px",..._},"",""),children:[x("p",{css:ee({margin:0,color:"rgba(0, 0, 0, 0.6)",fontSize:"14px",lineHeight:"22px",textAlign:"left",...R},"",""),children:l}),c]}),q(kf,{css:ee({padding:"0 32px 32px",...E},"",""),children:[!!v&&v,!!u&&x(Ip,{...b,insertStyles:{fontSize:"14px",...I},cancelText:u,onClick:A}),!!f&&x(is,{onClick:P,variant:"contained",color:"error",disableRipple:!0,sx:{textTransform:"none"},css:ee({"&[type=button]":{display:"flex",justifyContent:"center",alignItems:"center",padding:"5px 16px",height:"32px",borderRadius:"3px",boxShadow:"none",color:"rgba(255, 255, 255, 0.9)",fontSize:"14px",lineHeight:"22px",...Hc()?{}:{background:"#d54941","&:hover":{background:"#f6685d"},"&:active":{background:"#ad352f"}},...m?{}:{background:"#0052D9","&:hover":{background:"#1976d2"},"&:active":{background:"#1976d2"}},...O}},"",""),...g,children:f})]})]})});function cv(e){const t={...e,open:!0};let n=document.createDocumentFragment(),r=!1;const o=U.createRef();let i=null;function s(f){const d={...f};n&&(i=q3(x(KW,{...d,ref:o}),n))}function a(){var f;if(r){console.error("Can\'t destroy this dialog, because this confirm dialog has been destroyed!");return}(f=o.current)==null||f.close(),i&&i.unmount(),n=null,i=null,r=!0,r=!0}function l(){var f;if(r){console.error("Can\'t close this dialog, because this confirm dialog has been destroyed!");return}(f=o.current)==null||f.close()}function c(){var f;if(r){console.error("Can\'t open this dialog, because this confirm dialog has been destroyed!");return}(f=o.current)==null||f.open()}function u(f){var d;if(r){console.error("Can\'t update this dialog, because this confirm dialog has been destroyed!");return}(d=o.current)==null||d.update(f)}return s(t),{destroy:a,open:c,close:l,update:u}}const ZW=window.ZCBCoChannel.makeLogger,JW=ZW(["CoBrowsing Event","COMMON"]);let bn;function qc(){bn==null||bn.destroy(),bn=null}function XW(e,t){const n=Hc(),{getCheckedInsertStyles:r,getCheckedInsertText:o,getCheckedInsertDisabled:i,getCheckedInsertIcon:s}=rr(),a=p.useCallback(({type:u="stop",useCustomButton:f=!1})=>{const{insertData:d={}}=t||{},{dialogOverall:h,dialogTitleContainer:g,dialogContentContainer:m,dialogFooterContainer:b,alertIcon:y,closeButton:v,dialogTitleContent:C,dialogTextContent:S,cancelButton:w,endButton:_,leaveButton:E}=d;return{title:o(C)||(u==="leave"?"Leave the session":"End the session"),closable:!n&&!i(v),content:o(S)||(u==="leave"?"Are you sure you want to leave the Cobrowse session?":"Are you sure you want to end the Cobrowse session?"),onOk(){bn=null,JW.log(`[PAGE CALL][BUTTON] showStopDialog trigger end, type: ${u}`),e==null||e(u)},okButtonProps:{className:"zcb-stop-confirm-btn"},okText:u==="leave"?o(E)||"Leave":o(_)||"End",cancelButtonProps:{className:"cancel-button"},className:`${so} cobrowse-com-dialog-module cobrowse-com-dialog-two-btn-module`,cancelText:u==="leave"?"":o(w)||"Cancel",onCancel(){bn=null},customElements:f?q(sr,{children:[x(is,{variant:"text",disableRipple:!0,sx:{textTransform:"none",fontSize:"14px",lineHeight:"20px",fontWeight:"400",...r(w)},onClick:()=>{bn==null||bn.close(),bn=null},children:o(w)||"Cancel"}),x(Ip,{disableRipple:!0,insertStyles:{fontSize:"14px",...r(_)},cancelText:o(_)||"End for All",onClick:()=>{e==null||e("stop"),bn=null}})]}):null,insertData:{dialogOverallInsertStyles:r(h),titleContainerInsertStyles:r(g),contentContainerInsertStyles:r(m),footerContainerInsertStyles:r(b),titleContentInsertStyles:r(C),alertIconInsertStyles:r(y),alertIconNode:s(y),contentInsertStyles:r(S),okButtonInsertStyles:r(u==="leave"?E:_),cancelButtonInsertStyles:r(w),closeButtonInsertStyles:r(v)}}},[e,i,s,r,o,n,t]),l=p.useCallback(u=>{if(bn)return;const{type:f,useCustomButton:d}=u||{};bn=cv(a({type:f,useCustomButton:d}))},[a]),c=p.useCallback(()=>{qc()},[]);return p.useEffect(()=>{const{autoUpdate:u=!1,deps:f={}}=t||{};if(bn&&u){const d=f.agentList.length>1?"leave":"stop",h=f.agentList.length>1;bn.update(a({type:d,useCustomButton:h}))}},[t,a]),{showStopDialog:l,cleanStopDialog:c}}const qW={marginLeft:"8px",marginRight:"8px",marginTop:"8px",marginBottom:"8px"};function QW({closeMenu:e,anchorEl:t,isVerticalToolbar:n,tooltipPosition:r}){const o=p.useMemo(()=>!!t,[t]),i=p.useRef(null),{setScale:s}=Je(f=>f),{getCheckedInsertStyles:a,getCheckedInsertText:l}=rr(),c=p.useCallback(()=>{s(0),e()},[e,s]),u=p.useCallback(()=>{s(1),e()},[e,s]);return p.useLayoutEffect(()=>{o&&requestAnimationFrame(()=>{if(!i.current)return;const f=i.current.querySelector(".MuiPaper-root");if(!f)return;const d=window.getComputedStyle(f);if(n){const h=r==="left"?`-${d.marginRight}`:d.marginLeft;f.style.margin=`${d.marginTop} 0 ${d.marginBottom} ${h}`}else{const h=r==="top-start"?`-${d.marginBottom}`:d.marginTop;f.style.margin=`${h} 0 0 ${d.marginRight}`}})},[o,n,r]),q(hP,{ref:i,anchorEl:t,open:o,onClose:e,MenuListProps:{"aria-labelledby":"basic-button"},anchorOrigin:n?{vertical:"top",horizontal:r==="left"?"left":"right"}:{vertical:r==="top-start"?"top":"bottom",horizontal:"left"},transformOrigin:n?{vertical:"top",horizontal:r==="left"?"right":"left"}:{vertical:r==="top-start"?"bottom":"top",horizontal:"left"},css:ee({"& .MuiPaper-root":{...qW,...a(n?j.AgentZoomInOutMenuVerticalWrapper:j.AgentZoomInOutMenuHorizontalWrapper)},"& .MuiList-root":{padding:"6px",borderRadius:"6px",border:"1px solid rgba(220, 220, 220, 1)",boxShadow:"0px 5px 5px -3px rgba(0, 0, 0, 0.1), 0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 3px 14px 2px rgba(0, 0, 0, 0.05)",...a(j.AgentZoomInOutMenuRoot)},"& .MuiMenuItem-root:hover":{background:"rgba(242, 243, 255, 1)",color:"rgba(0, 82, 217, 1)"},"& .MuiMenuItem-root":{fontSize:"14px",fontWeight:"400",lineHeight:"22px",textAlign:"left",padding:"3px 8px",minWidth:"148px",minHeight:"28px",...a(j.AgentZoomInOutMenuItem)}},"",""),children:[x(z2,{css:a(j.AgentZoomInOutMenuItemFitToWindow),onClick:c,children:l(j.AgentZoomInOutMenuItemFitToWindow)??"Fit to window"}),x(z2,{css:a(j.AgentZoomInOutMenuItemActualSize),onClick:u,children:l(j.AgentZoomInOutMenuItemActualSize)??"Actual size"})]})}function eV(){const e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}function tV(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}const Q3=e=>{let t;const n=new Set,r=(u,f)=>{const d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const h=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(g=>g(t,h))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{n.clear()}},c=t=e(r,o,l);return l},En=(e=>e?Q3(e):Q3)(()=>({isVerticalToolbar:!0,isToolbarDragging:!1,tooltipPosition:"right",popperMargin:{},popperPlacement:"right-start",disableUndo:!0,disableRedo:!0,selectedColor:Ts,selectedPenWidth:Go.regular})),Ya=e=>{const[t,n]=p.useState(e(En.getState()));return p.useEffect(()=>{const r=En.subscribe(o=>{const i=e(o);n(i)});return()=>r()},[e]),t};var nV={name:"1vgoj7v",styles:"display:flex;flex-direction:column;justify-content:space-between"};function e4({selectedColor:e,anchorEl:t,container:n,placement:r,open:o,popperMargin:i,isVerticalToolbar:s,onClickAway:a,toggleColorSubMenu:l,setColor:c}){const{anotationManager:u,AnotationMethods:f}=Je(b=>b),{getCheckedInsertStyles:d}=rr(),{isToolbarDragging:h}=Ya(b=>b);function g(b){u.use(f.changeColor,b),c(b),l()}const m=p.useMemo(()=>_W.reduce((b,y,v)=>{const C=v%5;return b[C]?b[C].push(y):b[C]=[y],b},[]),[]);return x(q0,{onClickAway:()=>{a()},children:x(os,{css:ee({border:"1px solid #DCDCDC",borderRadius:"6px",backgroundColor:"#fff",padding:"8px 12px",boxShadow:"0px 5px 5px -3px #0000001A, 0px 8px 10px 1px #0000000F, 0px 3px 14px 2px #0000000D",zIndex:2,width:"160px",display:"flex",flexWrap:"wrap",justifyContent:"space-between",visibility:h?"hidden":"visible",...i,...d(s?j.AgentColorSubMenuVerticalWrapper:j.AgentColorSubMenuHorizontalWrapper)},"",""),modifiers:[{name:"customMarginRemover",enabled:!0,phase:"write",fn:({state:b})=>{var y;(y=b.elements)!=null&&y.popper&&(b.elements.popper.style.margin="")}}],open:o,anchorEl:t,container:n,placement:r,children:m.map((b,y)=>x("div",{css:nV,children:b.map(v=>x(av,{size:"20px",css:ee({...e===v?{outline:`2px solid ${v}`,border:"2px solid #fff",margin:"6px",...d(j.AgentColorSubMenuActiveButtonCommon)}:{border:"1px solid #52528017",margin:"6px",...d(j.AgentColorSubMenuButtonCommon)}},"",""),color:v,onClick:()=>{g(v)}},v))},`colorLine_${y}`))})})}var rV={name:"zjik7",styles:"display:flex"},oV={name:"zjik7",styles:"display:flex"},iV={name:"yqzk9i",styles:"width:134px;& > div{margin-bottom:8px;}& > div:last-child{margin-bottom:0;}"},sV={name:"220rkc",styles:"color:#fff"};function t4({value:e,anchorEl:t,container:n,placement:r,open:o,popperMargin:i,isVerticalToolbar:s,onClickAway:a,setValue:l,toggleFunc:c}){const{anotationManager:u,AnotationMethods:f}=Je(y=>y),{getCheckedInsertStyles:d,getCheckedInsertText:h}=rr(),{isToolbarDragging:g}=Ya(y=>y);function m(y){u.use(f.changeDrawWidth,Y3[y]),l(y),c(!1)}const b=p.useCallback((y=!1)=>({...d(j.AgentPenSubMenuButtonCommon),...y?d(j.AgentPenSubMenuButtonActiveCommon):null}),[d]);return x(q0,{onClickAway:()=>{a()},children:x(os,{css:ee({border:"1px solid #DCDCDC",borderRadius:"6px",backgroundColor:"#fff",boxSizing:"border-box",width:"158px",padding:"8px",color:"#000",boxShadow:"0px 5px 5px -3px #0000001A, 0px 8px 10px 1px #0000000F, 0px 3px 14px 2px #0000000D",zIndex:2,visibility:g?"hidden":"visible",fontSize:"12px",fontWeight:"400",textAlign:"left",...i,...d(s?j.AgentPenSubMenuVerticalWrapper:j.AgentPenSubMenuHorizontalWrapper)},"",""),modifiers:[{name:"customMarginRemover",enabled:!0,phase:"write",fn:({state:y})=>{var v;(v=y.elements)!=null&&v.popper&&(y.elements.popper.style.margin="")}}],open:o,anchorEl:t,container:n,placement:r,children:q("div",{css:iV,children:[q("div",{children:[x("div",{css:ee({marginTop:"0",marginBottom:"4px",fontSize:"12px",fontWeight:"400",...d(j.AgentPenSubMenuDrawText)},"",""),children:h(j.AgentPenSubMenuDrawText)??"Draw"}),x("div",{css:oV,children:x(Ct,{active:!0,isVerticalToolbar:!1,tooltipPosition:"bottom-start",activeBackgroundColor:Yo,css:b(!0),insertDataFeatureKey:j.AgentPenSubMenuButtonCommon,commonFeatureKey:j.AgentPenSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenSubMenuButtonActiveCommon,children:x(Z3,{css:sV})})})]}),q("div",{children:[x("h6",{css:ee({marginTop:"0",marginBottom:"4px",fontSize:"12px",fontWeight:"400",...d(j.AgentPenSubMenuLineWidthText)},"",""),children:h(j.AgentPenSubMenuLineWidthText)??"Line width"}),x("div",{css:rV,children:Object.keys(Go).map(y=>{const v=Go[y],C=e===v;return x(Ct,{isVerticalToolbar:!1,tooltipTitle:y[0].toUpperCase()+y.slice(1),tooltipPosition:"bottom-start",onClick:()=>{m(v)},active:C,activeBackgroundColor:Yo,insertDataFeatureKey:j.AgentPenSubMenuButtonCommon,commonFeatureKey:j.AgentPenSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenSubMenuButtonActiveCommon,css:ee({color:C?"#fff":"#000",...b(C)},"",""),children:x(UW,{width:v})},y)})})]})]})})})}const n4="#00000042",r4=`${Wo}tb-pen-sub-`;function aV({isVerticalToolbar:e,tooltipPosition:t,disableUndo:n,disableRedo:r}){const{anotationManager:o,AnotationMethods:i}=Je(l=>l);function s(){n||o.use(i.triggerUndo)}function a(){r||o.use(i.triggerRedo)}return q(sr,{children:[x(Ct,{onClick:s,disabled:n,tooltipTitle:"Undo",isVerticalToolbar:e,tooltipPosition:t,id:`${r4}undo`,insertDataFeatureKey:j.AgentPenAnnotationSubMenuUndoButton,commonFeatureKey:j.AgentPenAnnotationSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenAnnotationSubMenuButtonActiveCommon,css:ee({"&:disabled":{color:n4}},"",""),children:x(dt,{insertReplaceIconKey:j.AgentPenAnnotationSubMenuUndoIcon,children:x(DW,{})})}),x(Ct,{onClick:a,disabled:r,tooltipTitle:"Redo",isVerticalToolbar:e,tooltipPosition:t,id:`${r4}redo`,insertDataFeatureKey:j.AgentPenAnnotationSubMenuRedoButton,commonFeatureKey:j.AgentPenAnnotationSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenAnnotationSubMenuButtonActiveCommon,css:ee({"&:disabled":{color:n4}},"",""),children:x(dt,{insertReplaceIconKey:j.AgentPenAnnotationSubMenuRedoIcon,children:x(LW,{})})})]})}const o4=e=>{const{onStart:t,onStop:n,...r}=e,o=p.useRef(!1),i=(a,l)=>{o.current=!0,t==null||t(a,l)},s=(a,l)=>{setTimeout(()=>{o.current=!1}),n==null||n(a,l)};return p.useEffect(()=>{const a=l=>{o.current&&l.preventDefault()};return document.addEventListener("contextmenu",a),()=>{document.removeEventListener("contextmenu",a)}},[]),x(U5,{...r,onStart:i,onStop:s})},rt={none:-1,control:1,draw:3,eraser:4,vanishingPen:5,rect:6,ellipse:7,diamond:8,line:9,arrow:10,vanishingRect:11},i4=10,Ar=10,lV=p.forwardRef(function(t,n){const{isVerticalToolbar:r}=Ya(N=>N),{transformInsertPos:o,getCheckedInsertStyles:i,getDisabledSwitcherData:s}=rr(),{toolbarStyle:a,toolbarClass:l,children:c,onDrag:u,initInsertDataPos:f}=t,[d,h]=p.useState(0),[g,m]=p.useState(0),[b,y]=p.useState({x:0,y:0}),v=p.useRef([0,0]),C=p.useRef(!1),S=p.useRef(!1),w=p.useRef(null),_=p.useCallback(()=>{var T;const N=(T=w.current)==null?void 0:T.getBoundingClientRect();N&&(h(N.width),m(N.height))},[]),E=p.useMemo(()=>s(j.AgentToolbarAllowRotation),[s]),M=p.useCallback(N=>{var L;const T=(L=w.current)==null?void 0:L.getBoundingClientRect();if(T){const z=Math.max(T.height,T.width),B=N??f;y(B&&o(B,document.body.getBoundingClientRect(),T)||{x:Ar,y:window.innerHeight>z?(window.innerHeight-z)/2:Ar})}},[f,o]),$=p.useMemo(()=>Eg(()=>{!r&&d>window.innerWidth?y({...b,x:Ar}):r&&g>window.innerHeight&&y({...b,y:Ar})},50),[b,r,g,d]);p.useEffect(()=>{const{x:N,y:T}=b;if(r){const z=N<window.innerWidth/2?"right":"left";En.setState({tooltipPosition:z,popperMargin:z==="left"?{marginRight:"8px"}:{marginLeft:"8px"},popperPlacement:z==="left"?"left-start":"right-start"});return}const L=T<window.innerHeight/2?"bottom-start":"top-start";En.setState({tooltipPosition:L,popperMargin:L==="top-start"?{marginBottom:"8px"}:{marginTop:"8px"},popperPlacement:L})},[r,b]),p.useEffect(()=>{_()},[r,_]);const D=p.useCallback(N=>{v.current=[N.x,N.y]},[]),k=p.useCallback((N,T)=>{const{x:L,y:z}=T,[B,V]=v.current;if((Math.abs(B-L)>=i4||Math.abs(V-z)>=i4)&&(C.current||En.setState({isToolbarDragging:!0}),C.current=!0),!(r&&g>=window.innerHeight||!r&&d>=window.innerWidth)&&!E){const{clientX:H,clientY:K}=N,G=Math.max(d,g),te=z>window.innerHeight-G/2||z<G/2*-1,ne=L>window.innerWidth-G/2||L<G/2*-1,ge=H-L,se=K-z;if(r?te&&!S.current&&(S.current=!0,y({x:H-se,y:K-ge}),En.setState({isVerticalToolbar:!1})):ne&&!S.current&&(S.current=!0,y({x:H-se,y:K-ge}),En.setState({isVerticalToolbar:!0})),S.current){const he=(H>window.innerWidth-G/2||H<G/2)&&(K>window.innerHeight-G/2||K<G/2);S.current=!!he}}},[r,E,g,d]),R=p.useCallback(({x:N,y:T})=>{const L=w.current.getBoundingClientRect(),z=L.width,B=L.height,V=(()=>N<Ar?Ar:N>window.innerWidth-z-Ar?window.innerWidth-z-Ar:N)(),H=(()=>T<Ar?Ar:T>window.innerHeight-B-Ar?window.innerHeight-B-Ar:T)();y({x:V,y:H})},[]),O=p.useCallback((N,T)=>{const{x:L,y:z}=T;y({x:L,y:z}),setTimeout(()=>{var B,V,H,K;R({x:L,y:z}),C.current||N.type==="touchend"&&((K=(H=(V=(B=N.target)==null?void 0:B.closest)==null?void 0:V.call(B,"button"))==null?void 0:H.click)==null||K.call(H)),C.current=!1,En.setState({isToolbarDragging:!1})},0)},[R]);p.useEffect(()=>{function N(){$(),setTimeout(()=>{R({x:b.x,y:b.y})},50)}return window.addEventListener("resize",N),()=>window.removeEventListener("resize",N)},[b,$,R]);const{anotationManager:I,AnotationMethods:A}=Je(N=>N),P=p.useCallback((N,T)=>{N?En.setState({disableUndo:T}):En.setState({disableRedo:T})},[]);return p.useEffect(()=>{if(!I)return;function N({undoNum:T,redoNum:L}){P(!0,T<=0),P(!1,L<=0)}return I.use(A.addEventHandler,G3.historyChange,N),()=>{I.use(A.removeEventHandler,G3.historyChange,N)}},[I,A,P]),p.useImperativeHandle(n,()=>({updateMiniWindowToolbarPos:$,updateToolbarElRect:_,updateInitialDragPos:M,getIsToolbarDragging:()=>C.current})),x(o4,{bounds:{top:g*-1,left:d*-1,bottom:window.innerHeight+g,right:window.innerWidth+d},onStart:(N,T)=>{D(T)},onDrag:(N,T)=>{u==null||u(N,T),k(N,T)},onStop:(N,T)=>{O(N,T)},position:b,handle:`.${l}`,children:x("div",{css:ee({borderRadius:"5px",background:"#f3f3f3",height:"fit-content",width:"fit-content",position:"fixed",display:"flex",overflow:"hidden",boxShadow:"0px 2px 4px -1px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.08)",backdropFilter:"blur(5px)",flex:"1",flexDirection:r?"column":"row",alignItems:"center",margin:"0",padding:"0",...a,...i(r?j.AgentToolbarVerticalWrapper:j.AgentToolbarHorizontalWrapper)},"",""),className:`${l}`,ref:w,children:c})})});var uv=(e=>(e[e.Rect=1]="Rect",e[e.Ellipse=2]="Ellipse",e[e.Diamond=3]="Diamond",e[e.Line=4]="Line",e[e.Arrow=5]="Arrow",e))(uv||{});const Ka=`${Wo}tb-pen-sub-`,Yo="#0052D9",Op="#fff",cV=p.forwardRef(function({show:t,isVerticalToolbar:n,tooltipPosition:r,anchorEl:o,disableUndo:i,disableRedo:s},a){const{anotationManager:l,AnotationMethods:c}=Je(T=>T),{popperMargin:u,popperPlacement:f,isToolbarDragging:d,selectedColor:h,selectedPenWidth:g}=Ya(T=>T),{getCheckedInsertStyles:m}=rr(),b=p.useRef(null),[y,v]=p.useState(rt.vanishingPen),C=T=>{En.setState({selectedColor:T})},S=T=>{En.setState({selectedPenWidth:T})},w=p.useCallback(function(){D(null)},[]),_=p.useCallback(function(){M(null)},[]),[E,M]=p.useState(null),[$,D]=p.useState(null),k=p.useCallback(()=>{M(null),D(null)},[]);p.useEffect(()=>{t||k()},[k,t]);function R(){l.use(c.enableControlMode),v(rt.control)}function O(){l.use(c.toggleDrawMode,!0),v(rt.draw)}function I(){l.use(c.toggleEraser,!1),v(rt.eraser)}function A(T){return y===T?Op:void 0}const P=p.useCallback(()=>{l.use(c.triggerClear)},[l,c]);p.useImperativeHandle(a,()=>({resetPenWidth(){S(Go.regular)},resetActiveBtnKey(){v(rt.draw)},resetPenColor(){C(Ts)}}),[v]);function N(){l.use(c.toggleDrawGraphBase,uv.Rect),v(rt.rect)}return q(os,{css:ee({padding:"4px",gap:"4px",border:"none",borderRadius:"5px",background:"#f3f3f3",boxSizing:"border-box",boxShadow:"0px 2px 4px -1px #0000001F,0px 4px 5px 0px #00000014,0px 1px 10px 0px #0000000D",zIndex:2,display:"flex",flexDirection:n?"column":"row",alignItems:"center",visibility:d?"hidden":"visible",...t?u:{},...m(n?j.AgentPenAnnotationSubMenuVerticalWrapper:j.AgentPenAnnotationSubMenuHorizontalWrapper)},"",""),modifiers:[{name:"customMarginRemover",enabled:!0,phase:"write",fn:({state:T})=>{var L;(L=T.elements)!=null&&L.popper&&(T.elements.popper.style.margin="")}}],anchorEl:o,placement:f,open:t,ref:b,children:[x(t4,{value:g,setValue:S,toggleFunc:_,onClickAway:_,open:!!E,anchorEl:E,placement:f,popperMargin:u,isVerticalToolbar:n}),x(e4,{selectedColor:h,setColor:C,toggleColorSubMenu:w,onClickAway:w,open:!!$,anchorEl:$,placement:f,popperMargin:u,isVerticalToolbar:n}),x(Ct,{tooltipTitle:"Mouse",isVerticalToolbar:n,tooltipPosition:r,active:y===rt.control,activeBackgroundColor:Yo,onClick:R,id:`${Ka}mouse`,insertDataFeatureKey:j.AgentPenAnnotationSubMenuMouseButton,commonFeatureKey:j.AgentPenAnnotationSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenAnnotationSubMenuButtonActiveCommon,children:x(dt,{insertReplaceIconKey:j.AgentPenAnnotationSubMenuMouseIcon,children:x(K3,{css:ee({color:A(rt.control)},"","")})})}),x(Ct,{tooltipTitle:"Pen",isVerticalToolbar:n,tooltipPosition:r,active:y===rt.draw,activeBackgroundColor:Yo,onClick:T=>{k(),O(),M(E?null:T.currentTarget),T.stopPropagation()},id:`${Ka}pen`,insertDataFeatureKey:j.AgentPenAnnotationSubMenuPenButton,commonFeatureKey:j.AgentPenAnnotationSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenAnnotationSubMenuButtonActiveCommon,children:x(dt,{insertReplaceIconKey:j.AgentPenAnnotationSubMenuPenIcon,children:x(Z3,{css:ee({color:A(rt.draw)},"","")})})}),x(Ct,{tooltipTitle:"Rectangle",isVerticalToolbar:n,active:y===rt.rect,activeBackgroundColor:Yo,tooltipPosition:r,onClick:N,css:ee({color:A(rt.rect)},"",""),id:`${Ka}rect`,insertDataFeatureKey:j.AgentPenAnnotationSubMenuRectangleButton,commonFeatureKey:j.AgentPenAnnotationSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenAnnotationSubMenuButtonActiveCommon,children:x(dt,{insertReplaceIconKey:j.AgentPenAnnotationSubMenuRectangleIcon,children:x(zW,{})})}),x(Ct,{tooltipTitle:"Eraser",isVerticalToolbar:n,tooltipPosition:r,active:y===rt.eraser,activeBackgroundColor:Yo,onClick:I,id:`${Ka}eraser`,insertDataFeatureKey:j.AgentPenAnnotationSubMenuEraserButton,commonFeatureKey:j.AgentPenAnnotationSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenAnnotationSubMenuButtonActiveCommon,children:x(dt,{insertReplaceIconKey:j.AgentPenAnnotationSubMenuEraserIcon,children:x(MW,{css:ee({color:A(rt.eraser)},"","")})})}),x(Ct,{tooltipTitle:"Color",isVerticalToolbar:n,tooltipPosition:r,onClick:T=>{k(),D($?null:T.currentTarget),T.stopPropagation()},id:`${Ka}color`,insertDataFeatureKey:j.AgentPenAnnotationSubMenuColorButton,commonFeatureKey:j.AgentPenAnnotationSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenAnnotationSubMenuButtonActiveCommon,children:x(av,{css:ee({border:"1px solid #5252802E",borderRadius:"2px",...m(j.AgentPenAnnotationSubMenuColorIcon)},"",""),color:h})}),x(aV,{isVerticalToolbar:n,tooltipPosition:r,disableUndo:i,disableRedo:s}),x(Ct,{tooltipTitle:"Clear",isVerticalToolbar:n,tooltipPosition:r,onClick:P,id:`${Ka}clear`,insertDataFeatureKey:j.AgentPenAnnotationSubMenuClearButton,commonFeatureKey:j.AgentPenAnnotationSubMenuButtonCommon,commonActiveFeatureKey:j.AgentPenAnnotationSubMenuButtonActiveCommon,children:x(dt,{insertReplaceIconKey:j.AgentPenAnnotationSubMenuClearIcon,children:x(BW,{})})})]})}),Ap=`${Wo}tb-vs-sub-`,dv="#0052D9",uV="#fff",dV=p.forwardRef(function({show:t,isVerticalToolbar:n,tooltipPosition:r,anchorEl:o},i){const{anotationManager:s,AnotationMethods:a}=Je(I=>I),{popperMargin:l,popperPlacement:c,isToolbarDragging:u,selectedColor:f,selectedPenWidth:d}=Ya(I=>I),{getCheckedInsertStyles:h}=rr(),g=p.useRef(null),[m,b]=p.useState(rt.vanishingPen),y=I=>{En.setState({selectedColor:I})},v=I=>{En.setState({selectedPenWidth:I})},C=p.useCallback(function(){M(null)},[]),S=p.useCallback(function(){_(null)},[]),[w,_]=p.useState(null),[E,M]=p.useState(null),$=p.useCallback(()=>{_(null),M(null)},[]);function D(I){return m===I?uV:void 0}p.useEffect(()=>{t||$()},[$,t]);function k(){s.use(a.enableControlMode),b(rt.control)}const R=()=>{s.use(a.triggerVanishingPen),b(rt.vanishingPen)};p.useImperativeHandle(i,()=>({resetPenWidth(){v(Go.regular)},resetActiveBtnKey(){b(rt.vanishingPen)},resetPenColor(){y(Ts)}}),[b]);function O(){s.use(a.toggleDrawGraphBase,uv.Rect,!0),b(rt.vanishingRect)}return q(os,{css:ee({padding:"4px",gap:"4px",border:"none",borderRadius:"5px",background:"#f3f3f3",boxSizing:"border-box",boxShadow:"0px 2px 4px -1px #0000001F,0px 4px 5px 0px #00000014,0px 1px 10px 0px #0000000D",zIndex:2,display:"flex",flexDirection:n?"column":"row",alignItems:"center",visibility:u?"hidden":"visible",...t?l:{},...h(n?j.AgentVanishingPenSubMenuVerticalWrapper:j.AgentVanishingPenSubMenuHorizontalWrapper)},"",""),modifiers:[{name:"customMarginRemover",enabled:!0,phase:"write",fn:({state:I})=>{var A;(A=I.elements)!=null&&A.popper&&(I.elements.popper.style.margin="")}}],anchorEl:o,placement:c,open:t,ref:g,children:[x(t4,{value:d,setValue:v,toggleFunc:S,onClickAway:S,open:!!w,anchorEl:w,placement:c,popperMargin:l,isVerticalToolbar:n}),x(e4,{selectedColor:f,setColor:y,toggleColorSubMenu:C,onClickAway:C,open:!!E,anchorEl:E,placement:c,popperMargin:l,isVerticalToolbar:n}),x(Ct,{tooltipTitle:"Mouse",isVerticalToolbar:n,tooltipPosition:r,active:m===rt.control,activeBackgroundColor:dv,onClick:k,id:`${Ap}mouse`,insertDataFeatureKey:j.AgentVanishingPenSubMenuMouseButton,commonFeatureKey:j.AgentVanishingPenSubMenuButtonCommon,commonActiveFeatureKey:j.AgentVanishingPenMenuButtonActiveCommon,insertStyle:{marginTop:"0"},children:x(dt,{insertReplaceIconKey:j.AgentVanishingPenSubMenuMouseIcon,children:x(K3,{css:ee({color:D(rt.control)},"","")})})}),x(Ct,{tooltipTitle:"Vanishing pen",isVerticalToolbar:n,tooltipPosition:r,active:m===rt.vanishingPen,activeBackgroundColor:dv,onClick:I=>{$(),R(),_(w?null:I.currentTarget),I.stopPropagation()},css:ee({color:D(rt.vanishingPen)},"",""),id:`${Ap}vanishing-pen`,insertDataFeatureKey:j.AgentVanishingPenSubMenuVanishingPenButton,commonFeatureKey:j.AgentVanishingPenSubMenuButtonCommon,commonActiveFeatureKey:j.AgentVanishingPenMenuButtonActiveCommon,children:x(dt,{insertReplaceIconKey:j.AgentVanishingPenSubMenuVanishingPenIcon,children:x(J3,{})})}),x(Ct,{tooltipTitle:"Vanishing rectangle",isVerticalToolbar:n,active:m===rt.vanishingRect,activeBackgroundColor:dv,tooltipPosition:r,onClick:O,css:ee({color:D(rt.vanishingRect)},"",""),id:`${Ap}vanishing-rect`,insertDataFeatureKey:j.AgentVanishingPenSubMenuVanishingRectangleButton,commonFeatureKey:j.AgentVanishingPenSubMenuButtonCommon,commonActiveFeatureKey:j.AgentVanishingPenMenuButtonActiveCommon,children:x(dt,{insertReplaceIconKey:j.AgentVanishingPenSubMenuVanishingRectangleIcon,children:x(jW,{})})}),x(Ct,{tooltipTitle:"Color",isVerticalToolbar:n,tooltipPosition:r,onClick:I=>{$(),M(E?null:I.currentTarget),I.stopPropagation()},id:`${Ap}color`,insertDataFeatureKey:j.AgentVanishingPenSubMenuVanishingColorButton,commonFeatureKey:j.AgentVanishingPenSubMenuButtonCommon,commonActiveFeatureKey:j.AgentVanishingPenMenuButtonActiveCommon,children:x(av,{css:ee({border:"1px solid #5252802E",borderRadius:"2px",...h(j.AgentVanishingPenSubMenuVanishingColorIcon)},"",""),color:f})})]})}),fV=function(e){const{open:t,title:n,content:r,cancelText:o,handleCancel:i,cancelButtonProps:s,insertData:a={},haveDialogActions:l=!0,...c}=e,{dialogOverallInsertStyles:u={},contentContainerInsertStyles:f={},footerContainerInsertStyles:d={},loadingIconNode:h=null,loadingIconInsertStyles:g={},contentInsertStyles:m={},closeButtonInsertStyles:b={},closeButtonPrefixIconNode:y=null}=a||{};return q(m1,{...c,open:t,onClose:(C,S)=>{S!=="backdropClick"&&(i==null||i())},css:ee({zIndex:a5},"",""),sx:{"& .MuiDialog-paper":{width:"480px",borderRadius:"9px",boxShadow:"0px 5px 5px -3px rgba(0, 0, 0, 0.1), 0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 3px 14px 2px rgba(0, 0, 0, 0.05)",...u},...c.sx},children:[q(g1,{css:ee({padding:"32px 32px 16px",...f},"",""),children:[h||x("div",{css:ee({display:"flex",justifyContent:"center","& > svg":{transformOrigin:"center center",animationName:"rotating",animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"},...g},"",""),children:x(j3,{})}),x("div",{className:"info-content",css:ee({margin:"16px 0 0",textAlign:"center",fontWeight:600,fontSize:"18px",lineHeight:"26px",color:"rgba(0, 0, 0, 0.9)",...m},"",""),children:r})]}),l&&x(kf,{css:ee({justifyContent:"center",padding:"0 0 32px",...d},"",""),children:x(is,{onClick:i,variant:Hc()?"outlined":"contained",color:"error",sx:{textTransform:"none"},startIcon:y||x(dW,{}),css:ee({"&[type=button]":{display:"flex",justifyContent:"center",alignItems:"center",padding:"5px 16px",height:"30px",borderRadius:"3px",borderColor:"rgba(147, 155, 164, 1)",boxShadow:"none",lineHeight:"20px",fontWeight:"400",...Hc()?{fontSize:"16px",color:"#000000"}:{background:"#d54941",color:"#FFFFFF",fontSize:"12px","&:hover":{background:"#f6685d"},"&:active":{background:"#ad352f"}},...b}},"",""),disableRipple:!0,children:o})})]})},pV=U.forwardRef((e,t)=>{const[n,r]=p.useState(!0),[o,i]=p.useState(e);p.useImperativeHandle(t,()=>({close:()=>{r(!1)},open:()=>{r(!0)},update:u=>{i({...o,...u})}}));const{onCancel:s,...a}=o;async function l(){await(s==null?void 0:s()),r(!1)}return x(fV,{...a,handleCancel:l,open:n})});function gV(e){const t={...e,open:!0};let n=document.createDocumentFragment(),r=!1;const o=U.createRef();let i=null;function s(f){const d={...f};n&&(i=q3(x(pV,{...d,ref:o}),n))}function a(){var f;if(r){console.error("Can\'t destroy this dialog, because this info dialog has been destroyed!");return}(f=o.current)==null||f.close(),i&&i.unmount(),n=null,i=null,r=!0,r=!0}function l(){var f;if(r){console.error("Can\'t close this dialog, because this info dialog has been destroyed!");return}(f=o.current)==null||f.close()}function c(){var f;if(r){console.error("Can\'t open this dialog, because this info dialog has been destroyed!");return}(f=o.current)==null||f.open()}function u(f){var d;if(r){console.error("Can\'t update this dialog, because this info dialog has been destroyed!");return}(d=o.current)==null||d.update(f)}return s(t),{destroy:a,open:c,close:l,update:u}}const s4=window.ZCBCoChannel.publicStore;let Za,Mi;function a4(){Za==null||Za.destroy(),Za=null}var hV={name:"1y4kcq3",styles:"height:140px"},mV={name:"1nzgnkk",styles:"font-size:18px;color:#000000E5;height:60px;margin-bottom:30px"},vV={name:"1p4xnwn",styles:"padding:5px 16px;font-weight:400;color:#000000E5;background:#E7E7E7;border-radius:5px;cursor:pointer"},yV={name:"1w3ndlg",styles:"font-size:14px;font-weight:400;color:#555B62"};function l4(){const{session:e,showRemoteControlRequestDialog:t,showRemoteControlWaitingForApproveDialog:n,showAgentRemoteControlStopDialog:r,setShowAgentRemoteControlStopDialog:o}=Je(a=>a),i=p.useCallback(()=>{Za||(Za=gV({haveDialogActions:!1,content:q("div",{css:hV,children:[x("div",{css:mV,children:"Waiting for customer\'s consent..."}),x("span",{css:vV,onClick:()=>{e.requestBrowserControl(lp.REMOTE_CONTROL_CANCEL),s4.setState({showRemoteControlWaitingForApproveDialog:!1}),a4()},children:"Cancel"})]})}))},[e]),s=p.useCallback(()=>Mi?Promise.resolve(!1):(o(!0),new Promise(a=>{Mi=cv({title:"Stop remote assist",content:x("div",{css:yV,children:"Do you want to stop remote assist?"}),closable:!1,okText:"Stop",cancelText:"Cancel",onOk(){e.requestBrowserControl(lp.REMOTE_CONTROL_GIVE_UP),s4.setState({isRemoteControlling:!1}),Mi=null,a(!0)},onCancel(){Mi=null,a(!1)},okButtonProps:{className:"zcb-stop-confirm-btn"},cancelButtonProps:{className:"cancel-button"},className:`${so} cobrowse-com-dialog-module cobrowse-com-dialog-two-btn-module`})})),[e,o]);return p.useEffect(()=>{e&&(n?i():a4(),r||(Mi==null||Mi.destroy(),Mi=null))},[t,n,i,e,r,s]),{remoteControlRequestWaitCustomeraApprovedDialog:i,remoteControlStopDialog:s}}const fv=window.ZCBController,CV=`zcb-common-toolbar-${+new Date}`;function SV(){const{scale:e,setScale:t,session:n,scaleValueList:r,agentList:o,isRemoteControlling:i,remoteControlConfig:s,setShowRemoteControlWaitingForApproveDialog:a,remoteControlStatus:l}=Je(re=>re),{getCheckedInsertStyles:c,getInsertCSSRule:u,getDisabledSwitcherData:f}=rr(),d=o.length>1,{enable:h,enable_customer_consent:g}=s||{},{remoteControlStopDialog:m}=l4(),{handleEndSession:b}=xp(),y=p.useRef(i),{showStopDialog:v}=XW(b,{autoUpdate:!0,deps:{agentList:o},insertData:{dialogOverall:d?j.AgentMultiAgentsEndSessionDialogOverall:j.AgentSingleAgentEndSessionDialogOverall,dialogTitleContainer:d?j.AgentMultiAgentsEndSessionDialogTitleContainer:j.AgentSingleAgentEndSessionDialogTitleContainer,dialogContentContainer:d?j.AgentMultiAgentsEndSessionDialogContentContainer:j.AgentSingleAgentEndSessionDialogContentContainer,dialogFooterContainer:d?j.AgentMultiAgentsEndSessionDialogFooterContainer:j.AgentSingleAgentEndSessionDialogFooterContainer,alertIcon:d?j.AgentMultiAgentsEndSessionDialogTitleIcon:j.AgentSingleAgentEndSessionDialogTitleIcon,closeButton:d?j.AgentMultiAgentsEndSessionDialogTopRightCloseButton:j.AgentSingleAgentEndSessionDialogTopRightCloseButton,dialogTitleContent:d?j.AgentMultiAgentsEndSessionDialogTitleContent:j.AgentSingleAgentEndSessionDialogTitleContent,dialogTextContent:d?j.AgentMultiAgentsEndSessionDialogTextContent:j.AgentSingleAgentEndSessionDialogTextContent,cancelButton:d?j.AgentMultiAgentsEndSessionDialogCancelButton:j.AgentSingleAgentEndSessionDialogCancelButton,endButton:d?j.AgentMultiAgentsEndSessionDialogEndSessionButton:j.AgentSingleAgentEndSessionDialogEndSessionButton,leaveButton:j.AgentMultiAgentsEndSessionDialogLeaveSessionButton}}),{tooltipPosition:C,isVerticalToolbar:S,disableUndo:w,disableRedo:_}=Ya(re=>re),E=p.useRef(),[M,$]=p.useState(!!document.fullscreenElement),[D,k]=p.useState(!1),[R,O]=p.useState(!1),[I,A]=p.useState(!1),[P,N]=p.useState(!1),[T,L]=p.useState(!1),z=p.useRef(!1),B=p.useRef(null),V=p.useRef(null),H=p.useMemo(()=>!f(j.AgentToolbarDefaultVertical),[f]),{comStartReplay:K}=Lo(re=>re),[G,te]=p.useState(null),[ne,ge]=p.useState(null),[se,he]=p.useState(null);p.useEffect(()=>{B.current!==n&&(B.current=n,n&&(z.current=!0,n.on(fv.SESSION_EVENT.START_REPLAY,()=>{En.setState({isVerticalToolbar:H}),setTimeout(()=>{t(e)},1e3)})))},[H,e,n,t]),p.useLayoutEffect(()=>{var re;if(P){const me=(re=E.current)==null?void 0:re.updateInitialDragPos;me==null||me(H?j.AgentToolbarVerticalWrapper:j.AgentToolbarHorizontalWrapper),N(!1),L(!0)}},[P,H]),p.useLayoutEffect(()=>{var re,me;if(T){const we=(re=E.current)==null?void 0:re.updateToolbarElRect,pe=(me=E.current)==null?void 0:me.updateMiniWindowToolbarPos;we==null||we(),pe==null||pe(),L(!1)}},[T]),p.useEffect(()=>{y.current=i},[i]),p.useEffect(()=>{n&&(n.on(fv.SESSION_EVENT.REMOTE_CONTROL_TAKE_BACK,()=>{setTimeout(()=>{var re;(re=V.current)==null||re.click()},300)}),n.on(fv.SESSION_EVENT.REMOTE_CONTROL_STATUS,re=>{const{status:me}=re;me===Ua.END&&y.current&&setTimeout(()=>{var we;(we=V.current)==null||we.click()},300)}))},[n]),p.useEffect(()=>{(l===Ua.IN_PROGRESS||l===Ua.REQUESTING)&&A(!0),(l===Ua.END||l===Ua.REQUESTING_CANCELLED)&&A(!1)},[l]);const fe=p.useMemo(()=>r.indexOf(e),[e,r]),Ce=p.useCallback((re=0)=>{var we;if((we=E.current)==null?void 0:we.getIsToolbarDragging())return!1;if(re===0){t(0);return}re===1&&fe===r.length-1||re===-1&&fe===0||t(r[fe+re])},[fe,r,t]),Q=p.useMemo(()=>S?x(dt,{insertReplaceIconKey:j.AgentToolbarVerticalDivider,children:x("span",{css:ee({color:"#DCDCDC",display:"inherit",width:"fit-content",height:"fit-content",...u(j.AgentToolbarVerticalDivider)},"",""),children:x(FW,{})})}):x(dt,{insertReplaceIconKey:j.AgentToolbarHorizontalDivider,children:x("span",{css:ee({color:"#DCDCDC",display:"inherit",width:"fit-content",height:"fit-content",...u(j.AgentToolbarHorizontalDivider)},"",""),children:x($W,{})})}),[u,S]);p.useEffect(()=>{const re=()=>{$(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",re),()=>{document.removeEventListener("fullscreenchange",re)}},[]),p.useEffect(()=>{(i||!K)&&(xe(!1),Pe(!1),te(null),ge(null),he(null))},[K,i]);const ve=p.useCallback(()=>{M?tV():eV(),$(!M)},[M]),{anotationManager:X,AnotationMethods:de}=Je(re=>re),[ae,xe]=p.useState(!1),[qe,Pe]=p.useState(!1),Ke=p.useRef(null),bt=p.useRef(null);async function Et(){var me;if((me=E.current)==null?void 0:me.getIsToolbarDragging())return!1;ae?X.use(de.enableControlMode):(Ke.current&&Ke.current.resetActiveBtnKey(),X.use(de.toggleDrawMode,!0)),Pe(!1),xe(!ae)}async function ke(){var me;if(!K)return;if((me=E.current)==null?void 0:me.getIsToolbarDragging())return!1;qe?X.use(de.enableControlMode):(bt.current&&bt.current.resetActiveBtnKey(),X.use(de.triggerVanishingPen)),xe(!1),Pe(!qe)}p.useEffect(()=>{var re;X&&K&&(xe(!1),X.use(de.changeDrawWidth,Y3[Go.regular]),X.use(de.changeColor,Ts),X.use(de.enableControlMode,!0),(re=X==null?void 0:X.anotationInstance)!=null&&re.enableToolbar&&k(!0),Ke.current&&(Ke.current.resetPenColor(),Ke.current.resetPenWidth(),Ke.current.resetActiveBtnKey()),N(!0))},[X,de,K]),p.useEffect(()=>{K&&D&&setTimeout(()=>{var re;(re=V.current)==null||re.click()})},[K,D]);const Ue=p.useCallback(async()=>{if(i)if(await m())setTimeout(()=>{var me;(me=V.current)==null||me.click()});else return;else g?a(!0):O(!0),n.requestBrowserControl(lp.REMOTE_CONTROL_REQUEST)},[g,i,m,n,a]);return p.useEffect(()=>{i&&O(!1)},[i]),q(lV,{toolbarClass:CV,initInsertDataPos:S?j.AgentToolbarVerticalWrapper:j.AgentToolbarHorizontalWrapper,ref:E,children:[q("div",{css:ee({display:"flex",flexDirection:S?"column":"row",alignItems:"center",padding:"4px",gap:"4px",...c(S?j.AgentToolbarVerticalNormalBtnsWrapper:j.AgentToolbarHorizontalNormalBtnsWrapper)},"",""),children:[x(cV,{ref:Ke,show:ae,anchorEl:ne,isVerticalToolbar:S,tooltipPosition:C,disableUndo:w,disableRedo:_}),x(dV,{ref:bt,show:qe,anchorEl:se,isVerticalToolbar:S,tooltipPosition:C}),x(Ct,{onClick:()=>Ce(1),tooltipTitle:"Zoom in",isVerticalToolbar:S,tooltipPosition:C,disabled:fe===r.length-1,id:`${Wo}toolbar-zoom-in`,insertDataFeatureKey:j.AgentToolbarZoomInButton,children:x(dt,{insertReplaceIconKey:j.AgentToolbarZoomInIcon,children:x(IW,{})})}),x(Ct,{onClick:()=>Ce(-1),tooltipTitle:"Zoom out",isVerticalToolbar:S,tooltipPosition:C,disabled:fe===0,id:`${Wo}toolbar-zoom-out`,insertDataFeatureKey:j.AgentToolbarZoomOutButton,children:x(dt,{insertReplaceIconKey:j.AgentToolbarZoomOutIcon,children:x(OW,{})})}),x(Ct,{onClick:re=>{var we;if((we=E.current)==null?void 0:we.getIsToolbarDragging())return!1;te(re.currentTarget)},tooltipTitle:"Other options",isVerticalToolbar:S,tooltipPosition:C,active:!!G,activeBackgroundColor:"#A6A6A6",id:`${Wo}toolbar-other-options`,insertDataFeatureKey:j.AgentToolbarZoomMenuButton,children:x(dt,{insertReplaceIconKey:j.AgentToolbarZoomMenuIcon,children:x(AW,{})})}),x(QW,{anchorEl:G,isVerticalToolbar:S,tooltipPosition:C,closeMenu:()=>te(null)}),x(Ct,{onClick:()=>{var me;if((me=E.current)==null?void 0:me.getIsToolbarDragging())return!1;ve()},tooltipTitle:M?"Exit fullscreen":"Fullscreen",tooltipPosition:C,isVerticalToolbar:S,id:`${Wo}toolbar-fullscreen`,insertDataFeatureKey:M?j.AgentToolbarExitFullScreenButton:j.AgentToolbarFullScreenButton,children:M?x(dt,{insertReplaceIconKey:j.AgentToolbarExitFullScreenIcon,children:x(PW,{})}):x(dt,{insertReplaceIconKey:j.AgentToolbarFullScreenIcon,children:x(RW,{})})}),D&&q(sr,{children:[Q,x(Ct,{tooltipTitle:i?"The pen is unavailable during remote assistance.":"Pen",disabled:i,isVerticalToolbar:S,tooltipPosition:C,onClick:re=>{var we;if((we=E.current)==null?void 0:we.getIsToolbarDragging())return!1;ge(re.currentTarget),Et()},active:ae,activeBackgroundColor:Yo,id:`${Wo}toolbar-pen`,insertDataFeatureKey:j.AgentToolbarPenButton,children:x(dt,{insertReplaceIconKey:j.AgentToolbarPenIcon,children:x(kW,{css:ee({color:ae?Op:void 0},"","")})})}),x(Ct,{tooltipTitle:i?"The vanishing pen is unavailable during remote assistance.":"Vanishing pen",disabled:i,isVerticalToolbar:S,tooltipPosition:C,onClick:re=>{var we;if((we=E.current)==null?void 0:we.getIsToolbarDragging())return!1;he(re.currentTarget),ke()},active:qe,activeBackgroundColor:Yo,css:ee({color:qe?Op:void 0},"",""),id:`${Wo}toolbar-vanishing-pen`,insertDataFeatureKey:j.AgentToolbarVanishingPenButton,children:x("div",{ref:V,children:x(dt,{insertReplaceIconKey:j.AgentToolbarVanishingPenIcon,children:x(J3,{})})})})]}),h&&x(Ct,{tooltipTitle:I?"Only one agent can remote assist at a time.":"Remote Assist",isVerticalToolbar:S,tooltipPosition:C,onClick:Ue,active:i,activeBackgroundColor:Yo,disabled:I,css:ee({color:i?Op:void 0},"",""),insertDataFeatureKey:j.AgentToolbarRemoteAssistIcon,children:R?x(HW,{}):x(WW,{})})]}),x(Ct,{onClick:()=>{var we;if((we=E.current)==null?void 0:we.getIsToolbarDragging())return!1;const me=o.length>1;v({type:me?"leave":"stop",useCustomButton:me})},tooltipTitle:"Leave Cobrowse",isVerticalToolbar:S,tooltipPosition:C,insertDataFeatureKey:j.AgentToolbarEndSessionButton,insertStyle:{borderRadius:"0",margin:"0",width:"40px",height:"40px",color:"#FFF",backgroundColor:"#D54941","&:hover":{backgroundColor:"#F6685D"},"&:active":{backgroundColor:"#AD352F"}},children:x(dt,{insertReplaceIconKey:j.AgentToolbarEndSessionIcon,children:x(NW,{})})})]})}let po;function bV(){po==null||po.destroy(),po=null}function EV(e){const t=p.useCallback(({content:r,okText:o,title:i,closable:s,insertData:a})=>{po||(po=cv({title:i,content:r,onOk(){e==null||e(),po==null||po.close(),po=null},okText:o||"OK",className:so,closable:s,insertData:a}))},[e]),n=p.useCallback(()=>{bV()},[]);return{showAlertDialog:t,cleanAlertDialog:n}}function xV(){return q("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M8 1H4C3.28343 1 2.80615 1.00078 2.43944 1.03074C2.0844 1.05975 1.92194 1.11105 1.81901 1.16349C1.53677 1.3073 1.3073 1.53677 1.16349 1.81901C1.11105 1.92194 1.05975 2.0844 1.03074 2.43944C1.00078 2.80615 1 3.28343 1 4V8C1 8.71657 1.00078 9.19385 1.03074 9.56056C1.05975 9.9156 1.11105 10.0781 1.16349 10.181C1.3073 10.4632 1.53677 10.6927 1.81901 10.8365C1.92194 10.889 2.0844 10.9403 2.43944 10.9693C2.60112 10.9825 2.7843 10.99 3 10.9943V11.9945C2.23039 11.9797 1.75399 11.9257 1.36502 11.7275C0.894619 11.4878 0.512167 11.1054 0.272484 10.635C0 10.1002 0 9.40013 0 8V4C0 2.59987 0 1.8998 0.272484 1.36502C0.512167 0.894619 0.894619 0.512167 1.36502 0.272484C1.8998 0 2.59987 0 4 0H8C9.40013 0 10.1002 0 10.635 0.272484C11.1054 0.512167 11.4878 0.894619 11.7275 1.36502C11.9257 1.75399 11.9797 2.23039 11.9945 3H10.9943C10.99 2.7843 10.9825 2.60112 10.9693 2.43944C10.9403 2.0844 10.889 1.92194 10.8365 1.81901C10.6927 1.53677 10.4632 1.3073 10.181 1.16349C10.0781 1.11105 9.9156 1.05975 9.56056 1.03074C9.19385 1.00078 8.71657 1 8 1Z",fill:"#000001"}),x("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8C4 6.59987 4 5.8998 4.27248 5.36502C4.51217 4.89462 4.89462 4.51217 5.36502 4.27248C5.8998 4 6.59987 4 8 4H12C13.4001 4 14.1002 4 14.635 4.27248C15.1054 4.51217 15.4878 4.89462 15.7275 5.36502C16 5.8998 16 6.59987 16 8V12C16 13.4001 16 14.1002 15.7275 14.635C15.4878 15.1054 15.1054 15.4878 14.635 15.7275C14.1002 16 13.4001 16 12 16H8C6.59987 16 5.8998 16 5.36502 15.7275C4.89462 15.4878 4.51217 15.1054 4.27248 14.635C4 14.1002 4 13.4001 4 12V8ZM8 5H12C12.7166 5 13.1938 5.00078 13.5606 5.03074C13.9156 5.05975 14.0781 5.11105 14.181 5.16349C14.4632 5.3073 14.6927 5.53677 14.8365 5.81901C14.889 5.92194 14.9403 6.0844 14.9693 6.43944C14.9992 6.80615 15 7.28343 15 8V12C15 12.7166 14.9992 13.1938 14.9693 13.5606C14.9403 13.9156 14.889 14.0781 14.8365 14.181C14.6927 14.4632 14.4632 14.6927 14.181 14.8365C14.0781 14.889 13.9156 14.9403 13.5606 14.9693C13.1938 14.9992 12.7166 15 12 15H8C7.28343 15 6.80615 14.9992 6.43944 14.9693C6.0844 14.9403 5.92194 14.889 5.81901 14.8365C5.53677 14.6927 5.3073 14.4632 5.16349 14.181C5.11105 14.0781 5.05975 13.9156 5.03074 13.5606C5.00078 13.1938 5 12.7166 5 12V8C5 7.28343 5.00078 6.80615 5.03074 6.43944C5.05975 6.0844 5.11105 5.92194 5.16349 5.81901C5.3073 5.53677 5.53677 5.3073 5.81901 5.16349C5.92194 5.11105 6.0844 5.05975 6.43944 5.03074C6.80615 5.00078 7.28343 5 8 5Z",fill:"#000001"})]})}function wV(){return q("svg",{width:"20",height:"20",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[x("path",{d:"M16.3134 1.33325L16.8887 1.83392C19.0734 3.73325 22.4721 4.95325 26.9861 5.46458L27.8441 5.56125V18.9812C27.8441 23.4232 24.0747 27.2939 16.6381 30.4946L16.2341 30.6666L15.8407 30.4772C8.32208 26.8859 4.66675 23.1266 4.66675 18.9812V5.46125H5.63275C8.88408 5.46125 12.2707 4.21992 15.6941 1.77659L16.3127 1.33325H16.3134ZM16.1887 4.66525L15.9207 4.83792C13.1621 6.58458 10.3787 7.65325 7.61675 8.00192L7.33341 8.03458V18.9812C7.33341 21.6879 10.0241 24.5853 16.0667 27.6186L16.2941 27.7312L16.5127 27.6332C22.3367 24.9632 25.0841 22.0586 25.1754 19.1326L25.1774 18.9812V7.91192L25.0581 7.89392C21.4894 7.32925 18.5581 6.29325 16.3141 4.75392L16.1887 4.66525Z",fill:"black"}),x("path",{d:"M17.2679 15.054V21.9473H14.7639V15.0533C14.3325 14.8256 13.9713 14.4845 13.7192 14.0668C13.4671 13.6491 13.3337 13.1705 13.3333 12.6827C13.3334 11.9712 13.6161 11.289 14.1192 10.7859C14.6222 10.2829 15.3045 10.0002 16.0159 10C16.7274 10.0002 17.4096 10.2829 17.9127 10.7859C18.4157 11.289 18.6984 11.9712 18.6986 12.6827C18.6986 13.7127 18.1186 14.6067 17.2679 15.054Z",fill:"black"})]})}var TV={name:"1qei3w8",styles:"user-select:all"},_V={name:"158icaa",styles:"margin-left:4px"},IV={name:"1g31gtn",styles:"box-sizing:content-box;padding:0px;justify-content:center;align-items:center"};function OV(){const{cobrowseCode:e}=Je(s=>s),t=xc(),{getCheckedInsertStyles:n,getCheckedInsertText:r,getDisabledSwitcherData:o}=rr(),i=p.useCallback(()=>{navigator.clipboard.writeText(e??"").then(function(){t("Copied successfully","success")})},[e,t]);return!o(j.AgentFloatingPinToolbarWrapper)&&e?x(o4,{bounds:"parent",defaultPosition:{x:20,y:20},onStop:s=>{var a,l,c,u;s.type==="touchend"&&((u=(c=(l=(a=s.target)==null?void 0:a.closest)==null?void 0:l.call(a,"button"))==null?void 0:c.click)==null||u.call(c))},children:q("div",{css:ee({width:"fit-content",position:"fixed",display:"flex",alignItems:"center",gap:"4px",flexDirection:"row",padding:"8px",whiteSpace:"nowrap",userSelect:"none",background:"#FFFFFF",border:".5px solid #DCDCDC",borderRadius:"6px",boxShadow:"0px 8px 10px -5px rgba(0, 0, 0, 0.08), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05)",...n(j.AgentFloatingPinToolbarWrapper)},"",""),children:[x(dt,{insertReplaceIconKey:j.AgentFloatingPinToolbarPrefixIcon,children:x(wV,{})}),q("div",{className:"code-container",css:ee({fontSize:"16px",color:"rgba(0, 0, 0, 0.9)",...n(j.AgentFloatingPinToolbarContentText)},"",""),children:[r(j.AgentFloatingPinToolbarContentText)||"Code: ",x("span",{css:TV,children:e})]}),x("div",{css:_V,children:!o(j.AgentFloatingPinToolbarCopyIcon)&&x(Y0,{disableRipple:!0,css:IV,onClick:i,children:x(dt,{insertReplaceIconKey:j.AgentFloatingPinToolbarCopyIcon,children:x(xV,{})})})})]})}):null}const AV=new Map([[1001,[10004,30105]],[1002,[10010,10014]],[1003,[30300]],[1004,[10023]],[1005,[10002]],[1006,[10011,30308]],[1007,[30309]],[1008,[30307,30311]],[1009,[30315]],[1010,[30316]],[1011,[10025,10006,10008,10007,10009,10003,10001,30106,30107,40100,40101,40102,40103,40104,40200,40201,40202,40210,40211,40214,40216,40300,40301,40302,40402,40403,10021,10026,30109]],[1012,[40212,40217]],[1013,[40215,40218]],[1014,[]],[1015,[40213,40219]],[1016,[10016]],[1017,[10027]],[1018,[]],[2001,[124,125,127,129,30202,30304,401]],[3001,[26700]],[3002,[2e4,20001,20002,20003,20004,20005,20006,20007,24001,26100,26101,26102,26103,26104,26105,26106,26200,26201,26203,26204,26301,26302,26303,26304,26305,26400,26401,26402,26403,26404,26405,26500,26501,26502,26503,26504,26506,26701,26800,26801,29e3]],[3003,[21e3,21001,25203,25204,26202,26505,29001]],[3004,[22e3,29002]],[3005,[23e3,29003]],[9999,[10005,-1,126,128,30100,30101,30102,30103,30104,30200,30201,30203,30204,30205,30301,30302,30303,30305,30306,30310,30312,30313,30314,30400,30401,30402,30403,40001,24e3,24002,25100,25101,25102,25103,25104,25105,25200,25201,25202,26600,26601,26702,26703,10020,19999,30108]]]);var pv=(e=>(e[e.SESSION_START_FAILED=1001]="SESSION_START_FAILED",e[e.SESSION_CONNECTING_IN_PROGRESS=1002]="SESSION_CONNECTING_IN_PROGRESS",e[e.SESSION_NOT_FOUND=1003]="SESSION_NOT_FOUND",e[e.SESSION_COUNT_LIMIT=1004]="SESSION_COUNT_LIMIT",e[e.SESSION_REFRESH_PIN_FAILED=1005]="SESSION_REFRESH_PIN_FAILED",e[e.SESSION_JOIN_PIN_NOT_FOUND=1006]="SESSION_JOIN_PIN_NOT_FOUND",e[e.SESSION_PIN_CODE_EXPIRED=1007]="SESSION_PIN_CODE_EXPIRED",e[e.SESSION_PIN_INVALID_FORMAT=1008]="SESSION_PIN_INVALID_FORMAT",e[e.SESSION_START_PIN_REQUIRED=1009]="SESSION_START_PIN_REQUIRED",e[e.SESSION_START_PIN_CONFLICT=1010]="SESSION_START_PIN_CONFLICT",e[e.SESSION_JOIN_FAILED=1011]="SESSION_JOIN_FAILED",e[e.SESSION_CUSTOMER_COUNT_LIMIT=1012]="SESSION_CUSTOMER_COUNT_LIMIT",e[e.SESSION_AGENT_COUNT_LIMIT=1013]="SESSION_AGENT_COUNT_LIMIT",e[e.SESSION_CUSTOMIZE_OVERRIDE_ERROR=1014]="SESSION_CUSTOMIZE_OVERRIDE_ERROR",e[e.SESSION_DUPLICATE_USER=1015]="SESSION_DUPLICATE_USER",e[e.NETWORK_ERROR=1016]="NETWORK_ERROR",e[e.SESSION_CANCELING_IN_PROGRESS=1017]="SESSION_CANCELING_IN_PROGRESS",e[e.TRANSFER_TO_NEW_TAB_FAILED=1018]="TRANSFER_TO_NEW_TAB_FAILED",e[e.TOKEN_INVALID=2001]="TOKEN_INVALID",e[e.RECORD_ERROR_UNKNOWN=3001]="RECORD_ERROR_UNKNOWN",e[e.RECORD_START_FAILED=3002]="RECORD_START_FAILED",e[e.RECORD_END_FAILED=3003]="RECORD_END_FAILED",e[e.RECORD_PAUSE_FAILED=3004]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=3005]="RECORD_RESUME_FAILED",e[e.UNDEFINED=9999]="UNDEFINED",e))(pv||{});const RV=new Map;for(const[e,t]of AV)t.forEach(n=>{RV.set(n,e)});const PV=()=>{const{tipsContent:e}=Je(n=>n),t=xc();return p.useEffect(()=>{if(e){if(e!=null&&e.forceClose){t.close();return}t(e)}},[e,t]),x(sr,{})};function NV(){const{isRemoteControlling:e,session:t}=Je(r=>r),n=p.useCallback(()=>{const r=e?"none":"",o=document.querySelector(`iframe[title="${Dc}"]`);if(!(o!=null&&o.contentDocument))return;o.contentDocument.querySelectorAll(".zcb-flying-cursor-wrapper").forEach(a=>{a.style.pointerEvents=r});const s=document.querySelector(".anotation-wrapper");s&&(s.style.pointerEvents=r)},[e]);p.useEffect(()=>{t&&n()},[t,n,e])}var kV={name:"w1atjl",styles:"width:100%;height:100%"};function MV({isShow:e}){const t=p.useRef(null);return p.useEffect(()=>{var n;(n=window.ZCB_NPM_SDK_AGENT_MAIN)==null||n.initAgentInner(t.current,Dc)},[]),x("div",{css:kV,children:x("iframe",{ref:t,css:ee({display:e?"block":"none",width:"100%",height:"100%",border:"none"},"",""),title:Dc,tabIndex:-1})})}const Rr=window.ZCBController,DV=window.ZCBCoChannel.makeLogger,LV=window.ZCBCoChannel.performanceLog,Ln=window.ZCBCoChannel.PerformanceLogEnum,Vr=LV.logWithBaseTags(["COM","COM_VIEWER"]),Rp=DV(["CoBrowsing PAGE","COMMON","AGENT"]),FV=window.location.pathname.includes("/viewer")?gn.COM_BYOP_DESK:gn.COM_DESK;var $V={name:"zraut2",styles:"position:fixed;top:0;left:0;right:0;bottom:0;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff"};function BV(){return x("div",{css:$V,children:x("h3",{children:"Session End"})})}function c4(){const{comCurrentPage:e,comStartReplay:t,comSessionStart:n,setComStartReplay:r,setComSessionStart:o,setComCurrentPage:i,setComSessionWaitAgentConnecting:s,setComSessionWaitCustomerConnecting:a,setPinCodePageType:l,setCustomerName:c}=Lo(O=>O),{session:u,setShowRemoteControlWaitingForApproveDialog:f,setTipsContent:d}=Je(O=>O);l4();const h=p.useRef(u);h.current=u;const{isStartedRecord:g}=Hf(O=>O),m=xc(),{showAlertDialog:b}=EV();NV();const{getCheckedInsertStyles:y,getCheckedInsertIcon:v,getCheckedInsertText:C,getCheckedInsertDisabled:S}=rr(),[w,_]=p.useState(!0),E=p.useRef(!1),[M,$]=p.useState(""),D=p.useRef(null),k=p.useRef(!1),R=p.useCallback((O=!1)=>{var I;O||(Rp.log("[PAGE CALL][EVENT] endSession trigger end from viewer page"),(I=u==null?void 0:u.end)==null||I.call(u)),Fz()&&g&&u.stopRecord(),i(FV),r(!1),o(!1),_(!1),s(!1),a(!1)},[g,u,i,r,o,s,a]);return p.useEffect(()=>{u&&(u.on(Rr.SESSION_EVENT.SESSION_STARTED,O=>{(()=>{const A=u.getSessionInfo();if(!A)return console.error("SESSION_STARTED sessionInfo is falsy"),!1;const{authToken:P}=A;return P?(E.current||(E.current=!0,$(P)),!0):(console.error("SESSION_STARTED authToken is falsy"),!1)})()&&o(!0),xs({event:"session_joined",data:O}),k.current&&(Vr.log(Ln.AgentReconnectingSuccessInAgentSide),Vr.logRange(Ln.AgentReconnectingInAgentSide,Ln.AgentReconnectingSuccessInAgentSide)),k.current=!1,l(Ir.Normal)}),u.on(Rr.SESSION_EVENT.AGENT_JOINED,()=>{Vr.log(Ln.AgentJoinedInAgentSide)}),u.on(Rr.SESSION_EVENT.CUSTOMER_JOINED,O=>{const{user:I}=O,{name:A}=I;A&&c(A),D.current&&(clearTimeout(D.current),D.current=null,Vr.log(Ln.CustomerReconnectingSuccessInAgentSide),Vr.logRange(Ln.CustomerDisconnectedInAgentSide,Ln.CustomerReconnectingSuccessInAgentSide)),Vr.log(Ln.CustomerJoinedInAgentSide)}),u.on(Rr.SESSION_EVENT.CUSTOMER_LEFT,()=>{m("Customer Left")}),u.on(Rr.SESSION_EVENT.START_REPLAY,()=>{r(!0),s(!1),a(!1),Vr.log(Ln.StartReplayInAgentSide),Vr.logRange(Ln.CustomerJoinedInAgentSide,Ln.StartReplayInAgentSide)}),u.on(Rr.SESSION_EVENT.SESSION_RECONNECTING,()=>{qc(),k.current=!0,s(!0),r(!1),f(!1),Vr.log(Ln.AgentReconnectingInAgentSide)}),u.on(Rr.SESSION_EVENT.CUSTOMER_DISCONNECTED,()=>{qc(),a(!0),f(!1),r(!1),Vr.log(Ln.CustomerDisconnectedInAgentSide),D.current=setTimeout(()=>{var I;((I=u.getSessionInfo())==null?void 0:I.sessionStatus)!==Ba.NOT_CREATED&&(D.current=null,l(Ir.CustomerReconnectFailed),Rp.log("[PAGE CALL][EVENT] customer_disconnected trigger end from viewer page"),R(),Vr.log(Ln.CustomerTimeoutInAgentSide))},(nr.getCoBrowsingConfig("maxCBSReconnectTimeout")??Ej)*1e3)}),u.on(Rr.SESSION_EVENT.SESSION_ENDED,O=>{qc(),O.from!=="agent"?(m(c5.CUSTOMER_END_COBROWSE),l(Ir.CustomerEnded)):d({forceClose:!0}),xs({event:Cs.SESSION_ENDED,data:O}),R(!0),k.current=!1}),u.on(Rr.SESSION_EVENT.SESSION_LEFT,O=>{qc(),xs({event:Cs.SESSION_LEFT,data:O}),R(!0),k.current=!1}),u.on(Rr.SESSION_EVENT.SESSION_ERROR,O=>{console.log("agent page error",O.errorMsg),s(!1),a(!1),xs({event:Cs.SESSION_ERROR,data:O}),O.code===pv.SESSION_DUPLICATE_USER&&R(!0),O.code===pv.SESSION_AGENT_COUNT_LIMIT?b({title:"Agent number limit reached",content:"The number of logged-in Agents has reached the upper limit",okText:C(j.AgentJoinFailedDialogOkButton),closable:!S(j.AgentJoinFailedDialogTopRightCloseButton),insertData:{dialogOverallInsertStyles:y(j.AgentJoinFailedDialogOverall),titleContainerInsertStyles:y(j.AgentJoinFailedDialogTitleContainer),contentContainerInsertStyles:y(j.AgentJoinFailedDialogContentContainer),footerContainerInsertStyles:y(j.AgentJoinFailedDialogFooterContainer),titleContentInsertStyles:y(j.AgentJoinFailedDialogTitleContent),alertIconInsertStyles:y(j.AgentJoinFailedDialogTitleIcon),alertIconNode:v(j.AgentJoinFailedDialogTitleIcon),closeButtonInsertStyles:y(j.AgentJoinFailedDialogTopRightCloseButton),contentInsertStyles:y(j.AgentJoinFailedDialogTextContent),okButtonInsertStyles:y(j.AgentJoinFailedDialogOkButton)}}):O.errorMsg&&m(O.errorMsg,"error"),k.current&&l(Ir.AgentReconnectFailed),k.current=!1}),u.on(Rr.SESSION_EVENT.CUSTOMER_FOCUS_LOST,O=>{xs({event:Cs.CUSTOMER_FOCUS_LOST,data:O})}),u.on(Rr.SESSION_EVENT.CUSTOMER_TRANSFERRED,O=>{xs({event:Cs.CUSTOMER_TRANSFERRED,data:O})}))},[R,m,b,u,o,r,s,a,l,c,f,y,v,C,S,d]),p.useEffect(()=>{const O=()=>{var A;const I=(A=h.current)==null?void 0:A.session;((I==null?void 0:I.sessionStatus)===Ba.CONNECTING||(I==null?void 0:I.sessionStatus)===Ba.RECONNECTING)&&Rp.log(`[PAGE CALL][EVENT]Agent joinflow beforeUnload trigger sessionStatus:${I==null?void 0:I.sessionStatus}`),!(!I||I.sessionStatus!==Ba.STARTED&&I.sessionStatus!==Ba.CONNECTING)&&(Rp.log("[PAGE CALL][EVENT]Agent beforeunload trigger session_left"),xs({event:Cs.SESSION_LEFT,data:{sessionId:I==null?void 0:I.sessionId,reason:l5.DISCONNECT_SESSION,version:V5()}}))};return window.addEventListener("beforeunload",O),()=>{window.removeEventListener("beforeunload",O)}},[]),q("div",{css:ee({width:"100vw",height:"100vh",maxHeight:"100svh",background:"#2B2B31",fontFamily:"Inter,Helvetica,Arial,sans-serif",color:"#000",display:e===gn.COM_VIEWER||n?"flex":"none",zIndex:t?"1":"-1",position:t?"relative":"absolute"},"",""),children:[x("div",{css:ee("flex:1;border:1px solid #ddd;border-right:none;border-bottom:none;min-width:0;min-height:0;display:",n?"block":"none",";",""),children:M&&x(z5,{cobrowse:u,isMouseWheelZoomEnabled:!0,isFitToWindowOrderEnabled:!0,children:window.ZCB_NPM_SDK_AGENT_MAIN?x(MV,{isShow:n}):x(wW,{isShow:n,domain:nr.getCoBrowsingConfig("domain"),innerEndpoint:nr.getCoBrowsingConfig("innerEndpoint"),authToken:M})})}),n&&x(OV,{}),n&&x(SV,{}),!w&&!n&&x(BV,{}),x(PV,{})]})}const UV=window.ZCBController.init,gv=window.ZCBController.initTemplate,zV=window.ZCBCoChannel.makeLogger,Pp=zV(["Normal Agent","COMMON"]);let u4=!1;function jV({session:e,setSession:t}){p.useEffect(()=>{e||(Pp.log("useZCBSDK call init"),UV({},function(n){Pp.log("useZCBSDK call init callback");const{success:r,session:o}=n;r&&o?(Pp.log("useZCBSDK call init callback success"),u4||(gv==null||gv({templateToken:window.ZMCoBrowsingConfig.authToken}),u4=!0),t(o)):(Pp.log("useZCBSDK call init callback failed"),console.log("ZoomCobrowseSDK is not supported by your browser, please update your browser"))}))},[e])}const WV=[{key:gn.COM_VIEWER,ele:x(c4,{},gn.COM_VIEWER)},{key:gn.COM_DESK,ele:x(EW,{},gn.COM_DESK)}];function hv(){const{setComCoBrowsingConfig:e}=Lo(r=>r),{session:t,setSession:n}=Je(r=>r);return jV({session:t,setSession:n}),p.useEffect(()=>{e(window.ZMCoBrowsingConfig||{})},[]),x(sr,{children:WV.map(r=>r.ele)})}const VV=window.ZCBController.init,mv=window.ZCBController.initTemplate,HV=window.ZCBCoChannel.makeLogger,vv=HV(["BYOP Agent","COMMON"]);let d4,f4=!1;function GV(e,t){const n=e.data;n&&typeof n=="object"&&n.event&&qB.includes(n.event)&&n.event===h5.SEND_SESSION_OPTIONS&&(vv.log("received BYOP options"),d4=n.data,t())}function YV({session:e,setSession:t,onInitd:n}){p.useEffect(()=>{e||(vv.log("useZCBSDK call init"),Promise.race([new Promise(r=>{const o=i=>{GV(i,()=>{window.removeEventListener("message",o),r(0)})};window.removeEventListener("message",o),window.addEventListener("message",o),Dz({event:g5.SESSION_PRE_INIT})}),new Promise(r=>{setTimeout(()=>{r(1)},500)})]).then(r=>{vv.log(`useZCBSDK init BYOPOptions ${r===0?"By Message":"Overtime"}`),VV(Object.assign(d4||{},{isLoadFromSDKEntry:!1}),function(o){var a,l,c,u,f;const{success:i,session:s}=o;i&&s?(f4||(Km()&&nr.setCoBrowsingConfig({sdkVersion:(a=Wc())==null?void 0:a.sdkVersion,originalSdkVersion:"",domain:(l=Wc())==null?void 0:l.domain,sessionId:(c=Wc())==null?void 0:c.sessionId,isViewer:(u=Wc())==null?void 0:u.isViewer,authToken:(f=Wc())==null?void 0:f.authToken}),mv==null||mv({templateToken:nr.getCoBrowsingConfig("authToken")}),f4=!0),t(s),n()):console.log("ZoomCobrowseSDK is not supported by your browser, please update your browser")})}))},[e])}var KV={name:"11en623",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center"},ZV={name:"1379lu9",styles:"font-size:18px;line-height:26px;font-weight:500;margin-top:24px"};const JV=()=>q("div",{css:KV,children:[x("div",{children:x(z3,{})}),x("div",{css:ZV,children:"Joining the Cobrowse session..."})]});function XV(){const{comCurrentPage:e,comStartReplay:t,comSessionWaitAgentConnecting:n,comSessionWaitCustomerConnecting:r,customerName:o}=Lo(c=>c),i=p.useRef(!1),{session:s}=Je(c=>c),{isLocked:a,handleJoinByPincode:l}=U3();return p.useEffect(()=>{s&&nr.getCoBrowsingConfig("authToken")&&!i.current&&(l(),i.current=!0)},[s,l]),x("div",{className:"main",css:ee({width:"100vw",height:"100vh",display:e===gn.COM_BYOP_DESK||!t?"flex":"none",justifyContent:"center",alignItems:"center",background:n||r?"rgba(238, 238, 238, 1)":"#FFFFFF"},"",""),children:a?x(JV,{}):x("div",{children:n?x(V3,{}):r?x(H3,{customerName:o}):null})})}const qV=[{key:gn.COM_VIEWER,ele:x(c4,{},gn.COM_VIEWER)},{key:gn.COM_BYOP_DESK,ele:x(XV,{},gn.COM_BYOP_DESK)}];function yv(){const{setComCoBrowsingConfig:e}=Lo(r=>r),{session:t,setSession:n}=Je(r=>r);return YV({session:t,setSession:n,onInitd:()=>{e({authToken:nr.getCoBrowsingConfig("authToken"),domain:nr.getCoBrowsingConfig("domain"),sessionId:nr.getCoBrowsingConfig("sessionId"),innerEndpoint:nr.getCoBrowsingConfig("innerEndpoint")})}}),x(sr,{children:qV.map(r=>r.ele)})}const QV=[{path:Fc.DESK,ele:x(hv,{})},{path:Fc.VIEWER,ele:x(yv,{})},{path:Fc.DESK_WITH_VERSION,ele:x(hv,{})},{path:Fc.VIEWER_WITH_VERSION,ele:x(yv,{})},{path:Fc.AGENT,ele:x(hv,{})}];function eH({className:e}){return x("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:x("path",{d:"M22.5 12C22.5 6.20101 17.799 1.5 12 1.5C6.20101 1.5 1.5 6.20101 1.5 12C1.5 17.799 6.20101 22.5 12 22.5C17.799 22.5 22.5 17.799 22.5 12ZM12.75 6.00045V14.25H11.25V6.00045H12.75ZM11.0914 16.5H12.8914V18.3H11.0914V16.5Z",fill:"#E37318"})})}function tH({className:e}){return x("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:x("path",{d:"M11 21.5C16.799 21.5 21.5 16.799 21.5 11C21.5 5.20101 16.799 0.5 11 0.5C5.20101 0.5 0.5 5.20101 0.5 11C0.5 16.799 5.20101 21.5 11 21.5ZM5.75 11.3097L6.80975 10.25L9.5 12.9395L15.1887 7.25L16.25 8.31125L9.5 15.0605L5.75 11.3097Z",fill:"#2BA471"})})}function nH({className:e}){return x("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:x("path",{d:"M21.5 11C21.5 5.20101 16.799 0.500002 11 0.5C5.20101 0.499997 0.500002 5.20101 0.5 11C0.499997 16.799 5.20101 21.5 11 21.5C16.799 21.5 21.5 16.799 21.5 11ZM11.75 5.00045V13.25H10.25V5.00045H11.75ZM10.0914 15.5H11.8914V17.3H10.0914V15.5Z",fill:"#D54941"})})}function p4({className:e}){return x("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:x("path",{d:"M11 21.5C16.799 21.5 21.5 16.799 21.5 11C21.5 5.20101 16.799 0.5 11 0.5C5.20101 0.5 0.5 5.20101 0.5 11C0.5 16.799 5.20101 21.5 11 21.5ZM10.0999 5H11.8998V6.79993H10.0999V5ZM10.2584 8.75H11.7584V16.9996H10.2584V8.75Z",fill:"#0052D9"})})}function g4({children:e,insertData:t={}}){const{session:n}=Je(s=>s),{getCheckedInsertStyles:r,getCheckedInsertIcon:o}=rr(),i=p.useRef({});return p.useEffect(()=>{if(n){const{insertDataSuccessIcon:s,insertDataSuccessWrapper:a,insertDataErrorIcon:l,insertDataErrorWrapper:c,insertDataWarningIcon:u,insertDataWarningWrapper:f,insertDataInfoIcon:d,insertDataInfoWrapper:h}=t;i.current={insertDataSuccessIconNode:o(s),insertDataSuccessIconStyle:r(s),insertDataSuccessWrapperStyle:r(a),insertDataErrorIconNode:o(l),insertDataErrorIconStyle:r(l),insertDataErrorWrapperStyle:r(c),insertDataWarningIconNode:o(u),insertDataWarningIconStyle:r(u),insertDataWarningWrapperStyle:r(f),insertDataInfoIconNode:o(d),insertDataInfoIconStyle:r(d),insertDataInfoWrapperStyle:r(h)}}},[o,r,t,n]),x(sx,{iconVariant:{success:i.current.insertDataSuccessIconNode||x(tH,{css:ee({marginRight:"8px",...i.current.insertDataSuccessIconStyle},"","")}),warning:i.current.insertDataWarningIconNode||x(eH,{css:ee({marginRight:"8px",...i.current.insertDataWarningIconStyle},"","")}),error:i.current.insertDataErrorIconNode||x(nH,{css:ee({marginRight:"8px",...i.current.insertDataErrorIconStyle},"","")}),default:i.current.insertDataInfoIconNode||x(p4,{css:ee({marginRight:"8px",...i.current.insertDataInfoIconStyle},"","")}),info:i.current.insertDataInfoIconNode||x(p4,{css:ee({marginRight:"8px",...i.current.insertDataInfoIconStyle},"","")})},Components:{success:Ls(Na,{target:"e1iea8jg4"})(()=>({"&.notistack-MuiContent-success":{padding:"8px 16px",border:"0.5px solid #DCDCDC",boxShadow:"0px 8px 10px -5px rgba(0, 0, 0, 0.08), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05)",borderRadius:"6px",fontSize:"16px",lineHeight:"24px",fontWeight:"600",color:"rgba(0, 0, 0, 0.9)",backgroundColor:"#fff",...i.current.insertDataSuccessWrapperStyle}}),""),error:Ls(Na,{target:"e1iea8jg3"})(()=>({"&.notistack-MuiContent-error":{padding:"8px 16px",border:"0.5px solid #DCDCDC",boxShadow:"0px 8px 10px -5px rgba(0, 0, 0, 0.08), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05)",borderRadius:"6px",fontSize:"16px",lineHeight:"24px",fontWeight:"600",color:"rgba(0, 0, 0, 0.9)",backgroundColor:"#fff",...i.current.insertDataErrorWrapperStyle}}),""),warning:Ls(Na,{target:"e1iea8jg2"})(()=>({"&.notistack-MuiContent-warning":{padding:"8px 16px",border:"0.5px solid #DCDCDC",boxShadow:"0px 8px 10px -5px rgba(0, 0, 0, 0.08), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05)",borderRadius:"6px",fontSize:"16px",lineHeight:"24px",fontWeight:"600",color:"rgba(0, 0, 0, 0.9)",backgroundColor:"#fff",...i.current.insertDataWarningWrapperStyle}}),""),default:Ls(Na,{target:"e1iea8jg1"})(()=>({"&.notistack-MuiContent-default":{padding:"8px 16px",border:"0.5px solid #DCDCDC",boxShadow:"0px 8px 10px -5px rgba(0, 0, 0, 0.08), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05)",borderRadius:"6px",fontSize:"16px",lineHeight:"24px",fontWeight:"600",color:"rgba(0, 0, 0, 0.9)",backgroundColor:"#fff",...i.current.insertDataInfoWrapperStyle}}),""),info:Ls(Na,{target:"e1iea8jg0"})(()=>({"&.notistack-MuiContent-info":{padding:"8px 16px",border:"0.5px solid #DCDCDC",boxShadow:"0px 8px 10px -5px rgba(0, 0, 0, 0.08), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05)",borderRadius:"6px",fontSize:"16px",lineHeight:"24px",fontWeight:"600",color:"rgba(0, 0, 0, 0.9)",backgroundColor:"#fff",...i.current.insertDataInfoWrapperStyle}}),"")},children:e})}function rH(){return p.useEffect(()=>{window.document.body.style.setProperty("margin","0"),window.document.body.style.setProperty("overflow","hidden")},[]),q(_N,{children:[[...Cj].map(e=>x($1,{path:e.path,element:e.ele},e.path)),[...QV].map(e=>x($1,{path:e.path,element:x(g4,{insertData:{insertDataSuccessIcon:j.AgentToastSuccessPrefixIcon,insertDataSuccessWrapper:j.AgentToastSuccessWrapper,insertDataErrorIcon:j.AgentToastErrorPrefixIcon,insertDataErrorWrapper:j.AgentToastErrorWrapper,insertDataWarningIcon:j.AgentToastWarningPrefixIcon,insertDataWarningWrapper:j.AgentToastWarningWrapper,insertDataInfoIcon:j.AgentToastInfoPrefixIcon,insertDataInfoWrapper:j.AgentToastInfoWrapper},children:e.ele})},e.path))]})}function oH(){return p.useEffect(()=>{window.document.body.style.setProperty("margin","0"),window.document.body.style.setProperty("overflow","hidden")},[]),x(g4,{insertData:{insertDataSuccessIcon:j.AgentToastSuccessPrefixIcon,insertDataSuccessWrapper:j.AgentToastSuccessWrapper,insertDataErrorIcon:j.AgentToastErrorPrefixIcon,insertDataErrorWrapper:j.AgentToastErrorWrapper,insertDataWarningIcon:j.AgentToastWarningPrefixIcon,insertDataWarningWrapper:j.AgentToastWarningWrapper,insertDataInfoIcon:j.AgentToastInfoPrefixIcon,insertDataInfoWrapper:j.AgentToastInfoWrapper},children:x(yv,{})})}var h4,m4=Sa;h4=m4.createRoot,m4.hydrateRoot;const iH={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Np{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||iH,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Np(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Np(this.logger,t)}}var go=new Np;class kp{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[t,...r])})}}const Qc=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},v4=e=>e==null?"":""+e,sH=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},aH=/###/g,y4=e=>e&&e.indexOf("###")>-1?e.replace(aH,"."):e,C4=e=>!e||typeof e=="string",eu=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let o=0;for(;o<r.length-1;){if(C4(e))return{};const i=y4(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return C4(e)?{}:{obj:e,k:y4(r[o])}},S4=(e,t,n)=>{const{obj:r,k:o}=eu(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=eu(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=eu(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},lH=(e,t,n,r)=>{const{obj:o,k:i}=eu(e,t,Object);o[i]=o[i]||[],o[i].push(n)},Mp=(e,t)=>{const{obj:n,k:r}=eu(e,t);if(n)return n[r]},cH=(e,t,n)=>{const r=Mp(e,n);return r!==void 0?r:Mp(t,n)},b4=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):b4(e[r],t[r],n):e[r]=t[r]);return e},Ja=e=>e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,"\\\\$&");var uH={"&":"&","<":"<",">":">",\'"\':""","\'":"'","/":"/"};const dH=e=>typeof e=="string"?e.replace(/[&<>"\'\\/]/g,t=>uH[t]):e;class fH{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const pH=[" ",",","?","!",";"],gH=new fH(20),hH=(e,t,n)=>{t=t||"",n=n||"";const r=pH.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=gH.getRegExp(`(${r.map(s=>s==="?"?"\\\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},Cv=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let s,a="";for(let l=i;l<r.length;++l)if(l!==i&&(a+=n),a+=r[l],s=o[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;i+=l-i+1;break}o=s}return o},Dp=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class E4 extends kp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):typeof r=="string"&&i?a.push(...r.split(i)):a.push(r)));const l=Mp(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!s||typeof r!="string"?l:Cv(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),S4(this.data,a,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let l=Mp(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?b4(l,r,i):l={...l,...r},S4(this.data,a,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var x4={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const w4={};class Lp extends kp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),sH(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=go.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!hH(t,r,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const S=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${S}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const f=this.resolve(t,n);let d=f&&f.res;const h=f&&f.usedKey||s,g=f&&f.exactUsedKey||s,m=Object.prototype.toString.apply(d),b=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&b.indexOf(m)<0&&!(typeof y=="string"&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...n,ns:a}):`key \'${s} (${this.language})\' returned an object instead of string.`;return o?(f.res=S,f.usedParams=this.getUsedParamsDetails(n),f):S}if(i){const S=Array.isArray(d),w=S?[]:{},_=S?g:h;for(const E in d)if(Object.prototype.hasOwnProperty.call(d,E)){const M=`${_}${i}${E}`;w[E]=this.translate(M,{...n,joinArrays:!1,ns:a}),w[E]===M&&(w[E]=d[E])}d=w}}else if(v&&typeof y=="string"&&Array.isArray(d))d=d.join(y),d&&(d=this.extendTranslation(d,t,n,r));else{let S=!1,w=!1;const _=n.count!==void 0&&typeof n.count!="string",E=Lp.hasDefaultValue(n),M=_?this.pluralResolver.getSuffix(c,n.count,n):"",$=n.ordinal&&_?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",D=_&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),k=D&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${M}`]||n[`defaultValue${$}`]||n.defaultValue;!this.isValidLookup(d)&&E&&(S=!0,d=k),this.isValidLookup(d)||(w=!0,d=s);const O=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:d,I=E&&k!==d&&this.options.updateMissing;if(w||S||I){if(this.logger.log(I?"updateKey":"missingKey",c,l,s,I?k:d),i){const T=this.resolve(s,{...n,keySeparator:!1});T&&T.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let A=[];const P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(let T=0;T<P.length;T++)A.push(P[T]);else this.options.saveMissingTo==="all"?A=this.languageUtils.toResolveHierarchy(n.lng||this.language):A.push(n.lng||this.language);const N=(T,L,z)=>{const B=E&&z!==d?z:O;this.options.missingKeyHandler?this.options.missingKeyHandler(T,l,L,B,I,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(T,l,L,B,I,n),this.emit("missingKey",T,l,L,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?A.forEach(T=>{const L=this.pluralResolver.getSuffixes(T,n);D&&n[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(z=>{N([T],s+z,n[`defaultValue${z}`]||k)})}):N(A,s,k))}d=this.extendTranslation(d,t,n,f,r),w&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${s}`),(w||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,S?d:void 0):d=this.options.parseMissingKeyHandler(d))}return o?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,r,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const d=t.match(this.interpolator.nestingRegexp);u=d&&d.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||o.usedLng,r),c){const d=t.match(this.interpolator.nestingRegexp),h=d&&d.length;u<h&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,h=new Array(d),g=0;g<d;g++)h[g]=arguments[g];return i&&i[0]===h[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):s.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=x4.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,s,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;o=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&typeof n.count!="string",h=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),g=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(b=>{this.isValidLookup(r)||(a=b,!w4[`${m[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(w4[`${m[0]}-${b}`]=!0,this.logger.warn(`key "${o}" for languages "${m.join(", ")}" won\'t get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(y=>{if(this.isValidLookup(r))return;s=y;const v=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,u,y,b,n);else{let S;d&&(S=this.pluralResolver.getSuffix(y,n.count,n));const w=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(v.push(u+S),n.ordinal&&S.indexOf(_)===0&&v.push(u+S.replace(_,this.options.pluralSeparator)),h&&v.push(u+w)),g){const E=`${u}${this.options.contextSeparator}${n.context}`;v.push(E),d&&(v.push(E+S),n.ordinal&&S.indexOf(_)===0&&v.push(E+S.replace(_,this.options.pluralSeparator)),h&&v.push(E+w))}}let C;for(;C=v.pop();)this.isValidLookup(r)||(i=C,r=this.getResource(y,b,C,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Sv=e=>e.charAt(0).toUpperCase()+e.slice(1);class T4{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=go.create("languageUtils")}getScriptPartFromCode(t){if(t=Dp(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Dp(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sv(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sv(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Sv(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let mH=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],vH={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const yH=["v1","v2","v3"],CH=["v4"],_4={zero:0,one:1,two:2,few:3,many:4,other:5},SH=()=>{const e={};return mH.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:vH[t.fc]}})}),e};class bH{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=go.create("pluralResolver"),(!this.options.compatibilityJSON||CH.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=SH(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=Dp(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const s=new Intl.PluralRules(r,{type:o});return this.pluralRulesCache[i]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>_4[o]-_4[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!yH.includes(this.options.compatibilityJSON)}}const I4=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=cH(e,t,n);return!i&&o&&typeof n=="string"&&(i=Cv(e,n,r),i===void 0&&(i=Cv(t,n,r))),i},bv=e=>e.replace(/\\$/g,"$$$$");class EH{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=go.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:m,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:v}=t.interpolation;this.escape=n!==void 0?n:dH,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Ja(i):s||"{{",this.suffix=a?Ja(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Ja(d):h||Ja("$t("),this.nestingSuffix=g?Ja(g):m||Ja(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const y=I4(n,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...o,...n,interpolationkey:h}):y}const g=h.split(this.formatSeparator),m=g.shift().trim(),b=g.join(this.formatSeparator).trim();return this.format(I4(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...o,...n,interpolationkey:m})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>bv(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?bv(this.escape(h)):bv(h)}].forEach(h=>{for(a=0;i=h.regex.exec(t);){const g=i[1].trim();if(s=c(g),s===void 0)if(typeof u=="function"){const b=u(t,i,o);s=typeof b=="string"?b:""}else if(o&&Object.prototype.hasOwnProperty.call(o,g))s="";else if(f){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=v4(s));const m=h.safeValue(s);if(t=t.replace(i[0],m),f?(h.regex.lastIndex+=s.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const f=l.split(new RegExp(`${u}[ ]*{`));let d=`{${f[1]}`;l=f[0],d=this.interpolate(d,s);const h=d.match(/\'/g),g=d.match(/"/g);(h&&h.length%2===0&&!g||g.length%2!==0)&&(d=d.replace(/\'/g,\'"\'));try{s=JSON.parse(d),c&&(s={...c,...s})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${u}${d}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=u.shift(),l=u,c=!0}if(i=n(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=v4(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,f)=>this.format(u,f,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const xH=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^\'+|\'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},Xa=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(Dp(r),o),t[s]=a),a(n)}};class wH{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=go.create("formatter"),this.options=t,this.formats={number:Xa((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:Xa((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:Xa((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:Xa((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:Xa((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Xa(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=xH(l);if(this.formats[c]){let f=a;try{const d=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},h=d.locale||d.lng||o.locale||o.lng||r;f=this.formats[c](a,h,{...u,...o,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const TH=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class _H extends kp{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=go.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},a={},l={};return t.forEach(c=>{let u=!0;n.forEach(f=>{const d=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,u=!1,s[d]===void 0&&(s[d]=!0),i[d]===void 0&&(i[d]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{lH(l.loaded,[i],s),TH(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(f=>{a[c][f]===void 0&&(a[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,s)},i);return}s(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,n,r,o,l):u=c(t,n,r,o),u&&typeof u.then=="function"?u.then(f=>a(null,f)).catch(a):a(null,u)}catch(u){a(u)}else c(t,n,r,o,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const O4=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),A4=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Fp=()=>{},IH=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class tu extends kp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=A4(t),this.services={},this.logger=go,this.modules={external:[]},IH(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=O4();this.options={...o,...this.options,...A4(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?go.init(i(this.modules.logger),this.options):go.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=wH);const f=new T4(this.options);this.store=new E4(this.options.resources,this.options);const d=this.services;d.logger=go,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new bH(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(d.formatter=i(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new EH(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new _H(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var g=arguments.length,m=new Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];t.emit(h,...m)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Lp(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,m=new Array(g>1?g-1:0),b=1;b<g;b++)m[b-1]=arguments[b];t.emit(h,...m)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Fp),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=Qc(),c=()=>{const u=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),r(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fp;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const o=Qc();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Fp),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&x4.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=Qc();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,n,r){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),f=2;f<c;f++)u[f-2]=arguments[f];l=o.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const d=o.options.keySeparator||".";let h;return l.keyPrefix&&Array.isArray(s)?h=s.map(g=>`${l.keyPrefix}${d}${g}`):h=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s,o.t(h,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=Qc();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Qc();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new T4(O4());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new tu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fp;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new tu(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new E4(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Lp(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const St=tu.createInstance();St.createInstance=tu.createInstance,St.createInstance,St.dir,St.init,St.loadResources,St.reloadResources,St.use,St.changeLanguage,St.getFixedT,St.t,St.exists,St.setDefaultNamespace,St.hasLoadedNamespace,St.loadNamespaces,St.loadLanguages;const OH=window.ZCBCoChannel.publicStore,AH="i18nextLng",R4={da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fr:"fr-FR",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nl:"nl-NL",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR",vi:"vi-VN",zh:"zh-CN",ca:"ca-ES"},P4=async(e,t=!0,n)=>{var r,o;if(((r=window.ZMCoBrowsingConfig)==null?void 0:r.templateMode)!==2){n==null||n();return}try{if(!St.hasResourceBundle(e,"translation")){const i=await Lz(`${(o=window.ZMCoBrowsingConfig)==null?void 0:o.i18nUrlPrefix}locales/${R4[e]?R4[e]:e}/translation.json`);if(!i.ok)throw new Error("Translations response was not ok");const s=await i.json();St.addResourceBundle(e,"translation",s,!0,!0)}}catch(i){console.error(i instanceof Error?i.message:`${i}`)}t&&St.changeLanguage(e,n)},RH=async e=>{var r,o,i;if(((r=window.ZMCoBrowsingConfig)==null?void 0:r.templateMode)!==2){e==null||e();return}let t;if(hz()){const s=Az(AH),{ZCBTokenConsumer:a}=OH.getState(),l=await(a==null?void 0:a.getData(s));t=l&&u3(l)||ap}else t=((i=(o=window.unifyConfig)==null?void 0:o.systemParam)==null?void 0:i.globalLang)||ap;St.use(GN).init({fallbackLng:ap,resources:{},interpolation:{escapeValue:!1}});function n(s){e==null||e(s),St.off("languageChanged",n)}St.on("languageChanged",n),await P4(ap,!1),P4(t)};St.t;const gY="";let $p;const PH={get cache(){if($p)return $p;const e=document.createElement("div");return e.classList.add(so),document.body.appendChild(e),$p=tg({key:"zcb-emotion",container:e}),$p}};function NH(){const e=document.getElementById("root");if(e){const t=h4(e),n=()=>x(DN,{children:x(sx,{children:x(JI,{dateAdapter:l9,children:x(IN,{children:x(sy,{value:PH.cache,children:Km()?x(oH,{}):x(rH,{})})})})})});t.render(x(n,{}))}}RH(()=>{NH()})})();\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/mcek85sw/zcb-portal-agent.js.map\n';export{e as default};
|