@creaditor/business-ai 1.0.57 → 1.0.59

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.
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(L,q){var w=L.length;L.push(q);e:for(;0<w;){var H=w-1>>>1,te=L[H];if(0<r(te,q))L[H]=q,L[w]=te,w=H;else break e}}function n(L){return L.length===0?null:L[0]}function a(L){if(L.length===0)return null;var q=L[0],w=L.pop();if(w!==q){L[0]=w;e:for(var H=0,te=L.length,Q=te>>>1;H<Q;){var N=2*(H+1)-1,re=L[N],ue=N+1,X=L[ue];if(0>r(re,w))ue<te&&0>r(X,re)?(L[H]=X,L[ue]=w,H=ue):(L[H]=re,L[N]=w,H=N);else if(ue<te&&0>r(X,w))L[H]=X,L[ue]=w,H=ue;else break e}}return q}function r(L,q){var w=L.sortIndex-q.sortIndex;return w!==0?w:L.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,i=o.now();e.unstable_now=function(){return o.now()-i}}var s=[],p=[],u=1,c=null,d=3,f=!1,W=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=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(L){for(var q=n(p);q!==null;){if(q.callback===null)a(p);else if(q.startTime<=L)a(p),q.sortIndex=q.expirationTime,t(s,q);else break;q=n(p)}}function y(L){if(m=!1,C(L),!W)if(n(s)!==null)W=!0,j(E);else{var q=n(p);q!==null&&P(y,q.startTime-L)}}function E(L,q){W=!1,m&&(m=!1,h(R),R=-1),f=!0;var w=d;try{for(C(q),c=n(s);c!==null&&(!(c.expirationTime>q)||L&&!B());){var H=c.callback;if(typeof H=="function"){c.callback=null,d=c.priorityLevel;var te=H(c.expirationTime<=q);q=e.unstable_now(),typeof te=="function"?c.callback=te:c===n(s)&&a(s),C(q)}else a(s);c=n(s)}if(c!==null)var Q=!0;else{var N=n(p);N!==null&&P(y,N.startTime-q),Q=!1}return Q}finally{c=null,d=w,f=!1}}var S=!1,k=null,R=-1,V=5,b=-1;function B(){return!(e.unstable_now()-b<V)}function M(){if(k!==null){var L=e.unstable_now();b=L;var q=!0;try{q=k(!0,L)}finally{q?F():(S=!1,k=null)}}else S=!1}var F;if(typeof g=="function")F=function(){g(M)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,T=z.port2;z.port1.onmessage=M,F=function(){T.postMessage(null)}}else F=function(){x(M,0)};function j(L){k=L,S||(S=!0,F())}function P(L,q){R=x(function(){L(e.unstable_now())},q)}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(L){L.callback=null},e.unstable_continueExecution=function(){W||f||(W=!0,j(E))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(L){switch(d){case 1:case 2:case 3:var q=3;break;default:q=d}var w=d;d=q;try{return L()}finally{d=w}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var w=d;d=L;try{return q()}finally{d=w}},e.unstable_scheduleCallback=function(L,q,w){var H=e.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?H+w:H):w=H,L){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=w+te,L={id:u++,callback:q,priorityLevel:L,startTime:w,expirationTime:te,sortIndex:-1},w>H?(L.sortIndex=w,t(p,L),n(s)===null&&L===n(p)&&(m?(h(R),R=-1):m=!0,P(y,w-H))):(L.sortIndex=te,t(s,L),W||f||(W=!0,j(E))),L},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(L){var q=d;return function(){var w=d;d=q;try{return L.apply(this,arguments)}finally{d=w}}}})($m),_m.exports=$m;var hw=_m.exports;/**
25
+ */(function(e){function t(L,q){var w=L.length;L.push(q);e:for(;0<w;){var G=w-1>>>1,te=L[G];if(0<r(te,q))L[G]=q,L[w]=te,w=G;else break e}}function n(L){return L.length===0?null:L[0]}function a(L){if(L.length===0)return null;var q=L[0],w=L.pop();if(w!==q){L[0]=w;e:for(var G=0,te=L.length,Q=te>>>1;G<Q;){var N=2*(G+1)-1,re=L[N],ue=N+1,_=L[ue];if(0>r(re,w))ue<te&&0>r(_,re)?(L[G]=_,L[ue]=w,G=ue):(L[G]=re,L[N]=w,G=N);else if(ue<te&&0>r(_,w))L[G]=_,L[ue]=w,G=ue;else break e}}return q}function r(L,q){var w=L.sortIndex-q.sortIndex;return w!==0?w:L.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,i=o.now();e.unstable_now=function(){return o.now()-i}}var s=[],p=[],u=1,c=null,d=3,f=!1,W=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=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(L){for(var q=n(p);q!==null;){if(q.callback===null)a(p);else if(q.startTime<=L)a(p),q.sortIndex=q.expirationTime,t(s,q);else break;q=n(p)}}function y(L){if(m=!1,C(L),!W)if(n(s)!==null)W=!0,j(E);else{var q=n(p);q!==null&&P(y,q.startTime-L)}}function E(L,q){W=!1,m&&(m=!1,h(R),R=-1),f=!0;var w=d;try{for(C(q),c=n(s);c!==null&&(!(c.expirationTime>q)||L&&!B());){var G=c.callback;if(typeof G=="function"){c.callback=null,d=c.priorityLevel;var te=G(c.expirationTime<=q);q=e.unstable_now(),typeof te=="function"?c.callback=te:c===n(s)&&a(s),C(q)}else a(s);c=n(s)}if(c!==null)var Q=!0;else{var N=n(p);N!==null&&P(y,N.startTime-q),Q=!1}return Q}finally{c=null,d=w,f=!1}}var S=!1,k=null,R=-1,V=5,b=-1;function B(){return!(e.unstable_now()-b<V)}function M(){if(k!==null){var L=e.unstable_now();b=L;var q=!0;try{q=k(!0,L)}finally{q?F():(S=!1,k=null)}}else S=!1}var F;if(typeof g=="function")F=function(){g(M)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,T=z.port2;z.port1.onmessage=M,F=function(){T.postMessage(null)}}else F=function(){x(M,0)};function j(L){k=L,S||(S=!0,F())}function P(L,q){R=x(function(){L(e.unstable_now())},q)}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(L){L.callback=null},e.unstable_continueExecution=function(){W||f||(W=!0,j(E))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(L){switch(d){case 1:case 2:case 3:var q=3;break;default:q=d}var w=d;d=q;try{return L()}finally{d=w}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,q){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var w=d;d=L;try{return q()}finally{d=w}},e.unstable_scheduleCallback=function(L,q,w){var G=e.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?G+w:G):w=G,L){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=w+te,L={id:u++,callback:q,priorityLevel:L,startTime:w,expirationTime:te,sortIndex:-1},w>G?(L.sortIndex=w,t(p,L),n(s)===null&&L===n(p)&&(m?(h(R),R=-1):m=!0,P(y,w-G))):(L.sortIndex=te,t(s,L),W||f||(W=!0,j(E))),L},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(L){var q=d;return function(){var w=d;d=q;try{return L.apply(this,arguments)}finally{d=w}}}})($m),_m.exports=$m;var hw=_m.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -62,7 +62,7 @@ Error generating stack: `+l.message+`
62
62
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
- */(function(e,t){var n;function a(l,o){var i=[],s=0;function p(c){return i.push(c),o}function u(){return i[s++]}return{tokenize:function(c){return c.replace(l,p)},detokenize:function(c){return c.replace(new RegExp("("+o+")","g"),u)}}}function r(){var l="`TMP`",o="`TMPLTR`",i="`TMPRTL`",s="`NOFLIP_SINGLE`",p="`NOFLIP_CLASS`",u="`COMMENT`",c="[^\\u0020-\\u007e]",d="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",f="(?:[0-9]*\\.[0-9]+|[0-9]+)",W="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",m="direction\\s*:\\s*",x="[!#$%&*-~]",h=`['"]?\\s*`,g="(^|[^a-zA-Z])",C="[^\\}]*?",y="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",E="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",S="(?:"+d+"|\\\\[^\\r\\n\\f0-9a-f])",k="(?:[_a-z]|"+c+"|"+S+")",R="(?:[_a-z0-9-]|"+c+"|"+S+")",V="-?"+k+R+"*",b=f+"(?:\\s*"+W+"|"+V+")?",B="((?:-?"+b+")|(?:inherit|auto))",M="(?:-?"+f+"(?:\\s*"+W+")?)",F="(?:\\+|\\-|\\*|\\/)",z="(?:\\(|\\)|\\t| )",T="(?:"+z+"|"+M+"|"+F+"){3,}",j="(?:calc\\((?:"+T+")\\))",P="((?:-?"+b+")|(?:inherit|auto)|"+j+")",L="((?:margin|padding|border-width)\\s*:\\s*)",q="((?:-color|border-style)\\s*:\\s*)",w="(#?"+R+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",H="(?:"+x+"|"+c+"|"+S+")*?",te="(?![a-zA-Z])",Q="(?!("+R+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+u+")*?{)",N="(?!"+H+h+"\\))",re="(?="+H+h+"\\))",ue="(\\s*(?:!important\\s*)?[;}])",X=/`TMP`/g,ee=/`TMPLTR`/g,de=/`TMPRTL`/g,ae=new RegExp(E,"gi"),G=new RegExp("("+y+Q+"[^;}]+;?)","gi"),he=new RegExp("("+y+C+"})","gi"),ge=new RegExp("("+m+")ltr","gi"),me=new RegExp("("+m+")rtl","gi"),ve=new RegExp(g+"(left)"+te+N+Q,"gi"),ce=new RegExp(g+"(right)"+te+N+Q,"gi"),Ze=new RegExp(g+"(left)"+re,"gi"),le=new RegExp(g+"(right)"+re,"gi"),Ke=/(:dir\( *)ltr( *\))/g,qe=/(:dir\( *)rtl( *\))/g,Be=new RegExp(g+"(ltr)"+re,"gi"),Te=new RegExp(g+"(rtl)"+re,"gi"),Pe=new RegExp(g+"([ns]?)e-resize","gi"),je=new RegExp(g+"([ns]?)w-resize","gi"),it=new RegExp(L+P+"(\\s+)"+P+"(\\s+)"+P+"(\\s+)"+P+ue,"gi"),D=new RegExp(q+w+"(\\s+)"+w+"(\\s+)"+w+"(\\s+)"+w+ue,"gi"),ne=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+b+")","gi"),U=new RegExp("(background-position-x\\s*:\\s*)(-?"+f+"%)","gi"),O=new RegExp("(border-radius\\s*:\\s*)"+B+"(?:(?:\\s+"+B+")(?:\\s+"+B+")?(?:\\s+"+B+")?)?(?:(?:(?:\\s*\\/\\s*)"+B+")(?:\\s+"+B+")?(?:\\s+"+B+")?(?:\\s+"+B+")?)?"+ue,"gi"),Y=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+B,"gi"),Ie=new RegExp("(text-shadow\\s*:\\s*)"+B+"(\\s*)"+w,"gi"),Se=new RegExp("(text-shadow\\s*:\\s*)"+w+"(\\s*)"+B,"gi"),pe=new RegExp("(text-shadow\\s*:\\s*)"+B,"gi"),xe=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+B+"(\\s*\\))","gi"),Qe=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+B+"((?:\\s*,\\s*"+B+"){0,2}\\s*\\))","gi");function Je(Ce,_e,Ve){var It,Tt;return Ve.slice(-1)==="%"&&(It=Ve.indexOf("."),It!==-1?(Tt=Ve.length-It-2,Ve=100-parseFloat(Ve),Ve=Ve.toFixed(Tt)+"%"):Ve=100-parseFloat(Ve)+"%"),_e+Ve}function ft(Ce){switch(Ce.length){case 4:Ce=[Ce[1],Ce[0],Ce[3],Ce[2]];break;case 3:Ce=[Ce[1],Ce[0],Ce[1],Ce[2]];break;case 2:Ce=[Ce[1],Ce[0]];break;case 1:Ce=[Ce[0]];break}return Ce.join(" ")}function bt(Ce,_e){var Ve,It=[].slice.call(arguments),Tt=It.slice(2,6).filter(function(Ft){return Ft}),Jl=It.slice(6,10).filter(function(Ft){return Ft}),Ea=It[10]||"";return Jl.length?Ve=ft(Tt)+" / "+ft(Jl):Ve=ft(Tt),_e+Ve+Ea}function kt(Ce){return parseFloat(Ce)===0?Ce:Ce[0]==="-"?Ce.slice(1):"-"+Ce}function Dt(Ce,_e,Ve){return _e+kt(Ve)}function rt(Ce,_e,Ve,It,Tt){return _e+Ve+kt(It)+Tt}function Xe(Ce,_e,Ve,It,Tt){return _e+Ve+It+kt(Tt)}return{transform:function(Ce,_e){var Ve=new a(G,s),It=new a(he,p),Tt=new a(ae,u);return Ce=Tt.tokenize(It.tokenize(Ve.tokenize(Ce.replace("`","%60")))),_e.transformDirInUrl&&(Ce=Ce.replace(Ke,"$1"+o+"$2").replace(qe,"$1"+i+"$2").replace(Be,"$1"+l).replace(Te,"$1ltr").replace(X,"rtl").replace(ee,"ltr").replace(de,"rtl")),_e.transformEdgeInUrl&&(Ce=Ce.replace(Ze,"$1"+l).replace(le,"$1left").replace(X,"right")),Ce=Ce.replace(ge,"$1"+l).replace(me,"$1ltr").replace(X,"rtl").replace(ve,"$1"+l).replace(ce,"$1left").replace(X,"right").replace(Pe,"$1$2"+l).replace(je,"$1$2e-resize").replace(X,"w-resize").replace(O,bt).replace(Y,Dt).replace(Ie,Xe).replace(Se,Xe).replace(pe,Dt).replace(xe,rt).replace(Qe,rt).replace(it,"$1$2$3$8$5$6$7$4$9").replace(D,"$1$2$3$8$5$6$7$4$9").replace(ne,Je).replace(U,Je),Ce=Ve.detokenize(It.detokenize(Tt.detokenize(Ce))),Ce}}}n=new r,e.exports?t.transform=function(l,o,i){var s;return typeof o=="object"?s=o:(s={},typeof o=="boolean"&&(s.transformDirInUrl=o),typeof i=="boolean"&&(s.transformEdgeInUrl=i)),n.transform(l,s)}:typeof window<"u"&&(window.cssjanus=n)})(Xf,Xf.exports);var g3=Xf.exports;const h3=Dl(g3);function By(e,t,n){switch(e.type){case ry:case vu:case Cu:return e.return=e.return||e.value;case So:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(r){r.type===Cu&&(r.children=r.value)})}var a=Sl(Array.prototype.concat(e.children),By);return Qa(a)?e.return=e.value+"{"+a+"}":""}function Ly(e,t,n,a){if(e.type===qf||e.type===EB||e.type===So&&(!e.parent||e.parent.type===xB||e.parent.type===So)){var r=h3.transform(By(e));e.children=r?py(r)[0].children:[],e.return=""}}Object.defineProperty(Ly,"name",{value:"stylisRTLPlugin"});const Ue=e=>typeof e=="string",ts=()=>{let e,t;const n=new Promise((a,r)=>{e=a,t=r});return n.resolve=e,n.reject=t,n},My=e=>e==null?"":""+e,m3=(e,t,n)=>{e.forEach(a=>{t[a]&&(n[a]=t[a])})},C3=/###/g,Qy=e=>e&&e.indexOf("###")>-1?e.replace(C3,"."):e,Vy=e=>!e||Ue(e),ns=(e,t,n)=>{const a=Ue(t)?t.split("."):t;let r=0;for(;r<a.length-1;){if(Vy(e))return{};const l=Qy(a[r]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++r}return Vy(e)?{}:{obj:e,k:Qy(a[r])}},Uy=(e,t,n)=>{const{obj:a,k:r}=ns(e,t,Object);if(a!==void 0||t.length===1){a[r]=n;return}let l=t[t.length-1],o=t.slice(0,t.length-1),i=ns(e,o,Object);for(;i.obj===void 0&&o.length;)l=`${o[o.length-1]}.${l}`,o=o.slice(0,o.length-1),i=ns(e,o,Object),i!=null&&i.obj&&typeof i.obj[`${i.k}.${l}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${l}`]=n},v3=(e,t,n,a)=>{const{obj:r,k:l}=ns(e,t,Object);r[l]=r[l]||[],r[l].push(n)},ju=(e,t)=>{const{obj:n,k:a}=ns(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,a))return n[a]},y3=(e,t,n)=>{const a=ju(e,n);return a!==void 0?a:ju(t,n)},Fy=(e,t,n)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?Ue(e[a])||e[a]instanceof String||Ue(t[a])||t[a]instanceof String?n&&(e[a]=t[a]):Fy(e[a],t[a],n):e[a]=t[a]);return e},Il=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var S3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const I3=e=>Ue(e)?e.replace(/[&<>"'\/]/g,t=>S3[t]):e;class x3{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 a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const E3=[" ",",","?","!",";"],b3=new x3(20),k3=(e,t,n)=>{t=t||"",n=n||"";const a=E3.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(a.length===0)return!0;const r=b3.getRegExp(`(${a.map(o=>o==="?"?"\\?":o).join("|")})`);let l=!r.test(e);if(!l){const o=e.indexOf(n);o>0&&!r.test(e.substring(0,o))&&(l=!0)}return l},_f=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const a=t.split(n);let r=e;for(let l=0;l<a.length;){if(!r||typeof r!="object")return;let o,i="";for(let s=l;s<a.length;++s)if(s!==l&&(i+=n),i+=a[s],o=r[i],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&s<a.length-1)continue;l+=s-l+1;break}r=o}return r},as=e=>e==null?void 0:e.replace("_","-"),w3={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,a;(a=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||a.call(n,console,t)}};class Tu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||w3,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,a,r){return r&&!this.debug?null:(Ue(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Tu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Tu(this.logger,t)}}var Na=new Tu;class Ou{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const r=this.observers[a].get(n)||0;this.observers[a].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,l])=>{for(let o=0;o<l;o++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,l])=>{for(let o=0;o<l;o++)r.apply(r,[t,...n])})}}class zy extends Ou{constructor(t,n={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,a,r={}){var p,u;const l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,o=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;t.indexOf(".")>-1?i=t.split("."):(i=[t,n],a&&(Array.isArray(a)?i.push(...a):Ue(a)&&l?i.push(...a.split(l)):i.push(a)));const s=ju(this.data,i);return!s&&!n&&!a&&t.indexOf(".")>-1&&(t=i[0],n=i[1],a=i.slice(2).join(".")),s||!o||!Ue(a)?s:_f((u=(p=this.data)==null?void 0:p[t])==null?void 0:u[n],a,l)}addResource(t,n,a,r,l={silent:!1}){const o=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let i=[t,n];a&&(i=i.concat(o?a.split(o):a)),t.indexOf(".")>-1&&(i=t.split("."),r=n,n=i[1]),this.addNamespaces(n),Uy(this.data,i,r),l.silent||this.emit("added",t,n,a,r)}addResources(t,n,a,r={silent:!1}){for(const l in a)(Ue(a[l])||Array.isArray(a[l]))&&this.addResource(t,n,l,a[l],{silent:!0});r.silent||this.emit("added",t,n,a)}addResourceBundle(t,n,a,r,l,o={silent:!1,skipCopy:!1}){let i=[t,n];t.indexOf(".")>-1&&(i=t.split("."),r=a,a=n,n=i[1]),this.addNamespaces(n);let s=ju(this.data,i)||{};o.skipCopy||(a=JSON.parse(JSON.stringify(a))),r?Fy(s,a,l):s={...s,...a},Uy(this.data,i,s),o.silent||this.emit("added",t,n,a)}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.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var qy={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,a,r){return e.forEach(l=>{var o;t=((o=this.processors[l])==null?void 0:o.process(t,n,a,r))??t}),t}};const jy=Symbol("i18next/PATH_KEY");function R3(){const e=[],t=Object.create(null);let n;return t.get=(a,r)=>{var l;return(l=n==null?void 0:n.revoke)==null||l.call(n),r===jy?e:(e.push(r),n=Proxy.revocable(a,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function $f(e,t){const{[jy]:n}=e(R3());return n.join((t==null?void 0:t.keySeparator)??".")}const Ty={},eW=e=>!Ue(e)&&typeof e!="boolean"&&typeof e!="number";class Ku extends Ou{constructor(t,n={}){super(),m3(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Na.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const a={...n};if(t==null)return!1;const r=this.resolve(t,a);if((r==null?void 0:r.res)===void 0)return!1;const l=eW(r.res);return!(a.returnObjects===!1&&l)}extractFromKey(t,n){let a=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const o=a&&t.indexOf(a)>-1,i=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!k3(t,a,r);if(o&&!i){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:Ue(l)?[l]:l};const p=t.split(a);(a!==r||a===r&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),t=p.join(r)}return{key:t,namespaces:Ue(l)?[l]:l}}translate(t,n,a){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=$f(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);const l=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(t[t.length-1],r),p=s[s.length-1];let u=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode")return d?l?{res:`${p}${u}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${u}${i}`:l?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:i;const f=this.resolve(t,r);let W=f==null?void 0:f.res;const m=(f==null?void 0:f.usedKey)||i,x=(f==null?void 0:f.exactUsedKey)||i,h=["[object Number]","[object Function]","[object RegExp]"],g=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,y=r.count!==void 0&&!Ue(r.count),E=Ku.hasDefaultValue(r),S=y?this.pluralResolver.getSuffix(c,r.count,r):"",k=r.ordinal&&y?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",R=y&&!r.ordinal&&r.count===0,V=R&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${S}`]||r[`defaultValue${k}`]||r.defaultValue;let b=W;C&&!W&&E&&(b=V);const B=eW(b),M=Object.prototype.toString.apply(b);if(C&&b&&B&&h.indexOf(M)<0&&!(Ue(g)&&Array.isArray(b))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,b,{...r,ns:s}):`key '${i} (${this.language})' returned an object instead of string.`;return l?(f.res=F,f.usedParams=this.getUsedParamsDetails(r),f):F}if(o){const F=Array.isArray(b),z=F?[]:{},T=F?x:m;for(const j in b)if(Object.prototype.hasOwnProperty.call(b,j)){const P=`${T}${o}${j}`;E&&!W?z[j]=this.translate(P,{...r,defaultValue:eW(V)?V[j]:void 0,joinArrays:!1,ns:s}):z[j]=this.translate(P,{...r,joinArrays:!1,ns:s}),z[j]===P&&(z[j]=b[j])}W=z}}else if(C&&Ue(g)&&Array.isArray(W))W=W.join(g),W&&(W=this.extendTranslation(W,t,r,a));else{let F=!1,z=!1;!this.isValidLookup(W)&&E&&(F=!0,W=V),this.isValidLookup(W)||(z=!0,W=i);const j=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&z?void 0:W,P=E&&V!==W&&this.options.updateMissing;if(z||F||P){if(this.logger.log(P?"updateKey":"missingKey",c,p,i,P?V:W),o){const H=this.resolve(i,{...r,keySeparator:!1});H&&H.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 L=[];const q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&q&&q[0])for(let H=0;H<q.length;H++)L.push(q[H]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(r.lng||this.language):L.push(r.lng||this.language);const w=(H,te,Q)=>{var re;const N=E&&Q!==W?Q:j;this.options.missingKeyHandler?this.options.missingKeyHandler(H,p,te,N,P,r):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(H,p,te,N,P,r),this.emit("missingKey",H,p,te,W)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?L.forEach(H=>{const te=this.pluralResolver.getSuffixes(H,r);R&&r[`defaultValue${this.options.pluralSeparator}zero`]&&te.indexOf(`${this.options.pluralSeparator}zero`)<0&&te.push(`${this.options.pluralSeparator}zero`),te.forEach(Q=>{w([H],i+Q,r[`defaultValue${Q}`]||V)})}):w(L,i,V))}W=this.extendTranslation(W,t,r,f,a),z&&W===i&&this.options.appendNamespaceToMissingKey&&(W=`${p}${u}${i}`),(z||F)&&this.options.parseMissingKeyHandler&&(W=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${u}${i}`:i,F?W:void 0,r))}return l?(f.res=W,f.usedParams=this.getUsedParamsDetails(r),f):W}extendTranslation(t,n,a,r,l){var s,p;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const u=Ue(t)&&(((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=a.replace&&!Ue(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,a.lng||this.language||r.usedLng,a),u){const f=t.match(this.interpolator.nestingRegexp),W=f&&f.length;c<W&&(a.nest=!1)}!a.lng&&r&&r.res&&(a.lng=this.language||r.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...f)=>(l==null?void 0:l[0])===f[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),a)),a.interpolation&&this.interpolator.reset()}const o=a.postProcess||this.options.postProcess,i=Ue(o)?[o]:o;return t!=null&&(i!=null&&i.length)&&a.applyPostProcessor!==!1&&(t=qy.handle(i,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,n={}){let a,r,l,o,i;return Ue(t)&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(a))return;const p=this.extractFromKey(s,n),u=p.key;r=u;let c=p.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=n.count!==void 0&&!Ue(n.count),f=d&&!n.ordinal&&n.count===0,W=n.context!==void 0&&(Ue(n.context)||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(x=>{var h,g;this.isValidLookup(a)||(i=x,!Ty[`${m[0]}-${x}`]&&((h=this.utils)!=null&&h.hasLoadedNamespace)&&!((g=this.utils)!=null&&g.hasLoadedNamespace(i))&&(Ty[`${m[0]}-${x}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(", ")}" won't get resolved as namespace "${i}" 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(C=>{var S;if(this.isValidLookup(a))return;o=C;const y=[u];if((S=this.i18nFormat)!=null&&S.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,C,x,n);else{let k;d&&(k=this.pluralResolver.getSuffix(C,n.count,n));const R=`${this.options.pluralSeparator}zero`,V=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&k.indexOf(V)===0&&y.push(u+k.replace(V,this.options.pluralSeparator)),y.push(u+k),f&&y.push(u+R)),W){const b=`${u}${this.options.contextSeparator||"_"}${n.context}`;y.push(b),d&&(n.ordinal&&k.indexOf(V)===0&&y.push(b+k.replace(V,this.options.pluralSeparator)),y.push(b+k),f&&y.push(b+R))}}let E;for(;E=y.pop();)this.isValidLookup(a)||(l=E,a=this.getResource(C,x,E,n))}))})}),{res:a,usedKey:r,exactUsedKey:l,usedLng:o,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,a,r={}){var l;return(l=this.i18nFormat)!=null&&l.getResource?this.i18nFormat.getResource(t,n,a,r):this.resourceStore.getResource(t,n,a,r)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!Ue(t.replace);let r=a?t.replace:t;if(a&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!a){r={...r};for(const l of n)delete r[l]}return r}static hasDefaultValue(t){const n="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n===a.substring(0,n.length)&&t[a]!==void 0)return!0;return!1}}class Oy{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Na.create("languageUtils")}getScriptPartFromCode(t){if(t=as(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=as(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ue(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}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(a=>{if(n)return;const r=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(a=>{if(n)return;const r=this.getScriptPartFromCode(a);if(this.isSupportedCode(r))return n=r;const l=this.getLanguagePartFromCode(a);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(o=>{if(o===l)return o;if(!(o.indexOf("-")<0&&l.indexOf("-")<0)&&(o.indexOf("-")>0&&l.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===l||o.indexOf(l)===0&&l.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ue(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let a=t[n];return a||(a=t[this.getScriptPartFromCode(n)]),a||(a=t[this.formatLanguageCode(n)]),a||(a=t[this.getLanguagePartFromCode(n)]),a||(a=t.default),a||[]}toResolveHierarchy(t,n){const a=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],l=o=>{o&&(this.isSupportedCode(o)?r.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return Ue(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Ue(t)&&l(this.formatLanguageCode(t)),a.forEach(o=>{r.indexOf(o)<0&&l(this.formatLanguageCode(o))}),r}}const Ky={zero:0,one:1,two:2,few:3,many:4,other:5},Py={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class B3{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Na.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const a=as(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:a,type:r});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let o;try{o=new Intl.PluralRules(a,{type:r})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Py;if(!t.match(/-|_/))return Py;const s=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(s,n)}return this.pluralRulesCache[l]=o,o}needsPlural(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,a={}){return this.getSuffixes(t,a).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),a?a.resolvedOptions().pluralCategories.sort((r,l)=>Ky[r]-Ky[l]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,a={}){const r=this.getRule(t,a);return r?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,a))}}const Jy=(e,t,n,a=".",r=!0)=>{let l=y3(e,t,n);return!l&&r&&Ue(n)&&(l=_f(e,n,a),l===void 0&&(l=_f(t,n,a))),l},tW=e=>e.replace(/\$/g,"$$$$");class Dy{constructor(t={}){var n;this.logger=Na.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:a,useRawValueToEscape:r,prefix:l,prefixEscaped:o,suffix:i,suffixEscaped:s,formatSeparator:p,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:W,nestingSuffixEscaped:m,nestingOptionsSeparator:x,maxReplaces:h,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:I3,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=l?Il(l):o||"{{",this.suffix=i?Il(i):s||"}}",this.formatSeparator=p||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Il(d):f||Il("$t("),this.nestingSuffix=W?Il(W):m||Il(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=h||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,a)=>(n==null?void 0:n.source)===a?(n.lastIndex=0,n):new RegExp(a,"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,a,r){var f;let l,o,i;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=W=>{if(W.indexOf(this.formatSeparator)<0){const g=Jy(n,s,W,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,a,{...r,...n,interpolationkey:W}):g}const m=W.split(this.formatSeparator),x=m.shift().trim(),h=m.join(this.formatSeparator).trim();return this.format(Jy(n,s,x,this.options.keySeparator,this.options.ignoreJSONStructure),h,a,{...r,...n,interpolationkey:x})};this.resetRegExp();const u=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,c=((f=r==null?void 0:r.interpolation)==null?void 0:f.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:W=>tW(W)},{regex:this.regexp,safeValue:W=>this.escapeValue?tW(this.escape(W)):tW(W)}].forEach(W=>{for(i=0;l=W.regex.exec(t);){const m=l[1].trim();if(o=p(m),o===void 0)if(typeof u=="function"){const h=u(t,l,r);o=Ue(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,m))o="";else if(c){o=l[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),o="";else!Ue(o)&&!this.useRawValueToEscape&&(o=My(o));const x=W.safeValue(o);if(t=t.replace(l[0],x),c?(W.regex.lastIndex+=o.length,W.regex.lastIndex-=l[0].length):W.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,n,a={}){let r,l,o;const i=(s,p)=>{const u=this.nestingOptionsSeparator;if(s.indexOf(u)<0)return s;const c=s.split(new RegExp(`${Il(u)}[ ]*{`));let d=`{${c[1]}`;s=c[0],d=this.interpolate(d,o);const f=d.match(/'/g),W=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!W||((W==null?void 0:W.length)??0)%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),p&&(o={...p,...o})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,m),`${s}${u}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,s};for(;r=this.nestingRegexp.exec(t);){let s=[];o={...a},o=o.replace&&!Ue(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(s=r[1].slice(p).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),l=n(i.call(this,r[1].trim(),o),o),l&&r[0]===t&&!Ue(l))return l;Ue(l)||(l=My(l)),l||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),l=""),s.length&&(l=s.reduce((u,c)=>this.format(u,c,a.lng,{...a,interpolationkey:r[1].trim()}),l.trim())),t=t.replace(r[0],l),this.regexp.lastIndex=0}return t}}const L3=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const r=a[1].substring(0,a[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(o=>{if(o){const[i,...s]=o.split(":"),p=s.join(":").trim().replace(/^'+|'+$/g,""),u=i.trim();n[u]||(n[u]=p),p==="false"&&(n[u]=!1),p==="true"&&(n[u]=!0),isNaN(p)||(n[u]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},Yy=e=>{const t={};return(n,a,r)=>{let l=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(l={...l,[r.interpolationkey]:void 0});const o=a+JSON.stringify(l);let i=t[o];return i||(i=e(as(a),r),t[o]=i),i(n)}},M3=e=>(t,n,a)=>e(as(n),a)(t);class Q3{constructor(t={}){this.logger=Na.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const a=n.cacheInBuiltFormats?Yy:M3;this.formats={number:a((r,l)=>{const o=new Intl.NumberFormat(r,{...l});return i=>o.format(i)}),currency:a((r,l)=>{const o=new Intl.NumberFormat(r,{...l,style:"currency"});return i=>o.format(i)}),datetime:a((r,l)=>{const o=new Intl.DateTimeFormat(r,{...l});return i=>o.format(i)}),relativetime:a((r,l)=>{const o=new Intl.RelativeTimeFormat(r,{...l});return i=>o.format(i,l.range||"day")}),list:a((r,l)=>{const o=new Intl.ListFormat(r,{...l});return i=>o.format(i)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Yy(n)}format(t,n,a,r={}){const l=n.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(i=>i.indexOf(")")>-1)){const i=l.findIndex(s=>s.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,i)].join(this.formatSeparator)}return l.reduce((i,s)=>{var c;const{formatName:p,formatOptions:u}=L3(s);if(this.formats[p]){let d=i;try{const f=((c=r==null?void 0:r.formatParams)==null?void 0:c[r.interpolationkey])||{},W=f.locale||f.lng||r.locale||r.lng||a;d=this.formats[p](i,W,{...u,...r,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${p}`);return i},t)}}const V3=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class U3 extends Ou{constructor(t,n,a,r={}){var l,o;super(),this.backend=t,this.store=n,this.services=a,this.languageUtils=a.languageUtils,this.options=r,this.logger=Na.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(o=(l=this.backend)==null?void 0:l.init)==null||o.call(l,a,r.backend,r)}queueLoad(t,n,a,r){const l={},o={},i={},s={};return t.forEach(p=>{let u=!0;n.forEach(c=>{const d=`${p}|${c}`;!a.reload&&this.store.hasResourceBundle(p,c)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,u=!1,o[d]===void 0&&(o[d]=!0),l[d]===void 0&&(l[d]=!0),s[c]===void 0&&(s[c]=!0)))}),u||(i[p]=!0)}),(Object.keys(l).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(l),pending:Object.keys(o),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(s)}}loaded(t,n,a){const r=t.split("|"),l=r[0],o=r[1];n&&this.emit("failedLoading",l,o,n),!n&&a&&this.store.addResourceBundle(l,o,a,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&a&&(this.state[t]=0);const i={};this.queue.forEach(s=>{v3(s.loaded,[l],o),V3(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(p=>{i[p]||(i[p]={});const u=s.loaded[p];u.length&&u.forEach(c=>{i[p][c]===void 0&&(i[p][c]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(s=>!s.done)}read(t,n,a,r=0,l=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:a,tried:r,wait:l,callback:o});return}this.readingCalls++;const i=(p,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(p&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,a,r+1,l*2,o)},l);return}o(p,u)},s=this.backend[a].bind(this.backend);if(s.length===2){try{const p=s(t,n);p&&typeof p.then=="function"?p.then(u=>i(null,u)).catch(i):i(null,p)}catch(p){i(p)}return}return s(t,n,i)}prepareLoading(t,n,a={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Ue(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ue(n)&&(n=[n]);const l=this.queueLoad(t,n,a,r);if(!l.toLoad.length)return l.pending.length||r(),null;l.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,a){this.prepareLoading(t,n,{},a)}reload(t,n,a){this.prepareLoading(t,n,{reload:!0},a)}loadOne(t,n=""){const a=t.split("|"),r=a[0],l=a[1];this.read(r,l,"read",void 0,void 0,(o,i)=>{o&&this.logger.warn(`${n}loading namespace ${l} for language ${r} failed`,o),!o&&i&&this.logger.log(`${n}loaded namespace ${l} for language ${r}`,i),this.loaded(t,o,i)})}saveMissing(t,n,a,r,l,o={},i=()=>{}){var s,p,u,c,d;if((p=(s=this.services)==null?void 0:s.utils)!=null&&p.hasLoadedNamespace&&!((c=(u=this.services)==null?void 0:u.utils)!=null&&c.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${a}" 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(!(a==null||a==="")){if((d=this.backend)!=null&&d.create){const f={...o,isUpdate:l},W=this.backend.create.bind(this.backend);if(W.length<6)try{let m;W.length===5?m=W(t,n,a,r,f):m=W(t,n,a,r),m&&typeof m.then=="function"?m.then(x=>i(null,x)).catch(i):i(null,m)}catch(m){i(m)}else W(t,n,a,r,i,f)}!t||!t[0]||this.store.addResource(t[0],n,a,r)}}}const nW=()=>({debug:!1,initAsync:!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]),Ue(e[1])&&(t.defaultValue=e[1]),Ue(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(a=>{t[a]=n[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Zy=e=>{var t,n;return Ue(e.ns)&&(e.ns=[e.ns]),Ue(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ue(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Pu=()=>{},F3=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};let Ny=!1;const z3=e=>{var t,n,a,r,l,o,i,s,p;return!!(((a=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:a.indexOf("Locize"))>0||((i=(o=(l=(r=e==null?void 0:e.modules)==null?void 0:r.backend)==null?void 0:l.constructor)==null?void 0:o.name)==null?void 0:i.indexOf("Locize"))>0||(p=(s=e==null?void 0:e.options)==null?void 0:s.backend)!=null&&p.backends&&e.options.backend.backends.some(u=>{var c,d,f;return((c=u==null?void 0:u.name)==null?void 0:c.indexOf("Locize"))>0||((f=(d=u==null?void 0:u.constructor)==null?void 0:d.name)==null?void 0:f.indexOf("Locize"))>0}))};class rs extends Ou{constructor(t={},n){if(super(),this.options=Zy(t),this.services={},this.logger=Na,this.modules={external:[]},F3(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Ue(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=nW();this.options={...a,...this.options,...Zy(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!z3(this)&&!Ny&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Ny=!0);const r=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?Na.init(r(this.modules.logger),this.options):Na.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Q3;const u=new Oy(this.options);this.store=new zy(this.options.resources,this.options);const c=this.services;c.logger=Na,c.resourceStore=this.store,c.languageUtils=u,c.pluralResolver=new B3(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(c.formatter=r(p),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Dy(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new U3(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(f,...W)=>{this.emit(f,...W)}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Ku(this.services,this.options),this.translator.on("*",(f,...W)=>{this.emit(f,...W)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Pu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...u)=>this.store[p](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...u)=>(this.store[p](...u),this)});const i=ts(),s=()=>{const p=(u,c)=>{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),i.resolve(c),n(u,c)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),i}loadResources(t,n=Pu){var l,o;let a=n;const r=Ue(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const i=[],s=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),(o=(l=this.options.preload)==null?void 0:l.forEach)==null||o.call(l,p=>s(p)),this.services.backendConnector.load(i,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(p)})}else a(null)}reloadResources(t,n,a){const r=ts();return typeof t=="function"&&(a=t,t=void 0),typeof n=="function"&&(a=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),a||(a=Pu),this.services.backendConnector.reload(t,n,l=>{r.resolve(),a(l)}),r}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"&&qy.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 a=this.languages[n];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const a=ts();this.emit("languageChanging",t);const r=i=>{this.language=i,this.languages=this.services.languageUtils.toResolveHierarchy(i),this.resolvedLanguage=void 0,this.setResolvedLanguage(i)},l=(i,s)=>{s?this.isLanguageChangingTo===t&&(r(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve((...p)=>this.t(...p)),n&&n(i,(...p)=>this.t(...p))},o=i=>{var u,c;!t&&!i&&this.services.languageDetector&&(i=[]);const s=Ue(i)?i:i&&i[0],p=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(Ue(i)?[i]:i);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(c=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||c.call(u,p)),this.loadResources(p,d=>{l(d,p)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),a}getFixedT(t,n,a){const r=(l,o,...i)=>{let s;typeof o!="object"?s=this.options.overloadTranslationOptionHandler([l,o].concat(i)):s={...o},s.lng=s.lng||r.lng,s.lngs=s.lngs||r.lngs,s.ns=s.ns||r.ns,s.keyPrefix!==""&&(s.keyPrefix=s.keyPrefix||a||r.keyPrefix);const p=this.options.keySeparator||".";let u;return s.keyPrefix&&Array.isArray(l)?u=l.map(c=>(typeof c=="function"&&(c=$f(c,{...this.options,...o})),`${s.keyPrefix}${p}${c}`)):(typeof l=="function"&&(l=$f(l,{...this.options,...o})),u=s.keyPrefix?`${s.keyPrefix}${p}${l}`:l),this.t(u,s)};return Ue(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=a,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){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 a=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const o=(i,s)=>{const p=this.services.backendConnector.state[`${i}|${s}`];return p===-1||p===0||p===2};if(n.precheck){const i=n.precheck(this,o);if(i!==void 0)return i}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(a,t)&&(!r||o(l,t)))}loadNamespaces(t,n){const a=ts();return this.options.ns?(Ue(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{a.resolve(),n&&n(r)}),a):(n&&n(),Promise.resolve())}loadLanguages(t,n){const a=ts();Ue(t)&&(t=[t]);const r=this.options.preload||[],l=t.filter(o=>r.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return l.length?(this.options.preload=r.concat(l),this.loadResources(o=>{a.resolve(),n&&n(o)}),a):(n&&n(),Promise.resolve())}dir(t){var r,l;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const i=o.getTextInfo();if(i&&i.direction)return i.direction}}catch{}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"],a=((l=this.services)==null?void 0:l.languageUtils)||new Oy(nW());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const a=new rs(t,n);return a.createInstance=rs.createInstance,a}cloneInstance(t={},n=Pu){const a=t.forkResourceStore;a&&delete t.forkResourceStore;const r={...this.options,...t,isClone:!0},l=new rs(r);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(i=>{l[i]=this[i]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},a){const i=Object.keys(this.store.data).reduce((s,p)=>(s[p]={...this.store.data[p]},s[p]=Object.keys(s[p]).reduce((u,c)=>(u[c]={...s[p][c]},u),s[p]),s),{});l.store=new zy(i,r),l.services.resourceStore=l.store}if(t.interpolation){const s={...nW().interpolation,...this.options.interpolation,...t.interpolation},p={...r,interpolation:s};l.services.interpolator=new Dy(p)}return l.translator=new Ku(l.services,r),l.translator.on("*",(i,...s)=>{l.emit(i,...s)}),l.init(r,n),l.translator.options=r,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const _t=rs.createInstance();_t.createInstance,_t.dir,_t.init,_t.loadResources,_t.reloadResources,_t.use,_t.changeLanguage,_t.getFixedT,_t.t,_t.exists,_t.setDefaultNamespace,_t.hasLoadedNamespace,_t.loadNamespaces,_t.loadLanguages;const q3=(e,t,n,a)=>{var l,o,i,s;const r=[n,{code:t,...a||{}}];if((o=(l=e==null?void 0:e.services)==null?void 0:l.logger)!=null&&o.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);xl(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(s=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&s.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Gy={},Hy=(e,t,n,a)=>{xl(n)&&Gy[n]||(xl(n)&&(Gy[n]=new Date),q3(e,t,n,a))},Xy=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},aW=(e,t,n)=>{e.loadNamespaces(t,Xy(e,n))},_y=(e,t,n,a)=>{if(xl(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return aW(e,n,a);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,Xy(e,a))},j3=(e,t,n={})=>!t.languages||!t.languages.length?(Hy(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!r(a.isLanguageChangingTo,e))return!1}}),xl=e=>typeof e=="string",T3=e=>typeof e=="object"&&e!==null,O3=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,K3={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},P3=e=>K3[e];let rW={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(O3,P3),transDefaultProps:void 0};const J3=(e={})=>{rW={...rW,...e}},D3=()=>rW;let $y;const Y3=e=>{$y=e},Z3=()=>$y,N3={type:"3rdParty",init(e){J3(e.options.react),Y3(e)}},e1=v.createContext();class G3{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var t1={exports:{}},n1={};/**
65
+ */(function(e,t){var n;function a(l,o){var i=[],s=0;function p(c){return i.push(c),o}function u(){return i[s++]}return{tokenize:function(c){return c.replace(l,p)},detokenize:function(c){return c.replace(new RegExp("("+o+")","g"),u)}}}function r(){var l="`TMP`",o="`TMPLTR`",i="`TMPRTL`",s="`NOFLIP_SINGLE`",p="`NOFLIP_CLASS`",u="`COMMENT`",c="[^\\u0020-\\u007e]",d="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",f="(?:[0-9]*\\.[0-9]+|[0-9]+)",W="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",m="direction\\s*:\\s*",x="[!#$%&*-~]",h=`['"]?\\s*`,g="(^|[^a-zA-Z])",C="[^\\}]*?",y="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",E="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",S="(?:"+d+"|\\\\[^\\r\\n\\f0-9a-f])",k="(?:[_a-z]|"+c+"|"+S+")",R="(?:[_a-z0-9-]|"+c+"|"+S+")",V="-?"+k+R+"*",b=f+"(?:\\s*"+W+"|"+V+")?",B="((?:-?"+b+")|(?:inherit|auto))",M="(?:-?"+f+"(?:\\s*"+W+")?)",F="(?:\\+|\\-|\\*|\\/)",z="(?:\\(|\\)|\\t| )",T="(?:"+z+"|"+M+"|"+F+"){3,}",j="(?:calc\\((?:"+T+")\\))",P="((?:-?"+b+")|(?:inherit|auto)|"+j+")",L="((?:margin|padding|border-width)\\s*:\\s*)",q="((?:-color|border-style)\\s*:\\s*)",w="(#?"+R+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",G="(?:"+x+"|"+c+"|"+S+")*?",te="(?![a-zA-Z])",Q="(?!("+R+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+u+")*?{)",N="(?!"+G+h+"\\))",re="(?="+G+h+"\\))",ue="(\\s*(?:!important\\s*)?[;}])",_=/`TMP`/g,H=/`TMPLTR`/g,de=/`TMPRTL`/g,ae=new RegExp(E,"gi"),X=new RegExp("("+y+Q+"[^;}]+;?)","gi"),he=new RegExp("("+y+C+"})","gi"),We=new RegExp("("+m+")ltr","gi"),me=new RegExp("("+m+")rtl","gi"),ve=new RegExp(g+"(left)"+te+N+Q,"gi"),ce=new RegExp(g+"(right)"+te+N+Q,"gi"),Ze=new RegExp(g+"(left)"+re,"gi"),le=new RegExp(g+"(right)"+re,"gi"),Ke=/(:dir\( *)ltr( *\))/g,qe=/(:dir\( *)rtl( *\))/g,Be=new RegExp(g+"(ltr)"+re,"gi"),Te=new RegExp(g+"(rtl)"+re,"gi"),Pe=new RegExp(g+"([ns]?)e-resize","gi"),je=new RegExp(g+"([ns]?)w-resize","gi"),it=new RegExp(L+P+"(\\s+)"+P+"(\\s+)"+P+"(\\s+)"+P+ue,"gi"),D=new RegExp(q+w+"(\\s+)"+w+"(\\s+)"+w+"(\\s+)"+w+ue,"gi"),ne=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+b+")","gi"),U=new RegExp("(background-position-x\\s*:\\s*)(-?"+f+"%)","gi"),O=new RegExp("(border-radius\\s*:\\s*)"+B+"(?:(?:\\s+"+B+")(?:\\s+"+B+")?(?:\\s+"+B+")?)?(?:(?:(?:\\s*\\/\\s*)"+B+")(?:\\s+"+B+")?(?:\\s+"+B+")?(?:\\s+"+B+")?)?"+ue,"gi"),Y=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+B,"gi"),Ie=new RegExp("(text-shadow\\s*:\\s*)"+B+"(\\s*)"+w,"gi"),Se=new RegExp("(text-shadow\\s*:\\s*)"+w+"(\\s*)"+B,"gi"),pe=new RegExp("(text-shadow\\s*:\\s*)"+B,"gi"),xe=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+B+"(\\s*\\))","gi"),Qe=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+B+"((?:\\s*,\\s*"+B+"){0,2}\\s*\\))","gi");function Je(Ce,_e,Ve){var It,Tt;return Ve.slice(-1)==="%"&&(It=Ve.indexOf("."),It!==-1?(Tt=Ve.length-It-2,Ve=100-parseFloat(Ve),Ve=Ve.toFixed(Tt)+"%"):Ve=100-parseFloat(Ve)+"%"),_e+Ve}function ft(Ce){switch(Ce.length){case 4:Ce=[Ce[1],Ce[0],Ce[3],Ce[2]];break;case 3:Ce=[Ce[1],Ce[0],Ce[1],Ce[2]];break;case 2:Ce=[Ce[1],Ce[0]];break;case 1:Ce=[Ce[0]];break}return Ce.join(" ")}function bt(Ce,_e){var Ve,It=[].slice.call(arguments),Tt=It.slice(2,6).filter(function(Ft){return Ft}),Jl=It.slice(6,10).filter(function(Ft){return Ft}),Ea=It[10]||"";return Jl.length?Ve=ft(Tt)+" / "+ft(Jl):Ve=ft(Tt),_e+Ve+Ea}function kt(Ce){return parseFloat(Ce)===0?Ce:Ce[0]==="-"?Ce.slice(1):"-"+Ce}function Dt(Ce,_e,Ve){return _e+kt(Ve)}function rt(Ce,_e,Ve,It,Tt){return _e+Ve+kt(It)+Tt}function Xe(Ce,_e,Ve,It,Tt){return _e+Ve+It+kt(Tt)}return{transform:function(Ce,_e){var Ve=new a(X,s),It=new a(he,p),Tt=new a(ae,u);return Ce=Tt.tokenize(It.tokenize(Ve.tokenize(Ce.replace("`","%60")))),_e.transformDirInUrl&&(Ce=Ce.replace(Ke,"$1"+o+"$2").replace(qe,"$1"+i+"$2").replace(Be,"$1"+l).replace(Te,"$1ltr").replace(_,"rtl").replace(H,"ltr").replace(de,"rtl")),_e.transformEdgeInUrl&&(Ce=Ce.replace(Ze,"$1"+l).replace(le,"$1left").replace(_,"right")),Ce=Ce.replace(We,"$1"+l).replace(me,"$1ltr").replace(_,"rtl").replace(ve,"$1"+l).replace(ce,"$1left").replace(_,"right").replace(Pe,"$1$2"+l).replace(je,"$1$2e-resize").replace(_,"w-resize").replace(O,bt).replace(Y,Dt).replace(Ie,Xe).replace(Se,Xe).replace(pe,Dt).replace(xe,rt).replace(Qe,rt).replace(it,"$1$2$3$8$5$6$7$4$9").replace(D,"$1$2$3$8$5$6$7$4$9").replace(ne,Je).replace(U,Je),Ce=Ve.detokenize(It.detokenize(Tt.detokenize(Ce))),Ce}}}n=new r,e.exports?t.transform=function(l,o,i){var s;return typeof o=="object"?s=o:(s={},typeof o=="boolean"&&(s.transformDirInUrl=o),typeof i=="boolean"&&(s.transformEdgeInUrl=i)),n.transform(l,s)}:typeof window<"u"&&(window.cssjanus=n)})(Xf,Xf.exports);var g3=Xf.exports;const h3=Dl(g3);function By(e,t,n){switch(e.type){case ry:case vu:case Cu:return e.return=e.return||e.value;case So:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(r){r.type===Cu&&(r.children=r.value)})}var a=Sl(Array.prototype.concat(e.children),By);return Qa(a)?e.return=e.value+"{"+a+"}":""}function Ly(e,t,n,a){if(e.type===qf||e.type===EB||e.type===So&&(!e.parent||e.parent.type===xB||e.parent.type===So)){var r=h3.transform(By(e));e.children=r?py(r)[0].children:[],e.return=""}}Object.defineProperty(Ly,"name",{value:"stylisRTLPlugin"});const Ue=e=>typeof e=="string",ts=()=>{let e,t;const n=new Promise((a,r)=>{e=a,t=r});return n.resolve=e,n.reject=t,n},My=e=>e==null?"":""+e,m3=(e,t,n)=>{e.forEach(a=>{t[a]&&(n[a]=t[a])})},C3=/###/g,Qy=e=>e&&e.indexOf("###")>-1?e.replace(C3,"."):e,Vy=e=>!e||Ue(e),ns=(e,t,n)=>{const a=Ue(t)?t.split("."):t;let r=0;for(;r<a.length-1;){if(Vy(e))return{};const l=Qy(a[r]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++r}return Vy(e)?{}:{obj:e,k:Qy(a[r])}},Uy=(e,t,n)=>{const{obj:a,k:r}=ns(e,t,Object);if(a!==void 0||t.length===1){a[r]=n;return}let l=t[t.length-1],o=t.slice(0,t.length-1),i=ns(e,o,Object);for(;i.obj===void 0&&o.length;)l=`${o[o.length-1]}.${l}`,o=o.slice(0,o.length-1),i=ns(e,o,Object),i!=null&&i.obj&&typeof i.obj[`${i.k}.${l}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${l}`]=n},v3=(e,t,n,a)=>{const{obj:r,k:l}=ns(e,t,Object);r[l]=r[l]||[],r[l].push(n)},ju=(e,t)=>{const{obj:n,k:a}=ns(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,a))return n[a]},y3=(e,t,n)=>{const a=ju(e,n);return a!==void 0?a:ju(t,n)},Fy=(e,t,n)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?Ue(e[a])||e[a]instanceof String||Ue(t[a])||t[a]instanceof String?n&&(e[a]=t[a]):Fy(e[a],t[a],n):e[a]=t[a]);return e},Il=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var S3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const I3=e=>Ue(e)?e.replace(/[&<>"'\/]/g,t=>S3[t]):e;class x3{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 a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const E3=[" ",",","?","!",";"],b3=new x3(20),k3=(e,t,n)=>{t=t||"",n=n||"";const a=E3.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(a.length===0)return!0;const r=b3.getRegExp(`(${a.map(o=>o==="?"?"\\?":o).join("|")})`);let l=!r.test(e);if(!l){const o=e.indexOf(n);o>0&&!r.test(e.substring(0,o))&&(l=!0)}return l},_f=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const a=t.split(n);let r=e;for(let l=0;l<a.length;){if(!r||typeof r!="object")return;let o,i="";for(let s=l;s<a.length;++s)if(s!==l&&(i+=n),i+=a[s],o=r[i],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&s<a.length-1)continue;l+=s-l+1;break}r=o}return r},as=e=>e==null?void 0:e.replace("_","-"),w3={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,a;(a=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||a.call(n,console,t)}};class Tu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||w3,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,a,r){return r&&!this.debug?null:(Ue(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Tu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Tu(this.logger,t)}}var Na=new Tu;class Ou{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const r=this.observers[a].get(n)||0;this.observers[a].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,l])=>{for(let o=0;o<l;o++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,l])=>{for(let o=0;o<l;o++)r.apply(r,[t,...n])})}}class zy extends Ou{constructor(t,n={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,a,r={}){var p,u;const l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,o=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;t.indexOf(".")>-1?i=t.split("."):(i=[t,n],a&&(Array.isArray(a)?i.push(...a):Ue(a)&&l?i.push(...a.split(l)):i.push(a)));const s=ju(this.data,i);return!s&&!n&&!a&&t.indexOf(".")>-1&&(t=i[0],n=i[1],a=i.slice(2).join(".")),s||!o||!Ue(a)?s:_f((u=(p=this.data)==null?void 0:p[t])==null?void 0:u[n],a,l)}addResource(t,n,a,r,l={silent:!1}){const o=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let i=[t,n];a&&(i=i.concat(o?a.split(o):a)),t.indexOf(".")>-1&&(i=t.split("."),r=n,n=i[1]),this.addNamespaces(n),Uy(this.data,i,r),l.silent||this.emit("added",t,n,a,r)}addResources(t,n,a,r={silent:!1}){for(const l in a)(Ue(a[l])||Array.isArray(a[l]))&&this.addResource(t,n,l,a[l],{silent:!0});r.silent||this.emit("added",t,n,a)}addResourceBundle(t,n,a,r,l,o={silent:!1,skipCopy:!1}){let i=[t,n];t.indexOf(".")>-1&&(i=t.split("."),r=a,a=n,n=i[1]),this.addNamespaces(n);let s=ju(this.data,i)||{};o.skipCopy||(a=JSON.parse(JSON.stringify(a))),r?Fy(s,a,l):s={...s,...a},Uy(this.data,i,s),o.silent||this.emit("added",t,n,a)}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.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var qy={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,a,r){return e.forEach(l=>{var o;t=((o=this.processors[l])==null?void 0:o.process(t,n,a,r))??t}),t}};const jy=Symbol("i18next/PATH_KEY");function R3(){const e=[],t=Object.create(null);let n;return t.get=(a,r)=>{var l;return(l=n==null?void 0:n.revoke)==null||l.call(n),r===jy?e:(e.push(r),n=Proxy.revocable(a,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function $f(e,t){const{[jy]:n}=e(R3());return n.join((t==null?void 0:t.keySeparator)??".")}const Ty={},eW=e=>!Ue(e)&&typeof e!="boolean"&&typeof e!="number";class Ku extends Ou{constructor(t,n={}){super(),m3(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Na.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const a={...n};if(t==null)return!1;const r=this.resolve(t,a);if((r==null?void 0:r.res)===void 0)return!1;const l=eW(r.res);return!(a.returnObjects===!1&&l)}extractFromKey(t,n){let a=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const o=a&&t.indexOf(a)>-1,i=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!k3(t,a,r);if(o&&!i){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:Ue(l)?[l]:l};const p=t.split(a);(a!==r||a===r&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),t=p.join(r)}return{key:t,namespaces:Ue(l)?[l]:l}}translate(t,n,a){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=$f(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);const l=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(t[t.length-1],r),p=s[s.length-1];let u=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode")return d?l?{res:`${p}${u}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${u}${i}`:l?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:i;const f=this.resolve(t,r);let W=f==null?void 0:f.res;const m=(f==null?void 0:f.usedKey)||i,x=(f==null?void 0:f.exactUsedKey)||i,h=["[object Number]","[object Function]","[object RegExp]"],g=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,y=r.count!==void 0&&!Ue(r.count),E=Ku.hasDefaultValue(r),S=y?this.pluralResolver.getSuffix(c,r.count,r):"",k=r.ordinal&&y?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",R=y&&!r.ordinal&&r.count===0,V=R&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${S}`]||r[`defaultValue${k}`]||r.defaultValue;let b=W;C&&!W&&E&&(b=V);const B=eW(b),M=Object.prototype.toString.apply(b);if(C&&b&&B&&h.indexOf(M)<0&&!(Ue(g)&&Array.isArray(b))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,b,{...r,ns:s}):`key '${i} (${this.language})' returned an object instead of string.`;return l?(f.res=F,f.usedParams=this.getUsedParamsDetails(r),f):F}if(o){const F=Array.isArray(b),z=F?[]:{},T=F?x:m;for(const j in b)if(Object.prototype.hasOwnProperty.call(b,j)){const P=`${T}${o}${j}`;E&&!W?z[j]=this.translate(P,{...r,defaultValue:eW(V)?V[j]:void 0,joinArrays:!1,ns:s}):z[j]=this.translate(P,{...r,joinArrays:!1,ns:s}),z[j]===P&&(z[j]=b[j])}W=z}}else if(C&&Ue(g)&&Array.isArray(W))W=W.join(g),W&&(W=this.extendTranslation(W,t,r,a));else{let F=!1,z=!1;!this.isValidLookup(W)&&E&&(F=!0,W=V),this.isValidLookup(W)||(z=!0,W=i);const j=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&z?void 0:W,P=E&&V!==W&&this.options.updateMissing;if(z||F||P){if(this.logger.log(P?"updateKey":"missingKey",c,p,i,P?V:W),o){const G=this.resolve(i,{...r,keySeparator:!1});G&&G.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 L=[];const q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&q&&q[0])for(let G=0;G<q.length;G++)L.push(q[G]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(r.lng||this.language):L.push(r.lng||this.language);const w=(G,te,Q)=>{var re;const N=E&&Q!==W?Q:j;this.options.missingKeyHandler?this.options.missingKeyHandler(G,p,te,N,P,r):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(G,p,te,N,P,r),this.emit("missingKey",G,p,te,W)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?L.forEach(G=>{const te=this.pluralResolver.getSuffixes(G,r);R&&r[`defaultValue${this.options.pluralSeparator}zero`]&&te.indexOf(`${this.options.pluralSeparator}zero`)<0&&te.push(`${this.options.pluralSeparator}zero`),te.forEach(Q=>{w([G],i+Q,r[`defaultValue${Q}`]||V)})}):w(L,i,V))}W=this.extendTranslation(W,t,r,f,a),z&&W===i&&this.options.appendNamespaceToMissingKey&&(W=`${p}${u}${i}`),(z||F)&&this.options.parseMissingKeyHandler&&(W=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${u}${i}`:i,F?W:void 0,r))}return l?(f.res=W,f.usedParams=this.getUsedParamsDetails(r),f):W}extendTranslation(t,n,a,r,l){var s,p;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const u=Ue(t)&&(((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=a.replace&&!Ue(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,a.lng||this.language||r.usedLng,a),u){const f=t.match(this.interpolator.nestingRegexp),W=f&&f.length;c<W&&(a.nest=!1)}!a.lng&&r&&r.res&&(a.lng=this.language||r.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...f)=>(l==null?void 0:l[0])===f[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),a)),a.interpolation&&this.interpolator.reset()}const o=a.postProcess||this.options.postProcess,i=Ue(o)?[o]:o;return t!=null&&(i!=null&&i.length)&&a.applyPostProcessor!==!1&&(t=qy.handle(i,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,n={}){let a,r,l,o,i;return Ue(t)&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(a))return;const p=this.extractFromKey(s,n),u=p.key;r=u;let c=p.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=n.count!==void 0&&!Ue(n.count),f=d&&!n.ordinal&&n.count===0,W=n.context!==void 0&&(Ue(n.context)||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(x=>{var h,g;this.isValidLookup(a)||(i=x,!Ty[`${m[0]}-${x}`]&&((h=this.utils)!=null&&h.hasLoadedNamespace)&&!((g=this.utils)!=null&&g.hasLoadedNamespace(i))&&(Ty[`${m[0]}-${x}`]=!0,this.logger.warn(`key "${r}" for languages "${m.join(", ")}" won't get resolved as namespace "${i}" 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(C=>{var S;if(this.isValidLookup(a))return;o=C;const y=[u];if((S=this.i18nFormat)!=null&&S.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,C,x,n);else{let k;d&&(k=this.pluralResolver.getSuffix(C,n.count,n));const R=`${this.options.pluralSeparator}zero`,V=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&k.indexOf(V)===0&&y.push(u+k.replace(V,this.options.pluralSeparator)),y.push(u+k),f&&y.push(u+R)),W){const b=`${u}${this.options.contextSeparator||"_"}${n.context}`;y.push(b),d&&(n.ordinal&&k.indexOf(V)===0&&y.push(b+k.replace(V,this.options.pluralSeparator)),y.push(b+k),f&&y.push(b+R))}}let E;for(;E=y.pop();)this.isValidLookup(a)||(l=E,a=this.getResource(C,x,E,n))}))})}),{res:a,usedKey:r,exactUsedKey:l,usedLng:o,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,a,r={}){var l;return(l=this.i18nFormat)!=null&&l.getResource?this.i18nFormat.getResource(t,n,a,r):this.resourceStore.getResource(t,n,a,r)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!Ue(t.replace);let r=a?t.replace:t;if(a&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!a){r={...r};for(const l of n)delete r[l]}return r}static hasDefaultValue(t){const n="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n===a.substring(0,n.length)&&t[a]!==void 0)return!0;return!1}}class Oy{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Na.create("languageUtils")}getScriptPartFromCode(t){if(t=as(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=as(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ue(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}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(a=>{if(n)return;const r=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(a=>{if(n)return;const r=this.getScriptPartFromCode(a);if(this.isSupportedCode(r))return n=r;const l=this.getLanguagePartFromCode(a);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(o=>{if(o===l)return o;if(!(o.indexOf("-")<0&&l.indexOf("-")<0)&&(o.indexOf("-")>0&&l.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===l||o.indexOf(l)===0&&l.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ue(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let a=t[n];return a||(a=t[this.getScriptPartFromCode(n)]),a||(a=t[this.formatLanguageCode(n)]),a||(a=t[this.getLanguagePartFromCode(n)]),a||(a=t.default),a||[]}toResolveHierarchy(t,n){const a=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],l=o=>{o&&(this.isSupportedCode(o)?r.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return Ue(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Ue(t)&&l(this.formatLanguageCode(t)),a.forEach(o=>{r.indexOf(o)<0&&l(this.formatLanguageCode(o))}),r}}const Ky={zero:0,one:1,two:2,few:3,many:4,other:5},Py={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class B3{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Na.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const a=as(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:a,type:r});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let o;try{o=new Intl.PluralRules(a,{type:r})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Py;if(!t.match(/-|_/))return Py;const s=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(s,n)}return this.pluralRulesCache[l]=o,o}needsPlural(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,a={}){return this.getSuffixes(t,a).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),a?a.resolvedOptions().pluralCategories.sort((r,l)=>Ky[r]-Ky[l]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,a={}){const r=this.getRule(t,a);return r?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,a))}}const Jy=(e,t,n,a=".",r=!0)=>{let l=y3(e,t,n);return!l&&r&&Ue(n)&&(l=_f(e,n,a),l===void 0&&(l=_f(t,n,a))),l},tW=e=>e.replace(/\$/g,"$$$$");class Dy{constructor(t={}){var n;this.logger=Na.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:a,useRawValueToEscape:r,prefix:l,prefixEscaped:o,suffix:i,suffixEscaped:s,formatSeparator:p,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:W,nestingSuffixEscaped:m,nestingOptionsSeparator:x,maxReplaces:h,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:I3,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=l?Il(l):o||"{{",this.suffix=i?Il(i):s||"}}",this.formatSeparator=p||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Il(d):f||Il("$t("),this.nestingSuffix=W?Il(W):m||Il(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=h||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,a)=>(n==null?void 0:n.source)===a?(n.lastIndex=0,n):new RegExp(a,"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,a,r){var f;let l,o,i;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=W=>{if(W.indexOf(this.formatSeparator)<0){const g=Jy(n,s,W,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,a,{...r,...n,interpolationkey:W}):g}const m=W.split(this.formatSeparator),x=m.shift().trim(),h=m.join(this.formatSeparator).trim();return this.format(Jy(n,s,x,this.options.keySeparator,this.options.ignoreJSONStructure),h,a,{...r,...n,interpolationkey:x})};this.resetRegExp();const u=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,c=((f=r==null?void 0:r.interpolation)==null?void 0:f.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:W=>tW(W)},{regex:this.regexp,safeValue:W=>this.escapeValue?tW(this.escape(W)):tW(W)}].forEach(W=>{for(i=0;l=W.regex.exec(t);){const m=l[1].trim();if(o=p(m),o===void 0)if(typeof u=="function"){const h=u(t,l,r);o=Ue(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,m))o="";else if(c){o=l[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),o="";else!Ue(o)&&!this.useRawValueToEscape&&(o=My(o));const x=W.safeValue(o);if(t=t.replace(l[0],x),c?(W.regex.lastIndex+=o.length,W.regex.lastIndex-=l[0].length):W.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,n,a={}){let r,l,o;const i=(s,p)=>{const u=this.nestingOptionsSeparator;if(s.indexOf(u)<0)return s;const c=s.split(new RegExp(`${Il(u)}[ ]*{`));let d=`{${c[1]}`;s=c[0],d=this.interpolate(d,o);const f=d.match(/'/g),W=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!W||((W==null?void 0:W.length)??0)%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),p&&(o={...p,...o})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,m),`${s}${u}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,s};for(;r=this.nestingRegexp.exec(t);){let s=[];o={...a},o=o.replace&&!Ue(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(s=r[1].slice(p).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),l=n(i.call(this,r[1].trim(),o),o),l&&r[0]===t&&!Ue(l))return l;Ue(l)||(l=My(l)),l||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),l=""),s.length&&(l=s.reduce((u,c)=>this.format(u,c,a.lng,{...a,interpolationkey:r[1].trim()}),l.trim())),t=t.replace(r[0],l),this.regexp.lastIndex=0}return t}}const L3=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const r=a[1].substring(0,a[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(o=>{if(o){const[i,...s]=o.split(":"),p=s.join(":").trim().replace(/^'+|'+$/g,""),u=i.trim();n[u]||(n[u]=p),p==="false"&&(n[u]=!1),p==="true"&&(n[u]=!0),isNaN(p)||(n[u]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},Yy=e=>{const t={};return(n,a,r)=>{let l=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(l={...l,[r.interpolationkey]:void 0});const o=a+JSON.stringify(l);let i=t[o];return i||(i=e(as(a),r),t[o]=i),i(n)}},M3=e=>(t,n,a)=>e(as(n),a)(t);class Q3{constructor(t={}){this.logger=Na.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const a=n.cacheInBuiltFormats?Yy:M3;this.formats={number:a((r,l)=>{const o=new Intl.NumberFormat(r,{...l});return i=>o.format(i)}),currency:a((r,l)=>{const o=new Intl.NumberFormat(r,{...l,style:"currency"});return i=>o.format(i)}),datetime:a((r,l)=>{const o=new Intl.DateTimeFormat(r,{...l});return i=>o.format(i)}),relativetime:a((r,l)=>{const o=new Intl.RelativeTimeFormat(r,{...l});return i=>o.format(i,l.range||"day")}),list:a((r,l)=>{const o=new Intl.ListFormat(r,{...l});return i=>o.format(i)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Yy(n)}format(t,n,a,r={}){const l=n.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(i=>i.indexOf(")")>-1)){const i=l.findIndex(s=>s.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,i)].join(this.formatSeparator)}return l.reduce((i,s)=>{var c;const{formatName:p,formatOptions:u}=L3(s);if(this.formats[p]){let d=i;try{const f=((c=r==null?void 0:r.formatParams)==null?void 0:c[r.interpolationkey])||{},W=f.locale||f.lng||r.locale||r.lng||a;d=this.formats[p](i,W,{...u,...r,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${p}`);return i},t)}}const V3=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class U3 extends Ou{constructor(t,n,a,r={}){var l,o;super(),this.backend=t,this.store=n,this.services=a,this.languageUtils=a.languageUtils,this.options=r,this.logger=Na.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(o=(l=this.backend)==null?void 0:l.init)==null||o.call(l,a,r.backend,r)}queueLoad(t,n,a,r){const l={},o={},i={},s={};return t.forEach(p=>{let u=!0;n.forEach(c=>{const d=`${p}|${c}`;!a.reload&&this.store.hasResourceBundle(p,c)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,u=!1,o[d]===void 0&&(o[d]=!0),l[d]===void 0&&(l[d]=!0),s[c]===void 0&&(s[c]=!0)))}),u||(i[p]=!0)}),(Object.keys(l).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(l),pending:Object.keys(o),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(s)}}loaded(t,n,a){const r=t.split("|"),l=r[0],o=r[1];n&&this.emit("failedLoading",l,o,n),!n&&a&&this.store.addResourceBundle(l,o,a,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&a&&(this.state[t]=0);const i={};this.queue.forEach(s=>{v3(s.loaded,[l],o),V3(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(p=>{i[p]||(i[p]={});const u=s.loaded[p];u.length&&u.forEach(c=>{i[p][c]===void 0&&(i[p][c]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(s=>!s.done)}read(t,n,a,r=0,l=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:a,tried:r,wait:l,callback:o});return}this.readingCalls++;const i=(p,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(p&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,a,r+1,l*2,o)},l);return}o(p,u)},s=this.backend[a].bind(this.backend);if(s.length===2){try{const p=s(t,n);p&&typeof p.then=="function"?p.then(u=>i(null,u)).catch(i):i(null,p)}catch(p){i(p)}return}return s(t,n,i)}prepareLoading(t,n,a={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Ue(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ue(n)&&(n=[n]);const l=this.queueLoad(t,n,a,r);if(!l.toLoad.length)return l.pending.length||r(),null;l.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,a){this.prepareLoading(t,n,{},a)}reload(t,n,a){this.prepareLoading(t,n,{reload:!0},a)}loadOne(t,n=""){const a=t.split("|"),r=a[0],l=a[1];this.read(r,l,"read",void 0,void 0,(o,i)=>{o&&this.logger.warn(`${n}loading namespace ${l} for language ${r} failed`,o),!o&&i&&this.logger.log(`${n}loaded namespace ${l} for language ${r}`,i),this.loaded(t,o,i)})}saveMissing(t,n,a,r,l,o={},i=()=>{}){var s,p,u,c,d;if((p=(s=this.services)==null?void 0:s.utils)!=null&&p.hasLoadedNamespace&&!((c=(u=this.services)==null?void 0:u.utils)!=null&&c.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${a}" 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(!(a==null||a==="")){if((d=this.backend)!=null&&d.create){const f={...o,isUpdate:l},W=this.backend.create.bind(this.backend);if(W.length<6)try{let m;W.length===5?m=W(t,n,a,r,f):m=W(t,n,a,r),m&&typeof m.then=="function"?m.then(x=>i(null,x)).catch(i):i(null,m)}catch(m){i(m)}else W(t,n,a,r,i,f)}!t||!t[0]||this.store.addResource(t[0],n,a,r)}}}const nW=()=>({debug:!1,initAsync:!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]),Ue(e[1])&&(t.defaultValue=e[1]),Ue(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(a=>{t[a]=n[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Zy=e=>{var t,n;return Ue(e.ns)&&(e.ns=[e.ns]),Ue(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ue(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Pu=()=>{},F3=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};let Ny=!1;const z3=e=>{var t,n,a,r,l,o,i,s,p;return!!(((a=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:a.indexOf("Locize"))>0||((i=(o=(l=(r=e==null?void 0:e.modules)==null?void 0:r.backend)==null?void 0:l.constructor)==null?void 0:o.name)==null?void 0:i.indexOf("Locize"))>0||(p=(s=e==null?void 0:e.options)==null?void 0:s.backend)!=null&&p.backends&&e.options.backend.backends.some(u=>{var c,d,f;return((c=u==null?void 0:u.name)==null?void 0:c.indexOf("Locize"))>0||((f=(d=u==null?void 0:u.constructor)==null?void 0:d.name)==null?void 0:f.indexOf("Locize"))>0}))};class rs extends Ou{constructor(t={},n){if(super(),this.options=Zy(t),this.services={},this.logger=Na,this.modules={external:[]},F3(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Ue(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=nW();this.options={...a,...this.options,...Zy(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!z3(this)&&!Ny&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Ny=!0);const r=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?Na.init(r(this.modules.logger),this.options):Na.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Q3;const u=new Oy(this.options);this.store=new zy(this.options.resources,this.options);const c=this.services;c.logger=Na,c.resourceStore=this.store,c.languageUtils=u,c.pluralResolver=new B3(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(c.formatter=r(p),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Dy(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new U3(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(f,...W)=>{this.emit(f,...W)}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Ku(this.services,this.options),this.translator.on("*",(f,...W)=>{this.emit(f,...W)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Pu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...u)=>this.store[p](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...u)=>(this.store[p](...u),this)});const i=ts(),s=()=>{const p=(u,c)=>{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),i.resolve(c),n(u,c)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),i}loadResources(t,n=Pu){var l,o;let a=n;const r=Ue(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const i=[],s=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),(o=(l=this.options.preload)==null?void 0:l.forEach)==null||o.call(l,p=>s(p)),this.services.backendConnector.load(i,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(p)})}else a(null)}reloadResources(t,n,a){const r=ts();return typeof t=="function"&&(a=t,t=void 0),typeof n=="function"&&(a=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),a||(a=Pu),this.services.backendConnector.reload(t,n,l=>{r.resolve(),a(l)}),r}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"&&qy.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 a=this.languages[n];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const a=ts();this.emit("languageChanging",t);const r=i=>{this.language=i,this.languages=this.services.languageUtils.toResolveHierarchy(i),this.resolvedLanguage=void 0,this.setResolvedLanguage(i)},l=(i,s)=>{s?this.isLanguageChangingTo===t&&(r(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve((...p)=>this.t(...p)),n&&n(i,(...p)=>this.t(...p))},o=i=>{var u,c;!t&&!i&&this.services.languageDetector&&(i=[]);const s=Ue(i)?i:i&&i[0],p=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(Ue(i)?[i]:i);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(c=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||c.call(u,p)),this.loadResources(p,d=>{l(d,p)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),a}getFixedT(t,n,a){const r=(l,o,...i)=>{let s;typeof o!="object"?s=this.options.overloadTranslationOptionHandler([l,o].concat(i)):s={...o},s.lng=s.lng||r.lng,s.lngs=s.lngs||r.lngs,s.ns=s.ns||r.ns,s.keyPrefix!==""&&(s.keyPrefix=s.keyPrefix||a||r.keyPrefix);const p=this.options.keySeparator||".";let u;return s.keyPrefix&&Array.isArray(l)?u=l.map(c=>(typeof c=="function"&&(c=$f(c,{...this.options,...o})),`${s.keyPrefix}${p}${c}`)):(typeof l=="function"&&(l=$f(l,{...this.options,...o})),u=s.keyPrefix?`${s.keyPrefix}${p}${l}`:l),this.t(u,s)};return Ue(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=a,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){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 a=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const o=(i,s)=>{const p=this.services.backendConnector.state[`${i}|${s}`];return p===-1||p===0||p===2};if(n.precheck){const i=n.precheck(this,o);if(i!==void 0)return i}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(a,t)&&(!r||o(l,t)))}loadNamespaces(t,n){const a=ts();return this.options.ns?(Ue(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{a.resolve(),n&&n(r)}),a):(n&&n(),Promise.resolve())}loadLanguages(t,n){const a=ts();Ue(t)&&(t=[t]);const r=this.options.preload||[],l=t.filter(o=>r.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return l.length?(this.options.preload=r.concat(l),this.loadResources(o=>{a.resolve(),n&&n(o)}),a):(n&&n(),Promise.resolve())}dir(t){var r,l;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const i=o.getTextInfo();if(i&&i.direction)return i.direction}}catch{}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"],a=((l=this.services)==null?void 0:l.languageUtils)||new Oy(nW());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const a=new rs(t,n);return a.createInstance=rs.createInstance,a}cloneInstance(t={},n=Pu){const a=t.forkResourceStore;a&&delete t.forkResourceStore;const r={...this.options,...t,isClone:!0},l=new rs(r);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(i=>{l[i]=this[i]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},a){const i=Object.keys(this.store.data).reduce((s,p)=>(s[p]={...this.store.data[p]},s[p]=Object.keys(s[p]).reduce((u,c)=>(u[c]={...s[p][c]},u),s[p]),s),{});l.store=new zy(i,r),l.services.resourceStore=l.store}if(t.interpolation){const s={...nW().interpolation,...this.options.interpolation,...t.interpolation},p={...r,interpolation:s};l.services.interpolator=new Dy(p)}return l.translator=new Ku(l.services,r),l.translator.on("*",(i,...s)=>{l.emit(i,...s)}),l.init(r,n),l.translator.options=r,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const _t=rs.createInstance();_t.createInstance,_t.dir,_t.init,_t.loadResources,_t.reloadResources,_t.use,_t.changeLanguage,_t.getFixedT,_t.t,_t.exists,_t.setDefaultNamespace,_t.hasLoadedNamespace,_t.loadNamespaces,_t.loadLanguages;const q3=(e,t,n,a)=>{var l,o,i,s;const r=[n,{code:t,...a||{}}];if((o=(l=e==null?void 0:e.services)==null?void 0:l.logger)!=null&&o.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);xl(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(s=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&s.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Gy={},Hy=(e,t,n,a)=>{xl(n)&&Gy[n]||(xl(n)&&(Gy[n]=new Date),q3(e,t,n,a))},Xy=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},aW=(e,t,n)=>{e.loadNamespaces(t,Xy(e,n))},_y=(e,t,n,a)=>{if(xl(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return aW(e,n,a);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,Xy(e,a))},j3=(e,t,n={})=>!t.languages||!t.languages.length?(Hy(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!r(a.isLanguageChangingTo,e))return!1}}),xl=e=>typeof e=="string",T3=e=>typeof e=="object"&&e!==null,O3=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,K3={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},P3=e=>K3[e];let rW={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(O3,P3),transDefaultProps:void 0};const J3=(e={})=>{rW={...rW,...e}},D3=()=>rW;let $y;const Y3=e=>{$y=e},Z3=()=>$y,N3={type:"3rdParty",init(e){J3(e.options.react),Y3(e)}},e1=v.createContext();class G3{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var t1={exports:{}},n1={};/**
66
66
  * @license React
67
67
  * use-sync-external-store-shim.production.js
68
68
  *
@@ -70,7 +70,7 @@ Error generating stack: `+l.message+`
70
70
  *
71
71
  * This source code is licensed under the MIT license found in the
72
72
  * LICENSE file in the root directory of this source tree.
73
- */var ko=v;function H3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var X3=typeof Object.is=="function"?Object.is:H3,_3=ko.useState,$3=ko.useEffect,e7=ko.useLayoutEffect,t7=ko.useDebugValue;function n7(e,t){var n=t(),a=_3({inst:{value:n,getSnapshot:t}}),r=a[0].inst,l=a[1];return e7(function(){r.value=n,r.getSnapshot=t,lW(r)&&l({inst:r})},[e,n,t]),$3(function(){return lW(r)&&l({inst:r}),e(function(){lW(r)&&l({inst:r})})},[e]),t7(n),n}function lW(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!X3(e,n)}catch{return!0}}function a7(e,t){return t()}var r7=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a7:n7;n1.useSyncExternalStore=ko.useSyncExternalStore!==void 0?ko.useSyncExternalStore:r7,t1.exports=n1;var l7=t1.exports;const o7={t:(e,t)=>xl(t)?t:T3(t)&&xl(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},i7=()=>()=>{},Nn=(e,t={})=>{var V,b,B;const{i18n:n}=t,{i18n:a,defaultNS:r}=v.useContext(e1)||{},l=n||a||Z3();l&&!l.reportNamespaces&&(l.reportNamespaces=new G3),l||Hy(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=v.useMemo(()=>{var M;return{...D3(),...(M=l==null?void 0:l.options)==null?void 0:M.react,...t}},[l,t]),{useSuspense:i,keyPrefix:s}=o,p=r||((V=l==null?void 0:l.options)==null?void 0:V.defaultNS),u=xl(p)?[p]:p||["translation"],c=v.useMemo(()=>u,u);(B=(b=l==null?void 0:l.reportNamespaces)==null?void 0:b.addUsedNamespaces)==null||B.call(b,c);const d=v.useRef(0),f=v.useCallback(M=>{if(!l)return i7;const{bindI18n:F,bindI18nStore:z}=o,T=()=>{d.current+=1,M()};return F&&l.on(F,T),z&&l.store.on(z,T),()=>{F&&F.split(" ").forEach(j=>l.off(j,T)),z&&z.split(" ").forEach(j=>l.store.off(j,T))}},[l,o]),W=v.useRef(),m=v.useCallback(()=>{if(!l)return o7;const M=!!(l.isInitialized||l.initializedStoreOnce)&&c.every(L=>j3(L,l,o)),F=t.lng||l.language,z=d.current,T=W.current;if(T&&T.ready===M&&T.lng===F&&T.keyPrefix===s&&T.revision===z)return T;const P={t:l.getFixedT(F,o.nsMode==="fallback"?c:c[0],s),ready:M,lng:F,keyPrefix:s,revision:z};return W.current=P,P},[l,c,s,o,t.lng]),[x,h]=v.useState(0),{t:g,ready:C}=l7.useSyncExternalStore(f,m,m);v.useEffect(()=>{if(l&&!C&&!i){const M=()=>h(F=>F+1);t.lng?_y(l,t.lng,c,M):aW(l,c,M)}},[l,t.lng,c,C,i,x]);const y=l||{},E=v.useRef(null),S=v.useRef(),k=M=>{const F=Object.getOwnPropertyDescriptors(M);F.__original&&delete F.__original;const z=Object.create(Object.getPrototypeOf(M),F);if(!Object.prototype.hasOwnProperty.call(z,"__original"))try{Object.defineProperty(z,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return z},R=v.useMemo(()=>{const M=y,F=M==null?void 0:M.language;let z=M;M&&(E.current&&E.current.__original===M?S.current!==F?(z=k(M),E.current=z,S.current=F):z=E.current:(z=k(M),E.current=z,S.current=F));const T=[g,z,C];return T.t=g,T.i18n=z,T.ready=C,T},[g,y,C,y.resolvedLanguage,y.language,y.languages]);if(l&&i&&!C)throw new Promise(M=>{const F=()=>M();t.lng?_y(l,t.lng,c,F):aW(l,c,F)});return R};function s7({i18n:e,defaultNS:t,children:n}){const a=v.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return v.createElement(e1.Provider,{value:a},n)}const ls={black:"#000",white:"#fff"},wo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ro={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Bo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Lo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Mo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},os={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},p7={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"};function hr(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 u7=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),Qo="$$material";function se(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}var c7=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,A7=Ay(function(e){return c7.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),d7=A7,f7=function(t){return t!=="theme"},a1=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?d7:f7},r1=function(t,n,a){var r;if(n){var l=n.shouldForwardProp;r=t.__emotion_forwardProp&&l?function(o){return t.__emotion_forwardProp(o)&&l(o)}:l}return typeof r!="function"&&a&&(r=t.__emotion_forwardProp),r},W7=function(t){var n=t.cache,a=t.serialized,r=t.isStringTag;return Df(n,a,r),Ey(function(){return Yf(n,a,r)}),null},g7=function e(t,n){var a=t.__emotion_real===t,r=a&&t.__emotion_base||t,l,o;n!==void 0&&(l=n.label,o=n.target);var i=r1(t,n,a),s=i||a1(r),p=!s("as");return function(){var u=arguments,c=a&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&c.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{var d=u[0];c.push(d[0]);for(var f=u.length,W=1;W<f;W++)c.push(u[W],d[W])}var m=Nf(function(x,h,g){var C=p&&x.as||r,y="",E=[],S=x;if(x.theme==null){S={};for(var k in x)S[k]=x[k];S.theme=v.useContext(Eo)}typeof x.className=="string"?y=Cy(h.registered,E,x.className):x.className!=null&&(y=x.className+" ");var R=es(c.concat(E),h.registered,S);y+=h.key+"-"+R.name,o!==void 0&&(y+=" "+o);var V=p&&i===void 0?a1(C):s,b={};for(var B in x)p&&B==="as"||V(B)&&(b[B]=x[B]);return b.className=y,g&&(b.ref=g),v.createElement(v.Fragment,null,v.createElement(W7,{cache:h,serialized:R,isStringTag:typeof C=="string"}),v.createElement(C,b))});return m.displayName=l!==void 0?l:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=r,m.__emotion_styles=c,m.__emotion_forwardProp=i,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(x,h){var g=e(x,I({},n,h,{shouldForwardProp:r1(m,h,!0)}));return g.apply(void 0,c)},m}},h7=["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"],oW=g7.bind(null);h7.forEach(function(e){oW[e]=oW(e)});function m7(e,t){const n=wu({key:"css",prepend:e});if(t){const a=n.insert;n.insert=(...r)=>(r[1].styles.match(/^@layer\s+[^{]*$/)||(r[1].styles=`@layer mui {${r[1].styles}}`),a(...r))}return n}const iW=new Map;function C7(e){const{injectFirst:t,enableCssLayer:n,children:a}=e,r=v.useMemo(()=>{const l=`${t}-${n}`;if(typeof document=="object"&&iW.has(l))return iW.get(l);const o=m7(t,n);return iW.set(l,o),o},[t,n]);return t||n?A.jsx(wy,{value:r,children:a}):a}function v7(e){return e==null||Object.keys(e).length===0}function l1(e){const{styles:t,defaultTheme:n={}}=e,a=typeof t=="function"?r=>t(v7(r)?n:r):t;return A.jsx(W3,{styles:a})}function sW(e,t){return oW(e,t)}const o1=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},i1=[];function Ju(e){return i1[0]=e,es(i1)}const y7=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:l1,StyledEngineProvider:C7,ThemeContext:Eo,css:bo,default:sW,internal_processStyles:o1,internal_serializeStyles:Ju,keyframes:Gr},Symbol.toStringTag,{value:"Module"}));function mr(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 s1(e){if(v.isValidElement(e)||!mr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=s1(e[n])}),t}function mn(e,t,n={clone:!0}){const a=n.clone?I({},e):e;return mr(e)&&mr(t)&&Object.keys(t).forEach(r=>{v.isValidElement(t[r])?a[r]=t[r]:mr(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&mr(e[r])?a[r]=mn(e[r],t[r],n):n.clone?a[r]=mr(t[r])?s1(t[r]):t[r]:a[r]=t[r]}),a}const S7=Object.freeze(Object.defineProperty({__proto__:null,default:mn,isPlainObject:mr},Symbol.toStringTag,{value:"Module"})),I7=["values","unit","step"],x7=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,a)=>n.val-a.val),t.reduce((n,a)=>I({},n,{[a.key]:a.val}),{})};function p1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,r=se(e,I7),l=x7(t),o=Object.keys(l);function i(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function s(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-a/100}${n})`}function p(d,f){const W=o.indexOf(f);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(W!==-1&&typeof t[o[W]]=="number"?t[o[W]]:f)-a/100}${n})`}function u(d){return o.indexOf(d)+1<o.length?p(d,o[o.indexOf(d)+1]):i(d)}function c(d){const f=o.indexOf(d);return f===0?i(o[1]):f===o.length-1?s(o[f]):p(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return I({keys:o,values:l,up:i,down:s,between:p,only:u,not:c,unit:n},r)}const E7={borderRadius:4};function is(e,t){return t?mn(e,t,{clone:!1}):e}const pW={xs:0,sm:600,md:900,lg:1200,xl:1536},u1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pW[e]}px)`};function Rn(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const l=a.breakpoints||u1;return t.reduce((o,i,s)=>(o[l.up(l.keys[s])]=n(t[s]),o),{})}if(typeof t=="object"){const l=a.breakpoints||u1;return Object.keys(t).reduce((o,i)=>{if(Object.keys(l.values||pW).indexOf(i)!==-1){const s=l.up(i);o[s]=n(t[i],i)}else{const s=i;o[s]=t[s]}return o},{})}return n(t)}function c1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((a,r)=>{const l=e.up(r);return a[l]={},a},{}))||{}}function uW(e,t){return e.reduce((n,a)=>{const r=n[a];return(!r||Object.keys(r).length===0)&&delete n[a],n},t)}function b7(e,...t){const n=c1(e),a=[n,...t].reduce((r,l)=>mn(r,l),{});return uW(Object.keys(n),a)}function k7(e,t){if(typeof e!="object")return{};const n={},a=Object.keys(t);return Array.isArray(e)?a.forEach((r,l)=>{l<e.length&&(n[r]=!0)}):a.forEach(r=>{e[r]!=null&&(n[r]=!0)}),n}function El({values:e,breakpoints:t,base:n}){const a=n||k7(e,t),r=Object.keys(a);if(r.length===0)return e;let l;return r.reduce((o,i,s)=>(Array.isArray(e)?(o[i]=e[s]!=null?e[s]:e[l],l=s):typeof e=="object"?(o[i]=e[i]!=null?e[i]:e[l],l=i):o[i]=e,o),{})}function $(e){if(typeof e!="string")throw new Error(hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const w7=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"}));function Du(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const a=`vars.${t}`.split(".").reduce((r,l)=>r&&r[l]?r[l]:null,e);if(a!=null)return a}return t.split(".").reduce((a,r)=>a&&a[r]!=null?a[r]:null,e)}function Yu(e,t,n,a=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||a:r=Du(e,n)||a,t&&(r=t(r,a,e)),r}function qt(e){const{prop:t,cssProperty:n=e.prop,themeKey:a,transform:r}=e,l=o=>{if(o[t]==null)return null;const i=o[t],s=o.theme,p=Du(s,a)||{};return Rn(o,i,c=>{let d=Yu(p,r,c);return c===d&&typeof c=="string"&&(d=Yu(p,r,`${t}${c==="default"?"":$(c)}`,c)),n===!1?d:{[n]:d}})};return l.propTypes={},l.filterProps=[t],l}function R7(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const B7={m:"margin",p:"padding"},L7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},A1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},M7=R7(e=>{if(e.length>2)if(A1[e])e=A1[e];else return[e];const[t,n]=e.split(""),a=B7[t],r=L7[n]||"";return Array.isArray(r)?r.map(l=>a+l):[a+r]}),cW=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],AW=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...cW,...AW];function ss(e,t,n,a){var r;const l=(r=Du(e,t,!1))!=null?r:n;return typeof l=="number"?o=>typeof o=="string"?o:l*o:Array.isArray(l)?o=>typeof o=="string"?o:l[o]:typeof l=="function"?l:()=>{}}function dW(e){return ss(e,"spacing",8)}function bl(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),a=e(n);return t>=0?a:typeof a=="number"?-a:`-${a}`}function Q7(e,t){return n=>e.reduce((a,r)=>(a[r]=bl(t,n),a),{})}function V7(e,t,n,a){if(t.indexOf(n)===-1)return null;const r=M7(n),l=Q7(r,a),o=e[n];return Rn(e,o,l)}function d1(e,t){const n=dW(e.theme);return Object.keys(e).map(a=>V7(e,t,a,n)).reduce(is,{})}function Vt(e){return d1(e,cW)}Vt.propTypes={},Vt.filterProps=cW;function Ut(e){return d1(e,AW)}Ut.propTypes={},Ut.filterProps=AW;function U7(e=8){if(e.mui)return e;const t=dW({spacing:e}),n=(...a)=>(a.length===0?[1]:a).map(l=>{const o=t(l);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function Zu(...e){const t=e.reduce((a,r)=>(r.filterProps.forEach(l=>{a[l]=r}),a),{}),n=a=>Object.keys(a).reduce((r,l)=>t[l]?is(r,t[l](a)):r,{});return n.propTypes={},n.filterProps=e.reduce((a,r)=>a.concat(r.filterProps),[]),n}function ua(e){return typeof e!="number"?e:`${e}px solid`}function ca(e,t){return qt({prop:e,themeKey:"borders",transform:t})}const F7=ca("border",ua),z7=ca("borderTop",ua),q7=ca("borderRight",ua),j7=ca("borderBottom",ua),T7=ca("borderLeft",ua),O7=ca("borderColor"),K7=ca("borderTopColor"),P7=ca("borderRightColor"),J7=ca("borderBottomColor"),D7=ca("borderLeftColor"),Y7=ca("outline",ua),Z7=ca("outlineColor"),Nu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ss(e.theme,"shape.borderRadius",4),n=a=>({borderRadius:bl(t,a)});return Rn(e,e.borderRadius,n)}return null};Nu.propTypes={},Nu.filterProps=["borderRadius"],Zu(F7,z7,q7,j7,T7,O7,K7,P7,J7,D7,Nu,Y7,Z7);const Gu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ss(e.theme,"spacing",8),n=a=>({gap:bl(t,a)});return Rn(e,e.gap,n)}return null};Gu.propTypes={},Gu.filterProps=["gap"];const Hu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ss(e.theme,"spacing",8),n=a=>({columnGap:bl(t,a)});return Rn(e,e.columnGap,n)}return null};Hu.propTypes={},Hu.filterProps=["columnGap"];const Xu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ss(e.theme,"spacing",8),n=a=>({rowGap:bl(t,a)});return Rn(e,e.rowGap,n)}return null};Xu.propTypes={},Xu.filterProps=["rowGap"];const N7=qt({prop:"gridColumn"}),G7=qt({prop:"gridRow"}),H7=qt({prop:"gridAutoFlow"}),X7=qt({prop:"gridAutoColumns"}),_7=qt({prop:"gridAutoRows"}),$7=qt({prop:"gridTemplateColumns"}),e2=qt({prop:"gridTemplateRows"}),t2=qt({prop:"gridTemplateAreas"}),n2=qt({prop:"gridArea"});Zu(Gu,Hu,Xu,N7,G7,H7,X7,_7,$7,e2,t2,n2);function Vo(e,t){return t==="grey"?t:e}const a2=qt({prop:"color",themeKey:"palette",transform:Vo}),r2=qt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vo}),l2=qt({prop:"backgroundColor",themeKey:"palette",transform:Vo});Zu(a2,r2,l2);function Gn(e){return e<=1&&e!==0?`${e*100}%`:e}const o2=qt({prop:"width",transform:Gn}),fW=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,r;const l=((a=e.theme)==null||(a=a.breakpoints)==null||(a=a.values)==null?void 0:a[n])||pW[n];return l?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${l}${e.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:Gn(n)}};return Rn(e,e.maxWidth,t)}return null};fW.filterProps=["maxWidth"];const i2=qt({prop:"minWidth",transform:Gn}),s2=qt({prop:"height",transform:Gn}),p2=qt({prop:"maxHeight",transform:Gn}),u2=qt({prop:"minHeight",transform:Gn});qt({prop:"size",cssProperty:"width",transform:Gn}),qt({prop:"size",cssProperty:"height",transform:Gn});const c2=qt({prop:"boxSizing"});Zu(o2,fW,i2,s2,p2,u2,c2);const ps={border:{themeKey:"borders",transform:ua},borderTop:{themeKey:"borders",transform:ua},borderRight:{themeKey:"borders",transform:ua},borderBottom:{themeKey:"borders",transform:ua},borderLeft:{themeKey:"borders",transform:ua},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ua},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nu},color:{themeKey:"palette",transform:Vo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vo},backgroundColor:{themeKey:"palette",transform:Vo},p:{style:Ut},pt:{style:Ut},pr:{style:Ut},pb:{style:Ut},pl:{style:Ut},px:{style:Ut},py:{style:Ut},padding:{style:Ut},paddingTop:{style:Ut},paddingRight:{style:Ut},paddingBottom:{style:Ut},paddingLeft:{style:Ut},paddingX:{style:Ut},paddingY:{style:Ut},paddingInline:{style:Ut},paddingInlineStart:{style:Ut},paddingInlineEnd:{style:Ut},paddingBlock:{style:Ut},paddingBlockStart:{style:Ut},paddingBlockEnd:{style:Ut},m:{style:Vt},mt:{style:Vt},mr:{style:Vt},mb:{style:Vt},ml:{style:Vt},mx:{style:Vt},my:{style:Vt},margin:{style:Vt},marginTop:{style:Vt},marginRight:{style:Vt},marginBottom:{style:Vt},marginLeft:{style:Vt},marginX:{style:Vt},marginY:{style:Vt},marginInline:{style:Vt},marginInlineStart:{style:Vt},marginInlineEnd:{style:Vt},marginBlock:{style:Vt},marginBlockStart:{style:Vt},marginBlockEnd:{style:Vt},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:Gu},rowGap:{style:Xu},columnGap:{style:Hu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gn},maxWidth:{style:fW},minWidth:{transform:Gn},height:{transform:Gn},maxHeight:{transform:Gn},minHeight:{transform:Gn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function A2(...e){const t=e.reduce((a,r)=>a.concat(Object.keys(r)),[]),n=new Set(t);return e.every(a=>n.size===Object.keys(a).length)}function d2(e,t){return typeof e=="function"?e(t):e}function f1(){function e(n,a,r,l){const o={[n]:a,theme:r},i=l[n];if(!i)return{[n]:a};const{cssProperty:s=n,themeKey:p,transform:u,style:c}=i;if(a==null)return null;if(p==="typography"&&a==="inherit")return{[n]:a};const d=Du(r,p)||{};return c?c(o):Rn(o,a,W=>{let m=Yu(d,u,W);return W===m&&typeof W=="string"&&(m=Yu(d,u,`${n}${W==="default"?"":$(W)}`,W)),s===!1?m:{[s]:m}})}function t(n){var a;const{sx:r,theme:l={},nested:o}=n||{};if(!r)return null;const i=(a=l.unstable_sxConfig)!=null?a:ps;function s(p){let u=p;if(typeof p=="function")u=p(l);else if(typeof p!="object")return p;if(!u)return null;const c=c1(l.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(W=>{const m=d2(u[W],l);if(m!=null)if(typeof m=="object")if(i[W])f=is(f,e(W,m,l,i));else{const x=Rn({theme:l},m,h=>({[W]:h}));A2(x,m)?f[W]=t({sx:m,theme:l,nested:!0}):f=is(f,x)}else f=is(f,e(W,m,l,i))}),!o&&l.modularCssLayers?{"@layer sx":uW(d,f)}:uW(d,f)}return Array.isArray(r)?r.map(s):s(r)}return t}const Uo=f1();Uo.filterProps=["sx"];function W1(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 f2=["breakpoints","palette","spacing","shape"];function us(e={},...t){const{breakpoints:n={},palette:a={},spacing:r,shape:l={}}=e,o=se(e,f2),i=p1(n),s=U7(r);let p=mn({breakpoints:i,direction:"ltr",components:{},palette:I({mode:"light"},a),spacing:s,shape:I({},E7,l)},o);return p.applyStyles=W1,p=t.reduce((u,c)=>mn(u,c),p),p.unstable_sxConfig=I({},ps,o==null?void 0:o.unstable_sxConfig),p.unstable_sx=function(c){return Uo({sx:c,theme:this})},p}const W2=Object.freeze(Object.defineProperty({__proto__:null,default:us,private_createBreakpoints:p1,unstable_applyStyles:W1},Symbol.toStringTag,{value:"Module"}));function g2(e){return Object.keys(e).length===0}function _u(e=null){const t=v.useContext(Eo);return!t||g2(t)?e:t}const h2=us();function $u(e=h2){return _u(e)}function WW(e){const t=Ju(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function g1({styles:e,themeId:t,defaultTheme:n={}}){const a=$u(n),r=t&&a[t]||a;let l=typeof e=="function"?e(r):e;return r.modularCssLayers&&(Array.isArray(l)?l=l.map(o=>WW(typeof o=="function"?o(r):o)):l=WW(l)),A.jsx(l1,{styles:l})}const m2=["sx"],C2=e=>{var t,n;const a={systemProps:{},otherProps:{}},r=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ps;return Object.keys(e).forEach(l=>{r[l]?a.systemProps[l]=e[l]:a.otherProps[l]=e[l]}),a};function cs(e){const{sx:t}=e,n=se(e,m2),{systemProps:a,otherProps:r}=C2(n);let l;return Array.isArray(t)?l=[a,...t]:typeof t=="function"?l=(...o)=>{const i=t(...o);return mr(i)?I({},a,i):a}:l=I({},a,t),I({},r,{sx:l})}const v2=Object.freeze(Object.defineProperty({__proto__:null,default:Uo,extendSxProp:cs,unstable_createStyleFunctionSx:f1,unstable_defaultSxConfig:ps},Symbol.toStringTag,{value:"Module"})),h1=e=>e,gW=(()=>{let e=h1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=h1}}})();function m1(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=m1(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Ae(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=m1(e))&&(a&&(a+=" "),a+=t);return a}const y2=["className","component"];function S2(e={}){const{themeId:t,defaultTheme:n,defaultClassName:a="MuiBox-root",generateClassName:r}=e,l=sW("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(Uo);return v.forwardRef(function(s,p){const u=$u(n),c=cs(s),{className:d,component:f="div"}=c,W=se(c,y2);return A.jsx(l,I({as:f,ref:p,className:Ae(d,r?r(a):a),theme:t&&u[t]||u},W))})}const I2={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 ke(e,t,n="Mui"){const a=I2[t];return a?`${n}-${a}`:`${gW.generate(e)}-${t}`}function we(e,t,n="Mui"){const a={};return t.forEach(r=>{a[r]=ke(e,r,n)}),a}var C1={exports:{}},Wt={};/**
73
+ */var ko=v;function H3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var X3=typeof Object.is=="function"?Object.is:H3,_3=ko.useState,$3=ko.useEffect,e7=ko.useLayoutEffect,t7=ko.useDebugValue;function n7(e,t){var n=t(),a=_3({inst:{value:n,getSnapshot:t}}),r=a[0].inst,l=a[1];return e7(function(){r.value=n,r.getSnapshot=t,lW(r)&&l({inst:r})},[e,n,t]),$3(function(){return lW(r)&&l({inst:r}),e(function(){lW(r)&&l({inst:r})})},[e]),t7(n),n}function lW(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!X3(e,n)}catch{return!0}}function a7(e,t){return t()}var r7=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a7:n7;n1.useSyncExternalStore=ko.useSyncExternalStore!==void 0?ko.useSyncExternalStore:r7,t1.exports=n1;var l7=t1.exports;const o7={t:(e,t)=>xl(t)?t:T3(t)&&xl(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},i7=()=>()=>{},Nn=(e,t={})=>{var V,b,B;const{i18n:n}=t,{i18n:a,defaultNS:r}=v.useContext(e1)||{},l=n||a||Z3();l&&!l.reportNamespaces&&(l.reportNamespaces=new G3),l||Hy(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=v.useMemo(()=>{var M;return{...D3(),...(M=l==null?void 0:l.options)==null?void 0:M.react,...t}},[l,t]),{useSuspense:i,keyPrefix:s}=o,p=r||((V=l==null?void 0:l.options)==null?void 0:V.defaultNS),u=xl(p)?[p]:p||["translation"],c=v.useMemo(()=>u,u);(B=(b=l==null?void 0:l.reportNamespaces)==null?void 0:b.addUsedNamespaces)==null||B.call(b,c);const d=v.useRef(0),f=v.useCallback(M=>{if(!l)return i7;const{bindI18n:F,bindI18nStore:z}=o,T=()=>{d.current+=1,M()};return F&&l.on(F,T),z&&l.store.on(z,T),()=>{F&&F.split(" ").forEach(j=>l.off(j,T)),z&&z.split(" ").forEach(j=>l.store.off(j,T))}},[l,o]),W=v.useRef(),m=v.useCallback(()=>{if(!l)return o7;const M=!!(l.isInitialized||l.initializedStoreOnce)&&c.every(L=>j3(L,l,o)),F=t.lng||l.language,z=d.current,T=W.current;if(T&&T.ready===M&&T.lng===F&&T.keyPrefix===s&&T.revision===z)return T;const P={t:l.getFixedT(F,o.nsMode==="fallback"?c:c[0],s),ready:M,lng:F,keyPrefix:s,revision:z};return W.current=P,P},[l,c,s,o,t.lng]),[x,h]=v.useState(0),{t:g,ready:C}=l7.useSyncExternalStore(f,m,m);v.useEffect(()=>{if(l&&!C&&!i){const M=()=>h(F=>F+1);t.lng?_y(l,t.lng,c,M):aW(l,c,M)}},[l,t.lng,c,C,i,x]);const y=l||{},E=v.useRef(null),S=v.useRef(),k=M=>{const F=Object.getOwnPropertyDescriptors(M);F.__original&&delete F.__original;const z=Object.create(Object.getPrototypeOf(M),F);if(!Object.prototype.hasOwnProperty.call(z,"__original"))try{Object.defineProperty(z,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return z},R=v.useMemo(()=>{const M=y,F=M==null?void 0:M.language;let z=M;M&&(E.current&&E.current.__original===M?S.current!==F?(z=k(M),E.current=z,S.current=F):z=E.current:(z=k(M),E.current=z,S.current=F));const T=[g,z,C];return T.t=g,T.i18n=z,T.ready=C,T},[g,y,C,y.resolvedLanguage,y.language,y.languages]);if(l&&i&&!C)throw new Promise(M=>{const F=()=>M();t.lng?_y(l,t.lng,c,F):aW(l,c,F)});return R};function s7({i18n:e,defaultNS:t,children:n}){const a=v.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return v.createElement(e1.Provider,{value:a},n)}const ls={black:"#000",white:"#fff"},wo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ro={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Bo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Lo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Mo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},os={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},p7={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"};function hr(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 u7=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),Qo="$$material";function se(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}var c7=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,A7=Ay(function(e){return c7.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),d7=A7,f7=function(t){return t!=="theme"},a1=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?d7:f7},r1=function(t,n,a){var r;if(n){var l=n.shouldForwardProp;r=t.__emotion_forwardProp&&l?function(o){return t.__emotion_forwardProp(o)&&l(o)}:l}return typeof r!="function"&&a&&(r=t.__emotion_forwardProp),r},W7=function(t){var n=t.cache,a=t.serialized,r=t.isStringTag;return Df(n,a,r),Ey(function(){return Yf(n,a,r)}),null},g7=function e(t,n){var a=t.__emotion_real===t,r=a&&t.__emotion_base||t,l,o;n!==void 0&&(l=n.label,o=n.target);var i=r1(t,n,a),s=i||a1(r),p=!s("as");return function(){var u=arguments,c=a&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&c.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{var d=u[0];c.push(d[0]);for(var f=u.length,W=1;W<f;W++)c.push(u[W],d[W])}var m=Nf(function(x,h,g){var C=p&&x.as||r,y="",E=[],S=x;if(x.theme==null){S={};for(var k in x)S[k]=x[k];S.theme=v.useContext(Eo)}typeof x.className=="string"?y=Cy(h.registered,E,x.className):x.className!=null&&(y=x.className+" ");var R=es(c.concat(E),h.registered,S);y+=h.key+"-"+R.name,o!==void 0&&(y+=" "+o);var V=p&&i===void 0?a1(C):s,b={};for(var B in x)p&&B==="as"||V(B)&&(b[B]=x[B]);return b.className=y,g&&(b.ref=g),v.createElement(v.Fragment,null,v.createElement(W7,{cache:h,serialized:R,isStringTag:typeof C=="string"}),v.createElement(C,b))});return m.displayName=l!==void 0?l:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=r,m.__emotion_styles=c,m.__emotion_forwardProp=i,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(x,h){var g=e(x,I({},n,h,{shouldForwardProp:r1(m,h,!0)}));return g.apply(void 0,c)},m}},h7=["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"],oW=g7.bind(null);h7.forEach(function(e){oW[e]=oW(e)});function m7(e,t){const n=wu({key:"css",prepend:e});if(t){const a=n.insert;n.insert=(...r)=>(r[1].styles.match(/^@layer\s+[^{]*$/)||(r[1].styles=`@layer mui {${r[1].styles}}`),a(...r))}return n}const iW=new Map;function C7(e){const{injectFirst:t,enableCssLayer:n,children:a}=e,r=v.useMemo(()=>{const l=`${t}-${n}`;if(typeof document=="object"&&iW.has(l))return iW.get(l);const o=m7(t,n);return iW.set(l,o),o},[t,n]);return t||n?A.jsx(wy,{value:r,children:a}):a}function v7(e){return e==null||Object.keys(e).length===0}function l1(e){const{styles:t,defaultTheme:n={}}=e,a=typeof t=="function"?r=>t(v7(r)?n:r):t;return A.jsx(W3,{styles:a})}function sW(e,t){return oW(e,t)}const o1=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},i1=[];function Ju(e){return i1[0]=e,es(i1)}const y7=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:l1,StyledEngineProvider:C7,ThemeContext:Eo,css:bo,default:sW,internal_processStyles:o1,internal_serializeStyles:Ju,keyframes:Gr},Symbol.toStringTag,{value:"Module"}));function mr(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 s1(e){if(v.isValidElement(e)||!mr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=s1(e[n])}),t}function mn(e,t,n={clone:!0}){const a=n.clone?I({},e):e;return mr(e)&&mr(t)&&Object.keys(t).forEach(r=>{v.isValidElement(t[r])?a[r]=t[r]:mr(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&mr(e[r])?a[r]=mn(e[r],t[r],n):n.clone?a[r]=mr(t[r])?s1(t[r]):t[r]:a[r]=t[r]}),a}const S7=Object.freeze(Object.defineProperty({__proto__:null,default:mn,isPlainObject:mr},Symbol.toStringTag,{value:"Module"})),I7=["values","unit","step"],x7=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,a)=>n.val-a.val),t.reduce((n,a)=>I({},n,{[a.key]:a.val}),{})};function p1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,r=se(e,I7),l=x7(t),o=Object.keys(l);function i(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function s(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-a/100}${n})`}function p(d,f){const W=o.indexOf(f);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(W!==-1&&typeof t[o[W]]=="number"?t[o[W]]:f)-a/100}${n})`}function u(d){return o.indexOf(d)+1<o.length?p(d,o[o.indexOf(d)+1]):i(d)}function c(d){const f=o.indexOf(d);return f===0?i(o[1]):f===o.length-1?s(o[f]):p(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return I({keys:o,values:l,up:i,down:s,between:p,only:u,not:c,unit:n},r)}const E7={borderRadius:4};function is(e,t){return t?mn(e,t,{clone:!1}):e}const pW={xs:0,sm:600,md:900,lg:1200,xl:1536},u1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pW[e]}px)`};function Rn(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const l=a.breakpoints||u1;return t.reduce((o,i,s)=>(o[l.up(l.keys[s])]=n(t[s]),o),{})}if(typeof t=="object"){const l=a.breakpoints||u1;return Object.keys(t).reduce((o,i)=>{if(Object.keys(l.values||pW).indexOf(i)!==-1){const s=l.up(i);o[s]=n(t[i],i)}else{const s=i;o[s]=t[s]}return o},{})}return n(t)}function c1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((a,r)=>{const l=e.up(r);return a[l]={},a},{}))||{}}function uW(e,t){return e.reduce((n,a)=>{const r=n[a];return(!r||Object.keys(r).length===0)&&delete n[a],n},t)}function b7(e,...t){const n=c1(e),a=[n,...t].reduce((r,l)=>mn(r,l),{});return uW(Object.keys(n),a)}function k7(e,t){if(typeof e!="object")return{};const n={},a=Object.keys(t);return Array.isArray(e)?a.forEach((r,l)=>{l<e.length&&(n[r]=!0)}):a.forEach(r=>{e[r]!=null&&(n[r]=!0)}),n}function El({values:e,breakpoints:t,base:n}){const a=n||k7(e,t),r=Object.keys(a);if(r.length===0)return e;let l;return r.reduce((o,i,s)=>(Array.isArray(e)?(o[i]=e[s]!=null?e[s]:e[l],l=s):typeof e=="object"?(o[i]=e[i]!=null?e[i]:e[l],l=i):o[i]=e,o),{})}function ee(e){if(typeof e!="string")throw new Error(hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const w7=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));function Du(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const a=`vars.${t}`.split(".").reduce((r,l)=>r&&r[l]?r[l]:null,e);if(a!=null)return a}return t.split(".").reduce((a,r)=>a&&a[r]!=null?a[r]:null,e)}function Yu(e,t,n,a=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||a:r=Du(e,n)||a,t&&(r=t(r,a,e)),r}function qt(e){const{prop:t,cssProperty:n=e.prop,themeKey:a,transform:r}=e,l=o=>{if(o[t]==null)return null;const i=o[t],s=o.theme,p=Du(s,a)||{};return Rn(o,i,c=>{let d=Yu(p,r,c);return c===d&&typeof c=="string"&&(d=Yu(p,r,`${t}${c==="default"?"":ee(c)}`,c)),n===!1?d:{[n]:d}})};return l.propTypes={},l.filterProps=[t],l}function R7(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const B7={m:"margin",p:"padding"},L7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},A1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},M7=R7(e=>{if(e.length>2)if(A1[e])e=A1[e];else return[e];const[t,n]=e.split(""),a=B7[t],r=L7[n]||"";return Array.isArray(r)?r.map(l=>a+l):[a+r]}),cW=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],AW=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...cW,...AW];function ss(e,t,n,a){var r;const l=(r=Du(e,t,!1))!=null?r:n;return typeof l=="number"?o=>typeof o=="string"?o:l*o:Array.isArray(l)?o=>typeof o=="string"?o:l[o]:typeof l=="function"?l:()=>{}}function dW(e){return ss(e,"spacing",8)}function bl(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),a=e(n);return t>=0?a:typeof a=="number"?-a:`-${a}`}function Q7(e,t){return n=>e.reduce((a,r)=>(a[r]=bl(t,n),a),{})}function V7(e,t,n,a){if(t.indexOf(n)===-1)return null;const r=M7(n),l=Q7(r,a),o=e[n];return Rn(e,o,l)}function d1(e,t){const n=dW(e.theme);return Object.keys(e).map(a=>V7(e,t,a,n)).reduce(is,{})}function Vt(e){return d1(e,cW)}Vt.propTypes={},Vt.filterProps=cW;function Ut(e){return d1(e,AW)}Ut.propTypes={},Ut.filterProps=AW;function U7(e=8){if(e.mui)return e;const t=dW({spacing:e}),n=(...a)=>(a.length===0?[1]:a).map(l=>{const o=t(l);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function Zu(...e){const t=e.reduce((a,r)=>(r.filterProps.forEach(l=>{a[l]=r}),a),{}),n=a=>Object.keys(a).reduce((r,l)=>t[l]?is(r,t[l](a)):r,{});return n.propTypes={},n.filterProps=e.reduce((a,r)=>a.concat(r.filterProps),[]),n}function ua(e){return typeof e!="number"?e:`${e}px solid`}function ca(e,t){return qt({prop:e,themeKey:"borders",transform:t})}const F7=ca("border",ua),z7=ca("borderTop",ua),q7=ca("borderRight",ua),j7=ca("borderBottom",ua),T7=ca("borderLeft",ua),O7=ca("borderColor"),K7=ca("borderTopColor"),P7=ca("borderRightColor"),J7=ca("borderBottomColor"),D7=ca("borderLeftColor"),Y7=ca("outline",ua),Z7=ca("outlineColor"),Nu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ss(e.theme,"shape.borderRadius",4),n=a=>({borderRadius:bl(t,a)});return Rn(e,e.borderRadius,n)}return null};Nu.propTypes={},Nu.filterProps=["borderRadius"],Zu(F7,z7,q7,j7,T7,O7,K7,P7,J7,D7,Nu,Y7,Z7);const Gu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ss(e.theme,"spacing",8),n=a=>({gap:bl(t,a)});return Rn(e,e.gap,n)}return null};Gu.propTypes={},Gu.filterProps=["gap"];const Hu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ss(e.theme,"spacing",8),n=a=>({columnGap:bl(t,a)});return Rn(e,e.columnGap,n)}return null};Hu.propTypes={},Hu.filterProps=["columnGap"];const Xu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ss(e.theme,"spacing",8),n=a=>({rowGap:bl(t,a)});return Rn(e,e.rowGap,n)}return null};Xu.propTypes={},Xu.filterProps=["rowGap"];const N7=qt({prop:"gridColumn"}),G7=qt({prop:"gridRow"}),H7=qt({prop:"gridAutoFlow"}),X7=qt({prop:"gridAutoColumns"}),_7=qt({prop:"gridAutoRows"}),$7=qt({prop:"gridTemplateColumns"}),e2=qt({prop:"gridTemplateRows"}),t2=qt({prop:"gridTemplateAreas"}),n2=qt({prop:"gridArea"});Zu(Gu,Hu,Xu,N7,G7,H7,X7,_7,$7,e2,t2,n2);function Vo(e,t){return t==="grey"?t:e}const a2=qt({prop:"color",themeKey:"palette",transform:Vo}),r2=qt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vo}),l2=qt({prop:"backgroundColor",themeKey:"palette",transform:Vo});Zu(a2,r2,l2);function Gn(e){return e<=1&&e!==0?`${e*100}%`:e}const o2=qt({prop:"width",transform:Gn}),fW=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,r;const l=((a=e.theme)==null||(a=a.breakpoints)==null||(a=a.values)==null?void 0:a[n])||pW[n];return l?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${l}${e.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:Gn(n)}};return Rn(e,e.maxWidth,t)}return null};fW.filterProps=["maxWidth"];const i2=qt({prop:"minWidth",transform:Gn}),s2=qt({prop:"height",transform:Gn}),p2=qt({prop:"maxHeight",transform:Gn}),u2=qt({prop:"minHeight",transform:Gn});qt({prop:"size",cssProperty:"width",transform:Gn}),qt({prop:"size",cssProperty:"height",transform:Gn});const c2=qt({prop:"boxSizing"});Zu(o2,fW,i2,s2,p2,u2,c2);const ps={border:{themeKey:"borders",transform:ua},borderTop:{themeKey:"borders",transform:ua},borderRight:{themeKey:"borders",transform:ua},borderBottom:{themeKey:"borders",transform:ua},borderLeft:{themeKey:"borders",transform:ua},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ua},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nu},color:{themeKey:"palette",transform:Vo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vo},backgroundColor:{themeKey:"palette",transform:Vo},p:{style:Ut},pt:{style:Ut},pr:{style:Ut},pb:{style:Ut},pl:{style:Ut},px:{style:Ut},py:{style:Ut},padding:{style:Ut},paddingTop:{style:Ut},paddingRight:{style:Ut},paddingBottom:{style:Ut},paddingLeft:{style:Ut},paddingX:{style:Ut},paddingY:{style:Ut},paddingInline:{style:Ut},paddingInlineStart:{style:Ut},paddingInlineEnd:{style:Ut},paddingBlock:{style:Ut},paddingBlockStart:{style:Ut},paddingBlockEnd:{style:Ut},m:{style:Vt},mt:{style:Vt},mr:{style:Vt},mb:{style:Vt},ml:{style:Vt},mx:{style:Vt},my:{style:Vt},margin:{style:Vt},marginTop:{style:Vt},marginRight:{style:Vt},marginBottom:{style:Vt},marginLeft:{style:Vt},marginX:{style:Vt},marginY:{style:Vt},marginInline:{style:Vt},marginInlineStart:{style:Vt},marginInlineEnd:{style:Vt},marginBlock:{style:Vt},marginBlockStart:{style:Vt},marginBlockEnd:{style:Vt},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:Gu},rowGap:{style:Xu},columnGap:{style:Hu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gn},maxWidth:{style:fW},minWidth:{transform:Gn},height:{transform:Gn},maxHeight:{transform:Gn},minHeight:{transform:Gn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function A2(...e){const t=e.reduce((a,r)=>a.concat(Object.keys(r)),[]),n=new Set(t);return e.every(a=>n.size===Object.keys(a).length)}function d2(e,t){return typeof e=="function"?e(t):e}function f1(){function e(n,a,r,l){const o={[n]:a,theme:r},i=l[n];if(!i)return{[n]:a};const{cssProperty:s=n,themeKey:p,transform:u,style:c}=i;if(a==null)return null;if(p==="typography"&&a==="inherit")return{[n]:a};const d=Du(r,p)||{};return c?c(o):Rn(o,a,W=>{let m=Yu(d,u,W);return W===m&&typeof W=="string"&&(m=Yu(d,u,`${n}${W==="default"?"":ee(W)}`,W)),s===!1?m:{[s]:m}})}function t(n){var a;const{sx:r,theme:l={},nested:o}=n||{};if(!r)return null;const i=(a=l.unstable_sxConfig)!=null?a:ps;function s(p){let u=p;if(typeof p=="function")u=p(l);else if(typeof p!="object")return p;if(!u)return null;const c=c1(l.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(W=>{const m=d2(u[W],l);if(m!=null)if(typeof m=="object")if(i[W])f=is(f,e(W,m,l,i));else{const x=Rn({theme:l},m,h=>({[W]:h}));A2(x,m)?f[W]=t({sx:m,theme:l,nested:!0}):f=is(f,x)}else f=is(f,e(W,m,l,i))}),!o&&l.modularCssLayers?{"@layer sx":uW(d,f)}:uW(d,f)}return Array.isArray(r)?r.map(s):s(r)}return t}const Uo=f1();Uo.filterProps=["sx"];function W1(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 f2=["breakpoints","palette","spacing","shape"];function us(e={},...t){const{breakpoints:n={},palette:a={},spacing:r,shape:l={}}=e,o=se(e,f2),i=p1(n),s=U7(r);let p=mn({breakpoints:i,direction:"ltr",components:{},palette:I({mode:"light"},a),spacing:s,shape:I({},E7,l)},o);return p.applyStyles=W1,p=t.reduce((u,c)=>mn(u,c),p),p.unstable_sxConfig=I({},ps,o==null?void 0:o.unstable_sxConfig),p.unstable_sx=function(c){return Uo({sx:c,theme:this})},p}const W2=Object.freeze(Object.defineProperty({__proto__:null,default:us,private_createBreakpoints:p1,unstable_applyStyles:W1},Symbol.toStringTag,{value:"Module"}));function g2(e){return Object.keys(e).length===0}function _u(e=null){const t=v.useContext(Eo);return!t||g2(t)?e:t}const h2=us();function $u(e=h2){return _u(e)}function WW(e){const t=Ju(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function g1({styles:e,themeId:t,defaultTheme:n={}}){const a=$u(n),r=t&&a[t]||a;let l=typeof e=="function"?e(r):e;return r.modularCssLayers&&(Array.isArray(l)?l=l.map(o=>WW(typeof o=="function"?o(r):o)):l=WW(l)),A.jsx(l1,{styles:l})}const m2=["sx"],C2=e=>{var t,n;const a={systemProps:{},otherProps:{}},r=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ps;return Object.keys(e).forEach(l=>{r[l]?a.systemProps[l]=e[l]:a.otherProps[l]=e[l]}),a};function cs(e){const{sx:t}=e,n=se(e,m2),{systemProps:a,otherProps:r}=C2(n);let l;return Array.isArray(t)?l=[a,...t]:typeof t=="function"?l=(...o)=>{const i=t(...o);return mr(i)?I({},a,i):a}:l=I({},a,t),I({},r,{sx:l})}const v2=Object.freeze(Object.defineProperty({__proto__:null,default:Uo,extendSxProp:cs,unstable_createStyleFunctionSx:f1,unstable_defaultSxConfig:ps},Symbol.toStringTag,{value:"Module"})),h1=e=>e,gW=(()=>{let e=h1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=h1}}})();function m1(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=m1(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Ae(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=m1(e))&&(a&&(a+=" "),a+=t);return a}const y2=["className","component"];function S2(e={}){const{themeId:t,defaultTheme:n,defaultClassName:a="MuiBox-root",generateClassName:r}=e,l=sW("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(Uo);return v.forwardRef(function(s,p){const u=$u(n),c=cs(s),{className:d,component:f="div"}=c,W=se(c,y2);return A.jsx(l,I({as:f,ref:p,className:Ae(d,r?r(a):a),theme:t&&u[t]||u},W))})}const I2={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 ke(e,t,n="Mui"){const a=I2[t];return a?`${n}-${a}`:`${gW.generate(e)}-${t}`}function we(e,t,n="Mui"){const a={};return t.forEach(r=>{a[r]=ke(e,r,n)}),a}var C1={exports:{}},Wt={};/**
74
74
  * @license React
75
75
  * react-is.production.js
76
76
  *
@@ -78,7 +78,7 @@ Error generating stack: `+l.message+`
78
78
  *
79
79
  * This source code is licensed under the MIT license found in the
80
80
  * LICENSE file in the root directory of this source tree.
81
- */var hW=Symbol.for("react.transitional.element"),mW=Symbol.for("react.portal"),ec=Symbol.for("react.fragment"),tc=Symbol.for("react.strict_mode"),nc=Symbol.for("react.profiler"),ac=Symbol.for("react.consumer"),rc=Symbol.for("react.context"),lc=Symbol.for("react.forward_ref"),oc=Symbol.for("react.suspense"),ic=Symbol.for("react.suspense_list"),sc=Symbol.for("react.memo"),pc=Symbol.for("react.lazy"),x2=Symbol.for("react.view_transition"),E2=Symbol.for("react.client.reference");function Aa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hW:switch(e=e.type,e){case ec:case nc:case tc:case oc:case ic:case x2:return e;default:switch(e=e&&e.$$typeof,e){case rc:case lc:case pc:case sc:return e;case ac:return e;default:return t}}case mW:return t}}}Wt.ContextConsumer=ac,Wt.ContextProvider=rc,Wt.Element=hW,Wt.ForwardRef=lc,Wt.Fragment=ec,Wt.Lazy=pc,Wt.Memo=sc,Wt.Portal=mW,Wt.Profiler=nc,Wt.StrictMode=tc,Wt.Suspense=oc,Wt.SuspenseList=ic,Wt.isContextConsumer=function(e){return Aa(e)===ac},Wt.isContextProvider=function(e){return Aa(e)===rc},Wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hW},Wt.isForwardRef=function(e){return Aa(e)===lc},Wt.isFragment=function(e){return Aa(e)===ec},Wt.isLazy=function(e){return Aa(e)===pc},Wt.isMemo=function(e){return Aa(e)===sc},Wt.isPortal=function(e){return Aa(e)===mW},Wt.isProfiler=function(e){return Aa(e)===nc},Wt.isStrictMode=function(e){return Aa(e)===tc},Wt.isSuspense=function(e){return Aa(e)===oc},Wt.isSuspenseList=function(e){return Aa(e)===ic},Wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ec||e===nc||e===tc||e===oc||e===ic||typeof e=="object"&&e!==null&&(e.$$typeof===pc||e.$$typeof===sc||e.$$typeof===rc||e.$$typeof===ac||e.$$typeof===lc||e.$$typeof===E2||e.getModuleId!==void 0)},Wt.typeOf=Aa,C1.exports=Wt;var v1=C1.exports;const b2=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function y1(e){const t=`${e}`.match(b2);return t&&t[1]||""}function S1(e,t=""){return e.displayName||e.name||y1(e)||t}function I1(e,t,n){const a=S1(t);return e.displayName||(a!==""?`${n}(${a})`:n)}function k2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return S1(e,"Component");if(typeof e=="object")switch(e.$$typeof){case v1.ForwardRef:return I1(e,e.render,"ForwardRef");case v1.Memo:return I1(e,e.type,"memo");default:return}}}const w2=Object.freeze(Object.defineProperty({__proto__:null,default:k2,getFunctionName:y1},Symbol.toStringTag,{value:"Module"})),R2=["ownerState"],B2=["variants"],L2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function M2(e){return Object.keys(e).length===0}function Q2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function CW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function x1(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const V2=us(),U2=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function uc({defaultTheme:e,theme:t,themeId:n}){return M2(t)?e:t[n]||t}function F2(e){return e?(t,n)=>n[e]:null}function cc(e,t,n){let{ownerState:a}=t,r=se(t,R2);const l=typeof e=="function"?e(I({ownerState:a},r)):e;if(Array.isArray(l))return l.flatMap(o=>cc(o,I({ownerState:a},r),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:o=[]}=l;let s=se(l,B2);return o.forEach(p=>{let u=!0;if(typeof p.props=="function"?u=p.props(I({ownerState:a},r,a)):Object.keys(p.props).forEach(c=>{(a==null?void 0:a[c])!==p.props[c]&&r[c]!==p.props[c]&&(u=!1)}),u){Array.isArray(s)||(s=[s]);const c=typeof p.style=="function"?p.style(I({ownerState:a},r,a)):p.style;s.push(n?x1(Ju(c),n):c)}}),s}return n?x1(Ju(l),n):l}function z2(e={}){const{themeId:t,defaultTheme:n=V2,rootShouldForwardProp:a=CW,slotShouldForwardProp:r=CW}=e,l=o=>Uo(I({},o,{theme:uc(I({},o,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(o,i={})=>{o1(o,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:p,skipVariantsResolver:u,skipSx:c,overridesResolver:d=F2(U2(p))}=i,f=se(i,L2),W=s&&s.startsWith("Mui")||p?"components":"custom",m=u!==void 0?u:p&&p!=="Root"&&p!=="root"||!1,x=c||!1;let h,g=CW;p==="Root"||p==="root"?g=a:p?g=r:Q2(o)&&(g=void 0);const C=sW(o,I({shouldForwardProp:g,label:h},f)),y=S=>typeof S=="function"&&S.__emotion_real!==S||mr(S)?k=>{const R=uc({theme:k.theme,defaultTheme:n,themeId:t});return cc(S,I({},k,{theme:R}),R.modularCssLayers?W:void 0)}:S,E=(S,...k)=>{let R=y(S);const V=k?k.map(y):[];s&&d&&V.push(M=>{const F=uc(I({},M,{defaultTheme:n,themeId:t}));if(!F.components||!F.components[s]||!F.components[s].styleOverrides)return null;const z=F.components[s].styleOverrides,T={};return Object.entries(z).forEach(([j,P])=>{T[j]=cc(P,I({},M,{theme:F}),F.modularCssLayers?"theme":void 0)}),d(M,T)}),s&&!m&&V.push(M=>{var F;const z=uc(I({},M,{defaultTheme:n,themeId:t})),T=z==null||(F=z.components)==null||(F=F[s])==null?void 0:F.variants;return cc({variants:T},I({},M,{theme:z}),z.modularCssLayers?"theme":void 0)}),x||V.push(l);const b=V.length-k.length;if(Array.isArray(S)&&b>0){const M=new Array(b).fill("");R=[...S,...M],R.raw=[...S.raw,...M]}const B=C(R,...V);return o.muiName&&(B.muiName=o.muiName),B};return C.withConfig&&(E.withConfig=C.withConfig),E}}const q2=z2();function As(e,t){const n=I({},t);return Object.keys(e).forEach(a=>{if(a.toString().match(/^(components|slots)$/))n[a]=I({},e[a],n[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const r=e[a]||{},l=t[a];n[a]={},!l||!Object.keys(l)?n[a]=r:!r||!Object.keys(r)?n[a]=l:(n[a]=I({},l),Object.keys(r).forEach(o=>{n[a][o]=As(r[o],l[o])}))}else n[a]===void 0&&(n[a]=e[a])}),n}function E1(e){const{theme:t,name:n,props:a}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?a:As(t.components[n].defaultProps,a)}function j2({props:e,name:t,defaultTheme:n,themeId:a}){let r=$u(n);return a&&(r=r[a]||r),E1({theme:r,name:t,props:e})}const da=typeof window<"u"?v.useLayoutEffect:v.useEffect;function T2(e,t,n,a,r){const[l,o]=v.useState(()=>r&&n?n(e).matches:a?a(e).matches:t);return da(()=>{let i=!0;if(!n)return;const s=n(e),p=()=>{i&&o(s.matches)};return p(),s.addListener(p),()=>{i=!1,s.removeListener(p)}},[e,n]),l}const b1=v.useSyncExternalStore;function O2(e,t,n,a,r){const l=v.useCallback(()=>t,[t]),o=v.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(a!==null){const{matches:u}=a(e);return()=>u}return l},[l,e,a,r,n]),[i,s]=v.useMemo(()=>{if(n===null)return[l,()=>()=>{}];const u=n(e);return[()=>u.matches,c=>(u.addListener(c),()=>{u.removeListener(c)})]},[l,n,e]);return b1(s,i,o)}function vW(e,t={}){const n=_u(),a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:r=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:i=!1}=E1({name:"MuiUseMediaQuery",props:t,theme:n});let s=typeof e=="function"?e(n):e;return s=s.replace(/^@media( ?)/m,""),(b1!==void 0?O2:T2)(s,r,l,o,i)}function k1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const K2=Object.freeze(Object.defineProperty({__proto__:null,default:k1},Symbol.toStringTag,{value:"Module"}));function P2(e,t=0,n=1){return k1(e,t,n)}function J2(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(a=>a+a)),n?`rgb${n.length===4?"a":""}(${n.map((a,r)=>r<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function w1(e){if(e.type)return e;if(e.charAt(0)==="#")return w1(J2(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(hr(9,e));let a=e.substring(t+1,e.length-1),r;if(n==="color"){if(a=a.split(" "),r=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(hr(10,r))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:n,values:a,colorSpace:r}}function D2(e){const{type:t,colorSpace:n}=e;let{values:a}=e;return t.indexOf("rgb")!==-1?a=a.map((r,l)=>l<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.indexOf("color")!==-1?a=`${n} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function un(e,t){return e=w1(e),t=P2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,D2(e)}function Ac(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function dc(e,t=166){let n;function a(...r){const l=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(l,t)}return a.clear=()=>{clearTimeout(n)},a}function Y2(e,t){return()=>null}function fc(e,t){var n,a;return v.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(a=e.type)==null||(a=a._payload)==null||(a=a.value)==null?void 0:a.muiName)!==-1}function cn(e){return e&&e.ownerDocument||document}function Ga(e){return cn(e).defaultView||window}function Z2(e,t){return()=>null}function ds(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let R1=0;function N2(e){const[t,n]=v.useState(e),a=e||t;return v.useEffect(()=>{t==null&&(R1+=1,n(`mui-${R1}`))},[t]),a}const B1=wA.useId;function Hr(e){if(B1!==void 0){const t=B1();return e??t}return N2(e)}function G2(e,t,n,a,r){return null}function Cr({controlled:e,default:t,name:n,state:a="value"}){const{current:r}=v.useRef(e!==void 0),[l,o]=v.useState(t),i=r?e:l,s=v.useCallback(p=>{r||o(p)},[]);return[i,s]}function Bn(e){const t=v.useRef(e);return da(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Mt(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ds(n,t)})},e)}const L1={};function H2(e,t){const n=v.useRef(L1);return n.current===L1&&(n.current=e(t)),n}const X2=[];function _2(e){v.useEffect(e,X2)}class fs{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new fs}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Fo(){const e=H2(fs.create).current;return _2(e.disposeEffect),e}let Wc=!0,yW=!1;const $2=new fs,eL={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 tL(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&eL[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function nL(e){e.metaKey||e.altKey||e.ctrlKey||(Wc=!0)}function SW(){Wc=!1}function aL(){this.visibilityState==="hidden"&&yW&&(Wc=!0)}function rL(e){e.addEventListener("keydown",nL,!0),e.addEventListener("mousedown",SW,!0),e.addEventListener("pointerdown",SW,!0),e.addEventListener("touchstart",SW,!0),e.addEventListener("visibilitychange",aL,!0)}function lL(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Wc||tL(t)}function IW(){const e=v.useCallback(r=>{r!=null&&rL(r.ownerDocument)},[]),t=v.useRef(!1);function n(){return t.current?(yW=!0,$2.start(100,()=>{yW=!1}),t.current=!1,!0):!1}function a(r){return lL(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:a,onBlur:n,ref:e}}function M1(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const oL=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current};function Re(e,t,n=void 0){const a={};return Object.keys(e).forEach(r=>{a[r]=e[r].reduce((l,o)=>{if(o){const i=t(o);i!==""&&l.push(i),n&&n[o]&&l.push(n[o])}return l},[]).join(" ")}),a}function gc(e){return typeof e=="string"}function zo(e,t,n){return e===void 0||gc(e)?t:I({},t,{ownerState:I({},t.ownerState,n)})}function Q1(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{n[a]=e[a]}),n}function V1(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 U1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:a,externalForwardedProps:r,className:l}=e;if(!t){const f=Ae(n==null?void 0:n.className,l,r==null?void 0:r.className,a==null?void 0:a.className),W=I({},n==null?void 0:n.style,r==null?void 0:r.style,a==null?void 0:a.style),m=I({},n,r,a);return f.length>0&&(m.className=f),Object.keys(W).length>0&&(m.style=W),{props:m,internalRef:void 0}}const o=Q1(I({},r,a)),i=V1(a),s=V1(r),p=t(o),u=Ae(p==null?void 0:p.className,n==null?void 0:n.className,l,r==null?void 0:r.className,a==null?void 0:a.className),c=I({},p==null?void 0:p.style,n==null?void 0:n.style,r==null?void 0:r.style,a==null?void 0:a.style),d=I({},p,n,s,i);return u.length>0&&(d.className=u),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:p.ref}}function F1(e,t,n){return typeof e=="function"?e(t,n):e}const iL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kl(e){var t;const{elementType:n,externalSlotProps:a,ownerState:r,skipResolvingSlotProps:l=!1}=e,o=se(e,iL),i=l?{}:F1(a,r),{props:s,internalRef:p}=U1(I({},o,{externalSlotProps:i})),u=Mt(p,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return zo(n,I({},s,{ref:u}),r)}function wl(e){if(parseInt(v.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const z1=v.createContext(null);function q1(){return v.useContext(z1)}const sL=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function pL(e,t){return typeof t=="function"?t(e):I({},e,t)}function uL(e){const{children:t,theme:n}=e,a=q1(),r=v.useMemo(()=>{const l=a===null?n:pL(a,n);return l!=null&&(l[sL]=a!==null),l},[n,a]);return A.jsx(z1.Provider,{value:r,children:t})}const cL=["value"],j1=v.createContext();function AL(e){let{value:t}=e,n=se(e,cL);return A.jsx(j1.Provider,I({value:t??!0},n))}const T1=()=>{const e=v.useContext(j1);return e??!1},O1=v.createContext(void 0);function dL({value:e,children:t}){return A.jsx(O1.Provider,{value:e,children:t})}function fL(e){const{theme:t,name:n,props:a}=e;if(!t||!t.components||!t.components[n])return a;const r=t.components[n];return r.defaultProps?As(r.defaultProps,a):!r.styleOverrides&&!r.variants?As(r,a):a}function WL({props:e,name:t}){const n=v.useContext(O1);return fL({props:e,name:t,theme:{components:n}})}function gL(e){const t=_u(),n=Hr()||"",{modularCssLayers:a}=e;let r="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!a||t!==null?r="":typeof a=="string"?r=a.replace(/mui(?!\.)/g,r):r=`@layer ${r};`,da(()=>{const l=document.querySelector("head");if(!l)return;const o=l.firstChild;if(r){var i;if(o&&(i=o.hasAttribute)!=null&&i.call(o,"data-mui-layer-order")&&o.getAttribute("data-mui-layer-order")===n)return;const p=document.createElement("style");p.setAttribute("data-mui-layer-order",n),p.textContent=r,l.prepend(p)}else{var s;(s=l.querySelector(`style[data-mui-layer-order="${n}"]`))==null||s.remove()}},[r,n]),r?A.jsx(g1,{styles:r}):null}const K1={};function P1(e,t,n,a=!1){return v.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const l=n(r),o=e?I({},t,{[e]:l}):l;return a?()=>o:o}return e?I({},t,{[e]:n}):I({},t,n)},[e,t,n,a])}function hL(e){const{children:t,theme:n,themeId:a}=e,r=_u(K1),l=q1()||K1,o=P1(a,r,n),i=P1(a,l,n,!0),s=o.direction==="rtl",p=gL(o);return A.jsx(uL,{theme:i,children:A.jsx(Eo.Provider,{value:o,children:A.jsx(AL,{value:s,children:A.jsxs(dL,{value:o==null?void 0:o.components,children:[p,t]})})})})}const mL=["component","direction","spacing","divider","children","className","useFlexGap"],CL=us(),vL=q2("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function yL(e){return j2({props:e,name:"MuiStack",defaultTheme:CL})}function SL(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((a,r,l)=>(a.push(r),l<n.length-1&&a.push(v.cloneElement(t,{key:`separator-${l}`})),a),[])}const IL=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],xL=({ownerState:e,theme:t})=>{let n=I({display:"flex",flexDirection:"column"},Rn({theme:t},El({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=dW(t),r=Object.keys(t.breakpoints.values).reduce((s,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(s[p]=!0),s),{}),l=El({values:e.direction,base:r}),o=El({values:e.spacing,base:r});typeof l=="object"&&Object.keys(l).forEach((s,p,u)=>{if(!l[s]){const d=p>0?l[u[p-1]]:"column";l[s]=d}}),n=mn(n,Rn({theme:t},o,(s,p)=>e.useFlexGap?{gap:bl(a,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${IL(p?l[p]:e.direction)}`]:bl(a,s)}}))}return n=b7(t.breakpoints,n),n};function EL(e={}){const{createStyledComponent:t=vL,useThemeProps:n=yL,componentName:a="MuiStack"}=e,r=()=>Re({root:["root"]},s=>ke(a,s),{}),l=t(xL);return v.forwardRef(function(s,p){const u=n(s),c=cs(u),{component:d="div",direction:f="column",spacing:W=0,divider:m,children:x,className:h,useFlexGap:g=!1}=c,C=se(c,mL),y={direction:f,spacing:W,useFlexGap:g},E=r();return A.jsx(l,I({as:d,ownerState:y,ref:p,className:Ae(E.root,h)},C,{children:m?SL(x,m):x}))})}function bL(e,t){return I({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var jt={},J1={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})(J1);var Fe=J1.exports;const kL=Ta(u7),wL=Ta(K2);var D1=Fe;Object.defineProperty(jt,"__esModule",{value:!0});var Ct=jt.alpha=H1;jt.blend=jL,jt.colorChannel=void 0;var xW=jt.darken=kW;jt.decomposeColor=fa,jt.emphasize=X1;var RL=jt.getContrastRatio=VL;jt.getLuminance=hc,jt.hexToRgb=Z1,jt.hslToRgb=G1;var EW=jt.lighten=wW;jt.private_safeAlpha=UL,jt.private_safeColorChannel=void 0,jt.private_safeDarken=FL,jt.private_safeEmphasize=qL,jt.private_safeLighten=zL,jt.recomposeColor=qo,jt.rgbToHex=QL;var Y1=D1(kL),BL=D1(wL);function bW(e,t=0,n=1){return(0,BL.default)(e,t,n)}function Z1(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(a=>a+a)),n?`rgb${n.length===4?"a":""}(${n.map((a,r)=>r<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function LL(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function fa(e){if(e.type)return e;if(e.charAt(0)==="#")return fa(Z1(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Y1.default)(9,e));let a=e.substring(t+1,e.length-1),r;if(n==="color"){if(a=a.split(" "),r=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error((0,Y1.default)(10,r))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:n,values:a,colorSpace:r}}const N1=e=>{const t=fa(e);return t.values.slice(0,3).map((n,a)=>t.type.indexOf("hsl")!==-1&&a!==0?`${n}%`:n).join(" ")};jt.colorChannel=N1;const ML=(e,t)=>{try{return N1(e)}catch{return e}};jt.private_safeColorChannel=ML;function qo(e){const{type:t,colorSpace:n}=e;let{values:a}=e;return t.indexOf("rgb")!==-1?a=a.map((r,l)=>l<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.indexOf("color")!==-1?a=`${n} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function QL(e){if(e.indexOf("#")===0)return e;const{values:t}=fa(e);return`#${t.map((n,a)=>LL(a===3?Math.round(255*n):n)).join("")}`}function G1(e){e=fa(e);const{values:t}=e,n=t[0],a=t[1]/100,r=t[2]/100,l=a*Math.min(r,1-r),o=(p,u=(p+n/30)%12)=>r-l*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const s=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(i+="a",s.push(t[3])),qo({type:i,values:s})}function hc(e){e=fa(e);let t=e.type==="hsl"||e.type==="hsla"?fa(G1(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 VL(e,t){const n=hc(e),a=hc(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function H1(e,t){return e=fa(e),t=bW(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qo(e)}function UL(e,t,n){try{return H1(e,t)}catch{return e}}function kW(e,t){if(e=fa(e),t=bW(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 qo(e)}function FL(e,t,n){try{return kW(e,t)}catch{return e}}function wW(e,t){if(e=fa(e),t=bW(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 qo(e)}function zL(e,t,n){try{return wW(e,t)}catch{return e}}function X1(e,t=.15){return hc(e)>.5?kW(e,t):wW(e,t)}function qL(e,t,n){try{return X1(e,t)}catch{return e}}function jL(e,t,n,a=1){const r=(s,p)=>Math.round((s**(1/a)*(1-n)+p**(1/a)*n)**a),l=fa(e),o=fa(t),i=[r(l.values[0],o.values[0]),r(l.values[1],o.values[1]),r(l.values[2],o.values[2])];return qo({type:"rgb",values:i})}const TL=["mode","contrastThreshold","tonalOffset"],_1={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:ls.white,default:ls.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}},RW={text:{primary:ls.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:ls.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 $1(e,t,n,a){const r=a.light||a,l=a.dark||a*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=EW(e.main,r):t==="dark"&&(e.dark=xW(e.main,l)))}function OL(e="light"){return e==="dark"?{main:Bo[200],light:Bo[50],dark:Bo[400]}:{main:Bo[700],light:Bo[400],dark:Bo[800]}}function KL(e="light"){return e==="dark"?{main:Ro[200],light:Ro[50],dark:Ro[400]}:{main:Ro[500],light:Ro[300],dark:Ro[700]}}function PL(e="light"){return e==="dark"?{main:wo[500],light:wo[300],dark:wo[700]}:{main:wo[700],light:wo[400],dark:wo[800]}}function JL(e="light"){return e==="dark"?{main:Lo[400],light:Lo[300],dark:Lo[700]}:{main:Lo[700],light:Lo[500],dark:Lo[900]}}function DL(e="light"){return e==="dark"?{main:Mo[400],light:Mo[300],dark:Mo[700]}:{main:Mo[800],light:Mo[500],dark:Mo[900]}}function YL(e="light"){return e==="dark"?{main:os[400],light:os[300],dark:os[700]}:{main:"#ed6c02",light:os[500],dark:os[900]}}function ZL(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,r=se(e,TL),l=e.primary||OL(t),o=e.secondary||KL(t),i=e.error||PL(t),s=e.info||JL(t),p=e.success||DL(t),u=e.warning||YL(t);function c(m){return RL(m,RW.text.primary)>=n?RW.text.primary:_1.text.primary}const d=({color:m,name:x,mainShade:h=500,lightShade:g=300,darkShade:C=700})=>{if(m=I({},m),!m.main&&m[h]&&(m.main=m[h]),!m.hasOwnProperty("main"))throw new Error(hr(11,x?` (${x})`:"",h));if(typeof m.main!="string")throw new Error(hr(12,x?` (${x})`:"",JSON.stringify(m.main)));return $1(m,"light",g,a),$1(m,"dark",C,a),m.contrastText||(m.contrastText=c(m.main)),m},f={dark:RW,light:_1};return mn(I({common:I({},ls),mode:t,primary:d({color:l,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:i,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:p,name:"success"}),grey:p7,contrastThreshold:n,getContrastText:c,augmentColor:d,tonalOffset:a},f[t]),r)}const NL=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function GL(e){return Math.round(e*1e5)/1e5}const eS={textTransform:"uppercase"},tS='"Roboto", "Helvetica", "Arial", sans-serif';function HL(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:a=tS,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:o=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:p=16,allVariants:u,pxToRem:c}=n,d=se(n,NL),f=r/14,W=c||(h=>`${h/p*f}rem`),m=(h,g,C,y,E)=>I({fontFamily:a,fontWeight:h,fontSize:W(g),lineHeight:C},a===tS?{letterSpacing:`${GL(y/g)}em`}:{},E,u),x={h1:m(l,96,1.167,-1.5),h2:m(l,60,1.2,-.5),h3:m(o,48,1.167,0),h4:m(o,34,1.235,.25),h5:m(o,24,1.334,0),h6:m(i,20,1.6,.15),subtitle1:m(o,16,1.75,.15),subtitle2:m(i,14,1.57,.1),body1:m(o,16,1.5,.15),body2:m(o,14,1.43,.15),button:m(i,14,1.75,.4,eS),caption:m(o,12,1.66,.4),overline:m(o,12,2.66,1,eS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mn(I({htmlFontSize:p,pxToRem:W,fontFamily:a,fontSize:r,fontWeightLight:l,fontWeightRegular:o,fontWeightMedium:i,fontWeightBold:s},x),d,{clone:!1})}const XL=.2,_L=.14,$L=.12;function Et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${XL})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${_L})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$L})`].join(",")}const eM=["none",Et(0,2,1,-1,0,1,1,0,0,1,3,0),Et(0,3,1,-2,0,2,2,0,0,1,5,0),Et(0,3,3,-2,0,3,4,0,0,1,8,0),Et(0,2,4,-1,0,4,5,0,0,1,10,0),Et(0,3,5,-1,0,5,8,0,0,1,14,0),Et(0,3,5,-1,0,6,10,0,0,1,18,0),Et(0,4,5,-2,0,7,10,1,0,2,16,1),Et(0,5,5,-3,0,8,10,1,0,3,14,2),Et(0,5,6,-3,0,9,12,1,0,3,16,2),Et(0,6,6,-3,0,10,14,1,0,4,18,3),Et(0,6,7,-4,0,11,15,1,0,4,20,3),Et(0,7,8,-4,0,12,17,2,0,5,22,4),Et(0,7,8,-4,0,13,19,2,0,5,24,4),Et(0,7,9,-4,0,14,21,2,0,5,26,4),Et(0,8,9,-5,0,15,22,2,0,6,28,5),Et(0,8,10,-5,0,16,24,2,0,6,30,5),Et(0,8,11,-5,0,17,26,2,0,6,32,5),Et(0,9,11,-5,0,18,28,2,0,7,34,6),Et(0,9,12,-6,0,19,29,2,0,7,36,6),Et(0,10,13,-6,0,20,31,3,0,8,38,7),Et(0,10,13,-6,0,21,33,3,0,8,40,7),Et(0,10,14,-6,0,22,35,3,0,8,42,7),Et(0,11,14,-7,0,23,36,3,0,9,44,8),Et(0,11,15,-7,0,24,38,3,0,9,46,8)],tM=["duration","easing","delay"],nM={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)"},aM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nS(e){return`${Math.round(e)}ms`}function rM(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function lM(e){const t=I({},nM,e.easing),n=I({},aM,e.duration);return I({getAutoHeightDuration:rM,create:(r=["all"],l={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:s=0}=l;return se(l,tM),(Array.isArray(r)?r:[r]).map(p=>`${p} ${typeof o=="string"?o:nS(o)} ${i} ${typeof s=="string"?s:nS(s)}`).join(",")}},e,{easing:t,duration:n})}const oM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iM=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function BW(e={},...t){const{mixins:n={},palette:a={},transitions:r={},typography:l={}}=e,o=se(e,iM);if(e.vars&&e.generateCssVars===void 0)throw new Error(hr(18));const i=ZL(a),s=us(e);let p=mn(s,{mixins:bL(s.breakpoints,n),palette:i,shadows:eM.slice(),typography:HL(i,l),transitions:lM(r),zIndex:I({},oM)});return p=mn(p,o),p=t.reduce((u,c)=>mn(u,c),p),p.unstable_sxConfig=I({},ps,o==null?void 0:o.unstable_sxConfig),p.unstable_sx=function(c){return Uo({sx:c,theme:this})},p}function sM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function pM(e){return parseFloat(e)}const LW=BW();function vr(){const e=$u(LW);return e[Qo]||e}var Ws={};const uM=Ta(GB);var MW={exports:{}},aS;function rS(){return aS||(aS=1,function(e){function t(n,a){if(n==null)return{};var r={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(a.indexOf(l)!==-1)continue;r[l]=n[l]}return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(MW)),MW.exports}const lS=Ta(y7),cM=Ta(S7),AM=Ta(w7),dM=Ta(w2),fM=Ta(W2),WM=Ta(v2);var jo=Fe;Object.defineProperty(Ws,"__esModule",{value:!0});var gM=Ws.default=RM;Ws.shouldForwardProp=Cc,Ws.systemDefaultTheme=void 0;var Wa=jo(uM),QW=jo(rS()),mc=IM(lS),hM=cM;jo(AM),jo(dM);var mM=jo(fM),CM=jo(WM);const vM=["ownerState"],yM=["variants"],SM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oS=function(a){return a?n:t})(e)}function IM(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oS(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}function xM(e){return Object.keys(e).length===0}function EM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function iS(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const bM=Ws.systemDefaultTheme=(0,mM.default)(),kM=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function vc({defaultTheme:e,theme:t,themeId:n}){return xM(t)?e:t[n]||t}function wM(e){return e?(t,n)=>n[e]:null}function yc(e,t,n){let{ownerState:a}=t,r=(0,QW.default)(t,vM);const l=typeof e=="function"?e((0,Wa.default)({ownerState:a},r)):e;if(Array.isArray(l))return l.flatMap(o=>yc(o,(0,Wa.default)({ownerState:a},r),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:o=[]}=l;let s=(0,QW.default)(l,yM);return o.forEach(p=>{let u=!0;if(typeof p.props=="function"?u=p.props((0,Wa.default)({ownerState:a},r,a)):Object.keys(p.props).forEach(c=>{(a==null?void 0:a[c])!==p.props[c]&&r[c]!==p.props[c]&&(u=!1)}),u){Array.isArray(s)||(s=[s]);const c=typeof p.style=="function"?p.style((0,Wa.default)({ownerState:a},r,a)):p.style;s.push(n?iS((0,mc.internal_serializeStyles)(c),n):c)}}),s}return n?iS((0,mc.internal_serializeStyles)(l),n):l}function RM(e={}){const{themeId:t,defaultTheme:n=bM,rootShouldForwardProp:a=Cc,slotShouldForwardProp:r=Cc}=e,l=o=>(0,CM.default)((0,Wa.default)({},o,{theme:vc((0,Wa.default)({},o,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(o,i={})=>{(0,mc.internal_processStyles)(o,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:p,skipVariantsResolver:u,skipSx:c,overridesResolver:d=wM(kM(p))}=i,f=(0,QW.default)(i,SM),W=s&&s.startsWith("Mui")||p?"components":"custom",m=u!==void 0?u:p&&p!=="Root"&&p!=="root"||!1,x=c||!1;let h,g=Cc;p==="Root"||p==="root"?g=a:p?g=r:EM(o)&&(g=void 0);const C=(0,mc.default)(o,(0,Wa.default)({shouldForwardProp:g,label:h},f)),y=S=>typeof S=="function"&&S.__emotion_real!==S||(0,hM.isPlainObject)(S)?k=>{const R=vc({theme:k.theme,defaultTheme:n,themeId:t});return yc(S,(0,Wa.default)({},k,{theme:R}),R.modularCssLayers?W:void 0)}:S,E=(S,...k)=>{let R=y(S);const V=k?k.map(y):[];s&&d&&V.push(M=>{const F=vc((0,Wa.default)({},M,{defaultTheme:n,themeId:t}));if(!F.components||!F.components[s]||!F.components[s].styleOverrides)return null;const z=F.components[s].styleOverrides,T={};return Object.entries(z).forEach(([j,P])=>{T[j]=yc(P,(0,Wa.default)({},M,{theme:F}),F.modularCssLayers?"theme":void 0)}),d(M,T)}),s&&!m&&V.push(M=>{var F;const z=vc((0,Wa.default)({},M,{defaultTheme:n,themeId:t})),T=z==null||(F=z.components)==null||(F=F[s])==null?void 0:F.variants;return yc({variants:T},(0,Wa.default)({},M,{theme:z}),z.modularCssLayers?"theme":void 0)}),x||V.push(l);const b=V.length-k.length;if(Array.isArray(S)&&b>0){const M=new Array(b).fill("");R=[...S,...M],R.raw=[...S.raw,...M]}const B=C(R,...V);return o.muiName&&(B.muiName=o.muiName),B};return C.withConfig&&(E.withConfig=C.withConfig),E}}function sS(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cn=e=>sS(e)&&e!=="classes",_=gM({themeId:Qo,defaultTheme:LW,rootShouldForwardProp:Cn}),BM=["theme"];function LM(e){let{theme:t}=e,n=se(e,BM);const a=t[Qo];let r=a||t;return typeof t!="function"&&(a&&!a.vars?r=I({},a,{vars:null}):t&&!t.vars&&(r=I({},t,{vars:null}))),A.jsx(hL,I({},n,{themeId:a?Qo:void 0,theme:r}))}const pS=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Le(e){return WL(e)}function MM(e){return ke("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QM=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],VM=e=>{const{color:t,fontSize:n,classes:a}=e,r={root:["root",t!=="inherit"&&`color${$(t)}`,`fontSize${$(n)}`]};return Re(r,MM,a)},UM=_("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,a,r,l,o,i,s,p,u,c,d,f,W;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(a=n.create)==null?void 0:a.call(n,"fill",{duration:(r=e.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(o=l.pxToRem)==null?void 0:o.call(l,20))||"1.25rem",medium:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,24))||"1.5rem",large:((p=e.typography)==null||(u=p.pxToRem)==null?void 0:u.call(p,35))||"2.1875rem"}[t.fontSize],color:(c=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?c:{action:(f=(e.vars||e).palette)==null||(f=f.action)==null?void 0:f.active,disabled:(W=(e.vars||e).palette)==null||(W=W.action)==null?void 0:W.disabled,inherit:void 0}[t.color]}}),Sc=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiSvgIcon"}),{children:r,className:l,color:o="inherit",component:i="svg",fontSize:s="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=a,f=se(a,QM),W=v.isValidElement(r)&&r.type==="svg",m=I({},a,{color:o,component:i,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:W}),x={};u||(x.viewBox=d);const h=VM(m);return A.jsxs(UM,I({as:i,className:Ae(h.root,l),focusable:"false",color:p,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:n},x,f,W&&r.props,{ownerState:m,children:[W?r.props.children:r,c?A.jsx("title",{children:c}):null]}))});Sc.muiName="SvgIcon";function $t(e,t){function n(a,r){return A.jsx(Sc,I({"data-testid":`${t}Icon`,ref:r},a,{children:e}))}return n.muiName=Sc.muiName,v.memo(v.forwardRef(n))}const FM=Object.freeze(Object.defineProperty({__proto__:null,capitalize:$,createChainedFunction:Ac,createSvgIcon:$t,debounce:dc,deprecatedPropType:Y2,isMuiElement:fc,ownerDocument:cn,ownerWindow:Ga,requirePropFactory:Z2,setRef:ds,unstable_ClassNameGenerator:{configure:e=>{gW.configure(e)}},unstable_useEnhancedEffect:da,unstable_useId:Hr,unsupportedProp:G2,useControlled:Cr,useEventCallback:Bn,useForkRef:Mt,useIsFocusVisible:IW},Symbol.toStringTag,{value:"Module"}));function VW(e,t){return VW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},VW(e,t)}function uS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,VW(e,t)}const cS={disabled:!1},Ic=ht.createContext(null);var zM=function(t){return t.scrollTop},gs="unmounted",Rl="exited",Bl="entering",To="entered",UW="exiting",Va=function(e){uS(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var o=r,i=o&&!o.isMounting?a.enter:a.appear,s;return l.appearStatus=null,a.in?i?(s=Rl,l.appearStatus=Bl):s=To:a.unmountOnExit||a.mountOnEnter?s=gs:s=Rl,l.state={status:s},l.nextCallback=null,l}t.getDerivedStateFromProps=function(r,l){var o=r.in;return o&&l.status===gs?{status:Rl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var l=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==Bl&&o!==To&&(l=Bl):(o===Bl||o===To)&&(l=UW)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,l,o,i;return l=o=i=r,r!=null&&typeof r!="number"&&(l=r.exit,o=r.enter,i=r.appear!==void 0?r.appear:o),{exit:l,enter:o,appear:i}},n.updateStatus=function(r,l){if(r===void 0&&(r=!1),l!==null)if(this.cancelNextCallback(),l===Bl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:hu.findDOMNode(this);o&&zM(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rl&&this.setState({status:gs})},n.performEnter=function(r){var l=this,o=this.props.enter,i=this.context?this.context.isMounting:r,s=this.props.nodeRef?[i]:[hu.findDOMNode(this),i],p=s[0],u=s[1],c=this.getTimeouts(),d=i?c.appear:c.enter;if(!r&&!o||cS.disabled){this.safeSetState({status:To},function(){l.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:Bl},function(){l.props.onEntering(p,u),l.onTransitionEnd(d,function(){l.safeSetState({status:To},function(){l.props.onEntered(p,u)})})})},n.performExit=function(){var r=this,l=this.props.exit,o=this.getTimeouts(),i=this.props.nodeRef?void 0:hu.findDOMNode(this);if(!l||cS.disabled){this.safeSetState({status:Rl},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:UW},function(){r.props.onExiting(i),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:Rl},function(){r.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,l){l=this.setNextCallback(l),this.setState(r,l)},n.setNextCallback=function(r){var l=this,o=!0;return this.nextCallback=function(i){o&&(o=!1,l.nextCallback=null,r(i))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(r,l){this.setNextCallback(l);var o=this.props.nodeRef?this.props.nodeRef.current:hu.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!o||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],p=s[0],u=s[1];this.props.addEndListener(p,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===gs)return null;var l=this.props,o=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var i=se(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ht.createElement(Ic.Provider,{value:null},typeof o=="function"?o(r,i):ht.cloneElement(ht.Children.only(o),i))},t}(ht.Component);Va.contextType=Ic,Va.propTypes={};function Oo(){}Va.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Oo,onEntering:Oo,onEntered:Oo,onExit:Oo,onExiting:Oo,onExited:Oo},Va.UNMOUNTED=gs,Va.EXITED=Rl,Va.ENTERING=Bl,Va.ENTERED=To,Va.EXITING=UW;function qM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FW(e,t){var n=function(l){return t&&v.isValidElement(l)?t(l):l},a=Object.create(null);return e&&v.Children.map(e,function(r){return r}).forEach(function(r){a[r.key]=n(r)}),a}function jM(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var a=Object.create(null),r=[];for(var l in e)l in t?r.length&&(a[l]=r,r=[]):r.push(l);var o,i={};for(var s in t){if(a[s])for(o=0;o<a[s].length;o++){var p=a[s][o];i[a[s][o]]=n(p)}i[s]=n(s)}for(o=0;o<r.length;o++)i[r[o]]=n(r[o]);return i}function Ll(e,t,n){return n[t]!=null?n[t]:e.props[t]}function TM(e,t){return FW(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ll(n,"appear",e),enter:Ll(n,"enter",e),exit:Ll(n,"exit",e)})})}function OM(e,t,n){var a=FW(e.children),r=jM(t,a);return Object.keys(r).forEach(function(l){var o=r[l];if(v.isValidElement(o)){var i=l in t,s=l in a,p=t[l],u=v.isValidElement(p)&&!p.props.in;s&&(!i||u)?r[l]=v.cloneElement(o,{onExited:n.bind(null,o),in:!0,exit:Ll(o,"exit",e),enter:Ll(o,"enter",e)}):!s&&i&&!u?r[l]=v.cloneElement(o,{in:!1}):s&&i&&v.isValidElement(p)&&(r[l]=v.cloneElement(o,{onExited:n.bind(null,o),in:p.props.in,exit:Ll(o,"exit",e),enter:Ll(o,"enter",e)}))}}),r}var KM=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},PM={component:"div",childFactory:function(t){return t}},zW=function(e){uS(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var o=l.handleExited.bind(qM(l));return l.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},l}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(r,l){var o=l.children,i=l.handleExited,s=l.firstRender;return{children:s?TM(r,i):OM(r,o,i),firstRender:!1}},n.handleExited=function(r,l){var o=FW(this.props.children);r.key in o||(r.props.onExited&&r.props.onExited(l),this.mounted&&this.setState(function(i){var s=I({},i.children);return delete s[r.key],{children:s}}))},n.render=function(){var r=this.props,l=r.component,o=r.childFactory,i=se(r,["component","childFactory"]),s=this.state.contextValue,p=KM(this.state.children).map(o);return delete i.appear,delete i.enter,delete i.exit,l===null?ht.createElement(Ic.Provider,{value:s},p):ht.createElement(Ic.Provider,{value:s},ht.createElement(l,i,p))},t}(ht.Component);zW.propTypes={},zW.defaultProps=PM;const qW=e=>e.scrollTop;function Ko(e,t){var n,a;const{timeout:r,easing:l,style:o={}}=e;return{duration:(n=o.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(a=o.transitionTimingFunction)!=null?a:typeof l=="object"?l[t.mode]:l,delay:o.transitionDelay}}function JM(e){return ke("MuiPaper",e)}we("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 DM=["className","component","elevation","square","variant"],YM=e=>{const{square:t,elevation:n,variant:a,classes:r}=e,l={root:["root",a,!t&&"rounded",a==="elevation"&&`elevation${n}`]};return Re(l,JM,r)},ZM=_("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 I({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"&&I({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ct("#fff",pS(t.elevation))}, ${Ct("#fff",pS(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Nt=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiPaper"}),{className:r,component:l="div",elevation:o=1,square:i=!1,variant:s="elevation"}=a,p=se(a,DM),u=I({},a,{component:l,elevation:o,square:i,variant:s}),c=YM(u);return A.jsx(ZM,I({as:l,ownerState:u,className:Ae(c.root,r),ref:n},p))}),NM=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],GM=["component","slots","slotProps"],HM=["component"];function jW(e,t){const{className:n,elementType:a,ownerState:r,externalForwardedProps:l,getSlotOwnerState:o,internalForwardedProps:i}=t,s=se(t,NM),{component:p,slots:u={[e]:void 0},slotProps:c={[e]:void 0}}=l,d=se(l,GM),f=u[e]||a,W=F1(c[e],r),m=U1(I({className:n},s,{externalForwardedProps:e==="root"?d:void 0,externalSlotProps:W})),{props:{component:x},internalRef:h}=m,g=se(m.props,HM),C=Mt(h,W==null?void 0:W.ref,t.ref),y=o?o(g):{},E=I({},r,y),S=e==="root"?x||p:x,k=zo(f,I({},e==="root"&&!p&&!u[e]&&i,e!=="root"&&!u[e]&&i,g,S&&{as:S},{ref:C}),E);return Object.keys(y).forEach(R=>{delete k[R]}),[f,k]}function XM(e){const{className:t,classes:n,pulsate:a=!1,rippleX:r,rippleY:l,rippleSize:o,in:i,onExited:s,timeout:p}=e,[u,c]=v.useState(!1),d=Ae(t,n.ripple,n.rippleVisible,a&&n.ripplePulsate),f={width:o,height:o,top:-(o/2)+l,left:-(o/2)+r},W=Ae(n.child,u&&n.childLeaving,a&&n.childPulsate);return!i&&!u&&c(!0),v.useEffect(()=>{if(!i&&s!=null){const m=setTimeout(s,p);return()=>{clearTimeout(m)}}},[s,i,p]),A.jsx("span",{className:d,style:f,children:A.jsx("span",{className:W})})}const ga=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_M=["center","classes","className"];let xc=e=>e,AS,dS,fS,WS;const TW=550,$M=80,eQ=Gr(AS||(AS=xc`
81
+ */var hW=Symbol.for("react.transitional.element"),mW=Symbol.for("react.portal"),ec=Symbol.for("react.fragment"),tc=Symbol.for("react.strict_mode"),nc=Symbol.for("react.profiler"),ac=Symbol.for("react.consumer"),rc=Symbol.for("react.context"),lc=Symbol.for("react.forward_ref"),oc=Symbol.for("react.suspense"),ic=Symbol.for("react.suspense_list"),sc=Symbol.for("react.memo"),pc=Symbol.for("react.lazy"),x2=Symbol.for("react.view_transition"),E2=Symbol.for("react.client.reference");function Aa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hW:switch(e=e.type,e){case ec:case nc:case tc:case oc:case ic:case x2:return e;default:switch(e=e&&e.$$typeof,e){case rc:case lc:case pc:case sc:return e;case ac:return e;default:return t}}case mW:return t}}}Wt.ContextConsumer=ac,Wt.ContextProvider=rc,Wt.Element=hW,Wt.ForwardRef=lc,Wt.Fragment=ec,Wt.Lazy=pc,Wt.Memo=sc,Wt.Portal=mW,Wt.Profiler=nc,Wt.StrictMode=tc,Wt.Suspense=oc,Wt.SuspenseList=ic,Wt.isContextConsumer=function(e){return Aa(e)===ac},Wt.isContextProvider=function(e){return Aa(e)===rc},Wt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hW},Wt.isForwardRef=function(e){return Aa(e)===lc},Wt.isFragment=function(e){return Aa(e)===ec},Wt.isLazy=function(e){return Aa(e)===pc},Wt.isMemo=function(e){return Aa(e)===sc},Wt.isPortal=function(e){return Aa(e)===mW},Wt.isProfiler=function(e){return Aa(e)===nc},Wt.isStrictMode=function(e){return Aa(e)===tc},Wt.isSuspense=function(e){return Aa(e)===oc},Wt.isSuspenseList=function(e){return Aa(e)===ic},Wt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ec||e===nc||e===tc||e===oc||e===ic||typeof e=="object"&&e!==null&&(e.$$typeof===pc||e.$$typeof===sc||e.$$typeof===rc||e.$$typeof===ac||e.$$typeof===lc||e.$$typeof===E2||e.getModuleId!==void 0)},Wt.typeOf=Aa,C1.exports=Wt;var v1=C1.exports;const b2=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function y1(e){const t=`${e}`.match(b2);return t&&t[1]||""}function S1(e,t=""){return e.displayName||e.name||y1(e)||t}function I1(e,t,n){const a=S1(t);return e.displayName||(a!==""?`${n}(${a})`:n)}function k2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return S1(e,"Component");if(typeof e=="object")switch(e.$$typeof){case v1.ForwardRef:return I1(e,e.render,"ForwardRef");case v1.Memo:return I1(e,e.type,"memo");default:return}}}const w2=Object.freeze(Object.defineProperty({__proto__:null,default:k2,getFunctionName:y1},Symbol.toStringTag,{value:"Module"})),R2=["ownerState"],B2=["variants"],L2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function M2(e){return Object.keys(e).length===0}function Q2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function CW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function x1(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const V2=us(),U2=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function uc({defaultTheme:e,theme:t,themeId:n}){return M2(t)?e:t[n]||t}function F2(e){return e?(t,n)=>n[e]:null}function cc(e,t,n){let{ownerState:a}=t,r=se(t,R2);const l=typeof e=="function"?e(I({ownerState:a},r)):e;if(Array.isArray(l))return l.flatMap(o=>cc(o,I({ownerState:a},r),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:o=[]}=l;let s=se(l,B2);return o.forEach(p=>{let u=!0;if(typeof p.props=="function"?u=p.props(I({ownerState:a},r,a)):Object.keys(p.props).forEach(c=>{(a==null?void 0:a[c])!==p.props[c]&&r[c]!==p.props[c]&&(u=!1)}),u){Array.isArray(s)||(s=[s]);const c=typeof p.style=="function"?p.style(I({ownerState:a},r,a)):p.style;s.push(n?x1(Ju(c),n):c)}}),s}return n?x1(Ju(l),n):l}function z2(e={}){const{themeId:t,defaultTheme:n=V2,rootShouldForwardProp:a=CW,slotShouldForwardProp:r=CW}=e,l=o=>Uo(I({},o,{theme:uc(I({},o,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(o,i={})=>{o1(o,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:p,skipVariantsResolver:u,skipSx:c,overridesResolver:d=F2(U2(p))}=i,f=se(i,L2),W=s&&s.startsWith("Mui")||p?"components":"custom",m=u!==void 0?u:p&&p!=="Root"&&p!=="root"||!1,x=c||!1;let h,g=CW;p==="Root"||p==="root"?g=a:p?g=r:Q2(o)&&(g=void 0);const C=sW(o,I({shouldForwardProp:g,label:h},f)),y=S=>typeof S=="function"&&S.__emotion_real!==S||mr(S)?k=>{const R=uc({theme:k.theme,defaultTheme:n,themeId:t});return cc(S,I({},k,{theme:R}),R.modularCssLayers?W:void 0)}:S,E=(S,...k)=>{let R=y(S);const V=k?k.map(y):[];s&&d&&V.push(M=>{const F=uc(I({},M,{defaultTheme:n,themeId:t}));if(!F.components||!F.components[s]||!F.components[s].styleOverrides)return null;const z=F.components[s].styleOverrides,T={};return Object.entries(z).forEach(([j,P])=>{T[j]=cc(P,I({},M,{theme:F}),F.modularCssLayers?"theme":void 0)}),d(M,T)}),s&&!m&&V.push(M=>{var F;const z=uc(I({},M,{defaultTheme:n,themeId:t})),T=z==null||(F=z.components)==null||(F=F[s])==null?void 0:F.variants;return cc({variants:T},I({},M,{theme:z}),z.modularCssLayers?"theme":void 0)}),x||V.push(l);const b=V.length-k.length;if(Array.isArray(S)&&b>0){const M=new Array(b).fill("");R=[...S,...M],R.raw=[...S.raw,...M]}const B=C(R,...V);return o.muiName&&(B.muiName=o.muiName),B};return C.withConfig&&(E.withConfig=C.withConfig),E}}const q2=z2();function As(e,t){const n=I({},t);return Object.keys(e).forEach(a=>{if(a.toString().match(/^(components|slots)$/))n[a]=I({},e[a],n[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const r=e[a]||{},l=t[a];n[a]={},!l||!Object.keys(l)?n[a]=r:!r||!Object.keys(r)?n[a]=l:(n[a]=I({},l),Object.keys(r).forEach(o=>{n[a][o]=As(r[o],l[o])}))}else n[a]===void 0&&(n[a]=e[a])}),n}function E1(e){const{theme:t,name:n,props:a}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?a:As(t.components[n].defaultProps,a)}function j2({props:e,name:t,defaultTheme:n,themeId:a}){let r=$u(n);return a&&(r=r[a]||r),E1({theme:r,name:t,props:e})}const da=typeof window<"u"?v.useLayoutEffect:v.useEffect;function T2(e,t,n,a,r){const[l,o]=v.useState(()=>r&&n?n(e).matches:a?a(e).matches:t);return da(()=>{let i=!0;if(!n)return;const s=n(e),p=()=>{i&&o(s.matches)};return p(),s.addListener(p),()=>{i=!1,s.removeListener(p)}},[e,n]),l}const b1=v.useSyncExternalStore;function O2(e,t,n,a,r){const l=v.useCallback(()=>t,[t]),o=v.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(a!==null){const{matches:u}=a(e);return()=>u}return l},[l,e,a,r,n]),[i,s]=v.useMemo(()=>{if(n===null)return[l,()=>()=>{}];const u=n(e);return[()=>u.matches,c=>(u.addListener(c),()=>{u.removeListener(c)})]},[l,n,e]);return b1(s,i,o)}function vW(e,t={}){const n=_u(),a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:r=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:i=!1}=E1({name:"MuiUseMediaQuery",props:t,theme:n});let s=typeof e=="function"?e(n):e;return s=s.replace(/^@media( ?)/m,""),(b1!==void 0?O2:T2)(s,r,l,o,i)}function k1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const K2=Object.freeze(Object.defineProperty({__proto__:null,default:k1},Symbol.toStringTag,{value:"Module"}));function P2(e,t=0,n=1){return k1(e,t,n)}function J2(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(a=>a+a)),n?`rgb${n.length===4?"a":""}(${n.map((a,r)=>r<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function w1(e){if(e.type)return e;if(e.charAt(0)==="#")return w1(J2(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(hr(9,e));let a=e.substring(t+1,e.length-1),r;if(n==="color"){if(a=a.split(" "),r=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(hr(10,r))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:n,values:a,colorSpace:r}}function D2(e){const{type:t,colorSpace:n}=e;let{values:a}=e;return t.indexOf("rgb")!==-1?a=a.map((r,l)=>l<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.indexOf("color")!==-1?a=`${n} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function un(e,t){return e=w1(e),t=P2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,D2(e)}function Ac(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function dc(e,t=166){let n;function a(...r){const l=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(l,t)}return a.clear=()=>{clearTimeout(n)},a}function Y2(e,t){return()=>null}function fc(e,t){var n,a;return v.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(a=e.type)==null||(a=a._payload)==null||(a=a.value)==null?void 0:a.muiName)!==-1}function cn(e){return e&&e.ownerDocument||document}function Ga(e){return cn(e).defaultView||window}function Z2(e,t){return()=>null}function ds(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let R1=0;function N2(e){const[t,n]=v.useState(e),a=e||t;return v.useEffect(()=>{t==null&&(R1+=1,n(`mui-${R1}`))},[t]),a}const B1=wA.useId;function Hr(e){if(B1!==void 0){const t=B1();return e??t}return N2(e)}function G2(e,t,n,a,r){return null}function Cr({controlled:e,default:t,name:n,state:a="value"}){const{current:r}=v.useRef(e!==void 0),[l,o]=v.useState(t),i=r?e:l,s=v.useCallback(p=>{r||o(p)},[]);return[i,s]}function Bn(e){const t=v.useRef(e);return da(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function Mt(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ds(n,t)})},e)}const L1={};function H2(e,t){const n=v.useRef(L1);return n.current===L1&&(n.current=e(t)),n}const X2=[];function _2(e){v.useEffect(e,X2)}class fs{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new fs}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Fo(){const e=H2(fs.create).current;return _2(e.disposeEffect),e}let Wc=!0,yW=!1;const $2=new fs,eL={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 tL(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&eL[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function nL(e){e.metaKey||e.altKey||e.ctrlKey||(Wc=!0)}function SW(){Wc=!1}function aL(){this.visibilityState==="hidden"&&yW&&(Wc=!0)}function rL(e){e.addEventListener("keydown",nL,!0),e.addEventListener("mousedown",SW,!0),e.addEventListener("pointerdown",SW,!0),e.addEventListener("touchstart",SW,!0),e.addEventListener("visibilitychange",aL,!0)}function lL(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Wc||tL(t)}function IW(){const e=v.useCallback(r=>{r!=null&&rL(r.ownerDocument)},[]),t=v.useRef(!1);function n(){return t.current?(yW=!0,$2.start(100,()=>{yW=!1}),t.current=!1,!0):!1}function a(r){return lL(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:a,onBlur:n,ref:e}}function M1(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const oL=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current};function Re(e,t,n=void 0){const a={};return Object.keys(e).forEach(r=>{a[r]=e[r].reduce((l,o)=>{if(o){const i=t(o);i!==""&&l.push(i),n&&n[o]&&l.push(n[o])}return l},[]).join(" ")}),a}function gc(e){return typeof e=="string"}function zo(e,t,n){return e===void 0||gc(e)?t:I({},t,{ownerState:I({},t.ownerState,n)})}function Q1(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{n[a]=e[a]}),n}function V1(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 U1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:a,externalForwardedProps:r,className:l}=e;if(!t){const f=Ae(n==null?void 0:n.className,l,r==null?void 0:r.className,a==null?void 0:a.className),W=I({},n==null?void 0:n.style,r==null?void 0:r.style,a==null?void 0:a.style),m=I({},n,r,a);return f.length>0&&(m.className=f),Object.keys(W).length>0&&(m.style=W),{props:m,internalRef:void 0}}const o=Q1(I({},r,a)),i=V1(a),s=V1(r),p=t(o),u=Ae(p==null?void 0:p.className,n==null?void 0:n.className,l,r==null?void 0:r.className,a==null?void 0:a.className),c=I({},p==null?void 0:p.style,n==null?void 0:n.style,r==null?void 0:r.style,a==null?void 0:a.style),d=I({},p,n,s,i);return u.length>0&&(d.className=u),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:p.ref}}function F1(e,t,n){return typeof e=="function"?e(t,n):e}const iL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kl(e){var t;const{elementType:n,externalSlotProps:a,ownerState:r,skipResolvingSlotProps:l=!1}=e,o=se(e,iL),i=l?{}:F1(a,r),{props:s,internalRef:p}=U1(I({},o,{externalSlotProps:i})),u=Mt(p,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return zo(n,I({},s,{ref:u}),r)}function wl(e){if(parseInt(v.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const z1=v.createContext(null);function q1(){return v.useContext(z1)}const sL=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function pL(e,t){return typeof t=="function"?t(e):I({},e,t)}function uL(e){const{children:t,theme:n}=e,a=q1(),r=v.useMemo(()=>{const l=a===null?n:pL(a,n);return l!=null&&(l[sL]=a!==null),l},[n,a]);return A.jsx(z1.Provider,{value:r,children:t})}const cL=["value"],j1=v.createContext();function AL(e){let{value:t}=e,n=se(e,cL);return A.jsx(j1.Provider,I({value:t??!0},n))}const T1=()=>{const e=v.useContext(j1);return e??!1},O1=v.createContext(void 0);function dL({value:e,children:t}){return A.jsx(O1.Provider,{value:e,children:t})}function fL(e){const{theme:t,name:n,props:a}=e;if(!t||!t.components||!t.components[n])return a;const r=t.components[n];return r.defaultProps?As(r.defaultProps,a):!r.styleOverrides&&!r.variants?As(r,a):a}function WL({props:e,name:t}){const n=v.useContext(O1);return fL({props:e,name:t,theme:{components:n}})}function gL(e){const t=_u(),n=Hr()||"",{modularCssLayers:a}=e;let r="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!a||t!==null?r="":typeof a=="string"?r=a.replace(/mui(?!\.)/g,r):r=`@layer ${r};`,da(()=>{const l=document.querySelector("head");if(!l)return;const o=l.firstChild;if(r){var i;if(o&&(i=o.hasAttribute)!=null&&i.call(o,"data-mui-layer-order")&&o.getAttribute("data-mui-layer-order")===n)return;const p=document.createElement("style");p.setAttribute("data-mui-layer-order",n),p.textContent=r,l.prepend(p)}else{var s;(s=l.querySelector(`style[data-mui-layer-order="${n}"]`))==null||s.remove()}},[r,n]),r?A.jsx(g1,{styles:r}):null}const K1={};function P1(e,t,n,a=!1){return v.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const l=n(r),o=e?I({},t,{[e]:l}):l;return a?()=>o:o}return e?I({},t,{[e]:n}):I({},t,n)},[e,t,n,a])}function hL(e){const{children:t,theme:n,themeId:a}=e,r=_u(K1),l=q1()||K1,o=P1(a,r,n),i=P1(a,l,n,!0),s=o.direction==="rtl",p=gL(o);return A.jsx(uL,{theme:i,children:A.jsx(Eo.Provider,{value:o,children:A.jsx(AL,{value:s,children:A.jsxs(dL,{value:o==null?void 0:o.components,children:[p,t]})})})})}const mL=["component","direction","spacing","divider","children","className","useFlexGap"],CL=us(),vL=q2("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function yL(e){return j2({props:e,name:"MuiStack",defaultTheme:CL})}function SL(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((a,r,l)=>(a.push(r),l<n.length-1&&a.push(v.cloneElement(t,{key:`separator-${l}`})),a),[])}const IL=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],xL=({ownerState:e,theme:t})=>{let n=I({display:"flex",flexDirection:"column"},Rn({theme:t},El({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=dW(t),r=Object.keys(t.breakpoints.values).reduce((s,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(s[p]=!0),s),{}),l=El({values:e.direction,base:r}),o=El({values:e.spacing,base:r});typeof l=="object"&&Object.keys(l).forEach((s,p,u)=>{if(!l[s]){const d=p>0?l[u[p-1]]:"column";l[s]=d}}),n=mn(n,Rn({theme:t},o,(s,p)=>e.useFlexGap?{gap:bl(a,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${IL(p?l[p]:e.direction)}`]:bl(a,s)}}))}return n=b7(t.breakpoints,n),n};function EL(e={}){const{createStyledComponent:t=vL,useThemeProps:n=yL,componentName:a="MuiStack"}=e,r=()=>Re({root:["root"]},s=>ke(a,s),{}),l=t(xL);return v.forwardRef(function(s,p){const u=n(s),c=cs(u),{component:d="div",direction:f="column",spacing:W=0,divider:m,children:x,className:h,useFlexGap:g=!1}=c,C=se(c,mL),y={direction:f,spacing:W,useFlexGap:g},E=r();return A.jsx(l,I({as:d,ownerState:y,ref:p,className:Ae(E.root,h)},C,{children:m?SL(x,m):x}))})}function bL(e,t){return I({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var jt={},J1={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})(J1);var Fe=J1.exports;const kL=Ta(u7),wL=Ta(K2);var D1=Fe;Object.defineProperty(jt,"__esModule",{value:!0});var Ct=jt.alpha=H1;jt.blend=jL,jt.colorChannel=void 0;var xW=jt.darken=kW;jt.decomposeColor=fa,jt.emphasize=X1;var RL=jt.getContrastRatio=VL;jt.getLuminance=hc,jt.hexToRgb=Z1,jt.hslToRgb=G1;var EW=jt.lighten=wW;jt.private_safeAlpha=UL,jt.private_safeColorChannel=void 0,jt.private_safeDarken=FL,jt.private_safeEmphasize=qL,jt.private_safeLighten=zL,jt.recomposeColor=qo,jt.rgbToHex=QL;var Y1=D1(kL),BL=D1(wL);function bW(e,t=0,n=1){return(0,BL.default)(e,t,n)}function Z1(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(a=>a+a)),n?`rgb${n.length===4?"a":""}(${n.map((a,r)=>r<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function LL(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function fa(e){if(e.type)return e;if(e.charAt(0)==="#")return fa(Z1(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Y1.default)(9,e));let a=e.substring(t+1,e.length-1),r;if(n==="color"){if(a=a.split(" "),r=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error((0,Y1.default)(10,r))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:n,values:a,colorSpace:r}}const N1=e=>{const t=fa(e);return t.values.slice(0,3).map((n,a)=>t.type.indexOf("hsl")!==-1&&a!==0?`${n}%`:n).join(" ")};jt.colorChannel=N1;const ML=(e,t)=>{try{return N1(e)}catch{return e}};jt.private_safeColorChannel=ML;function qo(e){const{type:t,colorSpace:n}=e;let{values:a}=e;return t.indexOf("rgb")!==-1?a=a.map((r,l)=>l<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.indexOf("color")!==-1?a=`${n} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function QL(e){if(e.indexOf("#")===0)return e;const{values:t}=fa(e);return`#${t.map((n,a)=>LL(a===3?Math.round(255*n):n)).join("")}`}function G1(e){e=fa(e);const{values:t}=e,n=t[0],a=t[1]/100,r=t[2]/100,l=a*Math.min(r,1-r),o=(p,u=(p+n/30)%12)=>r-l*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const s=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(i+="a",s.push(t[3])),qo({type:i,values:s})}function hc(e){e=fa(e);let t=e.type==="hsl"||e.type==="hsla"?fa(G1(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 VL(e,t){const n=hc(e),a=hc(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function H1(e,t){return e=fa(e),t=bW(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qo(e)}function UL(e,t,n){try{return H1(e,t)}catch{return e}}function kW(e,t){if(e=fa(e),t=bW(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 qo(e)}function FL(e,t,n){try{return kW(e,t)}catch{return e}}function wW(e,t){if(e=fa(e),t=bW(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 qo(e)}function zL(e,t,n){try{return wW(e,t)}catch{return e}}function X1(e,t=.15){return hc(e)>.5?kW(e,t):wW(e,t)}function qL(e,t,n){try{return X1(e,t)}catch{return e}}function jL(e,t,n,a=1){const r=(s,p)=>Math.round((s**(1/a)*(1-n)+p**(1/a)*n)**a),l=fa(e),o=fa(t),i=[r(l.values[0],o.values[0]),r(l.values[1],o.values[1]),r(l.values[2],o.values[2])];return qo({type:"rgb",values:i})}const TL=["mode","contrastThreshold","tonalOffset"],_1={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:ls.white,default:ls.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}},RW={text:{primary:ls.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:ls.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 $1(e,t,n,a){const r=a.light||a,l=a.dark||a*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=EW(e.main,r):t==="dark"&&(e.dark=xW(e.main,l)))}function OL(e="light"){return e==="dark"?{main:Bo[200],light:Bo[50],dark:Bo[400]}:{main:Bo[700],light:Bo[400],dark:Bo[800]}}function KL(e="light"){return e==="dark"?{main:Ro[200],light:Ro[50],dark:Ro[400]}:{main:Ro[500],light:Ro[300],dark:Ro[700]}}function PL(e="light"){return e==="dark"?{main:wo[500],light:wo[300],dark:wo[700]}:{main:wo[700],light:wo[400],dark:wo[800]}}function JL(e="light"){return e==="dark"?{main:Lo[400],light:Lo[300],dark:Lo[700]}:{main:Lo[700],light:Lo[500],dark:Lo[900]}}function DL(e="light"){return e==="dark"?{main:Mo[400],light:Mo[300],dark:Mo[700]}:{main:Mo[800],light:Mo[500],dark:Mo[900]}}function YL(e="light"){return e==="dark"?{main:os[400],light:os[300],dark:os[700]}:{main:"#ed6c02",light:os[500],dark:os[900]}}function ZL(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,r=se(e,TL),l=e.primary||OL(t),o=e.secondary||KL(t),i=e.error||PL(t),s=e.info||JL(t),p=e.success||DL(t),u=e.warning||YL(t);function c(m){return RL(m,RW.text.primary)>=n?RW.text.primary:_1.text.primary}const d=({color:m,name:x,mainShade:h=500,lightShade:g=300,darkShade:C=700})=>{if(m=I({},m),!m.main&&m[h]&&(m.main=m[h]),!m.hasOwnProperty("main"))throw new Error(hr(11,x?` (${x})`:"",h));if(typeof m.main!="string")throw new Error(hr(12,x?` (${x})`:"",JSON.stringify(m.main)));return $1(m,"light",g,a),$1(m,"dark",C,a),m.contrastText||(m.contrastText=c(m.main)),m},f={dark:RW,light:_1};return mn(I({common:I({},ls),mode:t,primary:d({color:l,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:i,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:p,name:"success"}),grey:p7,contrastThreshold:n,getContrastText:c,augmentColor:d,tonalOffset:a},f[t]),r)}const NL=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function GL(e){return Math.round(e*1e5)/1e5}const eS={textTransform:"uppercase"},tS='"Roboto", "Helvetica", "Arial", sans-serif';function HL(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:a=tS,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:o=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:p=16,allVariants:u,pxToRem:c}=n,d=se(n,NL),f=r/14,W=c||(h=>`${h/p*f}rem`),m=(h,g,C,y,E)=>I({fontFamily:a,fontWeight:h,fontSize:W(g),lineHeight:C},a===tS?{letterSpacing:`${GL(y/g)}em`}:{},E,u),x={h1:m(l,96,1.167,-1.5),h2:m(l,60,1.2,-.5),h3:m(o,48,1.167,0),h4:m(o,34,1.235,.25),h5:m(o,24,1.334,0),h6:m(i,20,1.6,.15),subtitle1:m(o,16,1.75,.15),subtitle2:m(i,14,1.57,.1),body1:m(o,16,1.5,.15),body2:m(o,14,1.43,.15),button:m(i,14,1.75,.4,eS),caption:m(o,12,1.66,.4),overline:m(o,12,2.66,1,eS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mn(I({htmlFontSize:p,pxToRem:W,fontFamily:a,fontSize:r,fontWeightLight:l,fontWeightRegular:o,fontWeightMedium:i,fontWeightBold:s},x),d,{clone:!1})}const XL=.2,_L=.14,$L=.12;function Et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${XL})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${_L})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$L})`].join(",")}const eM=["none",Et(0,2,1,-1,0,1,1,0,0,1,3,0),Et(0,3,1,-2,0,2,2,0,0,1,5,0),Et(0,3,3,-2,0,3,4,0,0,1,8,0),Et(0,2,4,-1,0,4,5,0,0,1,10,0),Et(0,3,5,-1,0,5,8,0,0,1,14,0),Et(0,3,5,-1,0,6,10,0,0,1,18,0),Et(0,4,5,-2,0,7,10,1,0,2,16,1),Et(0,5,5,-3,0,8,10,1,0,3,14,2),Et(0,5,6,-3,0,9,12,1,0,3,16,2),Et(0,6,6,-3,0,10,14,1,0,4,18,3),Et(0,6,7,-4,0,11,15,1,0,4,20,3),Et(0,7,8,-4,0,12,17,2,0,5,22,4),Et(0,7,8,-4,0,13,19,2,0,5,24,4),Et(0,7,9,-4,0,14,21,2,0,5,26,4),Et(0,8,9,-5,0,15,22,2,0,6,28,5),Et(0,8,10,-5,0,16,24,2,0,6,30,5),Et(0,8,11,-5,0,17,26,2,0,6,32,5),Et(0,9,11,-5,0,18,28,2,0,7,34,6),Et(0,9,12,-6,0,19,29,2,0,7,36,6),Et(0,10,13,-6,0,20,31,3,0,8,38,7),Et(0,10,13,-6,0,21,33,3,0,8,40,7),Et(0,10,14,-6,0,22,35,3,0,8,42,7),Et(0,11,14,-7,0,23,36,3,0,9,44,8),Et(0,11,15,-7,0,24,38,3,0,9,46,8)],tM=["duration","easing","delay"],nM={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)"},aM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nS(e){return`${Math.round(e)}ms`}function rM(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function lM(e){const t=I({},nM,e.easing),n=I({},aM,e.duration);return I({getAutoHeightDuration:rM,create:(r=["all"],l={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:s=0}=l;return se(l,tM),(Array.isArray(r)?r:[r]).map(p=>`${p} ${typeof o=="string"?o:nS(o)} ${i} ${typeof s=="string"?s:nS(s)}`).join(",")}},e,{easing:t,duration:n})}const oM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iM=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function BW(e={},...t){const{mixins:n={},palette:a={},transitions:r={},typography:l={}}=e,o=se(e,iM);if(e.vars&&e.generateCssVars===void 0)throw new Error(hr(18));const i=ZL(a),s=us(e);let p=mn(s,{mixins:bL(s.breakpoints,n),palette:i,shadows:eM.slice(),typography:HL(i,l),transitions:lM(r),zIndex:I({},oM)});return p=mn(p,o),p=t.reduce((u,c)=>mn(u,c),p),p.unstable_sxConfig=I({},ps,o==null?void 0:o.unstable_sxConfig),p.unstable_sx=function(c){return Uo({sx:c,theme:this})},p}function sM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function pM(e){return parseFloat(e)}const LW=BW();function vr(){const e=$u(LW);return e[Qo]||e}var Ws={};const uM=Ta(GB);var MW={exports:{}},aS;function rS(){return aS||(aS=1,function(e){function t(n,a){if(n==null)return{};var r={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(a.indexOf(l)!==-1)continue;r[l]=n[l]}return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(MW)),MW.exports}const lS=Ta(y7),cM=Ta(S7),AM=Ta(w7),dM=Ta(w2),fM=Ta(W2),WM=Ta(v2);var jo=Fe;Object.defineProperty(Ws,"__esModule",{value:!0});var gM=Ws.default=RM;Ws.shouldForwardProp=Cc,Ws.systemDefaultTheme=void 0;var Wa=jo(uM),QW=jo(rS()),mc=IM(lS),hM=cM;jo(AM),jo(dM);var mM=jo(fM),CM=jo(WM);const vM=["ownerState"],yM=["variants"],SM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oS=function(a){return a?n:t})(e)}function IM(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oS(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}function xM(e){return Object.keys(e).length===0}function EM(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function iS(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const bM=Ws.systemDefaultTheme=(0,mM.default)(),kM=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function vc({defaultTheme:e,theme:t,themeId:n}){return xM(t)?e:t[n]||t}function wM(e){return e?(t,n)=>n[e]:null}function yc(e,t,n){let{ownerState:a}=t,r=(0,QW.default)(t,vM);const l=typeof e=="function"?e((0,Wa.default)({ownerState:a},r)):e;if(Array.isArray(l))return l.flatMap(o=>yc(o,(0,Wa.default)({ownerState:a},r),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:o=[]}=l;let s=(0,QW.default)(l,yM);return o.forEach(p=>{let u=!0;if(typeof p.props=="function"?u=p.props((0,Wa.default)({ownerState:a},r,a)):Object.keys(p.props).forEach(c=>{(a==null?void 0:a[c])!==p.props[c]&&r[c]!==p.props[c]&&(u=!1)}),u){Array.isArray(s)||(s=[s]);const c=typeof p.style=="function"?p.style((0,Wa.default)({ownerState:a},r,a)):p.style;s.push(n?iS((0,mc.internal_serializeStyles)(c),n):c)}}),s}return n?iS((0,mc.internal_serializeStyles)(l),n):l}function RM(e={}){const{themeId:t,defaultTheme:n=bM,rootShouldForwardProp:a=Cc,slotShouldForwardProp:r=Cc}=e,l=o=>(0,CM.default)((0,Wa.default)({},o,{theme:vc((0,Wa.default)({},o,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(o,i={})=>{(0,mc.internal_processStyles)(o,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:p,skipVariantsResolver:u,skipSx:c,overridesResolver:d=wM(kM(p))}=i,f=(0,QW.default)(i,SM),W=s&&s.startsWith("Mui")||p?"components":"custom",m=u!==void 0?u:p&&p!=="Root"&&p!=="root"||!1,x=c||!1;let h,g=Cc;p==="Root"||p==="root"?g=a:p?g=r:EM(o)&&(g=void 0);const C=(0,mc.default)(o,(0,Wa.default)({shouldForwardProp:g,label:h},f)),y=S=>typeof S=="function"&&S.__emotion_real!==S||(0,hM.isPlainObject)(S)?k=>{const R=vc({theme:k.theme,defaultTheme:n,themeId:t});return yc(S,(0,Wa.default)({},k,{theme:R}),R.modularCssLayers?W:void 0)}:S,E=(S,...k)=>{let R=y(S);const V=k?k.map(y):[];s&&d&&V.push(M=>{const F=vc((0,Wa.default)({},M,{defaultTheme:n,themeId:t}));if(!F.components||!F.components[s]||!F.components[s].styleOverrides)return null;const z=F.components[s].styleOverrides,T={};return Object.entries(z).forEach(([j,P])=>{T[j]=yc(P,(0,Wa.default)({},M,{theme:F}),F.modularCssLayers?"theme":void 0)}),d(M,T)}),s&&!m&&V.push(M=>{var F;const z=vc((0,Wa.default)({},M,{defaultTheme:n,themeId:t})),T=z==null||(F=z.components)==null||(F=F[s])==null?void 0:F.variants;return yc({variants:T},(0,Wa.default)({},M,{theme:z}),z.modularCssLayers?"theme":void 0)}),x||V.push(l);const b=V.length-k.length;if(Array.isArray(S)&&b>0){const M=new Array(b).fill("");R=[...S,...M],R.raw=[...S.raw,...M]}const B=C(R,...V);return o.muiName&&(B.muiName=o.muiName),B};return C.withConfig&&(E.withConfig=C.withConfig),E}}function sS(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cn=e=>sS(e)&&e!=="classes",$=gM({themeId:Qo,defaultTheme:LW,rootShouldForwardProp:Cn}),BM=["theme"];function LM(e){let{theme:t}=e,n=se(e,BM);const a=t[Qo];let r=a||t;return typeof t!="function"&&(a&&!a.vars?r=I({},a,{vars:null}):t&&!t.vars&&(r=I({},t,{vars:null}))),A.jsx(hL,I({},n,{themeId:a?Qo:void 0,theme:r}))}const pS=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Le(e){return WL(e)}function MM(e){return ke("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QM=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],VM=e=>{const{color:t,fontSize:n,classes:a}=e,r={root:["root",t!=="inherit"&&`color${ee(t)}`,`fontSize${ee(n)}`]};return Re(r,MM,a)},UM=$("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ee(n.color)}`],t[`fontSize${ee(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,a,r,l,o,i,s,p,u,c,d,f,W;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(a=n.create)==null?void 0:a.call(n,"fill",{duration:(r=e.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(o=l.pxToRem)==null?void 0:o.call(l,20))||"1.25rem",medium:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,24))||"1.5rem",large:((p=e.typography)==null||(u=p.pxToRem)==null?void 0:u.call(p,35))||"2.1875rem"}[t.fontSize],color:(c=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?c:{action:(f=(e.vars||e).palette)==null||(f=f.action)==null?void 0:f.active,disabled:(W=(e.vars||e).palette)==null||(W=W.action)==null?void 0:W.disabled,inherit:void 0}[t.color]}}),Sc=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiSvgIcon"}),{children:r,className:l,color:o="inherit",component:i="svg",fontSize:s="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=a,f=se(a,QM),W=v.isValidElement(r)&&r.type==="svg",m=I({},a,{color:o,component:i,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:W}),x={};u||(x.viewBox=d);const h=VM(m);return A.jsxs(UM,I({as:i,className:Ae(h.root,l),focusable:"false",color:p,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:n},x,f,W&&r.props,{ownerState:m,children:[W?r.props.children:r,c?A.jsx("title",{children:c}):null]}))});Sc.muiName="SvgIcon";function $t(e,t){function n(a,r){return A.jsx(Sc,I({"data-testid":`${t}Icon`,ref:r},a,{children:e}))}return n.muiName=Sc.muiName,v.memo(v.forwardRef(n))}const FM=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ee,createChainedFunction:Ac,createSvgIcon:$t,debounce:dc,deprecatedPropType:Y2,isMuiElement:fc,ownerDocument:cn,ownerWindow:Ga,requirePropFactory:Z2,setRef:ds,unstable_ClassNameGenerator:{configure:e=>{gW.configure(e)}},unstable_useEnhancedEffect:da,unstable_useId:Hr,unsupportedProp:G2,useControlled:Cr,useEventCallback:Bn,useForkRef:Mt,useIsFocusVisible:IW},Symbol.toStringTag,{value:"Module"}));function VW(e,t){return VW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},VW(e,t)}function uS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,VW(e,t)}const cS={disabled:!1},Ic=ht.createContext(null);var zM=function(t){return t.scrollTop},gs="unmounted",Rl="exited",Bl="entering",To="entered",UW="exiting",Va=function(e){uS(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var o=r,i=o&&!o.isMounting?a.enter:a.appear,s;return l.appearStatus=null,a.in?i?(s=Rl,l.appearStatus=Bl):s=To:a.unmountOnExit||a.mountOnEnter?s=gs:s=Rl,l.state={status:s},l.nextCallback=null,l}t.getDerivedStateFromProps=function(r,l){var o=r.in;return o&&l.status===gs?{status:Rl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var l=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==Bl&&o!==To&&(l=Bl):(o===Bl||o===To)&&(l=UW)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,l,o,i;return l=o=i=r,r!=null&&typeof r!="number"&&(l=r.exit,o=r.enter,i=r.appear!==void 0?r.appear:o),{exit:l,enter:o,appear:i}},n.updateStatus=function(r,l){if(r===void 0&&(r=!1),l!==null)if(this.cancelNextCallback(),l===Bl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:hu.findDOMNode(this);o&&zM(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rl&&this.setState({status:gs})},n.performEnter=function(r){var l=this,o=this.props.enter,i=this.context?this.context.isMounting:r,s=this.props.nodeRef?[i]:[hu.findDOMNode(this),i],p=s[0],u=s[1],c=this.getTimeouts(),d=i?c.appear:c.enter;if(!r&&!o||cS.disabled){this.safeSetState({status:To},function(){l.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:Bl},function(){l.props.onEntering(p,u),l.onTransitionEnd(d,function(){l.safeSetState({status:To},function(){l.props.onEntered(p,u)})})})},n.performExit=function(){var r=this,l=this.props.exit,o=this.getTimeouts(),i=this.props.nodeRef?void 0:hu.findDOMNode(this);if(!l||cS.disabled){this.safeSetState({status:Rl},function(){r.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:UW},function(){r.props.onExiting(i),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:Rl},function(){r.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,l){l=this.setNextCallback(l),this.setState(r,l)},n.setNextCallback=function(r){var l=this,o=!0;return this.nextCallback=function(i){o&&(o=!1,l.nextCallback=null,r(i))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(r,l){this.setNextCallback(l);var o=this.props.nodeRef?this.props.nodeRef.current:hu.findDOMNode(this),i=r==null&&!this.props.addEndListener;if(!o||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],p=s[0],u=s[1];this.props.addEndListener(p,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===gs)return null;var l=this.props,o=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var i=se(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ht.createElement(Ic.Provider,{value:null},typeof o=="function"?o(r,i):ht.cloneElement(ht.Children.only(o),i))},t}(ht.Component);Va.contextType=Ic,Va.propTypes={};function Oo(){}Va.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Oo,onEntering:Oo,onEntered:Oo,onExit:Oo,onExiting:Oo,onExited:Oo},Va.UNMOUNTED=gs,Va.EXITED=Rl,Va.ENTERING=Bl,Va.ENTERED=To,Va.EXITING=UW;function qM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FW(e,t){var n=function(l){return t&&v.isValidElement(l)?t(l):l},a=Object.create(null);return e&&v.Children.map(e,function(r){return r}).forEach(function(r){a[r.key]=n(r)}),a}function jM(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var a=Object.create(null),r=[];for(var l in e)l in t?r.length&&(a[l]=r,r=[]):r.push(l);var o,i={};for(var s in t){if(a[s])for(o=0;o<a[s].length;o++){var p=a[s][o];i[a[s][o]]=n(p)}i[s]=n(s)}for(o=0;o<r.length;o++)i[r[o]]=n(r[o]);return i}function Ll(e,t,n){return n[t]!=null?n[t]:e.props[t]}function TM(e,t){return FW(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ll(n,"appear",e),enter:Ll(n,"enter",e),exit:Ll(n,"exit",e)})})}function OM(e,t,n){var a=FW(e.children),r=jM(t,a);return Object.keys(r).forEach(function(l){var o=r[l];if(v.isValidElement(o)){var i=l in t,s=l in a,p=t[l],u=v.isValidElement(p)&&!p.props.in;s&&(!i||u)?r[l]=v.cloneElement(o,{onExited:n.bind(null,o),in:!0,exit:Ll(o,"exit",e),enter:Ll(o,"enter",e)}):!s&&i&&!u?r[l]=v.cloneElement(o,{in:!1}):s&&i&&v.isValidElement(p)&&(r[l]=v.cloneElement(o,{onExited:n.bind(null,o),in:p.props.in,exit:Ll(o,"exit",e),enter:Ll(o,"enter",e)}))}}),r}var KM=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},PM={component:"div",childFactory:function(t){return t}},zW=function(e){uS(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var o=l.handleExited.bind(qM(l));return l.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},l}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(r,l){var o=l.children,i=l.handleExited,s=l.firstRender;return{children:s?TM(r,i):OM(r,o,i),firstRender:!1}},n.handleExited=function(r,l){var o=FW(this.props.children);r.key in o||(r.props.onExited&&r.props.onExited(l),this.mounted&&this.setState(function(i){var s=I({},i.children);return delete s[r.key],{children:s}}))},n.render=function(){var r=this.props,l=r.component,o=r.childFactory,i=se(r,["component","childFactory"]),s=this.state.contextValue,p=KM(this.state.children).map(o);return delete i.appear,delete i.enter,delete i.exit,l===null?ht.createElement(Ic.Provider,{value:s},p):ht.createElement(Ic.Provider,{value:s},ht.createElement(l,i,p))},t}(ht.Component);zW.propTypes={},zW.defaultProps=PM;const qW=e=>e.scrollTop;function Ko(e,t){var n,a;const{timeout:r,easing:l,style:o={}}=e;return{duration:(n=o.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(a=o.transitionTimingFunction)!=null?a:typeof l=="object"?l[t.mode]:l,delay:o.transitionDelay}}function JM(e){return ke("MuiPaper",e)}we("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 DM=["className","component","elevation","square","variant"],YM=e=>{const{square:t,elevation:n,variant:a,classes:r}=e,l={root:["root",a,!t&&"rounded",a==="elevation"&&`elevation${n}`]};return Re(l,JM,r)},ZM=$("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 I({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"&&I({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ct("#fff",pS(t.elevation))}, ${Ct("#fff",pS(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Nt=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiPaper"}),{className:r,component:l="div",elevation:o=1,square:i=!1,variant:s="elevation"}=a,p=se(a,DM),u=I({},a,{component:l,elevation:o,square:i,variant:s}),c=YM(u);return A.jsx(ZM,I({as:l,ownerState:u,className:Ae(c.root,r),ref:n},p))}),NM=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],GM=["component","slots","slotProps"],HM=["component"];function jW(e,t){const{className:n,elementType:a,ownerState:r,externalForwardedProps:l,getSlotOwnerState:o,internalForwardedProps:i}=t,s=se(t,NM),{component:p,slots:u={[e]:void 0},slotProps:c={[e]:void 0}}=l,d=se(l,GM),f=u[e]||a,W=F1(c[e],r),m=U1(I({className:n},s,{externalForwardedProps:e==="root"?d:void 0,externalSlotProps:W})),{props:{component:x},internalRef:h}=m,g=se(m.props,HM),C=Mt(h,W==null?void 0:W.ref,t.ref),y=o?o(g):{},E=I({},r,y),S=e==="root"?x||p:x,k=zo(f,I({},e==="root"&&!p&&!u[e]&&i,e!=="root"&&!u[e]&&i,g,S&&{as:S},{ref:C}),E);return Object.keys(y).forEach(R=>{delete k[R]}),[f,k]}function XM(e){const{className:t,classes:n,pulsate:a=!1,rippleX:r,rippleY:l,rippleSize:o,in:i,onExited:s,timeout:p}=e,[u,c]=v.useState(!1),d=Ae(t,n.ripple,n.rippleVisible,a&&n.ripplePulsate),f={width:o,height:o,top:-(o/2)+l,left:-(o/2)+r},W=Ae(n.child,u&&n.childLeaving,a&&n.childPulsate);return!i&&!u&&c(!0),v.useEffect(()=>{if(!i&&s!=null){const m=setTimeout(s,p);return()=>{clearTimeout(m)}}},[s,i,p]),A.jsx("span",{className:d,style:f,children:A.jsx("span",{className:W})})}const ga=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_M=["center","classes","className"];let xc=e=>e,AS,dS,fS,WS;const TW=550,$M=80,eQ=Gr(AS||(AS=xc`
82
82
  0% {
83
83
  transform: scale(0);
84
84
  opacity: 0.1;
@@ -108,7 +108,7 @@ Error generating stack: `+l.message+`
108
108
  100% {
109
109
  transform: scale(1);
110
110
  }
111
- `)),aQ=_("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rQ=_(XM,{name:"MuiTouchRipple",slot:"Ripple"})(WS||(WS=xc`
111
+ `)),aQ=$("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rQ=$(XM,{name:"MuiTouchRipple",slot:"Ripple"})(WS||(WS=xc`
112
112
  opacity: 0;
113
113
  position: absolute;
114
114
 
@@ -151,8 +151,8 @@ Error generating stack: `+l.message+`
151
151
  animation-iteration-count: infinite;
152
152
  animation-delay: 200ms;
153
153
  }
154
- `),ga.rippleVisible,eQ,TW,({theme:e})=>e.transitions.easing.easeInOut,ga.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ga.child,ga.childLeaving,tQ,TW,({theme:e})=>e.transitions.easing.easeInOut,ga.childPulsate,nQ,({theme:e})=>e.transitions.easing.easeInOut),lQ=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:l={},className:o}=a,i=se(a,_M),[s,p]=v.useState([]),u=v.useRef(0),c=v.useRef(null);v.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=v.useRef(!1),f=Fo(),W=v.useRef(null),m=v.useRef(null),x=v.useCallback(y=>{const{pulsate:E,rippleX:S,rippleY:k,rippleSize:R,cb:V}=y;p(b=>[...b,A.jsx(rQ,{classes:{ripple:Ae(l.ripple,ga.ripple),rippleVisible:Ae(l.rippleVisible,ga.rippleVisible),ripplePulsate:Ae(l.ripplePulsate,ga.ripplePulsate),child:Ae(l.child,ga.child),childLeaving:Ae(l.childLeaving,ga.childLeaving),childPulsate:Ae(l.childPulsate,ga.childPulsate)},timeout:TW,pulsate:E,rippleX:S,rippleY:k,rippleSize:R},u.current)]),u.current+=1,c.current=V},[l]),h=v.useCallback((y={},E={},S=()=>{})=>{const{pulsate:k=!1,center:R=r||E.pulsate,fakeElement:V=!1}=E;if((y==null?void 0:y.type)==="mousedown"&&d.current){d.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(d.current=!0);const b=V?null:m.current,B=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,F,z;if(R||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)M=Math.round(B.width/2),F=Math.round(B.height/2);else{const{clientX:T,clientY:j}=y.touches&&y.touches.length>0?y.touches[0]:y;M=Math.round(T-B.left),F=Math.round(j-B.top)}if(R)z=Math.sqrt((2*B.width**2+B.height**2)/3),z%2===0&&(z+=1);else{const T=Math.max(Math.abs((b?b.clientWidth:0)-M),M)*2+2,j=Math.max(Math.abs((b?b.clientHeight:0)-F),F)*2+2;z=Math.sqrt(T**2+j**2)}y!=null&&y.touches?W.current===null&&(W.current=()=>{x({pulsate:k,rippleX:M,rippleY:F,rippleSize:z,cb:S})},f.start($M,()=>{W.current&&(W.current(),W.current=null)})):x({pulsate:k,rippleX:M,rippleY:F,rippleSize:z,cb:S})},[r,x,f]),g=v.useCallback(()=>{h({},{pulsate:!0})},[h]),C=v.useCallback((y,E)=>{if(f.clear(),(y==null?void 0:y.type)==="touchend"&&W.current){W.current(),W.current=null,f.start(0,()=>{C(y,E)});return}W.current=null,p(S=>S.length>0?S.slice(1):S),c.current=E},[f]);return v.useImperativeHandle(n,()=>({pulsate:g,start:h,stop:C}),[g,h,C]),A.jsx(aQ,I({className:Ae(ga.root,l.root,o),ref:m},i,{children:A.jsx(zW,{component:null,exit:!0,children:s})}))});function oQ(e){return ke("MuiButtonBase",e)}const iQ=we("MuiButtonBase",["root","disabled","focusVisible"]),sQ=["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"],pQ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:a,classes:r}=e,o=Re({root:["root",t&&"disabled",n&&"focusVisible"]},oQ,r);return n&&a&&(o.root+=` ${a}`),o},uQ=_("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"},[`&.${iQ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Po=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:l=!1,children:o,className:i,component:s="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:W,onClick:m,onContextMenu:x,onDragLeave:h,onFocus:g,onFocusVisible:C,onKeyDown:y,onKeyUp:E,onMouseDown:S,onMouseLeave:k,onMouseUp:R,onTouchEnd:V,onTouchMove:b,onTouchStart:B,tabIndex:M=0,TouchRippleProps:F,touchRippleRef:z,type:T}=a,j=se(a,sQ),P=v.useRef(null),L=v.useRef(null),q=Mt(L,z),{isFocusVisibleRef:w,onFocus:H,onBlur:te,ref:Q}=IW(),[N,re]=v.useState(!1);p&&N&&re(!1),v.useImperativeHandle(r,()=>({focusVisible:()=>{re(!0),P.current.focus()}}),[]);const[ue,X]=v.useState(!1);v.useEffect(()=>{X(!0)},[]);const ee=ue&&!u&&!p;v.useEffect(()=>{N&&d&&!u&&ue&&L.current.pulsate()},[u,d,N,ue]);function de(O,Y,Ie=c){return Bn(Se=>(Y&&Y(Se),!Ie&&L.current&&L.current[O](Se),!0))}const ae=de("start",S),G=de("stop",x),he=de("stop",h),ge=de("stop",R),me=de("stop",O=>{N&&O.preventDefault(),k&&k(O)}),ve=de("start",B),ce=de("stop",V),Ze=de("stop",b),le=de("stop",O=>{te(O),w.current===!1&&re(!1),W&&W(O)},!1),Ke=Bn(O=>{P.current||(P.current=O.currentTarget),H(O),w.current===!0&&(re(!0),C&&C(O)),g&&g(O)}),qe=()=>{const O=P.current;return s&&s!=="button"&&!(O.tagName==="A"&&O.href)},Be=v.useRef(!1),Te=Bn(O=>{d&&!Be.current&&N&&L.current&&O.key===" "&&(Be.current=!0,L.current.stop(O,()=>{L.current.start(O)})),O.target===O.currentTarget&&qe()&&O.key===" "&&O.preventDefault(),y&&y(O),O.target===O.currentTarget&&qe()&&O.key==="Enter"&&!p&&(O.preventDefault(),m&&m(O))}),Pe=Bn(O=>{d&&O.key===" "&&L.current&&N&&!O.defaultPrevented&&(Be.current=!1,L.current.stop(O,()=>{L.current.pulsate(O)})),E&&E(O),m&&O.target===O.currentTarget&&qe()&&O.key===" "&&!O.defaultPrevented&&m(O)});let je=s;je==="button"&&(j.href||j.to)&&(je=f);const it={};je==="button"?(it.type=T===void 0?"button":T,it.disabled=p):(!j.href&&!j.to&&(it.role="button"),p&&(it["aria-disabled"]=p));const D=Mt(n,Q,P),ne=I({},a,{centerRipple:l,component:s,disabled:p,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:N}),U=pQ(ne);return A.jsxs(uQ,I({as:je,className:Ae(U.root,i),ownerState:ne,onBlur:le,onClick:m,onContextMenu:G,onFocus:Ke,onKeyDown:Te,onKeyUp:Pe,onMouseDown:ae,onMouseLeave:me,onMouseUp:ge,onDragLeave:he,onTouchEnd:ce,onTouchMove:Ze,onTouchStart:ve,ref:D,tabIndex:p?-1:M,type:T},it,j,{children:[o,ee?A.jsx(lQ,I({ref:q,center:l},F)):null]}))});function cQ(e){return ke("MuiAlert",e)}const gS=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function AQ(e){return ke("MuiIconButton",e)}const dQ=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),fQ=["edge","children","className","color","disabled","disableFocusRipple","size"],WQ=e=>{const{classes:t,disabled:n,color:a,edge:r,size:l}=e,o={root:["root",n&&"disabled",a!=="default"&&`color${$(a)}`,r&&`edge${$(r)}`,`size${$(l)}`]};return Re(o,AQ,t)},gQ=_(Po,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${$(n.color)}`],n.edge&&t[`edge${$(n.edge)}`],t[`size${$(n.size)}`]]}})(({theme:e,ownerState:t})=>I({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})`:Ct(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 a=(n=(e.vars||e).palette)==null?void 0:n[t.color];return I({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&I({color:a==null?void 0:a.main},!t.disableRipple&&{"&:hover":I({},a&&{backgroundColor:e.vars?`rgba(${a.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(a.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)},{[`&.${dQ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Hn=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiIconButton"}),{edge:r=!1,children:l,className:o,color:i="default",disabled:s=!1,disableFocusRipple:p=!1,size:u="medium"}=a,c=se(a,fQ),d=I({},a,{edge:r,color:i,disabled:s,disableFocusRipple:p,size:u}),f=WQ(d);return A.jsx(gQ,I({className:Ae(f.root,o),centerRipple:!0,focusRipple:!p,disabled:s,ref:n},c,{ownerState:d,children:l}))}),hQ=$t(A.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),mQ=$t(A.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),CQ=$t(A.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),vQ=$t(A.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),hS=$t(A.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),yQ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],SQ=e=>{const{variant:t,color:n,severity:a,classes:r}=e,l={root:["root",`color${$(n||a)}`,`${t}${$(n||a)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Re(l,cQ,r)},IQ=_(Nt,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?xW:EW,n=e.palette.mode==="light"?EW:xW;return I({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{colorSeverity:a,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:t(e.palette[a].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${a}StandardBg`]:n(e.palette[a].light,.9),[`& .${gS.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{colorSeverity:a,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:t(e.palette[a].light,.6),border:`1px solid ${(e.vars||e).palette[a].light}`,[`& .${gS.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(([,a])=>a.main&&a.dark).map(([a])=>({props:{colorSeverity:a,variant:"filled"},style:I({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${a}FilledColor`],backgroundColor:e.vars.palette.Alert[`${a}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[a].dark:e.palette[a].main,color:e.palette.getContrastText(e.palette[a].main)})}))]})}),xQ=_("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),EQ=_("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),mS=_("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),CS={success:A.jsx(hQ,{fontSize:"inherit"}),warning:A.jsx(mQ,{fontSize:"inherit"}),error:A.jsx(CQ,{fontSize:"inherit"}),info:A.jsx(vQ,{fontSize:"inherit"})},Ml=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiAlert"}),{action:r,children:l,className:o,closeText:i="Close",color:s,components:p={},componentsProps:u={},icon:c,iconMapping:d=CS,onClose:f,role:W="alert",severity:m="success",slotProps:x={},slots:h={},variant:g="standard"}=a,C=se(a,yQ),y=I({},a,{color:s,severity:m,variant:g,colorSeverity:s||m}),E=SQ(y),S={slots:I({closeButton:p.CloseButton,closeIcon:p.CloseIcon},h),slotProps:I({},u,x)},[k,R]=jW("closeButton",{elementType:Hn,externalForwardedProps:S,ownerState:y}),[V,b]=jW("closeIcon",{elementType:hS,externalForwardedProps:S,ownerState:y});return A.jsxs(IQ,I({role:W,elevation:0,ownerState:y,className:Ae(E.root,o),ref:n},C,{children:[c!==!1?A.jsx(xQ,{ownerState:y,className:E.icon,children:c||d[m]||CS[m]}):null,A.jsx(EQ,{ownerState:y,className:E.message,children:l}),r!=null?A.jsx(mS,{ownerState:y,className:E.action,children:r}):null,r==null&&f?A.jsx(mS,{ownerState:y,className:E.action,children:A.jsx(k,I({size:"small","aria-label":i,title:i,color:"inherit",onClick:f},R,{children:A.jsx(V,I({fontSize:"small"},b))}))}):null]}))});function bQ(e){return ke("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const kQ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wQ=e=>{const{align:t,gutterBottom:n,noWrap:a,paragraph:r,variant:l,classes:o}=e,i={root:["root",l,e.align!=="inherit"&&`align${$(t)}`,n&&"gutterBottom",a&&"noWrap",r&&"paragraph"]};return Re(i,bQ,o)},RQ=_("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${$(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>I({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})),vS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},BQ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},LQ=e=>BQ[e]||e,fe=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiTypography"}),r=LQ(a.color),l=cs(I({},a,{color:r})),{align:o="inherit",className:i,component:s,gutterBottom:p=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=vS}=l,W=se(l,kQ),m=I({},l,{align:o,color:r,className:i,component:s,gutterBottom:p,noWrap:u,paragraph:c,variant:d,variantMapping:f}),x=s||(c?"p":f[d]||vS[d])||"span",h=wQ(m);return A.jsx(RQ,I({as:x,ref:n,ownerState:m,className:Ae(h.root,i)},W))});function MQ(e){return ke("MuiAppBar",e)}we("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const QQ=["className","color","enableColorOnDark","position"],VQ=e=>{const{color:t,position:n,classes:a}=e,r={root:["root",`color${$(t)}`,`position${$(n)}`]};return Re(r,MQ,a)},Ec=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,UQ=_(Nt,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${$(n.position)}`],t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return I({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&I({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&I({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&I({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ec(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Ec(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Ec(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Ec(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),FQ=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiAppBar"}),{className:r,color:l="primary",enableColorOnDark:o=!1,position:i="fixed"}=a,s=se(a,QQ),p=I({},a,{color:l,position:i,enableColorOnDark:o}),u=VQ(p);return A.jsx(UQ,I({square:!0,component:"header",ownerState:p,elevation:4,className:Ae(u.root,r,i==="fixed"&&"mui-fixed"),ref:n},s))});function yS(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function zQ(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:a,matchFrom:r="any",stringify:l,trim:o=!1}=e;return(i,{inputValue:s,getOptionLabel:p})=>{let u=o?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=yS(u));const c=u?i.filter(d=>{let f=(l||p)(d);return n&&(f=f.toLowerCase()),t&&(f=yS(f)),r==="start"?f.indexOf(u)===0:f.indexOf(u)>-1}):i;return typeof a=="number"?c.slice(0,a):c}}function bc(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const qQ=zQ(),SS=5,jQ=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},TQ=[];function OQ(e){const{unstable_isActiveElementInListbox:t=jQ,unstable_classNamePrefix:n="Mui",autoComplete:a=!1,autoHighlight:r=!1,autoSelect:l=!1,blurOnSelect:o=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:s=!1,componentName:p="useAutocomplete",defaultValue:u=e.multiple?TQ:null,disableClearable:c=!1,disableCloseOnSelect:d=!1,disabled:f,disabledItemsFocusable:W=!1,disableListWrap:m=!1,filterOptions:x=qQ,filterSelectedOptions:h=!1,freeSolo:g=!1,getOptionDisabled:C,getOptionKey:y,getOptionLabel:E=Z=>{var J;return(J=Z.label)!=null?J:Z},groupBy:S,handleHomeEndKeys:k=!e.freeSolo,id:R,includeInputInList:V=!1,inputValue:b,isOptionEqualToValue:B=(Z,J)=>Z===J,multiple:M=!1,onChange:F,onClose:z,onHighlightChange:T,onInputChange:j,onOpen:P,open:L,openOnFocus:q=!1,options:w,readOnly:H=!1,selectOnFocus:te=!e.freeSolo,value:Q}=e,N=Hr(R);let re=E;re=Z=>{const J=E(Z);return typeof J!="string"?String(J):J};const ue=v.useRef(!1),X=v.useRef(!0),ee=v.useRef(null),de=v.useRef(null),[ae,G]=v.useState(null),[he,ge]=v.useState(-1),me=r?0:-1,ve=v.useRef(me),[ce,Ze]=Cr({controlled:Q,default:u,name:p}),[le,Ke]=Cr({controlled:b,default:"",name:p,state:"inputValue"}),[qe,Be]=v.useState(!1),Te=v.useCallback((Z,J)=>{if(!(M?ce.length<J.length:J!==null)&&!i)return;let be;if(M)be="";else if(J==null)be="";else{const Ne=re(J);be=typeof Ne=="string"?Ne:""}le!==be&&(Ke(be),j&&j(Z,be,"reset"))},[re,le,M,j,Ke,i,ce]),[Pe,je]=Cr({controlled:L,default:!1,name:p,state:"open"}),[it,D]=v.useState(!0),ne=!M&&ce!=null&&le===re(ce),U=Pe&&!H,O=U?x(w.filter(Z=>!(h&&(M?ce:[ce]).some(J=>J!==null&&B(Z,J)))),{inputValue:ne&&it?"":le,getOptionLabel:re}):[],Y=oL({filteredOptions:O,value:ce,inputValue:le});v.useEffect(()=>{const Z=ce!==Y.value;qe&&!Z||g&&!Z||Te(null,ce)},[ce,Te,qe,Y.value,g]);const Ie=Pe&&O.length>0&&!H,Se=Bn(Z=>{Z===-1?ee.current.focus():ae.querySelector(`[data-tag-index="${Z}"]`).focus()});v.useEffect(()=>{M&&he>ce.length-1&&(ge(-1),Se(-1))},[ce,M,he,Se]);function pe(Z,J){if(!de.current||Z<0||Z>=O.length)return-1;let We=Z;for(;;){const be=de.current.querySelector(`[data-option-index="${We}"]`),Ne=W?!1:!be||be.disabled||be.getAttribute("aria-disabled")==="true";if(be&&be.hasAttribute("tabindex")&&!Ne)return We;if(J==="next"?We=(We+1)%O.length:We=(We-1+O.length)%O.length,We===Z)return-1}}const xe=Bn(({event:Z,index:J,reason:We="auto"})=>{if(ve.current=J,J===-1?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant",`${N}-option-${J}`),T&&T(Z,J===-1?null:O[J],We),!de.current)return;const be=de.current.querySelector(`[role="option"].${n}-focused`);be&&(be.classList.remove(`${n}-focused`),be.classList.remove(`${n}-focusVisible`));let Ne=de.current;if(de.current.getAttribute("role")!=="listbox"&&(Ne=de.current.parentElement.querySelector('[role="listbox"]')),!Ne)return;if(J===-1){Ne.scrollTop=0;return}const Ee=de.current.querySelector(`[data-option-index="${J}"]`);if(Ee&&(Ee.classList.add(`${n}-focused`),We==="keyboard"&&Ee.classList.add(`${n}-focusVisible`),Ne.scrollHeight>Ne.clientHeight&&We!=="mouse"&&We!=="touch")){const $e=Ee,lr=Ne.clientHeight+Ne.scrollTop,Gk=$e.offsetTop+$e.offsetHeight;Gk>lr?Ne.scrollTop=Gk-Ne.clientHeight:$e.offsetTop-$e.offsetHeight*(S?1.3:0)<Ne.scrollTop&&(Ne.scrollTop=$e.offsetTop-$e.offsetHeight*(S?1.3:0))}}),Qe=Bn(({event:Z,diff:J,direction:We="next",reason:be="auto"})=>{if(!U)return;const Ee=pe((()=>{const $e=O.length-1;if(J==="reset")return me;if(J==="start")return 0;if(J==="end")return $e;const lr=ve.current+J;return lr<0?lr===-1&&V?-1:m&&ve.current!==-1||Math.abs(J)>1?0:$e:lr>$e?lr===$e+1&&V?-1:m||Math.abs(J)>1?$e:0:lr})(),We);if(xe({index:Ee,reason:be,event:Z}),a&&J!=="reset")if(Ee===-1)ee.current.value=le;else{const $e=re(O[Ee]);ee.current.value=$e,$e.toLowerCase().indexOf(le.toLowerCase())===0&&le.length>0&&ee.current.setSelectionRange(le.length,$e.length)}}),Je=()=>{const Z=(J,We)=>{const be=J?re(J):"",Ne=We?re(We):"";return be===Ne};if(ve.current!==-1&&Y.filteredOptions&&Y.filteredOptions.length!==O.length&&Y.inputValue===le&&(M?ce.length===Y.value.length&&Y.value.every((J,We)=>re(ce[We])===re(J)):Z(Y.value,ce))){const J=Y.filteredOptions[ve.current];if(J)return bc(O,We=>re(We)===re(J))}return-1},ft=v.useCallback(()=>{if(!U)return;const Z=Je();if(Z!==-1){ve.current=Z;return}const J=M?ce[0]:ce;if(O.length===0||J==null){Qe({diff:"reset"});return}if(de.current){if(J!=null){const We=O[ve.current];if(M&&We&&bc(ce,Ne=>B(We,Ne))!==-1)return;const be=bc(O,Ne=>B(Ne,J));be===-1?Qe({diff:"reset"}):xe({index:be});return}if(ve.current>=O.length-1){xe({index:O.length-1});return}xe({index:ve.current})}},[O.length,M?!1:ce,h,Qe,xe,U,le,M]),bt=Bn(Z=>{ds(de,Z),Z&&ft()});v.useEffect(()=>{ft()},[ft]);const kt=Z=>{Pe||(je(!0),D(!0),P&&P(Z))},Dt=(Z,J)=>{Pe&&(je(!1),z&&z(Z,J))},rt=(Z,J,We,be)=>{if(M){if(ce.length===J.length&&ce.every((Ne,Ee)=>Ne===J[Ee]))return}else if(ce===J)return;F&&F(Z,J,We,be),Ze(J)},Xe=v.useRef(!1),Ce=(Z,J,We="selectOption",be="options")=>{let Ne=We,Ee=J;if(M){Ee=Array.isArray(ce)?ce.slice():[];const $e=bc(Ee,lr=>B(J,lr));$e===-1?Ee.push(J):be!=="freeSolo"&&(Ee.splice($e,1),Ne="removeOption")}Te(Z,Ee),rt(Z,Ee,Ne,{option:J}),!d&&(!Z||!Z.ctrlKey&&!Z.metaKey)&&Dt(Z,Ne),(o===!0||o==="touch"&&Xe.current||o==="mouse"&&!Xe.current)&&ee.current.blur()};function _e(Z,J){if(Z===-1)return-1;let We=Z;for(;;){if(J==="next"&&We===ce.length||J==="previous"&&We===-1)return-1;const be=ae.querySelector(`[data-tag-index="${We}"]`);if(!be||!be.hasAttribute("tabindex")||be.disabled||be.getAttribute("aria-disabled")==="true")We+=J==="next"?1:-1;else return We}}const Ve=(Z,J)=>{if(!M)return;le===""&&Dt(Z,"toggleInput");let We=he;he===-1?le===""&&J==="previous"&&(We=ce.length-1):(We+=J==="next"?1:-1,We<0&&(We=0),We===ce.length&&(We=-1)),We=_e(We,J),ge(We),Se(We)},It=Z=>{ue.current=!0,Ke(""),j&&j(Z,"","clear"),rt(Z,M?[]:null,"clear")},Tt=Z=>J=>{if(Z.onKeyDown&&Z.onKeyDown(J),!J.defaultMuiPrevented&&(he!==-1&&["ArrowLeft","ArrowRight"].indexOf(J.key)===-1&&(ge(-1),Se(-1)),J.which!==229))switch(J.key){case"Home":U&&k&&(J.preventDefault(),Qe({diff:"start",direction:"next",reason:"keyboard",event:J}));break;case"End":U&&k&&(J.preventDefault(),Qe({diff:"end",direction:"previous",reason:"keyboard",event:J}));break;case"PageUp":J.preventDefault(),Qe({diff:-SS,direction:"previous",reason:"keyboard",event:J}),kt(J);break;case"PageDown":J.preventDefault(),Qe({diff:SS,direction:"next",reason:"keyboard",event:J}),kt(J);break;case"ArrowDown":J.preventDefault(),Qe({diff:1,direction:"next",reason:"keyboard",event:J}),kt(J);break;case"ArrowUp":J.preventDefault(),Qe({diff:-1,direction:"previous",reason:"keyboard",event:J}),kt(J);break;case"ArrowLeft":Ve(J,"previous");break;case"ArrowRight":Ve(J,"next");break;case"Enter":if(ve.current!==-1&&U){const We=O[ve.current],be=C?C(We):!1;if(J.preventDefault(),be)return;Ce(J,We,"selectOption"),a&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else g&&le!==""&&ne===!1&&(M&&J.preventDefault(),Ce(J,le,"createOption","freeSolo"));break;case"Escape":U?(J.preventDefault(),J.stopPropagation(),Dt(J,"escape")):s&&(le!==""||M&&ce.length>0)&&(J.preventDefault(),J.stopPropagation(),It(J));break;case"Backspace":if(M&&!H&&le===""&&ce.length>0){const We=he===-1?ce.length-1:he,be=ce.slice();be.splice(We,1),rt(J,be,"removeOption",{option:ce[We]})}break;case"Delete":if(M&&!H&&le===""&&ce.length>0&&he!==-1){const We=he,be=ce.slice();be.splice(We,1),rt(J,be,"removeOption",{option:ce[We]})}break}},Jl=Z=>{Be(!0),q&&!ue.current&&kt(Z)},Ea=Z=>{if(t(de)){ee.current.focus();return}Be(!1),X.current=!0,ue.current=!1,l&&ve.current!==-1&&U?Ce(Z,O[ve.current],"blur"):l&&g&&le!==""?Ce(Z,le,"blur","freeSolo"):i&&Te(Z,ce),Dt(Z,"blur")},Ft=Z=>{const J=Z.target.value;le!==J&&(Ke(J),D(!1),j&&j(Z,J,"input")),J===""?!c&&!M&&rt(Z,null,"clear"):kt(Z)},wt=Z=>{const J=Number(Z.currentTarget.getAttribute("data-option-index"));ve.current!==J&&xe({event:Z,index:J,reason:"mouse"})},Sn=Z=>{xe({event:Z,index:Number(Z.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Xe.current=!0},Fn=Z=>{const J=Number(Z.currentTarget.getAttribute("data-option-index"));Ce(Z,O[J],"selectOption"),Xe.current=!1},br=Z=>J=>{const We=ce.slice();We.splice(Z,1),rt(J,We,"removeOption",{option:ce[Z]})},ep=Z=>{Pe?Dt(Z,"toggleInput"):kt(Z)},kr=Z=>{Z.currentTarget.contains(Z.target)&&Z.target.getAttribute("id")!==N&&Z.preventDefault()},ol=Z=>{Z.currentTarget.contains(Z.target)&&(ee.current.focus(),te&&X.current&&ee.current.selectionEnd-ee.current.selectionStart===0&&ee.current.select(),X.current=!1)},il=Z=>{!f&&(le===""||!Pe)&&ep(Z)};let rr=g&&le.length>0;rr=rr||(M?ce.length>0:ce!==null);let wr=O;return S&&(wr=O.reduce((Z,J,We)=>{const be=S(J);return Z.length>0&&Z[Z.length-1].group===be?Z[Z.length-1].options.push(J):Z.push({key:We,index:We,group:be,options:[J]}),Z},[])),f&&qe&&Ea(),{getRootProps:(Z={})=>I({"aria-owns":Ie?`${N}-listbox`:null},Z,{onKeyDown:Tt(Z),onMouseDown:kr,onClick:ol}),getInputLabelProps:()=>({id:`${N}-label`,htmlFor:N}),getInputProps:()=>({id:N,value:le,onBlur:Ea,onFocus:Jl,onChange:Ft,onMouseDown:il,"aria-activedescendant":U?"":null,"aria-autocomplete":a?"both":"list","aria-controls":Ie?`${N}-listbox`:void 0,"aria-expanded":Ie,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:It}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ep}),getTagProps:({index:Z})=>I({key:Z,"data-tag-index":Z,tabIndex:-1},!H&&{onDelete:br(Z)}),getListboxProps:()=>({role:"listbox",id:`${N}-listbox`,"aria-labelledby":`${N}-label`,ref:bt,onMouseDown:Z=>{Z.preventDefault()}}),getOptionProps:({index:Z,option:J})=>{var We;const be=(M?ce:[ce]).some(Ee=>Ee!=null&&B(J,Ee)),Ne=C?C(J):!1;return{key:(We=y==null?void 0:y(J))!=null?We:re(J),tabIndex:-1,role:"option",id:`${N}-option-${Z}`,onMouseMove:wt,onClick:Fn,onTouchStart:Sn,"data-option-index":Z,"aria-disabled":Ne,"aria-selected":be}},id:N,inputValue:le,value:ce,dirty:rr,expanded:U&&ae,popupOpen:U,focused:qe||he!==-1,anchorEl:ae,setAnchorEl:G,focusedTag:he,groupedOptions:wr}}var OW={};Object.defineProperty(OW,"__esModule",{value:!0});var IS=OW.default=void 0,KQ=JQ(v),PQ=lS;function xS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(xS=function(a){return a?n:t})(e)}function JQ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=xS(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}function DQ(e){return Object.keys(e).length===0}function YQ(e=null){const t=KQ.useContext(PQ.ThemeContext);return!t||DQ(t)?e:t}IS=OW.default=YQ;var Ln="top",ha="bottom",ma="right",Mn="left",KW="auto",hs=[Ln,ha,ma,Mn],Jo="start",ms="end",ZQ="clippingParents",ES="viewport",Cs="popper",NQ="reference",bS=hs.reduce(function(e,t){return e.concat([t+"-"+Jo,t+"-"+ms])},[]),kS=[].concat(hs,[KW]).reduce(function(e,t){return e.concat([t,t+"-"+Jo,t+"-"+ms])},[]),GQ="beforeRead",HQ="read",XQ="afterRead",_Q="beforeMain",$Q="main",eV="afterMain",tV="beforeWrite",nV="write",aV="afterWrite",rV=[GQ,HQ,XQ,_Q,$Q,eV,tV,nV,aV];function Ha(e){return e?(e.nodeName||"").toLowerCase():null}function Xn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ql(e){var t=Xn(e).Element;return e instanceof t||e instanceof Element}function Ca(e){var t=Xn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function PW(e){if(typeof ShadowRoot>"u")return!1;var t=Xn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lV(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},l=t.elements[n];!Ca(l)||!Ha(l)||(Object.assign(l.style,a),Object.keys(r).forEach(function(o){var i=r[o];i===!1?l.removeAttribute(o):l.setAttribute(o,i===!0?"":i)}))})}function oV(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(a){var r=t.elements[a],l=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),i=o.reduce(function(s,p){return s[p]="",s},{});!Ca(r)||!Ha(r)||(Object.assign(r.style,i),Object.keys(l).forEach(function(s){r.removeAttribute(s)}))})}}const iV={name:"applyStyles",enabled:!0,phase:"write",fn:lV,effect:oV,requires:["computeStyles"]};function Xa(e){return e.split("-")[0]}var Vl=Math.max,kc=Math.min,Do=Math.round;function JW(){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 wS(){return!/^((?!chrome|android).)*safari/i.test(JW())}function Yo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),r=1,l=1;t&&Ca(e)&&(r=e.offsetWidth>0&&Do(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Do(a.height)/e.offsetHeight||1);var o=Ql(e)?Xn(e):window,i=o.visualViewport,s=!wS()&&n,p=(a.left+(s&&i?i.offsetLeft:0))/r,u=(a.top+(s&&i?i.offsetTop:0))/l,c=a.width/r,d=a.height/l;return{width:c,height:d,top:u,right:p+c,bottom:u+d,left:p,x:p,y:u}}function DW(e){var t=Yo(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function RS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&PW(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function yr(e){return Xn(e).getComputedStyle(e)}function sV(e){return["table","td","th"].indexOf(Ha(e))>=0}function Xr(e){return((Ql(e)?e.ownerDocument:e.document)||window.document).documentElement}function wc(e){return Ha(e)==="html"?e:e.assignedSlot||e.parentNode||(PW(e)?e.host:null)||Xr(e)}function BS(e){return!Ca(e)||yr(e).position==="fixed"?null:e.offsetParent}function pV(e){var t=/firefox/i.test(JW()),n=/Trident/i.test(JW());if(n&&Ca(e)){var a=yr(e);if(a.position==="fixed")return null}var r=wc(e);for(PW(r)&&(r=r.host);Ca(r)&&["html","body"].indexOf(Ha(r))<0;){var l=yr(r);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return r;r=r.parentNode}return null}function vs(e){for(var t=Xn(e),n=BS(e);n&&sV(n)&&yr(n).position==="static";)n=BS(n);return n&&(Ha(n)==="html"||Ha(n)==="body"&&yr(n).position==="static")?t:n||pV(e)||t}function YW(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ys(e,t,n){return Vl(e,kc(t,n))}function uV(e,t,n){var a=ys(e,t,n);return a>n?n:a}function LS(){return{top:0,right:0,bottom:0,left:0}}function MS(e){return Object.assign({},LS(),e)}function QS(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var cV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,MS(typeof t!="number"?t:QS(t,hs))};function AV(e){var t,n=e.state,a=e.name,r=e.options,l=n.elements.arrow,o=n.modifiersData.popperOffsets,i=Xa(n.placement),s=YW(i),p=[Mn,ma].indexOf(i)>=0,u=p?"height":"width";if(!(!l||!o)){var c=cV(r.padding,n),d=DW(l),f=s==="y"?Ln:Mn,W=s==="y"?ha:ma,m=n.rects.reference[u]+n.rects.reference[s]-o[s]-n.rects.popper[u],x=o[s]-n.rects.reference[s],h=vs(l),g=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,C=m/2-x/2,y=c[f],E=g-d[u]-c[W],S=g/2-d[u]/2+C,k=ys(y,S,E),R=s;n.modifiersData[a]=(t={},t[R]=k,t.centerOffset=k-S,t)}}function dV(e){var t=e.state,n=e.options,a=n.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||RS(t.elements.popper,r)&&(t.elements.arrow=r))}const fV={name:"arrow",enabled:!0,phase:"main",fn:AV,effect:dV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zo(e){return e.split("-")[1]}var WV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gV(e,t){var n=e.x,a=e.y,r=t.devicePixelRatio||1;return{x:Do(n*r)/r||0,y:Do(a*r)/r||0}}function VS(e){var t,n=e.popper,a=e.popperRect,r=e.placement,l=e.variation,o=e.offsets,i=e.position,s=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,c=e.isFixed,d=o.x,f=d===void 0?0:d,W=o.y,m=W===void 0?0:W,x=typeof u=="function"?u({x:f,y:m}):{x:f,y:m};f=x.x,m=x.y;var h=o.hasOwnProperty("x"),g=o.hasOwnProperty("y"),C=Mn,y=Ln,E=window;if(p){var S=vs(n),k="clientHeight",R="clientWidth";if(S===Xn(n)&&(S=Xr(n),yr(S).position!=="static"&&i==="absolute"&&(k="scrollHeight",R="scrollWidth")),S=S,r===Ln||(r===Mn||r===ma)&&l===ms){y=ha;var V=c&&S===E&&E.visualViewport?E.visualViewport.height:S[k];m-=V-a.height,m*=s?1:-1}if(r===Mn||(r===Ln||r===ha)&&l===ms){C=ma;var b=c&&S===E&&E.visualViewport?E.visualViewport.width:S[R];f-=b-a.width,f*=s?1:-1}}var B=Object.assign({position:i},p&&WV),M=u===!0?gV({x:f,y:m},Xn(n)):{x:f,y:m};if(f=M.x,m=M.y,s){var F;return Object.assign({},B,(F={},F[y]=g?"0":"",F[C]=h?"0":"",F.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",F))}return Object.assign({},B,(t={},t[y]=g?m+"px":"",t[C]=h?f+"px":"",t.transform="",t))}function hV(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,l=n.adaptive,o=l===void 0?!0:l,i=n.roundOffsets,s=i===void 0?!0:i,p={placement:Xa(t.placement),variation:Zo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,VS(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,VS(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hV,data:{}};var Rc={passive:!0};function CV(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,l=r===void 0?!0:r,o=a.resize,i=o===void 0?!0:o,s=Xn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&p.forEach(function(u){u.addEventListener("scroll",n.update,Rc)}),i&&s.addEventListener("resize",n.update,Rc),function(){l&&p.forEach(function(u){u.removeEventListener("scroll",n.update,Rc)}),i&&s.removeEventListener("resize",n.update,Rc)}}const vV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CV,data:{}};var yV={left:"right",right:"left",bottom:"top",top:"bottom"};function Bc(e){return e.replace(/left|right|bottom|top/g,function(t){return yV[t]})}var SV={start:"end",end:"start"};function US(e){return e.replace(/start|end/g,function(t){return SV[t]})}function ZW(e){var t=Xn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function NW(e){return Yo(Xr(e)).left+ZW(e).scrollLeft}function IV(e,t){var n=Xn(e),a=Xr(e),r=n.visualViewport,l=a.clientWidth,o=a.clientHeight,i=0,s=0;if(r){l=r.width,o=r.height;var p=wS();(p||!p&&t==="fixed")&&(i=r.offsetLeft,s=r.offsetTop)}return{width:l,height:o,x:i+NW(e),y:s}}function xV(e){var t,n=Xr(e),a=ZW(e),r=(t=e.ownerDocument)==null?void 0:t.body,l=Vl(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Vl(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-a.scrollLeft+NW(e),s=-a.scrollTop;return yr(r||n).direction==="rtl"&&(i+=Vl(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:o,x:i,y:s}}function GW(e){var t=yr(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function FS(e){return["html","body","#document"].indexOf(Ha(e))>=0?e.ownerDocument.body:Ca(e)&&GW(e)?e:FS(wc(e))}function Ss(e,t){var n;t===void 0&&(t=[]);var a=FS(e),r=a===((n=e.ownerDocument)==null?void 0:n.body),l=Xn(a),o=r?[l].concat(l.visualViewport||[],GW(a)?a:[]):a,i=t.concat(o);return r?i:i.concat(Ss(wc(o)))}function HW(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function EV(e,t){var n=Yo(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 zS(e,t,n){return t===ES?HW(IV(e,n)):Ql(t)?EV(t,n):HW(xV(Xr(e)))}function bV(e){var t=Ss(wc(e)),n=["absolute","fixed"].indexOf(yr(e).position)>=0,a=n&&Ca(e)?vs(e):e;return Ql(a)?t.filter(function(r){return Ql(r)&&RS(r,a)&&Ha(r)!=="body"}):[]}function kV(e,t,n,a){var r=t==="clippingParents"?bV(e):[].concat(t),l=[].concat(r,[n]),o=l[0],i=l.reduce(function(s,p){var u=zS(e,p,a);return s.top=Vl(u.top,s.top),s.right=kc(u.right,s.right),s.bottom=kc(u.bottom,s.bottom),s.left=Vl(u.left,s.left),s},zS(e,o,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function qS(e){var t=e.reference,n=e.element,a=e.placement,r=a?Xa(a):null,l=a?Zo(a):null,o=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,s;switch(r){case Ln:s={x:o,y:t.y-n.height};break;case ha:s={x:o,y:t.y+t.height};break;case ma:s={x:t.x+t.width,y:i};break;case Mn:s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}var p=r?YW(r):null;if(p!=null){var u=p==="y"?"height":"width";switch(l){case Jo:s[p]=s[p]-(t[u]/2-n[u]/2);break;case ms:s[p]=s[p]+(t[u]/2-n[u]/2);break}}return s}function Is(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,l=n.strategy,o=l===void 0?e.strategy:l,i=n.boundary,s=i===void 0?ZQ:i,p=n.rootBoundary,u=p===void 0?ES:p,c=n.elementContext,d=c===void 0?Cs:c,f=n.altBoundary,W=f===void 0?!1:f,m=n.padding,x=m===void 0?0:m,h=MS(typeof x!="number"?x:QS(x,hs)),g=d===Cs?NQ:Cs,C=e.rects.popper,y=e.elements[W?g:d],E=kV(Ql(y)?y:y.contextElement||Xr(e.elements.popper),s,u,o),S=Yo(e.elements.reference),k=qS({reference:S,element:C,placement:r}),R=HW(Object.assign({},C,k)),V=d===Cs?R:S,b={top:E.top-V.top+h.top,bottom:V.bottom-E.bottom+h.bottom,left:E.left-V.left+h.left,right:V.right-E.right+h.right},B=e.modifiersData.offset;if(d===Cs&&B){var M=B[r];Object.keys(b).forEach(function(F){var z=[ma,ha].indexOf(F)>=0?1:-1,T=[Ln,ha].indexOf(F)>=0?"y":"x";b[F]+=M[T]*z})}return b}function wV(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,l=n.rootBoundary,o=n.padding,i=n.flipVariations,s=n.allowedAutoPlacements,p=s===void 0?kS:s,u=Zo(a),c=u?i?bS:bS.filter(function(W){return Zo(W)===u}):hs,d=c.filter(function(W){return p.indexOf(W)>=0});d.length===0&&(d=c);var f=d.reduce(function(W,m){return W[m]=Is(e,{placement:m,boundary:r,rootBoundary:l,padding:o})[Xa(m)],W},{});return Object.keys(f).sort(function(W,m){return f[W]-f[m]})}function RV(e){if(Xa(e)===KW)return[];var t=Bc(e);return[US(e),t,US(t)]}function BV(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,l=r===void 0?!0:r,o=n.altAxis,i=o===void 0?!0:o,s=n.fallbackPlacements,p=n.padding,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,W=f===void 0?!0:f,m=n.allowedAutoPlacements,x=t.options.placement,h=Xa(x),g=h===x,C=s||(g||!W?[Bc(x)]:RV(x)),y=[x].concat(C).reduce(function(N,re){return N.concat(Xa(re)===KW?wV(t,{placement:re,boundary:u,rootBoundary:c,padding:p,flipVariations:W,allowedAutoPlacements:m}):re)},[]),E=t.rects.reference,S=t.rects.popper,k=new Map,R=!0,V=y[0],b=0;b<y.length;b++){var B=y[b],M=Xa(B),F=Zo(B)===Jo,z=[Ln,ha].indexOf(M)>=0,T=z?"width":"height",j=Is(t,{placement:B,boundary:u,rootBoundary:c,altBoundary:d,padding:p}),P=z?F?ma:Mn:F?ha:Ln;E[T]>S[T]&&(P=Bc(P));var L=Bc(P),q=[];if(l&&q.push(j[M]<=0),i&&q.push(j[P]<=0,j[L]<=0),q.every(function(N){return N})){V=B,R=!1;break}k.set(B,q)}if(R)for(var w=W?3:1,H=function(re){var ue=y.find(function(X){var ee=k.get(X);if(ee)return ee.slice(0,re).every(function(de){return de})});if(ue)return V=ue,"break"},te=w;te>0;te--){var Q=H(te);if(Q==="break")break}t.placement!==V&&(t.modifiersData[a]._skip=!0,t.placement=V,t.reset=!0)}}const LV={name:"flip",enabled:!0,phase:"main",fn:BV,requiresIfExists:["offset"],data:{_skip:!1}};function jS(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 TS(e){return[Ln,ma,ha,Mn].some(function(t){return e[t]>=0})}function MV(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,l=t.modifiersData.preventOverflow,o=Is(t,{elementContext:"reference"}),i=Is(t,{altBoundary:!0}),s=jS(o,a),p=jS(i,r,l),u=TS(s),c=TS(p);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const QV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MV};function VV(e,t,n){var a=Xa(e),r=[Mn,Ln].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=l[0],i=l[1];return o=o||0,i=(i||0)*r,[Mn,ma].indexOf(a)>=0?{x:i,y:o}:{x:o,y:i}}function UV(e){var t=e.state,n=e.options,a=e.name,r=n.offset,l=r===void 0?[0,0]:r,o=kS.reduce(function(u,c){return u[c]=VV(c,t.rects,l),u},{}),i=o[t.placement],s=i.x,p=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=p),t.modifiersData[a]=o}const FV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:UV};function zV(e){var t=e.state,n=e.name;t.modifiersData[n]=qS({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const qV={name:"popperOffsets",enabled:!0,phase:"read",fn:zV,data:{}};function jV(e){return e==="x"?"y":"x"}function TV(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,l=r===void 0?!0:r,o=n.altAxis,i=o===void 0?!1:o,s=n.boundary,p=n.rootBoundary,u=n.altBoundary,c=n.padding,d=n.tether,f=d===void 0?!0:d,W=n.tetherOffset,m=W===void 0?0:W,x=Is(t,{boundary:s,rootBoundary:p,padding:c,altBoundary:u}),h=Xa(t.placement),g=Zo(t.placement),C=!g,y=YW(h),E=jV(y),S=t.modifiersData.popperOffsets,k=t.rects.reference,R=t.rects.popper,V=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,b=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(l){var F,z=y==="y"?Ln:Mn,T=y==="y"?ha:ma,j=y==="y"?"height":"width",P=S[y],L=P+x[z],q=P-x[T],w=f?-R[j]/2:0,H=g===Jo?k[j]:R[j],te=g===Jo?-R[j]:-k[j],Q=t.elements.arrow,N=f&&Q?DW(Q):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:LS(),ue=re[z],X=re[T],ee=ys(0,k[j],N[j]),de=C?k[j]/2-w-ee-ue-b.mainAxis:H-ee-ue-b.mainAxis,ae=C?-k[j]/2+w+ee+X+b.mainAxis:te+ee+X+b.mainAxis,G=t.elements.arrow&&vs(t.elements.arrow),he=G?y==="y"?G.clientTop||0:G.clientLeft||0:0,ge=(F=B==null?void 0:B[y])!=null?F:0,me=P+de-ge-he,ve=P+ae-ge,ce=ys(f?kc(L,me):L,P,f?Vl(q,ve):q);S[y]=ce,M[y]=ce-P}if(i){var Ze,le=y==="x"?Ln:Mn,Ke=y==="x"?ha:ma,qe=S[E],Be=E==="y"?"height":"width",Te=qe+x[le],Pe=qe-x[Ke],je=[Ln,Mn].indexOf(h)!==-1,it=(Ze=B==null?void 0:B[E])!=null?Ze:0,D=je?Te:qe-k[Be]-R[Be]-it+b.altAxis,ne=je?qe+k[Be]+R[Be]-it-b.altAxis:Pe,U=f&&je?uV(D,qe,ne):ys(f?D:Te,qe,f?ne:Pe);S[E]=U,M[E]=U-qe}t.modifiersData[a]=M}}const OV={name:"preventOverflow",enabled:!0,phase:"main",fn:TV,requiresIfExists:["offset"]};function KV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PV(e){return e===Xn(e)||!Ca(e)?ZW(e):KV(e)}function JV(e){var t=e.getBoundingClientRect(),n=Do(t.width)/e.offsetWidth||1,a=Do(t.height)/e.offsetHeight||1;return n!==1||a!==1}function DV(e,t,n){n===void 0&&(n=!1);var a=Ca(t),r=Ca(t)&&JV(t),l=Xr(t),o=Yo(e,r,n),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(a||!a&&!n)&&((Ha(t)!=="body"||GW(l))&&(i=PV(t)),Ca(t)?(s=Yo(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=NW(l))),{x:o.left+i.scrollLeft-s.x,y:o.top+i.scrollTop-s.y,width:o.width,height:o.height}}function YV(e){var t=new Map,n=new Set,a=[];e.forEach(function(l){t.set(l.name,l)});function r(l){n.add(l.name);var o=[].concat(l.requires||[],l.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var s=t.get(i);s&&r(s)}}),a.push(l)}return e.forEach(function(l){n.has(l.name)||r(l)}),a}function ZV(e){var t=YV(e);return rV.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function NV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function GV(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var OS={placement:"bottom",modifiers:[],strategy:"absolute"};function KS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function HV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,l=r===void 0?OS:r;return function(i,s,p){p===void 0&&(p=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},OS,l),modifiersData:{},elements:{reference:i,popper:s},attributes:{},styles:{}},c=[],d=!1,f={state:u,setOptions:function(h){var g=typeof h=="function"?h(u.options):h;m(),u.options=Object.assign({},l,u.options,g),u.scrollParents={reference:Ql(i)?Ss(i):i.contextElement?Ss(i.contextElement):[],popper:Ss(s)};var C=ZV(GV([].concat(a,u.options.modifiers)));return u.orderedModifiers=C.filter(function(y){return y.enabled}),W(),f.update()},forceUpdate:function(){if(!d){var h=u.elements,g=h.reference,C=h.popper;if(KS(g,C)){u.rects={reference:DV(g,vs(C),u.options.strategy==="fixed"),popper:DW(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(b){return u.modifiersData[b.name]=Object.assign({},b.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var E=u.orderedModifiers[y],S=E.fn,k=E.options,R=k===void 0?{}:k,V=E.name;typeof S=="function"&&(u=S({state:u,options:R,name:V,instance:f})||u)}}}},update:NV(function(){return new Promise(function(x){f.forceUpdate(),x(u)})}),destroy:function(){m(),d=!0}};if(!KS(i,s))return f;f.setOptions(p).then(function(x){!d&&p.onFirstUpdate&&p.onFirstUpdate(x)});function W(){u.orderedModifiers.forEach(function(x){var h=x.name,g=x.options,C=g===void 0?{}:g,y=x.effect;if(typeof y=="function"){var E=y({state:u,name:h,instance:f,options:C}),S=function(){};c.push(E||S)}})}function m(){c.forEach(function(x){return x()}),c=[]}return f}}var XV=[vV,qV,mV,iV,FV,LV,OV,fV,QV],_V=HV({defaultModifiers:XV});function $V(e){return typeof e=="function"?e():e}const PS=v.forwardRef(function(t,n){const{children:a,container:r,disablePortal:l=!1}=t,[o,i]=v.useState(null),s=Mt(v.isValidElement(a)?wl(a):null,n);if(da(()=>{l||i($V(r)||document.body)},[r,l]),da(()=>{if(o&&!l)return ds(n,o),()=>{ds(n,null)}},[n,o,l]),l){if(v.isValidElement(a)){const p={ref:s};return v.cloneElement(a,p)}return A.jsx(v.Fragment,{children:a})}return A.jsx(v.Fragment,{children:o&&zf.createPortal(a,o)})});function e5(e){return ke("MuiPopper",e)}we("MuiPopper",["root"]);const t5=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],n5=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function a5(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 XW(e){return typeof e=="function"?e():e}function r5(e){return e.nodeType!==void 0}const l5=e=>{const{classes:t}=e;return Re({root:["root"]},e5,t)},o5={},i5=v.forwardRef(function(t,n){var a;const{anchorEl:r,children:l,direction:o,disablePortal:i,modifiers:s,open:p,placement:u,popperOptions:c,popperRef:d,slotProps:f={},slots:W={},TransitionProps:m}=t,x=se(t,t5),h=v.useRef(null),g=Mt(h,n),C=v.useRef(null),y=Mt(C,d),E=v.useRef(y);da(()=>{E.current=y},[y]),v.useImperativeHandle(d,()=>C.current,[]);const S=a5(u,o),[k,R]=v.useState(S),[V,b]=v.useState(XW(r));v.useEffect(()=>{C.current&&C.current.forceUpdate()}),v.useEffect(()=>{r&&b(XW(r))},[r]),da(()=>{if(!V||!p)return;const T=L=>{R(L.placement)};let j=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{T(L)}}];s!=null&&(j=j.concat(s)),c&&c.modifiers!=null&&(j=j.concat(c.modifiers));const P=_V(V,h.current,I({placement:S},c,{modifiers:j}));return E.current(P),()=>{P.destroy(),E.current(null)}},[V,i,s,p,c,S]);const B={placement:k};m!==null&&(B.TransitionProps=m);const M=l5(t),F=(a=W.root)!=null?a:"div",z=kl({elementType:F,externalSlotProps:f.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:M.root});return A.jsx(F,I({},z,{children:typeof l=="function"?l(B):l}))}),s5=v.forwardRef(function(t,n){const{anchorEl:a,children:r,container:l,direction:o="ltr",disablePortal:i=!1,keepMounted:s=!1,modifiers:p,open:u,placement:c="bottom",popperOptions:d=o5,popperRef:f,style:W,transition:m=!1,slotProps:x={},slots:h={}}=t,g=se(t,n5),[C,y]=v.useState(!0),E=()=>{y(!1)},S=()=>{y(!0)};if(!s&&!u&&(!m||C))return null;let k;if(l)k=l;else if(a){const b=XW(a);k=b&&r5(b)?cn(b).body:cn(null).body}const R=!u&&s&&(!m||C)?"none":void 0,V=m?{in:u,onEnter:E,onExited:S}:void 0;return A.jsx(PS,{disablePortal:i,container:k,children:A.jsx(i5,I({anchorEl:a,direction:o,disablePortal:i,modifiers:p,ref:n,open:m?!C:u,placement:c,popperOptions:d,popperRef:f,slotProps:x,slots:h},g,{style:I({position:"fixed",top:0,left:0,display:R},W),TransitionProps:V,children:r}))})}),p5=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],u5=_(s5,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lc=v.forwardRef(function(t,n){var a;const r=IS(),l=Le({props:t,name:"MuiPopper"}),{anchorEl:o,component:i,components:s,componentsProps:p,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:W,placement:m,popperOptions:x,popperRef:h,transition:g,slots:C,slotProps:y}=l,E=se(l,p5),S=(a=C==null?void 0:C.root)!=null?a:s==null?void 0:s.Root,k=I({anchorEl:o,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:W,placement:m,popperOptions:x,popperRef:h,transition:g},E);return A.jsx(u5,I({as:i,direction:r==null?void 0:r.direction,slots:{root:S},slotProps:y??p},k,{ref:n}))});function c5(e){return ke("MuiListSubheader",e)}we("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const A5=["className","color","component","disableGutters","disableSticky","inset"],d5=e=>{const{classes:t,color:n,disableGutters:a,inset:r,disableSticky:l}=e,o={root:["root",n!=="default"&&`color${$(n)}`,!a&&"gutters",r&&"inset",!l&&"sticky"]};return Re(o,c5,t)},f5=_("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${$(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>I({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),JS=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiListSubheader"}),{className:r,color:l="default",component:o="li",disableGutters:i=!1,disableSticky:s=!1,inset:p=!1}=a,u=se(a,A5),c=I({},a,{color:l,component:o,disableGutters:i,disableSticky:s,inset:p}),d=d5(c);return A.jsx(f5,I({as:o,className:Ae(d.root,r),ref:n,ownerState:c},u))});JS.muiSkipListHighlight=!0;const W5=$t(A.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function g5(e){return ke("MuiChip",e)}const nt=we("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),h5=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],m5=e=>{const{classes:t,disabled:n,size:a,color:r,iconColor:l,onDelete:o,clickable:i,variant:s}=e,p={root:["root",s,n&&"disabled",`size${$(a)}`,`color${$(r)}`,i&&"clickable",i&&`clickableColor${$(r)}`,o&&"deletable",o&&`deletableColor${$(r)}`,`${s}${$(r)}`],label:["label",`label${$(a)}`],avatar:["avatar",`avatar${$(a)}`,`avatarColor${$(r)}`],icon:["icon",`icon${$(a)}`,`iconColor${$(l)}`],deleteIcon:["deleteIcon",`deleteIcon${$(a)}`,`deleteIconColor${$(r)}`,`deleteIcon${$(s)}Color${$(r)}`]};return Re(p,g5,t)},C5=_("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:a,iconColor:r,clickable:l,onDelete:o,size:i,variant:s}=n;return[{[`& .${nt.avatar}`]:t.avatar},{[`& .${nt.avatar}`]:t[`avatar${$(i)}`]},{[`& .${nt.avatar}`]:t[`avatarColor${$(a)}`]},{[`& .${nt.icon}`]:t.icon},{[`& .${nt.icon}`]:t[`icon${$(i)}`]},{[`& .${nt.icon}`]:t[`iconColor${$(r)}`]},{[`& .${nt.deleteIcon}`]:t.deleteIcon},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${$(i)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIconColor${$(a)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${$(s)}Color${$(a)}`]},t.root,t[`size${$(i)}`],t[`color${$(a)}`],l&&t.clickable,l&&a!=="default"&&t[`clickableColor${$(a)})`],o&&t.deletable,o&&a!=="default"&&t[`deletableColor${$(a)}`],t[s],t[`${s}${$(a)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return I({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${nt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${nt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nt.icon}`]:I({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&I({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${nt.deleteIcon}`]:I({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ct(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ct(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ct(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>I({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>I({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${nt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nt.avatar}`]:{marginLeft:4},[`& .${nt.avatarSmall}`]:{marginLeft:2},[`& .${nt.icon}`]:{marginLeft:4},[`& .${nt.iconSmall}`]:{marginLeft:2},[`& .${nt.deleteIcon}`]:{marginRight:5},[`& .${nt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ct(e.palette[t.color].main,.7)}`,[`&.${nt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ct(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${nt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ct(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),v5=_("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:a}=n;return[t.label,t[`label${$(a)}`]]}})(({ownerState:e})=>I({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function DS(e){return e.key==="Backspace"||e.key==="Delete"}const vn=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiChip"}),{avatar:r,className:l,clickable:o,color:i="default",component:s,deleteIcon:p,disabled:u=!1,icon:c,label:d,onClick:f,onDelete:W,onKeyDown:m,onKeyUp:x,size:h="medium",variant:g="filled",tabIndex:C,skipFocusWhenDisabled:y=!1}=a,E=se(a,h5),S=v.useRef(null),k=Mt(S,n),R=q=>{q.stopPropagation(),W&&W(q)},V=q=>{q.currentTarget===q.target&&DS(q)&&q.preventDefault(),m&&m(q)},b=q=>{q.currentTarget===q.target&&(W&&DS(q)?W(q):q.key==="Escape"&&S.current&&S.current.blur()),x&&x(q)},B=o!==!1&&f?!0:o,M=B||W?Po:s||"div",F=I({},a,{component:M,disabled:u,size:h,color:i,iconColor:v.isValidElement(c)&&c.props.color||i,onDelete:!!W,clickable:B,variant:g}),z=m5(F),T=M===Po?I({component:s||"div",focusVisibleClassName:z.focusVisible},W&&{disableRipple:!0}):{};let j=null;W&&(j=p&&v.isValidElement(p)?v.cloneElement(p,{className:Ae(p.props.className,z.deleteIcon),onClick:R}):A.jsx(W5,{className:Ae(z.deleteIcon),onClick:R}));let P=null;r&&v.isValidElement(r)&&(P=v.cloneElement(r,{className:Ae(z.avatar,r.props.className)}));let L=null;return c&&v.isValidElement(c)&&(L=v.cloneElement(c,{className:Ae(z.icon,c.props.className)})),A.jsxs(C5,I({as:M,className:Ae(z.root,l),disabled:B&&u?!0:void 0,onClick:f,onKeyDown:V,onKeyUp:b,ref:k,tabIndex:y&&u?-1:C,ownerState:F},T,E,{children:[P||L,A.jsx(v5,{className:Ae(z.label),ownerState:F,children:d}),j]}))}),y5=["onChange","maxRows","minRows","style","value"];function Mc(e){return parseInt(e,10)||0}const S5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function I5(e){for(const t in e)return!1;return!0}function YS(e){return I5(e)||e.outerHeightStyle===0&&!e.overflowing}const x5=v.forwardRef(function(t,n){const{onChange:a,maxRows:r,minRows:l=1,style:o,value:i}=t,s=se(t,y5),{current:p}=v.useRef(i!=null),u=v.useRef(null),c=Mt(n,u),d=v.useRef(null),f=v.useRef(null),W=v.useCallback(()=>{const C=u.current,y=f.current;if(!C||!y)return;const S=Ga(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};y.style.width=S.width,y.value=C.value||t.placeholder||"x",y.value.slice(-1)===`
155
- `&&(y.value+=" ");const k=S.boxSizing,R=Mc(S.paddingBottom)+Mc(S.paddingTop),V=Mc(S.borderBottomWidth)+Mc(S.borderTopWidth),b=y.scrollHeight;y.value="x";const B=y.scrollHeight;let M=b;l&&(M=Math.max(Number(l)*B,M)),r&&(M=Math.min(Number(r)*B,M)),M=Math.max(M,B);const F=M+(k==="border-box"?R+V:0),z=Math.abs(M-b)<=1;return{outerHeightStyle:F,overflowing:z}},[r,l,t.placeholder]),m=Bn(()=>{const C=u.current,y=W();if(!C||!y||YS(y))return!1;const E=y.outerHeightStyle;return d.current!=null&&d.current!==E}),x=v.useCallback(()=>{const C=u.current,y=W();if(!C||!y||YS(y))return;const E=y.outerHeightStyle;d.current!==E&&(d.current=E,C.style.height=`${E}px`),C.style.overflow=y.overflowing?"hidden":""},[W]),h=v.useRef(-1);da(()=>{const C=dc(x),y=u==null?void 0:u.current;if(!y)return;const E=Ga(y);E.addEventListener("resize",C);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{m()&&(S.unobserve(y),cancelAnimationFrame(h.current),x(),h.current=requestAnimationFrame(()=>{S.observe(y)}))}),S.observe(y)),()=>{C.clear(),cancelAnimationFrame(h.current),E.removeEventListener("resize",C),S&&S.disconnect()}},[W,x,m]),da(()=>{x()});const g=C=>{p||x(),a&&a(C)};return A.jsxs(v.Fragment,{children:[A.jsx("textarea",I({value:i,onChange:g,ref:c,rows:l,style:o},s)),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:I({},S5.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function _r({props:e,states:t,muiFormControl:n}){return t.reduce((a,r)=>(a[r]=e[r],n&&typeof e[r]>"u"&&(a[r]=n[r]),a),{})}const Qc=v.createContext(void 0);function _a(){return v.useContext(Qc)}function E5(e){return A.jsx(g1,I({},e,{defaultTheme:LW,themeId:Qo}))}function ZS(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Vc(e,t=!1){return e&&(ZS(e.value)&&e.value!==""||t&&ZS(e.defaultValue)&&e.defaultValue!=="")}function b5(e){return e.startAdornment}function k5(e){return ke("MuiInputBase",e)}const _n=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),w5=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Uc=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${$(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Fc=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},R5=e=>{const{classes:t,color:n,disabled:a,error:r,endAdornment:l,focused:o,formControl:i,fullWidth:s,hiddenLabel:p,multiline:u,readOnly:c,size:d,startAdornment:f,type:W}=e,m={root:["root",`color${$(n)}`,a&&"disabled",r&&"error",s&&"fullWidth",o&&"focused",i&&"formControl",d&&d!=="medium"&&`size${$(d)}`,u&&"multiline",f&&"adornedStart",l&&"adornedEnd",p&&"hiddenLabel",c&&"readOnly"],input:["input",a&&"disabled",W==="search"&&"inputTypeSearch",u&&"inputMultiline",d==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",f&&"inputAdornedStart",l&&"inputAdornedEnd",c&&"readOnly"]};return Re(m,k5,t)},zc=_("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Uc})(({theme:e,ownerState:t})=>I({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${_n.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&I({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),qc=_("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fc})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",a=I({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return I({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${_n.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${_n.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),B5=A.jsx(E5,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_W=v.forwardRef(function(t,n){var a;const r=Le({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:o,autoFocus:i,className:s,components:p={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:W,fullWidth:m=!1,id:x,inputComponent:h="input",inputProps:g={},inputRef:C,maxRows:y,minRows:E,multiline:S=!1,name:k,onBlur:R,onChange:V,onClick:b,onFocus:B,onKeyDown:M,onKeyUp:F,placeholder:z,readOnly:T,renderSuffix:j,rows:P,slotProps:L={},slots:q={},startAdornment:w,type:H="text",value:te}=r,Q=se(r,w5),N=g.value!=null?g.value:te,{current:re}=v.useRef(N!=null),ue=v.useRef(),X=v.useCallback(U=>{},[]),ee=Mt(ue,C,g.ref,X),[de,ae]=v.useState(!1),G=_a(),he=_r({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=G?G.focused:de,v.useEffect(()=>{!G&&d&&de&&(ae(!1),R&&R())},[G,d,de,R]);const ge=G&&G.onFilled,me=G&&G.onEmpty,ve=v.useCallback(U=>{Vc(U)?ge&&ge():me&&me()},[ge,me]);da(()=>{re&&ve({value:N})},[N,ve,re]);const ce=U=>{if(he.disabled){U.stopPropagation();return}B&&B(U),g.onFocus&&g.onFocus(U),G&&G.onFocus?G.onFocus(U):ae(!0)},Ze=U=>{R&&R(U),g.onBlur&&g.onBlur(U),G&&G.onBlur?G.onBlur(U):ae(!1)},le=(U,...O)=>{if(!re){const Y=U.target||ue.current;if(Y==null)throw new Error(hr(1));ve({value:Y.value})}g.onChange&&g.onChange(U,...O),V&&V(U,...O)};v.useEffect(()=>{ve(ue.current)},[]);const Ke=U=>{ue.current&&U.currentTarget===U.target&&ue.current.focus(),b&&b(U)};let qe=h,Be=g;S&&qe==="input"&&(P?Be=I({type:void 0,minRows:P,maxRows:P},Be):Be=I({type:void 0,maxRows:y,minRows:E},Be),qe=x5);const Te=U=>{ve(U.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};v.useEffect(()=>{G&&G.setAdornedStart(!!w)},[G,w]);const Pe=I({},r,{color:he.color||"primary",disabled:he.disabled,endAdornment:W,error:he.error,focused:he.focused,formControl:G,fullWidth:m,hiddenLabel:he.hiddenLabel,multiline:S,size:he.size,startAdornment:w,type:H}),je=R5(Pe),it=q.root||p.Root||zc,D=L.root||u.root||{},ne=q.input||p.Input||qc;return Be=I({},Be,(a=L.input)!=null?a:u.input),A.jsxs(v.Fragment,{children:[!f&&B5,A.jsxs(it,I({},D,!gc(it)&&{ownerState:I({},Pe,D.ownerState)},{ref:n,onClick:Ke},Q,{className:Ae(je.root,D.className,s,T&&"MuiInputBase-readOnly"),children:[w,A.jsx(Qc.Provider,{value:null,children:A.jsx(ne,I({ownerState:Pe,"aria-invalid":he.error,"aria-describedby":l,autoComplete:o,autoFocus:i,defaultValue:c,disabled:he.disabled,id:x,onAnimationStart:Te,name:k,placeholder:z,readOnly:T,required:he.required,rows:P,value:N,onKeyDown:M,onKeyUp:F,type:H},Be,!gc(ne)&&{as:qe,ownerState:I({},Pe,Be.ownerState)},{ref:ee,className:Ae(je.input,Be.className,T&&"MuiInputBase-readOnly"),onBlur:Ze,onChange:le,onFocus:ce}))}),W,j?j(I({},he,{startAdornment:w})):null]}))]})});function L5(e){return ke("MuiInput",e)}const $r=I({},_n,we("MuiInput",["root","underline","input"]));function M5(e){return ke("MuiOutlinedInput",e)}const $a=I({},_n,we("MuiOutlinedInput",["root","notchedOutline","input"]));function Q5(e){return ke("MuiFilledInput",e)}const $n=I({},_n,we("MuiFilledInput",["root","underline","input"])),NS=$t(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function V5(e){return ke("MuiAutocomplete",e)}const Ye=we("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var GS,HS;const U5=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],F5=["ref"],z5=["key"],q5=["key"],j5=e=>{const{classes:t,disablePortal:n,expanded:a,focused:r,fullWidth:l,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,popupOpen:p,size:u}=e,c={root:["root",a&&"expanded",r&&"focused",l&&"fullWidth",o&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${$(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Re(c,V5,t)},T5=_("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:a,hasClearIcon:r,hasPopupIcon:l,inputFocused:o,size:i}=n;return[{[`& .${Ye.tag}`]:t.tag},{[`& .${Ye.tag}`]:t[`tagSize${$(i)}`]},{[`& .${Ye.inputRoot}`]:t.inputRoot},{[`& .${Ye.input}`]:t.input},{[`& .${Ye.input}`]:o&&t.inputFocused},t.root,a&&t.fullWidth,l&&t.hasPopupIcon,r&&t.hasClearIcon]}})({[`&.${Ye.focused} .${Ye.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ye.clearIndicator}`]:{visibility:"visible"}},[`& .${Ye.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ye.inputRoot}`]:{[`.${Ye.hasPopupIcon}&, .${Ye.hasClearIcon}&`]:{paddingRight:30},[`.${Ye.hasPopupIcon}.${Ye.hasClearIcon}&`]:{paddingRight:56},[`& .${Ye.input}`]:{width:0,minWidth:30}},[`& .${$r.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$r.root}.${_n.sizeSmall}`]:{[`& .${$r.input}`]:{padding:"2px 4px 3px 0"}},[`& .${$a.root}`]:{padding:9,[`.${Ye.hasPopupIcon}&, .${Ye.hasClearIcon}&`]:{paddingRight:39},[`.${Ye.hasPopupIcon}.${Ye.hasClearIcon}&`]:{paddingRight:65},[`& .${Ye.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ye.endAdornment}`]:{right:9}},[`& .${$a.root}.${_n.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ye.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${$n.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ye.hasPopupIcon}&, .${Ye.hasClearIcon}&`]:{paddingRight:39},[`.${Ye.hasPopupIcon}.${Ye.hasClearIcon}&`]:{paddingRight:65},[`& .${$n.input}`]:{padding:"7px 4px"},[`& .${Ye.endAdornment}`]:{right:9}},[`& .${$n.root}.${_n.sizeSmall}`]:{paddingBottom:1,[`& .${$n.input}`]:{padding:"2.5px 4px"}},[`& .${_n.hiddenLabel}`]:{paddingTop:8},[`& .${$n.root}.${_n.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ye.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${$n.root}.${_n.hiddenLabel}.${_n.sizeSmall}`]:{[`& .${Ye.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ye.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ye.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ye.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ye.inputRoot}`]:{flexWrap:"wrap"}}}]}),O5=_("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),K5=_(Hn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),P5=_(Hn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>I({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),J5=_(Lc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ye.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),D5=_(Nt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>I({},e.typography.body1,{overflow:"auto"})),Y5=_("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Z5=_("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),N5=_("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ye.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ye.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ye.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),G5=_(JS,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),H5=_("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ye.option}`]:{paddingLeft:24}}),$W=v.forwardRef(function(t,n){var a,r,l,o;const i=Le({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:p=!1,autoSelect:u=!1,blurOnSelect:c=!1,ChipProps:d,className:f,clearIcon:W=GS||(GS=A.jsx(hS,{fontSize:"small"})),clearOnBlur:m=!i.freeSolo,clearOnEscape:x=!1,clearText:h="Clear",closeText:g="Close",componentsProps:C={},defaultValue:y=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:S=!1,disabled:k=!1,disabledItemsFocusable:R=!1,disableListWrap:V=!1,disablePortal:b=!1,filterSelectedOptions:B=!1,forcePopupIcon:M="auto",freeSolo:F=!1,fullWidth:z=!1,getLimitTagsText:T=J=>`+${J}`,getOptionLabel:j,groupBy:P,handleHomeEndKeys:L=!i.freeSolo,includeInputInList:q=!1,limitTags:w=-1,ListboxComponent:H="ul",ListboxProps:te,loading:Q=!1,loadingText:N="Loading…",multiple:re=!1,noOptionsText:ue="No options",openOnFocus:X=!1,openText:ee="Open",PaperComponent:de=Nt,PopperComponent:ae=Lc,popupIcon:G=HS||(HS=A.jsx(NS,{})),readOnly:he=!1,renderGroup:ge,renderInput:me,renderOption:ve,renderTags:ce,selectOnFocus:Ze=!i.freeSolo,size:le="medium",slotProps:Ke={}}=i,qe=se(i,U5),{getRootProps:Be,getInputProps:Te,getInputLabelProps:Pe,getPopupIndicatorProps:je,getClearProps:it,getTagProps:D,getListboxProps:ne,getOptionProps:U,value:O,dirty:Y,expanded:Ie,id:Se,popupOpen:pe,focused:xe,focusedTag:Qe,anchorEl:Je,setAnchorEl:ft,inputValue:bt,groupedOptions:kt}=OQ(I({},i,{componentName:"Autocomplete"})),Dt=!E&&!k&&Y&&!he,rt=(!F||M===!0)&&M!==!1,{onMouseDown:Xe}=Te(),{ref:Ce}=te??{},_e=ne(),{ref:Ve}=_e,It=se(_e,F5),Tt=Mt(Ve,Ce),Ea=j||(J=>{var We;return(We=J.label)!=null?We:J}),Ft=I({},i,{disablePortal:b,expanded:Ie,focused:xe,fullWidth:z,getOptionLabel:Ea,hasClearIcon:Dt,hasPopupIcon:rt,inputFocused:Qe===-1,popupOpen:pe,size:le}),wt=j5(Ft);let Sn;if(re&&O.length>0){const J=We=>I({className:wt.tag,disabled:k},D(We));ce?Sn=ce(O,J,Ft):Sn=O.map((We,be)=>{const Ne=J({index:be}),{key:Ee}=Ne,$e=se(Ne,z5);return A.jsx(vn,I({label:Ea(We),size:le},$e,d),Ee)})}if(w>-1&&Array.isArray(Sn)){const J=Sn.length-w;!xe&&J>0&&(Sn=Sn.splice(0,w),Sn.push(A.jsx("span",{className:wt.tag,children:T(J)},Sn.length)))}const br=ge||(J=>A.jsxs("li",{children:[A.jsx(G5,{className:wt.groupLabel,ownerState:Ft,component:"div",children:J.group}),A.jsx(H5,{className:wt.groupUl,ownerState:Ft,children:J.children})]},J.key)),kr=ve||((J,We)=>{const{key:be}=J,Ne=se(J,q5);return A.jsx("li",I({},Ne,{children:Ea(We)}),be)}),ol=(J,We)=>{const be=U({option:J,index:We});return kr(I({},be,{className:wt.option}),J,{selected:be["aria-selected"],index:We,inputValue:bt},Ft)},il=(a=Ke.clearIndicator)!=null?a:C.clearIndicator,rr=(r=Ke.paper)!=null?r:C.paper,wr=(l=Ke.popper)!=null?l:C.popper,Z=(o=Ke.popupIndicator)!=null?o:C.popupIndicator;return A.jsxs(v.Fragment,{children:[A.jsx(T5,I({ref:n,className:Ae(wt.root,f),ownerState:Ft},Be(qe),{children:me({id:Se,disabled:k,fullWidth:!0,size:le==="small"?"small":void 0,InputLabelProps:Pe(),InputProps:I({ref:ft,className:wt.inputRoot,startAdornment:Sn,onClick:J=>{J.target===J.currentTarget&&Xe(J)}},(Dt||rt)&&{endAdornment:A.jsxs(O5,{className:wt.endAdornment,ownerState:Ft,children:[Dt?A.jsx(K5,I({},it(),{"aria-label":h,title:h,ownerState:Ft},il,{className:Ae(wt.clearIndicator,il==null?void 0:il.className),children:W})):null,rt?A.jsx(P5,I({},je(),{disabled:k,"aria-label":pe?g:ee,title:pe?g:ee,ownerState:Ft},Z,{className:Ae(wt.popupIndicator,Z==null?void 0:Z.className),children:G})):null]})}),inputProps:I({className:wt.input,disabled:k,readOnly:he},Te())})})),Je?A.jsx(J5,I({as:ae,disablePortal:b,style:{width:Je?Je.clientWidth:null},ownerState:Ft,role:"presentation",anchorEl:Je,open:pe},wr,{className:Ae(wt.popper,wr==null?void 0:wr.className),children:A.jsxs(D5,I({ownerState:Ft,as:de},rr,{className:Ae(wt.paper,rr==null?void 0:rr.className),children:[Q&&kt.length===0?A.jsx(Y5,{className:wt.loading,ownerState:Ft,children:N}):null,kt.length===0&&!F&&!Q?A.jsx(Z5,{className:wt.noOptions,ownerState:Ft,role:"presentation",onMouseDown:J=>{J.preventDefault()},children:ue}):null,kt.length>0?A.jsx(N5,I({as:H,className:wt.listbox,ownerState:Ft},It,te,{ref:Tt,children:kt.map((J,We)=>P?br({key:J.key,group:J.group,children:J.options.map((be,Ne)=>ol(be,J.index+Ne))}):ol(J,We))})):null]}))})):null]})}),X5=$t(A.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function _5(e){return ke("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const $5=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],eU=e=>{const{classes:t,variant:n,colorDefault:a}=e;return Re({root:["root",n,a&&"colorDefault"],img:["img"],fallback:["fallback"]},_5,t)},tU=_("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:I({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:I({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),nU=_("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),aU=_(X5,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function rU({crossOrigin:e,referrerPolicy:t,src:n,srcSet:a}){const[r,l]=v.useState(!1);return v.useEffect(()=>{if(!n&&!a)return;l(!1);let o=!0;const i=new Image;return i.onload=()=>{o&&l("loaded")},i.onerror=()=>{o&&l("error")},i.crossOrigin=e,i.referrerPolicy=t,i.src=n,a&&(i.srcset=a),()=>{o=!1}},[e,t,n,a]),r}const Sr=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiAvatar"}),{alt:r,children:l,className:o,component:i="div",slots:s={},slotProps:p={},imgProps:u,sizes:c,src:d,srcSet:f,variant:W="circular"}=a,m=se(a,$5);let x=null;const h=rU(I({},u,{src:d,srcSet:f})),g=d||f,C=g&&h!=="error",y=I({},a,{colorDefault:!C,component:i,variant:W}),E=eU(y),[S,k]=jW("img",{className:E.img,elementType:nU,externalForwardedProps:{slots:s,slotProps:{img:I({},u,p.img)}},additionalProps:{alt:r,src:d,srcSet:f,sizes:c},ownerState:y});return C?x=A.jsx(S,I({},k)):l||l===0?x=l:g&&r?x=r[0]:x=A.jsx(aU,{ownerState:y,className:E.fallback}),A.jsx(tU,I({as:i,ownerState:y,className:Ae(E.root,o),ref:n},m,{children:x}))}),lU=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],oU={entering:{opacity:1},entered:{opacity:1}},XS=v.forwardRef(function(t,n){const a=vr(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:l,appear:o=!0,children:i,easing:s,in:p,onEnter:u,onEntered:c,onEntering:d,onExit:f,onExited:W,onExiting:m,style:x,timeout:h=r,TransitionComponent:g=Va}=t,C=se(t,lU),y=v.useRef(null),E=Mt(y,wl(i),n),S=z=>T=>{if(z){const j=y.current;T===void 0?z(j):z(j,T)}},k=S(d),R=S((z,T)=>{qW(z);const j=Ko({style:x,timeout:h,easing:s},{mode:"enter"});z.style.webkitTransition=a.transitions.create("opacity",j),z.style.transition=a.transitions.create("opacity",j),u&&u(z,T)}),V=S(c),b=S(m),B=S(z=>{const T=Ko({style:x,timeout:h,easing:s},{mode:"exit"});z.style.webkitTransition=a.transitions.create("opacity",T),z.style.transition=a.transitions.create("opacity",T),f&&f(z)}),M=S(W),F=z=>{l&&l(y.current,z)};return A.jsx(g,I({appear:o,in:p,nodeRef:y,onEnter:R,onEntered:V,onEntering:k,onExit:B,onExited:M,onExiting:b,addEndListener:F,timeout:h},C,{children:(z,T)=>v.cloneElement(i,I({style:I({opacity:0,visibility:z==="exited"&&!p?"hidden":void 0},oU[z],x,i.props.style),ref:E},T))}))});function iU(e){return ke("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const sU=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],pU=e=>{const{classes:t,invisible:n}=e;return Re({root:["root",n&&"invisible"]},iU,t)},uU=_("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>I({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"})),_S=v.forwardRef(function(t,n){var a,r,l;const o=Le({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:p="div",components:u={},componentsProps:c={},invisible:d=!1,open:f,slotProps:W={},slots:m={},TransitionComponent:x=XS,transitionDuration:h}=o,g=se(o,sU),C=I({},o,{component:p,invisible:d}),y=pU(C),E=(a=W.root)!=null?a:c.root;return A.jsx(x,I({in:f,timeout:h},g,{children:A.jsx(uU,I({"aria-hidden":!0},E,{as:(r=(l=m.root)!=null?l:u.Root)!=null?r:p,className:Ae(y.root,s,E==null?void 0:E.className),ownerState:I({},C,E==null?void 0:E.ownerState),classes:y,ref:n,children:i}))}))}),cU=we("MuiBox",["root"]),AU=BW(),K=S2({themeId:Qo,defaultTheme:AU,defaultClassName:cU.root,generateClassName:gW.generate});function dU(e){return ke("MuiButton",e)}const jc=we("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"]),fU=v.createContext({}),WU=v.createContext(void 0),gU=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],hU=e=>{const{color:t,disableElevation:n,fullWidth:a,size:r,variant:l,classes:o}=e,i={root:["root",l,`${l}${$(t)}`,`size${$(r)}`,`${l}Size${$(r)}`,`color${$(t)}`,n&&"disableElevation",a&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${$(r)}`],endIcon:["icon","endIcon",`iconSize${$(r)}`]},s=Re(i,dU,o);return I({},o,s)},$S=e=>I({},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}}),mU=_(Po,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color)}`],t[`size${$(n.size)}`],t[`${n.variant}Size${$(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,a;const r=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],l=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return I({},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":I({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(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})`:Ct(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})`:Ct(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:l,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":I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${jc.focusVisible}`]:I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${jc.disabled}`]:I({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 ${Ct(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(a=e.palette).getContrastText)==null?void 0:n.call(a,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,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"},[`&.${jc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${jc.disabled}`]:{boxShadow:"none"}}),CU=_("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${$(n.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},$S(e))),vU=_("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${$(n.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},$S(e))),ze=v.forwardRef(function(t,n){const a=v.useContext(fU),r=v.useContext(WU),l=As(a,t),o=Le({props:l,name:"MuiButton"}),{children:i,color:s="primary",component:p="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:W,focusVisibleClassName:m,fullWidth:x=!1,size:h="medium",startIcon:g,type:C,variant:y="text"}=o,E=se(o,gU),S=I({},o,{color:s,component:p,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:x,size:h,type:C,variant:y}),k=hU(S),R=g&&A.jsx(CU,{className:k.startIcon,ownerState:S,children:g}),V=W&&A.jsx(vU,{className:k.endIcon,ownerState:S,children:W}),b=r||"";return A.jsxs(mU,I({ownerState:S,className:Ae(a.className,k.root,u,b),component:p,disabled:c,focusRipple:!f,focusVisibleClassName:Ae(k.focusVisible,m),ref:n,type:C},E,{classes:k,children:[R,i,V]}))});function yU(e){return ke("MuiCard",e)}we("MuiCard",["root"]);const SU=["className","raised"],IU=e=>{const{classes:t}=e;return Re({root:["root"]},yU,t)},xU=_(Nt,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),eg=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiCard"}),{className:r,raised:l=!1}=a,o=se(a,SU),i=I({},a,{raised:l}),s=IU(i);return A.jsx(xU,I({className:Ae(s.root,r),elevation:l?8:void 0,ref:n,ownerState:i},o))});function EU(e){return ke("MuiCardActionArea",e)}const tg=we("MuiCardActionArea",["root","focusVisible","focusHighlight"]),bU=["children","className","focusVisibleClassName"],kU=e=>{const{classes:t}=e;return Re({root:["root"],focusHighlight:["focusHighlight"]},EU,t)},wU=_(Po,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${tg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${tg.focusVisible} .${tg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),RU=_("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),eI=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiCardActionArea"}),{children:r,className:l,focusVisibleClassName:o}=a,i=se(a,bU),s=a,p=kU(s);return A.jsxs(wU,I({className:Ae(p.root,l),focusVisibleClassName:Ae(o,p.focusVisible),ref:n,ownerState:s},i,{children:[r,A.jsx(RU,{className:p.focusHighlight,ownerState:s})]}))});function BU(e){return ke("MuiCardContent",e)}we("MuiCardContent",["root"]);const LU=["className","component"],MU=e=>{const{classes:t}=e;return Re({root:["root"]},BU,t)},QU=_("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),ng=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiCardContent"}),{className:r,component:l="div"}=a,o=se(a,LU),i=I({},a,{component:l}),s=MU(i);return A.jsx(QU,I({as:l,className:Ae(s.root,r),ownerState:i,ref:n},o))});function VU(e){return ke("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const UU=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],FU=e=>{const{classes:t,checked:n,disabled:a,edge:r}=e,l={root:["root",n&&"checked",a&&"disabled",r&&`edge${$(r)}`],input:["input"]};return Re(l,VU,t)},zU=_(Po,{name:"MuiSwitchBase"})(({ownerState:e})=>I({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),qU=_("input",{name:"MuiSwitchBase",shouldForwardProp:Cn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),tI=v.forwardRef(function(t,n){const{autoFocus:a,checked:r,checkedIcon:l,className:o,defaultChecked:i,disabled:s,disableFocusRipple:p=!1,edge:u=!1,icon:c,id:d,inputProps:f,inputRef:W,name:m,onBlur:x,onChange:h,onFocus:g,readOnly:C,required:y=!1,tabIndex:E,type:S,value:k}=t,R=se(t,UU),[V,b]=Cr({controlled:r,default:!!i,name:"SwitchBase",state:"checked"}),B=_a(),M=q=>{g&&g(q),B&&B.onFocus&&B.onFocus(q)},F=q=>{x&&x(q),B&&B.onBlur&&B.onBlur(q)},z=q=>{if(q.nativeEvent.defaultPrevented)return;const w=q.target.checked;b(w),h&&h(q,w)};let T=s;B&&typeof T>"u"&&(T=B.disabled);const j=S==="checkbox"||S==="radio",P=I({},t,{checked:V,disabled:T,disableFocusRipple:p,edge:u}),L=FU(P);return A.jsxs(zU,I({component:"span",className:Ae(L.root,o),centerRipple:!0,focusRipple:!p,disabled:T,tabIndex:null,role:void 0,onFocus:M,onBlur:F,ownerState:P,ref:n},R,{children:[A.jsx(qU,I({autoFocus:a,checked:r,defaultChecked:i,className:L.input,disabled:T,id:j?d:void 0,name:m,onChange:z,readOnly:C,ref:W,required:y,ownerState:P,tabIndex:E,type:S},S==="checkbox"&&k===void 0?{}:{value:k},f)),V?l:c]}))}),jU=$t(A.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),TU=$t(A.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),OU=$t(A.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function KU(e){return ke("MuiCheckbox",e)}const ag=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),PU=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],JU=e=>{const{classes:t,indeterminate:n,color:a,size:r}=e,l={root:["root",n&&"indeterminate",`color${$(a)}`,`size${$(r)}`]},o=Re(l,KU,t);return I({},t,o)},DU=_(tI,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${$(n.size)}`],n.color!=="default"&&t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ag.checked}, &.${ag.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ag.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),YU=A.jsx(TU,{}),ZU=A.jsx(jU,{}),NU=A.jsx(OU,{}),GU=v.forwardRef(function(t,n){var a,r;const l=Le({props:t,name:"MuiCheckbox"}),{checkedIcon:o=YU,color:i="primary",icon:s=ZU,indeterminate:p=!1,indeterminateIcon:u=NU,inputProps:c,size:d="medium",className:f}=l,W=se(l,PU),m=p?u:s,x=p?u:o,h=I({},l,{color:i,indeterminate:p,size:d}),g=JU(h);return A.jsx(DU,I({type:"checkbox",inputProps:I({"data-indeterminate":p},c),icon:v.cloneElement(m,{fontSize:(a=m.props.fontSize)!=null?a:d}),checkedIcon:v.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:d}),ownerState:h,ref:n,className:Ae(g.root,f)},W,{classes:g}))});function HU(e){return ke("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const XU=["className","color","disableShrink","size","style","thickness","value","variant"];let Tc=e=>e,nI,aI,rI,lI;const el=44,_U=Gr(nI||(nI=Tc`
154
+ `),ga.rippleVisible,eQ,TW,({theme:e})=>e.transitions.easing.easeInOut,ga.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ga.child,ga.childLeaving,tQ,TW,({theme:e})=>e.transitions.easing.easeInOut,ga.childPulsate,nQ,({theme:e})=>e.transitions.easing.easeInOut),lQ=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:l={},className:o}=a,i=se(a,_M),[s,p]=v.useState([]),u=v.useRef(0),c=v.useRef(null);v.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=v.useRef(!1),f=Fo(),W=v.useRef(null),m=v.useRef(null),x=v.useCallback(y=>{const{pulsate:E,rippleX:S,rippleY:k,rippleSize:R,cb:V}=y;p(b=>[...b,A.jsx(rQ,{classes:{ripple:Ae(l.ripple,ga.ripple),rippleVisible:Ae(l.rippleVisible,ga.rippleVisible),ripplePulsate:Ae(l.ripplePulsate,ga.ripplePulsate),child:Ae(l.child,ga.child),childLeaving:Ae(l.childLeaving,ga.childLeaving),childPulsate:Ae(l.childPulsate,ga.childPulsate)},timeout:TW,pulsate:E,rippleX:S,rippleY:k,rippleSize:R},u.current)]),u.current+=1,c.current=V},[l]),h=v.useCallback((y={},E={},S=()=>{})=>{const{pulsate:k=!1,center:R=r||E.pulsate,fakeElement:V=!1}=E;if((y==null?void 0:y.type)==="mousedown"&&d.current){d.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(d.current=!0);const b=V?null:m.current,B=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,F,z;if(R||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)M=Math.round(B.width/2),F=Math.round(B.height/2);else{const{clientX:T,clientY:j}=y.touches&&y.touches.length>0?y.touches[0]:y;M=Math.round(T-B.left),F=Math.round(j-B.top)}if(R)z=Math.sqrt((2*B.width**2+B.height**2)/3),z%2===0&&(z+=1);else{const T=Math.max(Math.abs((b?b.clientWidth:0)-M),M)*2+2,j=Math.max(Math.abs((b?b.clientHeight:0)-F),F)*2+2;z=Math.sqrt(T**2+j**2)}y!=null&&y.touches?W.current===null&&(W.current=()=>{x({pulsate:k,rippleX:M,rippleY:F,rippleSize:z,cb:S})},f.start($M,()=>{W.current&&(W.current(),W.current=null)})):x({pulsate:k,rippleX:M,rippleY:F,rippleSize:z,cb:S})},[r,x,f]),g=v.useCallback(()=>{h({},{pulsate:!0})},[h]),C=v.useCallback((y,E)=>{if(f.clear(),(y==null?void 0:y.type)==="touchend"&&W.current){W.current(),W.current=null,f.start(0,()=>{C(y,E)});return}W.current=null,p(S=>S.length>0?S.slice(1):S),c.current=E},[f]);return v.useImperativeHandle(n,()=>({pulsate:g,start:h,stop:C}),[g,h,C]),A.jsx(aQ,I({className:Ae(ga.root,l.root,o),ref:m},i,{children:A.jsx(zW,{component:null,exit:!0,children:s})}))});function oQ(e){return ke("MuiButtonBase",e)}const iQ=we("MuiButtonBase",["root","disabled","focusVisible"]),sQ=["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"],pQ=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:a,classes:r}=e,o=Re({root:["root",t&&"disabled",n&&"focusVisible"]},oQ,r);return n&&a&&(o.root+=` ${a}`),o},uQ=$("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"},[`&.${iQ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Po=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:l=!1,children:o,className:i,component:s="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:W,onClick:m,onContextMenu:x,onDragLeave:h,onFocus:g,onFocusVisible:C,onKeyDown:y,onKeyUp:E,onMouseDown:S,onMouseLeave:k,onMouseUp:R,onTouchEnd:V,onTouchMove:b,onTouchStart:B,tabIndex:M=0,TouchRippleProps:F,touchRippleRef:z,type:T}=a,j=se(a,sQ),P=v.useRef(null),L=v.useRef(null),q=Mt(L,z),{isFocusVisibleRef:w,onFocus:G,onBlur:te,ref:Q}=IW(),[N,re]=v.useState(!1);p&&N&&re(!1),v.useImperativeHandle(r,()=>({focusVisible:()=>{re(!0),P.current.focus()}}),[]);const[ue,_]=v.useState(!1);v.useEffect(()=>{_(!0)},[]);const H=ue&&!u&&!p;v.useEffect(()=>{N&&d&&!u&&ue&&L.current.pulsate()},[u,d,N,ue]);function de(O,Y,Ie=c){return Bn(Se=>(Y&&Y(Se),!Ie&&L.current&&L.current[O](Se),!0))}const ae=de("start",S),X=de("stop",x),he=de("stop",h),We=de("stop",R),me=de("stop",O=>{N&&O.preventDefault(),k&&k(O)}),ve=de("start",B),ce=de("stop",V),Ze=de("stop",b),le=de("stop",O=>{te(O),w.current===!1&&re(!1),W&&W(O)},!1),Ke=Bn(O=>{P.current||(P.current=O.currentTarget),G(O),w.current===!0&&(re(!0),C&&C(O)),g&&g(O)}),qe=()=>{const O=P.current;return s&&s!=="button"&&!(O.tagName==="A"&&O.href)},Be=v.useRef(!1),Te=Bn(O=>{d&&!Be.current&&N&&L.current&&O.key===" "&&(Be.current=!0,L.current.stop(O,()=>{L.current.start(O)})),O.target===O.currentTarget&&qe()&&O.key===" "&&O.preventDefault(),y&&y(O),O.target===O.currentTarget&&qe()&&O.key==="Enter"&&!p&&(O.preventDefault(),m&&m(O))}),Pe=Bn(O=>{d&&O.key===" "&&L.current&&N&&!O.defaultPrevented&&(Be.current=!1,L.current.stop(O,()=>{L.current.pulsate(O)})),E&&E(O),m&&O.target===O.currentTarget&&qe()&&O.key===" "&&!O.defaultPrevented&&m(O)});let je=s;je==="button"&&(j.href||j.to)&&(je=f);const it={};je==="button"?(it.type=T===void 0?"button":T,it.disabled=p):(!j.href&&!j.to&&(it.role="button"),p&&(it["aria-disabled"]=p));const D=Mt(n,Q,P),ne=I({},a,{centerRipple:l,component:s,disabled:p,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:N}),U=pQ(ne);return A.jsxs(uQ,I({as:je,className:Ae(U.root,i),ownerState:ne,onBlur:le,onClick:m,onContextMenu:X,onFocus:Ke,onKeyDown:Te,onKeyUp:Pe,onMouseDown:ae,onMouseLeave:me,onMouseUp:We,onDragLeave:he,onTouchEnd:ce,onTouchMove:Ze,onTouchStart:ve,ref:D,tabIndex:p?-1:M,type:T},it,j,{children:[o,H?A.jsx(lQ,I({ref:q,center:l},F)):null]}))});function cQ(e){return ke("MuiAlert",e)}const gS=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function AQ(e){return ke("MuiIconButton",e)}const dQ=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),fQ=["edge","children","className","color","disabled","disableFocusRipple","size"],WQ=e=>{const{classes:t,disabled:n,color:a,edge:r,size:l}=e,o={root:["root",n&&"disabled",a!=="default"&&`color${ee(a)}`,r&&`edge${ee(r)}`,`size${ee(l)}`]};return Re(o,AQ,t)},gQ=$(Po,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ee(n.color)}`],n.edge&&t[`edge${ee(n.edge)}`],t[`size${ee(n.size)}`]]}})(({theme:e,ownerState:t})=>I({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})`:Ct(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 a=(n=(e.vars||e).palette)==null?void 0:n[t.color];return I({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&I({color:a==null?void 0:a.main},!t.disableRipple&&{"&:hover":I({},a&&{backgroundColor:e.vars?`rgba(${a.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(a.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)},{[`&.${dQ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Hn=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiIconButton"}),{edge:r=!1,children:l,className:o,color:i="default",disabled:s=!1,disableFocusRipple:p=!1,size:u="medium"}=a,c=se(a,fQ),d=I({},a,{edge:r,color:i,disabled:s,disableFocusRipple:p,size:u}),f=WQ(d);return A.jsx(gQ,I({className:Ae(f.root,o),centerRipple:!0,focusRipple:!p,disabled:s,ref:n},c,{ownerState:d,children:l}))}),hQ=$t(A.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),mQ=$t(A.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),CQ=$t(A.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),vQ=$t(A.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),hS=$t(A.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),yQ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],SQ=e=>{const{variant:t,color:n,severity:a,classes:r}=e,l={root:["root",`color${ee(n||a)}`,`${t}${ee(n||a)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Re(l,cQ,r)},IQ=$(Nt,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ee(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?xW:EW,n=e.palette.mode==="light"?EW:xW;return I({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{colorSeverity:a,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:t(e.palette[a].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${a}StandardBg`]:n(e.palette[a].light,.9),[`& .${gS.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{colorSeverity:a,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:t(e.palette[a].light,.6),border:`1px solid ${(e.vars||e).palette[a].light}`,[`& .${gS.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(([,a])=>a.main&&a.dark).map(([a])=>({props:{colorSeverity:a,variant:"filled"},style:I({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${a}FilledColor`],backgroundColor:e.vars.palette.Alert[`${a}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[a].dark:e.palette[a].main,color:e.palette.getContrastText(e.palette[a].main)})}))]})}),xQ=$("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),EQ=$("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),mS=$("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),CS={success:A.jsx(hQ,{fontSize:"inherit"}),warning:A.jsx(mQ,{fontSize:"inherit"}),error:A.jsx(CQ,{fontSize:"inherit"}),info:A.jsx(vQ,{fontSize:"inherit"})},Ml=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiAlert"}),{action:r,children:l,className:o,closeText:i="Close",color:s,components:p={},componentsProps:u={},icon:c,iconMapping:d=CS,onClose:f,role:W="alert",severity:m="success",slotProps:x={},slots:h={},variant:g="standard"}=a,C=se(a,yQ),y=I({},a,{color:s,severity:m,variant:g,colorSeverity:s||m}),E=SQ(y),S={slots:I({closeButton:p.CloseButton,closeIcon:p.CloseIcon},h),slotProps:I({},u,x)},[k,R]=jW("closeButton",{elementType:Hn,externalForwardedProps:S,ownerState:y}),[V,b]=jW("closeIcon",{elementType:hS,externalForwardedProps:S,ownerState:y});return A.jsxs(IQ,I({role:W,elevation:0,ownerState:y,className:Ae(E.root,o),ref:n},C,{children:[c!==!1?A.jsx(xQ,{ownerState:y,className:E.icon,children:c||d[m]||CS[m]}):null,A.jsx(EQ,{ownerState:y,className:E.message,children:l}),r!=null?A.jsx(mS,{ownerState:y,className:E.action,children:r}):null,r==null&&f?A.jsx(mS,{ownerState:y,className:E.action,children:A.jsx(k,I({size:"small","aria-label":i,title:i,color:"inherit",onClick:f},R,{children:A.jsx(V,I({fontSize:"small"},b))}))}):null]}))});function bQ(e){return ke("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const kQ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wQ=e=>{const{align:t,gutterBottom:n,noWrap:a,paragraph:r,variant:l,classes:o}=e,i={root:["root",l,e.align!=="inherit"&&`align${ee(t)}`,n&&"gutterBottom",a&&"noWrap",r&&"paragraph"]};return Re(i,bQ,o)},RQ=$("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${ee(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>I({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})),vS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},BQ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},LQ=e=>BQ[e]||e,fe=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiTypography"}),r=LQ(a.color),l=cs(I({},a,{color:r})),{align:o="inherit",className:i,component:s,gutterBottom:p=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=vS}=l,W=se(l,kQ),m=I({},l,{align:o,color:r,className:i,component:s,gutterBottom:p,noWrap:u,paragraph:c,variant:d,variantMapping:f}),x=s||(c?"p":f[d]||vS[d])||"span",h=wQ(m);return A.jsx(RQ,I({as:x,ref:n,ownerState:m,className:Ae(h.root,i)},W))});function MQ(e){return ke("MuiAppBar",e)}we("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const QQ=["className","color","enableColorOnDark","position"],VQ=e=>{const{color:t,position:n,classes:a}=e,r={root:["root",`color${ee(t)}`,`position${ee(n)}`]};return Re(r,MQ,a)},Ec=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,UQ=$(Nt,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ee(n.position)}`],t[`color${ee(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return I({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&I({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&I({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&I({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ec(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Ec(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Ec(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Ec(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),FQ=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiAppBar"}),{className:r,color:l="primary",enableColorOnDark:o=!1,position:i="fixed"}=a,s=se(a,QQ),p=I({},a,{color:l,position:i,enableColorOnDark:o}),u=VQ(p);return A.jsx(UQ,I({square:!0,component:"header",ownerState:p,elevation:4,className:Ae(u.root,r,i==="fixed"&&"mui-fixed"),ref:n},s))});function yS(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function zQ(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:a,matchFrom:r="any",stringify:l,trim:o=!1}=e;return(i,{inputValue:s,getOptionLabel:p})=>{let u=o?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=yS(u));const c=u?i.filter(d=>{let f=(l||p)(d);return n&&(f=f.toLowerCase()),t&&(f=yS(f)),r==="start"?f.indexOf(u)===0:f.indexOf(u)>-1}):i;return typeof a=="number"?c.slice(0,a):c}}function bc(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const qQ=zQ(),SS=5,jQ=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},TQ=[];function OQ(e){const{unstable_isActiveElementInListbox:t=jQ,unstable_classNamePrefix:n="Mui",autoComplete:a=!1,autoHighlight:r=!1,autoSelect:l=!1,blurOnSelect:o=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:s=!1,componentName:p="useAutocomplete",defaultValue:u=e.multiple?TQ:null,disableClearable:c=!1,disableCloseOnSelect:d=!1,disabled:f,disabledItemsFocusable:W=!1,disableListWrap:m=!1,filterOptions:x=qQ,filterSelectedOptions:h=!1,freeSolo:g=!1,getOptionDisabled:C,getOptionKey:y,getOptionLabel:E=Z=>{var J;return(J=Z.label)!=null?J:Z},groupBy:S,handleHomeEndKeys:k=!e.freeSolo,id:R,includeInputInList:V=!1,inputValue:b,isOptionEqualToValue:B=(Z,J)=>Z===J,multiple:M=!1,onChange:F,onClose:z,onHighlightChange:T,onInputChange:j,onOpen:P,open:L,openOnFocus:q=!1,options:w,readOnly:G=!1,selectOnFocus:te=!e.freeSolo,value:Q}=e,N=Hr(R);let re=E;re=Z=>{const J=E(Z);return typeof J!="string"?String(J):J};const ue=v.useRef(!1),_=v.useRef(!0),H=v.useRef(null),de=v.useRef(null),[ae,X]=v.useState(null),[he,We]=v.useState(-1),me=r?0:-1,ve=v.useRef(me),[ce,Ze]=Cr({controlled:Q,default:u,name:p}),[le,Ke]=Cr({controlled:b,default:"",name:p,state:"inputValue"}),[qe,Be]=v.useState(!1),Te=v.useCallback((Z,J)=>{if(!(M?ce.length<J.length:J!==null)&&!i)return;let be;if(M)be="";else if(J==null)be="";else{const Ne=re(J);be=typeof Ne=="string"?Ne:""}le!==be&&(Ke(be),j&&j(Z,be,"reset"))},[re,le,M,j,Ke,i,ce]),[Pe,je]=Cr({controlled:L,default:!1,name:p,state:"open"}),[it,D]=v.useState(!0),ne=!M&&ce!=null&&le===re(ce),U=Pe&&!G,O=U?x(w.filter(Z=>!(h&&(M?ce:[ce]).some(J=>J!==null&&B(Z,J)))),{inputValue:ne&&it?"":le,getOptionLabel:re}):[],Y=oL({filteredOptions:O,value:ce,inputValue:le});v.useEffect(()=>{const Z=ce!==Y.value;qe&&!Z||g&&!Z||Te(null,ce)},[ce,Te,qe,Y.value,g]);const Ie=Pe&&O.length>0&&!G,Se=Bn(Z=>{Z===-1?H.current.focus():ae.querySelector(`[data-tag-index="${Z}"]`).focus()});v.useEffect(()=>{M&&he>ce.length-1&&(We(-1),Se(-1))},[ce,M,he,Se]);function pe(Z,J){if(!de.current||Z<0||Z>=O.length)return-1;let ge=Z;for(;;){const be=de.current.querySelector(`[data-option-index="${ge}"]`),Ne=W?!1:!be||be.disabled||be.getAttribute("aria-disabled")==="true";if(be&&be.hasAttribute("tabindex")&&!Ne)return ge;if(J==="next"?ge=(ge+1)%O.length:ge=(ge-1+O.length)%O.length,ge===Z)return-1}}const xe=Bn(({event:Z,index:J,reason:ge="auto"})=>{if(ve.current=J,J===-1?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${N}-option-${J}`),T&&T(Z,J===-1?null:O[J],ge),!de.current)return;const be=de.current.querySelector(`[role="option"].${n}-focused`);be&&(be.classList.remove(`${n}-focused`),be.classList.remove(`${n}-focusVisible`));let Ne=de.current;if(de.current.getAttribute("role")!=="listbox"&&(Ne=de.current.parentElement.querySelector('[role="listbox"]')),!Ne)return;if(J===-1){Ne.scrollTop=0;return}const Ee=de.current.querySelector(`[data-option-index="${J}"]`);if(Ee&&(Ee.classList.add(`${n}-focused`),ge==="keyboard"&&Ee.classList.add(`${n}-focusVisible`),Ne.scrollHeight>Ne.clientHeight&&ge!=="mouse"&&ge!=="touch")){const $e=Ee,lr=Ne.clientHeight+Ne.scrollTop,Gk=$e.offsetTop+$e.offsetHeight;Gk>lr?Ne.scrollTop=Gk-Ne.clientHeight:$e.offsetTop-$e.offsetHeight*(S?1.3:0)<Ne.scrollTop&&(Ne.scrollTop=$e.offsetTop-$e.offsetHeight*(S?1.3:0))}}),Qe=Bn(({event:Z,diff:J,direction:ge="next",reason:be="auto"})=>{if(!U)return;const Ee=pe((()=>{const $e=O.length-1;if(J==="reset")return me;if(J==="start")return 0;if(J==="end")return $e;const lr=ve.current+J;return lr<0?lr===-1&&V?-1:m&&ve.current!==-1||Math.abs(J)>1?0:$e:lr>$e?lr===$e+1&&V?-1:m||Math.abs(J)>1?$e:0:lr})(),ge);if(xe({index:Ee,reason:be,event:Z}),a&&J!=="reset")if(Ee===-1)H.current.value=le;else{const $e=re(O[Ee]);H.current.value=$e,$e.toLowerCase().indexOf(le.toLowerCase())===0&&le.length>0&&H.current.setSelectionRange(le.length,$e.length)}}),Je=()=>{const Z=(J,ge)=>{const be=J?re(J):"",Ne=ge?re(ge):"";return be===Ne};if(ve.current!==-1&&Y.filteredOptions&&Y.filteredOptions.length!==O.length&&Y.inputValue===le&&(M?ce.length===Y.value.length&&Y.value.every((J,ge)=>re(ce[ge])===re(J)):Z(Y.value,ce))){const J=Y.filteredOptions[ve.current];if(J)return bc(O,ge=>re(ge)===re(J))}return-1},ft=v.useCallback(()=>{if(!U)return;const Z=Je();if(Z!==-1){ve.current=Z;return}const J=M?ce[0]:ce;if(O.length===0||J==null){Qe({diff:"reset"});return}if(de.current){if(J!=null){const ge=O[ve.current];if(M&&ge&&bc(ce,Ne=>B(ge,Ne))!==-1)return;const be=bc(O,Ne=>B(Ne,J));be===-1?Qe({diff:"reset"}):xe({index:be});return}if(ve.current>=O.length-1){xe({index:O.length-1});return}xe({index:ve.current})}},[O.length,M?!1:ce,h,Qe,xe,U,le,M]),bt=Bn(Z=>{ds(de,Z),Z&&ft()});v.useEffect(()=>{ft()},[ft]);const kt=Z=>{Pe||(je(!0),D(!0),P&&P(Z))},Dt=(Z,J)=>{Pe&&(je(!1),z&&z(Z,J))},rt=(Z,J,ge,be)=>{if(M){if(ce.length===J.length&&ce.every((Ne,Ee)=>Ne===J[Ee]))return}else if(ce===J)return;F&&F(Z,J,ge,be),Ze(J)},Xe=v.useRef(!1),Ce=(Z,J,ge="selectOption",be="options")=>{let Ne=ge,Ee=J;if(M){Ee=Array.isArray(ce)?ce.slice():[];const $e=bc(Ee,lr=>B(J,lr));$e===-1?Ee.push(J):be!=="freeSolo"&&(Ee.splice($e,1),Ne="removeOption")}Te(Z,Ee),rt(Z,Ee,Ne,{option:J}),!d&&(!Z||!Z.ctrlKey&&!Z.metaKey)&&Dt(Z,Ne),(o===!0||o==="touch"&&Xe.current||o==="mouse"&&!Xe.current)&&H.current.blur()};function _e(Z,J){if(Z===-1)return-1;let ge=Z;for(;;){if(J==="next"&&ge===ce.length||J==="previous"&&ge===-1)return-1;const be=ae.querySelector(`[data-tag-index="${ge}"]`);if(!be||!be.hasAttribute("tabindex")||be.disabled||be.getAttribute("aria-disabled")==="true")ge+=J==="next"?1:-1;else return ge}}const Ve=(Z,J)=>{if(!M)return;le===""&&Dt(Z,"toggleInput");let ge=he;he===-1?le===""&&J==="previous"&&(ge=ce.length-1):(ge+=J==="next"?1:-1,ge<0&&(ge=0),ge===ce.length&&(ge=-1)),ge=_e(ge,J),We(ge),Se(ge)},It=Z=>{ue.current=!0,Ke(""),j&&j(Z,"","clear"),rt(Z,M?[]:null,"clear")},Tt=Z=>J=>{if(Z.onKeyDown&&Z.onKeyDown(J),!J.defaultMuiPrevented&&(he!==-1&&["ArrowLeft","ArrowRight"].indexOf(J.key)===-1&&(We(-1),Se(-1)),J.which!==229))switch(J.key){case"Home":U&&k&&(J.preventDefault(),Qe({diff:"start",direction:"next",reason:"keyboard",event:J}));break;case"End":U&&k&&(J.preventDefault(),Qe({diff:"end",direction:"previous",reason:"keyboard",event:J}));break;case"PageUp":J.preventDefault(),Qe({diff:-SS,direction:"previous",reason:"keyboard",event:J}),kt(J);break;case"PageDown":J.preventDefault(),Qe({diff:SS,direction:"next",reason:"keyboard",event:J}),kt(J);break;case"ArrowDown":J.preventDefault(),Qe({diff:1,direction:"next",reason:"keyboard",event:J}),kt(J);break;case"ArrowUp":J.preventDefault(),Qe({diff:-1,direction:"previous",reason:"keyboard",event:J}),kt(J);break;case"ArrowLeft":Ve(J,"previous");break;case"ArrowRight":Ve(J,"next");break;case"Enter":if(ve.current!==-1&&U){const ge=O[ve.current],be=C?C(ge):!1;if(J.preventDefault(),be)return;Ce(J,ge,"selectOption"),a&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else g&&le!==""&&ne===!1&&(M&&J.preventDefault(),Ce(J,le,"createOption","freeSolo"));break;case"Escape":U?(J.preventDefault(),J.stopPropagation(),Dt(J,"escape")):s&&(le!==""||M&&ce.length>0)&&(J.preventDefault(),J.stopPropagation(),It(J));break;case"Backspace":if(M&&!G&&le===""&&ce.length>0){const ge=he===-1?ce.length-1:he,be=ce.slice();be.splice(ge,1),rt(J,be,"removeOption",{option:ce[ge]})}break;case"Delete":if(M&&!G&&le===""&&ce.length>0&&he!==-1){const ge=he,be=ce.slice();be.splice(ge,1),rt(J,be,"removeOption",{option:ce[ge]})}break}},Jl=Z=>{Be(!0),q&&!ue.current&&kt(Z)},Ea=Z=>{if(t(de)){H.current.focus();return}Be(!1),_.current=!0,ue.current=!1,l&&ve.current!==-1&&U?Ce(Z,O[ve.current],"blur"):l&&g&&le!==""?Ce(Z,le,"blur","freeSolo"):i&&Te(Z,ce),Dt(Z,"blur")},Ft=Z=>{const J=Z.target.value;le!==J&&(Ke(J),D(!1),j&&j(Z,J,"input")),J===""?!c&&!M&&rt(Z,null,"clear"):kt(Z)},wt=Z=>{const J=Number(Z.currentTarget.getAttribute("data-option-index"));ve.current!==J&&xe({event:Z,index:J,reason:"mouse"})},Sn=Z=>{xe({event:Z,index:Number(Z.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Xe.current=!0},Fn=Z=>{const J=Number(Z.currentTarget.getAttribute("data-option-index"));Ce(Z,O[J],"selectOption"),Xe.current=!1},br=Z=>J=>{const ge=ce.slice();ge.splice(Z,1),rt(J,ge,"removeOption",{option:ce[Z]})},ep=Z=>{Pe?Dt(Z,"toggleInput"):kt(Z)},kr=Z=>{Z.currentTarget.contains(Z.target)&&Z.target.getAttribute("id")!==N&&Z.preventDefault()},ol=Z=>{Z.currentTarget.contains(Z.target)&&(H.current.focus(),te&&_.current&&H.current.selectionEnd-H.current.selectionStart===0&&H.current.select(),_.current=!1)},il=Z=>{!f&&(le===""||!Pe)&&ep(Z)};let rr=g&&le.length>0;rr=rr||(M?ce.length>0:ce!==null);let wr=O;return S&&(wr=O.reduce((Z,J,ge)=>{const be=S(J);return Z.length>0&&Z[Z.length-1].group===be?Z[Z.length-1].options.push(J):Z.push({key:ge,index:ge,group:be,options:[J]}),Z},[])),f&&qe&&Ea(),{getRootProps:(Z={})=>I({"aria-owns":Ie?`${N}-listbox`:null},Z,{onKeyDown:Tt(Z),onMouseDown:kr,onClick:ol}),getInputLabelProps:()=>({id:`${N}-label`,htmlFor:N}),getInputProps:()=>({id:N,value:le,onBlur:Ea,onFocus:Jl,onChange:Ft,onMouseDown:il,"aria-activedescendant":U?"":null,"aria-autocomplete":a?"both":"list","aria-controls":Ie?`${N}-listbox`:void 0,"aria-expanded":Ie,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:It}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ep}),getTagProps:({index:Z})=>I({key:Z,"data-tag-index":Z,tabIndex:-1},!G&&{onDelete:br(Z)}),getListboxProps:()=>({role:"listbox",id:`${N}-listbox`,"aria-labelledby":`${N}-label`,ref:bt,onMouseDown:Z=>{Z.preventDefault()}}),getOptionProps:({index:Z,option:J})=>{var ge;const be=(M?ce:[ce]).some(Ee=>Ee!=null&&B(J,Ee)),Ne=C?C(J):!1;return{key:(ge=y==null?void 0:y(J))!=null?ge:re(J),tabIndex:-1,role:"option",id:`${N}-option-${Z}`,onMouseMove:wt,onClick:Fn,onTouchStart:Sn,"data-option-index":Z,"aria-disabled":Ne,"aria-selected":be}},id:N,inputValue:le,value:ce,dirty:rr,expanded:U&&ae,popupOpen:U,focused:qe||he!==-1,anchorEl:ae,setAnchorEl:X,focusedTag:he,groupedOptions:wr}}var OW={};Object.defineProperty(OW,"__esModule",{value:!0});var IS=OW.default=void 0,KQ=JQ(v),PQ=lS;function xS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(xS=function(a){return a?n:t})(e)}function JQ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=xS(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}function DQ(e){return Object.keys(e).length===0}function YQ(e=null){const t=KQ.useContext(PQ.ThemeContext);return!t||DQ(t)?e:t}IS=OW.default=YQ;var Ln="top",ha="bottom",ma="right",Mn="left",KW="auto",hs=[Ln,ha,ma,Mn],Jo="start",ms="end",ZQ="clippingParents",ES="viewport",Cs="popper",NQ="reference",bS=hs.reduce(function(e,t){return e.concat([t+"-"+Jo,t+"-"+ms])},[]),kS=[].concat(hs,[KW]).reduce(function(e,t){return e.concat([t,t+"-"+Jo,t+"-"+ms])},[]),GQ="beforeRead",HQ="read",XQ="afterRead",_Q="beforeMain",$Q="main",eV="afterMain",tV="beforeWrite",nV="write",aV="afterWrite",rV=[GQ,HQ,XQ,_Q,$Q,eV,tV,nV,aV];function Ha(e){return e?(e.nodeName||"").toLowerCase():null}function Xn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ql(e){var t=Xn(e).Element;return e instanceof t||e instanceof Element}function Ca(e){var t=Xn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function PW(e){if(typeof ShadowRoot>"u")return!1;var t=Xn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lV(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},l=t.elements[n];!Ca(l)||!Ha(l)||(Object.assign(l.style,a),Object.keys(r).forEach(function(o){var i=r[o];i===!1?l.removeAttribute(o):l.setAttribute(o,i===!0?"":i)}))})}function oV(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(a){var r=t.elements[a],l=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),i=o.reduce(function(s,p){return s[p]="",s},{});!Ca(r)||!Ha(r)||(Object.assign(r.style,i),Object.keys(l).forEach(function(s){r.removeAttribute(s)}))})}}const iV={name:"applyStyles",enabled:!0,phase:"write",fn:lV,effect:oV,requires:["computeStyles"]};function Xa(e){return e.split("-")[0]}var Vl=Math.max,kc=Math.min,Do=Math.round;function JW(){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 wS(){return!/^((?!chrome|android).)*safari/i.test(JW())}function Yo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),r=1,l=1;t&&Ca(e)&&(r=e.offsetWidth>0&&Do(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Do(a.height)/e.offsetHeight||1);var o=Ql(e)?Xn(e):window,i=o.visualViewport,s=!wS()&&n,p=(a.left+(s&&i?i.offsetLeft:0))/r,u=(a.top+(s&&i?i.offsetTop:0))/l,c=a.width/r,d=a.height/l;return{width:c,height:d,top:u,right:p+c,bottom:u+d,left:p,x:p,y:u}}function DW(e){var t=Yo(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function RS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&PW(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function yr(e){return Xn(e).getComputedStyle(e)}function sV(e){return["table","td","th"].indexOf(Ha(e))>=0}function Xr(e){return((Ql(e)?e.ownerDocument:e.document)||window.document).documentElement}function wc(e){return Ha(e)==="html"?e:e.assignedSlot||e.parentNode||(PW(e)?e.host:null)||Xr(e)}function BS(e){return!Ca(e)||yr(e).position==="fixed"?null:e.offsetParent}function pV(e){var t=/firefox/i.test(JW()),n=/Trident/i.test(JW());if(n&&Ca(e)){var a=yr(e);if(a.position==="fixed")return null}var r=wc(e);for(PW(r)&&(r=r.host);Ca(r)&&["html","body"].indexOf(Ha(r))<0;){var l=yr(r);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return r;r=r.parentNode}return null}function vs(e){for(var t=Xn(e),n=BS(e);n&&sV(n)&&yr(n).position==="static";)n=BS(n);return n&&(Ha(n)==="html"||Ha(n)==="body"&&yr(n).position==="static")?t:n||pV(e)||t}function YW(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ys(e,t,n){return Vl(e,kc(t,n))}function uV(e,t,n){var a=ys(e,t,n);return a>n?n:a}function LS(){return{top:0,right:0,bottom:0,left:0}}function MS(e){return Object.assign({},LS(),e)}function QS(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var cV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,MS(typeof t!="number"?t:QS(t,hs))};function AV(e){var t,n=e.state,a=e.name,r=e.options,l=n.elements.arrow,o=n.modifiersData.popperOffsets,i=Xa(n.placement),s=YW(i),p=[Mn,ma].indexOf(i)>=0,u=p?"height":"width";if(!(!l||!o)){var c=cV(r.padding,n),d=DW(l),f=s==="y"?Ln:Mn,W=s==="y"?ha:ma,m=n.rects.reference[u]+n.rects.reference[s]-o[s]-n.rects.popper[u],x=o[s]-n.rects.reference[s],h=vs(l),g=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,C=m/2-x/2,y=c[f],E=g-d[u]-c[W],S=g/2-d[u]/2+C,k=ys(y,S,E),R=s;n.modifiersData[a]=(t={},t[R]=k,t.centerOffset=k-S,t)}}function dV(e){var t=e.state,n=e.options,a=n.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||RS(t.elements.popper,r)&&(t.elements.arrow=r))}const fV={name:"arrow",enabled:!0,phase:"main",fn:AV,effect:dV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zo(e){return e.split("-")[1]}var WV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gV(e,t){var n=e.x,a=e.y,r=t.devicePixelRatio||1;return{x:Do(n*r)/r||0,y:Do(a*r)/r||0}}function VS(e){var t,n=e.popper,a=e.popperRect,r=e.placement,l=e.variation,o=e.offsets,i=e.position,s=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,c=e.isFixed,d=o.x,f=d===void 0?0:d,W=o.y,m=W===void 0?0:W,x=typeof u=="function"?u({x:f,y:m}):{x:f,y:m};f=x.x,m=x.y;var h=o.hasOwnProperty("x"),g=o.hasOwnProperty("y"),C=Mn,y=Ln,E=window;if(p){var S=vs(n),k="clientHeight",R="clientWidth";if(S===Xn(n)&&(S=Xr(n),yr(S).position!=="static"&&i==="absolute"&&(k="scrollHeight",R="scrollWidth")),S=S,r===Ln||(r===Mn||r===ma)&&l===ms){y=ha;var V=c&&S===E&&E.visualViewport?E.visualViewport.height:S[k];m-=V-a.height,m*=s?1:-1}if(r===Mn||(r===Ln||r===ha)&&l===ms){C=ma;var b=c&&S===E&&E.visualViewport?E.visualViewport.width:S[R];f-=b-a.width,f*=s?1:-1}}var B=Object.assign({position:i},p&&WV),M=u===!0?gV({x:f,y:m},Xn(n)):{x:f,y:m};if(f=M.x,m=M.y,s){var F;return Object.assign({},B,(F={},F[y]=g?"0":"",F[C]=h?"0":"",F.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",F))}return Object.assign({},B,(t={},t[y]=g?m+"px":"",t[C]=h?f+"px":"",t.transform="",t))}function hV(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,l=n.adaptive,o=l===void 0?!0:l,i=n.roundOffsets,s=i===void 0?!0:i,p={placement:Xa(t.placement),variation:Zo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,VS(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,VS(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hV,data:{}};var Rc={passive:!0};function CV(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,l=r===void 0?!0:r,o=a.resize,i=o===void 0?!0:o,s=Xn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&p.forEach(function(u){u.addEventListener("scroll",n.update,Rc)}),i&&s.addEventListener("resize",n.update,Rc),function(){l&&p.forEach(function(u){u.removeEventListener("scroll",n.update,Rc)}),i&&s.removeEventListener("resize",n.update,Rc)}}const vV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CV,data:{}};var yV={left:"right",right:"left",bottom:"top",top:"bottom"};function Bc(e){return e.replace(/left|right|bottom|top/g,function(t){return yV[t]})}var SV={start:"end",end:"start"};function US(e){return e.replace(/start|end/g,function(t){return SV[t]})}function ZW(e){var t=Xn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function NW(e){return Yo(Xr(e)).left+ZW(e).scrollLeft}function IV(e,t){var n=Xn(e),a=Xr(e),r=n.visualViewport,l=a.clientWidth,o=a.clientHeight,i=0,s=0;if(r){l=r.width,o=r.height;var p=wS();(p||!p&&t==="fixed")&&(i=r.offsetLeft,s=r.offsetTop)}return{width:l,height:o,x:i+NW(e),y:s}}function xV(e){var t,n=Xr(e),a=ZW(e),r=(t=e.ownerDocument)==null?void 0:t.body,l=Vl(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Vl(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-a.scrollLeft+NW(e),s=-a.scrollTop;return yr(r||n).direction==="rtl"&&(i+=Vl(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:o,x:i,y:s}}function GW(e){var t=yr(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function FS(e){return["html","body","#document"].indexOf(Ha(e))>=0?e.ownerDocument.body:Ca(e)&&GW(e)?e:FS(wc(e))}function Ss(e,t){var n;t===void 0&&(t=[]);var a=FS(e),r=a===((n=e.ownerDocument)==null?void 0:n.body),l=Xn(a),o=r?[l].concat(l.visualViewport||[],GW(a)?a:[]):a,i=t.concat(o);return r?i:i.concat(Ss(wc(o)))}function HW(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function EV(e,t){var n=Yo(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 zS(e,t,n){return t===ES?HW(IV(e,n)):Ql(t)?EV(t,n):HW(xV(Xr(e)))}function bV(e){var t=Ss(wc(e)),n=["absolute","fixed"].indexOf(yr(e).position)>=0,a=n&&Ca(e)?vs(e):e;return Ql(a)?t.filter(function(r){return Ql(r)&&RS(r,a)&&Ha(r)!=="body"}):[]}function kV(e,t,n,a){var r=t==="clippingParents"?bV(e):[].concat(t),l=[].concat(r,[n]),o=l[0],i=l.reduce(function(s,p){var u=zS(e,p,a);return s.top=Vl(u.top,s.top),s.right=kc(u.right,s.right),s.bottom=kc(u.bottom,s.bottom),s.left=Vl(u.left,s.left),s},zS(e,o,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function qS(e){var t=e.reference,n=e.element,a=e.placement,r=a?Xa(a):null,l=a?Zo(a):null,o=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,s;switch(r){case Ln:s={x:o,y:t.y-n.height};break;case ha:s={x:o,y:t.y+t.height};break;case ma:s={x:t.x+t.width,y:i};break;case Mn:s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}var p=r?YW(r):null;if(p!=null){var u=p==="y"?"height":"width";switch(l){case Jo:s[p]=s[p]-(t[u]/2-n[u]/2);break;case ms:s[p]=s[p]+(t[u]/2-n[u]/2);break}}return s}function Is(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,l=n.strategy,o=l===void 0?e.strategy:l,i=n.boundary,s=i===void 0?ZQ:i,p=n.rootBoundary,u=p===void 0?ES:p,c=n.elementContext,d=c===void 0?Cs:c,f=n.altBoundary,W=f===void 0?!1:f,m=n.padding,x=m===void 0?0:m,h=MS(typeof x!="number"?x:QS(x,hs)),g=d===Cs?NQ:Cs,C=e.rects.popper,y=e.elements[W?g:d],E=kV(Ql(y)?y:y.contextElement||Xr(e.elements.popper),s,u,o),S=Yo(e.elements.reference),k=qS({reference:S,element:C,placement:r}),R=HW(Object.assign({},C,k)),V=d===Cs?R:S,b={top:E.top-V.top+h.top,bottom:V.bottom-E.bottom+h.bottom,left:E.left-V.left+h.left,right:V.right-E.right+h.right},B=e.modifiersData.offset;if(d===Cs&&B){var M=B[r];Object.keys(b).forEach(function(F){var z=[ma,ha].indexOf(F)>=0?1:-1,T=[Ln,ha].indexOf(F)>=0?"y":"x";b[F]+=M[T]*z})}return b}function wV(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,l=n.rootBoundary,o=n.padding,i=n.flipVariations,s=n.allowedAutoPlacements,p=s===void 0?kS:s,u=Zo(a),c=u?i?bS:bS.filter(function(W){return Zo(W)===u}):hs,d=c.filter(function(W){return p.indexOf(W)>=0});d.length===0&&(d=c);var f=d.reduce(function(W,m){return W[m]=Is(e,{placement:m,boundary:r,rootBoundary:l,padding:o})[Xa(m)],W},{});return Object.keys(f).sort(function(W,m){return f[W]-f[m]})}function RV(e){if(Xa(e)===KW)return[];var t=Bc(e);return[US(e),t,US(t)]}function BV(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,l=r===void 0?!0:r,o=n.altAxis,i=o===void 0?!0:o,s=n.fallbackPlacements,p=n.padding,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,W=f===void 0?!0:f,m=n.allowedAutoPlacements,x=t.options.placement,h=Xa(x),g=h===x,C=s||(g||!W?[Bc(x)]:RV(x)),y=[x].concat(C).reduce(function(N,re){return N.concat(Xa(re)===KW?wV(t,{placement:re,boundary:u,rootBoundary:c,padding:p,flipVariations:W,allowedAutoPlacements:m}):re)},[]),E=t.rects.reference,S=t.rects.popper,k=new Map,R=!0,V=y[0],b=0;b<y.length;b++){var B=y[b],M=Xa(B),F=Zo(B)===Jo,z=[Ln,ha].indexOf(M)>=0,T=z?"width":"height",j=Is(t,{placement:B,boundary:u,rootBoundary:c,altBoundary:d,padding:p}),P=z?F?ma:Mn:F?ha:Ln;E[T]>S[T]&&(P=Bc(P));var L=Bc(P),q=[];if(l&&q.push(j[M]<=0),i&&q.push(j[P]<=0,j[L]<=0),q.every(function(N){return N})){V=B,R=!1;break}k.set(B,q)}if(R)for(var w=W?3:1,G=function(re){var ue=y.find(function(_){var H=k.get(_);if(H)return H.slice(0,re).every(function(de){return de})});if(ue)return V=ue,"break"},te=w;te>0;te--){var Q=G(te);if(Q==="break")break}t.placement!==V&&(t.modifiersData[a]._skip=!0,t.placement=V,t.reset=!0)}}const LV={name:"flip",enabled:!0,phase:"main",fn:BV,requiresIfExists:["offset"],data:{_skip:!1}};function jS(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 TS(e){return[Ln,ma,ha,Mn].some(function(t){return e[t]>=0})}function MV(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,l=t.modifiersData.preventOverflow,o=Is(t,{elementContext:"reference"}),i=Is(t,{altBoundary:!0}),s=jS(o,a),p=jS(i,r,l),u=TS(s),c=TS(p);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const QV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MV};function VV(e,t,n){var a=Xa(e),r=[Mn,Ln].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=l[0],i=l[1];return o=o||0,i=(i||0)*r,[Mn,ma].indexOf(a)>=0?{x:i,y:o}:{x:o,y:i}}function UV(e){var t=e.state,n=e.options,a=e.name,r=n.offset,l=r===void 0?[0,0]:r,o=kS.reduce(function(u,c){return u[c]=VV(c,t.rects,l),u},{}),i=o[t.placement],s=i.x,p=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=p),t.modifiersData[a]=o}const FV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:UV};function zV(e){var t=e.state,n=e.name;t.modifiersData[n]=qS({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const qV={name:"popperOffsets",enabled:!0,phase:"read",fn:zV,data:{}};function jV(e){return e==="x"?"y":"x"}function TV(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,l=r===void 0?!0:r,o=n.altAxis,i=o===void 0?!1:o,s=n.boundary,p=n.rootBoundary,u=n.altBoundary,c=n.padding,d=n.tether,f=d===void 0?!0:d,W=n.tetherOffset,m=W===void 0?0:W,x=Is(t,{boundary:s,rootBoundary:p,padding:c,altBoundary:u}),h=Xa(t.placement),g=Zo(t.placement),C=!g,y=YW(h),E=jV(y),S=t.modifiersData.popperOffsets,k=t.rects.reference,R=t.rects.popper,V=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,b=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(l){var F,z=y==="y"?Ln:Mn,T=y==="y"?ha:ma,j=y==="y"?"height":"width",P=S[y],L=P+x[z],q=P-x[T],w=f?-R[j]/2:0,G=g===Jo?k[j]:R[j],te=g===Jo?-R[j]:-k[j],Q=t.elements.arrow,N=f&&Q?DW(Q):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:LS(),ue=re[z],_=re[T],H=ys(0,k[j],N[j]),de=C?k[j]/2-w-H-ue-b.mainAxis:G-H-ue-b.mainAxis,ae=C?-k[j]/2+w+H+_+b.mainAxis:te+H+_+b.mainAxis,X=t.elements.arrow&&vs(t.elements.arrow),he=X?y==="y"?X.clientTop||0:X.clientLeft||0:0,We=(F=B==null?void 0:B[y])!=null?F:0,me=P+de-We-he,ve=P+ae-We,ce=ys(f?kc(L,me):L,P,f?Vl(q,ve):q);S[y]=ce,M[y]=ce-P}if(i){var Ze,le=y==="x"?Ln:Mn,Ke=y==="x"?ha:ma,qe=S[E],Be=E==="y"?"height":"width",Te=qe+x[le],Pe=qe-x[Ke],je=[Ln,Mn].indexOf(h)!==-1,it=(Ze=B==null?void 0:B[E])!=null?Ze:0,D=je?Te:qe-k[Be]-R[Be]-it+b.altAxis,ne=je?qe+k[Be]+R[Be]-it-b.altAxis:Pe,U=f&&je?uV(D,qe,ne):ys(f?D:Te,qe,f?ne:Pe);S[E]=U,M[E]=U-qe}t.modifiersData[a]=M}}const OV={name:"preventOverflow",enabled:!0,phase:"main",fn:TV,requiresIfExists:["offset"]};function KV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PV(e){return e===Xn(e)||!Ca(e)?ZW(e):KV(e)}function JV(e){var t=e.getBoundingClientRect(),n=Do(t.width)/e.offsetWidth||1,a=Do(t.height)/e.offsetHeight||1;return n!==1||a!==1}function DV(e,t,n){n===void 0&&(n=!1);var a=Ca(t),r=Ca(t)&&JV(t),l=Xr(t),o=Yo(e,r,n),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(a||!a&&!n)&&((Ha(t)!=="body"||GW(l))&&(i=PV(t)),Ca(t)?(s=Yo(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=NW(l))),{x:o.left+i.scrollLeft-s.x,y:o.top+i.scrollTop-s.y,width:o.width,height:o.height}}function YV(e){var t=new Map,n=new Set,a=[];e.forEach(function(l){t.set(l.name,l)});function r(l){n.add(l.name);var o=[].concat(l.requires||[],l.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var s=t.get(i);s&&r(s)}}),a.push(l)}return e.forEach(function(l){n.has(l.name)||r(l)}),a}function ZV(e){var t=YV(e);return rV.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function NV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function GV(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var OS={placement:"bottom",modifiers:[],strategy:"absolute"};function KS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function HV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,l=r===void 0?OS:r;return function(i,s,p){p===void 0&&(p=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},OS,l),modifiersData:{},elements:{reference:i,popper:s},attributes:{},styles:{}},c=[],d=!1,f={state:u,setOptions:function(h){var g=typeof h=="function"?h(u.options):h;m(),u.options=Object.assign({},l,u.options,g),u.scrollParents={reference:Ql(i)?Ss(i):i.contextElement?Ss(i.contextElement):[],popper:Ss(s)};var C=ZV(GV([].concat(a,u.options.modifiers)));return u.orderedModifiers=C.filter(function(y){return y.enabled}),W(),f.update()},forceUpdate:function(){if(!d){var h=u.elements,g=h.reference,C=h.popper;if(KS(g,C)){u.rects={reference:DV(g,vs(C),u.options.strategy==="fixed"),popper:DW(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(b){return u.modifiersData[b.name]=Object.assign({},b.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var E=u.orderedModifiers[y],S=E.fn,k=E.options,R=k===void 0?{}:k,V=E.name;typeof S=="function"&&(u=S({state:u,options:R,name:V,instance:f})||u)}}}},update:NV(function(){return new Promise(function(x){f.forceUpdate(),x(u)})}),destroy:function(){m(),d=!0}};if(!KS(i,s))return f;f.setOptions(p).then(function(x){!d&&p.onFirstUpdate&&p.onFirstUpdate(x)});function W(){u.orderedModifiers.forEach(function(x){var h=x.name,g=x.options,C=g===void 0?{}:g,y=x.effect;if(typeof y=="function"){var E=y({state:u,name:h,instance:f,options:C}),S=function(){};c.push(E||S)}})}function m(){c.forEach(function(x){return x()}),c=[]}return f}}var XV=[vV,qV,mV,iV,FV,LV,OV,fV,QV],_V=HV({defaultModifiers:XV});function $V(e){return typeof e=="function"?e():e}const PS=v.forwardRef(function(t,n){const{children:a,container:r,disablePortal:l=!1}=t,[o,i]=v.useState(null),s=Mt(v.isValidElement(a)?wl(a):null,n);if(da(()=>{l||i($V(r)||document.body)},[r,l]),da(()=>{if(o&&!l)return ds(n,o),()=>{ds(n,null)}},[n,o,l]),l){if(v.isValidElement(a)){const p={ref:s};return v.cloneElement(a,p)}return A.jsx(v.Fragment,{children:a})}return A.jsx(v.Fragment,{children:o&&zf.createPortal(a,o)})});function e5(e){return ke("MuiPopper",e)}we("MuiPopper",["root"]);const t5=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],n5=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function a5(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 XW(e){return typeof e=="function"?e():e}function r5(e){return e.nodeType!==void 0}const l5=e=>{const{classes:t}=e;return Re({root:["root"]},e5,t)},o5={},i5=v.forwardRef(function(t,n){var a;const{anchorEl:r,children:l,direction:o,disablePortal:i,modifiers:s,open:p,placement:u,popperOptions:c,popperRef:d,slotProps:f={},slots:W={},TransitionProps:m}=t,x=se(t,t5),h=v.useRef(null),g=Mt(h,n),C=v.useRef(null),y=Mt(C,d),E=v.useRef(y);da(()=>{E.current=y},[y]),v.useImperativeHandle(d,()=>C.current,[]);const S=a5(u,o),[k,R]=v.useState(S),[V,b]=v.useState(XW(r));v.useEffect(()=>{C.current&&C.current.forceUpdate()}),v.useEffect(()=>{r&&b(XW(r))},[r]),da(()=>{if(!V||!p)return;const T=L=>{R(L.placement)};let j=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{T(L)}}];s!=null&&(j=j.concat(s)),c&&c.modifiers!=null&&(j=j.concat(c.modifiers));const P=_V(V,h.current,I({placement:S},c,{modifiers:j}));return E.current(P),()=>{P.destroy(),E.current(null)}},[V,i,s,p,c,S]);const B={placement:k};m!==null&&(B.TransitionProps=m);const M=l5(t),F=(a=W.root)!=null?a:"div",z=kl({elementType:F,externalSlotProps:f.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:M.root});return A.jsx(F,I({},z,{children:typeof l=="function"?l(B):l}))}),s5=v.forwardRef(function(t,n){const{anchorEl:a,children:r,container:l,direction:o="ltr",disablePortal:i=!1,keepMounted:s=!1,modifiers:p,open:u,placement:c="bottom",popperOptions:d=o5,popperRef:f,style:W,transition:m=!1,slotProps:x={},slots:h={}}=t,g=se(t,n5),[C,y]=v.useState(!0),E=()=>{y(!1)},S=()=>{y(!0)};if(!s&&!u&&(!m||C))return null;let k;if(l)k=l;else if(a){const b=XW(a);k=b&&r5(b)?cn(b).body:cn(null).body}const R=!u&&s&&(!m||C)?"none":void 0,V=m?{in:u,onEnter:E,onExited:S}:void 0;return A.jsx(PS,{disablePortal:i,container:k,children:A.jsx(i5,I({anchorEl:a,direction:o,disablePortal:i,modifiers:p,ref:n,open:m?!C:u,placement:c,popperOptions:d,popperRef:f,slotProps:x,slots:h},g,{style:I({position:"fixed",top:0,left:0,display:R},W),TransitionProps:V,children:r}))})}),p5=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],u5=$(s5,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lc=v.forwardRef(function(t,n){var a;const r=IS(),l=Le({props:t,name:"MuiPopper"}),{anchorEl:o,component:i,components:s,componentsProps:p,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:W,placement:m,popperOptions:x,popperRef:h,transition:g,slots:C,slotProps:y}=l,E=se(l,p5),S=(a=C==null?void 0:C.root)!=null?a:s==null?void 0:s.Root,k=I({anchorEl:o,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:W,placement:m,popperOptions:x,popperRef:h,transition:g},E);return A.jsx(u5,I({as:i,direction:r==null?void 0:r.direction,slots:{root:S},slotProps:y??p},k,{ref:n}))});function c5(e){return ke("MuiListSubheader",e)}we("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const A5=["className","color","component","disableGutters","disableSticky","inset"],d5=e=>{const{classes:t,color:n,disableGutters:a,inset:r,disableSticky:l}=e,o={root:["root",n!=="default"&&`color${ee(n)}`,!a&&"gutters",r&&"inset",!l&&"sticky"]};return Re(o,c5,t)},f5=$("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ee(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>I({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),JS=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiListSubheader"}),{className:r,color:l="default",component:o="li",disableGutters:i=!1,disableSticky:s=!1,inset:p=!1}=a,u=se(a,A5),c=I({},a,{color:l,component:o,disableGutters:i,disableSticky:s,inset:p}),d=d5(c);return A.jsx(f5,I({as:o,className:Ae(d.root,r),ref:n,ownerState:c},u))});JS.muiSkipListHighlight=!0;const W5=$t(A.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function g5(e){return ke("MuiChip",e)}const nt=we("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),h5=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],m5=e=>{const{classes:t,disabled:n,size:a,color:r,iconColor:l,onDelete:o,clickable:i,variant:s}=e,p={root:["root",s,n&&"disabled",`size${ee(a)}`,`color${ee(r)}`,i&&"clickable",i&&`clickableColor${ee(r)}`,o&&"deletable",o&&`deletableColor${ee(r)}`,`${s}${ee(r)}`],label:["label",`label${ee(a)}`],avatar:["avatar",`avatar${ee(a)}`,`avatarColor${ee(r)}`],icon:["icon",`icon${ee(a)}`,`iconColor${ee(l)}`],deleteIcon:["deleteIcon",`deleteIcon${ee(a)}`,`deleteIconColor${ee(r)}`,`deleteIcon${ee(s)}Color${ee(r)}`]};return Re(p,g5,t)},C5=$("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:a,iconColor:r,clickable:l,onDelete:o,size:i,variant:s}=n;return[{[`& .${nt.avatar}`]:t.avatar},{[`& .${nt.avatar}`]:t[`avatar${ee(i)}`]},{[`& .${nt.avatar}`]:t[`avatarColor${ee(a)}`]},{[`& .${nt.icon}`]:t.icon},{[`& .${nt.icon}`]:t[`icon${ee(i)}`]},{[`& .${nt.icon}`]:t[`iconColor${ee(r)}`]},{[`& .${nt.deleteIcon}`]:t.deleteIcon},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${ee(i)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIconColor${ee(a)}`]},{[`& .${nt.deleteIcon}`]:t[`deleteIcon${ee(s)}Color${ee(a)}`]},t.root,t[`size${ee(i)}`],t[`color${ee(a)}`],l&&t.clickable,l&&a!=="default"&&t[`clickableColor${ee(a)})`],o&&t.deletable,o&&a!=="default"&&t[`deletableColor${ee(a)}`],t[s],t[`${s}${ee(a)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return I({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${nt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${nt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nt.icon}`]:I({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&I({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${nt.deleteIcon}`]:I({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ct(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ct(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ct(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>I({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>I({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${nt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nt.avatar}`]:{marginLeft:4},[`& .${nt.avatarSmall}`]:{marginLeft:2},[`& .${nt.icon}`]:{marginLeft:4},[`& .${nt.iconSmall}`]:{marginLeft:2},[`& .${nt.deleteIcon}`]:{marginRight:5},[`& .${nt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ct(e.palette[t.color].main,.7)}`,[`&.${nt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${nt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ct(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${nt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ct(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),v5=$("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:a}=n;return[t.label,t[`label${ee(a)}`]]}})(({ownerState:e})=>I({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function DS(e){return e.key==="Backspace"||e.key==="Delete"}const vn=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiChip"}),{avatar:r,className:l,clickable:o,color:i="default",component:s,deleteIcon:p,disabled:u=!1,icon:c,label:d,onClick:f,onDelete:W,onKeyDown:m,onKeyUp:x,size:h="medium",variant:g="filled",tabIndex:C,skipFocusWhenDisabled:y=!1}=a,E=se(a,h5),S=v.useRef(null),k=Mt(S,n),R=q=>{q.stopPropagation(),W&&W(q)},V=q=>{q.currentTarget===q.target&&DS(q)&&q.preventDefault(),m&&m(q)},b=q=>{q.currentTarget===q.target&&(W&&DS(q)?W(q):q.key==="Escape"&&S.current&&S.current.blur()),x&&x(q)},B=o!==!1&&f?!0:o,M=B||W?Po:s||"div",F=I({},a,{component:M,disabled:u,size:h,color:i,iconColor:v.isValidElement(c)&&c.props.color||i,onDelete:!!W,clickable:B,variant:g}),z=m5(F),T=M===Po?I({component:s||"div",focusVisibleClassName:z.focusVisible},W&&{disableRipple:!0}):{};let j=null;W&&(j=p&&v.isValidElement(p)?v.cloneElement(p,{className:Ae(p.props.className,z.deleteIcon),onClick:R}):A.jsx(W5,{className:Ae(z.deleteIcon),onClick:R}));let P=null;r&&v.isValidElement(r)&&(P=v.cloneElement(r,{className:Ae(z.avatar,r.props.className)}));let L=null;return c&&v.isValidElement(c)&&(L=v.cloneElement(c,{className:Ae(z.icon,c.props.className)})),A.jsxs(C5,I({as:M,className:Ae(z.root,l),disabled:B&&u?!0:void 0,onClick:f,onKeyDown:V,onKeyUp:b,ref:k,tabIndex:y&&u?-1:C,ownerState:F},T,E,{children:[P||L,A.jsx(v5,{className:Ae(z.label),ownerState:F,children:d}),j]}))}),y5=["onChange","maxRows","minRows","style","value"];function Mc(e){return parseInt(e,10)||0}const S5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function I5(e){for(const t in e)return!1;return!0}function YS(e){return I5(e)||e.outerHeightStyle===0&&!e.overflowing}const x5=v.forwardRef(function(t,n){const{onChange:a,maxRows:r,minRows:l=1,style:o,value:i}=t,s=se(t,y5),{current:p}=v.useRef(i!=null),u=v.useRef(null),c=Mt(n,u),d=v.useRef(null),f=v.useRef(null),W=v.useCallback(()=>{const C=u.current,y=f.current;if(!C||!y)return;const S=Ga(C).getComputedStyle(C);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};y.style.width=S.width,y.value=C.value||t.placeholder||"x",y.value.slice(-1)===`
155
+ `&&(y.value+=" ");const k=S.boxSizing,R=Mc(S.paddingBottom)+Mc(S.paddingTop),V=Mc(S.borderBottomWidth)+Mc(S.borderTopWidth),b=y.scrollHeight;y.value="x";const B=y.scrollHeight;let M=b;l&&(M=Math.max(Number(l)*B,M)),r&&(M=Math.min(Number(r)*B,M)),M=Math.max(M,B);const F=M+(k==="border-box"?R+V:0),z=Math.abs(M-b)<=1;return{outerHeightStyle:F,overflowing:z}},[r,l,t.placeholder]),m=Bn(()=>{const C=u.current,y=W();if(!C||!y||YS(y))return!1;const E=y.outerHeightStyle;return d.current!=null&&d.current!==E}),x=v.useCallback(()=>{const C=u.current,y=W();if(!C||!y||YS(y))return;const E=y.outerHeightStyle;d.current!==E&&(d.current=E,C.style.height=`${E}px`),C.style.overflow=y.overflowing?"hidden":""},[W]),h=v.useRef(-1);da(()=>{const C=dc(x),y=u==null?void 0:u.current;if(!y)return;const E=Ga(y);E.addEventListener("resize",C);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{m()&&(S.unobserve(y),cancelAnimationFrame(h.current),x(),h.current=requestAnimationFrame(()=>{S.observe(y)}))}),S.observe(y)),()=>{C.clear(),cancelAnimationFrame(h.current),E.removeEventListener("resize",C),S&&S.disconnect()}},[W,x,m]),da(()=>{x()});const g=C=>{p||x(),a&&a(C)};return A.jsxs(v.Fragment,{children:[A.jsx("textarea",I({value:i,onChange:g,ref:c,rows:l,style:o},s)),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:I({},S5.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function _r({props:e,states:t,muiFormControl:n}){return t.reduce((a,r)=>(a[r]=e[r],n&&typeof e[r]>"u"&&(a[r]=n[r]),a),{})}const Qc=v.createContext(void 0);function _a(){return v.useContext(Qc)}function E5(e){return A.jsx(g1,I({},e,{defaultTheme:LW,themeId:Qo}))}function ZS(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Vc(e,t=!1){return e&&(ZS(e.value)&&e.value!==""||t&&ZS(e.defaultValue)&&e.defaultValue!=="")}function b5(e){return e.startAdornment}function k5(e){return ke("MuiInputBase",e)}const _n=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),w5=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Uc=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ee(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Fc=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},R5=e=>{const{classes:t,color:n,disabled:a,error:r,endAdornment:l,focused:o,formControl:i,fullWidth:s,hiddenLabel:p,multiline:u,readOnly:c,size:d,startAdornment:f,type:W}=e,m={root:["root",`color${ee(n)}`,a&&"disabled",r&&"error",s&&"fullWidth",o&&"focused",i&&"formControl",d&&d!=="medium"&&`size${ee(d)}`,u&&"multiline",f&&"adornedStart",l&&"adornedEnd",p&&"hiddenLabel",c&&"readOnly"],input:["input",a&&"disabled",W==="search"&&"inputTypeSearch",u&&"inputMultiline",d==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",f&&"inputAdornedStart",l&&"inputAdornedEnd",c&&"readOnly"]};return Re(m,k5,t)},zc=$("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Uc})(({theme:e,ownerState:t})=>I({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${_n.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&I({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),qc=$("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fc})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",a=I({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return I({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${_n.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${_n.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),B5=A.jsx(E5,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_W=v.forwardRef(function(t,n){var a;const r=Le({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:o,autoFocus:i,className:s,components:p={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:W,fullWidth:m=!1,id:x,inputComponent:h="input",inputProps:g={},inputRef:C,maxRows:y,minRows:E,multiline:S=!1,name:k,onBlur:R,onChange:V,onClick:b,onFocus:B,onKeyDown:M,onKeyUp:F,placeholder:z,readOnly:T,renderSuffix:j,rows:P,slotProps:L={},slots:q={},startAdornment:w,type:G="text",value:te}=r,Q=se(r,w5),N=g.value!=null?g.value:te,{current:re}=v.useRef(N!=null),ue=v.useRef(),_=v.useCallback(U=>{},[]),H=Mt(ue,C,g.ref,_),[de,ae]=v.useState(!1),X=_a(),he=_r({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=X?X.focused:de,v.useEffect(()=>{!X&&d&&de&&(ae(!1),R&&R())},[X,d,de,R]);const We=X&&X.onFilled,me=X&&X.onEmpty,ve=v.useCallback(U=>{Vc(U)?We&&We():me&&me()},[We,me]);da(()=>{re&&ve({value:N})},[N,ve,re]);const ce=U=>{if(he.disabled){U.stopPropagation();return}B&&B(U),g.onFocus&&g.onFocus(U),X&&X.onFocus?X.onFocus(U):ae(!0)},Ze=U=>{R&&R(U),g.onBlur&&g.onBlur(U),X&&X.onBlur?X.onBlur(U):ae(!1)},le=(U,...O)=>{if(!re){const Y=U.target||ue.current;if(Y==null)throw new Error(hr(1));ve({value:Y.value})}g.onChange&&g.onChange(U,...O),V&&V(U,...O)};v.useEffect(()=>{ve(ue.current)},[]);const Ke=U=>{ue.current&&U.currentTarget===U.target&&ue.current.focus(),b&&b(U)};let qe=h,Be=g;S&&qe==="input"&&(P?Be=I({type:void 0,minRows:P,maxRows:P},Be):Be=I({type:void 0,maxRows:y,minRows:E},Be),qe=x5);const Te=U=>{ve(U.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};v.useEffect(()=>{X&&X.setAdornedStart(!!w)},[X,w]);const Pe=I({},r,{color:he.color||"primary",disabled:he.disabled,endAdornment:W,error:he.error,focused:he.focused,formControl:X,fullWidth:m,hiddenLabel:he.hiddenLabel,multiline:S,size:he.size,startAdornment:w,type:G}),je=R5(Pe),it=q.root||p.Root||zc,D=L.root||u.root||{},ne=q.input||p.Input||qc;return Be=I({},Be,(a=L.input)!=null?a:u.input),A.jsxs(v.Fragment,{children:[!f&&B5,A.jsxs(it,I({},D,!gc(it)&&{ownerState:I({},Pe,D.ownerState)},{ref:n,onClick:Ke},Q,{className:Ae(je.root,D.className,s,T&&"MuiInputBase-readOnly"),children:[w,A.jsx(Qc.Provider,{value:null,children:A.jsx(ne,I({ownerState:Pe,"aria-invalid":he.error,"aria-describedby":l,autoComplete:o,autoFocus:i,defaultValue:c,disabled:he.disabled,id:x,onAnimationStart:Te,name:k,placeholder:z,readOnly:T,required:he.required,rows:P,value:N,onKeyDown:M,onKeyUp:F,type:G},Be,!gc(ne)&&{as:qe,ownerState:I({},Pe,Be.ownerState)},{ref:H,className:Ae(je.input,Be.className,T&&"MuiInputBase-readOnly"),onBlur:Ze,onChange:le,onFocus:ce}))}),W,j?j(I({},he,{startAdornment:w})):null]}))]})});function L5(e){return ke("MuiInput",e)}const $r=I({},_n,we("MuiInput",["root","underline","input"]));function M5(e){return ke("MuiOutlinedInput",e)}const $a=I({},_n,we("MuiOutlinedInput",["root","notchedOutline","input"]));function Q5(e){return ke("MuiFilledInput",e)}const $n=I({},_n,we("MuiFilledInput",["root","underline","input"])),NS=$t(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function V5(e){return ke("MuiAutocomplete",e)}const Ye=we("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var GS,HS;const U5=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],F5=["ref"],z5=["key"],q5=["key"],j5=e=>{const{classes:t,disablePortal:n,expanded:a,focused:r,fullWidth:l,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,popupOpen:p,size:u}=e,c={root:["root",a&&"expanded",r&&"focused",l&&"fullWidth",o&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${ee(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Re(c,V5,t)},T5=$("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:a,hasClearIcon:r,hasPopupIcon:l,inputFocused:o,size:i}=n;return[{[`& .${Ye.tag}`]:t.tag},{[`& .${Ye.tag}`]:t[`tagSize${ee(i)}`]},{[`& .${Ye.inputRoot}`]:t.inputRoot},{[`& .${Ye.input}`]:t.input},{[`& .${Ye.input}`]:o&&t.inputFocused},t.root,a&&t.fullWidth,l&&t.hasPopupIcon,r&&t.hasClearIcon]}})({[`&.${Ye.focused} .${Ye.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ye.clearIndicator}`]:{visibility:"visible"}},[`& .${Ye.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ye.inputRoot}`]:{[`.${Ye.hasPopupIcon}&, .${Ye.hasClearIcon}&`]:{paddingRight:30},[`.${Ye.hasPopupIcon}.${Ye.hasClearIcon}&`]:{paddingRight:56},[`& .${Ye.input}`]:{width:0,minWidth:30}},[`& .${$r.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${$r.root}.${_n.sizeSmall}`]:{[`& .${$r.input}`]:{padding:"2px 4px 3px 0"}},[`& .${$a.root}`]:{padding:9,[`.${Ye.hasPopupIcon}&, .${Ye.hasClearIcon}&`]:{paddingRight:39},[`.${Ye.hasPopupIcon}.${Ye.hasClearIcon}&`]:{paddingRight:65},[`& .${Ye.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ye.endAdornment}`]:{right:9}},[`& .${$a.root}.${_n.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ye.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${$n.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ye.hasPopupIcon}&, .${Ye.hasClearIcon}&`]:{paddingRight:39},[`.${Ye.hasPopupIcon}.${Ye.hasClearIcon}&`]:{paddingRight:65},[`& .${$n.input}`]:{padding:"7px 4px"},[`& .${Ye.endAdornment}`]:{right:9}},[`& .${$n.root}.${_n.sizeSmall}`]:{paddingBottom:1,[`& .${$n.input}`]:{padding:"2.5px 4px"}},[`& .${_n.hiddenLabel}`]:{paddingTop:8},[`& .${$n.root}.${_n.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ye.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${$n.root}.${_n.hiddenLabel}.${_n.sizeSmall}`]:{[`& .${Ye.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ye.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ye.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ye.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ye.inputRoot}`]:{flexWrap:"wrap"}}}]}),O5=$("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),K5=$(Hn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),P5=$(Hn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>I({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),J5=$(Lc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ye.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),D5=$(Nt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>I({},e.typography.body1,{overflow:"auto"})),Y5=$("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Z5=$("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),N5=$("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ye.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ye.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ye.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ct(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),G5=$(JS,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),H5=$("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ye.option}`]:{paddingLeft:24}}),$W=v.forwardRef(function(t,n){var a,r,l,o;const i=Le({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:p=!1,autoSelect:u=!1,blurOnSelect:c=!1,ChipProps:d,className:f,clearIcon:W=GS||(GS=A.jsx(hS,{fontSize:"small"})),clearOnBlur:m=!i.freeSolo,clearOnEscape:x=!1,clearText:h="Clear",closeText:g="Close",componentsProps:C={},defaultValue:y=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:S=!1,disabled:k=!1,disabledItemsFocusable:R=!1,disableListWrap:V=!1,disablePortal:b=!1,filterSelectedOptions:B=!1,forcePopupIcon:M="auto",freeSolo:F=!1,fullWidth:z=!1,getLimitTagsText:T=J=>`+${J}`,getOptionLabel:j,groupBy:P,handleHomeEndKeys:L=!i.freeSolo,includeInputInList:q=!1,limitTags:w=-1,ListboxComponent:G="ul",ListboxProps:te,loading:Q=!1,loadingText:N="Loading…",multiple:re=!1,noOptionsText:ue="No options",openOnFocus:_=!1,openText:H="Open",PaperComponent:de=Nt,PopperComponent:ae=Lc,popupIcon:X=HS||(HS=A.jsx(NS,{})),readOnly:he=!1,renderGroup:We,renderInput:me,renderOption:ve,renderTags:ce,selectOnFocus:Ze=!i.freeSolo,size:le="medium",slotProps:Ke={}}=i,qe=se(i,U5),{getRootProps:Be,getInputProps:Te,getInputLabelProps:Pe,getPopupIndicatorProps:je,getClearProps:it,getTagProps:D,getListboxProps:ne,getOptionProps:U,value:O,dirty:Y,expanded:Ie,id:Se,popupOpen:pe,focused:xe,focusedTag:Qe,anchorEl:Je,setAnchorEl:ft,inputValue:bt,groupedOptions:kt}=OQ(I({},i,{componentName:"Autocomplete"})),Dt=!E&&!k&&Y&&!he,rt=(!F||M===!0)&&M!==!1,{onMouseDown:Xe}=Te(),{ref:Ce}=te??{},_e=ne(),{ref:Ve}=_e,It=se(_e,F5),Tt=Mt(Ve,Ce),Ea=j||(J=>{var ge;return(ge=J.label)!=null?ge:J}),Ft=I({},i,{disablePortal:b,expanded:Ie,focused:xe,fullWidth:z,getOptionLabel:Ea,hasClearIcon:Dt,hasPopupIcon:rt,inputFocused:Qe===-1,popupOpen:pe,size:le}),wt=j5(Ft);let Sn;if(re&&O.length>0){const J=ge=>I({className:wt.tag,disabled:k},D(ge));ce?Sn=ce(O,J,Ft):Sn=O.map((ge,be)=>{const Ne=J({index:be}),{key:Ee}=Ne,$e=se(Ne,z5);return A.jsx(vn,I({label:Ea(ge),size:le},$e,d),Ee)})}if(w>-1&&Array.isArray(Sn)){const J=Sn.length-w;!xe&&J>0&&(Sn=Sn.splice(0,w),Sn.push(A.jsx("span",{className:wt.tag,children:T(J)},Sn.length)))}const br=We||(J=>A.jsxs("li",{children:[A.jsx(G5,{className:wt.groupLabel,ownerState:Ft,component:"div",children:J.group}),A.jsx(H5,{className:wt.groupUl,ownerState:Ft,children:J.children})]},J.key)),kr=ve||((J,ge)=>{const{key:be}=J,Ne=se(J,q5);return A.jsx("li",I({},Ne,{children:Ea(ge)}),be)}),ol=(J,ge)=>{const be=U({option:J,index:ge});return kr(I({},be,{className:wt.option}),J,{selected:be["aria-selected"],index:ge,inputValue:bt},Ft)},il=(a=Ke.clearIndicator)!=null?a:C.clearIndicator,rr=(r=Ke.paper)!=null?r:C.paper,wr=(l=Ke.popper)!=null?l:C.popper,Z=(o=Ke.popupIndicator)!=null?o:C.popupIndicator;return A.jsxs(v.Fragment,{children:[A.jsx(T5,I({ref:n,className:Ae(wt.root,f),ownerState:Ft},Be(qe),{children:me({id:Se,disabled:k,fullWidth:!0,size:le==="small"?"small":void 0,InputLabelProps:Pe(),InputProps:I({ref:ft,className:wt.inputRoot,startAdornment:Sn,onClick:J=>{J.target===J.currentTarget&&Xe(J)}},(Dt||rt)&&{endAdornment:A.jsxs(O5,{className:wt.endAdornment,ownerState:Ft,children:[Dt?A.jsx(K5,I({},it(),{"aria-label":h,title:h,ownerState:Ft},il,{className:Ae(wt.clearIndicator,il==null?void 0:il.className),children:W})):null,rt?A.jsx(P5,I({},je(),{disabled:k,"aria-label":pe?g:H,title:pe?g:H,ownerState:Ft},Z,{className:Ae(wt.popupIndicator,Z==null?void 0:Z.className),children:X})):null]})}),inputProps:I({className:wt.input,disabled:k,readOnly:he},Te())})})),Je?A.jsx(J5,I({as:ae,disablePortal:b,style:{width:Je?Je.clientWidth:null},ownerState:Ft,role:"presentation",anchorEl:Je,open:pe},wr,{className:Ae(wt.popper,wr==null?void 0:wr.className),children:A.jsxs(D5,I({ownerState:Ft,as:de},rr,{className:Ae(wt.paper,rr==null?void 0:rr.className),children:[Q&&kt.length===0?A.jsx(Y5,{className:wt.loading,ownerState:Ft,children:N}):null,kt.length===0&&!F&&!Q?A.jsx(Z5,{className:wt.noOptions,ownerState:Ft,role:"presentation",onMouseDown:J=>{J.preventDefault()},children:ue}):null,kt.length>0?A.jsx(N5,I({as:G,className:wt.listbox,ownerState:Ft},It,te,{ref:Tt,children:kt.map((J,ge)=>P?br({key:J.key,group:J.group,children:J.options.map((be,Ne)=>ol(be,J.index+Ne))}):ol(J,ge))})):null]}))})):null]})}),X5=$t(A.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function _5(e){return ke("MuiAvatar",e)}we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const $5=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],eU=e=>{const{classes:t,variant:n,colorDefault:a}=e;return Re({root:["root",n,a&&"colorDefault"],img:["img"],fallback:["fallback"]},_5,t)},tU=$("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:I({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:I({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),nU=$("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),aU=$(X5,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function rU({crossOrigin:e,referrerPolicy:t,src:n,srcSet:a}){const[r,l]=v.useState(!1);return v.useEffect(()=>{if(!n&&!a)return;l(!1);let o=!0;const i=new Image;return i.onload=()=>{o&&l("loaded")},i.onerror=()=>{o&&l("error")},i.crossOrigin=e,i.referrerPolicy=t,i.src=n,a&&(i.srcset=a),()=>{o=!1}},[e,t,n,a]),r}const Sr=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiAvatar"}),{alt:r,children:l,className:o,component:i="div",slots:s={},slotProps:p={},imgProps:u,sizes:c,src:d,srcSet:f,variant:W="circular"}=a,m=se(a,$5);let x=null;const h=rU(I({},u,{src:d,srcSet:f})),g=d||f,C=g&&h!=="error",y=I({},a,{colorDefault:!C,component:i,variant:W}),E=eU(y),[S,k]=jW("img",{className:E.img,elementType:nU,externalForwardedProps:{slots:s,slotProps:{img:I({},u,p.img)}},additionalProps:{alt:r,src:d,srcSet:f,sizes:c},ownerState:y});return C?x=A.jsx(S,I({},k)):l||l===0?x=l:g&&r?x=r[0]:x=A.jsx(aU,{ownerState:y,className:E.fallback}),A.jsx(tU,I({as:i,ownerState:y,className:Ae(E.root,o),ref:n},m,{children:x}))}),lU=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],oU={entering:{opacity:1},entered:{opacity:1}},XS=v.forwardRef(function(t,n){const a=vr(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:l,appear:o=!0,children:i,easing:s,in:p,onEnter:u,onEntered:c,onEntering:d,onExit:f,onExited:W,onExiting:m,style:x,timeout:h=r,TransitionComponent:g=Va}=t,C=se(t,lU),y=v.useRef(null),E=Mt(y,wl(i),n),S=z=>T=>{if(z){const j=y.current;T===void 0?z(j):z(j,T)}},k=S(d),R=S((z,T)=>{qW(z);const j=Ko({style:x,timeout:h,easing:s},{mode:"enter"});z.style.webkitTransition=a.transitions.create("opacity",j),z.style.transition=a.transitions.create("opacity",j),u&&u(z,T)}),V=S(c),b=S(m),B=S(z=>{const T=Ko({style:x,timeout:h,easing:s},{mode:"exit"});z.style.webkitTransition=a.transitions.create("opacity",T),z.style.transition=a.transitions.create("opacity",T),f&&f(z)}),M=S(W),F=z=>{l&&l(y.current,z)};return A.jsx(g,I({appear:o,in:p,nodeRef:y,onEnter:R,onEntered:V,onEntering:k,onExit:B,onExited:M,onExiting:b,addEndListener:F,timeout:h},C,{children:(z,T)=>v.cloneElement(i,I({style:I({opacity:0,visibility:z==="exited"&&!p?"hidden":void 0},oU[z],x,i.props.style),ref:E},T))}))});function iU(e){return ke("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const sU=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],pU=e=>{const{classes:t,invisible:n}=e;return Re({root:["root",n&&"invisible"]},iU,t)},uU=$("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>I({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"})),_S=v.forwardRef(function(t,n){var a,r,l;const o=Le({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:p="div",components:u={},componentsProps:c={},invisible:d=!1,open:f,slotProps:W={},slots:m={},TransitionComponent:x=XS,transitionDuration:h}=o,g=se(o,sU),C=I({},o,{component:p,invisible:d}),y=pU(C),E=(a=W.root)!=null?a:c.root;return A.jsx(x,I({in:f,timeout:h},g,{children:A.jsx(uU,I({"aria-hidden":!0},E,{as:(r=(l=m.root)!=null?l:u.Root)!=null?r:p,className:Ae(y.root,s,E==null?void 0:E.className),ownerState:I({},C,E==null?void 0:E.ownerState),classes:y,ref:n,children:i}))}))}),cU=we("MuiBox",["root"]),AU=BW(),K=S2({themeId:Qo,defaultTheme:AU,defaultClassName:cU.root,generateClassName:gW.generate});function dU(e){return ke("MuiButton",e)}const jc=we("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"]),fU=v.createContext({}),WU=v.createContext(void 0),gU=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],hU=e=>{const{color:t,disableElevation:n,fullWidth:a,size:r,variant:l,classes:o}=e,i={root:["root",l,`${l}${ee(t)}`,`size${ee(r)}`,`${l}Size${ee(r)}`,`color${ee(t)}`,n&&"disableElevation",a&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ee(r)}`],endIcon:["icon","endIcon",`iconSize${ee(r)}`]},s=Re(i,dU,o);return I({},o,s)},$S=e=>I({},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}}),mU=$(Po,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ee(n.color)}`],t[`size${ee(n.size)}`],t[`${n.variant}Size${ee(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,a;const r=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],l=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return I({},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":I({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(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})`:Ct(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})`:Ct(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:l,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":I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${jc.focusVisible}`]:I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${jc.disabled}`]:I({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 ${Ct(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(a=e.palette).getContrastText)==null?void 0:n.call(a,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,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"},[`&.${jc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${jc.disabled}`]:{boxShadow:"none"}}),CU=$("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ee(n.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},$S(e))),vU=$("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ee(n.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},$S(e))),ze=v.forwardRef(function(t,n){const a=v.useContext(fU),r=v.useContext(WU),l=As(a,t),o=Le({props:l,name:"MuiButton"}),{children:i,color:s="primary",component:p="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:W,focusVisibleClassName:m,fullWidth:x=!1,size:h="medium",startIcon:g,type:C,variant:y="text"}=o,E=se(o,gU),S=I({},o,{color:s,component:p,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:x,size:h,type:C,variant:y}),k=hU(S),R=g&&A.jsx(CU,{className:k.startIcon,ownerState:S,children:g}),V=W&&A.jsx(vU,{className:k.endIcon,ownerState:S,children:W}),b=r||"";return A.jsxs(mU,I({ownerState:S,className:Ae(a.className,k.root,u,b),component:p,disabled:c,focusRipple:!f,focusVisibleClassName:Ae(k.focusVisible,m),ref:n,type:C},E,{classes:k,children:[R,i,V]}))});function yU(e){return ke("MuiCard",e)}we("MuiCard",["root"]);const SU=["className","raised"],IU=e=>{const{classes:t}=e;return Re({root:["root"]},yU,t)},xU=$(Nt,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),eg=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiCard"}),{className:r,raised:l=!1}=a,o=se(a,SU),i=I({},a,{raised:l}),s=IU(i);return A.jsx(xU,I({className:Ae(s.root,r),elevation:l?8:void 0,ref:n,ownerState:i},o))});function EU(e){return ke("MuiCardActionArea",e)}const tg=we("MuiCardActionArea",["root","focusVisible","focusHighlight"]),bU=["children","className","focusVisibleClassName"],kU=e=>{const{classes:t}=e;return Re({root:["root"],focusHighlight:["focusHighlight"]},EU,t)},wU=$(Po,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${tg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${tg.focusVisible} .${tg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),RU=$("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),eI=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiCardActionArea"}),{children:r,className:l,focusVisibleClassName:o}=a,i=se(a,bU),s=a,p=kU(s);return A.jsxs(wU,I({className:Ae(p.root,l),focusVisibleClassName:Ae(o,p.focusVisible),ref:n,ownerState:s},i,{children:[r,A.jsx(RU,{className:p.focusHighlight,ownerState:s})]}))});function BU(e){return ke("MuiCardContent",e)}we("MuiCardContent",["root"]);const LU=["className","component"],MU=e=>{const{classes:t}=e;return Re({root:["root"]},BU,t)},QU=$("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),ng=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiCardContent"}),{className:r,component:l="div"}=a,o=se(a,LU),i=I({},a,{component:l}),s=MU(i);return A.jsx(QU,I({as:l,className:Ae(s.root,r),ownerState:i,ref:n},o))});function VU(e){return ke("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const UU=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],FU=e=>{const{classes:t,checked:n,disabled:a,edge:r}=e,l={root:["root",n&&"checked",a&&"disabled",r&&`edge${ee(r)}`],input:["input"]};return Re(l,VU,t)},zU=$(Po,{name:"MuiSwitchBase"})(({ownerState:e})=>I({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),qU=$("input",{name:"MuiSwitchBase",shouldForwardProp:Cn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),tI=v.forwardRef(function(t,n){const{autoFocus:a,checked:r,checkedIcon:l,className:o,defaultChecked:i,disabled:s,disableFocusRipple:p=!1,edge:u=!1,icon:c,id:d,inputProps:f,inputRef:W,name:m,onBlur:x,onChange:h,onFocus:g,readOnly:C,required:y=!1,tabIndex:E,type:S,value:k}=t,R=se(t,UU),[V,b]=Cr({controlled:r,default:!!i,name:"SwitchBase",state:"checked"}),B=_a(),M=q=>{g&&g(q),B&&B.onFocus&&B.onFocus(q)},F=q=>{x&&x(q),B&&B.onBlur&&B.onBlur(q)},z=q=>{if(q.nativeEvent.defaultPrevented)return;const w=q.target.checked;b(w),h&&h(q,w)};let T=s;B&&typeof T>"u"&&(T=B.disabled);const j=S==="checkbox"||S==="radio",P=I({},t,{checked:V,disabled:T,disableFocusRipple:p,edge:u}),L=FU(P);return A.jsxs(zU,I({component:"span",className:Ae(L.root,o),centerRipple:!0,focusRipple:!p,disabled:T,tabIndex:null,role:void 0,onFocus:M,onBlur:F,ownerState:P,ref:n},R,{children:[A.jsx(qU,I({autoFocus:a,checked:r,defaultChecked:i,className:L.input,disabled:T,id:j?d:void 0,name:m,onChange:z,readOnly:C,ref:W,required:y,ownerState:P,tabIndex:E,type:S},S==="checkbox"&&k===void 0?{}:{value:k},f)),V?l:c]}))}),jU=$t(A.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),TU=$t(A.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),OU=$t(A.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function KU(e){return ke("MuiCheckbox",e)}const ag=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),PU=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],JU=e=>{const{classes:t,indeterminate:n,color:a,size:r}=e,l={root:["root",n&&"indeterminate",`color${ee(a)}`,`size${ee(r)}`]},o=Re(l,KU,t);return I({},t,o)},DU=$(tI,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ee(n.size)}`],n.color!=="default"&&t[`color${ee(n.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ag.checked}, &.${ag.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ag.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),YU=A.jsx(TU,{}),ZU=A.jsx(jU,{}),NU=A.jsx(OU,{}),GU=v.forwardRef(function(t,n){var a,r;const l=Le({props:t,name:"MuiCheckbox"}),{checkedIcon:o=YU,color:i="primary",icon:s=ZU,indeterminate:p=!1,indeterminateIcon:u=NU,inputProps:c,size:d="medium",className:f}=l,W=se(l,PU),m=p?u:s,x=p?u:o,h=I({},l,{color:i,indeterminate:p,size:d}),g=JU(h);return A.jsx(DU,I({type:"checkbox",inputProps:I({"data-indeterminate":p},c),icon:v.cloneElement(m,{fontSize:(a=m.props.fontSize)!=null?a:d}),checkedIcon:v.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:d}),ownerState:h,ref:n,className:Ae(g.root,f)},W,{classes:g}))});function HU(e){return ke("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const XU=["className","color","disableShrink","size","style","thickness","value","variant"];let Tc=e=>e,nI,aI,rI,lI;const el=44,_U=Gr(nI||(nI=Tc`
156
156
  0% {
157
157
  transform: rotate(0deg);
158
158
  }
@@ -175,11 +175,11 @@ Error generating stack: `+l.message+`
175
175
  stroke-dasharray: 100px, 200px;
176
176
  stroke-dashoffset: -125px;
177
177
  }
178
- `)),eF=e=>{const{classes:t,variant:n,color:a,disableShrink:r}=e,l={root:["root",n,`color${$(a)}`],svg:["svg"],circle:["circle",`circle${$(n)}`,r&&"circleDisableShrink"]};return Re(l,HU,t)},tF=_("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${$(n.color)}`]]}})(({ownerState:e,theme:t})=>I({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&bo(rI||(rI=Tc`
178
+ `)),eF=e=>{const{classes:t,variant:n,color:a,disableShrink:r}=e,l={root:["root",n,`color${ee(a)}`],svg:["svg"],circle:["circle",`circle${ee(n)}`,r&&"circleDisableShrink"]};return Re(l,HU,t)},tF=$("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ee(n.color)}`]]}})(({ownerState:e,theme:t})=>I({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&bo(rI||(rI=Tc`
179
179
  animation: ${0} 1.4s linear infinite;
180
- `),_U)),nF=_("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),aF=_("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${$(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>I({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&bo(lI||(lI=Tc`
180
+ `),_U)),nF=$("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),aF=$("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ee(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>I({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&bo(lI||(lI=Tc`
181
181
  animation: ${0} 1.4s ease-in-out infinite;
182
- `),$U)),va=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiCircularProgress"}),{className:r,color:l="primary",disableShrink:o=!1,size:i=40,style:s,thickness:p=3.6,value:u=0,variant:c="indeterminate"}=a,d=se(a,XU),f=I({},a,{color:l,disableShrink:o,size:i,thickness:p,value:u,variant:c}),W=eF(f),m={},x={},h={};if(c==="determinate"){const g=2*Math.PI*((el-p)/2);m.strokeDasharray=g.toFixed(3),h["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*g).toFixed(3)}px`,x.transform="rotate(-90deg)"}return A.jsx(tF,I({className:Ae(W.root,r),style:I({width:i,height:i},x,s),ownerState:f,ref:n,role:"progressbar"},h,d,{children:A.jsx(nF,{className:W.svg,ownerState:f,viewBox:`${el/2} ${el/2} ${el} ${el}`,children:A.jsx(aF,{className:W.circle,style:m,ownerState:f,cx:el,cy:el,r:(el-p)/2,fill:"none",strokeWidth:p})})}))});function rF(e){const t=cn(e);return t.body===e?Ga(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oI(e){return parseInt(Ga(e).getComputedStyle(e).paddingRight,10)||0}function lF(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,a=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||a}function iI(e,t,n,a,r){const l=[t,n,...a];[].forEach.call(e.children,o=>{const i=l.indexOf(o)===-1,s=!lF(o);i&&s&&xs(o,r)})}function rg(e,t){let n=-1;return e.some((a,r)=>t(a)?(n=r,!0):!1),n}function oF(e,t){const n=[],a=e.container;if(!t.disableScrollLock){if(rF(a)){const o=M1(cn(a));n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${oI(a)+o}px`;const i=cn(a).querySelectorAll(".mui-fixed");[].forEach.call(i,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${oI(s)+o}px`})}let l;if(a.parentNode instanceof DocumentFragment)l=cn(a).body;else{const o=a.parentElement,i=Ga(a);l=(o==null?void 0:o.nodeName)==="HTML"&&i.getComputedStyle(o).overflowY==="scroll"?o:a}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:o,property:i})=>{l?o.style.setProperty(i,l):o.style.removeProperty(i)})}}function iF(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class sF{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let a=this.modals.indexOf(t);if(a!==-1)return a;a=this.modals.length,this.modals.push(t),t.modalRef&&xs(t.modalRef,!1);const r=iF(n);iI(n,t.mount,t.modalRef,r,!0);const l=rg(this.containers,o=>o.container===n);return l!==-1?(this.containers[l].modals.push(t),a):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),a)}mount(t,n){const a=rg(this.containers,l=>l.modals.indexOf(t)!==-1),r=this.containers[a];r.restore||(r.restore=oF(r,n))}remove(t,n=!0){const a=this.modals.indexOf(t);if(a===-1)return a;const r=rg(this.containers,o=>o.modals.indexOf(t)!==-1),l=this.containers[r];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(a,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&xs(t.modalRef,n),iI(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(r,1);else{const o=l.modals[l.modals.length-1];o.modalRef&&xs(o.modalRef,!1)}return a}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const pF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uF(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 cF(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=a=>e.ownerDocument.querySelector(`input[type="radio"]${a}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function AF(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||cF(e))}function dF(e){const t=[],n=[];return Array.from(e.querySelectorAll(pF)).forEach((a,r)=>{const l=uF(a);l===-1||!AF(a)||(l===0?t.push(a):n.push({documentOrder:r,tabIndex:l,node:a}))}),n.sort((a,r)=>a.tabIndex===r.tabIndex?a.documentOrder-r.documentOrder:a.tabIndex-r.tabIndex).map(a=>a.node).concat(t)}function fF(){return!0}function WF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:a=!1,disableRestoreFocus:r=!1,getTabbable:l=dF,isEnabled:o=fF,open:i}=e,s=v.useRef(!1),p=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=v.useRef(!1),W=v.useRef(null),m=Mt(wl(t),W),x=v.useRef(null);v.useEffect(()=>{!i||!W.current||(f.current=!n)},[n,i]),v.useEffect(()=>{if(!i||!W.current)return;const C=cn(W.current);return W.current.contains(C.activeElement)||(W.current.hasAttribute("tabIndex")||W.current.setAttribute("tabIndex","-1"),f.current&&W.current.focus()),()=>{r||(c.current&&c.current.focus&&(s.current=!0,c.current.focus()),c.current=null)}},[i]),v.useEffect(()=>{if(!i||!W.current)return;const C=cn(W.current),y=k=>{x.current=k,!(a||!o()||k.key!=="Tab")&&C.activeElement===W.current&&k.shiftKey&&(s.current=!0,u.current&&u.current.focus())},E=()=>{const k=W.current;if(k===null)return;if(!C.hasFocus()||!o()||s.current){s.current=!1;return}if(k.contains(C.activeElement)||a&&C.activeElement!==p.current&&C.activeElement!==u.current)return;if(C.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!f.current)return;let R=[];if((C.activeElement===p.current||C.activeElement===u.current)&&(R=l(W.current)),R.length>0){var V,b;const B=!!((V=x.current)!=null&&V.shiftKey&&((b=x.current)==null?void 0:b.key)==="Tab"),M=R[0],F=R[R.length-1];typeof M!="string"&&typeof F!="string"&&(B?F.focus():M.focus())}else k.focus()};C.addEventListener("focusin",E),C.addEventListener("keydown",y,!0);const S=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(S),C.removeEventListener("focusin",E),C.removeEventListener("keydown",y,!0)}},[n,a,r,o,i,l]);const h=C=>{c.current===null&&(c.current=C.relatedTarget),f.current=!0,d.current=C.target;const y=t.props.onFocus;y&&y(C)},g=C=>{c.current===null&&(c.current=C.relatedTarget),f.current=!0};return A.jsxs(v.Fragment,{children:[A.jsx("div",{tabIndex:i?0:-1,onFocus:g,ref:p,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:h}),A.jsx("div",{tabIndex:i?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}function gF(e){return typeof e=="function"?e():e}function hF(e){return e?e.props.hasOwnProperty("in"):!1}const mF=new sF;function CF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:a=!1,manager:r=mF,closeAfterTransition:l=!1,onTransitionEnter:o,onTransitionExited:i,children:s,onClose:p,open:u,rootRef:c}=e,d=v.useRef({}),f=v.useRef(null),W=v.useRef(null),m=Mt(W,c),[x,h]=v.useState(!u),g=hF(s);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const y=()=>cn(f.current),E=()=>(d.current.modalRef=W.current,d.current.mount=f.current,d.current),S=()=>{r.mount(E(),{disableScrollLock:a}),W.current&&(W.current.scrollTop=0)},k=Bn(()=>{const j=gF(t)||y().body;r.add(E(),j),W.current&&S()}),R=v.useCallback(()=>r.isTopModal(E()),[r]),V=Bn(j=>{f.current=j,j&&(u&&R()?S():W.current&&xs(W.current,C))}),b=v.useCallback(()=>{r.remove(E(),C)},[C,r]);v.useEffect(()=>()=>{b()},[b]),v.useEffect(()=>{u?k():(!g||!l)&&b()},[u,b,g,l,k]);const B=j=>P=>{var L;(L=j.onKeyDown)==null||L.call(j,P),!(P.key!=="Escape"||P.which===229||!R())&&(n||(P.stopPropagation(),p&&p(P,"escapeKeyDown")))},M=j=>P=>{var L;(L=j.onClick)==null||L.call(j,P),P.target===P.currentTarget&&p&&p(P,"backdropClick")};return{getRootProps:(j={})=>{const P=Q1(e);delete P.onTransitionEnter,delete P.onTransitionExited;const L=I({},P,j);return I({role:"presentation"},L,{onKeyDown:B(L),ref:m})},getBackdropProps:(j={})=>{const P=j;return I({"aria-hidden":!0},P,{onClick:M(P),open:u})},getTransitionProps:()=>{const j=()=>{h(!1),o&&o()},P=()=>{h(!0),i&&i(),l&&b()};return{onEnter:Ac(j,s==null?void 0:s.props.onEnter),onExited:Ac(P,s==null?void 0:s.props.onExited)}},rootRef:m,portalRef:V,isTopModal:R,exited:x,hasTransition:g}}function vF(e){return ke("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const yF=["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"],SF=e=>{const{open:t,exited:n,classes:a}=e;return Re({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vF,a)},IF=_("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})=>I({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),xF=_(_S,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),sI=v.forwardRef(function(t,n){var a,r,l,o,i,s;const p=Le({name:"MuiModal",props:t}),{BackdropComponent:u=xF,BackdropProps:c,className:d,closeAfterTransition:f=!1,children:W,container:m,component:x,components:h={},componentsProps:g={},disableAutoFocus:C=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:k=!1,disableScrollLock:R=!1,hideBackdrop:V=!1,keepMounted:b=!1,onBackdropClick:B,open:M,slotProps:F,slots:z}=p,T=se(p,yF),j=I({},p,{closeAfterTransition:f,disableAutoFocus:C,disableEnforceFocus:y,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:k,disableScrollLock:R,hideBackdrop:V,keepMounted:b}),{getRootProps:P,getBackdropProps:L,getTransitionProps:q,portalRef:w,isTopModal:H,exited:te,hasTransition:Q}=CF(I({},j,{rootRef:n})),N=I({},j,{exited:te}),re=SF(N),ue={};if(W.props.tabIndex===void 0&&(ue.tabIndex="-1"),Q){const{onEnter:ge,onExited:me}=q();ue.onEnter=ge,ue.onExited=me}const X=(a=(r=z==null?void 0:z.root)!=null?r:h.Root)!=null?a:IF,ee=(l=(o=z==null?void 0:z.backdrop)!=null?o:h.Backdrop)!=null?l:u,de=(i=F==null?void 0:F.root)!=null?i:g.root,ae=(s=F==null?void 0:F.backdrop)!=null?s:g.backdrop,G=kl({elementType:X,externalSlotProps:de,externalForwardedProps:T,getSlotProps:P,additionalProps:{ref:n,as:x},ownerState:N,className:Ae(d,de==null?void 0:de.className,re==null?void 0:re.root,!N.open&&N.exited&&(re==null?void 0:re.hidden))}),he=kl({elementType:ee,externalSlotProps:ae,additionalProps:c,getSlotProps:ge=>L(I({},ge,{onClick:me=>{B&&B(me),ge!=null&&ge.onClick&&ge.onClick(me)}})),className:Ae(ae==null?void 0:ae.className,c==null?void 0:c.className,re==null?void 0:re.backdrop),ownerState:N});return!b&&!M&&(!Q||te)?null:A.jsx(PS,{ref:w,container:m,disablePortal:S,children:A.jsxs(X,I({},G,{children:[!V&&u?A.jsx(ee,I({},he)):null,A.jsx(WF,{disableEnforceFocus:y,disableAutoFocus:C,disableRestoreFocus:k,isEnabled:H,open:M,children:v.cloneElement(W,ue)})]}))})});function EF(e){return ke("MuiDialog",e)}const lg=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),pI=v.createContext({}),bF=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],kF=_(_S,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),wF=e=>{const{classes:t,scroll:n,maxWidth:a,fullWidth:r,fullScreen:l}=e,o={root:["root"],container:["container",`scroll${$(n)}`],paper:["paper",`paperScroll${$(n)}`,`paperWidth${$(String(a))}`,r&&"paperFullWidth",l&&"paperFullScreen"]};return Re(o,EF,t)},RF=_(sI,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),BF=_("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${$(n.scroll)}`]]}})(({ownerState:e})=>I({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"}})),LF=_(Nt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${$(n.scroll)}`],t[`paperWidth${$(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>I({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)`,[`&.${lg.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}`,[`&.${lg.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,[`&.${lg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),MF=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiDialog"}),r=vr(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":i,BackdropComponent:s,BackdropProps:p,children:u,className:c,disableEscapeKeyDown:d=!1,fullScreen:f=!1,fullWidth:W=!1,maxWidth:m="sm",onBackdropClick:x,onClick:h,onClose:g,open:C,PaperComponent:y=Nt,PaperProps:E={},scroll:S="paper",TransitionComponent:k=XS,transitionDuration:R=l,TransitionProps:V}=a,b=se(a,bF),B=I({},a,{disableEscapeKeyDown:d,fullScreen:f,fullWidth:W,maxWidth:m,scroll:S}),M=wF(B),F=v.useRef(),z=L=>{F.current=L.target===L.currentTarget},T=L=>{h&&h(L),F.current&&(F.current=null,x&&x(L),g&&g(L,"backdropClick"))},j=Hr(i),P=v.useMemo(()=>({titleId:j}),[j]);return A.jsx(RF,I({className:Ae(M.root,c),closeAfterTransition:!0,components:{Backdrop:kF},componentsProps:{backdrop:I({transitionDuration:R,as:s},p)},disableEscapeKeyDown:d,onClose:g,open:C,ref:n,onClick:T,ownerState:B},b,{children:A.jsx(k,I({appear:!0,in:C,timeout:R,role:"presentation"},V,{children:A.jsx(BF,{className:Ae(M.container),onMouseDown:z,ownerState:B,children:A.jsx(LF,I({as:y,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":j},E,{className:Ae(M.paper,E.className),ownerState:B,children:A.jsx(pI.Provider,{value:P,children:u})}))})}))}))});function QF(e){return ke("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function VF(e){return ke("MuiDialogTitle",e)}const UF=we("MuiDialogTitle",["root"]),FF=["className","dividers"],zF=e=>{const{classes:t,dividers:n}=e;return Re({root:["root",n&&"dividers"]},QF,t)},qF=_("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>I({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}`}:{[`.${UF.root} + &`]:{paddingTop:0}})),jF=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiDialogContent"}),{className:r,dividers:l=!1}=a,o=se(a,FF),i=I({},a,{dividers:l}),s=zF(i);return A.jsx(qF,I({className:Ae(s.root,r),ownerState:i,ref:n},o))}),TF=["className","id"],OF=e=>{const{classes:t}=e;return Re({root:["root"]},VF,t)},KF=_(fe,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),PF=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiDialogTitle"}),{className:r,id:l}=a,o=se(a,TF),i=a,s=OF(i),{titleId:p=l}=v.useContext(pI);return A.jsx(KF,I({component:"h2",className:Ae(s.root,r),ownerState:i,ref:n,variant:"h6",id:l??p},o))});function JF(e){return ke("MuiDivider",e)}we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const DF=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],YF=e=>{const{absolute:t,children:n,classes:a,flexItem:r,light:l,orientation:o,textAlign:i,variant:s}=e;return Re({root:["root",t&&"absolute",s,l&&"light",o==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&o==="vertical"&&"withChildrenVertical",i==="right"&&o!=="vertical"&&"textAlignRight",i==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},JF,a)},ZF=_("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>I({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ct(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>I({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>I({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),NF=_("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>I({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),er=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiDivider"}),{absolute:r=!1,children:l,className:o,component:i=l?"div":"hr",flexItem:s=!1,light:p=!1,orientation:u="horizontal",role:c=i!=="hr"?"separator":void 0,textAlign:d="center",variant:f="fullWidth"}=a,W=se(a,DF),m=I({},a,{absolute:r,component:i,flexItem:s,light:p,orientation:u,role:c,textAlign:d,variant:f}),x=YF(m);return A.jsx(ZF,I({as:i,className:Ae(x.root,o),role:c,ref:n,ownerState:m},W,{children:l?A.jsx(NF,{className:x.wrapper,ownerState:m,children:l}):null}))});er.muiSkipListHighlight=!0;const GF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HF(e,t,n){const a=t.getBoundingClientRect(),r=n&&n.getBoundingClientRect(),l=Ga(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const p=l.getComputedStyle(t);o=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let i=0,s=0;if(o&&o!=="none"&&typeof o=="string"){const p=o.split("(")[1].split(")")[0].split(",");i=parseInt(p[4],10),s=parseInt(p[5],10)}return e==="left"?r?`translateX(${r.right+i-a.left}px)`:`translateX(${l.innerWidth+i-a.left}px)`:e==="right"?r?`translateX(-${a.right-r.left-i}px)`:`translateX(-${a.left+a.width-i}px)`:e==="up"?r?`translateY(${r.bottom+s-a.top}px)`:`translateY(${l.innerHeight+s-a.top}px)`:r?`translateY(-${a.top-r.top+a.height-s}px)`:`translateY(-${a.top+a.height-s}px)`}function XF(e){return typeof e=="function"?e():e}function Oc(e,t,n){const a=XF(n),r=HF(e,t,a);r&&(t.style.webkitTransform=r,t.style.transform=r)}const _F=v.forwardRef(function(t,n){const a=vr(),r={enter:a.transitions.easing.easeOut,exit:a.transitions.easing.sharp},l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,container:p,direction:u="down",easing:c=r,in:d,onEnter:f,onEntered:W,onEntering:m,onExit:x,onExited:h,onExiting:g,style:C,timeout:y=l,TransitionComponent:E=Va}=t,S=se(t,GF),k=v.useRef(null),R=Mt(wl(s),k,n),V=L=>q=>{L&&(q===void 0?L(k.current):L(k.current,q))},b=V((L,q)=>{Oc(u,L,p),qW(L),f&&f(L,q)}),B=V((L,q)=>{const w=Ko({timeout:y,style:C,easing:c},{mode:"enter"});L.style.webkitTransition=a.transitions.create("-webkit-transform",I({},w)),L.style.transition=a.transitions.create("transform",I({},w)),L.style.webkitTransform="none",L.style.transform="none",m&&m(L,q)}),M=V(W),F=V(g),z=V(L=>{const q=Ko({timeout:y,style:C,easing:c},{mode:"exit"});L.style.webkitTransition=a.transitions.create("-webkit-transform",q),L.style.transition=a.transitions.create("transform",q),Oc(u,L,p),x&&x(L)}),T=V(L=>{L.style.webkitTransition="",L.style.transition="",h&&h(L)}),j=L=>{o&&o(k.current,L)},P=v.useCallback(()=>{k.current&&Oc(u,k.current,p)},[u,p]);return v.useEffect(()=>{if(d||u==="down"||u==="right")return;const L=dc(()=>{k.current&&Oc(u,k.current,p)}),q=Ga(k.current);return q.addEventListener("resize",L),()=>{L.clear(),q.removeEventListener("resize",L)}},[u,d,p]),v.useEffect(()=>{d||P()},[d,P]),A.jsx(E,I({nodeRef:k,onEnter:b,onEntered:M,onEntering:B,onExit:z,onExited:T,onExiting:F,addEndListener:j,appear:i,in:d,timeout:y},S,{children:(L,q)=>v.cloneElement(s,I({ref:R,style:I({visibility:L==="exited"&&!d?"hidden":void 0},C,s.props.style)},q))}))}),$F=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],e9=e=>{const{classes:t,disableUnderline:n}=e,r=Re({root:["root",!n&&"underline"],input:["input"]},Q5,t);return I({},t,r)},t9=_(zc,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Uc(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const a=e.palette.mode==="light",r=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return I({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l}},[`&.${$n.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l},[`&.${$n.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$n.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$n.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$n.disabled}, .${$n.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$n.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&I({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),n9=_(qc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fc})(({theme:e,ownerState:t})=>I({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),og=v.forwardRef(function(t,n){var a,r,l,o;const i=Le({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:p,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:f,slots:W={},type:m="text"}=i,x=se(i,$F),h=I({},i,{fullWidth:u,inputComponent:c,multiline:d,type:m}),g=e9(i),C={root:{ownerState:h},input:{ownerState:h}},y=f??p?mn(C,f??p):C,E=(a=(r=W.root)!=null?r:s.Root)!=null?a:t9,S=(l=(o=W.input)!=null?o:s.Input)!=null?l:n9;return A.jsx(_W,I({slots:{root:E,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:n,type:m},x,{classes:g}))});og.muiName="Input";function a9(e){return ke("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const r9=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],l9=e=>{const{classes:t,margin:n,fullWidth:a}=e,r={root:["root",n!=="none"&&`margin${$(n)}`,a&&"fullWidth"]};return Re(r,a9,t)},o9=_("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,t[`margin${$(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>I({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),i9=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiFormControl"}),{children:r,className:l,color:o="primary",component:i="div",disabled:s=!1,error:p=!1,focused:u,fullWidth:c=!1,hiddenLabel:d=!1,margin:f="none",required:W=!1,size:m="medium",variant:x="outlined"}=a,h=se(a,r9),g=I({},a,{color:o,component:i,disabled:s,error:p,fullWidth:c,hiddenLabel:d,margin:f,required:W,size:m,variant:x}),C=l9(g),[y,E]=v.useState(()=>{let F=!1;return r&&v.Children.forEach(r,z=>{if(!fc(z,["Input","Select"]))return;const T=fc(z,["Select"])?z.props.input:z;T&&b5(T.props)&&(F=!0)}),F}),[S,k]=v.useState(()=>{let F=!1;return r&&v.Children.forEach(r,z=>{fc(z,["Input","Select"])&&(Vc(z.props,!0)||Vc(z.props.inputProps,!0))&&(F=!0)}),F}),[R,V]=v.useState(!1);s&&R&&V(!1);const b=u!==void 0&&!s?u:R;let B;const M=v.useMemo(()=>({adornedStart:y,setAdornedStart:E,color:o,disabled:s,error:p,filled:S,focused:b,fullWidth:c,hiddenLabel:d,size:m,onBlur:()=>{V(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{V(!0)},registerEffect:B,required:W,variant:x}),[y,o,s,p,S,b,c,d,B,W,m,x]);return A.jsx(Qc.Provider,{value:M,children:A.jsx(o9,I({as:i,ownerState:g,className:Ae(C.root,l),ref:n},h,{children:r}))})}),ut=EL({createStyledComponent:_("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Le({props:e,name:"MuiStack"})});function s9(e){return ke("MuiFormControlLabel",e)}const Es=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),p9=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],u9=e=>{const{classes:t,disabled:n,labelPlacement:a,error:r,required:l}=e,o={root:["root",n&&"disabled",`labelPlacement${$(a)}`,r&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return Re(o,s9,t)},c9=_("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Es.label}`]:t.label},t.root,t[`labelPlacement${$(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>I({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Es.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Es.label}`]:{[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),A9=_("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Es.error}`]:{color:(e.vars||e).palette.error.main}})),Kc=v.forwardRef(function(t,n){var a,r;const l=Le({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:i={},control:s,disabled:p,disableTypography:u,label:c,labelPlacement:d="end",required:f,slotProps:W={}}=l,m=se(l,p9),x=_a(),h=(a=p??s.props.disabled)!=null?a:x==null?void 0:x.disabled,g=f??s.props.required,C={disabled:h,required:g};["checked","name","onChange","value","inputRef"].forEach(V=>{typeof s.props[V]>"u"&&typeof l[V]<"u"&&(C[V]=l[V])});const y=_r({props:l,muiFormControl:x,states:["error"]}),E=I({},l,{disabled:h,labelPlacement:d,required:g,error:y.error}),S=u9(E),k=(r=W.typography)!=null?r:i.typography;let R=c;return R!=null&&R.type!==fe&&!u&&(R=A.jsx(fe,I({component:"span"},k,{className:Ae(S.label,k==null?void 0:k.className),children:R}))),A.jsxs(c9,I({className:Ae(S.root,o),ownerState:E,ref:n},m,{children:[v.cloneElement(s,C),g?A.jsxs(ut,{display:"block",children:[R,A.jsxs(A9,{ownerState:E,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):R]}))});function d9(e){return ke("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const f9=["className","row"],W9=e=>{const{classes:t,row:n,error:a}=e;return Re({root:["root",n&&"row",a&&"error"]},d9,t)},g9=_("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>I({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),h9=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiFormGroup"}),{className:r,row:l=!1}=a,o=se(a,f9),i=_a(),s=_r({props:a,muiFormControl:i,states:["error"]}),p=I({},a,{row:l,error:s.error}),u=W9(p);return A.jsx(g9,I({className:Ae(u.root,r),ownerState:p,ref:n},o))});function m9(e){return ke("MuiFormHelperText",e)}const uI=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var cI;const C9=["children","className","component","disabled","error","filled","focused","margin","required","variant"],v9=e=>{const{classes:t,contained:n,size:a,disabled:r,error:l,filled:o,focused:i,required:s}=e,p={root:["root",r&&"disabled",l&&"error",a&&`size${$(a)}`,n&&"contained",i&&"focused",o&&"filled",s&&"required"]};return Re(p,m9,t)},y9=_("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${$(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${uI.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uI.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),S9=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiFormHelperText"}),{children:r,className:l,component:o="p"}=a,i=se(a,C9),s=_a(),p=_r({props:a,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),u=I({},a,{component:o,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),c=v9(u);return A.jsx(y9,I({as:o,ownerState:u,className:Ae(c.root,l),ref:n},i,{children:r===" "?cI||(cI=A.jsx("span",{className:"notranslate",children:"​"})):r}))});function I9(e){return ke("MuiFormLabel",e)}const bs=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),x9=["children","className","color","component","disabled","error","filled","focused","required"],E9=e=>{const{classes:t,color:n,focused:a,disabled:r,error:l,filled:o,required:i}=e,s={root:["root",`color${$(n)}`,r&&"disabled",l&&"error",o&&"filled",a&&"focused",i&&"required"],asterisk:["asterisk",l&&"error"]};return Re(s,I9,t)},b9=_("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bs.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${bs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),k9=_("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),w9=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiFormLabel"}),{children:r,className:l,component:o="label"}=a,i=se(a,x9),s=_a(),p=_r({props:a,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),u=I({},a,{color:p.color||"primary",component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),c=E9(u);return A.jsxs(b9,I({as:o,ownerState:u,className:Ae(c.root,l),ref:n},i,{children:[r,p.required&&A.jsxs(k9,{ownerState:u,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}),AI=v.createContext();function R9(e){return ke("MuiGrid",e)}const B9=[0,1,2,3,4,5,6,7,8,9,10],L9=["column-reverse","column","row-reverse","row"],M9=["nowrap","wrap-reverse","wrap"],ks=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ws=we("MuiGrid",["root","container","item","zeroMinWidth",...B9.map(e=>`spacing-xs-${e}`),...L9.map(e=>`direction-xs-${e}`),...M9.map(e=>`wrap-xs-${e}`),...ks.map(e=>`grid-xs-${e}`),...ks.map(e=>`grid-sm-${e}`),...ks.map(e=>`grid-md-${e}`),...ks.map(e=>`grid-lg-${e}`),...ks.map(e=>`grid-xl-${e}`)]),Q9=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function No(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function V9({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((a,r)=>{let l={};if(t[r]&&(n=t[r]),!n)return a;if(n===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=El({values:t.columns,breakpoints:e.breakpoints.values}),i=typeof o=="object"?o[r]:o;if(i==null)return a;const s=`${Math.round(n/i*1e8)/1e6}%`;let p={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const c=`calc(${s} + ${No(u)})`;p={flexBasis:c,maxWidth:c}}}l=I({flexBasis:s,flexGrow:0,maxWidth:s},p)}return e.breakpoints.values[r]===0?Object.assign(a,l):a[e.breakpoints.up(r)]=l,a},{})}function U9({theme:e,ownerState:t}){const n=El({values:t.direction,breakpoints:e.breakpoints.values});return Rn({theme:e},n,a=>{const r={flexDirection:a};return a.indexOf("column")===0&&(r[`& > .${ws.item}`]={maxWidth:"none"}),r})}function dI({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(r=>{n===""&&t[r]!==0&&(n=r)});const a=Object.keys(e).sort((r,l)=>e[r]-e[l]);return a.slice(0,a.indexOf(n))}function F9({theme:e,ownerState:t}){const{container:n,rowSpacing:a}=t;let r={};if(n&&a!==0){const l=El({values:a,breakpoints:e.breakpoints.values});let o;typeof l=="object"&&(o=dI({breakpoints:e.breakpoints.values,values:l})),r=Rn({theme:e},l,(i,s)=>{var p;const u=e.spacing(i);return u!=="0px"?{marginTop:`-${No(u)}`,[`& > .${ws.item}`]:{paddingTop:No(u)}}:(p=o)!=null&&p.includes(s)?{}:{marginTop:0,[`& > .${ws.item}`]:{paddingTop:0}}})}return r}function z9({theme:e,ownerState:t}){const{container:n,columnSpacing:a}=t;let r={};if(n&&a!==0){const l=El({values:a,breakpoints:e.breakpoints.values});let o;typeof l=="object"&&(o=dI({breakpoints:e.breakpoints.values,values:l})),r=Rn({theme:e},l,(i,s)=>{var p;const u=e.spacing(i);return u!=="0px"?{width:`calc(100% + ${No(u)})`,marginLeft:`-${No(u)}`,[`& > .${ws.item}`]:{paddingLeft:No(u)}}:(p=o)!=null&&p.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${ws.item}`]:{paddingLeft:0}}})}return r}function q9(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const a=[];return t.forEach(r=>{const l=e[r];Number(l)>0&&a.push(n[`spacing-${r}-${String(l)}`])}),a}const j9=_("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:a,direction:r,item:l,spacing:o,wrap:i,zeroMinWidth:s,breakpoints:p}=n;let u=[];a&&(u=q9(o,p,t));const c=[];return p.forEach(d=>{const f=n[d];f&&c.push(t[`grid-${d}-${String(f)}`])}),[t.root,a&&t.container,l&&t.item,s&&t.zeroMinWidth,...u,r!=="row"&&t[`direction-xs-${String(r)}`],i!=="wrap"&&t[`wrap-xs-${String(i)}`],...c]}})(({ownerState:e})=>I({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),U9,F9,z9,V9);function T9(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(a=>{const r=e[a];if(Number(r)>0){const l=`spacing-${a}-${String(r)}`;n.push(l)}}),n}const O9=e=>{const{classes:t,container:n,direction:a,item:r,spacing:l,wrap:o,zeroMinWidth:i,breakpoints:s}=e;let p=[];n&&(p=T9(l,s));const u=[];s.forEach(d=>{const f=e[d];f&&u.push(`grid-${d}-${String(f)}`)});const c={root:["root",n&&"container",r&&"item",i&&"zeroMinWidth",...p,a!=="row"&&`direction-xs-${String(a)}`,o!=="wrap"&&`wrap-xs-${String(o)}`,...u]};return Re(c,R9,t)},ct=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiGrid"}),{breakpoints:r}=vr(),l=cs(a),{className:o,columns:i,columnSpacing:s,component:p="div",container:u=!1,direction:c="row",item:d=!1,rowSpacing:f,spacing:W=0,wrap:m="wrap",zeroMinWidth:x=!1}=l,h=se(l,Q9),g=f||W,C=s||W,y=v.useContext(AI),E=u?i||12:y,S={},k=I({},h);r.keys.forEach(b=>{h[b]!=null&&(S[b]=h[b],delete k[b])});const R=I({},l,{columns:E,container:u,direction:c,item:d,rowSpacing:g,columnSpacing:C,wrap:m,zeroMinWidth:x,spacing:W},S,{breakpoints:r.keys}),V=O9(R);return A.jsx(AI.Provider,{value:E,children:A.jsx(j9,I({ownerState:R,className:Ae(V.root,o),as:p,ref:n},k))})}),K9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ig(e){return`scale(${e}, ${e**2})`}const P9={entering:{opacity:1,transform:ig(1)},entered:{opacity:1,transform:"none"}},sg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Pc=v.forwardRef(function(t,n){const{addEndListener:a,appear:r=!0,children:l,easing:o,in:i,onEnter:s,onEntered:p,onEntering:u,onExit:c,onExited:d,onExiting:f,style:W,timeout:m="auto",TransitionComponent:x=Va}=t,h=se(t,K9),g=Fo(),C=v.useRef(),y=vr(),E=v.useRef(null),S=Mt(E,wl(l),n),k=T=>j=>{if(T){const P=E.current;j===void 0?T(P):T(P,j)}},R=k(u),V=k((T,j)=>{qW(T);const{duration:P,delay:L,easing:q}=Ko({style:W,timeout:m,easing:o},{mode:"enter"});let w;m==="auto"?(w=y.transitions.getAutoHeightDuration(T.clientHeight),C.current=w):w=P,T.style.transition=[y.transitions.create("opacity",{duration:w,delay:L}),y.transitions.create("transform",{duration:sg?w:w*.666,delay:L,easing:q})].join(","),s&&s(T,j)}),b=k(p),B=k(f),M=k(T=>{const{duration:j,delay:P,easing:L}=Ko({style:W,timeout:m,easing:o},{mode:"exit"});let q;m==="auto"?(q=y.transitions.getAutoHeightDuration(T.clientHeight),C.current=q):q=j,T.style.transition=[y.transitions.create("opacity",{duration:q,delay:P}),y.transitions.create("transform",{duration:sg?q:q*.666,delay:sg?P:P||q*.333,easing:L})].join(","),T.style.opacity=0,T.style.transform=ig(.75),c&&c(T)}),F=k(d),z=T=>{m==="auto"&&g.start(C.current||0,T),a&&a(E.current,T)};return A.jsx(x,I({appear:r,in:i,nodeRef:E,onEnter:V,onEntered:b,onEntering:R,onExit:M,onExited:F,onExiting:B,addEndListener:z,timeout:m==="auto"?null:m},h,{children:(T,j)=>v.cloneElement(l,I({style:I({opacity:0,transform:ig(.75),visibility:T==="exited"&&!i?"hidden":void 0},P9[T],W,l.props.style),ref:S},j))}))});Pc.muiSupportAuto=!0;const J9=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],D9=e=>{const{classes:t,disableUnderline:n}=e,r=Re({root:["root",!n&&"underline"],input:["input"]},L5,t);return I({},t,r)},Y9=_(zc,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Uc(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let a=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(a=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),I({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$r.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$r.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$r.disabled}, .${$r.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${a}`}},[`&.${$r.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Z9=_(qc,{name:"MuiInput",slot:"Input",overridesResolver:Fc})({}),pg=v.forwardRef(function(t,n){var a,r,l,o;const i=Le({props:t,name:"MuiInput"}),{disableUnderline:s,components:p={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:W,slots:m={},type:x="text"}=i,h=se(i,J9),g=D9(i),y={root:{ownerState:{disableUnderline:s}}},E=W??u?mn(W??u,y):y,S=(a=(r=m.root)!=null?r:p.Root)!=null?a:Y9,k=(l=(o=m.input)!=null?o:p.Input)!=null?l:Z9;return A.jsx(_W,I({slots:{root:S,input:k},slotProps:E,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:x},h,{classes:g}))});pg.muiName="Input";function N9(e){return ke("MuiInputAdornment",e)}const fI=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var WI;const G9=["children","className","component","disablePointerEvents","disableTypography","position","variant"],H9=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${$(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},X9=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:a,position:r,size:l,variant:o}=e,i={root:["root",n&&"disablePointerEvents",r&&`position${$(r)}`,o,a&&"hiddenLabel",l&&`size${$(l)}`]};return Re(i,N9,t)},_9=_("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:H9})(({theme:e,ownerState:t})=>I({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${fI.positionStart}&:not(.${fI.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),ug=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiInputAdornment"}),{children:r,className:l,component:o="div",disablePointerEvents:i=!1,disableTypography:s=!1,position:p,variant:u}=a,c=se(a,G9),d=_a()||{};let f=u;u&&d.variant,d&&!f&&(f=d.variant);const W=I({},a,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:i,position:p,variant:f}),m=X9(W);return A.jsx(Qc.Provider,{value:null,children:A.jsx(_9,I({as:o,ownerState:W,className:Ae(m.root,l),ref:n},c,{children:typeof r=="string"&&!s?A.jsx(fe,{color:"text.secondary",children:r}):A.jsxs(v.Fragment,{children:[p==="start"?WI||(WI=A.jsx("span",{className:"notranslate",children:"​"})):null,r]})}))})});function $9(e){return ke("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ez=["disableAnimation","margin","shrink","variant","className"],tz=e=>{const{classes:t,formControl:n,size:a,shrink:r,disableAnimation:l,variant:o,required:i}=e,s={root:["root",n&&"formControl",!l&&"animated",r&&"shrink",a&&a!=="normal"&&`size${$(a)}`,o],asterisk:[i&&"asterisk"]},p=Re(s,$9,t);return I({},t,p)},nz=_(w9,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bs.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>I({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&I({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&I({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&I({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),az=v.forwardRef(function(t,n){const a=Le({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,shrink:l,className:o}=a,i=se(a,ez),s=_a();let p=l;typeof p>"u"&&s&&(p=s.filled||s.focused||s.adornedStart);const u=_r({props:a,muiFormControl:s,states:["size","variant","required","focused"]}),c=I({},a,{disableAnimation:r,formControl:s,shrink:p,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=tz(c);return A.jsx(nz,I({"data-shrink":p,ownerState:c,ref:n,className:Ae(d.root,o)},i,{classes:d}))}),rz=v.createContext({});function lz(e){return ke("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const oz=["children","className","component","dense","disablePadding","subheader"],iz=e=>{const{classes:t,disablePadding:n,dense:a,subheader:r}=e;return Re({root:["root",!n&&"padding",a&&"dense",r&&"subheader"]},lz,t)},sz=_("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})=>I({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),pz=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiList"}),{children:r,className:l,component:o="ul",dense:i=!1,disablePadding:s=!1,subheader:p}=a,u=se(a,oz),c=v.useMemo(()=>({dense:i}),[i]),d=I({},a,{component:o,dense:i,disablePadding:s}),f=iz(d);return A.jsx(rz.Provider,{value:c,children:A.jsxs(sz,I({as:o,className:Ae(f.root,l),ref:n,ownerState:d},u,{children:[p,r]}))})}),uz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hI(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 Rs(e,t,n,a,r,l){let o=!1,i=r(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(o)return!1;o=!0}const s=a?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!hI(i,l)||s)i=r(e,i,n);else return i.focus(),!0}return!1}const cz=v.forwardRef(function(t,n){const{actions:a,autoFocus:r=!1,autoFocusItem:l=!1,children:o,className:i,disabledItemsFocusable:s=!1,disableListWrap:p=!1,onKeyDown:u,variant:c="selectedMenu"}=t,d=se(t,uz),f=v.useRef(null),W=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});da(()=>{r&&f.current.focus()},[r]),v.useImperativeHandle(a,()=>({adjustStyleForScrollbar:(C,{direction:y})=>{const E=!f.current.style.width;if(C.clientHeight<f.current.clientHeight&&E){const S=`${M1(cn(C))}px`;f.current.style[y==="rtl"?"paddingLeft":"paddingRight"]=S,f.current.style.width=`calc(100% + ${S})`}return f.current}}),[]);const m=C=>{const y=f.current,E=C.key,S=cn(y).activeElement;if(E==="ArrowDown")C.preventDefault(),Rs(y,S,p,s,cg);else if(E==="ArrowUp")C.preventDefault(),Rs(y,S,p,s,gI);else if(E==="Home")C.preventDefault(),Rs(y,null,p,s,cg);else if(E==="End")C.preventDefault(),Rs(y,null,p,s,gI);else if(E.length===1){const k=W.current,R=E.toLowerCase(),V=performance.now();k.keys.length>0&&(V-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&R!==k.keys[0]&&(k.repeating=!1)),k.lastTime=V,k.keys.push(R);const b=S&&!k.repeating&&hI(S,k);k.previousKeyMatched&&(b||Rs(y,S,!1,s,cg,k))?C.preventDefault():k.previousKeyMatched=!1}u&&u(C)},x=Mt(f,n);let h=-1;v.Children.forEach(o,(C,y)=>{if(!v.isValidElement(C)){h===y&&(h+=1,h>=o.length&&(h=-1));return}C.props.disabled||(c==="selectedMenu"&&C.props.selected||h===-1)&&(h=y),h===y&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(h+=1,h>=o.length&&(h=-1))});const g=v.Children.map(o,(C,y)=>{if(y===h){const E={};return l&&(E.autoFocus=!0),C.props.tabIndex===void 0&&c==="selectedMenu"&&(E.tabIndex=0),v.cloneElement(C,E)}return C});return A.jsx(pz,I({role:"menu",ref:x,className:i,onKeyDown:m,tabIndex:r?0:-1},d,{children:g}))});function Az(e){return ke("MuiPopover",e)}we("MuiPopover",["root","paper"]);const dz=["onEntering"],fz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Wz=["slotProps"];function mI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function CI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function vI(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ag(e){return typeof e=="function"?e():e}const gz=e=>{const{classes:t}=e;return Re({root:["root"],paper:["paper"]},Az,t)},hz=_(sI,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yI=_(Nt,{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}),SI=v.forwardRef(function(t,n){var a,r,l;const o=Le({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:f,container:W,elevation:m=8,marginThreshold:x=16,open:h,PaperProps:g={},slots:C,slotProps:y,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=Pc,transitionDuration:k="auto",TransitionProps:{onEntering:R}={},disableScrollLock:V=!1}=o,b=se(o.TransitionProps,dz),B=se(o,fz),M=(a=y==null?void 0:y.paper)!=null?a:g,F=v.useRef(),z=Mt(F,M.ref),T=I({},o,{anchorOrigin:p,anchorReference:c,elevation:m,marginThreshold:x,externalPaperSlotProps:M,transformOrigin:E,TransitionComponent:S,transitionDuration:k,TransitionProps:b}),j=gz(T),P=v.useCallback(()=>{if(c==="anchorPosition")return u;const ge=Ag(s),ve=(ge&&ge.nodeType===1?ge:cn(F.current).body).getBoundingClientRect();return{top:ve.top+mI(ve,p.vertical),left:ve.left+CI(ve,p.horizontal)}},[s,p.horizontal,p.vertical,u,c]),L=v.useCallback(ge=>({vertical:mI(ge,E.vertical),horizontal:CI(ge,E.horizontal)}),[E.horizontal,E.vertical]),q=v.useCallback(ge=>{const me={width:ge.offsetWidth,height:ge.offsetHeight},ve=L(me);if(c==="none")return{top:null,left:null,transformOrigin:vI(ve)};const ce=P();let Ze=ce.top-ve.vertical,le=ce.left-ve.horizontal;const Ke=Ze+me.height,qe=le+me.width,Be=Ga(Ag(s)),Te=Be.innerHeight-x,Pe=Be.innerWidth-x;if(x!==null&&Ze<x){const je=Ze-x;Ze-=je,ve.vertical+=je}else if(x!==null&&Ke>Te){const je=Ke-Te;Ze-=je,ve.vertical+=je}if(x!==null&&le<x){const je=le-x;le-=je,ve.horizontal+=je}else if(qe>Pe){const je=qe-Pe;le-=je,ve.horizontal+=je}return{top:`${Math.round(Ze)}px`,left:`${Math.round(le)}px`,transformOrigin:vI(ve)}},[s,c,P,L,x]),[w,H]=v.useState(h),te=v.useCallback(()=>{const ge=F.current;if(!ge)return;const me=q(ge);me.top!==null&&(ge.style.top=me.top),me.left!==null&&(ge.style.left=me.left),ge.style.transformOrigin=me.transformOrigin,H(!0)},[q]);v.useEffect(()=>(V&&window.addEventListener("scroll",te),()=>window.removeEventListener("scroll",te)),[s,V,te]);const Q=(ge,me)=>{R&&R(ge,me),te()},N=()=>{H(!1)};v.useEffect(()=>{h&&te()}),v.useImperativeHandle(i,()=>h?{updatePosition:()=>{te()}}:null,[h,te]),v.useEffect(()=>{if(!h)return;const ge=dc(()=>{te()}),me=Ga(s);return me.addEventListener("resize",ge),()=>{ge.clear(),me.removeEventListener("resize",ge)}},[s,h,te]);let re=k;k==="auto"&&!S.muiSupportAuto&&(re=void 0);const ue=W||(s?cn(Ag(s)).body:void 0),X=(r=C==null?void 0:C.root)!=null?r:hz,ee=(l=C==null?void 0:C.paper)!=null?l:yI,de=kl({elementType:ee,externalSlotProps:I({},M,{style:w?M.style:I({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:z},ownerState:T,className:Ae(j.paper,M==null?void 0:M.className)}),ae=kl({elementType:X,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ue,open:h},ownerState:T,className:Ae(j.root,f)}),{slotProps:G}=ae,he=se(ae,Wz);return A.jsx(X,I({},he,!gc(X)&&{slotProps:G,disableScrollLock:V},{children:A.jsx(S,I({appear:!0,in:h,onEntering:Q,onExited:N,timeout:re},b,{children:A.jsx(ee,I({},de,{children:d}))}))}))});function mz(e){return ke("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const Cz=["onEntering"],vz=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yz={vertical:"top",horizontal:"right"},Sz={vertical:"top",horizontal:"left"},Iz=e=>{const{classes:t}=e;return Re({root:["root"],paper:["paper"],list:["list"]},mz,t)},xz=_(SI,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ez=_(yI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),bz=_(cz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),kz=v.forwardRef(function(t,n){var a,r;const l=Le({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:p=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:f={},PopoverClasses:W,transitionDuration:m="auto",TransitionProps:{onEntering:x}={},variant:h="selectedMenu",slots:g={},slotProps:C={}}=l,y=se(l.TransitionProps,Cz),E=se(l,vz),S=T1(),k=I({},l,{autoFocus:o,disableAutoFocusItem:p,MenuListProps:u,onEntering:x,PaperProps:f,transitionDuration:m,TransitionProps:y,variant:h}),R=Iz(k),V=o&&!p&&d,b=v.useRef(null),B=(L,q)=>{b.current&&b.current.adjustStyleForScrollbar(L,{direction:S?"rtl":"ltr"}),x&&x(L,q)},M=L=>{L.key==="Tab"&&(L.preventDefault(),c&&c(L,"tabKeyDown"))};let F=-1;v.Children.map(i,(L,q)=>{v.isValidElement(L)&&(L.props.disabled||(h==="selectedMenu"&&L.props.selected||F===-1)&&(F=q))});const z=(a=g.paper)!=null?a:Ez,T=(r=C.paper)!=null?r:f,j=kl({elementType:g.root,externalSlotProps:C.root,ownerState:k,className:[R.root,s]}),P=kl({elementType:z,externalSlotProps:T,ownerState:k,className:R.paper});return A.jsx(xz,I({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?yz:Sz,slots:{paper:z,root:g.root},slotProps:{root:j,paper:P},open:d,ref:n,transitionDuration:m,TransitionProps:I({onEntering:B},y),ownerState:k},E,{classes:W,children:A.jsx(bz,I({onKeyDown:M,actions:b,autoFocus:o&&(F===-1||p),autoFocusItem:V,variant:h},u,{className:Ae(R.list,u.className),children:i}))}))});function wz(e){return ke("MuiNativeSelect",e)}const dg=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rz=["className","disabled","error","IconComponent","inputRef","variant"],Bz=e=>{const{classes:t,variant:n,disabled:a,multiple:r,open:l,error:o}=e,i={select:["select",n,a&&"disabled",r&&"multiple",o&&"error"],icon:["icon",`icon${$(n)}`,l&&"iconOpen",a&&"disabled"]};return Re(i,wz,t)},II=({ownerState:e,theme:t})=>I({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":I({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${dg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Lz=_("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${dg.multiple}`]:t.multiple}]}})(II),xI=({ownerState:e,theme:t})=>I({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${dg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Mz=_("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$(n.variant)}`],n.open&&t.iconOpen]}})(xI),Qz=v.forwardRef(function(t,n){const{className:a,disabled:r,error:l,IconComponent:o,inputRef:i,variant:s="standard"}=t,p=se(t,Rz),u=I({},t,{disabled:r,variant:s,error:l}),c=Bz(u);return A.jsxs(v.Fragment,{children:[A.jsx(Lz,I({ownerState:u,className:Ae(c.select,a),disabled:r,ref:i||n},p)),t.multiple?null:A.jsx(Mz,{as:o,ownerState:u,className:c.icon})]})});var EI;const Vz=["children","classes","className","label","notched"],Uz=_("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Fz=_("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cn})(({ownerState:e,theme:t})=>I({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&I({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zz(e){const{className:t,label:n,notched:a}=e,r=se(e,Vz),l=n!=null&&n!=="",o=I({},e,{notched:a,withLabel:l});return A.jsx(Uz,I({"aria-hidden":!0,className:t,ownerState:o},r,{children:A.jsx(Fz,{ownerState:o,children:l?A.jsx("span",{children:n}):EI||(EI=A.jsx("span",{className:"notranslate",children:"​"}))})}))}const qz=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jz=e=>{const{classes:t}=e,a=Re({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},M5,t);return I({},t,a)},Tz=_(zc,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Uc})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return I({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$a.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$a.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$a.focused} .${$a.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$a.error} .${$a.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$a.disabled} .${$a.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&I({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Oz=_(zz,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Kz=_(qc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fc})(({theme:e,ownerState:t})=>I({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),fg=v.forwardRef(function(t,n){var a,r,l,o,i;const s=Le({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:f=!1,notched:W,slots:m={},type:x="text"}=s,h=se(s,qz),g=jz(s),C=_a(),y=_r({props:s,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=I({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:C,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:f,size:y.size,type:x}),S=(a=(r=m.root)!=null?r:p.Root)!=null?a:Tz,k=(l=(o=m.input)!=null?o:p.Input)!=null?l:Kz;return A.jsx(_W,I({slots:{root:S,input:k},renderSuffix:R=>A.jsx(Oz,{ownerState:E,className:g.notchedOutline,label:d!=null&&d!==""&&y.required?i||(i=A.jsxs(v.Fragment,{children:[d," ","*"]})):d,notched:typeof W<"u"?W:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:u,inputComponent:c,multiline:f,ref:n,type:x},h,{classes:I({},g,{notchedOutline:null})}))});fg.muiName="Input";const Pz=$t(A.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Jz=$t(A.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Dz=_("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Cn})({position:"relative",display:"flex"}),Yz=_(Pz,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Zz=_(Jz,{name:"MuiRadioButtonIcon"})(({theme:e,ownerState:t})=>I({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function bI(e){const{checked:t=!1,classes:n={},fontSize:a}=e,r=I({},e,{checked:t});return A.jsxs(Dz,{className:n.root,ownerState:r,children:[A.jsx(Yz,{fontSize:a,className:n.background,ownerState:r}),A.jsx(Zz,{fontSize:a,className:n.dot,ownerState:r})]})}const kI=v.createContext(void 0);function Nz(){return v.useContext(kI)}function Gz(e){return ke("MuiRadio",e)}const wI=we("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Hz=["checked","checkedIcon","color","icon","name","onChange","size","className"],Xz=e=>{const{classes:t,color:n,size:a}=e,r={root:["root",`color${$(n)}`,a!=="medium"&&`size${$(a)}`]};return I({},t,Re(r,Gz,t))},_z=_(tI,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${$(n.size)}`],t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${wI.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${wI.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function $z(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const RI=A.jsx(bI,{checked:!0}),BI=A.jsx(bI,{}),Wg=v.forwardRef(function(t,n){var a,r;const l=Le({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:i=RI,color:s="primary",icon:p=BI,name:u,onChange:c,size:d="medium",className:f}=l,W=se(l,Hz),m=I({},l,{color:s,size:d}),x=Xz(m),h=Nz();let g=o;const C=Ac(c,h&&h.onChange);let y=u;return h&&(typeof g>"u"&&(g=$z(h.value,l.value)),typeof y>"u"&&(y=h.name)),A.jsx(_z,I({type:"radio",icon:v.cloneElement(p,{fontSize:(a=BI.props.fontSize)!=null?a:d}),checkedIcon:v.cloneElement(i,{fontSize:(r=RI.props.fontSize)!=null?r:d}),ownerState:m,classes:x,name:y,checked:g,onChange:C,ref:n,className:Ae(x.root,f)},W))});function eq(e){return ke("MuiRadioGroup",e)}we("MuiRadioGroup",["root","row","error"]);const tq=["actions","children","className","defaultValue","name","onChange","value"],nq=e=>{const{classes:t,row:n,error:a}=e;return Re({root:["root",n&&"row",a&&"error"]},eq,t)},aq=v.forwardRef(function(t,n){const{actions:a,children:r,className:l,defaultValue:o,name:i,onChange:s,value:p}=t,u=se(t,tq),c=v.useRef(null),d=nq(t),[f,W]=Cr({controlled:p,default:o,name:"RadioGroup"});v.useImperativeHandle(a,()=>({focus:()=>{let g=c.current.querySelector("input:not(:disabled):checked");g||(g=c.current.querySelector("input:not(:disabled)")),g&&g.focus()}}),[]);const m=Mt(n,c),x=Hr(i),h=v.useMemo(()=>({name:x,onChange(g){W(g.target.value),s&&s(g,g.target.value)},value:f}),[x,s,W,f]);return A.jsx(kI.Provider,{value:h,children:A.jsx(h9,I({role:"radiogroup",ref:m,className:Ae(d.root,l)},u,{children:r}))})});function rq(e){return ke("MuiSelect",e)}const Bs=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var LI;const lq=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],oq=_("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Bs.select}`]:t.select},{[`&.${Bs.select}`]:t[n.variant]},{[`&.${Bs.error}`]:t.error},{[`&.${Bs.multiple}`]:t.multiple}]}})(II,{[`&.${Bs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),iq=_("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$(n.variant)}`],n.open&&t.iconOpen]}})(xI),sq=_("input",{shouldForwardProp:e=>sS(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function MI(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function pq(e){return e==null||typeof e=="string"&&!e.trim()}const uq=e=>{const{classes:t,variant:n,disabled:a,multiple:r,open:l,error:o}=e,i={select:["select",n,a&&"disabled",r&&"multiple",o&&"error"],icon:["icon",`icon${$(n)}`,l&&"iconOpen",a&&"disabled"],nativeInput:["nativeInput"]};return Re(i,rq,t)},cq=v.forwardRef(function(t,n){var a;const{"aria-describedby":r,"aria-label":l,autoFocus:o,autoWidth:i,children:s,className:p,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:W=!1,IconComponent:m,inputRef:x,labelId:h,MenuProps:g={},multiple:C,name:y,onBlur:E,onChange:S,onClose:k,onFocus:R,onOpen:V,open:b,readOnly:B,renderValue:M,SelectDisplayProps:F={},tabIndex:z,value:T,variant:j="standard"}=t,P=se(t,lq),[L,q]=Cr({controlled:T,default:c,name:"Select"}),[w,H]=Cr({controlled:b,default:u,name:"Select"}),te=v.useRef(null),Q=v.useRef(null),[N,re]=v.useState(null),{current:ue}=v.useRef(b!=null),[X,ee]=v.useState(),de=Mt(n,x),ae=v.useCallback(pe=>{Q.current=pe,pe&&re(pe)},[]),G=N==null?void 0:N.parentNode;v.useImperativeHandle(de,()=>({focus:()=>{Q.current.focus()},node:te.current,value:L}),[L]),v.useEffect(()=>{u&&w&&N&&!ue&&(ee(i?null:G.clientWidth),Q.current.focus())},[N,i]),v.useEffect(()=>{o&&Q.current.focus()},[o]),v.useEffect(()=>{if(!h)return;const pe=cn(Q.current).getElementById(h);if(pe){const xe=()=>{getSelection().isCollapsed&&Q.current.focus()};return pe.addEventListener("click",xe),()=>{pe.removeEventListener("click",xe)}}},[h]);const he=(pe,xe)=>{pe?V&&V(xe):k&&k(xe),ue||(ee(i?null:G.clientWidth),H(pe))},ge=pe=>{pe.button===0&&(pe.preventDefault(),Q.current.focus(),he(!0,pe))},me=pe=>{he(!1,pe)},ve=v.Children.toArray(s),ce=pe=>{const xe=ve.find(Qe=>Qe.props.value===pe.target.value);xe!==void 0&&(q(xe.props.value),S&&S(pe,xe))},Ze=pe=>xe=>{let Qe;if(xe.currentTarget.hasAttribute("tabindex")){if(C){Qe=Array.isArray(L)?L.slice():[];const Je=L.indexOf(pe.props.value);Je===-1?Qe.push(pe.props.value):Qe.splice(Je,1)}else Qe=pe.props.value;if(pe.props.onClick&&pe.props.onClick(xe),L!==Qe&&(q(Qe),S)){const Je=xe.nativeEvent||xe,ft=new Je.constructor(Je.type,Je);Object.defineProperty(ft,"target",{writable:!0,value:{value:Qe,name:y}}),S(ft,pe)}C||he(!1,xe)}},le=pe=>{B||[" ","ArrowUp","ArrowDown","Enter"].indexOf(pe.key)!==-1&&(pe.preventDefault(),he(!0,pe))},Ke=N!==null&&w,qe=pe=>{!Ke&&E&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:L,name:y}}),E(pe))};delete P["aria-invalid"];let Be,Te;const Pe=[];let je=!1;(Vc({value:L})||f)&&(M?Be=M(L):je=!0);const it=ve.map(pe=>{if(!v.isValidElement(pe))return null;let xe;if(C){if(!Array.isArray(L))throw new Error(hr(2));xe=L.some(Qe=>MI(Qe,pe.props.value)),xe&&je&&Pe.push(pe.props.children)}else xe=MI(L,pe.props.value),xe&&je&&(Te=pe.props.children);return v.cloneElement(pe,{"aria-selected":xe?"true":"false",onClick:Ze(pe),onKeyUp:Qe=>{Qe.key===" "&&Qe.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(Qe)},role:"option",selected:xe,value:void 0,"data-value":pe.props.value})});je&&(C?Pe.length===0?Be=null:Be=Pe.reduce((pe,xe,Qe)=>(pe.push(xe),Qe<Pe.length-1&&pe.push(", "),pe),[]):Be=Te);let D=X;!i&&ue&&N&&(D=G.clientWidth);let ne;typeof z<"u"?ne=z:ne=d?null:0;const U=F.id||(y?`mui-component-select-${y}`:void 0),O=I({},t,{variant:j,value:L,open:Ke,error:W}),Y=uq(O),Ie=I({},g.PaperProps,(a=g.slotProps)==null?void 0:a.paper),Se=Hr();return A.jsxs(v.Fragment,{children:[A.jsx(oq,I({ref:ae,tabIndex:ne,role:"combobox","aria-controls":Se,"aria-disabled":d?"true":void 0,"aria-expanded":Ke?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[h,U].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:le,onMouseDown:d||B?null:ge,onBlur:qe,onFocus:R},F,{ownerState:O,className:Ae(F.className,Y.select,p),id:U,children:pq(Be)?LI||(LI=A.jsx("span",{className:"notranslate",children:"​"})):Be})),A.jsx(sq,I({"aria-invalid":W,value:Array.isArray(L)?L.join(","):L,name:y,ref:te,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:d,className:Y.nativeInput,autoFocus:o,ownerState:O},P)),A.jsx(iq,{as:m,className:Y.icon,ownerState:O}),A.jsx(kz,I({id:`menu-${y||""}`,anchorEl:G,open:Ke,onClose:me,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:I({"aria-labelledby":h,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:Se},g.MenuListProps),slotProps:I({},g.slotProps,{paper:I({},Ie,{style:I({minWidth:D},Ie!=null?Ie.style:null)})}),children:it}))]})}),Aq=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dq=["root"],fq=e=>{const{classes:t}=e;return t},gg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Cn(e)&&e!=="variant",slot:"Root"},Wq=_(pg,gg)(""),gq=_(fg,gg)(""),hq=_(og,gg)(""),QI=v.forwardRef(function(t,n){const a=Le({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:l,classes:o={},className:i,defaultOpen:s=!1,displayEmpty:p=!1,IconComponent:u=NS,id:c,input:d,inputProps:f,label:W,labelId:m,MenuProps:x,multiple:h=!1,native:g=!1,onClose:C,onOpen:y,open:E,renderValue:S,SelectDisplayProps:k,variant:R="outlined"}=a,V=se(a,Aq),b=g?Qz:cq,B=_a(),M=_r({props:a,muiFormControl:B,states:["variant","error"]}),F=M.variant||R,z=I({},a,{variant:F,classes:o}),T=fq(z),j=se(T,dq),P=d||{standard:A.jsx(Wq,{ownerState:z}),outlined:A.jsx(gq,{label:W,ownerState:z}),filled:A.jsx(hq,{ownerState:z})}[F],L=Mt(n,wl(P));return A.jsx(v.Fragment,{children:v.cloneElement(P,I({inputComponent:b,inputProps:I({children:l,error:M.error,IconComponent:u,variant:F,type:void 0,multiple:h},g?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:p,labelId:m,MenuProps:x,onClose:C,onOpen:y,open:E,renderValue:S,SelectDisplayProps:I({id:c},k)},f,{classes:f?mn(j,f.classes):j},d?d.props.inputProps:{})},(h&&g||p)&&F==="outlined"?{notched:!0}:{},{ref:L,className:Ae(P.props.className,i,T.root)},!d&&{variant:F},V))})});QI.muiName="Select";function mq(e){return ke("MuiSkeleton",e)}we("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Cq=["animation","className","component","height","style","variant","width"];let Jc=e=>e,VI,UI,FI,zI;const vq=e=>{const{classes:t,variant:n,animation:a,hasChildren:r,width:l,height:o}=e;return Re({root:["root",n,a,r&&"withChildren",r&&!l&&"fitContent",r&&!o&&"heightAuto"]},mq,t)},yq=Gr(VI||(VI=Jc`
182
+ `),$U)),va=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiCircularProgress"}),{className:r,color:l="primary",disableShrink:o=!1,size:i=40,style:s,thickness:p=3.6,value:u=0,variant:c="indeterminate"}=a,d=se(a,XU),f=I({},a,{color:l,disableShrink:o,size:i,thickness:p,value:u,variant:c}),W=eF(f),m={},x={},h={};if(c==="determinate"){const g=2*Math.PI*((el-p)/2);m.strokeDasharray=g.toFixed(3),h["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*g).toFixed(3)}px`,x.transform="rotate(-90deg)"}return A.jsx(tF,I({className:Ae(W.root,r),style:I({width:i,height:i},x,s),ownerState:f,ref:n,role:"progressbar"},h,d,{children:A.jsx(nF,{className:W.svg,ownerState:f,viewBox:`${el/2} ${el/2} ${el} ${el}`,children:A.jsx(aF,{className:W.circle,style:m,ownerState:f,cx:el,cy:el,r:(el-p)/2,fill:"none",strokeWidth:p})})}))});function rF(e){const t=cn(e);return t.body===e?Ga(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oI(e){return parseInt(Ga(e).getComputedStyle(e).paddingRight,10)||0}function lF(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,a=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||a}function iI(e,t,n,a,r){const l=[t,n,...a];[].forEach.call(e.children,o=>{const i=l.indexOf(o)===-1,s=!lF(o);i&&s&&xs(o,r)})}function rg(e,t){let n=-1;return e.some((a,r)=>t(a)?(n=r,!0):!1),n}function oF(e,t){const n=[],a=e.container;if(!t.disableScrollLock){if(rF(a)){const o=M1(cn(a));n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${oI(a)+o}px`;const i=cn(a).querySelectorAll(".mui-fixed");[].forEach.call(i,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${oI(s)+o}px`})}let l;if(a.parentNode instanceof DocumentFragment)l=cn(a).body;else{const o=a.parentElement,i=Ga(a);l=(o==null?void 0:o.nodeName)==="HTML"&&i.getComputedStyle(o).overflowY==="scroll"?o:a}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:o,property:i})=>{l?o.style.setProperty(i,l):o.style.removeProperty(i)})}}function iF(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class sF{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let a=this.modals.indexOf(t);if(a!==-1)return a;a=this.modals.length,this.modals.push(t),t.modalRef&&xs(t.modalRef,!1);const r=iF(n);iI(n,t.mount,t.modalRef,r,!0);const l=rg(this.containers,o=>o.container===n);return l!==-1?(this.containers[l].modals.push(t),a):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),a)}mount(t,n){const a=rg(this.containers,l=>l.modals.indexOf(t)!==-1),r=this.containers[a];r.restore||(r.restore=oF(r,n))}remove(t,n=!0){const a=this.modals.indexOf(t);if(a===-1)return a;const r=rg(this.containers,o=>o.modals.indexOf(t)!==-1),l=this.containers[r];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(a,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&xs(t.modalRef,n),iI(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(r,1);else{const o=l.modals[l.modals.length-1];o.modalRef&&xs(o.modalRef,!1)}return a}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const pF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uF(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 cF(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=a=>e.ownerDocument.querySelector(`input[type="radio"]${a}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function AF(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||cF(e))}function dF(e){const t=[],n=[];return Array.from(e.querySelectorAll(pF)).forEach((a,r)=>{const l=uF(a);l===-1||!AF(a)||(l===0?t.push(a):n.push({documentOrder:r,tabIndex:l,node:a}))}),n.sort((a,r)=>a.tabIndex===r.tabIndex?a.documentOrder-r.documentOrder:a.tabIndex-r.tabIndex).map(a=>a.node).concat(t)}function fF(){return!0}function WF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:a=!1,disableRestoreFocus:r=!1,getTabbable:l=dF,isEnabled:o=fF,open:i}=e,s=v.useRef(!1),p=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=v.useRef(!1),W=v.useRef(null),m=Mt(wl(t),W),x=v.useRef(null);v.useEffect(()=>{!i||!W.current||(f.current=!n)},[n,i]),v.useEffect(()=>{if(!i||!W.current)return;const C=cn(W.current);return W.current.contains(C.activeElement)||(W.current.hasAttribute("tabIndex")||W.current.setAttribute("tabIndex","-1"),f.current&&W.current.focus()),()=>{r||(c.current&&c.current.focus&&(s.current=!0,c.current.focus()),c.current=null)}},[i]),v.useEffect(()=>{if(!i||!W.current)return;const C=cn(W.current),y=k=>{x.current=k,!(a||!o()||k.key!=="Tab")&&C.activeElement===W.current&&k.shiftKey&&(s.current=!0,u.current&&u.current.focus())},E=()=>{const k=W.current;if(k===null)return;if(!C.hasFocus()||!o()||s.current){s.current=!1;return}if(k.contains(C.activeElement)||a&&C.activeElement!==p.current&&C.activeElement!==u.current)return;if(C.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!f.current)return;let R=[];if((C.activeElement===p.current||C.activeElement===u.current)&&(R=l(W.current)),R.length>0){var V,b;const B=!!((V=x.current)!=null&&V.shiftKey&&((b=x.current)==null?void 0:b.key)==="Tab"),M=R[0],F=R[R.length-1];typeof M!="string"&&typeof F!="string"&&(B?F.focus():M.focus())}else k.focus()};C.addEventListener("focusin",E),C.addEventListener("keydown",y,!0);const S=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(S),C.removeEventListener("focusin",E),C.removeEventListener("keydown",y,!0)}},[n,a,r,o,i,l]);const h=C=>{c.current===null&&(c.current=C.relatedTarget),f.current=!0,d.current=C.target;const y=t.props.onFocus;y&&y(C)},g=C=>{c.current===null&&(c.current=C.relatedTarget),f.current=!0};return A.jsxs(v.Fragment,{children:[A.jsx("div",{tabIndex:i?0:-1,onFocus:g,ref:p,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:h}),A.jsx("div",{tabIndex:i?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}function gF(e){return typeof e=="function"?e():e}function hF(e){return e?e.props.hasOwnProperty("in"):!1}const mF=new sF;function CF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:a=!1,manager:r=mF,closeAfterTransition:l=!1,onTransitionEnter:o,onTransitionExited:i,children:s,onClose:p,open:u,rootRef:c}=e,d=v.useRef({}),f=v.useRef(null),W=v.useRef(null),m=Mt(W,c),[x,h]=v.useState(!u),g=hF(s);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const y=()=>cn(f.current),E=()=>(d.current.modalRef=W.current,d.current.mount=f.current,d.current),S=()=>{r.mount(E(),{disableScrollLock:a}),W.current&&(W.current.scrollTop=0)},k=Bn(()=>{const j=gF(t)||y().body;r.add(E(),j),W.current&&S()}),R=v.useCallback(()=>r.isTopModal(E()),[r]),V=Bn(j=>{f.current=j,j&&(u&&R()?S():W.current&&xs(W.current,C))}),b=v.useCallback(()=>{r.remove(E(),C)},[C,r]);v.useEffect(()=>()=>{b()},[b]),v.useEffect(()=>{u?k():(!g||!l)&&b()},[u,b,g,l,k]);const B=j=>P=>{var L;(L=j.onKeyDown)==null||L.call(j,P),!(P.key!=="Escape"||P.which===229||!R())&&(n||(P.stopPropagation(),p&&p(P,"escapeKeyDown")))},M=j=>P=>{var L;(L=j.onClick)==null||L.call(j,P),P.target===P.currentTarget&&p&&p(P,"backdropClick")};return{getRootProps:(j={})=>{const P=Q1(e);delete P.onTransitionEnter,delete P.onTransitionExited;const L=I({},P,j);return I({role:"presentation"},L,{onKeyDown:B(L),ref:m})},getBackdropProps:(j={})=>{const P=j;return I({"aria-hidden":!0},P,{onClick:M(P),open:u})},getTransitionProps:()=>{const j=()=>{h(!1),o&&o()},P=()=>{h(!0),i&&i(),l&&b()};return{onEnter:Ac(j,s==null?void 0:s.props.onEnter),onExited:Ac(P,s==null?void 0:s.props.onExited)}},rootRef:m,portalRef:V,isTopModal:R,exited:x,hasTransition:g}}function vF(e){return ke("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const yF=["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"],SF=e=>{const{open:t,exited:n,classes:a}=e;return Re({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vF,a)},IF=$("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})=>I({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),xF=$(_S,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),sI=v.forwardRef(function(t,n){var a,r,l,o,i,s;const p=Le({name:"MuiModal",props:t}),{BackdropComponent:u=xF,BackdropProps:c,className:d,closeAfterTransition:f=!1,children:W,container:m,component:x,components:h={},componentsProps:g={},disableAutoFocus:C=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:k=!1,disableScrollLock:R=!1,hideBackdrop:V=!1,keepMounted:b=!1,onBackdropClick:B,open:M,slotProps:F,slots:z}=p,T=se(p,yF),j=I({},p,{closeAfterTransition:f,disableAutoFocus:C,disableEnforceFocus:y,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:k,disableScrollLock:R,hideBackdrop:V,keepMounted:b}),{getRootProps:P,getBackdropProps:L,getTransitionProps:q,portalRef:w,isTopModal:G,exited:te,hasTransition:Q}=CF(I({},j,{rootRef:n})),N=I({},j,{exited:te}),re=SF(N),ue={};if(W.props.tabIndex===void 0&&(ue.tabIndex="-1"),Q){const{onEnter:We,onExited:me}=q();ue.onEnter=We,ue.onExited=me}const _=(a=(r=z==null?void 0:z.root)!=null?r:h.Root)!=null?a:IF,H=(l=(o=z==null?void 0:z.backdrop)!=null?o:h.Backdrop)!=null?l:u,de=(i=F==null?void 0:F.root)!=null?i:g.root,ae=(s=F==null?void 0:F.backdrop)!=null?s:g.backdrop,X=kl({elementType:_,externalSlotProps:de,externalForwardedProps:T,getSlotProps:P,additionalProps:{ref:n,as:x},ownerState:N,className:Ae(d,de==null?void 0:de.className,re==null?void 0:re.root,!N.open&&N.exited&&(re==null?void 0:re.hidden))}),he=kl({elementType:H,externalSlotProps:ae,additionalProps:c,getSlotProps:We=>L(I({},We,{onClick:me=>{B&&B(me),We!=null&&We.onClick&&We.onClick(me)}})),className:Ae(ae==null?void 0:ae.className,c==null?void 0:c.className,re==null?void 0:re.backdrop),ownerState:N});return!b&&!M&&(!Q||te)?null:A.jsx(PS,{ref:w,container:m,disablePortal:S,children:A.jsxs(_,I({},X,{children:[!V&&u?A.jsx(H,I({},he)):null,A.jsx(WF,{disableEnforceFocus:y,disableAutoFocus:C,disableRestoreFocus:k,isEnabled:G,open:M,children:v.cloneElement(W,ue)})]}))})});function EF(e){return ke("MuiDialog",e)}const lg=we("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),pI=v.createContext({}),bF=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],kF=$(_S,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),wF=e=>{const{classes:t,scroll:n,maxWidth:a,fullWidth:r,fullScreen:l}=e,o={root:["root"],container:["container",`scroll${ee(n)}`],paper:["paper",`paperScroll${ee(n)}`,`paperWidth${ee(String(a))}`,r&&"paperFullWidth",l&&"paperFullScreen"]};return Re(o,EF,t)},RF=$(sI,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),BF=$("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ee(n.scroll)}`]]}})(({ownerState:e})=>I({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"}})),LF=$(Nt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ee(n.scroll)}`],t[`paperWidth${ee(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>I({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)`,[`&.${lg.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}`,[`&.${lg.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,[`&.${lg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),MF=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiDialog"}),r=vr(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":i,BackdropComponent:s,BackdropProps:p,children:u,className:c,disableEscapeKeyDown:d=!1,fullScreen:f=!1,fullWidth:W=!1,maxWidth:m="sm",onBackdropClick:x,onClick:h,onClose:g,open:C,PaperComponent:y=Nt,PaperProps:E={},scroll:S="paper",TransitionComponent:k=XS,transitionDuration:R=l,TransitionProps:V}=a,b=se(a,bF),B=I({},a,{disableEscapeKeyDown:d,fullScreen:f,fullWidth:W,maxWidth:m,scroll:S}),M=wF(B),F=v.useRef(),z=L=>{F.current=L.target===L.currentTarget},T=L=>{h&&h(L),F.current&&(F.current=null,x&&x(L),g&&g(L,"backdropClick"))},j=Hr(i),P=v.useMemo(()=>({titleId:j}),[j]);return A.jsx(RF,I({className:Ae(M.root,c),closeAfterTransition:!0,components:{Backdrop:kF},componentsProps:{backdrop:I({transitionDuration:R,as:s},p)},disableEscapeKeyDown:d,onClose:g,open:C,ref:n,onClick:T,ownerState:B},b,{children:A.jsx(k,I({appear:!0,in:C,timeout:R,role:"presentation"},V,{children:A.jsx(BF,{className:Ae(M.container),onMouseDown:z,ownerState:B,children:A.jsx(LF,I({as:y,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":j},E,{className:Ae(M.paper,E.className),ownerState:B,children:A.jsx(pI.Provider,{value:P,children:u})}))})}))}))});function QF(e){return ke("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);function VF(e){return ke("MuiDialogTitle",e)}const UF=we("MuiDialogTitle",["root"]),FF=["className","dividers"],zF=e=>{const{classes:t,dividers:n}=e;return Re({root:["root",n&&"dividers"]},QF,t)},qF=$("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>I({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}`}:{[`.${UF.root} + &`]:{paddingTop:0}})),jF=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiDialogContent"}),{className:r,dividers:l=!1}=a,o=se(a,FF),i=I({},a,{dividers:l}),s=zF(i);return A.jsx(qF,I({className:Ae(s.root,r),ownerState:i,ref:n},o))}),TF=["className","id"],OF=e=>{const{classes:t}=e;return Re({root:["root"]},VF,t)},KF=$(fe,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),PF=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiDialogTitle"}),{className:r,id:l}=a,o=se(a,TF),i=a,s=OF(i),{titleId:p=l}=v.useContext(pI);return A.jsx(KF,I({component:"h2",className:Ae(s.root,r),ownerState:i,ref:n,variant:"h6",id:l??p},o))});function JF(e){return ke("MuiDivider",e)}we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const DF=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],YF=e=>{const{absolute:t,children:n,classes:a,flexItem:r,light:l,orientation:o,textAlign:i,variant:s}=e;return Re({root:["root",t&&"absolute",s,l&&"light",o==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&o==="vertical"&&"withChildrenVertical",i==="right"&&o!=="vertical"&&"textAlignRight",i==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},JF,a)},ZF=$("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>I({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ct(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>I({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>I({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),NF=$("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>I({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),er=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiDivider"}),{absolute:r=!1,children:l,className:o,component:i=l?"div":"hr",flexItem:s=!1,light:p=!1,orientation:u="horizontal",role:c=i!=="hr"?"separator":void 0,textAlign:d="center",variant:f="fullWidth"}=a,W=se(a,DF),m=I({},a,{absolute:r,component:i,flexItem:s,light:p,orientation:u,role:c,textAlign:d,variant:f}),x=YF(m);return A.jsx(ZF,I({as:i,className:Ae(x.root,o),role:c,ref:n,ownerState:m},W,{children:l?A.jsx(NF,{className:x.wrapper,ownerState:m,children:l}):null}))});er.muiSkipListHighlight=!0;const GF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HF(e,t,n){const a=t.getBoundingClientRect(),r=n&&n.getBoundingClientRect(),l=Ga(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const p=l.getComputedStyle(t);o=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let i=0,s=0;if(o&&o!=="none"&&typeof o=="string"){const p=o.split("(")[1].split(")")[0].split(",");i=parseInt(p[4],10),s=parseInt(p[5],10)}return e==="left"?r?`translateX(${r.right+i-a.left}px)`:`translateX(${l.innerWidth+i-a.left}px)`:e==="right"?r?`translateX(-${a.right-r.left-i}px)`:`translateX(-${a.left+a.width-i}px)`:e==="up"?r?`translateY(${r.bottom+s-a.top}px)`:`translateY(${l.innerHeight+s-a.top}px)`:r?`translateY(-${a.top-r.top+a.height-s}px)`:`translateY(-${a.top+a.height-s}px)`}function XF(e){return typeof e=="function"?e():e}function Oc(e,t,n){const a=XF(n),r=HF(e,t,a);r&&(t.style.webkitTransform=r,t.style.transform=r)}const _F=v.forwardRef(function(t,n){const a=vr(),r={enter:a.transitions.easing.easeOut,exit:a.transitions.easing.sharp},l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,container:p,direction:u="down",easing:c=r,in:d,onEnter:f,onEntered:W,onEntering:m,onExit:x,onExited:h,onExiting:g,style:C,timeout:y=l,TransitionComponent:E=Va}=t,S=se(t,GF),k=v.useRef(null),R=Mt(wl(s),k,n),V=L=>q=>{L&&(q===void 0?L(k.current):L(k.current,q))},b=V((L,q)=>{Oc(u,L,p),qW(L),f&&f(L,q)}),B=V((L,q)=>{const w=Ko({timeout:y,style:C,easing:c},{mode:"enter"});L.style.webkitTransition=a.transitions.create("-webkit-transform",I({},w)),L.style.transition=a.transitions.create("transform",I({},w)),L.style.webkitTransform="none",L.style.transform="none",m&&m(L,q)}),M=V(W),F=V(g),z=V(L=>{const q=Ko({timeout:y,style:C,easing:c},{mode:"exit"});L.style.webkitTransition=a.transitions.create("-webkit-transform",q),L.style.transition=a.transitions.create("transform",q),Oc(u,L,p),x&&x(L)}),T=V(L=>{L.style.webkitTransition="",L.style.transition="",h&&h(L)}),j=L=>{o&&o(k.current,L)},P=v.useCallback(()=>{k.current&&Oc(u,k.current,p)},[u,p]);return v.useEffect(()=>{if(d||u==="down"||u==="right")return;const L=dc(()=>{k.current&&Oc(u,k.current,p)}),q=Ga(k.current);return q.addEventListener("resize",L),()=>{L.clear(),q.removeEventListener("resize",L)}},[u,d,p]),v.useEffect(()=>{d||P()},[d,P]),A.jsx(E,I({nodeRef:k,onEnter:b,onEntered:M,onEntering:B,onExit:z,onExited:T,onExiting:F,addEndListener:j,appear:i,in:d,timeout:y},S,{children:(L,q)=>v.cloneElement(s,I({ref:R,style:I({visibility:L==="exited"&&!d?"hidden":void 0},C,s.props.style)},q))}))}),$F=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],e9=e=>{const{classes:t,disableUnderline:n}=e,r=Re({root:["root",!n&&"underline"],input:["input"]},Q5,t);return I({},t,r)},t9=$(zc,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Uc(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const a=e.palette.mode==="light",r=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return I({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l}},[`&.${$n.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l},[`&.${$n.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$n.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$n.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$n.disabled}, .${$n.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$n.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&I({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),n9=$(qc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fc})(({theme:e,ownerState:t})=>I({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),og=v.forwardRef(function(t,n){var a,r,l,o;const i=Le({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:p,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:f,slots:W={},type:m="text"}=i,x=se(i,$F),h=I({},i,{fullWidth:u,inputComponent:c,multiline:d,type:m}),g=e9(i),C={root:{ownerState:h},input:{ownerState:h}},y=f??p?mn(C,f??p):C,E=(a=(r=W.root)!=null?r:s.Root)!=null?a:t9,S=(l=(o=W.input)!=null?o:s.Input)!=null?l:n9;return A.jsx(_W,I({slots:{root:E,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:n,type:m},x,{classes:g}))});og.muiName="Input";function a9(e){return ke("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const r9=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],l9=e=>{const{classes:t,margin:n,fullWidth:a}=e,r={root:["root",n!=="none"&&`margin${ee(n)}`,a&&"fullWidth"]};return Re(r,a9,t)},o9=$("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,t[`margin${ee(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>I({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),i9=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiFormControl"}),{children:r,className:l,color:o="primary",component:i="div",disabled:s=!1,error:p=!1,focused:u,fullWidth:c=!1,hiddenLabel:d=!1,margin:f="none",required:W=!1,size:m="medium",variant:x="outlined"}=a,h=se(a,r9),g=I({},a,{color:o,component:i,disabled:s,error:p,fullWidth:c,hiddenLabel:d,margin:f,required:W,size:m,variant:x}),C=l9(g),[y,E]=v.useState(()=>{let F=!1;return r&&v.Children.forEach(r,z=>{if(!fc(z,["Input","Select"]))return;const T=fc(z,["Select"])?z.props.input:z;T&&b5(T.props)&&(F=!0)}),F}),[S,k]=v.useState(()=>{let F=!1;return r&&v.Children.forEach(r,z=>{fc(z,["Input","Select"])&&(Vc(z.props,!0)||Vc(z.props.inputProps,!0))&&(F=!0)}),F}),[R,V]=v.useState(!1);s&&R&&V(!1);const b=u!==void 0&&!s?u:R;let B;const M=v.useMemo(()=>({adornedStart:y,setAdornedStart:E,color:o,disabled:s,error:p,filled:S,focused:b,fullWidth:c,hiddenLabel:d,size:m,onBlur:()=>{V(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{V(!0)},registerEffect:B,required:W,variant:x}),[y,o,s,p,S,b,c,d,B,W,m,x]);return A.jsx(Qc.Provider,{value:M,children:A.jsx(o9,I({as:i,ownerState:g,className:Ae(C.root,l),ref:n},h,{children:r}))})}),ut=EL({createStyledComponent:$("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Le({props:e,name:"MuiStack"})});function s9(e){return ke("MuiFormControlLabel",e)}const Es=we("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),p9=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],u9=e=>{const{classes:t,disabled:n,labelPlacement:a,error:r,required:l}=e,o={root:["root",n&&"disabled",`labelPlacement${ee(a)}`,r&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return Re(o,s9,t)},c9=$("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Es.label}`]:t.label},t.root,t[`labelPlacement${ee(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>I({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Es.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Es.label}`]:{[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),A9=$("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Es.error}`]:{color:(e.vars||e).palette.error.main}})),Kc=v.forwardRef(function(t,n){var a,r;const l=Le({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:i={},control:s,disabled:p,disableTypography:u,label:c,labelPlacement:d="end",required:f,slotProps:W={}}=l,m=se(l,p9),x=_a(),h=(a=p??s.props.disabled)!=null?a:x==null?void 0:x.disabled,g=f??s.props.required,C={disabled:h,required:g};["checked","name","onChange","value","inputRef"].forEach(V=>{typeof s.props[V]>"u"&&typeof l[V]<"u"&&(C[V]=l[V])});const y=_r({props:l,muiFormControl:x,states:["error"]}),E=I({},l,{disabled:h,labelPlacement:d,required:g,error:y.error}),S=u9(E),k=(r=W.typography)!=null?r:i.typography;let R=c;return R!=null&&R.type!==fe&&!u&&(R=A.jsx(fe,I({component:"span"},k,{className:Ae(S.label,k==null?void 0:k.className),children:R}))),A.jsxs(c9,I({className:Ae(S.root,o),ownerState:E,ref:n},m,{children:[v.cloneElement(s,C),g?A.jsxs(ut,{display:"block",children:[R,A.jsxs(A9,{ownerState:E,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):R]}))});function d9(e){return ke("MuiFormGroup",e)}we("MuiFormGroup",["root","row","error"]);const f9=["className","row"],W9=e=>{const{classes:t,row:n,error:a}=e;return Re({root:["root",n&&"row",a&&"error"]},d9,t)},g9=$("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>I({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),h9=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiFormGroup"}),{className:r,row:l=!1}=a,o=se(a,f9),i=_a(),s=_r({props:a,muiFormControl:i,states:["error"]}),p=I({},a,{row:l,error:s.error}),u=W9(p);return A.jsx(g9,I({className:Ae(u.root,r),ownerState:p,ref:n},o))});function m9(e){return ke("MuiFormHelperText",e)}const uI=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var cI;const C9=["children","className","component","disabled","error","filled","focused","margin","required","variant"],v9=e=>{const{classes:t,contained:n,size:a,disabled:r,error:l,filled:o,focused:i,required:s}=e,p={root:["root",r&&"disabled",l&&"error",a&&`size${ee(a)}`,n&&"contained",i&&"focused",o&&"filled",s&&"required"]};return Re(p,m9,t)},y9=$("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ee(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${uI.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uI.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),S9=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiFormHelperText"}),{children:r,className:l,component:o="p"}=a,i=se(a,C9),s=_a(),p=_r({props:a,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),u=I({},a,{component:o,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),c=v9(u);return A.jsx(y9,I({as:o,ownerState:u,className:Ae(c.root,l),ref:n},i,{children:r===" "?cI||(cI=A.jsx("span",{className:"notranslate",children:"​"})):r}))});function I9(e){return ke("MuiFormLabel",e)}const bs=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),x9=["children","className","color","component","disabled","error","filled","focused","required"],E9=e=>{const{classes:t,color:n,focused:a,disabled:r,error:l,filled:o,required:i}=e,s={root:["root",`color${ee(n)}`,r&&"disabled",l&&"error",o&&"filled",a&&"focused",i&&"required"],asterisk:["asterisk",l&&"error"]};return Re(s,I9,t)},b9=$("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bs.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${bs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),k9=$("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${bs.error}`]:{color:(e.vars||e).palette.error.main}})),w9=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiFormLabel"}),{children:r,className:l,component:o="label"}=a,i=se(a,x9),s=_a(),p=_r({props:a,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),u=I({},a,{color:p.color||"primary",component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),c=E9(u);return A.jsxs(b9,I({as:o,ownerState:u,className:Ae(c.root,l),ref:n},i,{children:[r,p.required&&A.jsxs(k9,{ownerState:u,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}),AI=v.createContext();function R9(e){return ke("MuiGrid",e)}const B9=[0,1,2,3,4,5,6,7,8,9,10],L9=["column-reverse","column","row-reverse","row"],M9=["nowrap","wrap-reverse","wrap"],ks=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ws=we("MuiGrid",["root","container","item","zeroMinWidth",...B9.map(e=>`spacing-xs-${e}`),...L9.map(e=>`direction-xs-${e}`),...M9.map(e=>`wrap-xs-${e}`),...ks.map(e=>`grid-xs-${e}`),...ks.map(e=>`grid-sm-${e}`),...ks.map(e=>`grid-md-${e}`),...ks.map(e=>`grid-lg-${e}`),...ks.map(e=>`grid-xl-${e}`)]),Q9=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function No(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function V9({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((a,r)=>{let l={};if(t[r]&&(n=t[r]),!n)return a;if(n===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=El({values:t.columns,breakpoints:e.breakpoints.values}),i=typeof o=="object"?o[r]:o;if(i==null)return a;const s=`${Math.round(n/i*1e8)/1e6}%`;let p={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const c=`calc(${s} + ${No(u)})`;p={flexBasis:c,maxWidth:c}}}l=I({flexBasis:s,flexGrow:0,maxWidth:s},p)}return e.breakpoints.values[r]===0?Object.assign(a,l):a[e.breakpoints.up(r)]=l,a},{})}function U9({theme:e,ownerState:t}){const n=El({values:t.direction,breakpoints:e.breakpoints.values});return Rn({theme:e},n,a=>{const r={flexDirection:a};return a.indexOf("column")===0&&(r[`& > .${ws.item}`]={maxWidth:"none"}),r})}function dI({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(r=>{n===""&&t[r]!==0&&(n=r)});const a=Object.keys(e).sort((r,l)=>e[r]-e[l]);return a.slice(0,a.indexOf(n))}function F9({theme:e,ownerState:t}){const{container:n,rowSpacing:a}=t;let r={};if(n&&a!==0){const l=El({values:a,breakpoints:e.breakpoints.values});let o;typeof l=="object"&&(o=dI({breakpoints:e.breakpoints.values,values:l})),r=Rn({theme:e},l,(i,s)=>{var p;const u=e.spacing(i);return u!=="0px"?{marginTop:`-${No(u)}`,[`& > .${ws.item}`]:{paddingTop:No(u)}}:(p=o)!=null&&p.includes(s)?{}:{marginTop:0,[`& > .${ws.item}`]:{paddingTop:0}}})}return r}function z9({theme:e,ownerState:t}){const{container:n,columnSpacing:a}=t;let r={};if(n&&a!==0){const l=El({values:a,breakpoints:e.breakpoints.values});let o;typeof l=="object"&&(o=dI({breakpoints:e.breakpoints.values,values:l})),r=Rn({theme:e},l,(i,s)=>{var p;const u=e.spacing(i);return u!=="0px"?{width:`calc(100% + ${No(u)})`,marginLeft:`-${No(u)}`,[`& > .${ws.item}`]:{paddingLeft:No(u)}}:(p=o)!=null&&p.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${ws.item}`]:{paddingLeft:0}}})}return r}function q9(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const a=[];return t.forEach(r=>{const l=e[r];Number(l)>0&&a.push(n[`spacing-${r}-${String(l)}`])}),a}const j9=$("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:a,direction:r,item:l,spacing:o,wrap:i,zeroMinWidth:s,breakpoints:p}=n;let u=[];a&&(u=q9(o,p,t));const c=[];return p.forEach(d=>{const f=n[d];f&&c.push(t[`grid-${d}-${String(f)}`])}),[t.root,a&&t.container,l&&t.item,s&&t.zeroMinWidth,...u,r!=="row"&&t[`direction-xs-${String(r)}`],i!=="wrap"&&t[`wrap-xs-${String(i)}`],...c]}})(({ownerState:e})=>I({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),U9,F9,z9,V9);function T9(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(a=>{const r=e[a];if(Number(r)>0){const l=`spacing-${a}-${String(r)}`;n.push(l)}}),n}const O9=e=>{const{classes:t,container:n,direction:a,item:r,spacing:l,wrap:o,zeroMinWidth:i,breakpoints:s}=e;let p=[];n&&(p=T9(l,s));const u=[];s.forEach(d=>{const f=e[d];f&&u.push(`grid-${d}-${String(f)}`)});const c={root:["root",n&&"container",r&&"item",i&&"zeroMinWidth",...p,a!=="row"&&`direction-xs-${String(a)}`,o!=="wrap"&&`wrap-xs-${String(o)}`,...u]};return Re(c,R9,t)},ct=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiGrid"}),{breakpoints:r}=vr(),l=cs(a),{className:o,columns:i,columnSpacing:s,component:p="div",container:u=!1,direction:c="row",item:d=!1,rowSpacing:f,spacing:W=0,wrap:m="wrap",zeroMinWidth:x=!1}=l,h=se(l,Q9),g=f||W,C=s||W,y=v.useContext(AI),E=u?i||12:y,S={},k=I({},h);r.keys.forEach(b=>{h[b]!=null&&(S[b]=h[b],delete k[b])});const R=I({},l,{columns:E,container:u,direction:c,item:d,rowSpacing:g,columnSpacing:C,wrap:m,zeroMinWidth:x,spacing:W},S,{breakpoints:r.keys}),V=O9(R);return A.jsx(AI.Provider,{value:E,children:A.jsx(j9,I({ownerState:R,className:Ae(V.root,o),as:p,ref:n},k))})}),K9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ig(e){return`scale(${e}, ${e**2})`}const P9={entering:{opacity:1,transform:ig(1)},entered:{opacity:1,transform:"none"}},sg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Pc=v.forwardRef(function(t,n){const{addEndListener:a,appear:r=!0,children:l,easing:o,in:i,onEnter:s,onEntered:p,onEntering:u,onExit:c,onExited:d,onExiting:f,style:W,timeout:m="auto",TransitionComponent:x=Va}=t,h=se(t,K9),g=Fo(),C=v.useRef(),y=vr(),E=v.useRef(null),S=Mt(E,wl(l),n),k=T=>j=>{if(T){const P=E.current;j===void 0?T(P):T(P,j)}},R=k(u),V=k((T,j)=>{qW(T);const{duration:P,delay:L,easing:q}=Ko({style:W,timeout:m,easing:o},{mode:"enter"});let w;m==="auto"?(w=y.transitions.getAutoHeightDuration(T.clientHeight),C.current=w):w=P,T.style.transition=[y.transitions.create("opacity",{duration:w,delay:L}),y.transitions.create("transform",{duration:sg?w:w*.666,delay:L,easing:q})].join(","),s&&s(T,j)}),b=k(p),B=k(f),M=k(T=>{const{duration:j,delay:P,easing:L}=Ko({style:W,timeout:m,easing:o},{mode:"exit"});let q;m==="auto"?(q=y.transitions.getAutoHeightDuration(T.clientHeight),C.current=q):q=j,T.style.transition=[y.transitions.create("opacity",{duration:q,delay:P}),y.transitions.create("transform",{duration:sg?q:q*.666,delay:sg?P:P||q*.333,easing:L})].join(","),T.style.opacity=0,T.style.transform=ig(.75),c&&c(T)}),F=k(d),z=T=>{m==="auto"&&g.start(C.current||0,T),a&&a(E.current,T)};return A.jsx(x,I({appear:r,in:i,nodeRef:E,onEnter:V,onEntered:b,onEntering:R,onExit:M,onExited:F,onExiting:B,addEndListener:z,timeout:m==="auto"?null:m},h,{children:(T,j)=>v.cloneElement(l,I({style:I({opacity:0,transform:ig(.75),visibility:T==="exited"&&!i?"hidden":void 0},P9[T],W,l.props.style),ref:S},j))}))});Pc.muiSupportAuto=!0;const J9=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],D9=e=>{const{classes:t,disableUnderline:n}=e,r=Re({root:["root",!n&&"underline"],input:["input"]},L5,t);return I({},t,r)},Y9=$(zc,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Uc(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let a=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(a=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),I({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$r.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$r.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$r.disabled}, .${$r.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${a}`}},[`&.${$r.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Z9=$(qc,{name:"MuiInput",slot:"Input",overridesResolver:Fc})({}),pg=v.forwardRef(function(t,n){var a,r,l,o;const i=Le({props:t,name:"MuiInput"}),{disableUnderline:s,components:p={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:W,slots:m={},type:x="text"}=i,h=se(i,J9),g=D9(i),y={root:{ownerState:{disableUnderline:s}}},E=W??u?mn(W??u,y):y,S=(a=(r=m.root)!=null?r:p.Root)!=null?a:Y9,k=(l=(o=m.input)!=null?o:p.Input)!=null?l:Z9;return A.jsx(_W,I({slots:{root:S,input:k},slotProps:E,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:x},h,{classes:g}))});pg.muiName="Input";function N9(e){return ke("MuiInputAdornment",e)}const fI=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var WI;const G9=["children","className","component","disablePointerEvents","disableTypography","position","variant"],H9=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ee(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},X9=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:a,position:r,size:l,variant:o}=e,i={root:["root",n&&"disablePointerEvents",r&&`position${ee(r)}`,o,a&&"hiddenLabel",l&&`size${ee(l)}`]};return Re(i,N9,t)},_9=$("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:H9})(({theme:e,ownerState:t})=>I({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${fI.positionStart}&:not(.${fI.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),ug=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiInputAdornment"}),{children:r,className:l,component:o="div",disablePointerEvents:i=!1,disableTypography:s=!1,position:p,variant:u}=a,c=se(a,G9),d=_a()||{};let f=u;u&&d.variant,d&&!f&&(f=d.variant);const W=I({},a,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:i,position:p,variant:f}),m=X9(W);return A.jsx(Qc.Provider,{value:null,children:A.jsx(_9,I({as:o,ownerState:W,className:Ae(m.root,l),ref:n},c,{children:typeof r=="string"&&!s?A.jsx(fe,{color:"text.secondary",children:r}):A.jsxs(v.Fragment,{children:[p==="start"?WI||(WI=A.jsx("span",{className:"notranslate",children:"​"})):null,r]})}))})});function $9(e){return ke("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ez=["disableAnimation","margin","shrink","variant","className"],tz=e=>{const{classes:t,formControl:n,size:a,shrink:r,disableAnimation:l,variant:o,required:i}=e,s={root:["root",n&&"formControl",!l&&"animated",r&&"shrink",a&&a!=="normal"&&`size${ee(a)}`,o],asterisk:[i&&"asterisk"]},p=Re(s,$9,t);return I({},t,p)},nz=$(w9,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bs.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>I({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&I({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&I({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&I({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),az=v.forwardRef(function(t,n){const a=Le({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,shrink:l,className:o}=a,i=se(a,ez),s=_a();let p=l;typeof p>"u"&&s&&(p=s.filled||s.focused||s.adornedStart);const u=_r({props:a,muiFormControl:s,states:["size","variant","required","focused"]}),c=I({},a,{disableAnimation:r,formControl:s,shrink:p,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=tz(c);return A.jsx(nz,I({"data-shrink":p,ownerState:c,ref:n,className:Ae(d.root,o)},i,{classes:d}))}),rz=v.createContext({});function lz(e){return ke("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const oz=["children","className","component","dense","disablePadding","subheader"],iz=e=>{const{classes:t,disablePadding:n,dense:a,subheader:r}=e;return Re({root:["root",!n&&"padding",a&&"dense",r&&"subheader"]},lz,t)},sz=$("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})=>I({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),pz=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiList"}),{children:r,className:l,component:o="ul",dense:i=!1,disablePadding:s=!1,subheader:p}=a,u=se(a,oz),c=v.useMemo(()=>({dense:i}),[i]),d=I({},a,{component:o,dense:i,disablePadding:s}),f=iz(d);return A.jsx(rz.Provider,{value:c,children:A.jsxs(sz,I({as:o,className:Ae(f.root,l),ref:n,ownerState:d},u,{children:[p,r]}))})}),uz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hI(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 Rs(e,t,n,a,r,l){let o=!1,i=r(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(o)return!1;o=!0}const s=a?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!hI(i,l)||s)i=r(e,i,n);else return i.focus(),!0}return!1}const cz=v.forwardRef(function(t,n){const{actions:a,autoFocus:r=!1,autoFocusItem:l=!1,children:o,className:i,disabledItemsFocusable:s=!1,disableListWrap:p=!1,onKeyDown:u,variant:c="selectedMenu"}=t,d=se(t,uz),f=v.useRef(null),W=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});da(()=>{r&&f.current.focus()},[r]),v.useImperativeHandle(a,()=>({adjustStyleForScrollbar:(C,{direction:y})=>{const E=!f.current.style.width;if(C.clientHeight<f.current.clientHeight&&E){const S=`${M1(cn(C))}px`;f.current.style[y==="rtl"?"paddingLeft":"paddingRight"]=S,f.current.style.width=`calc(100% + ${S})`}return f.current}}),[]);const m=C=>{const y=f.current,E=C.key,S=cn(y).activeElement;if(E==="ArrowDown")C.preventDefault(),Rs(y,S,p,s,cg);else if(E==="ArrowUp")C.preventDefault(),Rs(y,S,p,s,gI);else if(E==="Home")C.preventDefault(),Rs(y,null,p,s,cg);else if(E==="End")C.preventDefault(),Rs(y,null,p,s,gI);else if(E.length===1){const k=W.current,R=E.toLowerCase(),V=performance.now();k.keys.length>0&&(V-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&R!==k.keys[0]&&(k.repeating=!1)),k.lastTime=V,k.keys.push(R);const b=S&&!k.repeating&&hI(S,k);k.previousKeyMatched&&(b||Rs(y,S,!1,s,cg,k))?C.preventDefault():k.previousKeyMatched=!1}u&&u(C)},x=Mt(f,n);let h=-1;v.Children.forEach(o,(C,y)=>{if(!v.isValidElement(C)){h===y&&(h+=1,h>=o.length&&(h=-1));return}C.props.disabled||(c==="selectedMenu"&&C.props.selected||h===-1)&&(h=y),h===y&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(h+=1,h>=o.length&&(h=-1))});const g=v.Children.map(o,(C,y)=>{if(y===h){const E={};return l&&(E.autoFocus=!0),C.props.tabIndex===void 0&&c==="selectedMenu"&&(E.tabIndex=0),v.cloneElement(C,E)}return C});return A.jsx(pz,I({role:"menu",ref:x,className:i,onKeyDown:m,tabIndex:r?0:-1},d,{children:g}))});function Az(e){return ke("MuiPopover",e)}we("MuiPopover",["root","paper"]);const dz=["onEntering"],fz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Wz=["slotProps"];function mI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function CI(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function vI(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ag(e){return typeof e=="function"?e():e}const gz=e=>{const{classes:t}=e;return Re({root:["root"],paper:["paper"]},Az,t)},hz=$(sI,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yI=$(Nt,{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}),SI=v.forwardRef(function(t,n){var a,r,l;const o=Le({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:f,container:W,elevation:m=8,marginThreshold:x=16,open:h,PaperProps:g={},slots:C,slotProps:y,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=Pc,transitionDuration:k="auto",TransitionProps:{onEntering:R}={},disableScrollLock:V=!1}=o,b=se(o.TransitionProps,dz),B=se(o,fz),M=(a=y==null?void 0:y.paper)!=null?a:g,F=v.useRef(),z=Mt(F,M.ref),T=I({},o,{anchorOrigin:p,anchorReference:c,elevation:m,marginThreshold:x,externalPaperSlotProps:M,transformOrigin:E,TransitionComponent:S,transitionDuration:k,TransitionProps:b}),j=gz(T),P=v.useCallback(()=>{if(c==="anchorPosition")return u;const We=Ag(s),ve=(We&&We.nodeType===1?We:cn(F.current).body).getBoundingClientRect();return{top:ve.top+mI(ve,p.vertical),left:ve.left+CI(ve,p.horizontal)}},[s,p.horizontal,p.vertical,u,c]),L=v.useCallback(We=>({vertical:mI(We,E.vertical),horizontal:CI(We,E.horizontal)}),[E.horizontal,E.vertical]),q=v.useCallback(We=>{const me={width:We.offsetWidth,height:We.offsetHeight},ve=L(me);if(c==="none")return{top:null,left:null,transformOrigin:vI(ve)};const ce=P();let Ze=ce.top-ve.vertical,le=ce.left-ve.horizontal;const Ke=Ze+me.height,qe=le+me.width,Be=Ga(Ag(s)),Te=Be.innerHeight-x,Pe=Be.innerWidth-x;if(x!==null&&Ze<x){const je=Ze-x;Ze-=je,ve.vertical+=je}else if(x!==null&&Ke>Te){const je=Ke-Te;Ze-=je,ve.vertical+=je}if(x!==null&&le<x){const je=le-x;le-=je,ve.horizontal+=je}else if(qe>Pe){const je=qe-Pe;le-=je,ve.horizontal+=je}return{top:`${Math.round(Ze)}px`,left:`${Math.round(le)}px`,transformOrigin:vI(ve)}},[s,c,P,L,x]),[w,G]=v.useState(h),te=v.useCallback(()=>{const We=F.current;if(!We)return;const me=q(We);me.top!==null&&(We.style.top=me.top),me.left!==null&&(We.style.left=me.left),We.style.transformOrigin=me.transformOrigin,G(!0)},[q]);v.useEffect(()=>(V&&window.addEventListener("scroll",te),()=>window.removeEventListener("scroll",te)),[s,V,te]);const Q=(We,me)=>{R&&R(We,me),te()},N=()=>{G(!1)};v.useEffect(()=>{h&&te()}),v.useImperativeHandle(i,()=>h?{updatePosition:()=>{te()}}:null,[h,te]),v.useEffect(()=>{if(!h)return;const We=dc(()=>{te()}),me=Ga(s);return me.addEventListener("resize",We),()=>{We.clear(),me.removeEventListener("resize",We)}},[s,h,te]);let re=k;k==="auto"&&!S.muiSupportAuto&&(re=void 0);const ue=W||(s?cn(Ag(s)).body:void 0),_=(r=C==null?void 0:C.root)!=null?r:hz,H=(l=C==null?void 0:C.paper)!=null?l:yI,de=kl({elementType:H,externalSlotProps:I({},M,{style:w?M.style:I({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:z},ownerState:T,className:Ae(j.paper,M==null?void 0:M.className)}),ae=kl({elementType:_,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ue,open:h},ownerState:T,className:Ae(j.root,f)}),{slotProps:X}=ae,he=se(ae,Wz);return A.jsx(_,I({},he,!gc(_)&&{slotProps:X,disableScrollLock:V},{children:A.jsx(S,I({appear:!0,in:h,onEntering:Q,onExited:N,timeout:re},b,{children:A.jsx(H,I({},de,{children:d}))}))}))});function mz(e){return ke("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const Cz=["onEntering"],vz=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],yz={vertical:"top",horizontal:"right"},Sz={vertical:"top",horizontal:"left"},Iz=e=>{const{classes:t}=e;return Re({root:["root"],paper:["paper"],list:["list"]},mz,t)},xz=$(SI,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ez=$(yI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),bz=$(cz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),kz=v.forwardRef(function(t,n){var a,r;const l=Le({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:p=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:f={},PopoverClasses:W,transitionDuration:m="auto",TransitionProps:{onEntering:x}={},variant:h="selectedMenu",slots:g={},slotProps:C={}}=l,y=se(l.TransitionProps,Cz),E=se(l,vz),S=T1(),k=I({},l,{autoFocus:o,disableAutoFocusItem:p,MenuListProps:u,onEntering:x,PaperProps:f,transitionDuration:m,TransitionProps:y,variant:h}),R=Iz(k),V=o&&!p&&d,b=v.useRef(null),B=(L,q)=>{b.current&&b.current.adjustStyleForScrollbar(L,{direction:S?"rtl":"ltr"}),x&&x(L,q)},M=L=>{L.key==="Tab"&&(L.preventDefault(),c&&c(L,"tabKeyDown"))};let F=-1;v.Children.map(i,(L,q)=>{v.isValidElement(L)&&(L.props.disabled||(h==="selectedMenu"&&L.props.selected||F===-1)&&(F=q))});const z=(a=g.paper)!=null?a:Ez,T=(r=C.paper)!=null?r:f,j=kl({elementType:g.root,externalSlotProps:C.root,ownerState:k,className:[R.root,s]}),P=kl({elementType:z,externalSlotProps:T,ownerState:k,className:R.paper});return A.jsx(xz,I({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?yz:Sz,slots:{paper:z,root:g.root},slotProps:{root:j,paper:P},open:d,ref:n,transitionDuration:m,TransitionProps:I({onEntering:B},y),ownerState:k},E,{classes:W,children:A.jsx(bz,I({onKeyDown:M,actions:b,autoFocus:o&&(F===-1||p),autoFocusItem:V,variant:h},u,{className:Ae(R.list,u.className),children:i}))}))});function wz(e){return ke("MuiNativeSelect",e)}const dg=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rz=["className","disabled","error","IconComponent","inputRef","variant"],Bz=e=>{const{classes:t,variant:n,disabled:a,multiple:r,open:l,error:o}=e,i={select:["select",n,a&&"disabled",r&&"multiple",o&&"error"],icon:["icon",`icon${ee(n)}`,l&&"iconOpen",a&&"disabled"]};return Re(i,wz,t)},II=({ownerState:e,theme:t})=>I({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":I({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${dg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Lz=$("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${dg.multiple}`]:t.multiple}]}})(II),xI=({ownerState:e,theme:t})=>I({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${dg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Mz=$("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ee(n.variant)}`],n.open&&t.iconOpen]}})(xI),Qz=v.forwardRef(function(t,n){const{className:a,disabled:r,error:l,IconComponent:o,inputRef:i,variant:s="standard"}=t,p=se(t,Rz),u=I({},t,{disabled:r,variant:s,error:l}),c=Bz(u);return A.jsxs(v.Fragment,{children:[A.jsx(Lz,I({ownerState:u,className:Ae(c.select,a),disabled:r,ref:i||n},p)),t.multiple?null:A.jsx(Mz,{as:o,ownerState:u,className:c.icon})]})});var EI;const Vz=["children","classes","className","label","notched"],Uz=$("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Fz=$("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cn})(({ownerState:e,theme:t})=>I({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&I({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zz(e){const{className:t,label:n,notched:a}=e,r=se(e,Vz),l=n!=null&&n!=="",o=I({},e,{notched:a,withLabel:l});return A.jsx(Uz,I({"aria-hidden":!0,className:t,ownerState:o},r,{children:A.jsx(Fz,{ownerState:o,children:l?A.jsx("span",{children:n}):EI||(EI=A.jsx("span",{className:"notranslate",children:"​"}))})}))}const qz=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jz=e=>{const{classes:t}=e,a=Re({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},M5,t);return I({},t,a)},Tz=$(zc,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Uc})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return I({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$a.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$a.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$a.focused} .${$a.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$a.error} .${$a.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$a.disabled} .${$a.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&I({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Oz=$(zz,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Kz=$(qc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fc})(({theme:e,ownerState:t})=>I({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),fg=v.forwardRef(function(t,n){var a,r,l,o,i;const s=Le({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:f=!1,notched:W,slots:m={},type:x="text"}=s,h=se(s,qz),g=jz(s),C=_a(),y=_r({props:s,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=I({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:C,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:f,size:y.size,type:x}),S=(a=(r=m.root)!=null?r:p.Root)!=null?a:Tz,k=(l=(o=m.input)!=null?o:p.Input)!=null?l:Kz;return A.jsx(_W,I({slots:{root:S,input:k},renderSuffix:R=>A.jsx(Oz,{ownerState:E,className:g.notchedOutline,label:d!=null&&d!==""&&y.required?i||(i=A.jsxs(v.Fragment,{children:[d," ","*"]})):d,notched:typeof W<"u"?W:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:u,inputComponent:c,multiline:f,ref:n,type:x},h,{classes:I({},g,{notchedOutline:null})}))});fg.muiName="Input";const Pz=$t(A.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Jz=$t(A.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Dz=$("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Cn})({position:"relative",display:"flex"}),Yz=$(Pz,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Zz=$(Jz,{name:"MuiRadioButtonIcon"})(({theme:e,ownerState:t})=>I({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function bI(e){const{checked:t=!1,classes:n={},fontSize:a}=e,r=I({},e,{checked:t});return A.jsxs(Dz,{className:n.root,ownerState:r,children:[A.jsx(Yz,{fontSize:a,className:n.background,ownerState:r}),A.jsx(Zz,{fontSize:a,className:n.dot,ownerState:r})]})}const kI=v.createContext(void 0);function Nz(){return v.useContext(kI)}function Gz(e){return ke("MuiRadio",e)}const wI=we("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Hz=["checked","checkedIcon","color","icon","name","onChange","size","className"],Xz=e=>{const{classes:t,color:n,size:a}=e,r={root:["root",`color${ee(n)}`,a!=="medium"&&`size${ee(a)}`]};return I({},t,Re(r,Gz,t))},_z=$(tI,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ee(n.size)}`],t[`color${ee(n.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ct(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${wI.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${wI.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function $z(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const RI=A.jsx(bI,{checked:!0}),BI=A.jsx(bI,{}),Wg=v.forwardRef(function(t,n){var a,r;const l=Le({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:i=RI,color:s="primary",icon:p=BI,name:u,onChange:c,size:d="medium",className:f}=l,W=se(l,Hz),m=I({},l,{color:s,size:d}),x=Xz(m),h=Nz();let g=o;const C=Ac(c,h&&h.onChange);let y=u;return h&&(typeof g>"u"&&(g=$z(h.value,l.value)),typeof y>"u"&&(y=h.name)),A.jsx(_z,I({type:"radio",icon:v.cloneElement(p,{fontSize:(a=BI.props.fontSize)!=null?a:d}),checkedIcon:v.cloneElement(i,{fontSize:(r=RI.props.fontSize)!=null?r:d}),ownerState:m,classes:x,name:y,checked:g,onChange:C,ref:n,className:Ae(x.root,f)},W))});function eq(e){return ke("MuiRadioGroup",e)}we("MuiRadioGroup",["root","row","error"]);const tq=["actions","children","className","defaultValue","name","onChange","value"],nq=e=>{const{classes:t,row:n,error:a}=e;return Re({root:["root",n&&"row",a&&"error"]},eq,t)},aq=v.forwardRef(function(t,n){const{actions:a,children:r,className:l,defaultValue:o,name:i,onChange:s,value:p}=t,u=se(t,tq),c=v.useRef(null),d=nq(t),[f,W]=Cr({controlled:p,default:o,name:"RadioGroup"});v.useImperativeHandle(a,()=>({focus:()=>{let g=c.current.querySelector("input:not(:disabled):checked");g||(g=c.current.querySelector("input:not(:disabled)")),g&&g.focus()}}),[]);const m=Mt(n,c),x=Hr(i),h=v.useMemo(()=>({name:x,onChange(g){W(g.target.value),s&&s(g,g.target.value)},value:f}),[x,s,W,f]);return A.jsx(kI.Provider,{value:h,children:A.jsx(h9,I({role:"radiogroup",ref:m,className:Ae(d.root,l)},u,{children:r}))})});function rq(e){return ke("MuiSelect",e)}const Bs=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var LI;const lq=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],oq=$("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Bs.select}`]:t.select},{[`&.${Bs.select}`]:t[n.variant]},{[`&.${Bs.error}`]:t.error},{[`&.${Bs.multiple}`]:t.multiple}]}})(II,{[`&.${Bs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),iq=$("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ee(n.variant)}`],n.open&&t.iconOpen]}})(xI),sq=$("input",{shouldForwardProp:e=>sS(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function MI(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function pq(e){return e==null||typeof e=="string"&&!e.trim()}const uq=e=>{const{classes:t,variant:n,disabled:a,multiple:r,open:l,error:o}=e,i={select:["select",n,a&&"disabled",r&&"multiple",o&&"error"],icon:["icon",`icon${ee(n)}`,l&&"iconOpen",a&&"disabled"],nativeInput:["nativeInput"]};return Re(i,rq,t)},cq=v.forwardRef(function(t,n){var a;const{"aria-describedby":r,"aria-label":l,autoFocus:o,autoWidth:i,children:s,className:p,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:W=!1,IconComponent:m,inputRef:x,labelId:h,MenuProps:g={},multiple:C,name:y,onBlur:E,onChange:S,onClose:k,onFocus:R,onOpen:V,open:b,readOnly:B,renderValue:M,SelectDisplayProps:F={},tabIndex:z,value:T,variant:j="standard"}=t,P=se(t,lq),[L,q]=Cr({controlled:T,default:c,name:"Select"}),[w,G]=Cr({controlled:b,default:u,name:"Select"}),te=v.useRef(null),Q=v.useRef(null),[N,re]=v.useState(null),{current:ue}=v.useRef(b!=null),[_,H]=v.useState(),de=Mt(n,x),ae=v.useCallback(pe=>{Q.current=pe,pe&&re(pe)},[]),X=N==null?void 0:N.parentNode;v.useImperativeHandle(de,()=>({focus:()=>{Q.current.focus()},node:te.current,value:L}),[L]),v.useEffect(()=>{u&&w&&N&&!ue&&(H(i?null:X.clientWidth),Q.current.focus())},[N,i]),v.useEffect(()=>{o&&Q.current.focus()},[o]),v.useEffect(()=>{if(!h)return;const pe=cn(Q.current).getElementById(h);if(pe){const xe=()=>{getSelection().isCollapsed&&Q.current.focus()};return pe.addEventListener("click",xe),()=>{pe.removeEventListener("click",xe)}}},[h]);const he=(pe,xe)=>{pe?V&&V(xe):k&&k(xe),ue||(H(i?null:X.clientWidth),G(pe))},We=pe=>{pe.button===0&&(pe.preventDefault(),Q.current.focus(),he(!0,pe))},me=pe=>{he(!1,pe)},ve=v.Children.toArray(s),ce=pe=>{const xe=ve.find(Qe=>Qe.props.value===pe.target.value);xe!==void 0&&(q(xe.props.value),S&&S(pe,xe))},Ze=pe=>xe=>{let Qe;if(xe.currentTarget.hasAttribute("tabindex")){if(C){Qe=Array.isArray(L)?L.slice():[];const Je=L.indexOf(pe.props.value);Je===-1?Qe.push(pe.props.value):Qe.splice(Je,1)}else Qe=pe.props.value;if(pe.props.onClick&&pe.props.onClick(xe),L!==Qe&&(q(Qe),S)){const Je=xe.nativeEvent||xe,ft=new Je.constructor(Je.type,Je);Object.defineProperty(ft,"target",{writable:!0,value:{value:Qe,name:y}}),S(ft,pe)}C||he(!1,xe)}},le=pe=>{B||[" ","ArrowUp","ArrowDown","Enter"].indexOf(pe.key)!==-1&&(pe.preventDefault(),he(!0,pe))},Ke=N!==null&&w,qe=pe=>{!Ke&&E&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:L,name:y}}),E(pe))};delete P["aria-invalid"];let Be,Te;const Pe=[];let je=!1;(Vc({value:L})||f)&&(M?Be=M(L):je=!0);const it=ve.map(pe=>{if(!v.isValidElement(pe))return null;let xe;if(C){if(!Array.isArray(L))throw new Error(hr(2));xe=L.some(Qe=>MI(Qe,pe.props.value)),xe&&je&&Pe.push(pe.props.children)}else xe=MI(L,pe.props.value),xe&&je&&(Te=pe.props.children);return v.cloneElement(pe,{"aria-selected":xe?"true":"false",onClick:Ze(pe),onKeyUp:Qe=>{Qe.key===" "&&Qe.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(Qe)},role:"option",selected:xe,value:void 0,"data-value":pe.props.value})});je&&(C?Pe.length===0?Be=null:Be=Pe.reduce((pe,xe,Qe)=>(pe.push(xe),Qe<Pe.length-1&&pe.push(", "),pe),[]):Be=Te);let D=_;!i&&ue&&N&&(D=X.clientWidth);let ne;typeof z<"u"?ne=z:ne=d?null:0;const U=F.id||(y?`mui-component-select-${y}`:void 0),O=I({},t,{variant:j,value:L,open:Ke,error:W}),Y=uq(O),Ie=I({},g.PaperProps,(a=g.slotProps)==null?void 0:a.paper),Se=Hr();return A.jsxs(v.Fragment,{children:[A.jsx(oq,I({ref:ae,tabIndex:ne,role:"combobox","aria-controls":Se,"aria-disabled":d?"true":void 0,"aria-expanded":Ke?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[h,U].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:le,onMouseDown:d||B?null:We,onBlur:qe,onFocus:R},F,{ownerState:O,className:Ae(F.className,Y.select,p),id:U,children:pq(Be)?LI||(LI=A.jsx("span",{className:"notranslate",children:"​"})):Be})),A.jsx(sq,I({"aria-invalid":W,value:Array.isArray(L)?L.join(","):L,name:y,ref:te,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:d,className:Y.nativeInput,autoFocus:o,ownerState:O},P)),A.jsx(iq,{as:m,className:Y.icon,ownerState:O}),A.jsx(kz,I({id:`menu-${y||""}`,anchorEl:X,open:Ke,onClose:me,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:I({"aria-labelledby":h,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:Se},g.MenuListProps),slotProps:I({},g.slotProps,{paper:I({},Ie,{style:I({minWidth:D},Ie!=null?Ie.style:null)})}),children:it}))]})}),Aq=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dq=["root"],fq=e=>{const{classes:t}=e;return t},gg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Cn(e)&&e!=="variant",slot:"Root"},Wq=$(pg,gg)(""),gq=$(fg,gg)(""),hq=$(og,gg)(""),QI=v.forwardRef(function(t,n){const a=Le({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:l,classes:o={},className:i,defaultOpen:s=!1,displayEmpty:p=!1,IconComponent:u=NS,id:c,input:d,inputProps:f,label:W,labelId:m,MenuProps:x,multiple:h=!1,native:g=!1,onClose:C,onOpen:y,open:E,renderValue:S,SelectDisplayProps:k,variant:R="outlined"}=a,V=se(a,Aq),b=g?Qz:cq,B=_a(),M=_r({props:a,muiFormControl:B,states:["variant","error"]}),F=M.variant||R,z=I({},a,{variant:F,classes:o}),T=fq(z),j=se(T,dq),P=d||{standard:A.jsx(Wq,{ownerState:z}),outlined:A.jsx(gq,{label:W,ownerState:z}),filled:A.jsx(hq,{ownerState:z})}[F],L=Mt(n,wl(P));return A.jsx(v.Fragment,{children:v.cloneElement(P,I({inputComponent:b,inputProps:I({children:l,error:M.error,IconComponent:u,variant:F,type:void 0,multiple:h},g?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:p,labelId:m,MenuProps:x,onClose:C,onOpen:y,open:E,renderValue:S,SelectDisplayProps:I({id:c},k)},f,{classes:f?mn(j,f.classes):j},d?d.props.inputProps:{})},(h&&g||p)&&F==="outlined"?{notched:!0}:{},{ref:L,className:Ae(P.props.className,i,T.root)},!d&&{variant:F},V))})});QI.muiName="Select";function mq(e){return ke("MuiSkeleton",e)}we("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Cq=["animation","className","component","height","style","variant","width"];let Jc=e=>e,VI,UI,FI,zI;const vq=e=>{const{classes:t,variant:n,animation:a,hasChildren:r,width:l,height:o}=e;return Re({root:["root",n,a,r&&"withChildren",r&&!l&&"fitContent",r&&!o&&"heightAuto"]},mq,t)},yq=Gr(VI||(VI=Jc`
183
183
  0% {
184
184
  opacity: 1;
185
185
  }
@@ -204,7 +204,7 @@ Error generating stack: `+l.message+`
204
204
  100% {
205
205
  transform: translateX(100%);
206
206
  }
207
- `)),Iq=_("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=sM(e.shape.borderRadius)||"px",a=pM(e.shape.borderRadius);return I({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:un(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${a}${n}/${Math.round(a/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&bo(FI||(FI=Jc`
207
+ `)),Iq=$("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=sM(e.shape.borderRadius)||"px",a=pM(e.shape.borderRadius);return I({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:un(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${a}${n}/${Math.round(a/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&bo(FI||(FI=Jc`
208
208
  animation: ${0} 2s ease-in-out 0.5s infinite;
209
209
  `),yq),({ownerState:e,theme:t})=>e.animation==="wave"&&bo(zI||(zI=Jc`
210
210
  position: relative;
@@ -229,7 +229,7 @@ Error generating stack: `+l.message+`
229
229
  right: 0;
230
230
  top: 0;
231
231
  }
232
- `),Sq,(t.vars||t).palette.action.hover)),hg=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:l,component:o="span",height:i,style:s,variant:p="text",width:u}=a,c=se(a,Cq),d=I({},a,{animation:r,component:o,variant:p,hasChildren:!!c.children}),f=vq(d);return A.jsx(Iq,I({as:o,ref:n,className:Ae(f.root,l),ownerState:d},c,{style:I({width:u,height:i},s)}))});function xq(e){return ke("MuiTooltip",e)}const tl=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Eq=["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 bq(e){return Math.round(e*1e5)/1e5}const kq=e=>{const{classes:t,disableInteractive:n,arrow:a,touch:r,placement:l}=e,o={popper:["popper",!n&&"popperInteractive",a&&"popperArrow"],tooltip:["tooltip",a&&"tooltipArrow",r&&"touch",`tooltipPlacement${$(l.split("-")[0])}`],arrow:["arrow"]};return Re(o,xq,t)},wq=_(Lc,{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})=>I({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${tl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tl.arrow}`]:I({},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"] .${tl.arrow}`]:I({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Rq=_("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${$(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>I({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ct(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:`${bq(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${tl.popper}[data-popper-placement*="left"] &`]:I({transformOrigin:"right center"},t.isRtl?I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):I({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${tl.popper}[data-popper-placement*="right"] &`]:I({transformOrigin:"left center"},t.isRtl?I({marginRight:"14px"},t.touch&&{marginRight:"24px"}):I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${tl.popper}[data-popper-placement*="top"] &`]:I({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${tl.popper}[data-popper-placement*="bottom"] &`]:I({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Bq=_("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:Ct(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Dc=!1;const qI=new fs;let Ls={x:0,y:0};function Yc(e,t){return(n,...a)=>{t&&t(n,...a),e(n,...a)}}const mg=v.forwardRef(function(t,n){var a,r,l,o,i,s,p,u,c,d,f,W,m,x,h,g,C,y,E;const S=Le({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:R,components:V={},componentsProps:b={},describeChild:B=!1,disableFocusListener:M=!1,disableHoverListener:F=!1,disableInteractive:z=!1,disableTouchListener:T=!1,enterDelay:j=100,enterNextDelay:P=0,enterTouchDelay:L=700,followCursor:q=!1,id:w,leaveDelay:H=0,leaveTouchDelay:te=1500,onClose:Q,onOpen:N,open:re,placement:ue="bottom",PopperComponent:X,PopperProps:ee={},slotProps:de={},slots:ae={},title:G,TransitionComponent:he=Pc,TransitionProps:ge}=S,me=se(S,Eq),ve=v.isValidElement(R)?R:A.jsx("span",{children:R}),ce=vr(),Ze=T1(),[le,Ke]=v.useState(),[qe,Be]=v.useState(null),Te=v.useRef(!1),Pe=z||q,je=Fo(),it=Fo(),D=Fo(),ne=Fo(),[U,O]=Cr({controlled:re,default:!1,name:"Tooltip",state:"open"});let Y=U;const Ie=Hr(w),Se=v.useRef(),pe=Bn(()=>{Se.current!==void 0&&(document.body.style.WebkitUserSelect=Se.current,Se.current=void 0),ne.clear()});v.useEffect(()=>pe,[pe]);const xe=Ee=>{qI.clear(),Dc=!0,O(!0),N&&!Y&&N(Ee)},Qe=Bn(Ee=>{qI.start(800+H,()=>{Dc=!1}),O(!1),Q&&Y&&Q(Ee),je.start(ce.transitions.duration.shortest,()=>{Te.current=!1})}),Je=Ee=>{Te.current&&Ee.type!=="touchstart"||(le&&le.removeAttribute("title"),it.clear(),D.clear(),j||Dc&&P?it.start(Dc?P:j,()=>{xe(Ee)}):xe(Ee))},ft=Ee=>{it.clear(),D.start(H,()=>{Qe(Ee)})},{isFocusVisibleRef:bt,onBlur:kt,onFocus:Dt,ref:rt}=IW(),[,Xe]=v.useState(!1),Ce=Ee=>{kt(Ee),bt.current===!1&&(Xe(!1),ft(Ee))},_e=Ee=>{le||Ke(Ee.currentTarget),Dt(Ee),bt.current===!0&&(Xe(!0),Je(Ee))},Ve=Ee=>{Te.current=!0;const $e=ve.props;$e.onTouchStart&&$e.onTouchStart(Ee)},It=Ee=>{Ve(Ee),D.clear(),je.clear(),pe(),Se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(L,()=>{document.body.style.WebkitUserSelect=Se.current,Je(Ee)})},Tt=Ee=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Ee),pe(),D.start(te,()=>{Qe(Ee)})};v.useEffect(()=>{if(!Y)return;function Ee($e){($e.key==="Escape"||$e.key==="Esc")&&Qe($e)}return document.addEventListener("keydown",Ee),()=>{document.removeEventListener("keydown",Ee)}},[Qe,Y]);const Jl=Mt(wl(ve),rt,Ke,n);!G&&G!==0&&(Y=!1);const Ea=v.useRef(),Ft=Ee=>{const $e=ve.props;$e.onMouseMove&&$e.onMouseMove(Ee),Ls={x:Ee.clientX,y:Ee.clientY},Ea.current&&Ea.current.update()},wt={},Sn=typeof G=="string";B?(wt.title=!Y&&Sn&&!F?G:null,wt["aria-describedby"]=Y?Ie:null):(wt["aria-label"]=Sn?G:null,wt["aria-labelledby"]=Y&&!Sn?Ie:null);const Fn=I({},wt,me,ve.props,{className:Ae(me.className,ve.props.className),onTouchStart:Ve,ref:Jl},q?{onMouseMove:Ft}:{}),br={};T||(Fn.onTouchStart=It,Fn.onTouchEnd=Tt),F||(Fn.onMouseOver=Yc(Je,Fn.onMouseOver),Fn.onMouseLeave=Yc(ft,Fn.onMouseLeave),Pe||(br.onMouseOver=Je,br.onMouseLeave=ft)),M||(Fn.onFocus=Yc(_e,Fn.onFocus),Fn.onBlur=Yc(Ce,Fn.onBlur),Pe||(br.onFocus=_e,br.onBlur=Ce));const ep=v.useMemo(()=>{var Ee;let $e=[{name:"arrow",enabled:!!qe,options:{element:qe,padding:4}}];return(Ee=ee.popperOptions)!=null&&Ee.modifiers&&($e=$e.concat(ee.popperOptions.modifiers)),I({},ee.popperOptions,{modifiers:$e})},[qe,ee]),kr=I({},S,{isRtl:Ze,arrow:k,disableInteractive:Pe,placement:ue,PopperComponentProp:X,touch:Te.current}),ol=kq(kr),il=(a=(r=ae.popper)!=null?r:V.Popper)!=null?a:wq,rr=(l=(o=(i=ae.transition)!=null?i:V.Transition)!=null?o:he)!=null?l:Pc,wr=(s=(p=ae.tooltip)!=null?p:V.Tooltip)!=null?s:Rq,Z=(u=(c=ae.arrow)!=null?c:V.Arrow)!=null?u:Bq,J=zo(il,I({},ee,(d=de.popper)!=null?d:b.popper,{className:Ae(ol.popper,ee==null?void 0:ee.className,(f=(W=de.popper)!=null?W:b.popper)==null?void 0:f.className)}),kr),We=zo(rr,I({},ge,(m=de.transition)!=null?m:b.transition),kr),be=zo(wr,I({},(x=de.tooltip)!=null?x:b.tooltip,{className:Ae(ol.tooltip,(h=(g=de.tooltip)!=null?g:b.tooltip)==null?void 0:h.className)}),kr),Ne=zo(Z,I({},(C=de.arrow)!=null?C:b.arrow,{className:Ae(ol.arrow,(y=(E=de.arrow)!=null?E:b.arrow)==null?void 0:y.className)}),kr);return A.jsxs(v.Fragment,{children:[v.cloneElement(ve,Fn),A.jsx(il,I({as:X??Lc,placement:ue,anchorEl:q?{getBoundingClientRect:()=>({top:Ls.y,left:Ls.x,right:Ls.x,bottom:Ls.y,width:0,height:0})}:le,popperRef:Ea,open:le?Y:!1,id:Ie,transition:!0},br,J,{popperOptions:ep,children:({TransitionProps:Ee})=>A.jsx(rr,I({timeout:ce.transitions.duration.shorter},Ee,We,{children:A.jsxs(wr,I({},be,{children:[G,k?A.jsx(Z,I({},Ne,{ref:Be})):null]}))}))}))]})}),Zc=v.createContext({}),Cg=v.createContext({});function Lq(e){return ke("MuiStep",e)}we("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const Mq=["active","children","className","component","completed","disabled","expanded","index","last"],Qq=e=>{const{classes:t,orientation:n,alternativeLabel:a,completed:r}=e;return Re({root:["root",n,a&&"alternativeLabel",r&&"completed"]},Lq,t)},Vq=_("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>I({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Uq=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiStep"}),{active:r,children:l,className:o,component:i="div",completed:s,disabled:p,expanded:u=!1,index:c,last:d}=a,f=se(a,Mq),{activeStep:W,connector:m,alternativeLabel:x,orientation:h,nonLinear:g}=v.useContext(Zc);let[C=!1,y=!1,E=!1]=[r,s,p];W===c?C=r!==void 0?r:!0:!g&&W>c?y=s!==void 0?s:!0:!g&&W<c&&(E=p!==void 0?p:!0);const S=v.useMemo(()=>({index:c,last:d,expanded:u,icon:c+1,active:C,completed:y,disabled:E}),[c,d,u,C,y,E]),k=I({},a,{active:C,orientation:h,alternativeLabel:x,completed:y,disabled:E,expanded:u,component:i}),R=Qq(k),V=A.jsxs(Vq,I({as:i,className:Ae(R.root,o),ref:n,ownerState:k},f,{children:[m&&x&&c!==0?m:null,l]}));return A.jsx(Cg.Provider,{value:S,children:m&&!x&&c!==0?A.jsxs(v.Fragment,{children:[m,V]}):V})}),Fq=$t(A.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),zq=$t(A.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function qq(e){return ke("MuiStepIcon",e)}const vg=we("MuiStepIcon",["root","active","completed","error","text"]);var jI;const jq=["active","className","completed","error","icon"],Tq=e=>{const{classes:t,active:n,completed:a,error:r}=e;return Re({root:["root",n&&"active",a&&"completed",r&&"error"],text:["text"]},qq,t)},yg=_(Sc,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${vg.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${vg.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${vg.error}`]:{color:(e.vars||e).palette.error.main}})),Oq=_("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),Kq=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiStepIcon"}),{active:r=!1,className:l,completed:o=!1,error:i=!1,icon:s}=a,p=se(a,jq),u=I({},a,{active:r,completed:o,error:i}),c=Tq(u);if(typeof s=="number"||typeof s=="string"){const d=Ae(l,c.root);return i?A.jsx(yg,I({as:zq,className:d,ref:n,ownerState:u},p)):o?A.jsx(yg,I({as:Fq,className:d,ref:n,ownerState:u},p)):A.jsxs(yg,I({className:d,ref:n,ownerState:u},p,{children:[jI||(jI=A.jsx("circle",{cx:"12",cy:"12",r:"12"})),A.jsx(Oq,{className:c.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:s})]}))}return s});function Pq(e){return ke("MuiStepLabel",e)}const nl=we("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Jq=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],Dq=e=>{const{classes:t,orientation:n,active:a,completed:r,error:l,disabled:o,alternativeLabel:i}=e;return Re({root:["root",n,l&&"error",o&&"disabled",i&&"alternativeLabel"],label:["label",a&&"active",r&&"completed",l&&"error",o&&"disabled",i&&"alternativeLabel"],iconContainer:["iconContainer",a&&"active",r&&"completed",l&&"error",o&&"disabled",i&&"alternativeLabel"],labelContainer:["labelContainer",i&&"alternativeLabel"]},Pq,t)},Yq=_("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>I({display:"flex",alignItems:"center",[`&.${nl.alternativeLabel}`]:{flexDirection:"column"},[`&.${nl.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),Zq=_("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>I({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${nl.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${nl.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${nl.alternativeLabel}`]:{marginTop:16},[`&.${nl.error}`]:{color:(e.vars||e).palette.error.main}})),Nq=_("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${nl.alternativeLabel}`]:{paddingRight:0}})),Gq=_("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${nl.alternativeLabel}`]:{textAlign:"center"}})),TI=v.forwardRef(function(t,n){var a;const r=Le({props:t,name:"MuiStepLabel"}),{children:l,className:o,componentsProps:i={},error:s=!1,icon:p,optional:u,slotProps:c={},StepIconComponent:d,StepIconProps:f}=r,W=se(r,Jq),{alternativeLabel:m,orientation:x}=v.useContext(Zc),{active:h,disabled:g,completed:C,icon:y}=v.useContext(Cg),E=p||y;let S=d;E&&!S&&(S=Kq);const k=I({},r,{active:h,alternativeLabel:m,completed:C,disabled:g,error:s,orientation:x}),R=Dq(k),V=(a=c.label)!=null?a:i.label;return A.jsxs(Yq,I({className:Ae(R.root,o),ref:n,ownerState:k},W,{children:[E||S?A.jsx(Nq,{className:R.iconContainer,ownerState:k,children:A.jsx(S,I({completed:C,active:h,error:s,icon:E},f))}):null,A.jsxs(Gq,{className:R.labelContainer,ownerState:k,children:[l?A.jsx(Zq,I({ownerState:k},V,{className:Ae(R.label,V==null?void 0:V.className),children:l})):null,u]})]}))});TI.muiName="StepLabel";function Hq(e){return ke("MuiStepConnector",e)}we("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const Xq=["className"],_q=e=>{const{classes:t,orientation:n,alternativeLabel:a,active:r,completed:l,disabled:o}=e,i={root:["root",n,a&&"alternativeLabel",r&&"active",l&&"completed",o&&"disabled"],line:["line",`line${$(n)}`]};return Re(i,Hq,t)},$q=_("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>I({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),ej=_("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${$(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return I({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),tj=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiStepConnector"}),{className:r}=a,l=se(a,Xq),{alternativeLabel:o,orientation:i="horizontal"}=v.useContext(Zc),{active:s,disabled:p,completed:u}=v.useContext(Cg),c=I({},a,{alternativeLabel:o,orientation:i,active:s,completed:u,disabled:p}),d=_q(c);return A.jsx($q,I({className:Ae(d.root,r),ref:n,ownerState:c},l,{children:A.jsx(ej,{className:d.line,ownerState:c})}))});function nj(e){return ke("MuiStepper",e)}we("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const aj=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],rj=e=>{const{orientation:t,nonLinear:n,alternativeLabel:a,classes:r}=e;return Re({root:["root",t,n&&"nonLinear",a&&"alternativeLabel"]},nj,r)},lj=_("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})(({ownerState:e})=>I({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),oj=A.jsx(tj,{}),ij=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiStepper"}),{activeStep:r=0,alternativeLabel:l=!1,children:o,className:i,component:s="div",connector:p=oj,nonLinear:u=!1,orientation:c="horizontal"}=a,d=se(a,aj),f=I({},a,{nonLinear:u,alternativeLabel:l,orientation:c,component:s}),W=rj(f),m=v.Children.toArray(o).filter(Boolean),x=m.map((g,C)=>v.cloneElement(g,I({index:C,last:C+1===m.length},g.props))),h=v.useMemo(()=>({activeStep:r,alternativeLabel:l,connector:p,nonLinear:u,orientation:c}),[r,l,p,u,c]);return A.jsx(Zc.Provider,{value:h,children:A.jsx(lj,I({as:s,ownerState:f,className:Ae(W.root,i),ref:n},d,{children:x}))})});function sj(e){return ke("MuiToolbar",e)}we("MuiToolbar",["root","gutters","regular","dense"]);const pj=["className","component","disableGutters","variant"],uj=e=>{const{classes:t,disableGutters:n,variant:a}=e;return Re({root:["root",!n&&"gutters",a]},sj,t)},cj=_("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>I({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Aj=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiToolbar"}),{className:r,component:l="div",disableGutters:o=!1,variant:i="regular"}=a,s=se(a,pj),p=I({},a,{component:l,disableGutters:o,variant:i}),u=uj(p);return A.jsx(cj,I({as:l,className:Ae(u.root,r),ref:n,ownerState:p},s))});function dj(e){return ke("MuiTextField",e)}we("MuiTextField",["root"]);const fj=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Wj={standard:pg,filled:og,outlined:fg},gj=e=>{const{classes:t}=e;return Re({root:["root"]},dj,t)},hj=_(i9,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),at=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:l=!1,children:o,className:i,color:s="primary",defaultValue:p,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:W,id:m,InputLabelProps:x,inputProps:h,InputProps:g,inputRef:C,label:y,maxRows:E,minRows:S,multiline:k=!1,name:R,onBlur:V,onChange:b,onFocus:B,placeholder:M,required:F=!1,rows:z,select:T=!1,SelectProps:j,type:P,value:L,variant:q="outlined"}=a,w=se(a,fj),H=I({},a,{autoFocus:l,color:s,disabled:u,error:c,fullWidth:f,multiline:k,required:F,select:T,variant:q}),te=gj(H),Q={};q==="outlined"&&(x&&typeof x.shrink<"u"&&(Q.notched=x.shrink),Q.label=y),T&&((!j||!j.native)&&(Q.id=void 0),Q["aria-describedby"]=void 0);const N=Hr(m),re=W&&N?`${N}-helper-text`:void 0,ue=y&&N?`${N}-label`:void 0,X=Wj[q],ee=A.jsx(X,I({"aria-describedby":re,autoComplete:r,autoFocus:l,defaultValue:p,fullWidth:f,multiline:k,name:R,rows:z,maxRows:E,minRows:S,type:P,value:L,id:N,inputRef:C,onBlur:V,onChange:b,onFocus:B,placeholder:M,inputProps:h},Q,g));return A.jsxs(hj,I({className:Ae(te.root,i),disabled:u,error:c,fullWidth:f,ref:n,required:F,color:s,variant:q,ownerState:H},w,{children:[y!=null&&y!==""&&A.jsx(az,I({htmlFor:N,id:ue},x,{children:y})),T?A.jsx(QI,I({"aria-describedby":re,id:N,labelId:ue,value:L,input:ee},j,{children:o})):ee,W&&A.jsx(S9,I({id:re},d,{children:W}))]}))}),mj={actionCards:{email:"צור לי מייל",domain:"מצאו לי דומיין",sms:"צרו SMS",analyze:"נתחו את העסק שלי"},actionCardsDesc:{email:"צרו ניוזלטר מותאם לעסק ולשפה שלכם.",domain:"מצאו שם דומיין זמין שמתאים למותג.",sms:"כתבו הודעת SMS שיווקית מוכנה לשליחה.",analyze:"קבלו תובנות על העסק, הקהל וההזדמנויות."},welcome:{heading:"טוב שבאת",text:`ברוכים הבאים למערכת שלח מסר 🚀. כאן תוכלו למצוא כלים לשווק את העסק שלכם.
232
+ `),Sq,(t.vars||t).palette.action.hover)),hg=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:l,component:o="span",height:i,style:s,variant:p="text",width:u}=a,c=se(a,Cq),d=I({},a,{animation:r,component:o,variant:p,hasChildren:!!c.children}),f=vq(d);return A.jsx(Iq,I({as:o,ref:n,className:Ae(f.root,l),ownerState:d},c,{style:I({width:u,height:i},s)}))});function xq(e){return ke("MuiTooltip",e)}const tl=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Eq=["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 bq(e){return Math.round(e*1e5)/1e5}const kq=e=>{const{classes:t,disableInteractive:n,arrow:a,touch:r,placement:l}=e,o={popper:["popper",!n&&"popperInteractive",a&&"popperArrow"],tooltip:["tooltip",a&&"tooltipArrow",r&&"touch",`tooltipPlacement${ee(l.split("-")[0])}`],arrow:["arrow"]};return Re(o,xq,t)},wq=$(Lc,{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})=>I({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${tl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tl.arrow}`]:I({},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"] .${tl.arrow}`]:I({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Rq=$("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${ee(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>I({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ct(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:`${bq(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${tl.popper}[data-popper-placement*="left"] &`]:I({transformOrigin:"right center"},t.isRtl?I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):I({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${tl.popper}[data-popper-placement*="right"] &`]:I({transformOrigin:"left center"},t.isRtl?I({marginRight:"14px"},t.touch&&{marginRight:"24px"}):I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${tl.popper}[data-popper-placement*="top"] &`]:I({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${tl.popper}[data-popper-placement*="bottom"] &`]:I({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Bq=$("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:Ct(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Dc=!1;const qI=new fs;let Ls={x:0,y:0};function Yc(e,t){return(n,...a)=>{t&&t(n,...a),e(n,...a)}}const mg=v.forwardRef(function(t,n){var a,r,l,o,i,s,p,u,c,d,f,W,m,x,h,g,C,y,E;const S=Le({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:R,components:V={},componentsProps:b={},describeChild:B=!1,disableFocusListener:M=!1,disableHoverListener:F=!1,disableInteractive:z=!1,disableTouchListener:T=!1,enterDelay:j=100,enterNextDelay:P=0,enterTouchDelay:L=700,followCursor:q=!1,id:w,leaveDelay:G=0,leaveTouchDelay:te=1500,onClose:Q,onOpen:N,open:re,placement:ue="bottom",PopperComponent:_,PopperProps:H={},slotProps:de={},slots:ae={},title:X,TransitionComponent:he=Pc,TransitionProps:We}=S,me=se(S,Eq),ve=v.isValidElement(R)?R:A.jsx("span",{children:R}),ce=vr(),Ze=T1(),[le,Ke]=v.useState(),[qe,Be]=v.useState(null),Te=v.useRef(!1),Pe=z||q,je=Fo(),it=Fo(),D=Fo(),ne=Fo(),[U,O]=Cr({controlled:re,default:!1,name:"Tooltip",state:"open"});let Y=U;const Ie=Hr(w),Se=v.useRef(),pe=Bn(()=>{Se.current!==void 0&&(document.body.style.WebkitUserSelect=Se.current,Se.current=void 0),ne.clear()});v.useEffect(()=>pe,[pe]);const xe=Ee=>{qI.clear(),Dc=!0,O(!0),N&&!Y&&N(Ee)},Qe=Bn(Ee=>{qI.start(800+G,()=>{Dc=!1}),O(!1),Q&&Y&&Q(Ee),je.start(ce.transitions.duration.shortest,()=>{Te.current=!1})}),Je=Ee=>{Te.current&&Ee.type!=="touchstart"||(le&&le.removeAttribute("title"),it.clear(),D.clear(),j||Dc&&P?it.start(Dc?P:j,()=>{xe(Ee)}):xe(Ee))},ft=Ee=>{it.clear(),D.start(G,()=>{Qe(Ee)})},{isFocusVisibleRef:bt,onBlur:kt,onFocus:Dt,ref:rt}=IW(),[,Xe]=v.useState(!1),Ce=Ee=>{kt(Ee),bt.current===!1&&(Xe(!1),ft(Ee))},_e=Ee=>{le||Ke(Ee.currentTarget),Dt(Ee),bt.current===!0&&(Xe(!0),Je(Ee))},Ve=Ee=>{Te.current=!0;const $e=ve.props;$e.onTouchStart&&$e.onTouchStart(Ee)},It=Ee=>{Ve(Ee),D.clear(),je.clear(),pe(),Se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(L,()=>{document.body.style.WebkitUserSelect=Se.current,Je(Ee)})},Tt=Ee=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Ee),pe(),D.start(te,()=>{Qe(Ee)})};v.useEffect(()=>{if(!Y)return;function Ee($e){($e.key==="Escape"||$e.key==="Esc")&&Qe($e)}return document.addEventListener("keydown",Ee),()=>{document.removeEventListener("keydown",Ee)}},[Qe,Y]);const Jl=Mt(wl(ve),rt,Ke,n);!X&&X!==0&&(Y=!1);const Ea=v.useRef(),Ft=Ee=>{const $e=ve.props;$e.onMouseMove&&$e.onMouseMove(Ee),Ls={x:Ee.clientX,y:Ee.clientY},Ea.current&&Ea.current.update()},wt={},Sn=typeof X=="string";B?(wt.title=!Y&&Sn&&!F?X:null,wt["aria-describedby"]=Y?Ie:null):(wt["aria-label"]=Sn?X:null,wt["aria-labelledby"]=Y&&!Sn?Ie:null);const Fn=I({},wt,me,ve.props,{className:Ae(me.className,ve.props.className),onTouchStart:Ve,ref:Jl},q?{onMouseMove:Ft}:{}),br={};T||(Fn.onTouchStart=It,Fn.onTouchEnd=Tt),F||(Fn.onMouseOver=Yc(Je,Fn.onMouseOver),Fn.onMouseLeave=Yc(ft,Fn.onMouseLeave),Pe||(br.onMouseOver=Je,br.onMouseLeave=ft)),M||(Fn.onFocus=Yc(_e,Fn.onFocus),Fn.onBlur=Yc(Ce,Fn.onBlur),Pe||(br.onFocus=_e,br.onBlur=Ce));const ep=v.useMemo(()=>{var Ee;let $e=[{name:"arrow",enabled:!!qe,options:{element:qe,padding:4}}];return(Ee=H.popperOptions)!=null&&Ee.modifiers&&($e=$e.concat(H.popperOptions.modifiers)),I({},H.popperOptions,{modifiers:$e})},[qe,H]),kr=I({},S,{isRtl:Ze,arrow:k,disableInteractive:Pe,placement:ue,PopperComponentProp:_,touch:Te.current}),ol=kq(kr),il=(a=(r=ae.popper)!=null?r:V.Popper)!=null?a:wq,rr=(l=(o=(i=ae.transition)!=null?i:V.Transition)!=null?o:he)!=null?l:Pc,wr=(s=(p=ae.tooltip)!=null?p:V.Tooltip)!=null?s:Rq,Z=(u=(c=ae.arrow)!=null?c:V.Arrow)!=null?u:Bq,J=zo(il,I({},H,(d=de.popper)!=null?d:b.popper,{className:Ae(ol.popper,H==null?void 0:H.className,(f=(W=de.popper)!=null?W:b.popper)==null?void 0:f.className)}),kr),ge=zo(rr,I({},We,(m=de.transition)!=null?m:b.transition),kr),be=zo(wr,I({},(x=de.tooltip)!=null?x:b.tooltip,{className:Ae(ol.tooltip,(h=(g=de.tooltip)!=null?g:b.tooltip)==null?void 0:h.className)}),kr),Ne=zo(Z,I({},(C=de.arrow)!=null?C:b.arrow,{className:Ae(ol.arrow,(y=(E=de.arrow)!=null?E:b.arrow)==null?void 0:y.className)}),kr);return A.jsxs(v.Fragment,{children:[v.cloneElement(ve,Fn),A.jsx(il,I({as:_??Lc,placement:ue,anchorEl:q?{getBoundingClientRect:()=>({top:Ls.y,left:Ls.x,right:Ls.x,bottom:Ls.y,width:0,height:0})}:le,popperRef:Ea,open:le?Y:!1,id:Ie,transition:!0},br,J,{popperOptions:ep,children:({TransitionProps:Ee})=>A.jsx(rr,I({timeout:ce.transitions.duration.shorter},Ee,ge,{children:A.jsxs(wr,I({},be,{children:[X,k?A.jsx(Z,I({},Ne,{ref:Be})):null]}))}))}))]})}),Zc=v.createContext({}),Cg=v.createContext({});function Lq(e){return ke("MuiStep",e)}we("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const Mq=["active","children","className","component","completed","disabled","expanded","index","last"],Qq=e=>{const{classes:t,orientation:n,alternativeLabel:a,completed:r}=e;return Re({root:["root",n,a&&"alternativeLabel",r&&"completed"]},Lq,t)},Vq=$("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>I({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Uq=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiStep"}),{active:r,children:l,className:o,component:i="div",completed:s,disabled:p,expanded:u=!1,index:c,last:d}=a,f=se(a,Mq),{activeStep:W,connector:m,alternativeLabel:x,orientation:h,nonLinear:g}=v.useContext(Zc);let[C=!1,y=!1,E=!1]=[r,s,p];W===c?C=r!==void 0?r:!0:!g&&W>c?y=s!==void 0?s:!0:!g&&W<c&&(E=p!==void 0?p:!0);const S=v.useMemo(()=>({index:c,last:d,expanded:u,icon:c+1,active:C,completed:y,disabled:E}),[c,d,u,C,y,E]),k=I({},a,{active:C,orientation:h,alternativeLabel:x,completed:y,disabled:E,expanded:u,component:i}),R=Qq(k),V=A.jsxs(Vq,I({as:i,className:Ae(R.root,o),ref:n,ownerState:k},f,{children:[m&&x&&c!==0?m:null,l]}));return A.jsx(Cg.Provider,{value:S,children:m&&!x&&c!==0?A.jsxs(v.Fragment,{children:[m,V]}):V})}),Fq=$t(A.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),zq=$t(A.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function qq(e){return ke("MuiStepIcon",e)}const vg=we("MuiStepIcon",["root","active","completed","error","text"]);var jI;const jq=["active","className","completed","error","icon"],Tq=e=>{const{classes:t,active:n,completed:a,error:r}=e;return Re({root:["root",n&&"active",a&&"completed",r&&"error"],text:["text"]},qq,t)},yg=$(Sc,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${vg.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${vg.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${vg.error}`]:{color:(e.vars||e).palette.error.main}})),Oq=$("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),Kq=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiStepIcon"}),{active:r=!1,className:l,completed:o=!1,error:i=!1,icon:s}=a,p=se(a,jq),u=I({},a,{active:r,completed:o,error:i}),c=Tq(u);if(typeof s=="number"||typeof s=="string"){const d=Ae(l,c.root);return i?A.jsx(yg,I({as:zq,className:d,ref:n,ownerState:u},p)):o?A.jsx(yg,I({as:Fq,className:d,ref:n,ownerState:u},p)):A.jsxs(yg,I({className:d,ref:n,ownerState:u},p,{children:[jI||(jI=A.jsx("circle",{cx:"12",cy:"12",r:"12"})),A.jsx(Oq,{className:c.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:s})]}))}return s});function Pq(e){return ke("MuiStepLabel",e)}const nl=we("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Jq=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],Dq=e=>{const{classes:t,orientation:n,active:a,completed:r,error:l,disabled:o,alternativeLabel:i}=e;return Re({root:["root",n,l&&"error",o&&"disabled",i&&"alternativeLabel"],label:["label",a&&"active",r&&"completed",l&&"error",o&&"disabled",i&&"alternativeLabel"],iconContainer:["iconContainer",a&&"active",r&&"completed",l&&"error",o&&"disabled",i&&"alternativeLabel"],labelContainer:["labelContainer",i&&"alternativeLabel"]},Pq,t)},Yq=$("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>I({display:"flex",alignItems:"center",[`&.${nl.alternativeLabel}`]:{flexDirection:"column"},[`&.${nl.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),Zq=$("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>I({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${nl.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${nl.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${nl.alternativeLabel}`]:{marginTop:16},[`&.${nl.error}`]:{color:(e.vars||e).palette.error.main}})),Nq=$("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${nl.alternativeLabel}`]:{paddingRight:0}})),Gq=$("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${nl.alternativeLabel}`]:{textAlign:"center"}})),TI=v.forwardRef(function(t,n){var a;const r=Le({props:t,name:"MuiStepLabel"}),{children:l,className:o,componentsProps:i={},error:s=!1,icon:p,optional:u,slotProps:c={},StepIconComponent:d,StepIconProps:f}=r,W=se(r,Jq),{alternativeLabel:m,orientation:x}=v.useContext(Zc),{active:h,disabled:g,completed:C,icon:y}=v.useContext(Cg),E=p||y;let S=d;E&&!S&&(S=Kq);const k=I({},r,{active:h,alternativeLabel:m,completed:C,disabled:g,error:s,orientation:x}),R=Dq(k),V=(a=c.label)!=null?a:i.label;return A.jsxs(Yq,I({className:Ae(R.root,o),ref:n,ownerState:k},W,{children:[E||S?A.jsx(Nq,{className:R.iconContainer,ownerState:k,children:A.jsx(S,I({completed:C,active:h,error:s,icon:E},f))}):null,A.jsxs(Gq,{className:R.labelContainer,ownerState:k,children:[l?A.jsx(Zq,I({ownerState:k},V,{className:Ae(R.label,V==null?void 0:V.className),children:l})):null,u]})]}))});TI.muiName="StepLabel";function Hq(e){return ke("MuiStepConnector",e)}we("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const Xq=["className"],_q=e=>{const{classes:t,orientation:n,alternativeLabel:a,active:r,completed:l,disabled:o}=e,i={root:["root",n,a&&"alternativeLabel",r&&"active",l&&"completed",o&&"disabled"],line:["line",`line${ee(n)}`]};return Re(i,Hq,t)},$q=$("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>I({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),ej=$("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${ee(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return I({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),tj=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiStepConnector"}),{className:r}=a,l=se(a,Xq),{alternativeLabel:o,orientation:i="horizontal"}=v.useContext(Zc),{active:s,disabled:p,completed:u}=v.useContext(Cg),c=I({},a,{alternativeLabel:o,orientation:i,active:s,completed:u,disabled:p}),d=_q(c);return A.jsx($q,I({className:Ae(d.root,r),ref:n,ownerState:c},l,{children:A.jsx(ej,{className:d.line,ownerState:c})}))});function nj(e){return ke("MuiStepper",e)}we("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const aj=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],rj=e=>{const{orientation:t,nonLinear:n,alternativeLabel:a,classes:r}=e;return Re({root:["root",t,n&&"nonLinear",a&&"alternativeLabel"]},nj,r)},lj=$("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})(({ownerState:e})=>I({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),oj=A.jsx(tj,{}),ij=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiStepper"}),{activeStep:r=0,alternativeLabel:l=!1,children:o,className:i,component:s="div",connector:p=oj,nonLinear:u=!1,orientation:c="horizontal"}=a,d=se(a,aj),f=I({},a,{nonLinear:u,alternativeLabel:l,orientation:c,component:s}),W=rj(f),m=v.Children.toArray(o).filter(Boolean),x=m.map((g,C)=>v.cloneElement(g,I({index:C,last:C+1===m.length},g.props))),h=v.useMemo(()=>({activeStep:r,alternativeLabel:l,connector:p,nonLinear:u,orientation:c}),[r,l,p,u,c]);return A.jsx(Zc.Provider,{value:h,children:A.jsx(lj,I({as:s,ownerState:f,className:Ae(W.root,i),ref:n},d,{children:x}))})});function sj(e){return ke("MuiToolbar",e)}we("MuiToolbar",["root","gutters","regular","dense"]);const pj=["className","component","disableGutters","variant"],uj=e=>{const{classes:t,disableGutters:n,variant:a}=e;return Re({root:["root",!n&&"gutters",a]},sj,t)},cj=$("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>I({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Aj=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiToolbar"}),{className:r,component:l="div",disableGutters:o=!1,variant:i="regular"}=a,s=se(a,pj),p=I({},a,{component:l,disableGutters:o,variant:i}),u=uj(p);return A.jsx(cj,I({as:l,className:Ae(u.root,r),ref:n,ownerState:p},s))});function dj(e){return ke("MuiTextField",e)}we("MuiTextField",["root"]);const fj=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Wj={standard:pg,filled:og,outlined:fg},gj=e=>{const{classes:t}=e;return Re({root:["root"]},dj,t)},hj=$(i9,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),at=v.forwardRef(function(t,n){const a=Le({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:l=!1,children:o,className:i,color:s="primary",defaultValue:p,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:W,id:m,InputLabelProps:x,inputProps:h,InputProps:g,inputRef:C,label:y,maxRows:E,minRows:S,multiline:k=!1,name:R,onBlur:V,onChange:b,onFocus:B,placeholder:M,required:F=!1,rows:z,select:T=!1,SelectProps:j,type:P,value:L,variant:q="outlined"}=a,w=se(a,fj),G=I({},a,{autoFocus:l,color:s,disabled:u,error:c,fullWidth:f,multiline:k,required:F,select:T,variant:q}),te=gj(G),Q={};q==="outlined"&&(x&&typeof x.shrink<"u"&&(Q.notched=x.shrink),Q.label=y),T&&((!j||!j.native)&&(Q.id=void 0),Q["aria-describedby"]=void 0);const N=Hr(m),re=W&&N?`${N}-helper-text`:void 0,ue=y&&N?`${N}-label`:void 0,_=Wj[q],H=A.jsx(_,I({"aria-describedby":re,autoComplete:r,autoFocus:l,defaultValue:p,fullWidth:f,multiline:k,name:R,rows:z,maxRows:E,minRows:S,type:P,value:L,id:N,inputRef:C,onBlur:V,onChange:b,onFocus:B,placeholder:M,inputProps:h},Q,g));return A.jsxs(hj,I({className:Ae(te.root,i),disabled:u,error:c,fullWidth:f,ref:n,required:F,color:s,variant:q,ownerState:G},w,{children:[y!=null&&y!==""&&A.jsx(az,I({htmlFor:N,id:ue},x,{children:y})),T?A.jsx(QI,I({"aria-describedby":re,id:N,labelId:ue,value:L,input:H},j,{children:o})):H,W&&A.jsx(S9,I({id:re},d,{children:W}))]}))}),mj={actionCards:{email:"צור לי מייל",domain:"מצאו לי דומיין",sms:"צרו SMS",analyze:"נתחו את העסק שלי"},actionCardsDesc:{email:"צרו ניוזלטר מותאם לעסק ולשפה שלכם.",domain:"מצאו שם דומיין זמין שמתאים למותג.",sms:"כתבו הודעת SMS שיווקית מוכנה לשליחה.",analyze:"קבלו תובנות על העסק, הקהל וההזדמנויות."},welcome:{heading:"טוב שבאת",text:`ברוכים הבאים למערכת שלח מסר 🚀. כאן תוכלו למצוא כלים לשווק את העסק שלכם.
233
233
  כבר עכשיו אפשר להתחיל בשיחה קצרה ולהכיר אותנו
234
234
  נשמח להכיר אותך ואת העסק שלך ולעשות יחד את הצעדים הראשונים:
235
235
  יצירת ניוזלטר ✉️, דף נחיתה 🎯, הקמת קורס דיגיטלי 📇 ועוד`,startButton:"שנתחיל?"},thankyou:{title:"תודה רבה {{name}}!",titleNoName:"תודה רבה",subtitle:"כעת תוכלו ליצור ניוזלטרים, דפי נחיתה, שיווק חכם ועוד - הכל בסגנון המותג שלך!",whatNext:"מה תרצו לעשות?",keepWorking:"אני רוצה להמשיך לעבוד"},secondTime:{hi:"היי",whatNext:"מה תרצו לעשות?",hubSectionPrimary:"פעולות",hubSectionPrimaryHint:"ניוזלטר, דומיין, הודעות או ניתוח עסק — בחרו כדי להמשיך.",hubSectionSecondary:"אפשרויות נוספות",hubSectionSecondaryHint:"להתחיל מחדש מההתחלה או לחזור לפרטי העסק ששמרתם.",or:"או",startFromBeginning:"להתחיל מחדש",startFromBeginningDesc:"להתחיל את התהליך מחדש מההתחלה",viewResults:"לצפות בתוצאות",viewResultsDesc:"לצפות בתוצאות הקודמות שלך",featureRequest:"מה הדבר, הטכנולוגיה שהכי יכולה לעזור לכם?"},featureRequestForm:{pageTitle:"שתפו אותנו ברעיון",pageSubtitle:"ספרו לנו מה הכי יעזור לכם — אנחנו קוראים כל בקשה.",pageSubtitleNamed:"{{name}}, ספרו לנו מה הכי יעזור לכם — אנחנו קוראים כל בקשה.",sectionTitle:"הרעיון שלכם",sectionHint:"כותרת קצרה וכמה פרטים עוזרים לנו לסדר עדיפויות.",titleLabel:"כותרת",titlePlaceholder:"לדוגמה: ייצוא ניוזלטר ל־PDF",descriptionLabel:"תיאור",descriptionPlaceholder:"מה התכונה צריכה לעשות? למי זה מיועד?",emailLabel:"אימייל (אופציונלי)",emailPlaceholder:"you@company.com",back:"חזרה",submit:"שליחת בקשה"},steps:{brandDetails:"פרטי המותג",designPrefs:"העדפות עיצוב",summary:"סיכום",summaryAndSend:"סיכום ושליחה"},common:{continue:"המשך",send:"שלח",close:"סגור",edit:"עריכה",error:"שגיאה",errorGeneric:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",tryAgain:"נסה שוב"},newsletter:{whatType:"איזה סוג מייל תרצו ליצור?",types:{webinar:"וובינר",designed_mail:"(מצב מהיר) מעוצב",studio_design:"מעוצב (סטודיו)",designed_mail_advanced:"מעצב פרו (סטודיו)",authentic_text:"טקסט אישי"},comingSoon:"בקרוב",questions:{topic:"נושא / תיאור קצר",topicShort:"נושא / תיאור",date:"תאריך",time:"שעה"},successHeading:"המייל מוכן",successMessage:"המייל נוצר בהצלחה.",editDesign:"לעבור למצב עריכה",startOver:"להתחיל מחדש",tellUs:"ספרו לנו במשפט או שניים",toneLabel:"באיזה טון?",topicLabel:"מה תרצו לכלול במייל?",textStyleQuestion:"האם יש אתר שסגנון הטקסט שלו מתאים לכם?",websiteUrl:"כתובת האתר",back:"חזרה",loadingSteps:{building:"בונים את המייל...",searchingImages:"מחפשים תמונות...",choosingIcons:"בוחרים אייקונים...",analyzing:"מנתחים את העסק..."},writeHere:"כתבו כאן...",previewPlaceholder:"התצוגה המקדימה תופיע כאן לאחר יצירת המייל.",typeSectionHint:'בחרו פורמט — אפשר לשנות בהמשך עם "להתחיל מחדש".',questionsSectionHint:"הפרטים האלה עוזרים לבינה המלאכותית להתאים את המייל."},aiChat:{greeting:"היי! איך אני יכול לעזור לך היום?",thanksMessage:"תודה על ההודעה! אני אעבד על זה ואחזור אליך בקרוב.",placeholder:"הקלד הודעה..."},tone:{professional:"מקצועי",friendly:"ידידותי",formal:"פורמלי",casual:"קליל",concise:"תמציתי"},keywords:{label:"מילות מפתח",placeholder:"הוספת מילת מפתח..."},disclaimer:{beta:"בטא",aiMistakes:"הבינה המלאכותית עלולה לטעות. מומלץ לבדוק את התוצאות."},themeColorPicker:{removePrimary:"הסר מצבע ראשי",setPrimary:"הגדר כצבע ראשי",removeSecondary:"הסר מצבע משני",setSecondary:"הגדר כצבע משני"},seriesPrompt:{hub:{title:"סדרת מיילים",description:"צרו פרומפט מוכן לשימוש לכל חלק בסדרת המיילים."},form:{pageTitle:"יצירת סדרת מיילים",pageSubtitle:"מלאו את הפרטים ונייצר כרטיס פרומפט לכל חלק.",goalLabel:"מטרת הסדרה",goalPlaceholder:"לדוגמה: להכיר מנויים חדשים על פני 5 מיילים",domainLabel:"דומיין האתר (אופציונלי)",domainPlaceholder:"לדוגמה: acme.com",totalPartsLabel:"מספר חלקים",totalPartsPlaceholder:"1–10 (ברירת מחדל: 10)",languageLabel:"שפה (אופציונלי)",languagePlaceholder:"לדוגמה: he, en",targetActionLabel:"פעולה מטרה (אופציונלי)",targetActionPlaceholder:"לדוגמה: הזמינו הדגמה",daysBetweenLabel:"ימים בין מיילים (אופציונלי)",daysBetweenPlaceholder:"לדוגמה: 3",generateButton:"צרו סדרה",generatingButton:"מייצר…",back:"חזרה"},loading:{generatingParts:"מייצר {{count}} חלקים…",pleaseWait:"הפעולה עשויה לקחת רגע."},cards:{partLabel:"חלק {{number}}",subjectLabel:"שורת נושא",promptLabel:"פרומפט למייל",copyButton:"העתקה",copiedButton:"הועתק!",sendToNewsletterButton:"שלח למחולל הניוזלטר",sendingButton:"שולח…",ctaLabel:"קריאה לפעולה"},errors:{goalRequired:"יש להזין מטרת סדרה.",goalTooLong:"מטרת הסדרה חייבת להיות עד 500 תווים.",totalPartsRange:"מספר החלקים חייב להיות בין 1 ל־10.",languageTooLong:"קוד השפה חייב להיות עד 10 תווים.",targetActionTooLong:"פעולת המטרה חייבת להיות עד 200 תווים.",daysBetweenRange:"מספר הימים בין מיילים חייב להיות בין 1 ל־365.",serverError:"משהו השתבש. אנא נסו שוב.",retryButton:"נסה שוב",serviceUnavailable:"השירות אינו זמין כרגע. אנא נסו שוב מאוחר יותר."},edit:{label:"הוראת עריכה",placeholder:"לדוגמה: תן לזה תחושה יותר דחופה",submitButton:"עדכון"},quickActions:{moreUrgent:"יותר דחוף",makeShorter:"קצר יותר",moreCasual:"יותר קליל",moreFormal:"יותר פורמלי"},sendAll:{button:"שלח הכל",loadingButton:"שולח…"},results:{sectionTitle:"ניוזלטרים שנוצרו",looksGoodButton:"נראה טוב"}}},Cj={actionCards:{email:"Design me an email",domain:"Find me a domain",sms:"Create SMS",analyze:"Analyze my business"},actionCardsDesc:{email:"Create a newsletter tailored to your business and language.",domain:"Find an available domain name that fits your brand.",sms:"Generate a marketing SMS ready to send.",analyze:"Get insights about your business, audience, and opportunities."},welcome:{heading:"Welcome",text:`Welcome to SendMsg 🚀. Here you'll find tools to market your business.
@@ -394,8 +394,8 @@ Newsletter creation ✉️, Landing pages 🎯, Digital courses 📇 and more`,s
394
394
  `);r=c.pop();for(const d of c){const f=d.split(`
395
395
  `)[0];if(console.log("[v3-sse] event:",f),d.startsWith("event: done")){const W=d.split(`
396
396
  data: `)[1];console.log("[v3-sse] done payload length:",W==null?void 0:W.length),l=JSON.parse(W)}else if(d.startsWith("event: error")){const W=d.split(`
397
- data: `)[1];throw console.error("[v3-sse] error event:",W),new Error(JSON.parse(W).reason)}}}if(!l)throw console.error("[v3-sse] no done event received. buffer was:",r.slice(0,500)),new Error("studio newsletter v3: stream ended without a done event");return console.log("[v3-sse] success, nodes count:",(i=l.nodes)==null?void 0:i.length),l}function Kj(e,t){const n=e??{},a=n.accountId||n.domain||n.websiteUrl||n.website||"",r=n.theme&&typeof n.theme=="object"?n.theme:{primary:"#1b65a0",secondary:"#841d94",colors:["#1b65a0","#ffffff"]},l={accountId:a,business_name:n.business_name||"",business_tone:n.business_tone||"",business_type:n.business_type||"",description:n.description||"",language:t,theme:r};return n.logo&&(l.logo=n.logo),n.website?l.website=n.website:n.websiteUrl&&(l.website=n.websiteUrl),n.socials&&(l.socials=n.socials),n.contacts&&(l.contacts=n.contacts),n.industry&&(l.industry=n.industry),typeof n.is_haredi_sector=="boolean"&&(l.is_haredi_sector=n.is_haredi_sector),n.owner_gender&&(l.owner_gender=n.owner_gender),n.businessDesign&&(l.businessDesign=n.businessDesign),n.designDescription&&(l.designDescription=n.designDescription),n.imageStyleDescription&&(l.imageStyleDescription=n.imageStyleDescription),n.keywords&&Array.isArray(n.keywords)&&(l.keywords=n.keywords),n.contentDiscovery&&typeof n.contentDiscovery=="object"&&(l.contentDiscovery=n.contentDiscovery),l}function Xc(e){if(!e||typeof e!="object")return null;const t={};for(const[n,a]of Object.entries(e))a!=null&&(t[n]=a);return Object.keys(t).length>0?t:null}async function Pj(e){if(!e.goal||!e.goal.trim())throw new Error("generateSeriesPrompt: goal is required and cannot be null or empty");const t={goal:e.goal.trim()};e.domain&&e.domain.trim()&&(t.domain=e.domain.trim()),e.totalParts!==void 0&&e.totalParts!==null&&(t.totalParts=e.totalParts),e.language&&e.language.trim()&&(t.language=e.language.trim()),e.targetAction&&e.targetAction.trim()&&(t.targetAction=e.targetAction.trim()),e.daysBetween!==void 0&&e.daysBetween!==null&&(t.daysBetween=e.daysBetween),e.context&&Object.keys(e.context).length>0&&(t.context=e.context);const n=await fetch(ea.SERIES_PROMPT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const a=await n.text();throw new Error(`generateSeriesPrompt failed: ${n.status} ${a}`)}return n.json()}async function Jj(e){const t={subject:e.subject,prompt:e.prompt,cta:e.cta,editInstruction:e.editInstruction,goal:e.goal,partNumber:e.partNumber,totalParts:e.totalParts};e.targetAction&&e.targetAction.trim()&&(t.targetAction=e.targetAction.trim()),e.language&&e.language.trim()&&(t.language=e.language.trim());const n=await fetch(ea.UPDATE_SERIES_PROMPT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const a=await n.text();throw new Error(`updateSeriesPrompt failed: ${n.status} ${a}`)}return n.json()}var Mg={},Dj=Fe;Object.defineProperty(Mg,"__esModule",{value:!0});var Qg=Mg.default=void 0,Yj=Dj(Oe()),Zj=A;Qg=Mg.default=(0,Yj.default)((0,Zj.jsx)("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchRounded");function _c(e){const t=v.useId().replace(/:/g,""),n=`cdtr-bai-${t}-c0`,a=`cdtr-bai-${t}-c1`;return A.jsxs("svg",{width:"20",height:"23",viewBox:"0 0 24 27",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,focusable:"false",...e,children:[A.jsx("path",{d:"M21 22H23V24H1V22H3V7C3 6.44772 3.44772 6 4 6H14C14.5523 6 15 6.44772 15 7V22H19V14H17V12H20C20.5523 12 21 12.4477 21 13V22ZM5 8V22H13V8H5ZM7 14H11V16H7V14ZM7 10H11V12H7V10Z",fill:"url(#cdtr-brand-gradient)"}),A.jsx("g",{clipPath:`url(#${n})`,children:A.jsx("path",{d:"M19.7134 7.12811L19.4668 7.69379C19.2864 8.10792 18.7136 8.10792 18.5331 7.69379L18.2866 7.12811C17.8471 6.11947 17.0554 5.31641 16.0677 4.87708L15.308 4.53922C14.8973 4.35653 14.8973 3.75881 15.308 3.57612L16.0252 3.25714C17.0384 2.80651 17.8442 1.97373 18.2761 0.930828L18.5293 0.319534C18.7058 -0.106511 19.2942 -0.106511 19.4706 0.319534L19.7238 0.930828C20.1558 1.97373 20.9616 2.80651 21.9748 3.25714L22.6919 3.57612C23.1027 3.75881 23.1027 4.35653 22.6919 4.53922L21.9323 4.87708C20.9445 5.31641 20.1529 6.11947 19.7134 7.12811Z",fill:"black"})}),A.jsx("g",{clipPath:`url(#${a})`,children:A.jsx("path",{d:"M19.7134 7.12811L19.4668 7.69379C19.2864 8.10792 18.7136 8.10792 18.5331 7.69379L18.2866 7.12811C17.8471 6.11947 17.0554 5.31641 16.0677 4.87708L15.308 4.53922C14.8973 4.35653 14.8973 3.75881 15.308 3.57612L16.0252 3.25714C17.0384 2.80651 17.8442 1.97373 18.2761 0.930828L18.5293 0.319534C18.7058 -0.106511 19.2942 -0.106511 19.4706 0.319534L19.7238 0.930828C20.1558 1.97373 20.9616 2.80651 21.9748 3.25714L22.6919 3.57612C23.1027 3.75881 23.1027 4.35653 22.6919 4.53922L21.9323 4.87708C20.9445 5.31641 20.1529 6.11947 19.7134 7.12811Z",fill:"url(#cdtr-brand-gradient)"})}),A.jsxs("defs",{children:[A.jsx("clipPath",{id:n,children:A.jsx("rect",{width:"9",height:"8",fill:"white",transform:"translate(15)"})}),A.jsx("clipPath",{id:a,children:A.jsx("rect",{width:"9",height:"8",fill:"white",transform:"translate(15)"})})]})]})}function Sa({title:e,description:t,children:n}){return A.jsxs(K,{component:"section",sx:{mb:{xs:2.5,sm:3.5}},children:[A.jsx(fe,{component:"h2",sx:{fontSize:"0.8125rem",fontWeight:700,color:"text.secondary",letterSpacing:"0.02em",mb:t?.5:1.25,lineHeight:1.3},children:e}),t?A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{mb:2,maxWidth:"min(52ch, 100%)",lineHeight:1.55,fontSize:"0.8125rem"},children:t}):null,n]})}const Vg=["נשמע עסק מעניין מאוד!","בואו נמצא את הדומיין המושלם עבורך!","אני מחפש את האפשרויות הטובות ביותר...","מצאתי כמה אפשרויות מעולות!"],tr=Ul;function Nj({activeStep:e,steps:t,userName:n,websiteUrl:a,hasContext:r,setWebsiteUrl:l,setActiveStep:o,freeSolo:i,businessNameOrDescription:s="",setBusinessNameOrDescription:p,language:u}){const[c,d]=v.useState(!!r),[f,W]=v.useState(!1),[m,x]=v.useState(!1),[h,g]=v.useState(s),[C,y]=v.useState([]),[E,S]=v.useState(!1),[k,R]=v.useState(null),[V,b]=v.useState(null),[B,M]=v.useState(""),F=v.useRef(a),z=v.useRef(!1),{openDomainFinder:T,setOpenDomainFinder:j,stepBeforeDomainFinder:P,step2Data:L}=Ua(),q=v.useRef(T),w=v.useRef(s);w.current=s;const H=v.useRef(L);H.current=L,v.useEffect(()=>{var ae,G,he,ge;if(T&&e===0&&(z.current=P===2,x(!0),l(""),y([]),R(null),b(null)),T){const me=((ae=w.current)==null?void 0:ae.trim())||((ge=(he=(G=H.current)==null?void 0:G.businessData)==null?void 0:he.business_name)==null?void 0:ge.trim())||"";g(me),me&&re(me)}},[T,e,P]),v.useEffect(()=>{q.current&&!T&&m&&!z.current&&(x(!1),y([]),R(null)),q.current=T},[T,m]);const te=()=>{j(!1),z.current||(x(!1),y([]),R(null))},Q=ae=>{const G=new CustomEvent("business-ai-buy-domain",{detail:{domain:ae},bubbles:!0,composed:!0});window.dispatchEvent(G)},N=()=>{z.current=!1,x(!0),l(""),p==null||p(""),g(""),y([]),R(null),b(null)},re=ae=>{const G=(ae??h.trim())||"business";p==null||p(G!=="business"?G:h.trim()),S(!0),R(null),b(null),y([]);const he={prompt:`find domain for ${G}`};u&&(he.language=u),fetch(ea.DOMAIN_FINDER,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(he)}).then(async ge=>{var Ke,qe;if(!ge.ok)throw new Error("Failed to fetch domain suggestions");const me=(Ke=ge.body)==null?void 0:Ke.getReader(),ve=new TextDecoder;let ce="",Ze=null;if(!me)throw new Error("Response body is not readable");let le=!1;for(;!le;){const Be=await me.read();if(le=Be.done,le)break;const{value:Te}=Be;ce+=ve.decode(Te,{stream:!0});const Pe=ce.split(`
398
- `);ce=Pe.pop()||"";for(const je of Pe)if(je.startsWith("data: ")){const it=je.slice(6);try{const D=JSON.parse(it);D.message&&!((qe=D.metadata)!=null&&qe.token)&&b(D.message),(D.suggestions&&Array.isArray(D.suggestions)||D.status==="complete"&&D.suggestions)&&(Ze=D,b(null))}catch{continue}}}if(ce.startsWith("data: ")){const Be=ce.slice(6);try{const Te=JSON.parse(Be);(Te.suggestions&&Array.isArray(Te.suggestions)||Te.status==="complete"&&Te.suggestions)&&(Ze=Te)}catch{}}return Ze}).then(ge=>{if(ge!=null&&ge.suggestions&&Array.isArray(ge.suggestions))y(ge.suggestions.map(me=>({domain:me.domain,available:me.available})));else if(ge!=null&&ge.data){const me=ge.data;Array.isArray(me)?y(me.map(ve=>({domain:ve}))):me!=null&&me.domains&&Array.isArray(me.domains)?y(me.domains.map(ve=>({domain:ve}))):me!=null&&me.domain?y([{domain:me.domain}]):y([])}else y([]);S(!1)}).catch(ge=>{console.error("Error fetching domains:",ge),R("לא הצלחנו לטעון הצעות דומיין"),S(!1)})};v.useEffect(()=>{if(!E){M("");return}let ae=0;M(Vg[ae]);const G=setInterval(()=>{ae=(ae+1)%Vg.length,M(Vg[ae])},2500);return()=>clearInterval(G)},[E]),v.useEffect(()=>{W(!0)},[]),v.useEffect(()=>{F.current=a},[a]),v.useEffect(()=>{g(s)},[s]);const ue=ae=>{d(ae)},X=ae=>{const G=ae.trim();return!G||G.startsWith("http://")||G.startsWith("https://")?G:"https://"+G},ee=ae=>{const G=ae.target.value,he=F.current;if(!G){F.current=G,l(G);return}if(G.includes("://")){F.current=G,l(G);return}if(G.startsWith("http://")||G.startsWith("https://")){F.current=G,l(G);return}const ge=he.includes("://"),me=G.length<he.length;if(ge&&!G.includes("://")&&(he.replace(/^https?:\/\//,"").startsWith(G)||me)){F.current=G,l(G);return}if(G.toLowerCase().startsWith("http")&&G.length<7){F.current=G,l(G);return}if(G.includes(".")||G.length>3){const ce=X(G);F.current=ce,l(ce)}else F.current=G,l(G)},de=ae=>{if(!ae.trim()||(ae.includes("http")||(ae="https://"+ae),!ae.includes(".")))return!1;try{const G=new URL(ae);return G.protocol==="http:"||G.protocol==="https:"}catch{return!1}};return A.jsxs(K,{sx:{position:"relative",padding:{xs:2,sm:3,md:5},width:{xs:"100%"},maxWidth:"100%",overflowY:"auto",boxSizing:"border-box"},children:[" ",A.jsx(ze,{variant:"text",color:"primary",onClick:te,sx:{mb:2,fontSize:{xs:"0.875rem",sm:"1rem"},textTransform:"none"},children:"חזרה"}),A.jsx(ij,{sx:{display:"none"},activeStep:e,children:t.map(ae=>A.jsx(Uq,{children:A.jsx(TI,{children:ae})},ae))}),A.jsxs(ut,{spacing:0,sx:{width:"100%"},children:[A.jsx(vn,{label:"Business AI",className:f?tr.fadeUp:"",sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"},icon:A.jsx(_c,{})}),A.jsxs(K,{className:f?tr.fadeUpDelay1:"",sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(fe,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary",mb:{xs:1,sm:1.25}},children:"מביאים את המותג שלך למערכת"}),A.jsxs(fe,{variant:"body2",color:"text.secondary",className:f?tr.fadeUpDelay2:"",sx:{fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(48ch, 100%)",lineHeight:1.55},children:[n?`היי ${n} — `:"","הזינו את כתובת האתר כדי שנמשוך לוגו, צבעים ותוכן, או המשיכו בלי אתר ונחפש דומיין מתאים."]})]}),m?A.jsx(K,{className:tr.stepView,sx:{width:"100%"},children:!E&&C.length===0&&!k?A.jsx(Sa,{title:"חיפוש דומיין",description:"תארו את העסק או את שם הדומיין הרצוי — נציע אפשרויות מתאימות.",children:A.jsx(at,{fullWidth:!0,variant:"outlined",placeholder:"שם העסק או תיאור קצר",autoComplete:"off",value:h,onChange:ae=>{g(ae.target.value),p==null||p(ae.target.value.trim())},onKeyDown:ae=>{ae.key==="Enter"&&h.trim()&&(ae.preventDefault(),re())},InputProps:{endAdornment:A.jsx(ug,{position:"end",children:A.jsx(ze,{variant:"contained",color:"primary",size:"small",disabled:!h.trim()||E,onClick:()=>re(),sx:{minWidth:0,px:1.25},"aria-label":"חפש דומיין",children:A.jsx(Qg,{fontSize:"small"})})})},className:f?tr.fadeUpDelay3:"",sx:{"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"}}}})}):E?A.jsxs(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:4,minHeight:220,borderRadius:2,border:"1px dashed",borderColor:"divider",bgcolor:ae=>un(ae.palette.common.black,.02)},children:[A.jsx(va,{sx:{mb:2,width:40,height:40}}),A.jsx(fe,{variant:"body1",color:"text.secondary",sx:{fontSize:"0.9375rem",textAlign:"center",px:2},children:V||B})]}):k?A.jsxs(A.Fragment,{children:[A.jsx(Ml,{severity:"error",sx:{mb:2,fontSize:"0.875rem"},children:k}),A.jsxs(ct,{container:!0,spacing:1,children:[A.jsx(ct,{item:!0,children:A.jsx(ze,{variant:"text",color:"primary",onClick:()=>{R(null),re()},sx:{fontSize:"0.875rem"},children:"נסה שוב"})}),A.jsx(ct,{item:!0,children:A.jsx(ze,{variant:"text",color:"primary",onClick:te,sx:{fontSize:"0.875rem"},children:"חזרה"})})]})]}):A.jsxs(Sa,{title:"תוצאות",description:"לחצו על דומיין לפתיחת רכישה. אפשר לחפש מחדש עם ניסוח אחר.",children:[A.jsx(at,{fullWidth:!0,variant:"outlined",placeholder:"שם העסק או תיאור קצר – חיפוש מחדש לתוצאות אחרות",autoComplete:"off",value:h,onChange:ae=>{g(ae.target.value),p==null||p(ae.target.value.trim())},onKeyDown:ae=>{ae.key==="Enter"&&h.trim()&&(ae.preventDefault(),re())},InputProps:{endAdornment:A.jsx(ug,{position:"end",children:A.jsx(ze,{variant:"contained",color:"primary",size:"small",disabled:!h.trim()||E,onClick:()=>re(),sx:{minWidth:0,px:1.25},"aria-label":"חפש דומיין",children:A.jsx(Qg,{fontSize:"small"})})})},sx:{mb:2,"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(K,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:1,mb:3},children:C.map((ae,G)=>A.jsxs(K,{onClick:()=>Q(ae.domain),sx:{border:"1px solid",borderColor:"divider",borderRadius:2,p:1.25,cursor:"pointer",transition:"border-color 0.2s ease, background-color 0.2s ease",bgcolor:he=>un(he.palette.common.black,.02),"&:hover":{borderColor:"primary.main",bgcolor:he=>un(he.palette.primary.main,.06)}},children:[A.jsx(fe,{sx:{fontSize:"0.875rem",fontWeight:500},children:ae.domain}),ae.available!==!1&&A.jsx(fe,{variant:"caption",color:"success.main",sx:{fontSize:"0.75rem"},children:"זמין"})]},G))}),A.jsxs(ct,{container:!0,spacing:1,justifyContent:"space-between",children:[A.jsx(ct,{item:!0,children:A.jsx(ze,{variant:"text",color:"primary",onClick:te,sx:{fontSize:"0.875rem"},children:"חזרה"})}),A.jsx(ct,{item:!0,children:A.jsx(ze,{variant:"contained",color:"primary",onClick:()=>{p==null||p(h.trim()),o(1)},sx:{fontSize:"0.875rem"},children:"הבא"})})]})]})}):A.jsxs(A.Fragment,{children:[A.jsxs(Sa,{title:"כתובת האתר",description:"כתובת מלאה כולל https. אין אתר? השתמשו בקישור מתחת לשדה.",children:[A.jsx(at,{fullWidth:!0,label:"URL",variant:"outlined",margin:"normal",placeholder:"https://www.example.com",value:a,onChange:ee,className:f?tr.fadeUpDelay3:"",sx:{"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"},textAlign:"right",direction:"rtl",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontWeight:500},"& .MuiInputLabel-root":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(ze,{variant:"text",color:"primary",onClick:N,className:f?tr.fadeUpDelay4:"",sx:{mt:{xs:.5,sm:1},fontSize:{xs:"0.8125rem",sm:"0.875rem"},textAlign:"right",whiteSpace:{xs:"normal",sm:"nowrap"},px:{xs:.5,sm:0},textTransform:"none"},children:"אני רוצה דומיין לעסק שלי"})]}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Sa,{title:"אישור והמשך",description:"נדרש לאימות הבעלות על האתר ולשימוש במידע ליצירת תכנים.",children:A.jsx(K,{sx:{p:{xs:1.25,sm:1.5},borderRadius:2,border:"1px solid",borderColor:"divider",bgcolor:ae=>un(ae.palette.common.black,.02)},children:A.jsx(Kc,{control:A.jsx(GU,{size:"small"}),checked:c,onChange:(ae,G)=>ue(G),className:f?tr.fadeUpDelay3:"",sx:{m:0,alignItems:"flex-start","& .MuiTypography-root":{fontSize:{xs:"0.75rem",sm:"0.8125rem"},lineHeight:1.45}},label:"אני מאשר.ת שהאתר בבעלותי, ואני מסכימה למערכת שלח מסר לשמור את המידע ולהשתמש בו ליצירת תכנים לעסק שלי"})})}),A.jsx(ze,{onClick:()=>{l(""),o(1)},variant:"text",color:"primary",className:f?tr.fadeUpDelay4:"",sx:{mt:{xs:1,sm:1.5},mb:{xs:1,sm:1.5},fontSize:{xs:"0.75rem",sm:"0.875rem"},textAlign:"center",whiteSpace:{xs:"normal",sm:"nowrap"},px:{xs:.5,sm:1}},children:"אין לי אתר, אני אמלא בעצמי"}),A.jsx(ze,{disabled:!de(a)||!c,variant:"contained",color:"primary",onClick:()=>o(1),fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:"הבא"}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ct,{className:f?tr.fadeUpDelay4:"",sx:{width:"100%",mt:{xs:2,sm:2.5,md:3}},justifyContent:{xs:"center",sm:"space-between"},container:!0,spacing:{xs:1,sm:0},children:i&&A.jsx(ct,{item:!0,xs:12,sm:"auto",children:A.jsx(ze,{variant:"text",color:"primary",disabled:!c,onClick:()=>{l(""),o(1)},fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:r?"צפייה במידע על העסק שלי":""})})})]})]})]})}var Ug={},Gj=Fe;Object.defineProperty(Ug,"__esModule",{value:!0});var Fl=Ug.default=void 0,Hj=Gj(Oe()),Xj=A;Fl=Ug.default=(0,Hj.default)((0,Xj.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var Fg={},_j=Fe;Object.defineProperty(Fg,"__esModule",{value:!0});var Qs=Fg.default=void 0,$j=_j(Oe()),eT=A;Qs=Fg.default=(0,$j.default)((0,eT.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var zg={},tT=Fe;Object.defineProperty(zg,"__esModule",{value:!0});var cx=zg.default=void 0,nT=tT(Oe()),aT=A;cx=zg.default=(0,nT.default)((0,aT.jsx)("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload");var qg={},rT=Fe;Object.defineProperty(qg,"__esModule",{value:!0});var Ax=qg.default=void 0,lT=rT(Oe()),oT=A;Ax=qg.default=(0,lT.default)((0,oT.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image");var jg={},iT=Fe;Object.defineProperty(jg,"__esModule",{value:!0});var dx=jg.default=void 0,sT=iT(Oe()),pT=A;dx=jg.default=(0,sT.default)((0,pT.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Tg={},uT=Fe;Object.defineProperty(Tg,"__esModule",{value:!0});var fx=Tg.default=void 0,cT=uT(Oe()),AT=A;fx=Tg.default=(0,cT.default)((0,AT.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Og={},dT=Fe;Object.defineProperty(Og,"__esModule",{value:!0});var Wx=Og.default=void 0,fT=dT(Oe()),WT=A;Wx=Og.default=(0,fT.default)((0,WT.jsx)("path",{d:"M9.5 11c1.93 0 3.5 1.57 3.5 3.5S11.43 18 9.5 18 6 16.43 6 14.5 7.57 11 9.5 11m0-2C6.46 9 4 11.46 4 14.5S6.46 20 9.5 20s5.5-2.46 5.5-5.5c0-1.16-.36-2.23-.97-3.12L18 7.42V10h2V4h-6v2h2.58l-3.97 3.97C11.73 9.36 10.66 9 9.5 9"}),"Male");var Kg={},gT=Fe;Object.defineProperty(Kg,"__esModule",{value:!0});var gx=Kg.default=void 0,hT=gT(Oe()),mT=A;gx=Kg.default=(0,hT.default)((0,mT.jsx)("path",{d:"M17.5 9.5C17.5 6.46 15.04 4 12 4S6.5 6.46 6.5 9.5c0 2.7 1.94 4.93 4.5 5.4V17H9v2h2v2h2v-2h2v-2h-2v-2.1c2.56-.47 4.5-2.7 4.5-5.4m-9 0C8.5 7.57 10.07 6 12 6s3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5"}),"Female");var Pg={},CT=Fe;Object.defineProperty(Pg,"__esModule",{value:!0});var hx=Pg.default=void 0,vT=CT(Oe()),yT=A;hx=Pg.default=(0,vT.default)((0,yT.jsx)("path",{d:"M12 8c1.93 0 3.5 1.57 3.5 3.5S13.93 15 12 15s-3.5-1.57-3.5-3.5S10.07 8 12 8m4.53.38 3.97-3.96V7h2V1h-6v2h2.58l-3.97 3.97C14.23 6.36 13.16 6 12 6s-2.23.36-3.11.97l-.65-.65 1.41-1.41-1.41-1.42L6.82 4.9 4.92 3H7.5V1h-6v6h2V4.42l1.91 1.9-1.42 1.42L5.4 9.15l1.41-1.41.65.65c-.6.88-.96 1.95-.96 3.11 0 2.7 1.94 4.94 4.5 5.41V19H9v2h2v2h2v-2h2v-2h-2v-2.09c2.56-.47 4.5-2.71 4.5-5.41 0-1.16-.36-2.23-.97-3.12"}),"Transgender");var Jg={},ST=Fe;Object.defineProperty(Jg,"__esModule",{value:!0});var mx=Jg.default=void 0;ET(v);var IT=ST(Oe()),xT=A;function Cx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Cx=function(a){return a?n:t})(e)}function ET(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Cx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}mx=Jg.default=(0,IT.default)((0,xT.jsx)("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook");var Dg={},bT=Fe;Object.defineProperty(Dg,"__esModule",{value:!0});var vx=Dg.default=void 0;RT(v);var kT=bT(Oe()),wT=A;function yx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(yx=function(a){return a?n:t})(e)}function RT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=yx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}vx=Dg.default=(0,kT.default)((0,wT.jsx)("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram");var Yg={},BT=Fe;Object.defineProperty(Yg,"__esModule",{value:!0});var Sx=Yg.default=void 0;QT(v);var LT=BT(Oe()),MT=A;function Ix(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ix=function(a){return a?n:t})(e)}function QT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ix(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Sx=Yg.default=(0,LT.default)((0,MT.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");var Zg={},VT=Fe;Object.defineProperty(Zg,"__esModule",{value:!0});var xx=Zg.default=void 0;zT(v);var UT=VT(Oe()),FT=A;function Ex(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ex=function(a){return a?n:t})(e)}function zT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ex(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}xx=Zg.default=(0,UT.default)((0,FT.jsx)("path",{d:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"}),"YouTube");var Ng={},qT=Fe;Object.defineProperty(Ng,"__esModule",{value:!0});var bx=Ng.default=void 0;OT(v);var jT=qT(Oe()),TT=A;function kx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(kx=function(a){return a?n:t})(e)}function OT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=kx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}bx=Ng.default=(0,jT.default)((0,TT.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}),"X");var Gg={},KT=Fe;Object.defineProperty(Gg,"__esModule",{value:!0});var wx=Gg.default=void 0;DT(v);var PT=KT(Oe()),JT=A;function Rx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Rx=function(a){return a?n:t})(e)}function DT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Rx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}wx=Gg.default=(0,PT.default)((0,JT.jsx)("path",{d:"M16.75 13.96c.25.13.41.2.46.3.06.11.04.61-.21 1.18-.2.56-1.24 1.1-1.7 1.12-.46.02-.47.36-2.96-.73-2.49-1.09-3.99-3.75-4.11-3.92-.12-.17-.96-1.38-.92-2.61.05-1.22.69-1.8.95-2.04.24-.26.51-.29.68-.26h.47c.15 0 .36-.06.55.45l.69 1.87c.06.13.1.28.01.44l-.27.41-.39.42c-.12.12-.26.25-.12.5.12.26.62 1.09 1.32 1.78.91.88 1.71 1.17 1.95 1.3.24.14.39.12.54-.04l.81-.94c.19-.25.35-.19.58-.11l1.67.88M12 2a10 10 0 0 1 10 10 10 10 0 0 1-10 10c-1.97 0-3.8-.57-5.35-1.55L2 22l1.55-4.65A9.969 9.969 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8c0 1.72.54 3.31 1.46 4.61L4.5 19.5l2.89-.96A7.95 7.95 0 0 0 12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8z"}),"WhatsApp");var Hg={},YT=Fe;Object.defineProperty(Hg,"__esModule",{value:!0});var Bx=Hg.default=void 0;GT(v);var ZT=YT(Oe()),NT=A;function Lx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Lx=function(a){return a?n:t})(e)}function GT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Lx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Bx=Hg.default=(0,ZT.default)((0,NT.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram");var Xg={},HT=Fe;Object.defineProperty(Xg,"__esModule",{value:!0});var Mx=Xg.default=void 0;$T(v);var XT=HT(Oe()),_T=A;function Qx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Qx=function(a){return a?n:t})(e)}function $T(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Qx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Mx=Xg.default=(0,XT.default)((0,_T.jsx)("path",{d:"M22 12.14a2.19 2.19 0 0 0-3.71-1.57 10.93 10.93 0 0 0-5.86-1.87l1-4.7 3.27.71a1.56 1.56 0 1 0 .16-.76l-3.64-.77c-.11-.02-.22 0-.29.06-.09.05-.14.14-.16.26l-1.11 5.22c-2.33.07-4.43.78-5.95 1.86A2.2 2.2 0 0 0 4.19 10a2.16 2.16 0 0 0-.9 4.15 3.6 3.6 0 0 0-.05.66c0 3.37 3.92 6.12 8.76 6.12s8.76-2.73 8.76-6.12c0-.21-.01-.44-.05-.66A2.21 2.21 0 0 0 22 12.14M7 13.7c0-.86.68-1.56 1.54-1.56s1.56.7 1.56 1.56a1.56 1.56 0 0 1-1.56 1.56c-.86.02-1.54-.7-1.54-1.56m8.71 4.14C14.63 18.92 12.59 19 12 19c-.61 0-2.65-.1-3.71-1.16a.4.4 0 0 1 0-.57.4.4 0 0 1 .57 0c.68.68 2.14.91 3.14.91s2.47-.23 3.14-.91a.4.4 0 0 1 .57 0c.14.16.14.41 0 .57m-.29-2.56c-.86 0-1.56-.7-1.56-1.56a1.56 1.56 0 0 1 1.56-1.56c.86 0 1.58.7 1.58 1.56a1.6 1.6 0 0 1-1.58 1.56z"}),"Reddit");var _g={},e6=Fe;Object.defineProperty(_g,"__esModule",{value:!0});var Vx=_g.default=void 0;a6(v);var t6=e6(Oe()),n6=A;function Ux(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ux=function(a){return a?n:t})(e)}function a6(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ux(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Vx=_g.default=(0,t6.default)((0,n6.jsx)("path",{d:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z"}),"Pinterest");var $g={},r6=Fe;Object.defineProperty($g,"__esModule",{value:!0});var Fx=$g.default=void 0;i6(v);var l6=r6(Oe()),o6=A;function zx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(zx=function(a){return a?n:t})(e)}function i6(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=zx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Fx=$g.default=(0,l6.default)((0,o6.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var eh={},s6=Fe;Object.defineProperty(eh,"__esModule",{value:!0});var qx=eh.default=void 0,p6=s6(Oe()),u6=A;qx=eh.default=(0,p6.default)((0,u6.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var th={},c6=Fe;Object.defineProperty(th,"__esModule",{value:!0});var jx=th.default=void 0,A6=c6(Oe()),d6=A;jx=th.default=(0,A6.default)((0,d6.jsx)("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H3V5h18zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3"}),"MusicVideo");function f6({value:e,onChange:t,label:n="מילות מפתח",placeholder:a="הוספת מילת מפתח..."}){const[r,l]=v.useState(""),o=(s,p)=>{t(p)},i=(s,p)=>{l(p)};return A.jsx($W,{multiple:!0,freeSolo:!0,options:[],value:e,onChange:o,inputValue:r,onInputChange:i,renderTags:(s,p)=>s.map((u,c)=>v.createElement(vn,{variant:"outlined",label:u,...p({index:c}),key:c})),renderInput:s=>A.jsx(at,{...s,label:n,placeholder:a,variant:"outlined",margin:"normal"}),sx:{"& .MuiAutocomplete-tag":{margin:"4px"}}})}var nh={},W6=Fe;Object.defineProperty(nh,"__esModule",{value:!0});var ah=nh.default=void 0,g6=W6(Oe()),h6=A;ah=nh.default=(0,g6.default)((0,h6.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var Ho=255,Fa=100,Vs=e=>{var{r:t,g:n,b:a,a:r}=e,l=Math.max(t,n,a),o=l-Math.min(t,n,a),i=o?l===t?(n-a)/o:l===n?2+(a-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:l?o/l*Fa:0,v:l/Ho*Fa,a:r}},Tx=e=>{var{h:t,s:n,l:a,a:r}=rh(e);return"hsla("+t+", "+n+"%, "+a+"%, "+r+")"},$c=e=>{var{h:t,s:n,l:a,a:r}=e;return n*=(a<50?a:Fa-a)/Fa,{h:t,s:n>0?2*n/(a+n)*Fa:0,v:a+n,a:r}},rh=e=>{var{h:t,s:n,v:a,a:r}=e,l=(200-n)*a/Fa;return{h:t,s:l>0&&l<200?n*a/Fa/(l<=Fa?l:200-l)*Fa:0,l:l/2,a:r}},Ox=e=>{var{r:t,g:n,b:a}=e,r=t<<16|n<<8|a;return"#"+(l=>new Array(7-l.length).join("0")+l)(r.toString(16))},Kx=e=>{var{r:t,g:n,b:a,a:r}=e,l=typeof r=="number"&&(r*255|256).toString(16).slice(1);return""+Ox({r:t,g:n,b:a})+(l||"")},zl=e=>Vs(m6(e)),m6=e=>{var t=e.replace("#","");/^#?/.test(e)&&t.length===3&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=new RegExp("[A-Za-z0-9]{2}","g"),[a,r,l=0,o]=e.match(n).map(i=>parseInt(i,16));return{r:a,g:r,b:l,a:(o??255)/Ho}},Us=e=>{var{h:t,s:n,v:a,a:r}=e,l=t/60,o=n/Fa,i=a/Fa,s=Math.floor(l)%6,p=l-Math.floor(l),u=Ho*i*(1-o),c=Ho*i*(1-o*p),d=Ho*i*(1-o*(1-p));i*=Ho;var f={};switch(s){case 0:f.r=i,f.g=d,f.b=u;break;case 1:f.r=c,f.g=i,f.b=u;break;case 2:f.r=u,f.g=i,f.b=d;break;case 3:f.r=u,f.g=c,f.b=i;break;case 4:f.r=d,f.g=u,f.b=i;break;case 5:f.r=i,f.g=u,f.b=c;break}return f.r=Math.round(f.r),f.g=Math.round(f.g),f.b=Math.round(f.b),I({},f,{a:r})},C6=e=>{var{r:t,g:n,b:a,a:r}=Us(e);return"rgba("+t+", "+n+", "+a+", "+r+")"},v6=e=>{var{r:t,g:n,b:a}=e;return{r:t,g:n,b:a}},y6=e=>{var{h:t,s:n,l:a}=e;return{h:t,s:n,l:a}},lh=e=>Ox(Us(e)),S6=e=>Kx(Us(e)),I6=e=>{var{h:t,s:n,v:a}=e;return{h:t,s:n,v:a}},x6=e=>{var{r:t,g:n,b:a}=e,r=function(u){return u<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)},l=r(t/255),o=r(n/255),i=r(a/255),s={};return s.x=l*.4124+o*.3576+i*.1805,s.y=l*.2126+o*.7152+i*.0722,s.bri=l*.0193+o*.1192+i*.9505,s},za=e=>{var t,n,a,r,l,o,i,s,p;return typeof e=="string"&&oh(e)?(o=zl(e),s=e):typeof e!="string"&&(o=e),o&&(a=I6(o),l=rh(o),r=Us(o),p=Kx(r),s=lh(o),n=y6(l),t=v6(r),i=x6(t)),{rgb:t,hsl:n,hsv:a,rgba:r,hsla:l,hsva:o,hex:s,hexa:p,xy:i}},oh=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),E6=rS();const Ia=Dl(E6);function Px(e){var t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useCallback((n,a)=>t.current&&t.current(n,a),[])}var Fs=e=>"touches"in e,Jx=e=>{!Fs(e)&&e.preventDefault&&e.preventDefault()},Dx=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=1),t>a?a:t<n?n:t},Yx=(e,t)=>{var n=e.getBoundingClientRect(),a=Fs(t)?t.touches[0]:t;return{left:Dx((a.pageX-(n.left+window.pageXOffset))/n.width),top:Dx((a.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:a.pageX-(n.left+window.pageXOffset),y:a.pageY-(n.top+window.pageYOffset)}},b6=["prefixCls","className","onMove","onDown"],ih=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-interactive",className:a,onMove:r,onDown:l}=e,o=Ia(e,b6),i=v.useRef(null),s=v.useRef(!1),[p,u]=v.useState(!1),c=Px(r),d=Px(l),f=g=>s.current&&!Fs(g)?!1:(s.current=Fs(g),!0),W=v.useCallback(g=>{if(Jx(g),!!i.current){var C=Fs(g)?g.touches.length>0:g.buttons>0;if(!C){u(!1);return}c==null||c(Yx(i.current,g),g)}},[c]),m=v.useCallback(()=>u(!1),[]),x=v.useCallback(g=>{g?(window.addEventListener(s.current?"touchmove":"mousemove",W),window.addEventListener(s.current?"touchend":"mouseup",m)):(window.removeEventListener("mousemove",W),window.removeEventListener("mouseup",m),window.removeEventListener("touchmove",W),window.removeEventListener("touchend",m))},[W,m]);v.useEffect(()=>(x(p),()=>{x(!1)}),[p,W,m,x]);var h=v.useCallback(g=>{var C=document.activeElement;C==null||C.blur(),Jx(g.nativeEvent),f(g.nativeEvent)&&i.current&&(d==null||d(Yx(i.current,g.nativeEvent),g.nativeEvent),u(!0))},[d]);return A.jsx("div",I({},o,{className:[n,a||""].filter(Boolean).join(" "),style:I({},o.style,{touchAction:"none"}),ref:i,tabIndex:0,onMouseDown:h,onTouchStart:h}))});ih.displayName="Interactive";var k6=["className","prefixCls","left","top","style","fillProps"],w6=e=>{var{className:t,prefixCls:n,left:a,top:r,style:l,fillProps:o}=e,i=Ia(e,k6),s=I({},l,{position:"absolute",left:a,top:r}),p=I({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},o==null?void 0:o.style,{transform:a?"translate(-9px, -1px)":"translate(-1px, -9px)"});return A.jsx("div",I({className:n+"-pointer "+(t||""),style:s},i,{children:A.jsx("div",I({className:n+"-fill"},o,{style:p}))}))},R6=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],B6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",eA=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-alpha",className:a,hsva:r,background:l,bgProps:o={},innerProps:i={},pointerProps:s={},radius:p=0,width:u,height:c=16,direction:d="horizontal",style:f,onChange:W,pointer:m}=e,x=Ia(e,R6),h=V=>{W&&W(I({},r,{a:d==="horizontal"?V.left:V.top}),V)},g=Tx(Object.assign({},r,{a:1})),C="linear-gradient(to "+(d==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+g+" 100%)",y={};d==="horizontal"?y.left=r.a*100+"%":y.top=r.a*100+"%";var E=I({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:p,background:"url("+B6+") left center",backgroundColor:"var(--alpha-background-color)"},{width:u,height:c},f,{position:"relative"}),S=v.useCallback(V=>{var b=.01,B=r.a,M=B;switch(V.key){case"ArrowLeft":d==="horizontal"&&(M=Math.max(0,B-b),V.preventDefault());break;case"ArrowRight":d==="horizontal"&&(M=Math.min(1,B+b),V.preventDefault());break;case"ArrowUp":d==="vertical"&&(M=Math.max(0,B-b),V.preventDefault());break;case"ArrowDown":d==="vertical"&&(M=Math.min(1,B+b),V.preventDefault());break;default:return}if(M!==B){var F={left:d==="horizontal"?M:r.a,top:d==="vertical"?M:r.a,width:0,height:0,x:0,y:0};W&&W(I({},r,{a:M}),F)}},[r,d,W]),k=v.useCallback(V=>{V.target.focus()},[]),R=m&&typeof m=="function"?m(I({prefixCls:n},s,y)):A.jsx(w6,I({},s,{prefixCls:n},y));return A.jsxs("div",I({},x,{className:[n,n+"-"+d,a||""].filter(Boolean).join(" "),style:E,ref:t,children:[A.jsx("div",I({},o,{style:I({inset:0,position:"absolute",background:l||C,borderRadius:p},o.style)})),A.jsx(ih,I({},i,{style:I({},i.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:h,onDown:h,onClick:k,onKeyDown:S,children:R}))]}))});eA.displayName="Alpha";var L6=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],M6=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Q6=e=>Number(String(e).replace(/%/g,"")),Xo=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input",placement:a="bottom",label:r,value:l,className:o,style:i,labelStyle:s,inputStyle:p,onChange:u,onBlur:c,renderInput:d}=e,f=Ia(e,L6),[W,m]=v.useState(l),x=v.useRef(!1),h=v.useRef(f.id||n+"-"+Math.random().toString(36).slice(2,11)),g=f.id||h.current;v.useEffect(()=>{e.value!==W&&(x.current||m(e.value))},[e.value]);function C(V,b){var B=(b||V.target.value).trim().replace(/^#/,"");M6(B)&&u&&u(V,B);var M=Q6(B);isNaN(M)||u&&u(V,M),m(B)}function y(V){x.current=!1,m(e.value),c&&c(V)}var E={};a==="bottom"&&(E.flexDirection="column"),a==="top"&&(E.flexDirection="column-reverse"),a==="left"&&(E.flexDirection="row-reverse");var S=I({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},E,i),k=I({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},p),R=I({value:W,onChange:C,onBlur:y,autoComplete:"off",onFocus:()=>x.current=!0},f,{id:g,style:k,onFocusCapture:V=>{var b=V.target;b.setSelectionRange(b.value.length,b.value.length)}});return A.jsxs("div",{className:[n,o||""].filter(Boolean).join(" "),style:S,children:[d?d(R,t):A.jsx("input",I({ref:t},R)),r&&A.jsx("label",{htmlFor:g,style:I({color:"var(--editable-input-label-color)",textTransform:"capitalize"},s),children:r})]})});Xo.displayName="EditableInput";var V6=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],Zx=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-swatch",className:a,color:r,colors:l=[],style:o,rectProps:i={},onChange:s,addonAfter:p,addonBefore:u,rectRender:c}=e,d=Ia(e,V6),f=I({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},i.style),W=(m,x)=>{s&&s(zl(m),za(zl(m)),x)};return A.jsxs("div",I({ref:t},d,{className:[n,a||""].filter(Boolean).join(" "),style:I({display:"flex",flexWrap:"wrap",position:"relative"},o),children:[u&&ht.isValidElement(u)&&u,l&&Array.isArray(l)&&l.map((m,x)=>{var h="",g="";typeof m=="string"&&(h=m,g=m),typeof m=="object"&&m.color&&(h=m.title||m.color,g=m.color);var C=r&&r.toLocaleLowerCase()===g.toLocaleLowerCase(),y=c&&c({title:h,color:g,checked:!!C,style:I({},f,{background:g}),onClick:S=>W(g,S)});if(y)return A.jsx(v.Fragment,{children:y},x);var E=i.children&&ht.isValidElement(i.children)?ht.cloneElement(i.children,{color:g,checked:C}):null;return A.jsx("div",I({tabIndex:0,title:h,onClick:S=>W(g,S)},i,{children:E,style:I({},f,{background:g})}),x)}),p&&ht.isValidElement(p)&&p]}))});Zx.displayName="Swatch";function U6(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var F6={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function z6(e){var{style:t,title:n,checked:a,color:r,onClick:l,rectProps:o}=e,i=v.useRef(null),s=v.useCallback(()=>{i.current.style.zIndex="2",i.current.style.outline="#fff solid 2px",i.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),p=v.useCallback(()=>{a||(i.current.style.zIndex="0",i.current.style.outline="initial",i.current.style.boxShadow="initial")},[a]),u=a?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return A.jsx("div",I({ref:i,title:n},o,{onClick:l,onMouseEnter:s,onMouseLeave:p,style:I({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},F6,u,o==null?void 0:o.style)}))}var q6=["prefixCls","placement","className","style","color","colors","showTriangle","rectProps","onChange","rectRender"],j6=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],Pt=function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e}({}),Nx=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-github",placement:a=Pt.TopRight,className:r,style:l,color:o,colors:i=j6,showTriangle:s=!0,rectProps:p={},onChange:u,rectRender:c}=e,d=Ia(e,q6),f=typeof o=="string"&&oh(o)?zl(o):o,W=o?lh(f):"",m=E=>u&&u(za(E)),x=I({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},l),h={borderStyle:"solid",position:"absolute"},g=I({},h),C=I({},h);/^T/.test(a)&&(g.borderWidth="0 8px 8px",g.borderColor="transparent transparent var(--github-arrow-border-color)",C.borderWidth="0 7px 7px",C.borderColor="transparent transparent var(--github-background-color)"),a===Pt.TopRight&&(g.top=-8,C.top=-7),a===Pt.Top&&(g.top=-8,C.top=-7),a===Pt.TopLeft&&(g.top=-8,C.top=-7),/^B/.test(a)&&(g.borderWidth="8px 8px 0",g.borderColor="var(--github-arrow-border-color) transparent transparent",C.borderWidth="7px 7px 0",C.borderColor="var(--github-background-color) transparent transparent",a===Pt.BottomRight&&(g.top="100%",C.top="100%"),a===Pt.Bottom&&(g.top="100%",C.top="100%"),a===Pt.BottomLeft&&(g.top="100%",C.top="100%")),/^(B|T)/.test(a)&&((a===Pt.Top||a===Pt.Bottom)&&(g.left="50%",g.marginLeft=-8,C.left="50%",C.marginLeft=-7),(a===Pt.TopRight||a===Pt.BottomRight)&&(g.right=10,C.right=11),(a===Pt.TopLeft||a===Pt.BottomLeft)&&(g.left=7,C.left=8)),/^L/.test(a)&&(g.borderWidth="8px 8px 8px 0",g.borderColor="transparent var(--github-arrow-border-color) transparent transparent",C.borderWidth="7px 7px 7px 0",C.borderColor="transparent var(--github-background-color) transparent transparent",g.left=-8,C.left=-7),/^R/.test(a)&&(g.borderWidth="8px 0 8px 8px",g.borderColor="transparent transparent transparent var(--github-arrow-border-color)",C.borderWidth="7px 0 7px 7px",C.borderColor="transparent transparent transparent var(--github-background-color)",g.right=-8,C.right=-7),/^(L|R)/.test(a)&&((a===Pt.RightTop||a===Pt.LeftTop)&&(g.top=5,C.top=6),(a===Pt.Left||a===Pt.Right)&&(g.top="50%",C.top="50%",g.marginTop=-8,C.marginTop=-7),(a===Pt.LeftBottom||a===Pt.RightBottom)&&(g.top="100%",C.top="100%",g.marginTop=-21,C.marginTop=-20));var y=E=>{var S=I({},(U6(E),E)),k=c&&c(I({},S));return k||A.jsx(z6,I({},S,{rectProps:p}))};return A.jsx(Zx,I({ref:t,className:[n,r].filter(Boolean).join(" "),colors:i,color:W,rectRender:y},d,{onChange:m,style:x,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:A.jsx(v.Fragment,{children:s&&A.jsxs(v.Fragment,{children:[A.jsx("div",{style:g}),A.jsx("div",{style:C})]})})}))});Nx.displayName="Github";var T6=e=>{var{className:t,color:n,left:a,top:r,prefixCls:l}=e,o={position:"absolute",top:r,left:a},i={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:n};return v.useMemo(()=>A.jsx("div",{className:l+"-pointer "+(t||""),style:o,children:A.jsx("div",{className:l+"-fill",style:i})}),[r,a,n,t,l])},O6=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],Gx=ht.forwardRef((e,t)=>{var n,{prefixCls:a="w-color-saturation",radius:r=0,pointer:l,className:o,hue:i=0,style:s,hsva:p,onChange:u}=e,c=Ia(e,O6),d=I({width:200,height:200,borderRadius:r},s,{position:"relative"}),f=v.useRef(null),W=v.useCallback(C=>{f.current=C,typeof t=="function"?t(C):t&&"current"in t&&(t.current=C)},[t]),m=v.useCallback((C,y)=>{u&&p&&u({h:p.h,s:C.left*100,v:(1-C.top)*100,a:p.a});var E=f.current;E&&E.focus()},[p,u]),x=v.useCallback(C=>{if(!(!p||!u)){var y=1,E=p.s,S=p.v,k=!1;switch(C.key){case"ArrowLeft":E=Math.max(0,p.s-y),k=!0,C.preventDefault();break;case"ArrowRight":E=Math.min(100,p.s+y),k=!0,C.preventDefault();break;case"ArrowUp":S=Math.min(100,p.v+y),k=!0,C.preventDefault();break;case"ArrowDown":S=Math.max(0,p.v-y),k=!0,C.preventDefault();break;default:return}k&&u({h:p.h,s:E,v:S,a:p.a})}},[p,u]),h=v.useMemo(()=>{if(!p)return null;var C={top:100-p.v+"%",left:p.s+"%",color:Tx(p)};return l&&typeof l=="function"?l(I({prefixCls:a},C)):A.jsx(T6,I({prefixCls:a},C))},[p,l,a]),g=v.useCallback(C=>{C.target.focus()},[]);return A.jsx(ih,I({className:[a,o||""].filter(Boolean).join(" ")},c,{style:I({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((n=p==null?void 0:p.h)!=null?n:i)+", 100%, 50%))"},d,{outline:"none"}),ref:W,onMove:m,onDown:m,onKeyDown:x,onClick:g,children:h}))});Gx.displayName="Saturation";var K6=["prefixCls","className","hue","onChange","direction"],Hx=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-hue",className:a,hue:r=0,onChange:l,direction:o="horizontal"}=e,i=Ia(e,K6);return A.jsx(eA,I({ref:t,className:n+" "+(a||"")},i,{direction:o,background:"linear-gradient(to "+(o==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:r,s:100,v:100,a:r/360},onChange:(s,p)=>{l&&l({h:o==="horizontal"?360*p.left:360*p.top})}}))});Hx.displayName="Hue";var P6=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],sh=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-rgba",hsva:a,placement:r="bottom",rProps:l={},gProps:o={},bProps:i={},aProps:s={},className:p,style:u,onChange:c}=e,d=Ia(e,P6),f=a?Us(a):{};function W(g){var C=Number(g.target.value);C&&C>255&&(g.target.value="255"),C&&C<0&&(g.target.value="0")}var m=g=>{var C=Number(g.target.value);C&&C>100&&(g.target.value="100"),C&&C<0&&(g.target.value="0")},x=(g,C,y)=>{typeof g=="number"&&(C==="a"&&(g<0&&(g=0),g>100&&(g=100),c&&c(za(Vs(I({},f,{a:g/100}))))),g>255&&(g=255,y.target.value="255"),g<0&&(g=0,y.target.value="0"),C==="r"&&c&&c(za(Vs(I({},f,{r:g})))),C==="g"&&c&&c(za(Vs(I({},f,{g})))),C==="b"&&c&&c(za(Vs(I({},f,{b:g})))))},h=f.a?Math.round(f.a*100)/100:0;return A.jsxs("div",I({ref:t,className:[n,p||""].filter(Boolean).join(" ")},d,{style:I({fontSize:11,display:"flex"},u),children:[A.jsx(Xo,I({label:"R",value:f.r||0,onBlur:W,placement:r,onChange:(g,C)=>x(C,"r",g)},l,{style:I({},l.style)})),A.jsx(Xo,I({label:"G",value:f.g||0,onBlur:W,placement:r,onChange:(g,C)=>x(C,"g",g)},o,{style:I({marginLeft:5},o.style)})),A.jsx(Xo,I({label:"B",value:f.b||0,onBlur:W,placement:r,onChange:(g,C)=>x(C,"b",g)},i,{style:I({marginLeft:5},i.style)})),s&&A.jsx(Xo,I({label:"A",value:parseInt(String(h*100),10),onBlur:m,placement:r,onChange:(g,C)=>x(C,"a",g)},s,{style:I({marginLeft:5},s.style)}))]}))});sh.displayName="EditableInputRGBA";var J6=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],Xx=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-hsla",hsva:a,hProps:r={},sProps:l={},lProps:o={},aProps:i={},className:s,onChange:p}=e,u=Ia(e,J6),c=a?rh(a):{h:0,s:0,l:0,a:0},d=(W,m,x)=>{typeof W=="number"&&(m==="h"&&(W<0&&(W=0),W>360&&(W=360),p&&p(za($c(I({},c,{h:W}))))),m==="s"&&(W<0&&(W=0),W>100&&(W=100),p&&p(za($c(I({},c,{s:W}))))),m==="l"&&(W<0&&(W=0),W>100&&(W=100),p&&p(za($c(I({},c,{l:W}))))),m==="a"&&(W<0&&(W=0),W>1&&(W=1),p&&p(za($c(I({},c,{a:W}))))))},f=i==!1?!1:I({label:"A",value:Math.round(c.a*100)/100},i,{onChange:(W,m)=>d(m,"a")});return A.jsx(sh,I({ref:t,hsva:a,rProps:I({label:"H",value:Math.round(c.h)},r,{onChange:(W,m)=>d(m,"h")}),gProps:I({label:"S",value:Math.round(c.s)+"%"},l,{onChange:(W,m)=>d(m,"s")}),bProps:I({label:"L",value:Math.round(c.l)+"%"},o,{onChange:(W,m)=>d(m,"l")}),aProps:f,className:[n,s||""].filter(Boolean).join(" ")},u))});Xx.displayName="EditableInputHSLA";var D6=["style"];function Y6(e){var{style:t}=e,n=Ia(e,D6),a=v.useRef(null),r=v.useCallback(()=>{a.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),l=v.useCallback(()=>{a.current.style.backgroundColor="transparent"},[]);return A.jsx("div",I({ref:a,style:I({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},t)},n,{onMouseEnter:r,onMouseLeave:l,children:A.jsx("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:A.jsx("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}function Z6(){return"EyeDropper"in window}function N6(e){var t=()=>{if("EyeDropper"in window){var n=new window.EyeDropper;n.open().then(a=>{e.onPickColor==null||e.onPickColor(a.sRGBHex)}).catch(a=>{a.name})}};return A.jsx("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:t,children:A.jsx("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var G6=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],qa=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),_x=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-chrome",className:a,style:r,color:l,showEditableInput:o=!0,showEyeDropper:i=!0,showColorPreview:s=!0,showHue:p=!0,showAlpha:u=!0,inputType:c=qa.RGBA,rectProps:d={},onChange:f}=e,W=Ia(e,G6),m=typeof l=="string"&&oh(l)?zl(l):l||{h:0,s:0,l:0,a:0},x=B=>f&&f(za(B)),[h,g]=v.useState(c),C=()=>{h===qa.RGBA&&g(qa.HSLA),h===qa.HSLA&&g(qa.HEXA),h===qa.HEXA&&g(qa.RGBA)},y={paddingTop:6},E={textAlign:"center",paddingTop:4,paddingBottom:4},S=I({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},r),k={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:C6(m),boxShadow:"var(--chrome-alpha-box-shadow)"},R=B=>{var M=zl(B);x(I({},M))},V={height:14,width:14},b={style:I({},V),fillProps:{style:V}};return A.jsx(Nx,I({ref:t,color:m,style:S,colors:void 0,className:[n,a].filter(Boolean).join(" "),placement:Pt.TopLeft},W,{addonAfter:A.jsxs(v.Fragment,{children:[A.jsx(Gx,{hsva:m,style:{width:"100%",height:130},onChange:B=>{x(I({},m,B,{a:m.a}))}}),A.jsxs("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[Z6()&&i&&A.jsx(N6,{onPickColor:R}),s&&A.jsx(eA,{width:28,height:28,hsva:m,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:k},pointer:()=>A.jsx(v.Fragment,{})}),A.jsxs("div",{style:{flex:1},children:[p==!0&&A.jsx(Hx,{hue:m.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:b,bgProps:{style:{borderRadius:2}},onChange:B=>{x(I({},m,B))}}),u==!0&&A.jsx(eA,{hsva:m,style:{marginTop:6,height:12,borderRadius:2},pointerProps:b,bgProps:{style:{borderRadius:2}},onChange:B=>{x(I({},m,B))}})]})]}),o&&A.jsxs("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[A.jsxs("div",{style:{flex:1},children:[h==qa.RGBA&&A.jsx(sh,{hsva:m,rProps:{labelStyle:y,inputStyle:E},gProps:{labelStyle:y,inputStyle:E},bProps:{labelStyle:y,inputStyle:E},aProps:u==!1?!1:{labelStyle:y,inputStyle:E},onChange:B=>x(B.hsva)}),h===qa.HEXA&&A.jsx(Xo,{label:"HEX",labelStyle:y,inputStyle:E,value:m.a>0&&m.a<1?S6(m).toLocaleUpperCase():lh(m).toLocaleUpperCase(),onChange:(B,M)=>{typeof M=="string"&&x(zl(/^#/.test(M)?M:"#"+M))}}),h===qa.HSLA&&A.jsx(Xx,{hsva:m,hProps:{labelStyle:y,inputStyle:E},sProps:{labelStyle:y,inputStyle:E},lProps:{labelStyle:y,inputStyle:E},aProps:u==!1?!1:{labelStyle:y,inputStyle:E},onChange:B=>x(B.hsva)})]}),A.jsx(Y6,{onClick:C})]})]}),rectRender:()=>A.jsx(v.Fragment,{})}))});_x.displayName="Chrome";const ph="#6366f1";function zs(e){const t=e.trim().replace(/^#/,"");return/^[0-9a-fA-F]{6}$/.test(t)?`#${t.toLowerCase()}`:/^[0-9a-fA-F]{3}$/.test(t)?`#${t.split("").map(a=>a+a).join("").toLowerCase()}`:""}function H6({colors:e,primary:t,secondary:n,onPrimaryChange:a,onSecondaryChange:r,onColorsChange:l}){const{shadowRoot:o}=Ua(),i=v.useMemo(()=>o??void 0,[o]),[s,p]=v.useState(null),u=!!s,[c,d]=v.useState(ph),[f,W]=v.useState(""),[m,x]=v.useState(null),h=v.useCallback(R=>{p(R),d(e.length>0?e[e.length-1]:ph)},[e]),g=v.useCallback(()=>{p(null)},[]),C=v.useCallback(()=>{const R=zs(c);if(!R)return;if(e.some(b=>b.toLowerCase()===R.toLowerCase())){g();return}l([...e,R]),g()},[e,c,l,g]),y=v.useCallback(R=>{const V=e[R],b=e.filter((B,M)=>M!==R);V&&t.toLowerCase()===V.toLowerCase()&&a(""),V&&n.toLowerCase()===V.toLowerCase()&&r(""),l(b)},[e,t,n,a,r,l]),E=v.useCallback((R,V)=>{W(V),R.dataTransfer.effectAllowed="copy",R.dataTransfer.setData("text/plain",V)},[]),S=v.useCallback(()=>{x(null),W("")},[]),k=v.useCallback((R,V)=>{V.preventDefault();const b=V.dataTransfer.getData("text/plain"),B=zs(b||f);if(!B){x(null);return}R==="primary"?a(B):r(B),x(null),W("")},[f,a,r]);return A.jsxs(K,{children:[A.jsx(fe,{variant:"subtitle2",sx:{mb:2,fontWeight:600},children:"בחירת צבעי עיצוב"}),A.jsx(fe,{variant:"body2",sx:{mb:2,color:"text.secondary"},children:"הוסיפו צבעים משלכם או בחרו מהמאגר. לחצו על גוון או גררו אותו לאזור צבע ראשי/משני כדי להגדיר."}),A.jsx(ze,{variant:"contained",color:"primary",size:"medium",startIcon:A.jsx(Fl,{}),onClick:R=>u?g():h(R.currentTarget),"aria-expanded":u,"aria-controls":"business-ai-color-picker-panel",id:"business-ai-color-picker-trigger",sx:{mb:3,px:2.5,py:1,borderRadius:3,textTransform:"none",fontWeight:600,boxShadow:"0 8px 24px rgba(99, 40, 167, 0.35)","&:hover":{boxShadow:"0 10px 28px rgba(99, 40, 167, 0.42)"}},children:u?"סגירת לוח בחירת הצבע":"הוספת צבע משלך"}),A.jsxs(SI,{open:u,anchorEl:s,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0,container:i,disablePortal:!i,slotProps:{root:{sx:{zIndex:2e3},disableEnforceFocus:!0,disableAutoFocus:!0},paper:{id:"business-ai-color-picker-panel",elevation:8,role:"region","aria-labelledby":"business-ai-color-picker-trigger",sx:{mt:1,p:2.5,borderRadius:3,maxWidth:340,background:"linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%)",border:"1px solid",borderColor:"divider",overflow:"visible"}}},children:[A.jsx(fe,{variant:"subtitle2",sx:{mb:1.5,fontWeight:700},children:"בחירת צבע וגוון"}),A.jsx(fe,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:1.5},children:"התאמת גוון, רוויה ובהירות, ועריכת HEX / RGB / HSL. אפשר לעבור בין מצבי הקלט בלחיצה על תווית השדות. דיגום צבע מהמסך זמין בדפדפנים שתומכים בכך."}),A.jsx(K,{sx:{display:"flex",justifyContent:"center",mb:2,"& .w-color-chrome":{boxShadow:"none !important",borderRadius:2,border:"1px solid",borderColor:"divider",overflow:"hidden",bgcolor:"background.paper"}},children:A.jsx(_x,{color:zs(c)||ph,onChange:R=>d(R.hex),showAlpha:!1,showHue:!0,showColorPreview:!0,showEditableInput:!0,showEyeDropper:!0,inputType:qa.RGBA,style:{width:"100%",maxWidth:280}})}),A.jsxs(K,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[A.jsx(ze,{variant:"text",onClick:g,sx:{textTransform:"none"},children:"ביטול"}),A.jsx(ze,{variant:"contained",color:"primary",onClick:C,disabled:!zs(c),sx:{textTransform:"none",borderRadius:2,px:2},children:"הוסף ללוח"})]})]}),A.jsxs(K,{sx:{display:"flex",gap:2,mb:3,flexWrap:"wrap"},children:[A.jsxs(Nt,{elevation:0,sx:{p:2,border:"2px solid",borderColor:t?"primary.main":"divider",borderRadius:2,flex:1,minWidth:120},children:[A.jsx(fe,{variant:"caption",sx:{display:"block",mb:1},children:"צבע ראשי"}),A.jsxs(K,{sx:{width:"100%",height:60,backgroundColor:t||"#f5f5f5",borderRadius:1,border:"2px dashed",borderColor:m==="primary"?"primary.main":t?"divider":"rgba(99, 40, 167, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",transition:"all 0.15s ease",boxShadow:m==="primary"?"0 0 0 3px rgba(99, 40, 167, 0.16)":"none"},onDragOver:R=>{R.preventDefault(),R.dataTransfer.dropEffect="copy",x("primary")},onDragLeave:()=>{m==="primary"&&x(null)},onDrop:R=>k("primary",R),children:[t&&A.jsxs(A.Fragment,{children:[A.jsx(fe,{variant:"caption",sx:{color:qs(t)==="white"?"white":"black",fontWeight:"bold"},children:t.toUpperCase()}),A.jsx(ah,{sx:{position:"absolute",top:4,right:4,fontSize:16,color:qs(t)}})]}),!t&&A.jsx(fe,{variant:"caption",color:"text.secondary",children:"גררו לכאן צבע ראשי"})]})]}),A.jsxs(Nt,{elevation:0,sx:{p:2,border:"2px solid",borderColor:n?"secondary.main":"divider",borderRadius:2,flex:1,minWidth:120},children:[A.jsx(fe,{variant:"caption",sx:{display:"block",mb:1},children:"צבע משני"}),A.jsxs(K,{sx:{width:"100%",height:60,backgroundColor:n||"#f5f5f5",borderRadius:1,border:"2px dashed",borderColor:m==="secondary"?"secondary.main":n?"divider":"rgba(0, 0, 0, 0.25)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",transition:"all 0.15s ease",boxShadow:m==="secondary"?"0 0 0 3px rgba(0, 0, 0, 0.14)":"none"},onDragOver:R=>{R.preventDefault(),R.dataTransfer.dropEffect="copy",x("secondary")},onDragLeave:()=>{m==="secondary"&&x(null)},onDrop:R=>k("secondary",R),children:[n&&A.jsxs(A.Fragment,{children:[A.jsx(fe,{variant:"caption",sx:{color:qs(n)==="white"?"white":"black",fontWeight:"bold"},children:n.toUpperCase()}),A.jsx(ah,{sx:{position:"absolute",top:4,right:4,fontSize:16,color:qs(n)}})]}),!n&&A.jsx(fe,{variant:"caption",color:"text.secondary",children:"גררו לכאן צבע משני"})]})]})]}),A.jsx(fe,{variant:"caption",sx:{display:"block",mb:1},children:"לוח צבעים"}),e.length===0?A.jsxs(Nt,{variant:"outlined",sx:{py:4,px:2,textAlign:"center",borderRadius:2,borderStyle:"dashed",bgcolor:"action.hover"},children:[A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:"עדיין אין צבעים בלוח"}),A.jsx(fe,{variant:"caption",color:"text.secondary",children:'לחצו על "הוספת צבע משלך" כדי להתחיל'})]}):A.jsx(K,{sx:{display:"flex",flexWrap:"wrap",gap:2},children:e.map((R,V)=>{const b=t.toLowerCase()===R.toLowerCase(),B=n.toLowerCase()===R.toLowerCase(),M=b||B;return A.jsx(Nt,{elevation:M?4:1,sx:{position:"relative",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:3}},children:A.jsxs(K,{sx:{width:100,height:130,position:"relative",p:1},children:[A.jsx(mg,{title:"הסר מהלוח",children:A.jsx(Hn,{size:"small",onClick:()=>y(V),sx:{position:"absolute",top:4,left:4,zIndex:2,bgcolor:"rgba(255,255,255,0.92)",width:26,height:26,"&:hover":{bgcolor:"rgba(255,255,255,1)"}},"aria-label":"הסר צבע",children:A.jsx(Nc,{sx:{fontSize:16}})})}),A.jsxs(K,{draggable:!0,onDragStart:F=>E(F,R),onDragEnd:S,sx:{width:"100%",height:80,backgroundColor:R,borderRadius:1,border:"2px solid",borderColor:M?b?"primary.main":"secondary.main":"divider",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",cursor:"grab","&:active":{cursor:"grabbing"}},children:[b&&A.jsx(K,{sx:{position:"absolute",top:4,right:4,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",px:.5,py:.25,borderRadius:.5,fontSize:9,fontWeight:"bold"},children:"ראשי"}),B&&!b&&A.jsx(K,{sx:{position:"absolute",top:4,right:4,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",px:.5,py:.25,borderRadius:.5,fontSize:9,fontWeight:"bold"},children:"משני"}),A.jsx(fe,{variant:"caption",sx:{color:qs(R),fontWeight:"bold",fontSize:10,textAlign:"center",px:.5},children:R.toUpperCase()})]}),A.jsxs(K,{sx:{display:"flex",gap:.5,mt:1,justifyContent:"center"},children:[A.jsx(mg,{title:b?"הסר מצבע ראשי":"הגדר כצבע ראשי",children:A.jsx(ze,{size:"small",variant:b?"contained":"outlined",color:"primary",sx:{minWidth:"auto",px:1,fontSize:10,height:28},onClick:()=>{a(b?"":R)},children:"ראשי"})}),A.jsx(mg,{title:B?"הסר מצבע משני":"הגדר כצבע משני",children:A.jsx(ze,{size:"small",variant:B?"contained":"outlined",color:"secondary",sx:{minWidth:"auto",px:1,fontSize:10,height:28},onClick:()=>{r(B?"":R)},children:"משני"})})]})]})},`${R}-${V}`)})})]})}function qs(e){const t=zs(e);if(!t)return"black";const n=t.replace("#",""),a=parseInt(n.substring(0,2),16),r=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);return(.299*a+.587*r+.114*l)/255>.5?"black":"white"}const uh="_analyzingContainer_aogto_1",ch="_scanningLine_aogto_10",$x="_scan_aogto_10",Ah="_dataBars_aogto_19",dh="_dataBar_aogto_19",eE="_analyze_aogto_1",fh="_dots_aogto_80",Wh="_fadeUp_aogto_98",gh="_fadeUpDelay1_aogto_103",hh="_fadeUpDelay2_aogto_108",tE="_fadeUpDelay3_aogto_113",X6=Object.freeze(Object.defineProperty({__proto__:null,analyze:eE,analyzingContainer:uh,dataBar:dh,dataBars:Ah,default:{analyzingContainer:uh,scanningLine:ch,scan:$x,dataBars:Ah,dataBar:dh,analyze:eE,dots:fh,fadeUp:Wh,fadeUpDelay1:gh,fadeUpDelay2:hh,fadeUpDelay3:tE},dots:fh,fadeUp:Wh,fadeUpDelay1:gh,fadeUpDelay2:hh,fadeUpDelay3:tE,scan:$x,scanningLine:ch},Symbol.toStringTag,{value:"Module"})),_6=`.analyzingContainer {
397
+ data: `)[1];throw console.error("[v3-sse] error event:",W),new Error(JSON.parse(W).reason)}}}if(!l)throw console.error("[v3-sse] no done event received. buffer was:",r.slice(0,500)),new Error("studio newsletter v3: stream ended without a done event");return console.log("[v3-sse] success, nodes count:",(i=l.nodes)==null?void 0:i.length),l}function Kj(e,t){const n=e??{},a=n.accountId||n.domain||n.websiteUrl||n.website||"",r=n.theme&&typeof n.theme=="object"?n.theme:{primary:"#1b65a0",secondary:"#841d94",colors:["#1b65a0","#ffffff"]},l={accountId:a,business_name:n.business_name||"",business_tone:n.business_tone||"",business_type:n.business_type||"",description:n.description||"",language:t,theme:r};return n.logo&&(l.logo=n.logo),n.website?l.website=n.website:n.websiteUrl&&(l.website=n.websiteUrl),n.socials&&(l.socials=n.socials),n.contacts&&(l.contacts=n.contacts),n.industry&&(l.industry=n.industry),typeof n.is_haredi_sector=="boolean"&&(l.is_haredi_sector=n.is_haredi_sector),n.owner_gender&&(l.owner_gender=n.owner_gender),n.businessDesign&&(l.businessDesign=n.businessDesign),n.designDescription&&(l.designDescription=n.designDescription),n.imageStyleDescription&&(l.imageStyleDescription=n.imageStyleDescription),n.keywords&&Array.isArray(n.keywords)&&(l.keywords=n.keywords),n.contentDiscovery&&typeof n.contentDiscovery=="object"&&(l.contentDiscovery=n.contentDiscovery),l}function Xc(e){if(!e||typeof e!="object")return null;const t={};for(const[n,a]of Object.entries(e))a!=null&&(t[n]=a);return Object.keys(t).length>0?t:null}async function Pj(e){if(!e.goal||!e.goal.trim())throw new Error("generateSeriesPrompt: goal is required and cannot be null or empty");const t={goal:e.goal.trim()};e.domain&&e.domain.trim()&&(t.domain=e.domain.trim()),e.totalParts!==void 0&&e.totalParts!==null&&(t.totalParts=e.totalParts),e.language&&e.language.trim()&&(t.language=e.language.trim()),e.targetAction&&e.targetAction.trim()&&(t.targetAction=e.targetAction.trim()),e.daysBetween!==void 0&&e.daysBetween!==null&&(t.daysBetween=e.daysBetween),e.context&&Object.keys(e.context).length>0&&(t.context=e.context);const n=await fetch(ea.SERIES_PROMPT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const a=await n.text();throw new Error(`generateSeriesPrompt failed: ${n.status} ${a}`)}return n.json()}async function Jj(e){const t={subject:e.subject,prompt:e.prompt,cta:e.cta,editInstruction:e.editInstruction,goal:e.goal,partNumber:e.partNumber,totalParts:e.totalParts};e.targetAction&&e.targetAction.trim()&&(t.targetAction=e.targetAction.trim()),e.language&&e.language.trim()&&(t.language=e.language.trim());const n=await fetch(ea.UPDATE_SERIES_PROMPT,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const a=await n.text();throw new Error(`updateSeriesPrompt failed: ${n.status} ${a}`)}return n.json()}var Mg={},Dj=Fe;Object.defineProperty(Mg,"__esModule",{value:!0});var Qg=Mg.default=void 0,Yj=Dj(Oe()),Zj=A;Qg=Mg.default=(0,Yj.default)((0,Zj.jsx)("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchRounded");function _c(e){const t=v.useId().replace(/:/g,""),n=`cdtr-bai-${t}-c0`,a=`cdtr-bai-${t}-c1`;return A.jsxs("svg",{width:"20",height:"23",viewBox:"0 0 24 27",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,focusable:"false",...e,children:[A.jsx("path",{d:"M21 22H23V24H1V22H3V7C3 6.44772 3.44772 6 4 6H14C14.5523 6 15 6.44772 15 7V22H19V14H17V12H20C20.5523 12 21 12.4477 21 13V22ZM5 8V22H13V8H5ZM7 14H11V16H7V14ZM7 10H11V12H7V10Z",fill:"url(#cdtr-brand-gradient)"}),A.jsx("g",{clipPath:`url(#${n})`,children:A.jsx("path",{d:"M19.7134 7.12811L19.4668 7.69379C19.2864 8.10792 18.7136 8.10792 18.5331 7.69379L18.2866 7.12811C17.8471 6.11947 17.0554 5.31641 16.0677 4.87708L15.308 4.53922C14.8973 4.35653 14.8973 3.75881 15.308 3.57612L16.0252 3.25714C17.0384 2.80651 17.8442 1.97373 18.2761 0.930828L18.5293 0.319534C18.7058 -0.106511 19.2942 -0.106511 19.4706 0.319534L19.7238 0.930828C20.1558 1.97373 20.9616 2.80651 21.9748 3.25714L22.6919 3.57612C23.1027 3.75881 23.1027 4.35653 22.6919 4.53922L21.9323 4.87708C20.9445 5.31641 20.1529 6.11947 19.7134 7.12811Z",fill:"black"})}),A.jsx("g",{clipPath:`url(#${a})`,children:A.jsx("path",{d:"M19.7134 7.12811L19.4668 7.69379C19.2864 8.10792 18.7136 8.10792 18.5331 7.69379L18.2866 7.12811C17.8471 6.11947 17.0554 5.31641 16.0677 4.87708L15.308 4.53922C14.8973 4.35653 14.8973 3.75881 15.308 3.57612L16.0252 3.25714C17.0384 2.80651 17.8442 1.97373 18.2761 0.930828L18.5293 0.319534C18.7058 -0.106511 19.2942 -0.106511 19.4706 0.319534L19.7238 0.930828C20.1558 1.97373 20.9616 2.80651 21.9748 3.25714L22.6919 3.57612C23.1027 3.75881 23.1027 4.35653 22.6919 4.53922L21.9323 4.87708C20.9445 5.31641 20.1529 6.11947 19.7134 7.12811Z",fill:"url(#cdtr-brand-gradient)"})}),A.jsxs("defs",{children:[A.jsx("clipPath",{id:n,children:A.jsx("rect",{width:"9",height:"8",fill:"white",transform:"translate(15)"})}),A.jsx("clipPath",{id:a,children:A.jsx("rect",{width:"9",height:"8",fill:"white",transform:"translate(15)"})})]})]})}function Sa({title:e,description:t,children:n}){return A.jsxs(K,{component:"section",sx:{mb:{xs:2.5,sm:3.5}},children:[A.jsx(fe,{component:"h2",sx:{fontSize:"0.8125rem",fontWeight:700,color:"text.secondary",letterSpacing:"0.02em",mb:t?.5:1.25,lineHeight:1.3},children:e}),t?A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{mb:2,maxWidth:"min(52ch, 100%)",lineHeight:1.55,fontSize:"0.8125rem"},children:t}):null,n]})}const Vg=["נשמע עסק מעניין מאוד!","בואו נמצא את הדומיין המושלם עבורך!","אני מחפש את האפשרויות הטובות ביותר...","מצאתי כמה אפשרויות מעולות!"],tr=Ul;function Nj({activeStep:e,steps:t,userName:n,websiteUrl:a,hasContext:r,setWebsiteUrl:l,setActiveStep:o,freeSolo:i,businessNameOrDescription:s="",setBusinessNameOrDescription:p,language:u}){const[c,d]=v.useState(!!r),[f,W]=v.useState(!1),[m,x]=v.useState(!1),[h,g]=v.useState(s),[C,y]=v.useState([]),[E,S]=v.useState(!1),[k,R]=v.useState(null),[V,b]=v.useState(null),[B,M]=v.useState(""),F=v.useRef(a),z=v.useRef(!1),{openDomainFinder:T,setOpenDomainFinder:j,stepBeforeDomainFinder:P,step2Data:L}=Ua(),q=v.useRef(T),w=v.useRef(s);w.current=s;const G=v.useRef(L);G.current=L,v.useEffect(()=>{var ae,X,he,We;if(T&&e===0&&(z.current=P===2,x(!0),l(""),y([]),R(null),b(null)),T){const me=((ae=w.current)==null?void 0:ae.trim())||((We=(he=(X=G.current)==null?void 0:X.businessData)==null?void 0:he.business_name)==null?void 0:We.trim())||"";g(me),me&&re(me)}},[T,e,P]),v.useEffect(()=>{q.current&&!T&&m&&!z.current&&(x(!1),y([]),R(null)),q.current=T},[T,m]);const te=()=>{j(!1),z.current||(x(!1),y([]),R(null))},Q=ae=>{const X=new CustomEvent("business-ai-buy-domain",{detail:{domain:ae},bubbles:!0,composed:!0});window.dispatchEvent(X)},N=()=>{z.current=!1,x(!0),l(""),p==null||p(""),g(""),y([]),R(null),b(null)},re=ae=>{const X=(ae??h.trim())||"business";p==null||p(X!=="business"?X:h.trim()),S(!0),R(null),b(null),y([]);const he={prompt:`find domain for ${X}`};u&&(he.language=u),fetch(ea.DOMAIN_FINDER,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(he)}).then(async We=>{var Ke,qe;if(!We.ok)throw new Error("Failed to fetch domain suggestions");const me=(Ke=We.body)==null?void 0:Ke.getReader(),ve=new TextDecoder;let ce="",Ze=null;if(!me)throw new Error("Response body is not readable");let le=!1;for(;!le;){const Be=await me.read();if(le=Be.done,le)break;const{value:Te}=Be;ce+=ve.decode(Te,{stream:!0});const Pe=ce.split(`
398
+ `);ce=Pe.pop()||"";for(const je of Pe)if(je.startsWith("data: ")){const it=je.slice(6);try{const D=JSON.parse(it);D.message&&!((qe=D.metadata)!=null&&qe.token)&&b(D.message),(D.suggestions&&Array.isArray(D.suggestions)||D.status==="complete"&&D.suggestions)&&(Ze=D,b(null))}catch{continue}}}if(ce.startsWith("data: ")){const Be=ce.slice(6);try{const Te=JSON.parse(Be);(Te.suggestions&&Array.isArray(Te.suggestions)||Te.status==="complete"&&Te.suggestions)&&(Ze=Te)}catch{}}return Ze}).then(We=>{if(We!=null&&We.suggestions&&Array.isArray(We.suggestions))y(We.suggestions.map(me=>({domain:me.domain,available:me.available})));else if(We!=null&&We.data){const me=We.data;Array.isArray(me)?y(me.map(ve=>({domain:ve}))):me!=null&&me.domains&&Array.isArray(me.domains)?y(me.domains.map(ve=>({domain:ve}))):me!=null&&me.domain?y([{domain:me.domain}]):y([])}else y([]);S(!1)}).catch(We=>{console.error("Error fetching domains:",We),R("לא הצלחנו לטעון הצעות דומיין"),S(!1)})};v.useEffect(()=>{if(!E){M("");return}let ae=0;M(Vg[ae]);const X=setInterval(()=>{ae=(ae+1)%Vg.length,M(Vg[ae])},2500);return()=>clearInterval(X)},[E]),v.useEffect(()=>{W(!0)},[]),v.useEffect(()=>{F.current=a},[a]),v.useEffect(()=>{g(s)},[s]);const ue=ae=>{d(ae)},_=ae=>{const X=ae.trim();return!X||X.startsWith("http://")||X.startsWith("https://")?X:"https://"+X},H=ae=>{const X=ae.target.value,he=F.current;if(!X){F.current=X,l(X);return}if(X.includes("://")){F.current=X,l(X);return}if(X.startsWith("http://")||X.startsWith("https://")){F.current=X,l(X);return}const We=he.includes("://"),me=X.length<he.length;if(We&&!X.includes("://")&&(he.replace(/^https?:\/\//,"").startsWith(X)||me)){F.current=X,l(X);return}if(X.toLowerCase().startsWith("http")&&X.length<7){F.current=X,l(X);return}if(X.includes(".")||X.length>3){const ce=_(X);F.current=ce,l(ce)}else F.current=X,l(X)},de=ae=>{if(!ae.trim()||(ae.includes("http")||(ae="https://"+ae),!ae.includes(".")))return!1;try{const X=new URL(ae);return X.protocol==="http:"||X.protocol==="https:"}catch{return!1}};return A.jsxs(K,{sx:{position:"relative",padding:{xs:2,sm:3,md:5},width:{xs:"100%"},maxWidth:"100%",overflowY:"auto",boxSizing:"border-box"},children:[" ",A.jsx(ze,{variant:"text",color:"primary",onClick:te,sx:{mb:2,fontSize:{xs:"0.875rem",sm:"1rem"},textTransform:"none"},children:"חזרה"}),A.jsx(ij,{sx:{display:"none"},activeStep:e,children:t.map(ae=>A.jsx(Uq,{children:A.jsx(TI,{children:ae})},ae))}),A.jsxs(ut,{spacing:0,sx:{width:"100%"},children:[A.jsx(vn,{label:"Business AI",className:f?tr.fadeUp:"",sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"},icon:A.jsx(_c,{})}),A.jsxs(K,{className:f?tr.fadeUpDelay1:"",sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(fe,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary",mb:{xs:1,sm:1.25}},children:"מביאים את המותג שלך למערכת"}),A.jsxs(fe,{variant:"body2",color:"text.secondary",className:f?tr.fadeUpDelay2:"",sx:{fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(48ch, 100%)",lineHeight:1.55},children:[n?`היי ${n} — `:"","הזינו את כתובת האתר כדי שנמשוך לוגו, צבעים ותוכן, או המשיכו בלי אתר ונחפש דומיין מתאים."]})]}),m?A.jsx(K,{className:tr.stepView,sx:{width:"100%"},children:!E&&C.length===0&&!k?A.jsx(Sa,{title:"חיפוש דומיין",description:"תארו את העסק או את שם הדומיין הרצוי — נציע אפשרויות מתאימות.",children:A.jsx(at,{fullWidth:!0,variant:"outlined",placeholder:"שם העסק או תיאור קצר",autoComplete:"off",value:h,onChange:ae=>{g(ae.target.value),p==null||p(ae.target.value.trim())},onKeyDown:ae=>{ae.key==="Enter"&&h.trim()&&(ae.preventDefault(),re())},InputProps:{endAdornment:A.jsx(ug,{position:"end",children:A.jsx(ze,{variant:"contained",color:"primary",size:"small",disabled:!h.trim()||E,onClick:()=>re(),sx:{minWidth:0,px:1.25},"aria-label":"חפש דומיין",children:A.jsx(Qg,{fontSize:"small"})})})},className:f?tr.fadeUpDelay3:"",sx:{"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"}}}})}):E?A.jsxs(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:4,minHeight:220,borderRadius:2,border:"1px dashed",borderColor:"divider",bgcolor:ae=>un(ae.palette.common.black,.02)},children:[A.jsx(va,{sx:{mb:2,width:40,height:40}}),A.jsx(fe,{variant:"body1",color:"text.secondary",sx:{fontSize:"0.9375rem",textAlign:"center",px:2},children:V||B})]}):k?A.jsxs(A.Fragment,{children:[A.jsx(Ml,{severity:"error",sx:{mb:2,fontSize:"0.875rem"},children:k}),A.jsxs(ct,{container:!0,spacing:1,children:[A.jsx(ct,{item:!0,children:A.jsx(ze,{variant:"text",color:"primary",onClick:()=>{R(null),re()},sx:{fontSize:"0.875rem"},children:"נסה שוב"})}),A.jsx(ct,{item:!0,children:A.jsx(ze,{variant:"text",color:"primary",onClick:te,sx:{fontSize:"0.875rem"},children:"חזרה"})})]})]}):A.jsxs(Sa,{title:"תוצאות",description:"לחצו על דומיין לפתיחת רכישה. אפשר לחפש מחדש עם ניסוח אחר.",children:[A.jsx(at,{fullWidth:!0,variant:"outlined",placeholder:"שם העסק או תיאור קצר – חיפוש מחדש לתוצאות אחרות",autoComplete:"off",value:h,onChange:ae=>{g(ae.target.value),p==null||p(ae.target.value.trim())},onKeyDown:ae=>{ae.key==="Enter"&&h.trim()&&(ae.preventDefault(),re())},InputProps:{endAdornment:A.jsx(ug,{position:"end",children:A.jsx(ze,{variant:"contained",color:"primary",size:"small",disabled:!h.trim()||E,onClick:()=>re(),sx:{minWidth:0,px:1.25},"aria-label":"חפש דומיין",children:A.jsx(Qg,{fontSize:"small"})})})},sx:{mb:2,"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(K,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:1,mb:3},children:C.map((ae,X)=>A.jsxs(K,{onClick:()=>Q(ae.domain),sx:{border:"1px solid",borderColor:"divider",borderRadius:2,p:1.25,cursor:"pointer",transition:"border-color 0.2s ease, background-color 0.2s ease",bgcolor:he=>un(he.palette.common.black,.02),"&:hover":{borderColor:"primary.main",bgcolor:he=>un(he.palette.primary.main,.06)}},children:[A.jsx(fe,{sx:{fontSize:"0.875rem",fontWeight:500},children:ae.domain}),ae.available!==!1&&A.jsx(fe,{variant:"caption",color:"success.main",sx:{fontSize:"0.75rem"},children:"זמין"})]},X))}),A.jsxs(ct,{container:!0,spacing:1,justifyContent:"space-between",children:[A.jsx(ct,{item:!0,children:A.jsx(ze,{variant:"text",color:"primary",onClick:te,sx:{fontSize:"0.875rem"},children:"חזרה"})}),A.jsx(ct,{item:!0,children:A.jsx(ze,{variant:"contained",color:"primary",onClick:()=>{p==null||p(h.trim()),o(1)},sx:{fontSize:"0.875rem"},children:"הבא"})})]})]})}):A.jsxs(A.Fragment,{children:[A.jsxs(Sa,{title:"כתובת האתר",description:"כתובת מלאה כולל https. אין אתר? השתמשו בקישור מתחת לשדה.",children:[A.jsx(at,{fullWidth:!0,label:"URL",variant:"outlined",margin:"normal",placeholder:"https://www.example.com",value:a,onChange:H,className:f?tr.fadeUpDelay3:"",sx:{"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"},textAlign:"right",direction:"rtl",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontWeight:500},"& .MuiInputLabel-root":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(ze,{variant:"text",color:"primary",onClick:N,className:f?tr.fadeUpDelay4:"",sx:{mt:{xs:.5,sm:1},fontSize:{xs:"0.8125rem",sm:"0.875rem"},textAlign:"right",whiteSpace:{xs:"normal",sm:"nowrap"},px:{xs:.5,sm:0},textTransform:"none"},children:"אני רוצה דומיין לעסק שלי"})]}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Sa,{title:"אישור והמשך",description:"נדרש לאימות הבעלות על האתר ולשימוש במידע ליצירת תכנים.",children:A.jsx(K,{sx:{p:{xs:1.25,sm:1.5},borderRadius:2,border:"1px solid",borderColor:"divider",bgcolor:ae=>un(ae.palette.common.black,.02)},children:A.jsx(Kc,{control:A.jsx(GU,{size:"small"}),checked:c,onChange:(ae,X)=>ue(X),className:f?tr.fadeUpDelay3:"",sx:{m:0,alignItems:"flex-start","& .MuiTypography-root":{fontSize:{xs:"0.75rem",sm:"0.8125rem"},lineHeight:1.45}},label:"אני מאשר.ת שהאתר בבעלותי, ואני מסכימה למערכת שלח מסר לשמור את המידע ולהשתמש בו ליצירת תכנים לעסק שלי"})})}),A.jsx(ze,{onClick:()=>{l(""),o(1)},variant:"text",color:"primary",className:f?tr.fadeUpDelay4:"",sx:{mt:{xs:1,sm:1.5},mb:{xs:1,sm:1.5},fontSize:{xs:"0.75rem",sm:"0.875rem"},textAlign:"center",whiteSpace:{xs:"normal",sm:"nowrap"},px:{xs:.5,sm:1}},children:"אין לי אתר, אני אמלא בעצמי"}),A.jsx(ze,{disabled:!de(a)||!c,variant:"contained",color:"primary",onClick:()=>o(1),fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:"הבא"}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ct,{className:f?tr.fadeUpDelay4:"",sx:{width:"100%",mt:{xs:2,sm:2.5,md:3}},justifyContent:{xs:"center",sm:"space-between"},container:!0,spacing:{xs:1,sm:0},children:i&&A.jsx(ct,{item:!0,xs:12,sm:"auto",children:A.jsx(ze,{variant:"text",color:"primary",disabled:!c,onClick:()=>{l(""),o(1)},fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:r?"צפייה במידע על העסק שלי":""})})})]})]})]})}var Ug={},Gj=Fe;Object.defineProperty(Ug,"__esModule",{value:!0});var Fl=Ug.default=void 0,Hj=Gj(Oe()),Xj=A;Fl=Ug.default=(0,Hj.default)((0,Xj.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var Fg={},_j=Fe;Object.defineProperty(Fg,"__esModule",{value:!0});var Qs=Fg.default=void 0,$j=_j(Oe()),eT=A;Qs=Fg.default=(0,$j.default)((0,eT.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var zg={},tT=Fe;Object.defineProperty(zg,"__esModule",{value:!0});var cx=zg.default=void 0,nT=tT(Oe()),aT=A;cx=zg.default=(0,nT.default)((0,aT.jsx)("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload");var qg={},rT=Fe;Object.defineProperty(qg,"__esModule",{value:!0});var Ax=qg.default=void 0,lT=rT(Oe()),oT=A;Ax=qg.default=(0,lT.default)((0,oT.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image");var jg={},iT=Fe;Object.defineProperty(jg,"__esModule",{value:!0});var dx=jg.default=void 0,sT=iT(Oe()),pT=A;dx=jg.default=(0,sT.default)((0,pT.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Tg={},uT=Fe;Object.defineProperty(Tg,"__esModule",{value:!0});var fx=Tg.default=void 0,cT=uT(Oe()),AT=A;fx=Tg.default=(0,cT.default)((0,AT.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Og={},dT=Fe;Object.defineProperty(Og,"__esModule",{value:!0});var Wx=Og.default=void 0,fT=dT(Oe()),WT=A;Wx=Og.default=(0,fT.default)((0,WT.jsx)("path",{d:"M9.5 11c1.93 0 3.5 1.57 3.5 3.5S11.43 18 9.5 18 6 16.43 6 14.5 7.57 11 9.5 11m0-2C6.46 9 4 11.46 4 14.5S6.46 20 9.5 20s5.5-2.46 5.5-5.5c0-1.16-.36-2.23-.97-3.12L18 7.42V10h2V4h-6v2h2.58l-3.97 3.97C11.73 9.36 10.66 9 9.5 9"}),"Male");var Kg={},gT=Fe;Object.defineProperty(Kg,"__esModule",{value:!0});var gx=Kg.default=void 0,hT=gT(Oe()),mT=A;gx=Kg.default=(0,hT.default)((0,mT.jsx)("path",{d:"M17.5 9.5C17.5 6.46 15.04 4 12 4S6.5 6.46 6.5 9.5c0 2.7 1.94 4.93 4.5 5.4V17H9v2h2v2h2v-2h2v-2h-2v-2.1c2.56-.47 4.5-2.7 4.5-5.4m-9 0C8.5 7.57 10.07 6 12 6s3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5"}),"Female");var Pg={},CT=Fe;Object.defineProperty(Pg,"__esModule",{value:!0});var hx=Pg.default=void 0,vT=CT(Oe()),yT=A;hx=Pg.default=(0,vT.default)((0,yT.jsx)("path",{d:"M12 8c1.93 0 3.5 1.57 3.5 3.5S13.93 15 12 15s-3.5-1.57-3.5-3.5S10.07 8 12 8m4.53.38 3.97-3.96V7h2V1h-6v2h2.58l-3.97 3.97C14.23 6.36 13.16 6 12 6s-2.23.36-3.11.97l-.65-.65 1.41-1.41-1.41-1.42L6.82 4.9 4.92 3H7.5V1h-6v6h2V4.42l1.91 1.9-1.42 1.42L5.4 9.15l1.41-1.41.65.65c-.6.88-.96 1.95-.96 3.11 0 2.7 1.94 4.94 4.5 5.41V19H9v2h2v2h2v-2h2v-2h-2v-2.09c2.56-.47 4.5-2.71 4.5-5.41 0-1.16-.36-2.23-.97-3.12"}),"Transgender");var Jg={},ST=Fe;Object.defineProperty(Jg,"__esModule",{value:!0});var mx=Jg.default=void 0;ET(v);var IT=ST(Oe()),xT=A;function Cx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Cx=function(a){return a?n:t})(e)}function ET(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Cx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}mx=Jg.default=(0,IT.default)((0,xT.jsx)("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook");var Dg={},bT=Fe;Object.defineProperty(Dg,"__esModule",{value:!0});var vx=Dg.default=void 0;RT(v);var kT=bT(Oe()),wT=A;function yx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(yx=function(a){return a?n:t})(e)}function RT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=yx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}vx=Dg.default=(0,kT.default)((0,wT.jsx)("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram");var Yg={},BT=Fe;Object.defineProperty(Yg,"__esModule",{value:!0});var Sx=Yg.default=void 0;QT(v);var LT=BT(Oe()),MT=A;function Ix(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ix=function(a){return a?n:t})(e)}function QT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ix(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Sx=Yg.default=(0,LT.default)((0,MT.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");var Zg={},VT=Fe;Object.defineProperty(Zg,"__esModule",{value:!0});var xx=Zg.default=void 0;zT(v);var UT=VT(Oe()),FT=A;function Ex(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ex=function(a){return a?n:t})(e)}function zT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ex(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}xx=Zg.default=(0,UT.default)((0,FT.jsx)("path",{d:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"}),"YouTube");var Ng={},qT=Fe;Object.defineProperty(Ng,"__esModule",{value:!0});var bx=Ng.default=void 0;OT(v);var jT=qT(Oe()),TT=A;function kx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(kx=function(a){return a?n:t})(e)}function OT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=kx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}bx=Ng.default=(0,jT.default)((0,TT.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}),"X");var Gg={},KT=Fe;Object.defineProperty(Gg,"__esModule",{value:!0});var wx=Gg.default=void 0;DT(v);var PT=KT(Oe()),JT=A;function Rx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Rx=function(a){return a?n:t})(e)}function DT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Rx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}wx=Gg.default=(0,PT.default)((0,JT.jsx)("path",{d:"M16.75 13.96c.25.13.41.2.46.3.06.11.04.61-.21 1.18-.2.56-1.24 1.1-1.7 1.12-.46.02-.47.36-2.96-.73-2.49-1.09-3.99-3.75-4.11-3.92-.12-.17-.96-1.38-.92-2.61.05-1.22.69-1.8.95-2.04.24-.26.51-.29.68-.26h.47c.15 0 .36-.06.55.45l.69 1.87c.06.13.1.28.01.44l-.27.41-.39.42c-.12.12-.26.25-.12.5.12.26.62 1.09 1.32 1.78.91.88 1.71 1.17 1.95 1.3.24.14.39.12.54-.04l.81-.94c.19-.25.35-.19.58-.11l1.67.88M12 2a10 10 0 0 1 10 10 10 10 0 0 1-10 10c-1.97 0-3.8-.57-5.35-1.55L2 22l1.55-4.65A9.969 9.969 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8c0 1.72.54 3.31 1.46 4.61L4.5 19.5l2.89-.96A7.95 7.95 0 0 0 12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8z"}),"WhatsApp");var Hg={},YT=Fe;Object.defineProperty(Hg,"__esModule",{value:!0});var Bx=Hg.default=void 0;GT(v);var ZT=YT(Oe()),NT=A;function Lx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Lx=function(a){return a?n:t})(e)}function GT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Lx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Bx=Hg.default=(0,ZT.default)((0,NT.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram");var Xg={},HT=Fe;Object.defineProperty(Xg,"__esModule",{value:!0});var Mx=Xg.default=void 0;$T(v);var XT=HT(Oe()),_T=A;function Qx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Qx=function(a){return a?n:t})(e)}function $T(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Qx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Mx=Xg.default=(0,XT.default)((0,_T.jsx)("path",{d:"M22 12.14a2.19 2.19 0 0 0-3.71-1.57 10.93 10.93 0 0 0-5.86-1.87l1-4.7 3.27.71a1.56 1.56 0 1 0 .16-.76l-3.64-.77c-.11-.02-.22 0-.29.06-.09.05-.14.14-.16.26l-1.11 5.22c-2.33.07-4.43.78-5.95 1.86A2.2 2.2 0 0 0 4.19 10a2.16 2.16 0 0 0-.9 4.15 3.6 3.6 0 0 0-.05.66c0 3.37 3.92 6.12 8.76 6.12s8.76-2.73 8.76-6.12c0-.21-.01-.44-.05-.66A2.21 2.21 0 0 0 22 12.14M7 13.7c0-.86.68-1.56 1.54-1.56s1.56.7 1.56 1.56a1.56 1.56 0 0 1-1.56 1.56c-.86.02-1.54-.7-1.54-1.56m8.71 4.14C14.63 18.92 12.59 19 12 19c-.61 0-2.65-.1-3.71-1.16a.4.4 0 0 1 0-.57.4.4 0 0 1 .57 0c.68.68 2.14.91 3.14.91s2.47-.23 3.14-.91a.4.4 0 0 1 .57 0c.14.16.14.41 0 .57m-.29-2.56c-.86 0-1.56-.7-1.56-1.56a1.56 1.56 0 0 1 1.56-1.56c.86 0 1.58.7 1.58 1.56a1.6 1.6 0 0 1-1.58 1.56z"}),"Reddit");var _g={},e6=Fe;Object.defineProperty(_g,"__esModule",{value:!0});var Vx=_g.default=void 0;a6(v);var t6=e6(Oe()),n6=A;function Ux(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ux=function(a){return a?n:t})(e)}function a6(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ux(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Vx=_g.default=(0,t6.default)((0,n6.jsx)("path",{d:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z"}),"Pinterest");var $g={},r6=Fe;Object.defineProperty($g,"__esModule",{value:!0});var Fx=$g.default=void 0;i6(v);var l6=r6(Oe()),o6=A;function zx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(zx=function(a){return a?n:t})(e)}function i6(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=zx(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(a,l,o):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}Fx=$g.default=(0,l6.default)((0,o6.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var eh={},s6=Fe;Object.defineProperty(eh,"__esModule",{value:!0});var qx=eh.default=void 0,p6=s6(Oe()),u6=A;qx=eh.default=(0,p6.default)((0,u6.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var th={},c6=Fe;Object.defineProperty(th,"__esModule",{value:!0});var jx=th.default=void 0,A6=c6(Oe()),d6=A;jx=th.default=(0,A6.default)((0,d6.jsx)("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H3V5h18zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3"}),"MusicVideo");function f6({value:e,onChange:t,label:n="מילות מפתח",placeholder:a="הוספת מילת מפתח..."}){const[r,l]=v.useState(""),o=(s,p)=>{t(p)},i=(s,p)=>{l(p)};return A.jsx($W,{multiple:!0,freeSolo:!0,options:[],value:e,onChange:o,inputValue:r,onInputChange:i,renderTags:(s,p)=>s.map((u,c)=>v.createElement(vn,{variant:"outlined",label:u,...p({index:c}),key:c})),renderInput:s=>A.jsx(at,{...s,label:n,placeholder:a,variant:"outlined",margin:"normal"}),sx:{"& .MuiAutocomplete-tag":{margin:"4px"}}})}var nh={},W6=Fe;Object.defineProperty(nh,"__esModule",{value:!0});var ah=nh.default=void 0,g6=W6(Oe()),h6=A;ah=nh.default=(0,g6.default)((0,h6.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var Ho=255,Fa=100,Vs=e=>{var{r:t,g:n,b:a,a:r}=e,l=Math.max(t,n,a),o=l-Math.min(t,n,a),i=o?l===t?(n-a)/o:l===n?2+(a-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:l?o/l*Fa:0,v:l/Ho*Fa,a:r}},Tx=e=>{var{h:t,s:n,l:a,a:r}=rh(e);return"hsla("+t+", "+n+"%, "+a+"%, "+r+")"},$c=e=>{var{h:t,s:n,l:a,a:r}=e;return n*=(a<50?a:Fa-a)/Fa,{h:t,s:n>0?2*n/(a+n)*Fa:0,v:a+n,a:r}},rh=e=>{var{h:t,s:n,v:a,a:r}=e,l=(200-n)*a/Fa;return{h:t,s:l>0&&l<200?n*a/Fa/(l<=Fa?l:200-l)*Fa:0,l:l/2,a:r}},Ox=e=>{var{r:t,g:n,b:a}=e,r=t<<16|n<<8|a;return"#"+(l=>new Array(7-l.length).join("0")+l)(r.toString(16))},Kx=e=>{var{r:t,g:n,b:a,a:r}=e,l=typeof r=="number"&&(r*255|256).toString(16).slice(1);return""+Ox({r:t,g:n,b:a})+(l||"")},zl=e=>Vs(m6(e)),m6=e=>{var t=e.replace("#","");/^#?/.test(e)&&t.length===3&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=new RegExp("[A-Za-z0-9]{2}","g"),[a,r,l=0,o]=e.match(n).map(i=>parseInt(i,16));return{r:a,g:r,b:l,a:(o??255)/Ho}},Us=e=>{var{h:t,s:n,v:a,a:r}=e,l=t/60,o=n/Fa,i=a/Fa,s=Math.floor(l)%6,p=l-Math.floor(l),u=Ho*i*(1-o),c=Ho*i*(1-o*p),d=Ho*i*(1-o*(1-p));i*=Ho;var f={};switch(s){case 0:f.r=i,f.g=d,f.b=u;break;case 1:f.r=c,f.g=i,f.b=u;break;case 2:f.r=u,f.g=i,f.b=d;break;case 3:f.r=u,f.g=c,f.b=i;break;case 4:f.r=d,f.g=u,f.b=i;break;case 5:f.r=i,f.g=u,f.b=c;break}return f.r=Math.round(f.r),f.g=Math.round(f.g),f.b=Math.round(f.b),I({},f,{a:r})},C6=e=>{var{r:t,g:n,b:a,a:r}=Us(e);return"rgba("+t+", "+n+", "+a+", "+r+")"},v6=e=>{var{r:t,g:n,b:a}=e;return{r:t,g:n,b:a}},y6=e=>{var{h:t,s:n,l:a}=e;return{h:t,s:n,l:a}},lh=e=>Ox(Us(e)),S6=e=>Kx(Us(e)),I6=e=>{var{h:t,s:n,v:a}=e;return{h:t,s:n,v:a}},x6=e=>{var{r:t,g:n,b:a}=e,r=function(u){return u<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)},l=r(t/255),o=r(n/255),i=r(a/255),s={};return s.x=l*.4124+o*.3576+i*.1805,s.y=l*.2126+o*.7152+i*.0722,s.bri=l*.0193+o*.1192+i*.9505,s},za=e=>{var t,n,a,r,l,o,i,s,p;return typeof e=="string"&&oh(e)?(o=zl(e),s=e):typeof e!="string"&&(o=e),o&&(a=I6(o),l=rh(o),r=Us(o),p=Kx(r),s=lh(o),n=y6(l),t=v6(r),i=x6(t)),{rgb:t,hsl:n,hsv:a,rgba:r,hsla:l,hsva:o,hex:s,hexa:p,xy:i}},oh=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),E6=rS();const Ia=Dl(E6);function Px(e){var t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useCallback((n,a)=>t.current&&t.current(n,a),[])}var Fs=e=>"touches"in e,Jx=e=>{!Fs(e)&&e.preventDefault&&e.preventDefault()},Dx=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=1),t>a?a:t<n?n:t},Yx=(e,t)=>{var n=e.getBoundingClientRect(),a=Fs(t)?t.touches[0]:t;return{left:Dx((a.pageX-(n.left+window.pageXOffset))/n.width),top:Dx((a.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:a.pageX-(n.left+window.pageXOffset),y:a.pageY-(n.top+window.pageYOffset)}},b6=["prefixCls","className","onMove","onDown"],ih=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-interactive",className:a,onMove:r,onDown:l}=e,o=Ia(e,b6),i=v.useRef(null),s=v.useRef(!1),[p,u]=v.useState(!1),c=Px(r),d=Px(l),f=g=>s.current&&!Fs(g)?!1:(s.current=Fs(g),!0),W=v.useCallback(g=>{if(Jx(g),!!i.current){var C=Fs(g)?g.touches.length>0:g.buttons>0;if(!C){u(!1);return}c==null||c(Yx(i.current,g),g)}},[c]),m=v.useCallback(()=>u(!1),[]),x=v.useCallback(g=>{g?(window.addEventListener(s.current?"touchmove":"mousemove",W),window.addEventListener(s.current?"touchend":"mouseup",m)):(window.removeEventListener("mousemove",W),window.removeEventListener("mouseup",m),window.removeEventListener("touchmove",W),window.removeEventListener("touchend",m))},[W,m]);v.useEffect(()=>(x(p),()=>{x(!1)}),[p,W,m,x]);var h=v.useCallback(g=>{var C=document.activeElement;C==null||C.blur(),Jx(g.nativeEvent),f(g.nativeEvent)&&i.current&&(d==null||d(Yx(i.current,g.nativeEvent),g.nativeEvent),u(!0))},[d]);return A.jsx("div",I({},o,{className:[n,a||""].filter(Boolean).join(" "),style:I({},o.style,{touchAction:"none"}),ref:i,tabIndex:0,onMouseDown:h,onTouchStart:h}))});ih.displayName="Interactive";var k6=["className","prefixCls","left","top","style","fillProps"],w6=e=>{var{className:t,prefixCls:n,left:a,top:r,style:l,fillProps:o}=e,i=Ia(e,k6),s=I({},l,{position:"absolute",left:a,top:r}),p=I({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},o==null?void 0:o.style,{transform:a?"translate(-9px, -1px)":"translate(-1px, -9px)"});return A.jsx("div",I({className:n+"-pointer "+(t||""),style:s},i,{children:A.jsx("div",I({className:n+"-fill"},o,{style:p}))}))},R6=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],B6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",eA=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-alpha",className:a,hsva:r,background:l,bgProps:o={},innerProps:i={},pointerProps:s={},radius:p=0,width:u,height:c=16,direction:d="horizontal",style:f,onChange:W,pointer:m}=e,x=Ia(e,R6),h=V=>{W&&W(I({},r,{a:d==="horizontal"?V.left:V.top}),V)},g=Tx(Object.assign({},r,{a:1})),C="linear-gradient(to "+(d==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+g+" 100%)",y={};d==="horizontal"?y.left=r.a*100+"%":y.top=r.a*100+"%";var E=I({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:p,background:"url("+B6+") left center",backgroundColor:"var(--alpha-background-color)"},{width:u,height:c},f,{position:"relative"}),S=v.useCallback(V=>{var b=.01,B=r.a,M=B;switch(V.key){case"ArrowLeft":d==="horizontal"&&(M=Math.max(0,B-b),V.preventDefault());break;case"ArrowRight":d==="horizontal"&&(M=Math.min(1,B+b),V.preventDefault());break;case"ArrowUp":d==="vertical"&&(M=Math.max(0,B-b),V.preventDefault());break;case"ArrowDown":d==="vertical"&&(M=Math.min(1,B+b),V.preventDefault());break;default:return}if(M!==B){var F={left:d==="horizontal"?M:r.a,top:d==="vertical"?M:r.a,width:0,height:0,x:0,y:0};W&&W(I({},r,{a:M}),F)}},[r,d,W]),k=v.useCallback(V=>{V.target.focus()},[]),R=m&&typeof m=="function"?m(I({prefixCls:n},s,y)):A.jsx(w6,I({},s,{prefixCls:n},y));return A.jsxs("div",I({},x,{className:[n,n+"-"+d,a||""].filter(Boolean).join(" "),style:E,ref:t,children:[A.jsx("div",I({},o,{style:I({inset:0,position:"absolute",background:l||C,borderRadius:p},o.style)})),A.jsx(ih,I({},i,{style:I({},i.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:h,onDown:h,onClick:k,onKeyDown:S,children:R}))]}))});eA.displayName="Alpha";var L6=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],M6=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Q6=e=>Number(String(e).replace(/%/g,"")),Xo=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input",placement:a="bottom",label:r,value:l,className:o,style:i,labelStyle:s,inputStyle:p,onChange:u,onBlur:c,renderInput:d}=e,f=Ia(e,L6),[W,m]=v.useState(l),x=v.useRef(!1),h=v.useRef(f.id||n+"-"+Math.random().toString(36).slice(2,11)),g=f.id||h.current;v.useEffect(()=>{e.value!==W&&(x.current||m(e.value))},[e.value]);function C(V,b){var B=(b||V.target.value).trim().replace(/^#/,"");M6(B)&&u&&u(V,B);var M=Q6(B);isNaN(M)||u&&u(V,M),m(B)}function y(V){x.current=!1,m(e.value),c&&c(V)}var E={};a==="bottom"&&(E.flexDirection="column"),a==="top"&&(E.flexDirection="column-reverse"),a==="left"&&(E.flexDirection="row-reverse");var S=I({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},E,i),k=I({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},p),R=I({value:W,onChange:C,onBlur:y,autoComplete:"off",onFocus:()=>x.current=!0},f,{id:g,style:k,onFocusCapture:V=>{var b=V.target;b.setSelectionRange(b.value.length,b.value.length)}});return A.jsxs("div",{className:[n,o||""].filter(Boolean).join(" "),style:S,children:[d?d(R,t):A.jsx("input",I({ref:t},R)),r&&A.jsx("label",{htmlFor:g,style:I({color:"var(--editable-input-label-color)",textTransform:"capitalize"},s),children:r})]})});Xo.displayName="EditableInput";var V6=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],Zx=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-swatch",className:a,color:r,colors:l=[],style:o,rectProps:i={},onChange:s,addonAfter:p,addonBefore:u,rectRender:c}=e,d=Ia(e,V6),f=I({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},i.style),W=(m,x)=>{s&&s(zl(m),za(zl(m)),x)};return A.jsxs("div",I({ref:t},d,{className:[n,a||""].filter(Boolean).join(" "),style:I({display:"flex",flexWrap:"wrap",position:"relative"},o),children:[u&&ht.isValidElement(u)&&u,l&&Array.isArray(l)&&l.map((m,x)=>{var h="",g="";typeof m=="string"&&(h=m,g=m),typeof m=="object"&&m.color&&(h=m.title||m.color,g=m.color);var C=r&&r.toLocaleLowerCase()===g.toLocaleLowerCase(),y=c&&c({title:h,color:g,checked:!!C,style:I({},f,{background:g}),onClick:S=>W(g,S)});if(y)return A.jsx(v.Fragment,{children:y},x);var E=i.children&&ht.isValidElement(i.children)?ht.cloneElement(i.children,{color:g,checked:C}):null;return A.jsx("div",I({tabIndex:0,title:h,onClick:S=>W(g,S)},i,{children:E,style:I({},f,{background:g})}),x)}),p&&ht.isValidElement(p)&&p]}))});Zx.displayName="Swatch";function U6(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var F6={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function z6(e){var{style:t,title:n,checked:a,color:r,onClick:l,rectProps:o}=e,i=v.useRef(null),s=v.useCallback(()=>{i.current.style.zIndex="2",i.current.style.outline="#fff solid 2px",i.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),p=v.useCallback(()=>{a||(i.current.style.zIndex="0",i.current.style.outline="initial",i.current.style.boxShadow="initial")},[a]),u=a?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return A.jsx("div",I({ref:i,title:n},o,{onClick:l,onMouseEnter:s,onMouseLeave:p,style:I({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},F6,u,o==null?void 0:o.style)}))}var q6=["prefixCls","placement","className","style","color","colors","showTriangle","rectProps","onChange","rectRender"],j6=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],Pt=function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e}({}),Nx=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-github",placement:a=Pt.TopRight,className:r,style:l,color:o,colors:i=j6,showTriangle:s=!0,rectProps:p={},onChange:u,rectRender:c}=e,d=Ia(e,q6),f=typeof o=="string"&&oh(o)?zl(o):o,W=o?lh(f):"",m=E=>u&&u(za(E)),x=I({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},l),h={borderStyle:"solid",position:"absolute"},g=I({},h),C=I({},h);/^T/.test(a)&&(g.borderWidth="0 8px 8px",g.borderColor="transparent transparent var(--github-arrow-border-color)",C.borderWidth="0 7px 7px",C.borderColor="transparent transparent var(--github-background-color)"),a===Pt.TopRight&&(g.top=-8,C.top=-7),a===Pt.Top&&(g.top=-8,C.top=-7),a===Pt.TopLeft&&(g.top=-8,C.top=-7),/^B/.test(a)&&(g.borderWidth="8px 8px 0",g.borderColor="var(--github-arrow-border-color) transparent transparent",C.borderWidth="7px 7px 0",C.borderColor="var(--github-background-color) transparent transparent",a===Pt.BottomRight&&(g.top="100%",C.top="100%"),a===Pt.Bottom&&(g.top="100%",C.top="100%"),a===Pt.BottomLeft&&(g.top="100%",C.top="100%")),/^(B|T)/.test(a)&&((a===Pt.Top||a===Pt.Bottom)&&(g.left="50%",g.marginLeft=-8,C.left="50%",C.marginLeft=-7),(a===Pt.TopRight||a===Pt.BottomRight)&&(g.right=10,C.right=11),(a===Pt.TopLeft||a===Pt.BottomLeft)&&(g.left=7,C.left=8)),/^L/.test(a)&&(g.borderWidth="8px 8px 8px 0",g.borderColor="transparent var(--github-arrow-border-color) transparent transparent",C.borderWidth="7px 7px 7px 0",C.borderColor="transparent var(--github-background-color) transparent transparent",g.left=-8,C.left=-7),/^R/.test(a)&&(g.borderWidth="8px 0 8px 8px",g.borderColor="transparent transparent transparent var(--github-arrow-border-color)",C.borderWidth="7px 0 7px 7px",C.borderColor="transparent transparent transparent var(--github-background-color)",g.right=-8,C.right=-7),/^(L|R)/.test(a)&&((a===Pt.RightTop||a===Pt.LeftTop)&&(g.top=5,C.top=6),(a===Pt.Left||a===Pt.Right)&&(g.top="50%",C.top="50%",g.marginTop=-8,C.marginTop=-7),(a===Pt.LeftBottom||a===Pt.RightBottom)&&(g.top="100%",C.top="100%",g.marginTop=-21,C.marginTop=-20));var y=E=>{var S=I({},(U6(E),E)),k=c&&c(I({},S));return k||A.jsx(z6,I({},S,{rectProps:p}))};return A.jsx(Zx,I({ref:t,className:[n,r].filter(Boolean).join(" "),colors:i,color:W,rectRender:y},d,{onChange:m,style:x,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:A.jsx(v.Fragment,{children:s&&A.jsxs(v.Fragment,{children:[A.jsx("div",{style:g}),A.jsx("div",{style:C})]})})}))});Nx.displayName="Github";var T6=e=>{var{className:t,color:n,left:a,top:r,prefixCls:l}=e,o={position:"absolute",top:r,left:a},i={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:n};return v.useMemo(()=>A.jsx("div",{className:l+"-pointer "+(t||""),style:o,children:A.jsx("div",{className:l+"-fill",style:i})}),[r,a,n,t,l])},O6=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],Gx=ht.forwardRef((e,t)=>{var n,{prefixCls:a="w-color-saturation",radius:r=0,pointer:l,className:o,hue:i=0,style:s,hsva:p,onChange:u}=e,c=Ia(e,O6),d=I({width:200,height:200,borderRadius:r},s,{position:"relative"}),f=v.useRef(null),W=v.useCallback(C=>{f.current=C,typeof t=="function"?t(C):t&&"current"in t&&(t.current=C)},[t]),m=v.useCallback((C,y)=>{u&&p&&u({h:p.h,s:C.left*100,v:(1-C.top)*100,a:p.a});var E=f.current;E&&E.focus()},[p,u]),x=v.useCallback(C=>{if(!(!p||!u)){var y=1,E=p.s,S=p.v,k=!1;switch(C.key){case"ArrowLeft":E=Math.max(0,p.s-y),k=!0,C.preventDefault();break;case"ArrowRight":E=Math.min(100,p.s+y),k=!0,C.preventDefault();break;case"ArrowUp":S=Math.min(100,p.v+y),k=!0,C.preventDefault();break;case"ArrowDown":S=Math.max(0,p.v-y),k=!0,C.preventDefault();break;default:return}k&&u({h:p.h,s:E,v:S,a:p.a})}},[p,u]),h=v.useMemo(()=>{if(!p)return null;var C={top:100-p.v+"%",left:p.s+"%",color:Tx(p)};return l&&typeof l=="function"?l(I({prefixCls:a},C)):A.jsx(T6,I({prefixCls:a},C))},[p,l,a]),g=v.useCallback(C=>{C.target.focus()},[]);return A.jsx(ih,I({className:[a,o||""].filter(Boolean).join(" ")},c,{style:I({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((n=p==null?void 0:p.h)!=null?n:i)+", 100%, 50%))"},d,{outline:"none"}),ref:W,onMove:m,onDown:m,onKeyDown:x,onClick:g,children:h}))});Gx.displayName="Saturation";var K6=["prefixCls","className","hue","onChange","direction"],Hx=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-hue",className:a,hue:r=0,onChange:l,direction:o="horizontal"}=e,i=Ia(e,K6);return A.jsx(eA,I({ref:t,className:n+" "+(a||"")},i,{direction:o,background:"linear-gradient(to "+(o==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:r,s:100,v:100,a:r/360},onChange:(s,p)=>{l&&l({h:o==="horizontal"?360*p.left:360*p.top})}}))});Hx.displayName="Hue";var P6=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],sh=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-rgba",hsva:a,placement:r="bottom",rProps:l={},gProps:o={},bProps:i={},aProps:s={},className:p,style:u,onChange:c}=e,d=Ia(e,P6),f=a?Us(a):{};function W(g){var C=Number(g.target.value);C&&C>255&&(g.target.value="255"),C&&C<0&&(g.target.value="0")}var m=g=>{var C=Number(g.target.value);C&&C>100&&(g.target.value="100"),C&&C<0&&(g.target.value="0")},x=(g,C,y)=>{typeof g=="number"&&(C==="a"&&(g<0&&(g=0),g>100&&(g=100),c&&c(za(Vs(I({},f,{a:g/100}))))),g>255&&(g=255,y.target.value="255"),g<0&&(g=0,y.target.value="0"),C==="r"&&c&&c(za(Vs(I({},f,{r:g})))),C==="g"&&c&&c(za(Vs(I({},f,{g})))),C==="b"&&c&&c(za(Vs(I({},f,{b:g})))))},h=f.a?Math.round(f.a*100)/100:0;return A.jsxs("div",I({ref:t,className:[n,p||""].filter(Boolean).join(" ")},d,{style:I({fontSize:11,display:"flex"},u),children:[A.jsx(Xo,I({label:"R",value:f.r||0,onBlur:W,placement:r,onChange:(g,C)=>x(C,"r",g)},l,{style:I({},l.style)})),A.jsx(Xo,I({label:"G",value:f.g||0,onBlur:W,placement:r,onChange:(g,C)=>x(C,"g",g)},o,{style:I({marginLeft:5},o.style)})),A.jsx(Xo,I({label:"B",value:f.b||0,onBlur:W,placement:r,onChange:(g,C)=>x(C,"b",g)},i,{style:I({marginLeft:5},i.style)})),s&&A.jsx(Xo,I({label:"A",value:parseInt(String(h*100),10),onBlur:m,placement:r,onChange:(g,C)=>x(C,"a",g)},s,{style:I({marginLeft:5},s.style)}))]}))});sh.displayName="EditableInputRGBA";var J6=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],Xx=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-hsla",hsva:a,hProps:r={},sProps:l={},lProps:o={},aProps:i={},className:s,onChange:p}=e,u=Ia(e,J6),c=a?rh(a):{h:0,s:0,l:0,a:0},d=(W,m,x)=>{typeof W=="number"&&(m==="h"&&(W<0&&(W=0),W>360&&(W=360),p&&p(za($c(I({},c,{h:W}))))),m==="s"&&(W<0&&(W=0),W>100&&(W=100),p&&p(za($c(I({},c,{s:W}))))),m==="l"&&(W<0&&(W=0),W>100&&(W=100),p&&p(za($c(I({},c,{l:W}))))),m==="a"&&(W<0&&(W=0),W>1&&(W=1),p&&p(za($c(I({},c,{a:W}))))))},f=i==!1?!1:I({label:"A",value:Math.round(c.a*100)/100},i,{onChange:(W,m)=>d(m,"a")});return A.jsx(sh,I({ref:t,hsva:a,rProps:I({label:"H",value:Math.round(c.h)},r,{onChange:(W,m)=>d(m,"h")}),gProps:I({label:"S",value:Math.round(c.s)+"%"},l,{onChange:(W,m)=>d(m,"s")}),bProps:I({label:"L",value:Math.round(c.l)+"%"},o,{onChange:(W,m)=>d(m,"l")}),aProps:f,className:[n,s||""].filter(Boolean).join(" ")},u))});Xx.displayName="EditableInputHSLA";var D6=["style"];function Y6(e){var{style:t}=e,n=Ia(e,D6),a=v.useRef(null),r=v.useCallback(()=>{a.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),l=v.useCallback(()=>{a.current.style.backgroundColor="transparent"},[]);return A.jsx("div",I({ref:a,style:I({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},t)},n,{onMouseEnter:r,onMouseLeave:l,children:A.jsx("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:A.jsx("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}function Z6(){return"EyeDropper"in window}function N6(e){var t=()=>{if("EyeDropper"in window){var n=new window.EyeDropper;n.open().then(a=>{e.onPickColor==null||e.onPickColor(a.sRGBHex)}).catch(a=>{a.name})}};return A.jsx("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:t,children:A.jsx("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var G6=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],qa=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),_x=ht.forwardRef((e,t)=>{var{prefixCls:n="w-color-chrome",className:a,style:r,color:l,showEditableInput:o=!0,showEyeDropper:i=!0,showColorPreview:s=!0,showHue:p=!0,showAlpha:u=!0,inputType:c=qa.RGBA,rectProps:d={},onChange:f}=e,W=Ia(e,G6),m=typeof l=="string"&&oh(l)?zl(l):l||{h:0,s:0,l:0,a:0},x=B=>f&&f(za(B)),[h,g]=v.useState(c),C=()=>{h===qa.RGBA&&g(qa.HSLA),h===qa.HSLA&&g(qa.HEXA),h===qa.HEXA&&g(qa.RGBA)},y={paddingTop:6},E={textAlign:"center",paddingTop:4,paddingBottom:4},S=I({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},r),k={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:C6(m),boxShadow:"var(--chrome-alpha-box-shadow)"},R=B=>{var M=zl(B);x(I({},M))},V={height:14,width:14},b={style:I({},V),fillProps:{style:V}};return A.jsx(Nx,I({ref:t,color:m,style:S,colors:void 0,className:[n,a].filter(Boolean).join(" "),placement:Pt.TopLeft},W,{addonAfter:A.jsxs(v.Fragment,{children:[A.jsx(Gx,{hsva:m,style:{width:"100%",height:130},onChange:B=>{x(I({},m,B,{a:m.a}))}}),A.jsxs("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[Z6()&&i&&A.jsx(N6,{onPickColor:R}),s&&A.jsx(eA,{width:28,height:28,hsva:m,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:k},pointer:()=>A.jsx(v.Fragment,{})}),A.jsxs("div",{style:{flex:1},children:[p==!0&&A.jsx(Hx,{hue:m.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:b,bgProps:{style:{borderRadius:2}},onChange:B=>{x(I({},m,B))}}),u==!0&&A.jsx(eA,{hsva:m,style:{marginTop:6,height:12,borderRadius:2},pointerProps:b,bgProps:{style:{borderRadius:2}},onChange:B=>{x(I({},m,B))}})]})]}),o&&A.jsxs("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[A.jsxs("div",{style:{flex:1},children:[h==qa.RGBA&&A.jsx(sh,{hsva:m,rProps:{labelStyle:y,inputStyle:E},gProps:{labelStyle:y,inputStyle:E},bProps:{labelStyle:y,inputStyle:E},aProps:u==!1?!1:{labelStyle:y,inputStyle:E},onChange:B=>x(B.hsva)}),h===qa.HEXA&&A.jsx(Xo,{label:"HEX",labelStyle:y,inputStyle:E,value:m.a>0&&m.a<1?S6(m).toLocaleUpperCase():lh(m).toLocaleUpperCase(),onChange:(B,M)=>{typeof M=="string"&&x(zl(/^#/.test(M)?M:"#"+M))}}),h===qa.HSLA&&A.jsx(Xx,{hsva:m,hProps:{labelStyle:y,inputStyle:E},sProps:{labelStyle:y,inputStyle:E},lProps:{labelStyle:y,inputStyle:E},aProps:u==!1?!1:{labelStyle:y,inputStyle:E},onChange:B=>x(B.hsva)})]}),A.jsx(Y6,{onClick:C})]})]}),rectRender:()=>A.jsx(v.Fragment,{})}))});_x.displayName="Chrome";const ph="#6366f1";function zs(e){const t=e.trim().replace(/^#/,"");return/^[0-9a-fA-F]{6}$/.test(t)?`#${t.toLowerCase()}`:/^[0-9a-fA-F]{3}$/.test(t)?`#${t.split("").map(a=>a+a).join("").toLowerCase()}`:""}function H6({colors:e,primary:t,secondary:n,onPrimaryChange:a,onSecondaryChange:r,onColorsChange:l}){const{shadowRoot:o}=Ua(),i=v.useMemo(()=>o??void 0,[o]),[s,p]=v.useState(null),u=!!s,[c,d]=v.useState(ph),[f,W]=v.useState(""),[m,x]=v.useState(null),h=v.useCallback(R=>{p(R),d(e.length>0?e[e.length-1]:ph)},[e]),g=v.useCallback(()=>{p(null)},[]),C=v.useCallback(()=>{const R=zs(c);if(!R)return;if(e.some(b=>b.toLowerCase()===R.toLowerCase())){g();return}l([...e,R]),g()},[e,c,l,g]),y=v.useCallback(R=>{const V=e[R],b=e.filter((B,M)=>M!==R);V&&t.toLowerCase()===V.toLowerCase()&&a(""),V&&n.toLowerCase()===V.toLowerCase()&&r(""),l(b)},[e,t,n,a,r,l]),E=v.useCallback((R,V)=>{W(V),R.dataTransfer.effectAllowed="copy",R.dataTransfer.setData("text/plain",V)},[]),S=v.useCallback(()=>{x(null),W("")},[]),k=v.useCallback((R,V)=>{V.preventDefault();const b=V.dataTransfer.getData("text/plain"),B=zs(b||f);if(!B){x(null);return}R==="primary"?a(B):r(B),x(null),W("")},[f,a,r]);return A.jsxs(K,{children:[A.jsx(fe,{variant:"subtitle2",sx:{mb:2,fontWeight:600},children:"בחירת צבעי עיצוב"}),A.jsx(fe,{variant:"body2",sx:{mb:2,color:"text.secondary"},children:"הוסיפו צבעים משלכם או בחרו מהמאגר. לחצו על גוון או גררו אותו לאזור צבע ראשי/משני כדי להגדיר."}),A.jsx(ze,{variant:"contained",color:"primary",size:"medium",startIcon:A.jsx(Fl,{}),onClick:R=>u?g():h(R.currentTarget),"aria-expanded":u,"aria-controls":"business-ai-color-picker-panel",id:"business-ai-color-picker-trigger",sx:{mb:3,px:2.5,py:1,borderRadius:3,textTransform:"none",fontWeight:600,boxShadow:"0 8px 24px rgba(99, 40, 167, 0.35)","&:hover":{boxShadow:"0 10px 28px rgba(99, 40, 167, 0.42)"}},children:u?"סגירת לוח בחירת הצבע":"הוספת צבע משלך"}),A.jsxs(SI,{open:u,anchorEl:s,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0,container:i,disablePortal:!i,slotProps:{root:{sx:{zIndex:2e3},disableEnforceFocus:!0,disableAutoFocus:!0},paper:{id:"business-ai-color-picker-panel",elevation:8,role:"region","aria-labelledby":"business-ai-color-picker-trigger",sx:{mt:1,p:2.5,borderRadius:3,maxWidth:340,background:"linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%)",border:"1px solid",borderColor:"divider",overflow:"visible"}}},children:[A.jsx(fe,{variant:"subtitle2",sx:{mb:1.5,fontWeight:700},children:"בחירת צבע וגוון"}),A.jsx(fe,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:1.5},children:"התאמת גוון, רוויה ובהירות, ועריכת HEX / RGB / HSL. אפשר לעבור בין מצבי הקלט בלחיצה על תווית השדות. דיגום צבע מהמסך זמין בדפדפנים שתומכים בכך."}),A.jsx(K,{sx:{display:"flex",justifyContent:"center",mb:2,"& .w-color-chrome":{boxShadow:"none !important",borderRadius:2,border:"1px solid",borderColor:"divider",overflow:"hidden",bgcolor:"background.paper"}},children:A.jsx(_x,{color:zs(c)||ph,onChange:R=>d(R.hex),showAlpha:!1,showHue:!0,showColorPreview:!0,showEditableInput:!0,showEyeDropper:!0,inputType:qa.RGBA,style:{width:"100%",maxWidth:280}})}),A.jsxs(K,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[A.jsx(ze,{variant:"text",onClick:g,sx:{textTransform:"none"},children:"ביטול"}),A.jsx(ze,{variant:"contained",color:"primary",onClick:C,disabled:!zs(c),sx:{textTransform:"none",borderRadius:2,px:2},children:"הוסף ללוח"})]})]}),A.jsxs(K,{sx:{display:"flex",gap:2,mb:3,flexWrap:"wrap"},children:[A.jsxs(Nt,{elevation:0,sx:{p:2,border:"2px solid",borderColor:t?"primary.main":"divider",borderRadius:2,flex:1,minWidth:120},children:[A.jsx(fe,{variant:"caption",sx:{display:"block",mb:1},children:"צבע ראשי"}),A.jsxs(K,{sx:{width:"100%",height:60,backgroundColor:t||"#f5f5f5",borderRadius:1,border:"2px dashed",borderColor:m==="primary"?"primary.main":t?"divider":"rgba(99, 40, 167, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",transition:"all 0.15s ease",boxShadow:m==="primary"?"0 0 0 3px rgba(99, 40, 167, 0.16)":"none"},onDragOver:R=>{R.preventDefault(),R.dataTransfer.dropEffect="copy",x("primary")},onDragLeave:()=>{m==="primary"&&x(null)},onDrop:R=>k("primary",R),children:[t&&A.jsxs(A.Fragment,{children:[A.jsx(fe,{variant:"caption",sx:{color:qs(t)==="white"?"white":"black",fontWeight:"bold"},children:t.toUpperCase()}),A.jsx(ah,{sx:{position:"absolute",top:4,right:4,fontSize:16,color:qs(t)}})]}),!t&&A.jsx(fe,{variant:"caption",color:"text.secondary",children:"גררו לכאן צבע ראשי"})]})]}),A.jsxs(Nt,{elevation:0,sx:{p:2,border:"2px solid",borderColor:n?"secondary.main":"divider",borderRadius:2,flex:1,minWidth:120},children:[A.jsx(fe,{variant:"caption",sx:{display:"block",mb:1},children:"צבע משני"}),A.jsxs(K,{sx:{width:"100%",height:60,backgroundColor:n||"#f5f5f5",borderRadius:1,border:"2px dashed",borderColor:m==="secondary"?"secondary.main":n?"divider":"rgba(0, 0, 0, 0.25)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",transition:"all 0.15s ease",boxShadow:m==="secondary"?"0 0 0 3px rgba(0, 0, 0, 0.14)":"none"},onDragOver:R=>{R.preventDefault(),R.dataTransfer.dropEffect="copy",x("secondary")},onDragLeave:()=>{m==="secondary"&&x(null)},onDrop:R=>k("secondary",R),children:[n&&A.jsxs(A.Fragment,{children:[A.jsx(fe,{variant:"caption",sx:{color:qs(n)==="white"?"white":"black",fontWeight:"bold"},children:n.toUpperCase()}),A.jsx(ah,{sx:{position:"absolute",top:4,right:4,fontSize:16,color:qs(n)}})]}),!n&&A.jsx(fe,{variant:"caption",color:"text.secondary",children:"גררו לכאן צבע משני"})]})]})]}),A.jsx(fe,{variant:"caption",sx:{display:"block",mb:1},children:"לוח צבעים"}),e.length===0?A.jsxs(Nt,{variant:"outlined",sx:{py:4,px:2,textAlign:"center",borderRadius:2,borderStyle:"dashed",bgcolor:"action.hover"},children:[A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:"עדיין אין צבעים בלוח"}),A.jsx(fe,{variant:"caption",color:"text.secondary",children:'לחצו על "הוספת צבע משלך" כדי להתחיל'})]}):A.jsx(K,{sx:{display:"flex",flexWrap:"wrap",gap:2},children:e.map((R,V)=>{const b=t.toLowerCase()===R.toLowerCase(),B=n.toLowerCase()===R.toLowerCase(),M=b||B;return A.jsx(Nt,{elevation:M?4:1,sx:{position:"relative",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:3}},children:A.jsxs(K,{sx:{width:100,height:130,position:"relative",p:1},children:[A.jsx(mg,{title:"הסר מהלוח",children:A.jsx(Hn,{size:"small",onClick:()=>y(V),sx:{position:"absolute",top:4,left:4,zIndex:2,bgcolor:"rgba(255,255,255,0.92)",width:26,height:26,"&:hover":{bgcolor:"rgba(255,255,255,1)"}},"aria-label":"הסר צבע",children:A.jsx(Nc,{sx:{fontSize:16}})})}),A.jsxs(K,{draggable:!0,onDragStart:F=>E(F,R),onDragEnd:S,sx:{width:"100%",height:80,backgroundColor:R,borderRadius:1,border:"2px solid",borderColor:M?b?"primary.main":"secondary.main":"divider",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",cursor:"grab","&:active":{cursor:"grabbing"}},children:[b&&A.jsx(K,{sx:{position:"absolute",top:4,right:4,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",px:.5,py:.25,borderRadius:.5,fontSize:9,fontWeight:"bold"},children:"ראשי"}),B&&!b&&A.jsx(K,{sx:{position:"absolute",top:4,right:4,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",px:.5,py:.25,borderRadius:.5,fontSize:9,fontWeight:"bold"},children:"משני"}),A.jsx(fe,{variant:"caption",sx:{color:qs(R),fontWeight:"bold",fontSize:10,textAlign:"center",px:.5},children:R.toUpperCase()})]}),A.jsxs(K,{sx:{display:"flex",gap:.5,mt:1,justifyContent:"center"},children:[A.jsx(mg,{title:b?"הסר מצבע ראשי":"הגדר כצבע ראשי",children:A.jsx(ze,{size:"small",variant:b?"contained":"outlined",color:"primary",sx:{minWidth:"auto",px:1,fontSize:10,height:28},onClick:()=>{a(b?"":R)},children:"ראשי"})}),A.jsx(mg,{title:B?"הסר מצבע משני":"הגדר כצבע משני",children:A.jsx(ze,{size:"small",variant:B?"contained":"outlined",color:"secondary",sx:{minWidth:"auto",px:1,fontSize:10,height:28},onClick:()=>{r(B?"":R)},children:"משני"})})]})]})},`${R}-${V}`)})})]})}function qs(e){const t=zs(e);if(!t)return"black";const n=t.replace("#",""),a=parseInt(n.substring(0,2),16),r=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);return(.299*a+.587*r+.114*l)/255>.5?"black":"white"}const uh="_analyzingContainer_aogto_1",ch="_scanningLine_aogto_10",$x="_scan_aogto_10",Ah="_dataBars_aogto_19",dh="_dataBar_aogto_19",eE="_analyze_aogto_1",fh="_dots_aogto_80",Wh="_fadeUp_aogto_98",gh="_fadeUpDelay1_aogto_103",hh="_fadeUpDelay2_aogto_108",tE="_fadeUpDelay3_aogto_113",X6=Object.freeze(Object.defineProperty({__proto__:null,analyze:eE,analyzingContainer:uh,dataBar:dh,dataBars:Ah,default:{analyzingContainer:uh,scanningLine:ch,scan:$x,dataBars:Ah,dataBar:dh,analyze:eE,dots:fh,fadeUp:Wh,fadeUpDelay1:gh,fadeUpDelay2:hh,fadeUpDelay3:tE},dots:fh,fadeUp:Wh,fadeUpDelay1:gh,fadeUpDelay2:hh,fadeUpDelay3:tE,scan:$x,scanningLine:ch},Symbol.toStringTag,{value:"Module"})),_6=`.analyzingContainer {
399
399
  position: relative;
400
400
  width: 200px;
401
401
  height: 80px;
@@ -521,8 +521,8 @@ data: `)[1];throw console.error("[v3-sse] error event:",W),new Error(JSON.parse(
521
521
  ${c(u,.8)} 0%,
522
522
  ${c(u,.6)} 50%,
523
523
  ${c(u,.4)} 100%
524
- )`,animationDelay:`${f*.15}s`}},f))})]}),A.jsxs(fe,{className:l?gh:"",sx:{fontSize:{xs:"0.875rem",sm:"1rem"},fontWeight:500,color:"text.secondary"},children:[e,A.jsx("span",{className:fh,children:a})]}),t&&A.jsxs(K,{className:l?hh:"",sx:{width:"100%",maxWidth:"600px",display:"flex",flexDirection:"column",gap:2,mt:1},children:[A.jsx(hg,{variant:"rectangular",height:60,sx:{borderRadius:2}}),A.jsx(hg,{variant:"rectangular",height:40,width:"80%",sx:{borderRadius:2}}),A.jsx(hg,{variant:"rectangular",height:40,width:"60%",sx:{borderRadius:2}})]})]}):null}const $o=Ul,nO=["קהילה ועמותות","טכנולוגיה","בריאות","חינוך","אוכל ומסעדות","אופנה","נדל״ן","כספים וביטוח","תחבורה ולוגיסטיקה","תקשורת ושיווק","אמנות ותרבות","ספורט ופנאי","ייעוץ וניהול","מסחר קמעונאי","ייצור","אנרגיה וסביבה","משפטים","בנייה","חקלאות","תיירות","בידור","ביטחון"],aO=["מקצועי","ידידותי","פורמלי","לא פורמלי","חברתי","מעודכן","קלאסי","צעיר","משפחתי","איכותי","מהיר","אמין","יצירתי","חכם","חם","קר","מעורר השראה","מעשי","יוקרתי","נגיש"],js=e=>{if(!e||typeof e!="string")return e;const t=e.trim();return!t||/^https?:\/\//i.test(t)?t:`https://${t}`};function rO(e,t,n){let a="";const r=n.trim().toLowerCase();if(r)try{const o=/^https?:\/\//i.test(r)?r:`https://${r}`;a=new URL(o).hostname.replace(/^www\./,"")}catch{}const l=`${a} ${r} ${e.toLowerCase()} ${t.toLowerCase()}`;return/linkedin|לינקדאין|לינקדין/.test(l)?Sx:/facebook|fb\.com|fb\.me|פייסבוק/.test(l)?mx:/instagram|instagr\.am|אינסטגרם/.test(l)?vx:/youtube|youtu\.be|יוטיוב/.test(l)?xx:/(^|\.)x\.com|twitter\.com|טוויטר|טוויט/.test(l)?bx:/tiktok|טיקטוק|tik tok/.test(l)?jx:/whatsapp|wa\.me|וואטסאפ|ווטסאפ/.test(l)?wx:/telegram|t\.me|טלגרם/.test(l)?Bx:/reddit|רדיט/.test(l)?Mx:/pinterest|פינטרסט/.test(l)?Vx:/github|גיטהאב|גיטהב/.test(l)?Fx:qx}function lO({platform:e,url:t,onPlatformCommit:n,onUrlChange:a,onRemove:r}){const[l,o]=v.useState(e);v.useEffect(()=>{o(e)},[e]);const i=v.useCallback(()=>{l!==e&&n(e,l)},[e,l,n]),s=rO(e,l,t);return A.jsxs(K,{sx:{display:"flex",alignItems:"flex-start",gap:1,mb:1,flexDirection:{xs:"column",sm:"row"}},children:[A.jsx(at,{fullWidth:!0,label:"פלטפורמה",value:l,onChange:p=>o(p.target.value),onBlur:i,onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),p.target.blur())},variant:"outlined",margin:"normal",size:"small",sx:{flex:{xs:"1 1 100%",sm:"0 0 min(200px, 34%)"}},placeholder:"לדוגמה: LinkedIn",InputProps:{startAdornment:A.jsx(ug,{position:"start",sx:{mr:0},children:A.jsx(s,{sx:{fontSize:22,color:"primary.main"},"aria-hidden":!0})})}}),A.jsx(at,{fullWidth:!0,label:"קישור",value:t,onChange:p=>a(e,p.target.value),variant:"outlined",margin:"normal",size:"small",sx:{flex:1},placeholder:"https://..."}),A.jsx(Hn,{color:"error",onClick:()=>r(e),sx:{mt:1},"aria-label":"הסר רשת חברתית",children:A.jsx(Qs,{})})]})}const oO=e=>({business_name:"",industry:"",business_type:"",business_type_options:[],keywords:[],profit_intent:"",is_haredi_sector:null,business_tone:"",description:"",overall_confidence:0,owner:"",owner_gender:"",business_address:"",website:e||"",contacts:{email:"",phone:""},socials:{linkedin:"",instagram:"",facebook:""},theme:void 0,website_confidence:0,confidence_scores:{website:0,contacts:{phone:0},socials:{},overall:0},token_usage:{total:{prompt_tokens:0,completion_tokens:0,total_tokens:0},breakdown:{analyze_business:{prompt_tokens:0,completion_tokens:0,total_tokens:0}}},estimated_cost_usd:0,source_urls:[],analyzed_at:new Date().toISOString()}),Ts=e=>{var t,n;return e?{...e,business_address:e.business_address??(e==null?void 0:e.address)??"",business_type_options:Array.isArray(e.business_type_options)?e.business_type_options:[],keywords:Array.isArray(e.keywords)?e.keywords:[],description:Array.isArray(e.description)?e.description:e.description?[e.description]:[""],contacts:{email:((t=e.contacts)==null?void 0:t.email)??"",phone:((n=e.contacts)==null?void 0:n.phone)??""},socials:e.socials&&typeof e.socials=="object"?e.socials:{linkedin:"",instagram:"",facebook:""},theme:(()=>{var o;const a=(o=e.theme)==null?void 0:o.logoHeaderBackground,r=(e==null?void 0:e.logoHeaderBackground)??(e==null?void 0:e.logoBackgroundHex),l=typeof a=="string"?a:typeof r=="string"?r:void 0;if(e.theme)return{primary:e.theme.primary||"",secondary:e.theme.secondary||"",colors:Array.isArray(e.theme.colors)?e.theme.colors:[],...l?{logoHeaderBackground:l}:{}};if(l)return{primary:"",secondary:"",colors:[],logoHeaderBackground:l}})()}:null};function iO({data:e,websiteUrl:t,setActiveStep:n,onSave:a,urls:r,language:l}){var Pe,je,it,D,ne;const o=Go(),[i,s]=v.useState(null),[p,u]=v.useState(!0),[c,d]=v.useState(null),[f,W]=v.useState(!1),[m,x]=v.useState(null),[h,g]=v.useState([]),[C,y]=v.useState([]),[E,S]=v.useState((e==null?void 0:e.logo)||(e&&typeof e=="object"&&"logo"in e?e.logo:"")),k=v.useRef(null),R=v.useRef(""),V=v.useRef(!1),b=v.useRef(!1),[B,M]=v.useState(0),F=v.useRef(new Map),z=v.useRef(0),T=()=>{F.current=new Map,z.current=0},j=U=>{const O=F.current;let Y=O.get(U);return Y||(Y=`social-row-${z.current++}`,O.set(U,Y)),Y},{shadowRoot:P,stepBeforeStep1:L,step2Data:q}=Ua(),[w,H]=v.useState(!1),te=v.useCallback(U=>{if(!U){S(""),s(Y=>{var Ie,Se,pe,xe;return!Y||!((Ie=Y.theme)!=null&&Ie.logoHeaderBackground)?Y:{...Y,theme:{...Y.theme,primary:((Se=Y.theme)==null?void 0:Se.primary)??"",secondary:((pe=Y.theme)==null?void 0:pe.secondary)??"",colors:((xe=Y.theme)==null?void 0:xe.colors)??[],logoHeaderBackground:void 0}}});return}U.startsWith("http://")||U.startsWith("https://")?zj(U).then(Y=>{S(Y.pngDataUrl),s(Ie=>{var Se,pe,xe,Qe;return Ie&&{...Ie,theme:{...Ie.theme,primary:((Se=Ie.theme)==null?void 0:Se.primary)??"",secondary:((pe=Ie.theme)==null?void 0:pe.secondary)??"",colors:((xe=Ie.theme)==null?void 0:xe.colors)??[],logoHeaderBackground:((Qe=Ie.theme)==null?void 0:Qe.logoHeaderBackground)??Y.backgroundHex}}})}).catch(()=>{S(U)}):S(U)},[]),Q=U=>{var Ie;const O=(Ie=U.target.files)==null?void 0:Ie[0];if(!O)return;if(!O.type.startsWith("image/")){alert("אנא בחר קובץ תמונה בלבד");return}if(O.size>5*1024*1024){alert("קובץ התמונה גדול מדי. אנא בחר קובץ קטן מ-5MB");return}const Y=new FileReader;Y.onloadend=()=>{const Se=Y.result;S(Se)},Y.onerror=()=>{alert("שגיאה בקריאת הקובץ. אנא נסה שוב.")},Y.readAsDataURL(O)},N=()=>{S(""),s(U=>{var O,Y,Ie,Se;return(O=U==null?void 0:U.theme)!=null&&O.logoHeaderBackground?{...U,theme:{...U.theme,primary:((Y=U.theme)==null?void 0:Y.primary)??"",secondary:((Ie=U.theme)==null?void 0:Ie.secondary)??"",colors:((Se=U.theme)==null?void 0:Se.colors)??[],logoHeaderBackground:void 0}}:U}),k.current&&(k.current.value="")},re=v.useCallback(()=>[...nO].sort(),[]),ue=v.useCallback(()=>[...aO].sort(),[]);v.useEffect(()=>{g(re()),y(ue())},[re,ue]),v.useEffect(()=>{if(i!=null&&i.industry){const U=re();U.includes(i.industry)||U.push(i.industry),g(U.sort())}},[i==null?void 0:i.industry,re]),v.useEffect(()=>{if(i!=null&&i.business_tone){const U=ue();U.includes(i.business_tone)||U.push(i.business_tone),y(U.sort())}},[i==null?void 0:i.business_tone,ue]);const X=U=>!U||typeof U!="object"?!1:"business_name"in U||"industry"in U||"business_type"in U||"keywords"in U||"description"in U;v.useEffect(()=>{if(e&&X(e)&&e.logo){const U=e.logo;U.startsWith("http://")||U.startsWith("https://")?te(U):S(U)}else if(e&&"logo"in e&&e.logo){const U=e.logo;U.startsWith("http://")||U.startsWith("https://")?te(U):S(U)}},[e,te]),v.useEffect(()=>{!p&&i&&H(!0)},[p,i]),v.useEffect(()=>{(async()=>{var xe,Qe,Je,ft,bt,kt,Dt,rt;const O=t?js(t).replace(/\/$/,"").toLowerCase():"",Y=t&&t.trim()!=="";if(R.current===O&&i!==null&&Y){u(!1);return}if(V.current)return;const Se=!!(e&&X(e));if(!Se&&(q!=null&&q.businessData)&&(q!=null&&q.websiteUrl)){const Xe=Ts(q.businessData);if(Xe){T(),s(Xe),u(!1),R.current="",q.logo&&(q.logo.startsWith("http://")||q.logo.startsWith("https://")?te(q.logo):S(q.logo));return}}if(Y){const Xe=e==null?void 0:e.business_name;if(!b.current&&Se&&Xe&&Xe.trim()!==""){const _e=Ts(e);if(_e){T(),s(_e),u(!1),R.current=O;const Ve=e==null?void 0:e.logo;Ve&&(Ve.startsWith("http://")||Ve.startsWith("https://")?te(Ve):S(Ve));return}}const Ce=Array.isArray(r)?r.map(js):[];Ce.push(js(t));try{V.current=!0,b.current=!1,u(!0),d(null);const _e=await ox(t,Ce,"",l);let Ve=Ts(_e);const It=(xe=e==null?void 0:e.theme)==null?void 0:xe.logoHeaderBackground;if(Ve&&typeof It=="string"&&(Ve={...Ve,theme:{...Ve.theme,primary:((Qe=Ve.theme)==null?void 0:Qe.primary)??"",secondary:((Je=Ve.theme)==null?void 0:Je.secondary)??"",colors:Array.isArray((ft=Ve.theme)==null?void 0:ft.colors)?Ve.theme.colors:[],logoHeaderBackground:It}}),Ve){T(),s(Ve),R.current=O;const Tt=_e==null?void 0:_e.logo;Tt&&te(Tt)}else d("שגיאה בעיבוד הנתונים שהתקבלו מהשרת")}catch(_e){d(_e instanceof Error?_e.message:"שגיאה בטעינת הנתונים")}finally{u(!1),V.current=!1}return}if(e&&X(e)){const Xe=Ts(e);if(Xe){T(),s(Xe),u(!1),R.current="";const Ce=e==null?void 0:e.logo;Ce&&(Ce.startsWith("http://")||Ce.startsWith("https://")?te(Ce):S(Ce));return}}const pe=Array.isArray(r)?r.map(js):[];if(pe.length===0){T(),s(oO(t)),u(!1),R.current="";return}try{V.current=!0,u(!0),d(null);const Xe=await ox(t,pe,"",l);let Ce=Ts(Xe);const _e=(bt=e==null?void 0:e.theme)==null?void 0:bt.logoHeaderBackground;if(Ce&&typeof _e=="string"&&(Ce={...Ce,theme:{...Ce.theme,primary:((kt=Ce.theme)==null?void 0:kt.primary)??"",secondary:((Dt=Ce.theme)==null?void 0:Dt.secondary)??"",colors:Array.isArray((rt=Ce.theme)==null?void 0:rt.colors)?Ce.theme.colors:[],logoHeaderBackground:_e}}),Ce){T(),s(Ce),R.current="";const Ve=Xe==null?void 0:Xe.logo;Ve&&te(Ve)}else d("שגיאה בעיבוד הנתונים שהתקבלו מהשרת")}catch(Xe){d(Xe instanceof Error?Xe.message:"שגיאה בטעינת הנתונים")}finally{u(!1),V.current=!1}})()},[t,q,B]);const ee=(U,O)=>{i&&s({...i,[U]:O})},de=(U,O,Y)=>{i&&s({...i,[U]:{...i[U],[O]:Y}})},ae=(U,O)=>{if(i){const Y=i.theme||{primary:"",secondary:"",colors:[]};s({...i,theme:{...Y,[U]:O}})}},G=U=>{if(!i)return;const O={primary:"",secondary:"",colors:[],...i.theme},Y=xe=>xe.toLowerCase(),Ie=new Set(U.map(Y)),Se=O.primary&&Ie.has(Y(O.primary))?O.primary:"",pe=O.secondary&&Ie.has(Y(O.secondary))?O.secondary:"";s({...i,theme:{...O,primary:Se,secondary:pe,colors:U}})},he=(U,O,Y)=>{if(i)if(U==="description"){const Se=[...Array.isArray(i.description)?i.description:i.description?[i.description]:[""]];Se[O]=Y,s({...i,description:Se})}else{const Ie=[...i[U]];Ie[O]=Y,s({...i,[U]:Ie})}},ge=()=>{if(i){const U=[...i.business_type_options,""];s({...i,business_type_options:U})}},me=U=>{if(i){const O=i.business_type_options.filter((Y,Ie)=>Ie!==U);s({...i,business_type_options:O})}},ve=()=>{if(i){const O=[...Array.isArray(i.description)?i.description:i.description?[i.description]:[""],""];s({...i,description:O})}},ce=U=>{if(i){const Y=(Array.isArray(i.description)?i.description:i.description?[i.description]:[""]).filter((Ie,Se)=>Se!==U);s({...i,description:Y.length>0?Y:[""]})}},Ze=()=>{if(i){const U={...i.socials};let O=1,Y="social_media";for(;U[Y];)Y=`social_media_${O}`,O++;U[Y]="",F.current.has(Y)||F.current.set(Y,`social-row-${z.current++}`),s({...i,socials:U})}},le=U=>{if(i){F.current.delete(U);const O={...i.socials};delete O[U],s({...i,socials:O})}},Ke=(U,O)=>{if(i&&U!==O){const Y={...i.socials},Ie=Y[U]||"";delete Y[U];const Se=O.trim(),pe=F.current.get(U);pe&&(F.current.delete(U),Se&&F.current.set(Se,pe)),Se&&(Y[Se]&&Se!==U?Y[Se]=Ie||Y[Se]:Y[Se]=Ie),s({...i,socials:Y})}},qe=(U,O)=>{if(i){const Y={...i.socials};Y[U]=O,s({...i,socials:Y})}},Be=async()=>{var ft,bt,kt,Dt;if(!i)return;const U=(t==null?void 0:t.trim())||((ft=i.website)==null?void 0:ft.trim())||"";let O=!1;(bt=i.website)!=null&&bt.trim()||(O=!1);const Y=E||"",Ie=Y.startsWith("data:image/"),Se=(kt=i==null?void 0:i.theme)==null?void 0:kt.logoHeaderBackground,pe=Se&&/^#(000|000000)$/i.test(String(Se).trim()),xe=Se&&!pe?Se:Se&&pe?"white":void 0,Qe=(Dt=i==null?void 0:i.theme)!=null&&Dt.logoHeaderBackground&&/^#(000|000000)$/i.test(String(i.theme.logoHeaderBackground).trim())?{...i,theme:{...i.theme,logoHeaderBackground:"white"}}:i;if(!Qe.business_name){x("שם העסק הוא שדה חובה"),W(!1);return}const Je={businessData:Qe,logo:Y,websiteUrl:U,...xe?{logoBackgroundHex:xe}:{}};Ie&&(Je.logoToUpload=Y),W(!0),x(null);try{const rt={...Qe};delete rt._id,delete rt.__v,rt.business_address!==void 0&&(rt.address=rt.business_address),Array.isArray(rt.description)&&(rt.description=rt.description.filter(Boolean).join(`
525
- `)||""),O&&await Fj(U,rt)}catch(rt){const Xe=rt instanceof Error?rt.message:String(rt);if(Xe.includes("404")||Xe.includes("not found"))console.warn("Business analysis not in DB, saving to context only:",Xe);else{console.error("Failed to save business analysis:",Xe),x(`שמירה נכשלה: ${Xe}`),W(!1);return}}W(!1),a(Je),o&&o.triggerEvent("onDataComplete",Je),window.dispatchEvent(new CustomEvent("business-analysis-saved",{detail:i,bubbles:!0,composed:!0})),n(2)};if(p)return A.jsx(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:{xs:2,sm:3,md:5},minHeight:{xs:"300px",sm:"350px",md:"400px"}},children:A.jsx(tO,{text:"Analyzing",showSkeletons:!0})});if(c)return A.jsxs(K,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"500px"},maxWidth:"100%",boxSizing:"border-box"},children:[A.jsx(Ml,{severity:"error",sx:{fontSize:{xs:"0.875rem",sm:"1rem"}},children:c}),A.jsx(ze,{variant:"text",color:"primary",onClick:()=>n(L),sx:{mt:2,fontSize:{xs:"0.875rem",sm:"1rem"}},children:"חזרה"})]});if(!i)return null;const Te=(t==null?void 0:t.trim())||(e&&typeof e=="object"&&"websiteUrl"in e?(Pe=e.websiteUrl)==null?void 0:Pe.trim():"")||((je=i==null?void 0:i.website)==null?void 0:je.trim())||"";return A.jsxs(K,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0,height:"100%",width:"100%",maxWidth:"100%",boxSizing:"border-box",overflow:"hidden"},children:[A.jsxs(K,{sx:{flex:1,minHeight:0,height:"100%",maxHeight:"calc(90vh - 140px)",overflowY:"auto",overflowX:"hidden",padding:{xs:2,sm:3,md:5},paddingBottom:{xs:1,sm:1.5,md:2},WebkitOverflowScrolling:"touch"},children:[Te&&A.jsx(K,{className:w?$o.fadeUp:"",sx:{mb:{xs:2,sm:2.5},mt:{xs:.5,sm:1}},children:A.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:1.25,px:{xs:1.5,sm:2},py:{xs:1,sm:1.125},borderRadius:2,border:"1px solid",borderColor:"divider",maxWidth:"100%",overflow:"hidden",bgcolor:U=>un(U.palette.primary.main,.06)},children:[A.jsx(dx,{sx:{fontSize:{xs:"1.125rem",sm:"1.25rem"},color:"text.secondary",flexShrink:0,opacity:.85}}),A.jsx(fe,{variant:"body2",sx:{fontSize:{xs:"0.8125rem",sm:"0.875rem"},color:"text.primary",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1,direction:"ltr",textAlign:"left",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontWeight:500},children:js(Te)}),A.jsx(Hn,{size:"small",onClick:()=>{R.current="",b.current=!0,M(U=>U+1)},disabled:p,title:"נתח מחדש",sx:{flexShrink:0,opacity:.7,"&:hover":{opacity:1}},children:A.jsx(fx,{sx:{fontSize:"1.125rem"}})})]})}),A.jsxs(K,{className:w?$o.fadeUp:"",sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(fe,{component:"h1",variant:"h4",sx:{mt:Te?{xs:1.5,sm:2}:{xs:4,sm:4},fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:"עריכת פרטי העסק"}),A.jsx(fe,{variant:"body2",className:w?$o.fadeUpDelay1:"",color:"text.secondary",sx:{mt:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(48ch, 100%)",lineHeight:1.55},children:"עברו על השדות, עדכנו מה שצריך, והמשיכו לשלב הבא."})]}),A.jsx(K,{className:w?$o.fadeUpDelay2:"",children:A.jsxs(Sa,{title:"לוגו",description:"מומלץ קובץ שקוף או רקע בהיר. אפשר לדלג אם אין לוגו מעודכן.",children:[A.jsx("input",{ref:k,type:"file",accept:"image/*",onChange:Q,style:{display:"none"},id:"logo-upload-input"}),E?A.jsxs(K,{sx:{p:{xs:1.5,sm:2,md:2.5},border:"1px dashed",borderColor:"divider",borderRadius:2,bgcolor:U=>un(U.palette.common.black,.02),transition:"border-color 0.2s ease, background-color 0.2s ease",mb:{xs:1.5,sm:2},"&:hover":{borderColor:"text.secondary",bgcolor:U=>un(U.palette.common.black,.035)}},children:[A.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:{xs:1,sm:1.5,md:2},mb:{xs:1.5,sm:2},flexDirection:{xs:"column",sm:"row"}},children:[A.jsx(Hn,{size:"small",color:"error",onClick:N,sx:{border:"1px solid rgba(211, 47, 47, 0.3)",alignSelf:{xs:"flex-start",sm:"auto"},"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.08)",borderColor:"rgba(211, 47, 47, 0.5)"}},"aria-label":"הסר לוגו",children:A.jsx(Qs,{fontSize:"small"})}),A.jsx(K,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",minHeight:{xs:"80px",sm:"90px",md:"100px"},backgroundColor:(()=>{var Y;const U=((Y=i==null?void 0:i.theme)==null?void 0:Y.logoHeaderBackground)??"white";return/^#(000|000000)$/i.test(U.trim())||/^rgb\s*\(\s*0\s*,\s*0\s*,\s*0\s*\)$/i.test(U.trim())?"white":U})(),borderRadius:1,border:"1px solid rgba(0, 0, 0, 0.08)",p:{xs:.5,sm:1},width:{xs:"100%",sm:"auto"}},children:A.jsx("img",{src:E,alt:"Logo preview",style:{maxWidth:"100%",maxHeight:"100px",objectFit:"contain"}})})]}),A.jsx("label",{htmlFor:"logo-upload-input",children:A.jsx(ze,{variant:"outlined",component:"span",startIcon:A.jsx(Ax,{}),fullWidth:!0,sx:{textTransform:"none",borderRadius:{xs:1.5,sm:2},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"החלף לוגו"})})]}):A.jsxs(K,{sx:{border:"1px dashed",borderColor:"divider",borderRadius:2,p:{xs:2,sm:2.5,md:3},textAlign:"center",bgcolor:U=>un(U.palette.common.black,.02),transition:"border-color 0.2s ease, background-color 0.2s ease","&:hover":{borderColor:"text.secondary",bgcolor:U=>un(U.palette.common.black,.035)}},children:[A.jsx("label",{htmlFor:"logo-upload-input",children:A.jsx(ze,{variant:"outlined",component:"span",startIcon:A.jsx(cx,{}),sx:{textTransform:"none",borderRadius:{xs:1.5,sm:2},px:{xs:2,sm:2.5,md:3},py:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"העלה לוגו"})}),A.jsx(fe,{variant:"caption",color:"text.secondary",sx:{mt:{xs:1,sm:1.5},display:"block",fontSize:{xs:"0.7rem",sm:"0.75rem"}},children:"תמונות PNG, JPG או SVG עד 5MB"})]})]})}),A.jsxs(ut,{spacing:0,className:w?$o.fadeUpDelay3:"",children:[A.jsx(Sa,{title:"פרטי העסק",description:"שם, תעשייה, כתובת והגדרות סוג עסק — משמשים לנתח ולייצר תוצרים מדויקים יותר.",children:A.jsxs(ct,{container:!0,spacing:{xs:2,sm:2.5,md:3},children:[A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"שם העסק",value:i.business_name,onChange:U=>ee("business_name",U.target.value),variant:"outlined",margin:"normal"})}),A.jsxs(ct,{item:!0,xs:12,md:6,children:[A.jsx(at,{fullWidth:!0,label:"שם בעל.ת העסק (מלא)",value:i.owner,onChange:U=>ee("owner",U.target.value),variant:"outlined",margin:"normal"}),A.jsxs(aq,{row:!0,value:i.owner_gender??"",onChange:U=>ee("owner_gender",U.target.value),sx:{mt:.5,gap:{xs:.5,sm:1},"& .MuiFormControlLabel-root":{mr:0}},children:[A.jsx(Kc,{value:"male",control:A.jsx(Wg,{size:"small"}),label:A.jsxs(K,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(Wx,{fontSize:"small"}),A.jsx("span",{children:"זכר"})]}),labelPlacement:"end"}),A.jsx(Kc,{value:"female",control:A.jsx(Wg,{size:"small"}),label:A.jsxs(K,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(gx,{fontSize:"small"}),A.jsx("span",{children:"נקבה"})]}),labelPlacement:"end"}),A.jsx(Kc,{value:"other",control:A.jsx(Wg,{size:"small"}),label:A.jsxs(K,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(hx,{fontSize:"small"}),A.jsx("span",{children:"אחר"})]}),labelPlacement:"end"})]})]}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx($W,{freeSolo:!0,options:h,value:i.industry||"",onChange:(U,O)=>{ee("industry",O||"")},onInputChange:(U,O)=>{ee("industry",O)},inputValue:i.industry||"",openOnFocus:!0,disablePortal:!0,componentsProps:{popper:{container:(P==null?void 0:P.getElementById("cdtr-business-ai-root"))||void 0,style:{zIndex:9999},modifiers:[{name:"offset",options:{offset:[0,4]}}]}},ListboxProps:{sx:{maxHeight:"300px","& .MuiAutocomplete-option":{padding:"8px 16px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&[aria-selected='true']":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}}},PaperComponent:({children:U,...O})=>A.jsx(K,{...O,sx:{borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.1)",marginTop:"4px",backgroundColor:"white"},children:U}),renderInput:U=>A.jsx(at,{...U,label:"תעשייה",variant:"outlined",margin:"normal"}),noOptionsText:h.length===0?"הקלד תעשייה":"אין אפשרויות"})}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"סוג עסק",value:i.business_type,onChange:U=>ee("business_type",U.target.value),variant:"outlined",margin:"normal"})}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"כתובת העסק",value:i.business_address??"",onChange:U=>ee("business_address",U.target.value),variant:"outlined",margin:"normal"})}),A.jsxs(ct,{item:!0,xs:12,children:[A.jsx(fe,{variant:"subtitle2",sx:{mb:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"אפשרויות סוג עסק"}),(Array.isArray(i.business_type_options)?i.business_type_options:[]).map((U,O)=>A.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[A.jsx(at,{fullWidth:!0,value:U,onChange:Y=>he("business_type_options",O,Y.target.value),variant:"outlined",margin:"normal",size:"small"}),A.jsx(Hn,{color:"error",onClick:()=>me(O),sx:{mt:1},"aria-label":"הסר אפשרות",children:A.jsx(Qs,{})})]},O)),A.jsx(ze,{variant:"outlined",startIcon:A.jsx(Fl,{}),onClick:ge,sx:{mt:1},children:"הוספת אפשרות"})]}),A.jsx(ct,{item:!0,xs:12,children:A.jsx(f6,{value:i.keywords,onChange:U=>ee("keywords",U)})})]})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Sa,{title:"צבעי מותג",description:"גררו צבעים או עדכנו ראשי ומשני — משפיעים על תצוגת המותג בחוויה.",children:A.jsx(H6,{colors:((it=i.theme)==null?void 0:it.colors)??[],primary:((D=i.theme)==null?void 0:D.primary)||"",secondary:((ne=i.theme)==null?void 0:ne.secondary)||"",onPrimaryChange:U=>ae("primary",U),onSecondaryChange:U=>ae("secondary",U),onColorsChange:G})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Sa,{title:"טון ותוכן",description:"איך העסק נשמע, תיאור קצר וכתובת האתר לעדכון.",children:A.jsxs(ct,{container:!0,spacing:{xs:2,sm:2.5,md:3},children:[A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx($W,{freeSolo:!0,options:C,value:i.business_tone||"",onChange:(U,O)=>{ee("business_tone",O||"")},onInputChange:(U,O)=>{ee("business_tone",O)},inputValue:i.business_tone||"",openOnFocus:!0,disablePortal:!0,componentsProps:{popper:{container:(P==null?void 0:P.getElementById("cdtr-business-ai-root"))||void 0,style:{zIndex:9999},modifiers:[{name:"offset",options:{offset:[0,4]}}]}},ListboxProps:{sx:{maxHeight:"300px","& .MuiAutocomplete-option":{padding:"8px 16px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&[aria-selected='true']":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}}},PaperComponent:({children:U,...O})=>A.jsx(K,{...O,sx:{borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.1)",marginTop:"4px",backgroundColor:"white"},children:U}),renderInput:U=>A.jsx(at,{...U,label:"טון עסקי",variant:"outlined",margin:"normal"}),noOptionsText:C.length===0?"הקלד טון עסקי":"אין אפשרויות"})}),A.jsxs(ct,{item:!0,xs:12,children:[A.jsx(fe,{variant:"subtitle2",sx:{mb:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"תיאור"}),(Array.isArray(i.description)?i.description:i.description?[i.description]:[""]).map((U,O)=>A.jsxs(K,{sx:{display:"flex",alignItems:"flex-start",gap:1,mb:1},children:[A.jsx(at,{fullWidth:!0,value:U,onChange:Y=>he("description",O,Y.target.value),variant:"outlined",margin:"normal",multiline:!0,rows:3,size:"small"}),A.jsx(Hn,{color:"error",onClick:()=>ce(O),sx:{mt:1},"aria-label":"הסר תיאור",children:A.jsx(Qs,{})})]},O)),A.jsx(ze,{variant:"outlined",startIcon:A.jsx(Fl,{}),onClick:ve,sx:{mt:1},children:"הוספת תיאור"})]}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"אתר אינטרנט",value:i.website,onChange:U=>ee("website",U.target.value),variant:"outlined",margin:"normal"})})]})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsxs(Sa,{title:"קשר ורשתות",description:"אימייל וטלפון ליצירת קשר, וקישורים לפרופילים ציבוריים.",children:[A.jsxs(ct,{container:!0,spacing:{xs:1.5,sm:2},children:[A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"אימייל",value:i.contacts.email,onChange:U=>de("contacts","email",U.target.value),variant:"outlined",margin:"normal"})}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"טלפון",value:i.contacts.phone,onChange:U=>de("contacts","phone",U.target.value),variant:"outlined",margin:"normal"})})]}),A.jsxs(K,{sx:{mt:{xs:2,sm:2.5},p:{xs:1.5,sm:2},borderRadius:2,border:"1px solid",borderColor:"divider",bgcolor:U=>un(U.palette.common.black,.02)},children:[Object.entries(i.socials).map(([U,O])=>A.jsx(lO,{platform:U,url:O,onPlatformCommit:Ke,onUrlChange:qe,onRemove:le},j(U))),A.jsx(ze,{variant:"outlined",startIcon:A.jsx(Fl,{}),onClick:Ze,sx:{mt:1,textTransform:"none"},children:"הוספת רשת חברתית"})]})]})]})]}),A.jsxs(K,{className:w?$o.fadeUpDelay4:"",sx:{position:"fixed",bottom:0,left:0,right:0,zIndex:10,padding:{xs:1,sm:1,md:1},paddingTop:{xs:1,sm:1,md:1},backgroundColor:"background.default",borderTop:"1px solid",borderColor:"divider"},children:[m&&A.jsx(Ml,{severity:"error",sx:{mb:1},onClose:()=>x(null),children:m}),A.jsxs(ct,{container:!0,spacing:{xs:1,sm:2},sx:{justifyContent:{xs:"center",sm:"space-between"}},children:[A.jsx(ct,{item:!0,xs:12,sm:"auto",children:A.jsx(ze,{variant:"text",color:"primary",onClick:()=>n(L),fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:"חזרה"})}),A.jsx(ct,{item:!0,xs:12,sm:"auto",children:A.jsx(ze,{variant:"contained",color:"primary",onClick:Be,disabled:f,fullWidth:!0,startIcon:f?A.jsx(va,{size:18,color:"inherit"}):null,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"},minWidth:120},children:f?"שומר...":"שלב הבא"})})]})]})]})}const sO=$t(A.jsx("path",{d:"M7 16c.55 0 1 .45 1 1 0 1.1-.9 2-2 2-.17 0-.33-.02-.5-.05.31-.55.5-1.21.5-1.95 0-.55.45-1 1-1M18.67 3c-.26 0-.51.1-.71.29L9 12.25 11.75 15l8.96-8.96c.39-.39.39-1.02 0-1.41l-1.34-1.34c-.2-.2-.45-.29-.7-.29M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3"}),"BrushOutlined"),pO=$t(A.jsx("path",{d:"M20.97 7.27c.39-.39.39-1.02 0-1.41l-2.83-2.83a.9959.9959 0 0 0-1.41 0l-4.49 4.49-3.89-3.89c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l3.89 3.89L3 16.76V21h4.24l4.52-4.52 3.89 3.89c.95.95 2.23.6 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83l-3.89-3.89zM5.04 6.94l1.89-1.9L8.2 6.31 7.02 7.5l1.41 1.41 1.19-1.19 1.2 1.2-1.9 1.9zm11.23 7.44-1.19 1.19 1.41 1.41 1.19-1.19 1.27 1.27-1.9 1.9-3.89-3.89 1.9-1.9zM6.41 19H5v-1.41l9.61-9.61 1.3 1.3.11.11zm9.61-12.44 1.41-1.41 1.41 1.41-1.41 1.41z"}),"DesignServicesOutlined");var Ch={},uO=Fe;Object.defineProperty(Ch,"__esModule",{value:!0});var aE=Ch.default=void 0,cO=uO(Oe()),AO=A;aE=Ch.default=(0,cO.default)((0,AO.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"}),"AutoAwesomeOutlined");var vh={},dO=Fe;Object.defineProperty(vh,"__esModule",{value:!0});var rE=vh.default=void 0,fO=dO(Oe()),yh=A;rE=vh.default=(0,fO.default)([(0,yh.jsx)("path",{d:"M18 10.48V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4.48l4 3.98v-11zm-2-.79V18H4V6h12z"},"0"),(0,yh.jsx)("circle",{cx:"10",cy:"10",r:"2"},"1"),(0,yh.jsx)("path",{d:"M14 15.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.99 0-1.93.21-2.78.58C6.48 13.9 6 14.62 6 15.43V16h8z"},"2")],"VideoCameraFrontOutlined");var Sh={},WO=Fe;Object.defineProperty(Sh,"__esModule",{value:!0});var Ih=Sh.default=void 0,gO=WO(Oe()),hO=A;Ih=Sh.default=(0,gO.default)((0,hO.jsx)("path",{d:"M21 11.01 3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"}),"NotesOutlined");var xh={},mO=Fe;Object.defineProperty(xh,"__esModule",{value:!0});var lE=xh.default=void 0,CO=mO(Oe()),vO=A;lE=xh.default=(0,CO.default)((0,vO.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9H9V9h10zm-4 4H9v-2h6zm4-8H9V5h10z"}),"LibraryBooks");var Eh={},yO=Fe;Object.defineProperty(Eh,"__esModule",{value:!0});var oE=Eh.default=void 0,SO=yO(Oe()),IO=A;oE=Eh.default=(0,SO.default)((0,IO.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var bh={},xO=Fe;Object.defineProperty(bh,"__esModule",{value:!0});var iE=bh.default=void 0,EO=xO(Oe()),bO=A;iE=bh.default=(0,EO.default)((0,bO.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const sE=[{id:"authentic_text",label:"טקסט אישי",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"designed_mail",label:"מעוצב (מצב מהיר)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"studio_design",label:"מעוצב (סטודיו)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"designed_mail_advanced",comingSoon:!0,label:"מעצב פרו (סטודיו)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]}];function pE(e){return sE.find(t=>t.id===e)}function kh(e){return e==="other"}function uE(e,t,n){if(e==="other"&&n!=null){const l=n.trim();return l?l+(l.endsWith(".")?"":"."):"אני רוצה לבנות מייל."}const a=pE(e);if(!a)return"";const r=[];if(e==="webinar"){const l=t.date||"",o=t.time||"",i=t.topic||"";return r.push("אני רוצה לבנות מייל לוובינר"),(l||o)&&r.push(`בתאריך ${l}${o?` בשעה ${o}`:""}`),i&&r.push(`, ${i}`),r.join(" ")+"."}if(e==="designed_mail"){const l=t.topic||"";return l?`אני רוצה לבנות מייל מעוצב: ${l}.`:"אני רוצה לבנות מייל מעוצב."}if(e==="studio_design"){const l=t.topic||"";return l?`אני רוצה לבנות מייל מעוצב בסטודיו: ${l}.`:"אני רוצה לבנות מייל מעוצב בסטודיו."}if(e==="authentic_text"){const l=t.topic||"";return l?`אני רוצה לבנות מייל בטקסט אישי: ${l}.`:"אני רוצה לבנות מייל בטקסט אישי."}return a.label?`אני רוצה לבנות מייל מסוג ${a.label}.`:""}var wh={},kO=Fe;Object.defineProperty(wh,"__esModule",{value:!0});var nA=wh.default=void 0,wO=kO(Oe()),RO=A;nA=wh.default=(0,wO.default)((0,RO.jsx)("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields");var Rh={},BO=Fe;Object.defineProperty(Rh,"__esModule",{value:!0});var Os=Rh.default=void 0,LO=BO(Oe()),MO=A;Os=Rh.default=(0,LO.default)((0,MO.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension");const cE=["newsletter.loadingSteps.building","newsletter.loadingSteps.searchingImages","newsletter.loadingSteps.choosingIcons","newsletter.loadingSteps.analyzing"],Bh=["https://images.pexels.com/photos/3184292/pexels-photo-3184292.jpeg?auto=compress&cs=tinysrgb&w=200","https://images.pexels.com/photos/2762247/pexels-photo-2762247.jpeg?auto=compress&cs=tinysrgb&w=200","https://images.pexels.com/photos/267350/pexels-photo-267350.jpeg?auto=compress&cs=tinysrgb&w=200"],QO={"@keyframes sceneIn":{"0%":{opacity:0,transform:"scale(0.94)"},"100%":{opacity:1,transform:"scale(1)"}},"@keyframes blockDrop":{"0%":{transform:"translate(-10px, -16px)",opacity:.5},"100%":{transform:"translate(0, 0)",opacity:1}},"@keyframes blockFloat":{"0%, 100%":{transform:"translate(0, 0)"},"50%":{transform:"translate(3px, -2px)"}}},Qn={animation:"blockDrop 0.5s ease-out both, blockFloat 2.2s ease-in-out 0.6s infinite",borderRadius:2,border:"1px solid rgba(0, 0, 0, 0.08)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},AE={background:`linear-gradient(135deg, ${tA}61 0%, ${mh}61 100%)`};function VO(){return A.jsxs(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsx(K,{className:"block",sx:{...Qn,width:110,height:26,background:ta,color:"primary.contrastText"},children:A.jsx(nA,{sx:{fontSize:16}})}),A.jsx(K,{className:"block",sx:{...Qn,width:130,height:72},children:A.jsx("img",{src:Bh[0],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsxs(K,{sx:{display:"flex",gap:1},children:[A.jsx(K,{className:"block",sx:{...Qn,width:36,height:36,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(Os,{sx:{fontSize:20}})}),A.jsx(K,{className:"block",sx:{...Qn,width:44,height:36,...AE}})]})]})}function UO(){return A.jsxs(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsx(K,{className:"block",sx:{...Qn,width:130,height:68},children:A.jsx("img",{src:Bh[1],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsxs(K,{sx:{display:"flex",gap:1},children:[A.jsx(K,{className:"block",sx:{...Qn,width:100,height:24,background:ta,color:"primary.contrastText"},children:A.jsx(nA,{sx:{fontSize:14}})}),A.jsx(K,{className:"block",sx:{...Qn,width:36,height:36,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(Os,{sx:{fontSize:20}})})]}),A.jsx(K,{className:"block",sx:{...Qn,width:90,height:32,bgcolor:"grey.300"}})]})}function FO(){return A.jsxs(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsxs(K,{sx:{display:"flex",gap:1},children:[A.jsx(K,{className:"block",sx:{...Qn,width:38,height:38,background:ta,color:"primary.contrastText"},children:A.jsx(Os,{sx:{fontSize:22}})}),A.jsx(K,{className:"block",sx:{...Qn,width:50,height:38,...AE}}),A.jsx(K,{className:"block",sx:{...Qn,width:38,height:38,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(Os,{sx:{fontSize:20}})})]}),A.jsx(K,{className:"block",sx:{...Qn,width:120,height:70},children:A.jsx("img",{src:Bh[2],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsx(K,{className:"block",sx:{...Qn,width:100,height:22,background:ta,color:"primary.contrastText"},children:A.jsx(nA,{sx:{fontSize:14}})})]})}const dE=[VO,UO,FO];function zO(e){const{t}=Nn(),[n,a]=v.useState(0),[r,l]=v.useState(0),[o,i]=v.useState(0);v.useEffect(()=>{const p=setInterval(()=>{a(u=>(u+1)%cE.length)},2500);return()=>clearInterval(p)},[]),v.useEffect(()=>{const p=setInterval(()=>{l(u=>(u+1)%dE.length)},3200);return()=>clearInterval(p)},[]),v.useEffect(()=>{const p=setInterval(()=>{i(u=>u+1)},1e3);return()=>clearInterval(p)},[]);const s=dE[r];return A.jsxs(K,{sx:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:2,paddingTop:4,...QO},children:[A.jsx(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,mb:3,minHeight:180,"& .block":Qn,"& .block:nth-of-type(1)":{animationDelay:"0s, 0.6s"},"& .block:nth-of-type(2)":{animationDelay:"0.12s, 0.72s"},"& .block:nth-of-type(3)":{animationDelay:"0.24s, 0.84s"},"& .block:nth-of-type(4)":{animationDelay:"0.36s, 0.96s"},"& .block:nth-of-type(5)":{animationDelay:"0.48s, 1.08s"},"& .block:nth-of-type(6)":{animationDelay:"0.6s, 1.2s"}},children:A.jsx(K,{sx:{animation:"sceneIn 0.4s ease-out"},children:A.jsx(s,{})},r)}),A.jsx(K,{sx:{display:"flex",gap:.75,mb:1.5},children:[0,1,2,3].map(p=>A.jsx(K,{sx:{width:10,height:10,borderRadius:"50%",...p<=n?{background:ta}:{bgcolor:"action.hover"},opacity:p===n?1:p<n?.8:.4,transition:"opacity 0.3s ease, background-color 0.3s ease"}},p))}),A.jsx(fe,{variant:"body1",sx:{fontWeight:500,color:"text.secondary"},children:t(cE[n])}),A.jsxs(fe,{variant:"caption",sx:{mt:1,color:"text.disabled",fontVariantNumeric:"tabular-nums"},children:[Math.floor(o/60).toString().padStart(2,"0"),":",(o%60).toString().padStart(2,"0")]})]})}const fE={IL:"Israel",US:"United States",CA:"Canada",GB:"United Kingdom",UK:"United Kingdom",AU:"Australia",DE:"Germany",FR:"France",ES:"Spain",IT:"Italy",NL:"Netherlands",BR:"Brazil",MX:"Mexico",AR:"Argentina",RU:"Russia",JP:"Japan",CN:"China",IN:"India",ZA:"South Africa",AE:"United Arab Emirates",SA:"Saudi Arabia",PL:"Poland",SE:"Sweden",NO:"Norway",DK:"Denmark",FI:"Finland",CH:"Switzerland",AT:"Austria",BE:"Belgium",PT:"Portugal",GR:"Greece",TR:"Turkey",KR:"South Korea",SG:"Singapore",HK:"Hong Kong",TW:"Taiwan",NZ:"New Zealand",IE:"Ireland"},qO={"Asia/Jerusalem":"Israel","America/New_York":"United States","America/Los_Angeles":"United States","America/Chicago":"United States","America/Toronto":"Canada","America/Vancouver":"Canada","Europe/London":"United Kingdom","Europe/Paris":"France","Europe/Berlin":"Germany","Europe/Madrid":"Spain","Europe/Rome":"Italy","Europe/Amsterdam":"Netherlands","Australia/Sydney":"Australia","Australia/Melbourne":"Australia","Asia/Tokyo":"Japan","Asia/Shanghai":"China","Asia/Dubai":"United Arab Emirates","America/Sao_Paulo":"Brazil","America/Mexico_City":"Mexico"};function jO(){if(typeof navigator>"u")return null;try{const e=navigator,t=[navigator.language,...e.languages??[]].filter(Boolean);for(const n of t){if(!n)continue;const a=new Intl.Locale(n).region;if(a&&fE[a])return fE[a];if(n.startsWith("he")&&!a)return"Israel"}}catch{}try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e){const t=qO[e];if(t)return t;if(e.split("/")[0]==="Asia"&&e.includes("Jerusalem"))return"Israel"}}catch{}return null}const TO={authentic_text:Ih,webinar:rE,designed_mail:aE,studio_design:sO,designed_mail_advanced:pO};function Lh({header:e,children:t,footer:n,compactBody:a}){return A.jsxs(K,{sx:{flex:"1 1 0%",minHeight:0,display:"flex",flexDirection:"column",bgcolor:"background.paper"},children:[A.jsx(K,{sx:{flexShrink:0,pt:{xs:6,sm:7},px:2.5,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:e}),a?A.jsx(K,{sx:{flex:1,minHeight:0}}):A.jsx(K,{sx:{flex:1,minHeight:0,overflow:"auto",px:2.5,py:2,WebkitOverflowScrolling:"touch"},children:t}),n?A.jsx(K,{sx:{flexShrink:0,px:2.5,py:2,borderTop:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:n}):null]})}function OO({domain:e,mergeTags:t=[],visibilityRules:n,location:a,onResult:r,result:l,language:o,context:i,onSeriesClick:s,onBack:p}){const{t:u}=Nn(),c=Go(),{step3Draft:d,setStep3Draft:f}=rx(),[W,m]=v.useState(0),[x,h]=v.useState(null),[g,C]=v.useState({}),[y,E]=v.useState(""),[S,k]=v.useState(!1),[R,V]=v.useState(null),[b,B]=v.useState(null),[M,F]=v.useState(!1),z=x?pE(x):null,T=(z==null?void 0:z.questions)??[],j=a&&a.trim()||jO()||void 0,P=X=>{h(X),C({}),m(1)},L=(X,ee)=>{C(de=>({...de,[X]:ee}))},q=async()=>{if(!y.trim())return;k(!0),V(null);const X=Date.now();try{const ee=uE("other",{},y),de=await kg({prompt:ee,domain:e,mergeTags:t,structureUrl:"",textStyleUrl:"",...n&&Object.keys(n).length>0?{visibilityRules:n}:{},...o?{language:o}:{},...j?{location:j}:{},...i?{context:i}:{}});B(Math.round((Date.now()-X)/1e3)),r(de)}catch(ee){console.error("Newsletter generation failed:",ee),V(u("common.errorGeneric"))}finally{k(!1)}},w=async(X,ee)=>{k(!0),V(null);const de=Date.now();try{const ae=x==="studio_design"||x==="webinar",G=x==="designed_mail";if(G||ae){const he=o||"he",ge=Kj(i,he),me={prompt:X,accountId:ge.accountId,language:he,...t.length>0?{mergeTags:t}:{},businessContext:ge},ve=G?await Tj(me):await Oj(me),ce={...ve,components:ve.nodes??[]};B(Math.round((Date.now()-de)/1e3)),r(ce)}else{const he=await kg({prompt:X,domain:e,mergeTags:t,structureUrl:"",textStyleUrl:ee,...n&&Object.keys(n).length>0?{visibilityRules:n}:{},...o?{language:o}:{},...j?{location:j}:{},...i?{context:i}:{}});B(Math.round((Date.now()-de)/1e3)),r(he)}}catch(ae){console.error("Newsletter generation failed:",ae),V(u("common.errorGeneric"))}finally{k(!1)}},H=()=>{const X=uE(x,g);X&&w(X,"")},te=()=>{if(M||!c||!l)return;F(!0);const X=(d==null?void 0:d.components)??l.components??l.nodes??l.template,ee=l.meta,de=l.name||(ee==null?void 0:ee.name)||(x?u(`newsletter.types.${x}`):"")||"Newsletter",ae=l.subject||(ee==null?void 0:ee.subject)||de,G={...l,components:X,template:X,name:de,subject:ae};console.log("[handleEdit] result:",l),console.log("[handleEdit] meta:",ee),console.log("[handleEdit] name:",de,"subject:",ae),console.log("[handleEdit] components count:",X==null?void 0:X.length),console.log("[handleEdit] full payload:",G);try{c.triggerEvent("onEditPage",G),f(null)}catch(he){console.error("[handleEdit] triggerEvent error:",he)}setTimeout(()=>F(!1),15e3)},Q=()=>{r(null),m(0),h(null),C({}),E(""),V(null),B(null)},N=()=>{m(0),h(null),C({}),E("")};if(l&&l.components)return A.jsx(Lh,{compactBody:!0,header:A.jsxs(ut,{spacing:1,children:[A.jsx(fe,{variant:"h6",component:"h1",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35},children:u("newsletter.successHeading")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.55},children:u("newsletter.successMessage")}),b!=null&&A.jsxs(fe,{variant:"caption",color:"text.disabled",sx:{fontVariantNumeric:"tabular-nums"},children:[Math.floor(b/60).toString().padStart(2,"0"),":",(b%60).toString().padStart(2,"0")]})]}),footer:A.jsxs(ut,{direction:"row",flexWrap:"wrap",gap:1.5,justifyContent:"flex-start",children:[A.jsx(ze,{variant:"contained",color:"primary",disabled:M,startIcon:M?A.jsx(va,{size:18,color:"inherit"}):A.jsx(oE,{}),onClick:te,sx:{textTransform:"none"},children:u("newsletter.editDesign")}),A.jsx(ze,{variant:"outlined",color:"primary",startIcon:A.jsx(iE,{}),onClick:Q,sx:{textTransform:"none"},children:u("newsletter.startOver")})]})});if(S)return A.jsx(K,{sx:{height:"100%",minHeight:0,overflow:"auto"},children:A.jsx(zO,{language:o})});const re=W!==1||!x?"":kh(x)?u("newsletter.tellUs"):z?u(`newsletter.types.${z.id}`):"";if(W===0)return A.jsxs(Lh,{header:A.jsxs(ut,{spacing:1,children:[p?A.jsx(ze,{variant:"text",color:"primary",onClick:p,sx:{alignSelf:"flex-start",textTransform:"none",minWidth:"auto",px:.5,ml:-.5,mt:1},children:u("newsletter.back")}):A.jsxs(A.Fragment,{children:[A.jsx("br",{}),A.jsx("br",{})]}),A.jsx(fe,{component:"h1",variant:"h6",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35,color:"text.primary"},children:u("newsletter.whatType")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem",lineHeight:1.55,maxWidth:"52ch"},children:u("newsletter.typeSectionHint")})]}),children:[A.jsxs(ut,{spacing:1.25,children:[sE.map(X=>{const ee=TO[X.id]??Ih;return A.jsx(eg,{elevation:0,variant:"outlined",sx:{borderRadius:2,borderColor:"divider",bgcolor:"background.paper",transition:"border-color 0.2s ease, box-shadow 0.2s ease","&:hover":{borderColor:"primary.main",boxShadow:de=>`0 2px 12px ${un(de.palette.primary.main,.12)}`},...X.comingSoon?{opacity:.5,cursor:"not-allowed"}:{}},children:A.jsx(eI,{onClick:()=>X.comingSoon?null:P(X.id),sx:{borderRadius:0,"&:focus-visible":{outlineOffset:-2}},children:A.jsx(ng,{sx:{py:1.75,px:2,"&:last-child":{pb:1.75}},children:A.jsxs(ut,{direction:"row",spacing:1.75,alignItems:"center",children:[A.jsx(K,{sx:{width:44,height:44,borderRadius:1.5,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:de=>un(de.palette.primary.main,.08),border:de=>`1px solid ${un(de.palette.primary.main,.16)}`},children:A.jsx(ee,{sx:{fontSize:24,..._o}})}),A.jsx(fe,{variant:"subtitle1",sx:{fontWeight:600,fontSize:"0.9375rem",lineHeight:1.4,letterSpacing:"-0.01em",color:"text.primary"},children:u(`newsletter.types.${X.id}`)}),X.comingSoon?A.jsx(vn,{label:u("newsletter.comingSoon"),size:"small",color:"primary",variant:"outlined"}):null]})})})},X.id)}),s?A.jsx(eg,{elevation:0,variant:"outlined",sx:{borderRadius:2,borderColor:"divider",bgcolor:"background.paper",opacity:.5,cursor:"not-allowed"},children:A.jsx(eI,{onClick:void 0,disabled:!0,sx:{borderRadius:0,"&:focus-visible":{outlineOffset:-2}},children:A.jsx(ng,{sx:{py:1.75,px:2,"&:last-child":{pb:1.75}},children:A.jsxs(ut,{direction:"row",spacing:1.75,alignItems:"center",children:[A.jsx(K,{sx:{width:44,height:44,borderRadius:1.5,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:X=>un(X.palette.primary.main,.08),border:X=>`1px solid ${un(X.palette.primary.main,.16)}`},children:A.jsx(lE,{sx:{fontSize:24,..._o}})}),A.jsx(fe,{variant:"subtitle1",sx:{fontWeight:600,fontSize:"0.9375rem",lineHeight:1.4,letterSpacing:"-0.01em",color:"text.primary"},children:u("seriesPrompt.hub.title")}),A.jsx(vn,{label:u("newsletter.comingSoon"),size:"small",color:"primary",variant:"outlined"})]})})})}):null]}),R?A.jsx(fe,{color:"error",variant:"body2",sx:{mt:2},children:R}):null]});const ue=kh(x)?A.jsx(ut,{direction:"row",spacing:1.5,justifyContent:"flex-end",flexWrap:"wrap",children:A.jsx(ze,{variant:"contained",color:"primary",onClick:q,disabled:!y.trim()||S,sx:{textTransform:"none"},children:S?A.jsx(va,{size:22,color:"inherit"}):u("common.send")})}):A.jsx(ut,{direction:"row",spacing:1.5,justifyContent:"flex-end",flexWrap:"wrap",children:A.jsx(ze,{variant:"contained",color:"primary",onClick:H,disabled:S,sx:{textTransform:"none"},children:S?A.jsx(va,{size:22,color:"inherit"}):u("common.continue")})});return A.jsxs(Lh,{header:A.jsxs(ut,{spacing:1.25,children:[A.jsx(ze,{variant:"text",color:"primary",onClick:N,sx:{alignSelf:"flex-start",textTransform:"none",minWidth:"auto",px:.5,ml:-.5,mt:-.5},children:u("newsletter.back")}),A.jsx(fe,{variant:"h6",component:"h1",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35},children:re}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem",lineHeight:1.55},children:u("newsletter.questionsSectionHint")})]}),footer:ue,children:[kh(x)?A.jsx(at,{multiline:!0,minRows:4,placeholder:u("newsletter.writeHere"),value:y,onChange:X=>E(X.target.value),fullWidth:!0,variant:"outlined",size:"small"}):A.jsx(ut,{spacing:2,children:T.map(X=>A.jsx(K,{children:X.inputType==="multiline"?A.jsxs(A.Fragment,{children:[A.jsx(fe,{variant:"caption",sx:{mb:.75,display:"block",fontWeight:600,color:"text.secondary",letterSpacing:"0.02em"},children:u("newsletter.topicLabel")}),A.jsx(at,{multiline:!0,minRows:3,placeholder:u("newsletter.writeHere"),value:g[X.id]??"",onChange:ee=>L(X.id,ee.target.value),fullWidth:!0,variant:"outlined",size:"small"})]}):A.jsx(at,{label:u(x==="webinar"&&X.id==="topic"?"newsletter.questions.topicShort":`newsletter.questions.${X.id}`),type:X.inputType==="date"?"date":X.inputType==="time"?"time":"text",value:g[X.id]??"",onChange:ee=>L(X.id,ee.target.value),fullWidth:!0,variant:"outlined",size:"small",InputLabelProps:X.inputType==="date"||X.inputType==="time"?{shrink:!0}:void 0})},X.id))}),R?A.jsx(fe,{color:"error",variant:"body2",sx:{mt:2},children:R}):null]})}function KO({setActiveStep:e,placeholderSuggestions:t=[],language:n,data:a={},logo:r="",mergeTags:l=[],visibilityRules:o,location:i,onDesignChange:s}){const{t:p}=Nn(),u=v.useRef(s);u.current=s;const{step2Data:c}=bg(),{step3Draft:d,setStep3Draft:f}=rx(),W=c||a,m=(W==null?void 0:W.businessData)||W,x=(W==null?void 0:W.websiteUrl)||(m==null?void 0:m.website)||"",h=Xc({...m,websiteUrl:x})??void 0,g=(c==null?void 0:c.logo)||(W&&typeof W=="object"&&"logo"in W?W.logo:r),C=(c==null?void 0:c.logoBackgroundHex)??(W==null?void 0:W.logoBackgroundHex),y=v.useRef(null),E=v.useRef(!1),S=v.useRef(null),k=v.useRef(!1),[R,V]=v.useState(0),[b,B]=v.useState(0),[M,F]=v.useState([]),[z,T]=v.useState(null);v.useEffect(()=>{var q;if(k.current)return;const L=d;(q=L==null?void 0:L.components)!=null&&q.length&&(k.current=!0,F(Array.isArray(L.components)?L.components:[]),T(L.surveyResult??null))},[d]);const j=L=>{const q=(L==null?void 0:L.components)??(L==null?void 0:L.nodes);if(q){const w=Array.isArray(q)?q:[];F(w);const H={...L,components:w};T(H),f({components:w,surveyResult:H})}else F([]),T(null),f(null),B(w=>w+1)};v.useEffect(()=>{},[]),v.useEffect(()=>{var H;if(M.length===0||!y.current)return;const L=y.current.querySelector("iframe");L&&L.remove(),(H=S.current)!=null&&H.parentNode&&S.current.parentNode.removeChild(S.current),S.current=null,E.current=!1,E.current=!0;const q=document.createElement("iframe");q.width="100%",q.height="100%",q.style.border="none",S.current=q,y.current.appendChild(q);let w=!1;return q.onload=()=>{if(w)return;w=!0;const te=q.contentDocument,Q=q.contentWindow;if(!te||!Q||te.querySelector('script[src*="creaditor.bundle.js"]'))return;te.open(),te.write(`
524
+ )`,animationDelay:`${f*.15}s`}},f))})]}),A.jsxs(fe,{className:l?gh:"",sx:{fontSize:{xs:"0.875rem",sm:"1rem"},fontWeight:500,color:"text.secondary"},children:[e,A.jsx("span",{className:fh,children:a})]}),t&&A.jsxs(K,{className:l?hh:"",sx:{width:"100%",maxWidth:"600px",display:"flex",flexDirection:"column",gap:2,mt:1},children:[A.jsx(hg,{variant:"rectangular",height:60,sx:{borderRadius:2}}),A.jsx(hg,{variant:"rectangular",height:40,width:"80%",sx:{borderRadius:2}}),A.jsx(hg,{variant:"rectangular",height:40,width:"60%",sx:{borderRadius:2}})]})]}):null}const $o=Ul,nO=["קהילה ועמותות","טכנולוגיה","בריאות","חינוך","אוכל ומסעדות","אופנה","נדל״ן","כספים וביטוח","תחבורה ולוגיסטיקה","תקשורת ושיווק","אמנות ותרבות","ספורט ופנאי","ייעוץ וניהול","מסחר קמעונאי","ייצור","אנרגיה וסביבה","משפטים","בנייה","חקלאות","תיירות","בידור","ביטחון"],aO=["מקצועי","ידידותי","פורמלי","לא פורמלי","חברתי","מעודכן","קלאסי","צעיר","משפחתי","איכותי","מהיר","אמין","יצירתי","חכם","חם","קר","מעורר השראה","מעשי","יוקרתי","נגיש"],js=e=>{if(!e||typeof e!="string")return e;const t=e.trim();return!t||/^https?:\/\//i.test(t)?t:`https://${t}`};function rO(e,t,n){let a="";const r=n.trim().toLowerCase();if(r)try{const o=/^https?:\/\//i.test(r)?r:`https://${r}`;a=new URL(o).hostname.replace(/^www\./,"")}catch{}const l=`${a} ${r} ${e.toLowerCase()} ${t.toLowerCase()}`;return/linkedin|לינקדאין|לינקדין/.test(l)?Sx:/facebook|fb\.com|fb\.me|פייסבוק/.test(l)?mx:/instagram|instagr\.am|אינסטגרם/.test(l)?vx:/youtube|youtu\.be|יוטיוב/.test(l)?xx:/(^|\.)x\.com|twitter\.com|טוויטר|טוויט/.test(l)?bx:/tiktok|טיקטוק|tik tok/.test(l)?jx:/whatsapp|wa\.me|וואטסאפ|ווטסאפ/.test(l)?wx:/telegram|t\.me|טלגרם/.test(l)?Bx:/reddit|רדיט/.test(l)?Mx:/pinterest|פינטרסט/.test(l)?Vx:/github|גיטהאב|גיטהב/.test(l)?Fx:qx}function lO({platform:e,url:t,onPlatformCommit:n,onUrlChange:a,onRemove:r}){const[l,o]=v.useState(e);v.useEffect(()=>{o(e)},[e]);const i=v.useCallback(()=>{l!==e&&n(e,l)},[e,l,n]),s=rO(e,l,t);return A.jsxs(K,{sx:{display:"flex",alignItems:"flex-start",gap:1,mb:1,flexDirection:{xs:"column",sm:"row"}},children:[A.jsx(at,{fullWidth:!0,label:"פלטפורמה",value:l,onChange:p=>o(p.target.value),onBlur:i,onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),p.target.blur())},variant:"outlined",margin:"normal",size:"small",sx:{flex:{xs:"1 1 100%",sm:"0 0 min(200px, 34%)"}},placeholder:"לדוגמה: LinkedIn",InputProps:{startAdornment:A.jsx(ug,{position:"start",sx:{mr:0},children:A.jsx(s,{sx:{fontSize:22,color:"primary.main"},"aria-hidden":!0})})}}),A.jsx(at,{fullWidth:!0,label:"קישור",value:t,onChange:p=>a(e,p.target.value),variant:"outlined",margin:"normal",size:"small",sx:{flex:1},placeholder:"https://..."}),A.jsx(Hn,{color:"error",onClick:()=>r(e),sx:{mt:1},"aria-label":"הסר רשת חברתית",children:A.jsx(Qs,{})})]})}const oO=e=>({business_name:"",industry:"",business_type:"",business_type_options:[],keywords:[],profit_intent:"",is_haredi_sector:null,business_tone:"",description:"",overall_confidence:0,owner:"",owner_gender:"",business_address:"",website:e||"",contacts:{email:"",phone:""},socials:{linkedin:"",instagram:"",facebook:""},theme:void 0,website_confidence:0,confidence_scores:{website:0,contacts:{phone:0},socials:{},overall:0},token_usage:{total:{prompt_tokens:0,completion_tokens:0,total_tokens:0},breakdown:{analyze_business:{prompt_tokens:0,completion_tokens:0,total_tokens:0}}},estimated_cost_usd:0,source_urls:[],analyzed_at:new Date().toISOString()}),Ts=e=>{var t,n;return e?{...e,business_address:e.business_address??(e==null?void 0:e.address)??"",business_type_options:Array.isArray(e.business_type_options)?e.business_type_options:[],keywords:Array.isArray(e.keywords)?e.keywords:[],description:Array.isArray(e.description)?e.description:e.description?[e.description]:[""],contacts:{email:((t=e.contacts)==null?void 0:t.email)??"",phone:((n=e.contacts)==null?void 0:n.phone)??""},socials:e.socials&&typeof e.socials=="object"?e.socials:{linkedin:"",instagram:"",facebook:""},theme:(()=>{var o;const a=(o=e.theme)==null?void 0:o.logoHeaderBackground,r=(e==null?void 0:e.logoHeaderBackground)??(e==null?void 0:e.logoBackgroundHex),l=typeof a=="string"?a:typeof r=="string"?r:void 0;if(e.theme)return{primary:e.theme.primary||"",secondary:e.theme.secondary||"",colors:Array.isArray(e.theme.colors)?e.theme.colors:[],...l?{logoHeaderBackground:l}:{}};if(l)return{primary:"",secondary:"",colors:[],logoHeaderBackground:l}})()}:null};function iO({data:e,websiteUrl:t,setActiveStep:n,onSave:a,urls:r,language:l}){var Pe,je,it,D,ne;const o=Go(),[i,s]=v.useState(null),[p,u]=v.useState(!0),[c,d]=v.useState(null),[f,W]=v.useState(!1),[m,x]=v.useState(null),[h,g]=v.useState([]),[C,y]=v.useState([]),[E,S]=v.useState((e==null?void 0:e.logo)||(e&&typeof e=="object"&&"logo"in e?e.logo:"")),k=v.useRef(null),R=v.useRef(""),V=v.useRef(!1),b=v.useRef(!1),[B,M]=v.useState(0),F=v.useRef(new Map),z=v.useRef(0),T=()=>{F.current=new Map,z.current=0},j=U=>{const O=F.current;let Y=O.get(U);return Y||(Y=`social-row-${z.current++}`,O.set(U,Y)),Y},{shadowRoot:P,stepBeforeStep1:L,step2Data:q}=Ua(),[w,G]=v.useState(!1),te=v.useCallback(U=>{if(!U){S(""),s(Y=>{var Ie,Se,pe,xe;return!Y||!((Ie=Y.theme)!=null&&Ie.logoHeaderBackground)?Y:{...Y,theme:{...Y.theme,primary:((Se=Y.theme)==null?void 0:Se.primary)??"",secondary:((pe=Y.theme)==null?void 0:pe.secondary)??"",colors:((xe=Y.theme)==null?void 0:xe.colors)??[],logoHeaderBackground:void 0}}});return}U.startsWith("http://")||U.startsWith("https://")?zj(U).then(Y=>{S(Y.pngDataUrl),s(Ie=>{var Se,pe,xe,Qe;return Ie&&{...Ie,theme:{...Ie.theme,primary:((Se=Ie.theme)==null?void 0:Se.primary)??"",secondary:((pe=Ie.theme)==null?void 0:pe.secondary)??"",colors:((xe=Ie.theme)==null?void 0:xe.colors)??[],logoHeaderBackground:((Qe=Ie.theme)==null?void 0:Qe.logoHeaderBackground)??Y.backgroundHex}}})}).catch(()=>{S(U)}):S(U)},[]),Q=U=>{var Ie;const O=(Ie=U.target.files)==null?void 0:Ie[0];if(!O)return;if(!O.type.startsWith("image/")){alert("אנא בחר קובץ תמונה בלבד");return}if(O.size>5*1024*1024){alert("קובץ התמונה גדול מדי. אנא בחר קובץ קטן מ-5MB");return}const Y=new FileReader;Y.onloadend=()=>{const Se=Y.result;S(Se)},Y.onerror=()=>{alert("שגיאה בקריאת הקובץ. אנא נסה שוב.")},Y.readAsDataURL(O)},N=()=>{S(""),s(U=>{var O,Y,Ie,Se;return(O=U==null?void 0:U.theme)!=null&&O.logoHeaderBackground?{...U,theme:{...U.theme,primary:((Y=U.theme)==null?void 0:Y.primary)??"",secondary:((Ie=U.theme)==null?void 0:Ie.secondary)??"",colors:((Se=U.theme)==null?void 0:Se.colors)??[],logoHeaderBackground:void 0}}:U}),k.current&&(k.current.value="")},re=v.useCallback(()=>[...nO].sort(),[]),ue=v.useCallback(()=>[...aO].sort(),[]);v.useEffect(()=>{g(re()),y(ue())},[re,ue]),v.useEffect(()=>{if(i!=null&&i.industry){const U=re();U.includes(i.industry)||U.push(i.industry),g(U.sort())}},[i==null?void 0:i.industry,re]),v.useEffect(()=>{if(i!=null&&i.business_tone){const U=ue();U.includes(i.business_tone)||U.push(i.business_tone),y(U.sort())}},[i==null?void 0:i.business_tone,ue]);const _=U=>!U||typeof U!="object"?!1:"business_name"in U||"industry"in U||"business_type"in U||"keywords"in U||"description"in U;v.useEffect(()=>{if(e&&_(e)&&e.logo){const U=e.logo;U.startsWith("http://")||U.startsWith("https://")?te(U):S(U)}else if(e&&"logo"in e&&e.logo){const U=e.logo;U.startsWith("http://")||U.startsWith("https://")?te(U):S(U)}},[e,te]),v.useEffect(()=>{!p&&i&&G(!0)},[p,i]),v.useEffect(()=>{(async()=>{var xe,Qe,Je,ft,bt,kt,Dt,rt;const O=t?js(t).replace(/\/$/,"").toLowerCase():"",Y=t&&t.trim()!=="";if(R.current===O&&i!==null&&Y){u(!1);return}if(V.current)return;const Se=!!(e&&_(e));if(!Se&&(q!=null&&q.businessData)&&(q!=null&&q.websiteUrl)){const Xe=Ts(q.businessData);if(Xe){T(),s(Xe),u(!1),R.current="",q.logo&&(q.logo.startsWith("http://")||q.logo.startsWith("https://")?te(q.logo):S(q.logo));return}}if(Y){const Xe=e==null?void 0:e.business_name;if(!b.current&&Se&&Xe&&Xe.trim()!==""){const _e=Ts(e);if(_e){T(),s(_e),u(!1),R.current=O;const Ve=e==null?void 0:e.logo;Ve&&(Ve.startsWith("http://")||Ve.startsWith("https://")?te(Ve):S(Ve));return}}const Ce=Array.isArray(r)?r.map(js):[];Ce.push(js(t));try{V.current=!0,b.current=!1,u(!0),d(null);const _e=await ox(t,Ce,"",l);let Ve=Ts(_e);const It=(xe=e==null?void 0:e.theme)==null?void 0:xe.logoHeaderBackground;if(Ve&&typeof It=="string"&&(Ve={...Ve,theme:{...Ve.theme,primary:((Qe=Ve.theme)==null?void 0:Qe.primary)??"",secondary:((Je=Ve.theme)==null?void 0:Je.secondary)??"",colors:Array.isArray((ft=Ve.theme)==null?void 0:ft.colors)?Ve.theme.colors:[],logoHeaderBackground:It}}),Ve){T(),s(Ve),R.current=O;const Tt=_e==null?void 0:_e.logo;Tt&&te(Tt)}else d("שגיאה בעיבוד הנתונים שהתקבלו מהשרת")}catch(_e){d(_e instanceof Error?_e.message:"שגיאה בטעינת הנתונים")}finally{u(!1),V.current=!1}return}if(e&&_(e)){const Xe=Ts(e);if(Xe){T(),s(Xe),u(!1),R.current="";const Ce=e==null?void 0:e.logo;Ce&&(Ce.startsWith("http://")||Ce.startsWith("https://")?te(Ce):S(Ce));return}}const pe=Array.isArray(r)?r.map(js):[];if(pe.length===0){T(),s(oO(t)),u(!1),R.current="";return}try{V.current=!0,u(!0),d(null);const Xe=await ox(t,pe,"",l);let Ce=Ts(Xe);const _e=(bt=e==null?void 0:e.theme)==null?void 0:bt.logoHeaderBackground;if(Ce&&typeof _e=="string"&&(Ce={...Ce,theme:{...Ce.theme,primary:((kt=Ce.theme)==null?void 0:kt.primary)??"",secondary:((Dt=Ce.theme)==null?void 0:Dt.secondary)??"",colors:Array.isArray((rt=Ce.theme)==null?void 0:rt.colors)?Ce.theme.colors:[],logoHeaderBackground:_e}}),Ce){T(),s(Ce),R.current="";const Ve=Xe==null?void 0:Xe.logo;Ve&&te(Ve)}else d("שגיאה בעיבוד הנתונים שהתקבלו מהשרת")}catch(Xe){d(Xe instanceof Error?Xe.message:"שגיאה בטעינת הנתונים")}finally{u(!1),V.current=!1}})()},[t,q,B]);const H=(U,O)=>{i&&s({...i,[U]:O})},de=(U,O,Y)=>{i&&s({...i,[U]:{...i[U],[O]:Y}})},ae=(U,O)=>{if(i){const Y=i.theme||{primary:"",secondary:"",colors:[]};s({...i,theme:{...Y,[U]:O}})}},X=U=>{if(!i)return;const O={primary:"",secondary:"",colors:[],...i.theme},Y=xe=>xe.toLowerCase(),Ie=new Set(U.map(Y)),Se=O.primary&&Ie.has(Y(O.primary))?O.primary:"",pe=O.secondary&&Ie.has(Y(O.secondary))?O.secondary:"";s({...i,theme:{...O,primary:Se,secondary:pe,colors:U}})},he=(U,O,Y)=>{if(i)if(U==="description"){const Se=[...Array.isArray(i.description)?i.description:i.description?[i.description]:[""]];Se[O]=Y,s({...i,description:Se})}else{const Ie=[...i[U]];Ie[O]=Y,s({...i,[U]:Ie})}},We=()=>{if(i){const U=[...i.business_type_options,""];s({...i,business_type_options:U})}},me=U=>{if(i){const O=i.business_type_options.filter((Y,Ie)=>Ie!==U);s({...i,business_type_options:O})}},ve=()=>{if(i){const O=[...Array.isArray(i.description)?i.description:i.description?[i.description]:[""],""];s({...i,description:O})}},ce=U=>{if(i){const Y=(Array.isArray(i.description)?i.description:i.description?[i.description]:[""]).filter((Ie,Se)=>Se!==U);s({...i,description:Y.length>0?Y:[""]})}},Ze=()=>{if(i){const U={...i.socials};let O=1,Y="social_media";for(;U[Y];)Y=`social_media_${O}`,O++;U[Y]="",F.current.has(Y)||F.current.set(Y,`social-row-${z.current++}`),s({...i,socials:U})}},le=U=>{if(i){F.current.delete(U);const O={...i.socials};delete O[U],s({...i,socials:O})}},Ke=(U,O)=>{if(i&&U!==O){const Y={...i.socials},Ie=Y[U]||"";delete Y[U];const Se=O.trim(),pe=F.current.get(U);pe&&(F.current.delete(U),Se&&F.current.set(Se,pe)),Se&&(Y[Se]&&Se!==U?Y[Se]=Ie||Y[Se]:Y[Se]=Ie),s({...i,socials:Y})}},qe=(U,O)=>{if(i){const Y={...i.socials};Y[U]=O,s({...i,socials:Y})}},Be=async()=>{var ft,bt,kt,Dt;if(!i)return;const U=(t==null?void 0:t.trim())||((ft=i.website)==null?void 0:ft.trim())||"";let O=!1;(bt=i.website)!=null&&bt.trim()||(O=!1);const Y=E||"",Ie=Y.startsWith("data:image/"),Se=(kt=i==null?void 0:i.theme)==null?void 0:kt.logoHeaderBackground,pe=Se&&/^#(000|000000)$/i.test(String(Se).trim()),xe=Se&&!pe?Se:Se&&pe?"white":void 0,Qe=(Dt=i==null?void 0:i.theme)!=null&&Dt.logoHeaderBackground&&/^#(000|000000)$/i.test(String(i.theme.logoHeaderBackground).trim())?{...i,theme:{...i.theme,logoHeaderBackground:"white"}}:i;if(!Qe.business_name){x("שם העסק הוא שדה חובה"),W(!1);return}const Je={businessData:Qe,logo:Y,websiteUrl:U,...xe?{logoBackgroundHex:xe}:{}};Ie&&(Je.logoToUpload=Y),W(!0),x(null);try{const rt={...Qe};delete rt._id,delete rt.__v,rt.business_address!==void 0&&(rt.address=rt.business_address),Array.isArray(rt.description)&&(rt.description=rt.description.filter(Boolean).join(`
525
+ `)||""),O&&await Fj(U,rt)}catch(rt){const Xe=rt instanceof Error?rt.message:String(rt);if(Xe.includes("404")||Xe.includes("not found"))console.warn("Business analysis not in DB, saving to context only:",Xe);else{console.error("Failed to save business analysis:",Xe),x(`שמירה נכשלה: ${Xe}`),W(!1);return}}W(!1),a(Je),o&&o.triggerEvent("onDataComplete",Je),window.dispatchEvent(new CustomEvent("business-analysis-saved",{detail:i,bubbles:!0,composed:!0})),n(2)};if(p)return A.jsx(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:{xs:2,sm:3,md:5},minHeight:{xs:"300px",sm:"350px",md:"400px"}},children:A.jsx(tO,{text:"Analyzing",showSkeletons:!0})});if(c)return A.jsxs(K,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"500px"},maxWidth:"100%",boxSizing:"border-box"},children:[A.jsx(Ml,{severity:"error",sx:{fontSize:{xs:"0.875rem",sm:"1rem"}},children:c}),A.jsx(ze,{variant:"text",color:"primary",onClick:()=>n(L),sx:{mt:2,fontSize:{xs:"0.875rem",sm:"1rem"}},children:"חזרה"})]});if(!i)return null;const Te=(t==null?void 0:t.trim())||(e&&typeof e=="object"&&"websiteUrl"in e?(Pe=e.websiteUrl)==null?void 0:Pe.trim():"")||((je=i==null?void 0:i.website)==null?void 0:je.trim())||"";return A.jsxs(K,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0,height:"100%",width:"100%",maxWidth:"100%",boxSizing:"border-box",overflow:"hidden"},children:[A.jsxs(K,{sx:{flex:1,minHeight:0,height:"100%",maxHeight:"calc(90vh - 140px)",overflowY:"auto",overflowX:"hidden",padding:{xs:2,sm:3,md:5},paddingBottom:{xs:1,sm:1.5,md:2},WebkitOverflowScrolling:"touch"},children:[Te&&A.jsx(K,{className:w?$o.fadeUp:"",sx:{mb:{xs:2,sm:2.5},mt:{xs:.5,sm:1}},children:A.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:1.25,px:{xs:1.5,sm:2},py:{xs:1,sm:1.125},borderRadius:2,border:"1px solid",borderColor:"divider",maxWidth:"100%",overflow:"hidden",bgcolor:U=>un(U.palette.primary.main,.06)},children:[A.jsx(dx,{sx:{fontSize:{xs:"1.125rem",sm:"1.25rem"},color:"text.secondary",flexShrink:0,opacity:.85}}),A.jsx(fe,{variant:"body2",sx:{fontSize:{xs:"0.8125rem",sm:"0.875rem"},color:"text.primary",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1,direction:"ltr",textAlign:"left",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontWeight:500},children:js(Te)}),A.jsx(Hn,{size:"small",onClick:()=>{R.current="",b.current=!0,M(U=>U+1)},disabled:p,title:"נתח מחדש",sx:{flexShrink:0,opacity:.7,"&:hover":{opacity:1}},children:A.jsx(fx,{sx:{fontSize:"1.125rem"}})})]})}),A.jsxs(K,{className:w?$o.fadeUp:"",sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(fe,{component:"h1",variant:"h4",sx:{mt:Te?{xs:1.5,sm:2}:{xs:4,sm:4},fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:"עריכת פרטי העסק"}),A.jsx(fe,{variant:"body2",className:w?$o.fadeUpDelay1:"",color:"text.secondary",sx:{mt:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(48ch, 100%)",lineHeight:1.55},children:"עברו על השדות, עדכנו מה שצריך, והמשיכו לשלב הבא."})]}),A.jsx(K,{className:w?$o.fadeUpDelay2:"",children:A.jsxs(Sa,{title:"לוגו",description:"מומלץ קובץ שקוף או רקע בהיר. אפשר לדלג אם אין לוגו מעודכן.",children:[A.jsx("input",{ref:k,type:"file",accept:"image/*",onChange:Q,style:{display:"none"},id:"logo-upload-input"}),E?A.jsxs(K,{sx:{p:{xs:1.5,sm:2,md:2.5},border:"1px dashed",borderColor:"divider",borderRadius:2,bgcolor:U=>un(U.palette.common.black,.02),transition:"border-color 0.2s ease, background-color 0.2s ease",mb:{xs:1.5,sm:2},"&:hover":{borderColor:"text.secondary",bgcolor:U=>un(U.palette.common.black,.035)}},children:[A.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:{xs:1,sm:1.5,md:2},mb:{xs:1.5,sm:2},flexDirection:{xs:"column",sm:"row"}},children:[A.jsx(Hn,{size:"small",color:"error",onClick:N,sx:{border:"1px solid rgba(211, 47, 47, 0.3)",alignSelf:{xs:"flex-start",sm:"auto"},"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.08)",borderColor:"rgba(211, 47, 47, 0.5)"}},"aria-label":"הסר לוגו",children:A.jsx(Qs,{fontSize:"small"})}),A.jsx(K,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",minHeight:{xs:"80px",sm:"90px",md:"100px"},backgroundColor:(()=>{var Y;const U=((Y=i==null?void 0:i.theme)==null?void 0:Y.logoHeaderBackground)??"white";return/^#(000|000000)$/i.test(U.trim())||/^rgb\s*\(\s*0\s*,\s*0\s*,\s*0\s*\)$/i.test(U.trim())?"white":U})(),borderRadius:1,border:"1px solid rgba(0, 0, 0, 0.08)",p:{xs:.5,sm:1},width:{xs:"100%",sm:"auto"}},children:A.jsx("img",{src:E,alt:"Logo preview",style:{maxWidth:"100%",maxHeight:"100px",objectFit:"contain"}})})]}),A.jsx("label",{htmlFor:"logo-upload-input",children:A.jsx(ze,{variant:"outlined",component:"span",startIcon:A.jsx(Ax,{}),fullWidth:!0,sx:{textTransform:"none",borderRadius:{xs:1.5,sm:2},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"החלף לוגו"})})]}):A.jsxs(K,{sx:{border:"1px dashed",borderColor:"divider",borderRadius:2,p:{xs:2,sm:2.5,md:3},textAlign:"center",bgcolor:U=>un(U.palette.common.black,.02),transition:"border-color 0.2s ease, background-color 0.2s ease","&:hover":{borderColor:"text.secondary",bgcolor:U=>un(U.palette.common.black,.035)}},children:[A.jsx("label",{htmlFor:"logo-upload-input",children:A.jsx(ze,{variant:"outlined",component:"span",startIcon:A.jsx(cx,{}),sx:{textTransform:"none",borderRadius:{xs:1.5,sm:2},px:{xs:2,sm:2.5,md:3},py:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"העלה לוגו"})}),A.jsx(fe,{variant:"caption",color:"text.secondary",sx:{mt:{xs:1,sm:1.5},display:"block",fontSize:{xs:"0.7rem",sm:"0.75rem"}},children:"תמונות PNG, JPG או SVG עד 5MB"})]})]})}),A.jsxs(ut,{spacing:0,className:w?$o.fadeUpDelay3:"",children:[A.jsx(Sa,{title:"פרטי העסק",description:"שם, תעשייה, כתובת והגדרות סוג עסק — משמשים לנתח ולייצר תוצרים מדויקים יותר.",children:A.jsxs(ct,{container:!0,spacing:{xs:2,sm:2.5,md:3},children:[A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"שם העסק",value:i.business_name,onChange:U=>H("business_name",U.target.value),variant:"outlined",margin:"normal"})}),A.jsxs(ct,{item:!0,xs:12,md:6,children:[A.jsx(at,{fullWidth:!0,label:"שם בעל.ת העסק (מלא)",value:i.owner,onChange:U=>H("owner",U.target.value),variant:"outlined",margin:"normal"}),A.jsxs(aq,{row:!0,value:i.owner_gender??"",onChange:U=>H("owner_gender",U.target.value),sx:{mt:.5,gap:{xs:.5,sm:1},"& .MuiFormControlLabel-root":{mr:0}},children:[A.jsx(Kc,{value:"male",control:A.jsx(Wg,{size:"small"}),label:A.jsxs(K,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(Wx,{fontSize:"small"}),A.jsx("span",{children:"זכר"})]}),labelPlacement:"end"}),A.jsx(Kc,{value:"female",control:A.jsx(Wg,{size:"small"}),label:A.jsxs(K,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(gx,{fontSize:"small"}),A.jsx("span",{children:"נקבה"})]}),labelPlacement:"end"}),A.jsx(Kc,{value:"other",control:A.jsx(Wg,{size:"small"}),label:A.jsxs(K,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(hx,{fontSize:"small"}),A.jsx("span",{children:"אחר"})]}),labelPlacement:"end"})]})]}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx($W,{freeSolo:!0,options:h,value:i.industry||"",onChange:(U,O)=>{H("industry",O||"")},onInputChange:(U,O)=>{H("industry",O)},inputValue:i.industry||"",openOnFocus:!0,disablePortal:!0,componentsProps:{popper:{container:(P==null?void 0:P.getElementById("cdtr-business-ai-root"))||void 0,style:{zIndex:9999},modifiers:[{name:"offset",options:{offset:[0,4]}}]}},ListboxProps:{sx:{maxHeight:"300px","& .MuiAutocomplete-option":{padding:"8px 16px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&[aria-selected='true']":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}}},PaperComponent:({children:U,...O})=>A.jsx(K,{...O,sx:{borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.1)",marginTop:"4px",backgroundColor:"white"},children:U}),renderInput:U=>A.jsx(at,{...U,label:"תעשייה",variant:"outlined",margin:"normal"}),noOptionsText:h.length===0?"הקלד תעשייה":"אין אפשרויות"})}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"סוג עסק",value:i.business_type,onChange:U=>H("business_type",U.target.value),variant:"outlined",margin:"normal"})}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"כתובת העסק",value:i.business_address??"",onChange:U=>H("business_address",U.target.value),variant:"outlined",margin:"normal"})}),A.jsxs(ct,{item:!0,xs:12,children:[A.jsx(fe,{variant:"subtitle2",sx:{mb:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"אפשרויות סוג עסק"}),(Array.isArray(i.business_type_options)?i.business_type_options:[]).map((U,O)=>A.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[A.jsx(at,{fullWidth:!0,value:U,onChange:Y=>he("business_type_options",O,Y.target.value),variant:"outlined",margin:"normal",size:"small"}),A.jsx(Hn,{color:"error",onClick:()=>me(O),sx:{mt:1},"aria-label":"הסר אפשרות",children:A.jsx(Qs,{})})]},O)),A.jsx(ze,{variant:"outlined",startIcon:A.jsx(Fl,{}),onClick:We,sx:{mt:1},children:"הוספת אפשרות"})]}),A.jsx(ct,{item:!0,xs:12,children:A.jsx(f6,{value:i.keywords,onChange:U=>H("keywords",U)})})]})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Sa,{title:"צבעי מותג",description:"גררו צבעים או עדכנו ראשי ומשני — משפיעים על תצוגת המותג בחוויה.",children:A.jsx(H6,{colors:((it=i.theme)==null?void 0:it.colors)??[],primary:((D=i.theme)==null?void 0:D.primary)||"",secondary:((ne=i.theme)==null?void 0:ne.secondary)||"",onPrimaryChange:U=>ae("primary",U),onSecondaryChange:U=>ae("secondary",U),onColorsChange:X})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Sa,{title:"טון ותוכן",description:"איך העסק נשמע, תיאור קצר וכתובת האתר לעדכון.",children:A.jsxs(ct,{container:!0,spacing:{xs:2,sm:2.5,md:3},children:[A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx($W,{freeSolo:!0,options:C,value:i.business_tone||"",onChange:(U,O)=>{H("business_tone",O||"")},onInputChange:(U,O)=>{H("business_tone",O)},inputValue:i.business_tone||"",openOnFocus:!0,disablePortal:!0,componentsProps:{popper:{container:(P==null?void 0:P.getElementById("cdtr-business-ai-root"))||void 0,style:{zIndex:9999},modifiers:[{name:"offset",options:{offset:[0,4]}}]}},ListboxProps:{sx:{maxHeight:"300px","& .MuiAutocomplete-option":{padding:"8px 16px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&[aria-selected='true']":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}}},PaperComponent:({children:U,...O})=>A.jsx(K,{...O,sx:{borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.1)",marginTop:"4px",backgroundColor:"white"},children:U}),renderInput:U=>A.jsx(at,{...U,label:"טון עסקי",variant:"outlined",margin:"normal"}),noOptionsText:C.length===0?"הקלד טון עסקי":"אין אפשרויות"})}),A.jsxs(ct,{item:!0,xs:12,children:[A.jsx(fe,{variant:"subtitle2",sx:{mb:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"תיאור"}),(Array.isArray(i.description)?i.description:i.description?[i.description]:[""]).map((U,O)=>A.jsxs(K,{sx:{display:"flex",alignItems:"flex-start",gap:1,mb:1},children:[A.jsx(at,{fullWidth:!0,value:U,onChange:Y=>he("description",O,Y.target.value),variant:"outlined",margin:"normal",multiline:!0,rows:3,size:"small"}),A.jsx(Hn,{color:"error",onClick:()=>ce(O),sx:{mt:1},"aria-label":"הסר תיאור",children:A.jsx(Qs,{})})]},O)),A.jsx(ze,{variant:"outlined",startIcon:A.jsx(Fl,{}),onClick:ve,sx:{mt:1},children:"הוספת תיאור"})]}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"אתר אינטרנט",value:i.website,onChange:U=>H("website",U.target.value),variant:"outlined",margin:"normal"})})]})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsxs(Sa,{title:"קשר ורשתות",description:"אימייל וטלפון ליצירת קשר, וקישורים לפרופילים ציבוריים.",children:[A.jsxs(ct,{container:!0,spacing:{xs:1.5,sm:2},children:[A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"אימייל",value:i.contacts.email,onChange:U=>de("contacts","email",U.target.value),variant:"outlined",margin:"normal"})}),A.jsx(ct,{item:!0,xs:12,md:6,children:A.jsx(at,{fullWidth:!0,label:"טלפון",value:i.contacts.phone,onChange:U=>de("contacts","phone",U.target.value),variant:"outlined",margin:"normal"})})]}),A.jsxs(K,{sx:{mt:{xs:2,sm:2.5},p:{xs:1.5,sm:2},borderRadius:2,border:"1px solid",borderColor:"divider",bgcolor:U=>un(U.palette.common.black,.02)},children:[Object.entries(i.socials).map(([U,O])=>A.jsx(lO,{platform:U,url:O,onPlatformCommit:Ke,onUrlChange:qe,onRemove:le},j(U))),A.jsx(ze,{variant:"outlined",startIcon:A.jsx(Fl,{}),onClick:Ze,sx:{mt:1,textTransform:"none"},children:"הוספת רשת חברתית"})]})]})]})]}),A.jsxs(K,{className:w?$o.fadeUpDelay4:"",sx:{position:"fixed",bottom:0,left:0,right:0,zIndex:10,padding:{xs:1,sm:1,md:1},paddingTop:{xs:1,sm:1,md:1},backgroundColor:"background.default",borderTop:"1px solid",borderColor:"divider"},children:[m&&A.jsx(Ml,{severity:"error",sx:{mb:1},onClose:()=>x(null),children:m}),A.jsxs(ct,{container:!0,spacing:{xs:1,sm:2},sx:{justifyContent:{xs:"center",sm:"space-between"}},children:[A.jsx(ct,{item:!0,xs:12,sm:"auto",children:A.jsx(ze,{variant:"text",color:"primary",onClick:()=>n(L),fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:"חזרה"})}),A.jsx(ct,{item:!0,xs:12,sm:"auto",children:A.jsx(ze,{variant:"contained",color:"primary",onClick:Be,disabled:f,fullWidth:!0,startIcon:f?A.jsx(va,{size:18,color:"inherit"}):null,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"},minWidth:120},children:f?"שומר...":"שלב הבא"})})]})]})]})}const sO=$t(A.jsx("path",{d:"M7 16c.55 0 1 .45 1 1 0 1.1-.9 2-2 2-.17 0-.33-.02-.5-.05.31-.55.5-1.21.5-1.95 0-.55.45-1 1-1M18.67 3c-.26 0-.51.1-.71.29L9 12.25 11.75 15l8.96-8.96c.39-.39.39-1.02 0-1.41l-1.34-1.34c-.2-.2-.45-.29-.7-.29M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3"}),"BrushOutlined"),pO=$t(A.jsx("path",{d:"M20.97 7.27c.39-.39.39-1.02 0-1.41l-2.83-2.83a.9959.9959 0 0 0-1.41 0l-4.49 4.49-3.89-3.89c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l3.89 3.89L3 16.76V21h4.24l4.52-4.52 3.89 3.89c.95.95 2.23.6 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83l-3.89-3.89zM5.04 6.94l1.89-1.9L8.2 6.31 7.02 7.5l1.41 1.41 1.19-1.19 1.2 1.2-1.9 1.9zm11.23 7.44-1.19 1.19 1.41 1.41 1.19-1.19 1.27 1.27-1.9 1.9-3.89-3.89 1.9-1.9zM6.41 19H5v-1.41l9.61-9.61 1.3 1.3.11.11zm9.61-12.44 1.41-1.41 1.41 1.41-1.41 1.41z"}),"DesignServicesOutlined");var Ch={},uO=Fe;Object.defineProperty(Ch,"__esModule",{value:!0});var aE=Ch.default=void 0,cO=uO(Oe()),AO=A;aE=Ch.default=(0,cO.default)((0,AO.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"}),"AutoAwesomeOutlined");var vh={},dO=Fe;Object.defineProperty(vh,"__esModule",{value:!0});var rE=vh.default=void 0,fO=dO(Oe()),yh=A;rE=vh.default=(0,fO.default)([(0,yh.jsx)("path",{d:"M18 10.48V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4.48l4 3.98v-11zm-2-.79V18H4V6h12z"},"0"),(0,yh.jsx)("circle",{cx:"10",cy:"10",r:"2"},"1"),(0,yh.jsx)("path",{d:"M14 15.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.99 0-1.93.21-2.78.58C6.48 13.9 6 14.62 6 15.43V16h8z"},"2")],"VideoCameraFrontOutlined");var Sh={},WO=Fe;Object.defineProperty(Sh,"__esModule",{value:!0});var Ih=Sh.default=void 0,gO=WO(Oe()),hO=A;Ih=Sh.default=(0,gO.default)((0,hO.jsx)("path",{d:"M21 11.01 3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"}),"NotesOutlined");var xh={},mO=Fe;Object.defineProperty(xh,"__esModule",{value:!0});var lE=xh.default=void 0,CO=mO(Oe()),vO=A;lE=xh.default=(0,CO.default)((0,vO.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9H9V9h10zm-4 4H9v-2h6zm4-8H9V5h10z"}),"LibraryBooks");var Eh={},yO=Fe;Object.defineProperty(Eh,"__esModule",{value:!0});var oE=Eh.default=void 0,SO=yO(Oe()),IO=A;oE=Eh.default=(0,SO.default)((0,IO.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var bh={},xO=Fe;Object.defineProperty(bh,"__esModule",{value:!0});var iE=bh.default=void 0,EO=xO(Oe()),bO=A;iE=bh.default=(0,EO.default)((0,bO.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const sE=[{id:"authentic_text",label:"טקסט אישי",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"designed_mail",label:"מעוצב (מצב מהיר)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"studio_design",label:"מעוצב (סטודיו)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"designed_mail_advanced",comingSoon:!0,label:"מעצב פרו (סטודיו)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]}];function pE(e){return sE.find(t=>t.id===e)}function kh(e){return e==="other"}function uE(e,t,n){if(e==="other"&&n!=null){const l=n.trim();return l?l+(l.endsWith(".")?"":"."):"אני רוצה לבנות מייל."}const a=pE(e);if(!a)return"";const r=[];if(e==="webinar"){const l=t.date||"",o=t.time||"",i=t.topic||"";return r.push("אני רוצה לבנות מייל לוובינר"),(l||o)&&r.push(`בתאריך ${l}${o?` בשעה ${o}`:""}`),i&&r.push(`, ${i}`),r.join(" ")+"."}if(e==="designed_mail"){const l=t.topic||"";return l?`אני רוצה לבנות מייל מעוצב: ${l}.`:"אני רוצה לבנות מייל מעוצב."}if(e==="studio_design"){const l=t.topic||"";return l?`אני רוצה לבנות מייל מעוצב בסטודיו: ${l}.`:"אני רוצה לבנות מייל מעוצב בסטודיו."}if(e==="authentic_text"){const l=t.topic||"";return l?`אני רוצה לבנות מייל בטקסט אישי: ${l}.`:"אני רוצה לבנות מייל בטקסט אישי."}return a.label?`אני רוצה לבנות מייל מסוג ${a.label}.`:""}var wh={},kO=Fe;Object.defineProperty(wh,"__esModule",{value:!0});var nA=wh.default=void 0,wO=kO(Oe()),RO=A;nA=wh.default=(0,wO.default)((0,RO.jsx)("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields");var Rh={},BO=Fe;Object.defineProperty(Rh,"__esModule",{value:!0});var Os=Rh.default=void 0,LO=BO(Oe()),MO=A;Os=Rh.default=(0,LO.default)((0,MO.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension");const cE=["newsletter.loadingSteps.building","newsletter.loadingSteps.searchingImages","newsletter.loadingSteps.choosingIcons","newsletter.loadingSteps.analyzing"],Bh=["https://images.pexels.com/photos/3184292/pexels-photo-3184292.jpeg?auto=compress&cs=tinysrgb&w=200","https://images.pexels.com/photos/2762247/pexels-photo-2762247.jpeg?auto=compress&cs=tinysrgb&w=200","https://images.pexels.com/photos/267350/pexels-photo-267350.jpeg?auto=compress&cs=tinysrgb&w=200"],QO={"@keyframes sceneIn":{"0%":{opacity:0,transform:"scale(0.94)"},"100%":{opacity:1,transform:"scale(1)"}},"@keyframes blockDrop":{"0%":{transform:"translate(-10px, -16px)",opacity:.5},"100%":{transform:"translate(0, 0)",opacity:1}},"@keyframes blockFloat":{"0%, 100%":{transform:"translate(0, 0)"},"50%":{transform:"translate(3px, -2px)"}}},Qn={animation:"blockDrop 0.5s ease-out both, blockFloat 2.2s ease-in-out 0.6s infinite",borderRadius:2,border:"1px solid rgba(0, 0, 0, 0.08)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},AE={background:`linear-gradient(135deg, ${tA}61 0%, ${mh}61 100%)`};function VO(){return A.jsxs(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsx(K,{className:"block",sx:{...Qn,width:110,height:26,background:ta,color:"primary.contrastText"},children:A.jsx(nA,{sx:{fontSize:16}})}),A.jsx(K,{className:"block",sx:{...Qn,width:130,height:72},children:A.jsx("img",{src:Bh[0],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsxs(K,{sx:{display:"flex",gap:1},children:[A.jsx(K,{className:"block",sx:{...Qn,width:36,height:36,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(Os,{sx:{fontSize:20}})}),A.jsx(K,{className:"block",sx:{...Qn,width:44,height:36,...AE}})]})]})}function UO(){return A.jsxs(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsx(K,{className:"block",sx:{...Qn,width:130,height:68},children:A.jsx("img",{src:Bh[1],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsxs(K,{sx:{display:"flex",gap:1},children:[A.jsx(K,{className:"block",sx:{...Qn,width:100,height:24,background:ta,color:"primary.contrastText"},children:A.jsx(nA,{sx:{fontSize:14}})}),A.jsx(K,{className:"block",sx:{...Qn,width:36,height:36,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(Os,{sx:{fontSize:20}})})]}),A.jsx(K,{className:"block",sx:{...Qn,width:90,height:32,bgcolor:"grey.300"}})]})}function FO(){return A.jsxs(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsxs(K,{sx:{display:"flex",gap:1},children:[A.jsx(K,{className:"block",sx:{...Qn,width:38,height:38,background:ta,color:"primary.contrastText"},children:A.jsx(Os,{sx:{fontSize:22}})}),A.jsx(K,{className:"block",sx:{...Qn,width:50,height:38,...AE}}),A.jsx(K,{className:"block",sx:{...Qn,width:38,height:38,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(Os,{sx:{fontSize:20}})})]}),A.jsx(K,{className:"block",sx:{...Qn,width:120,height:70},children:A.jsx("img",{src:Bh[2],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsx(K,{className:"block",sx:{...Qn,width:100,height:22,background:ta,color:"primary.contrastText"},children:A.jsx(nA,{sx:{fontSize:14}})})]})}const dE=[VO,UO,FO];function zO(e){const{t}=Nn(),[n,a]=v.useState(0),[r,l]=v.useState(0),[o,i]=v.useState(0);v.useEffect(()=>{const p=setInterval(()=>{a(u=>(u+1)%cE.length)},2500);return()=>clearInterval(p)},[]),v.useEffect(()=>{const p=setInterval(()=>{l(u=>(u+1)%dE.length)},3200);return()=>clearInterval(p)},[]),v.useEffect(()=>{const p=setInterval(()=>{i(u=>u+1)},1e3);return()=>clearInterval(p)},[]);const s=dE[r];return A.jsxs(K,{sx:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:2,paddingTop:4,...QO},children:[A.jsx(K,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,mb:3,minHeight:180,"& .block":Qn,"& .block:nth-of-type(1)":{animationDelay:"0s, 0.6s"},"& .block:nth-of-type(2)":{animationDelay:"0.12s, 0.72s"},"& .block:nth-of-type(3)":{animationDelay:"0.24s, 0.84s"},"& .block:nth-of-type(4)":{animationDelay:"0.36s, 0.96s"},"& .block:nth-of-type(5)":{animationDelay:"0.48s, 1.08s"},"& .block:nth-of-type(6)":{animationDelay:"0.6s, 1.2s"}},children:A.jsx(K,{sx:{animation:"sceneIn 0.4s ease-out"},children:A.jsx(s,{})},r)}),A.jsx(K,{sx:{display:"flex",gap:.75,mb:1.5},children:[0,1,2,3].map(p=>A.jsx(K,{sx:{width:10,height:10,borderRadius:"50%",...p<=n?{background:ta}:{bgcolor:"action.hover"},opacity:p===n?1:p<n?.8:.4,transition:"opacity 0.3s ease, background-color 0.3s ease"}},p))}),A.jsx(fe,{variant:"body1",sx:{fontWeight:500,color:"text.secondary"},children:t(cE[n])}),A.jsxs(fe,{variant:"caption",sx:{mt:1,color:"text.disabled",fontVariantNumeric:"tabular-nums"},children:[Math.floor(o/60).toString().padStart(2,"0"),":",(o%60).toString().padStart(2,"0")]})]})}const fE={IL:"Israel",US:"United States",CA:"Canada",GB:"United Kingdom",UK:"United Kingdom",AU:"Australia",DE:"Germany",FR:"France",ES:"Spain",IT:"Italy",NL:"Netherlands",BR:"Brazil",MX:"Mexico",AR:"Argentina",RU:"Russia",JP:"Japan",CN:"China",IN:"India",ZA:"South Africa",AE:"United Arab Emirates",SA:"Saudi Arabia",PL:"Poland",SE:"Sweden",NO:"Norway",DK:"Denmark",FI:"Finland",CH:"Switzerland",AT:"Austria",BE:"Belgium",PT:"Portugal",GR:"Greece",TR:"Turkey",KR:"South Korea",SG:"Singapore",HK:"Hong Kong",TW:"Taiwan",NZ:"New Zealand",IE:"Ireland"},qO={"Asia/Jerusalem":"Israel","America/New_York":"United States","America/Los_Angeles":"United States","America/Chicago":"United States","America/Toronto":"Canada","America/Vancouver":"Canada","Europe/London":"United Kingdom","Europe/Paris":"France","Europe/Berlin":"Germany","Europe/Madrid":"Spain","Europe/Rome":"Italy","Europe/Amsterdam":"Netherlands","Australia/Sydney":"Australia","Australia/Melbourne":"Australia","Asia/Tokyo":"Japan","Asia/Shanghai":"China","Asia/Dubai":"United Arab Emirates","America/Sao_Paulo":"Brazil","America/Mexico_City":"Mexico"};function jO(){if(typeof navigator>"u")return null;try{const e=navigator,t=[navigator.language,...e.languages??[]].filter(Boolean);for(const n of t){if(!n)continue;const a=new Intl.Locale(n).region;if(a&&fE[a])return fE[a];if(n.startsWith("he")&&!a)return"Israel"}}catch{}try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e){const t=qO[e];if(t)return t;if(e.split("/")[0]==="Asia"&&e.includes("Jerusalem"))return"Israel"}}catch{}return null}const TO={authentic_text:Ih,webinar:rE,designed_mail:aE,studio_design:sO,designed_mail_advanced:pO};function Lh({header:e,children:t,footer:n,compactBody:a}){return A.jsxs(K,{sx:{flex:"1 1 0%",minHeight:0,display:"flex",flexDirection:"column",bgcolor:"background.paper"},children:[A.jsx(K,{sx:{flexShrink:0,pt:{xs:6,sm:7},px:2.5,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:e}),a?A.jsx(K,{sx:{flex:1,minHeight:0}}):A.jsx(K,{sx:{flex:1,minHeight:0,overflow:"auto",px:2.5,py:2,WebkitOverflowScrolling:"touch"},children:t}),n?A.jsx(K,{sx:{flexShrink:0,px:2.5,py:2,borderTop:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:n}):null]})}function OO({domain:e,mergeTags:t=[],visibilityRules:n,location:a,onResult:r,result:l,language:o,context:i,onSeriesClick:s,onBack:p}){const{t:u}=Nn(),c=Go(),{step3Draft:d,setStep3Draft:f}=rx(),[W,m]=v.useState(0),[x,h]=v.useState(null),[g,C]=v.useState({}),[y,E]=v.useState(""),[S,k]=v.useState(!1),[R,V]=v.useState(null),[b,B]=v.useState(null),[M,F]=v.useState(!1),z=x?pE(x):null,T=(z==null?void 0:z.questions)??[],j=a&&a.trim()||jO()||void 0,P=_=>{h(_),C({}),m(1)},L=(_,H)=>{C(de=>({...de,[_]:H}))},q=async()=>{if(!y.trim())return;k(!0),V(null);const _=Date.now();try{const H=uE("other",{},y),de=await kg({prompt:H,domain:e,mergeTags:t,structureUrl:"",textStyleUrl:"",...n&&Object.keys(n).length>0?{visibilityRules:n}:{},...o?{language:o}:{},...j?{location:j}:{},...i?{context:i}:{}});B(Math.round((Date.now()-_)/1e3)),r(de)}catch(H){console.error("Newsletter generation failed:",H),V(u("common.errorGeneric"))}finally{k(!1)}},w=async(_,H)=>{k(!0),V(null);const de=Date.now();try{const ae=x==="studio_design"||x==="webinar",X=x==="designed_mail";if(X||ae){const he=o||"he",We=Kj(i,he),me={prompt:_,accountId:We.accountId,language:he,...t.length>0?{mergeTags:t}:{},businessContext:We},ve=X?await Tj(me):await Oj(me),ce={...ve,components:ve.nodes??[]};B(Math.round((Date.now()-de)/1e3)),r(ce)}else{const he=await kg({prompt:_,domain:e,mergeTags:t,structureUrl:"",textStyleUrl:H,...n&&Object.keys(n).length>0?{visibilityRules:n}:{},...o?{language:o}:{},...j?{location:j}:{},...i?{context:i}:{}});B(Math.round((Date.now()-de)/1e3)),r(he)}}catch(ae){console.error("Newsletter generation failed:",ae),V(u("common.errorGeneric"))}finally{k(!1)}},G=()=>{const _=uE(x,g);_&&w(_,"")},te=()=>{if(M||!c||!l)return;F(!0);const _=(d==null?void 0:d.components)??l.components??l.nodes??l.template,H=l.meta,de=l.name||(H==null?void 0:H.name)||(x?u(`newsletter.types.${x}`):"")||"Newsletter",ae=l.subject||(H==null?void 0:H.subject)||de,X=l.direction||(H==null?void 0:H.direction)||(o==="he"?"rtl":"ltr"),he={...l,components:_,template:_,name:de,subject:ae,direction:X,description:l.description||(H==null?void 0:H.preheader)||"",preheader:l.preheader||(H==null?void 0:H.preheader)||""};console.log("[handleEdit] result:",l),console.log("[handleEdit] meta:",H),console.log("[handleEdit] name:",de,"subject:",ae),console.log("[handleEdit] components count:",_==null?void 0:_.length),console.log("[handleEdit] full payload:",he);try{c.triggerEvent("onEditPage",he),f(null)}catch(We){console.error("[handleEdit] triggerEvent error:",We)}setTimeout(()=>F(!1),15e3)},Q=()=>{r(null),m(0),h(null),C({}),E(""),V(null),B(null)},N=()=>{m(0),h(null),C({}),E("")};if(l&&l.components)return A.jsx(Lh,{compactBody:!0,header:A.jsxs(ut,{spacing:1,children:[A.jsx(fe,{variant:"h6",component:"h1",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35},children:u("newsletter.successHeading")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.55},children:u("newsletter.successMessage")}),b!=null&&A.jsxs(fe,{variant:"caption",color:"text.disabled",sx:{fontVariantNumeric:"tabular-nums"},children:[Math.floor(b/60).toString().padStart(2,"0"),":",(b%60).toString().padStart(2,"0")]})]}),footer:A.jsxs(ut,{direction:"row",flexWrap:"wrap",gap:1.5,justifyContent:"flex-start",children:[A.jsx(ze,{variant:"contained",color:"primary",disabled:M,startIcon:M?A.jsx(va,{size:18,color:"inherit"}):A.jsx(oE,{}),onClick:te,sx:{textTransform:"none"},children:u("newsletter.editDesign")}),A.jsx(ze,{variant:"outlined",color:"primary",startIcon:A.jsx(iE,{}),onClick:Q,sx:{textTransform:"none"},children:u("newsletter.startOver")})]})});if(S)return A.jsx(K,{sx:{height:"100%",minHeight:0,overflow:"auto"},children:A.jsx(zO,{language:o})});const re=W!==1||!x?"":kh(x)?u("newsletter.tellUs"):z?u(`newsletter.types.${z.id}`):"";if(W===0)return A.jsxs(Lh,{header:A.jsxs(ut,{spacing:1,children:[p?A.jsx(ze,{variant:"text",color:"primary",onClick:p,sx:{alignSelf:"flex-start",textTransform:"none",minWidth:"auto",px:.5,ml:-.5,mt:1},children:u("newsletter.back")}):A.jsxs(A.Fragment,{children:[A.jsx("br",{}),A.jsx("br",{})]}),A.jsx(fe,{component:"h1",variant:"h6",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35,color:"text.primary"},children:u("newsletter.whatType")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem",lineHeight:1.55,maxWidth:"52ch"},children:u("newsletter.typeSectionHint")})]}),children:[A.jsxs(ut,{spacing:1.25,children:[sE.map(_=>{const H=TO[_.id]??Ih;return A.jsx(eg,{elevation:0,variant:"outlined",sx:{borderRadius:2,borderColor:"divider",bgcolor:"background.paper",transition:"border-color 0.2s ease, box-shadow 0.2s ease","&:hover":{borderColor:"primary.main",boxShadow:de=>`0 2px 12px ${un(de.palette.primary.main,.12)}`},..._.comingSoon?{opacity:.5,cursor:"not-allowed"}:{}},children:A.jsx(eI,{onClick:()=>_.comingSoon?null:P(_.id),sx:{borderRadius:0,"&:focus-visible":{outlineOffset:-2}},children:A.jsx(ng,{sx:{py:1.75,px:2,"&:last-child":{pb:1.75}},children:A.jsxs(ut,{direction:"row",spacing:1.75,alignItems:"center",children:[A.jsx(K,{sx:{width:44,height:44,borderRadius:1.5,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:de=>un(de.palette.primary.main,.08),border:de=>`1px solid ${un(de.palette.primary.main,.16)}`},children:A.jsx(H,{sx:{fontSize:24,..._o}})}),A.jsx(fe,{variant:"subtitle1",sx:{fontWeight:600,fontSize:"0.9375rem",lineHeight:1.4,letterSpacing:"-0.01em",color:"text.primary"},children:u(`newsletter.types.${_.id}`)}),_.comingSoon?A.jsx(vn,{label:u("newsletter.comingSoon"),size:"small",color:"primary",variant:"outlined"}):null]})})})},_.id)}),s?A.jsx(eg,{elevation:0,variant:"outlined",sx:{borderRadius:2,borderColor:"divider",bgcolor:"background.paper",opacity:.5,cursor:"not-allowed"},children:A.jsx(eI,{onClick:void 0,disabled:!0,sx:{borderRadius:0,"&:focus-visible":{outlineOffset:-2}},children:A.jsx(ng,{sx:{py:1.75,px:2,"&:last-child":{pb:1.75}},children:A.jsxs(ut,{direction:"row",spacing:1.75,alignItems:"center",children:[A.jsx(K,{sx:{width:44,height:44,borderRadius:1.5,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:_=>un(_.palette.primary.main,.08),border:_=>`1px solid ${un(_.palette.primary.main,.16)}`},children:A.jsx(lE,{sx:{fontSize:24,..._o}})}),A.jsx(fe,{variant:"subtitle1",sx:{fontWeight:600,fontSize:"0.9375rem",lineHeight:1.4,letterSpacing:"-0.01em",color:"text.primary"},children:u("seriesPrompt.hub.title")}),A.jsx(vn,{label:u("newsletter.comingSoon"),size:"small",color:"primary",variant:"outlined"})]})})})}):null]}),R?A.jsx(fe,{color:"error",variant:"body2",sx:{mt:2},children:R}):null]});const ue=kh(x)?A.jsx(ut,{direction:"row",spacing:1.5,justifyContent:"flex-end",flexWrap:"wrap",children:A.jsx(ze,{variant:"contained",color:"primary",onClick:q,disabled:!y.trim()||S,sx:{textTransform:"none"},children:S?A.jsx(va,{size:22,color:"inherit"}):u("common.send")})}):A.jsx(ut,{direction:"row",spacing:1.5,justifyContent:"flex-end",flexWrap:"wrap",children:A.jsx(ze,{variant:"contained",color:"primary",onClick:G,disabled:S,sx:{textTransform:"none"},children:S?A.jsx(va,{size:22,color:"inherit"}):u("common.continue")})});return A.jsxs(Lh,{header:A.jsxs(ut,{spacing:1.25,children:[A.jsx(ze,{variant:"text",color:"primary",onClick:N,sx:{alignSelf:"flex-start",textTransform:"none",minWidth:"auto",px:.5,ml:-.5,mt:-.5},children:u("newsletter.back")}),A.jsx(fe,{variant:"h6",component:"h1",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35},children:re}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem",lineHeight:1.55},children:u("newsletter.questionsSectionHint")})]}),footer:ue,children:[kh(x)?A.jsx(at,{multiline:!0,minRows:4,placeholder:u("newsletter.writeHere"),value:y,onChange:_=>E(_.target.value),fullWidth:!0,variant:"outlined",size:"small"}):A.jsx(ut,{spacing:2,children:T.map(_=>A.jsx(K,{children:_.inputType==="multiline"?A.jsxs(A.Fragment,{children:[A.jsx(fe,{variant:"caption",sx:{mb:.75,display:"block",fontWeight:600,color:"text.secondary",letterSpacing:"0.02em"},children:u("newsletter.topicLabel")}),A.jsx(at,{multiline:!0,minRows:3,placeholder:u("newsletter.writeHere"),value:g[_.id]??"",onChange:H=>L(_.id,H.target.value),fullWidth:!0,variant:"outlined",size:"small"})]}):A.jsx(at,{label:u(x==="webinar"&&_.id==="topic"?"newsletter.questions.topicShort":`newsletter.questions.${_.id}`),type:_.inputType==="date"?"date":_.inputType==="time"?"time":"text",value:g[_.id]??"",onChange:H=>L(_.id,H.target.value),fullWidth:!0,variant:"outlined",size:"small",InputLabelProps:_.inputType==="date"||_.inputType==="time"?{shrink:!0}:void 0})},_.id))}),R?A.jsx(fe,{color:"error",variant:"body2",sx:{mt:2},children:R}):null]})}function KO({setActiveStep:e,placeholderSuggestions:t=[],language:n,data:a={},logo:r="",mergeTags:l=[],visibilityRules:o,location:i,onDesignChange:s}){const{t:p}=Nn(),u=v.useRef(s);u.current=s;const{step2Data:c}=bg(),{step3Draft:d,setStep3Draft:f}=rx(),W=c||a,m=(W==null?void 0:W.businessData)||W,x=(W==null?void 0:W.websiteUrl)||(m==null?void 0:m.website)||"",h=Xc({...m,websiteUrl:x})??void 0,g=(c==null?void 0:c.logo)||(W&&typeof W=="object"&&"logo"in W?W.logo:r),C=(c==null?void 0:c.logoBackgroundHex)??(W==null?void 0:W.logoBackgroundHex),y=v.useRef(null),E=v.useRef(!1),S=v.useRef(null),k=v.useRef(!1),[R,V]=v.useState(0),[b,B]=v.useState(0),[M,F]=v.useState([]),[z,T]=v.useState(null);v.useEffect(()=>{var q;if(k.current)return;const L=d;(q=L==null?void 0:L.components)!=null&&q.length&&(k.current=!0,F(Array.isArray(L.components)?L.components:[]),T(L.surveyResult??null))},[d]);const j=L=>{const q=(L==null?void 0:L.components)??(L==null?void 0:L.nodes);if(q){const w=Array.isArray(q)?q:[];F(w);const G={...L,components:w};T(G),f({components:w,surveyResult:G})}else F([]),T(null),f(null),B(w=>w+1)};v.useEffect(()=>{},[]),v.useEffect(()=>{var G;if(M.length===0||!y.current)return;const L=y.current.querySelector("iframe");L&&L.remove(),(G=S.current)!=null&&G.parentNode&&S.current.parentNode.removeChild(S.current),S.current=null,E.current=!1,E.current=!0;const q=document.createElement("iframe");q.width="100%",q.height="100%",q.style.border="none",S.current=q,y.current.appendChild(q);let w=!1;return q.onload=()=>{if(w)return;w=!0;const te=q.contentDocument,Q=q.contentWindow;if(!te||!Q||te.querySelector('script[src*="creaditor.bundle.js"]'))return;te.open(),te.write(`
526
526
  <!DOCTYPE html>
527
527
  <html>
528
528
  <head>
@@ -531,7 +531,7 @@ data: `)[1];throw console.error("[v3-sse] error event:",W),new Error(JSON.parse(
531
531
  <body style="margin: 0; padding: 0; overflow: hidden;">
532
532
  </body>
533
533
  </html>
534
- `),te.close();const N=te.createElement("script");N.src="https://unpkg.com/@creaditor/newsletter-starterkit@1.0.46/dist/creaditor.bundle.js",N.defer=!0,N.onload=()=>{setTimeout(()=>{const re=Q;if(re.cdtrStarter){let ue=M.length>0?M:[];ue=JSON.parse(JSON.stringify(ue));try{new re.cdtrStarter({components:ue,mode:"ai-edit",onSave:({toJson:X})=>{var de;const ee=X();(de=u.current)==null||de.call(u,ee),f(ae=>ae?{...ae,components:ee}:{components:ee,surveyResult:null})}})}catch(X){console.error("cdtrStarter init error:",X)}}},0)},N.onerror=()=>{E.current=!1},te.head.appendChild(N)},q.src="about:blank",()=>{E.current=!1,q.parentNode&&q.parentNode.removeChild(q),S.current=null}},[R,M]),v.useEffect(()=>{var L,q;M.length===0&&((L=S.current)!=null&&L.parentNode&&(S.current.parentNode.removeChild(S.current),S.current=null,E.current=!1),y.current&&((q=y.current.querySelector("iframe"))==null||q.remove(),E.current=!1))},[M]),v.useEffect(()=>{var L,q,w;M.length!==0&&(E.current=!1,(L=S.current)!=null&&L.parentNode&&(S.current.parentNode.removeChild(S.current),S.current=null),(w=(q=y.current)==null?void 0:q.querySelector("iframe"))==null||w.remove(),V(H=>H+1))},[M]);const P=M.length===0;return A.jsxs(K,{sx:{width:"100%",height:"100%",minHeight:0,display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"stretch",overflow:"hidden",bgcolor:"background.default"},children:[A.jsx(K,{component:"aside",sx:{width:{xs:"100%",md:320},maxWidth:{xs:"100%",md:360},flexShrink:0,height:{xs:"auto",md:"100%"},maxHeight:{xs:400,md:"none"},minHeight:0,display:"flex",flexDirection:"column",overflow:"hidden",bgcolor:"background.paper",borderBottom:{xs:"1px solid",md:"none"},borderInlineEnd:{md:"1px solid"},borderColor:"divider"},children:A.jsx(OO,{domain:x,mergeTags:l,visibilityRules:o,location:i,onResult:j,result:z,language:n,logo:g,logoBackgroundHex:C,context:h,onSeriesClick:()=>e(-4),onBack:()=>e(-1)})}),A.jsx(K,{component:"main",sx:{flex:"1 1 0%",minWidth:0,minHeight:{xs:320,md:0},display:"flex",flexDirection:"column",bgcolor:"grey.100"},children:A.jsxs(K,{sx:{flex:1,minHeight:0,position:"relative",bgcolor:"grey.100"},children:[A.jsx(K,{ref:y,sx:{position:"absolute",inset:0,zIndex:0}},b),P?A.jsxs(K,{sx:{position:"absolute",inset:0,zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2.5,px:4,bgcolor:L=>L.palette.mode==="light"?"rgba(255,255,255,0.72)":"action.hover",backdropFilter:"blur(6px)"},children:[A.jsx(K,{sx:{width:64,height:64,borderRadius:2,bgcolor:"background.paper",border:"1px solid",borderColor:"divider",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 3px rgba(0,0,0,0.06)"},children:A.jsx(fe,{component:"span",sx:{fontSize:"1.75rem",lineHeight:1,opacity:.5},children:"✉️"})}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{textAlign:"center",maxWidth:"min(32ch, 100%)",lineHeight:1.6},children:p("newsletter.previewPlaceholder")})]}):null]})})]})}var Mh={},PO=Fe;Object.defineProperty(Mh,"__esModule",{value:!0});var WE=Mh.default=void 0,JO=PO(Oe()),DO=A;WE=Mh.default=(0,JO.default)((0,DO.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var Qh={},YO=Fe;Object.defineProperty(Qh,"__esModule",{value:!0});var Vh=Qh.default=void 0,ZO=YO(Oe()),NO=A;Vh=Qh.default=(0,ZO.default)((0,NO.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var Uh={},GO=Fe;Object.defineProperty(Uh,"__esModule",{value:!0});var aA=Uh.default=void 0,HO=GO(Oe()),XO=A;aA=Uh.default=(0,HO.default)((0,XO.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome");const gE="_smsChatContainer_2gl5q_1",hE="_welcomeScreen_2gl5q_15",mE="_aiAvatar_2gl5q_38",CE="_welcomeTitle_2gl5q_46",vE="_messagesContainer_2gl5q_55",yE="_messageWrapper_2gl5q_91",SE="_fadeIn_2gl5q_1",IE="_userMessage_2gl5q_109",xE="_aiMessage_2gl5q_113",EE="_messageBubble_2gl5q_117",bE="_userBubble_2gl5q_130",kE="_aiBubble_2gl5q_135",wE="_messageText_2gl5q_141",RE="_messageAvatar_2gl5q_148",BE="_loadingSpinner_2gl5q_156",LE="_quickQuestionsContainer_2gl5q_160",ME="_quickQuestionChip_2gl5q_168",QE="_bouncingDots_2gl5q_173",VE="_bounce_2gl5q_1",UE="_inputContainer_2gl5q_199",FE="_inputField_2gl5q_226",zE="_sendButton_2gl5q_232",rA=Object.freeze(Object.defineProperty({__proto__:null,aiAvatar:mE,aiBubble:kE,aiMessage:xE,bounce:VE,bouncingDots:QE,default:{smsChatContainer:gE,welcomeScreen:hE,aiAvatar:mE,welcomeTitle:CE,messagesContainer:vE,messageWrapper:yE,fadeIn:SE,userMessage:IE,aiMessage:xE,messageBubble:EE,userBubble:bE,aiBubble:kE,messageText:wE,messageAvatar:RE,loadingSpinner:BE,quickQuestionsContainer:LE,quickQuestionChip:ME,bouncingDots:QE,bounce:VE,inputContainer:UE,inputField:FE,sendButton:zE},fadeIn:SE,inputContainer:UE,inputField:FE,loadingSpinner:BE,messageAvatar:RE,messageBubble:EE,messageText:wE,messageWrapper:yE,messagesContainer:vE,quickQuestionChip:ME,quickQuestionsContainer:LE,sendButton:zE,smsChatContainer:gE,userBubble:bE,userMessage:IE,welcomeScreen:hE,welcomeTitle:CE},Symbol.toStringTag,{value:"Module"})),qE=`.smsChatContainer {
534
+ `),te.close();const N=te.createElement("script");N.src="https://unpkg.com/@creaditor/newsletter-starterkit@1.0.46/dist/creaditor.bundle.js",N.defer=!0,N.onload=()=>{setTimeout(()=>{const re=Q;if(re.cdtrStarter){let ue=M.length>0?M:[];ue=JSON.parse(JSON.stringify(ue));try{new re.cdtrStarter({components:ue,mode:"ai-edit",onSave:({toJson:_})=>{var de;const H=_();(de=u.current)==null||de.call(u,H),f(ae=>ae?{...ae,components:H}:{components:H,surveyResult:null})}})}catch(_){console.error("cdtrStarter init error:",_)}}},0)},N.onerror=()=>{E.current=!1},te.head.appendChild(N)},q.src="about:blank",()=>{E.current=!1,q.parentNode&&q.parentNode.removeChild(q),S.current=null}},[R,M]),v.useEffect(()=>{var L,q;M.length===0&&((L=S.current)!=null&&L.parentNode&&(S.current.parentNode.removeChild(S.current),S.current=null,E.current=!1),y.current&&((q=y.current.querySelector("iframe"))==null||q.remove(),E.current=!1))},[M]),v.useEffect(()=>{var L,q,w;M.length!==0&&(E.current=!1,(L=S.current)!=null&&L.parentNode&&(S.current.parentNode.removeChild(S.current),S.current=null),(w=(q=y.current)==null?void 0:q.querySelector("iframe"))==null||w.remove(),V(G=>G+1))},[M]);const P=M.length===0;return A.jsxs(K,{sx:{width:"100%",height:"100%",minHeight:0,display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"stretch",overflow:"hidden",bgcolor:"background.default"},children:[A.jsx(K,{component:"aside",sx:{width:{xs:"100%",md:320},maxWidth:{xs:"100%",md:360},flexShrink:0,height:{xs:"auto",md:"100%"},maxHeight:{xs:400,md:"none"},minHeight:0,display:"flex",flexDirection:"column",overflow:"hidden",bgcolor:"background.paper",borderBottom:{xs:"1px solid",md:"none"},borderInlineEnd:{md:"1px solid"},borderColor:"divider"},children:A.jsx(OO,{domain:x,mergeTags:l,visibilityRules:o,location:i,onResult:j,result:z,language:n,logo:g,logoBackgroundHex:C,context:h,onSeriesClick:()=>e(-4),onBack:()=>e(-1)})}),A.jsx(K,{component:"main",sx:{flex:"1 1 0%",minWidth:0,minHeight:{xs:320,md:0},display:"flex",flexDirection:"column",bgcolor:"grey.100"},children:A.jsxs(K,{sx:{flex:1,minHeight:0,position:"relative",bgcolor:"grey.100"},children:[A.jsx(K,{ref:y,sx:{position:"absolute",inset:0,zIndex:0}},b),P?A.jsxs(K,{sx:{position:"absolute",inset:0,zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2.5,px:4,bgcolor:L=>L.palette.mode==="light"?"rgba(255,255,255,0.72)":"action.hover",backdropFilter:"blur(6px)"},children:[A.jsx(K,{sx:{width:64,height:64,borderRadius:2,bgcolor:"background.paper",border:"1px solid",borderColor:"divider",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 1px 3px rgba(0,0,0,0.06)"},children:A.jsx(fe,{component:"span",sx:{fontSize:"1.75rem",lineHeight:1,opacity:.5},children:"✉️"})}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{textAlign:"center",maxWidth:"min(32ch, 100%)",lineHeight:1.6},children:p("newsletter.previewPlaceholder")})]}):null]})})]})}var Mh={},PO=Fe;Object.defineProperty(Mh,"__esModule",{value:!0});var WE=Mh.default=void 0,JO=PO(Oe()),DO=A;WE=Mh.default=(0,JO.default)((0,DO.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var Qh={},YO=Fe;Object.defineProperty(Qh,"__esModule",{value:!0});var Vh=Qh.default=void 0,ZO=YO(Oe()),NO=A;Vh=Qh.default=(0,ZO.default)((0,NO.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var Uh={},GO=Fe;Object.defineProperty(Uh,"__esModule",{value:!0});var aA=Uh.default=void 0,HO=GO(Oe()),XO=A;aA=Uh.default=(0,HO.default)((0,XO.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome");const gE="_smsChatContainer_2gl5q_1",hE="_welcomeScreen_2gl5q_15",mE="_aiAvatar_2gl5q_38",CE="_welcomeTitle_2gl5q_46",vE="_messagesContainer_2gl5q_55",yE="_messageWrapper_2gl5q_91",SE="_fadeIn_2gl5q_1",IE="_userMessage_2gl5q_109",xE="_aiMessage_2gl5q_113",EE="_messageBubble_2gl5q_117",bE="_userBubble_2gl5q_130",kE="_aiBubble_2gl5q_135",wE="_messageText_2gl5q_141",RE="_messageAvatar_2gl5q_148",BE="_loadingSpinner_2gl5q_156",LE="_quickQuestionsContainer_2gl5q_160",ME="_quickQuestionChip_2gl5q_168",QE="_bouncingDots_2gl5q_173",VE="_bounce_2gl5q_1",UE="_inputContainer_2gl5q_199",FE="_inputField_2gl5q_226",zE="_sendButton_2gl5q_232",rA=Object.freeze(Object.defineProperty({__proto__:null,aiAvatar:mE,aiBubble:kE,aiMessage:xE,bounce:VE,bouncingDots:QE,default:{smsChatContainer:gE,welcomeScreen:hE,aiAvatar:mE,welcomeTitle:CE,messagesContainer:vE,messageWrapper:yE,fadeIn:SE,userMessage:IE,aiMessage:xE,messageBubble:EE,userBubble:bE,aiBubble:kE,messageText:wE,messageAvatar:RE,loadingSpinner:BE,quickQuestionsContainer:LE,quickQuestionChip:ME,bouncingDots:QE,bounce:VE,inputContainer:UE,inputField:FE,sendButton:zE},fadeIn:SE,inputContainer:UE,inputField:FE,loadingSpinner:BE,messageAvatar:RE,messageBubble:EE,messageText:wE,messageWrapper:yE,messagesContainer:vE,quickQuestionChip:ME,quickQuestionsContainer:LE,sendButton:zE,smsChatContainer:gE,userBubble:bE,userMessage:IE,welcomeScreen:hE,welcomeTitle:CE},Symbol.toStringTag,{value:"Module"})),qE=`.smsChatContainer {
535
535
  display: flex;
536
536
  flex-direction: column;
537
537
  width: 100%;
@@ -789,9 +789,9 @@ data: `)[1];throw console.error("[v3-sse] error event:",W),new Error(JSON.parse(
789
789
  direction: rtl;
790
790
  }
791
791
  `;function hG(){}function mG(){}function _O(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $O=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eK=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tK={};function jE(e,t){return(tK.jsx?eK:$O).test(e)}const nK=/[ \t\n\f\r]/g;function aK(e){return typeof e=="object"?e.type==="text"?TE(e.value):!1:TE(e)}function TE(e){return e.replace(nK,"")===""}class Ks{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}}Ks.prototype.normal={},Ks.prototype.property={},Ks.prototype.space=void 0;function OE(e,t){const n={},a={};for(const r of e)Object.assign(n,r.property),Object.assign(a,r.normal);return new Ks(n,a,t)}function Fh(e){return e.toLowerCase()}class Vn{constructor(t,n){this.attribute=n,this.property=t}}Vn.prototype.attribute="",Vn.prototype.booleanish=!1,Vn.prototype.boolean=!1,Vn.prototype.commaOrSpaceSeparated=!1,Vn.prototype.commaSeparated=!1,Vn.prototype.defined=!1,Vn.prototype.mustUseProperty=!1,Vn.prototype.number=!1,Vn.prototype.overloadedBoolean=!1,Vn.prototype.property="",Vn.prototype.spaceSeparated=!1,Vn.prototype.space=void 0;let rK=0;const De=jl(),Jt=jl(),zh=jl(),ie=jl(),vt=jl(),ei=jl(),na=jl();function jl(){return 2**++rK}const qh=Object.freeze(Object.defineProperty({__proto__:null,boolean:De,booleanish:Jt,commaOrSpaceSeparated:na,commaSeparated:ei,number:ie,overloadedBoolean:zh,spaceSeparated:vt},Symbol.toStringTag,{value:"Module"})),jh=Object.keys(qh);class Th extends Vn{constructor(t,n,a,r){let l=-1;if(super(t,n),KE(this,"space",r),typeof a=="number")for(;++l<jh.length;){const o=jh[l];KE(this,jh[l],(a&qh[o])===qh[o])}}}Th.prototype.defined=!0;function KE(e,t,n){n&&(e[t]=n)}function ti(e){const t={},n={};for(const[a,r]of Object.entries(e.properties)){const l=new Th(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(l.mustUseProperty=!0),t[a]=l,n[Fh(a)]=a,n[Fh(l.attribute)]=a}return new Ks(t,n,e.space)}const PE=ti({properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:vt,ariaCurrent:null,ariaDescribedBy:vt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:vt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:vt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vt,ariaLevel:ie,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:vt,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:vt,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:Jt,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function JE(e,t){return t in e?e[t]:t}function DE(e,t){return JE(e,t.toLowerCase())}const lK=ti({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ei,acceptCharset:vt,accessKey:vt,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:vt,autoFocus:De,autoPlay:De,blocking:vt,capture:null,charSet:null,checked:De,cite:null,className:vt,cols:ie,colSpan:null,content:null,contentEditable:Jt,controls:De,controlsList:vt,coords:ie|ei,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:zh,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:vt,height:ie,hidden:zh,high:ie,href:null,hrefLang:null,htmlFor:vt,httpEquiv:vt,id:null,imageSizes:null,imageSrcSet:null,inert:De,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:vt,itemRef:vt,itemScope:De,itemType:vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:De,optimum:ie,pattern:null,ping:vt,placeholder:null,playsInline:De,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:vt,required:De,reversed:De,rows:ie,rowSpan:ie,sandbox:vt,scope:null,scoped:De,seamless:De,selected:De,shadowRootClonable:De,shadowRootDelegatesFocus:De,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:Jt,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vt,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:DE}),oK=ti({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:na,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:vt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:De,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ei,g2:ei,glyphName:ei,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:na,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:na,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:na,rev:na,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:na,requiredFeatures:na,requiredFonts:na,requiredFormats:na,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:na,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:na,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:na,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:JE}),YE=ti({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ZE=ti({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:DE}),NE=ti({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iK={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},sK=/[A-Z]/g,GE=/-[a-z]/g,pK=/^data[-\w.:]+$/i;function uK(e,t){const n=Fh(t);let a=t,r=Vn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pK.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(GE,AK);a="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!GE.test(l)){let o=l.replace(sK,cK);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}r=Th}return new r(a,t)}function cK(e){return"-"+e.toLowerCase()}function AK(e){return e.charAt(1).toUpperCase()}const dK=OE([PE,lK,YE,ZE,NE],"html"),Oh=OE([PE,oK,YE,ZE,NE],"svg");function fK(e){return e.join(" ").trim()}var Kh={},HE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,WK=/\n/g,gK=/^\s*/,hK=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,mK=/^:\s*/,CK=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,vK=/^[;\s]*/,yK=/^\s+|\s+$/g,SK=`
792
- `,XE="/",_E="*",Tl="",IK="comment",xK="declaration";function EK(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,a=1;function r(W){var m=W.match(WK);m&&(n+=m.length);var x=W.lastIndexOf(SK);a=~x?W.length-x:a+W.length}function l(){var W={line:n,column:a};return function(m){return m.position=new o(W),p(),m}}function o(W){this.start=W,this.end={line:n,column:a},this.source=t.source}o.prototype.content=e;function i(W){var m=new Error(t.source+":"+n+":"+a+": "+W);if(m.reason=W,m.filename=t.source,m.line=n,m.column=a,m.source=e,!t.silent)throw m}function s(W){var m=W.exec(e);if(m){var x=m[0];return r(x),e=e.slice(x.length),m}}function p(){s(gK)}function u(W){var m;for(W=W||[];m=c();)m!==!1&&W.push(m);return W}function c(){var W=l();if(!(XE!=e.charAt(0)||_E!=e.charAt(1))){for(var m=2;Tl!=e.charAt(m)&&(_E!=e.charAt(m)||XE!=e.charAt(m+1));)++m;if(m+=2,Tl===e.charAt(m-1))return i("End of comment missing");var x=e.slice(2,m-2);return a+=2,r(x),e=e.slice(m),a+=2,W({type:IK,comment:x})}}function d(){var W=l(),m=s(hK);if(m){if(c(),!s(mK))return i("property missing ':'");var x=s(CK),h=W({type:xK,property:$E(m[0].replace(HE,Tl)),value:x?$E(x[0].replace(HE,Tl)):Tl});return s(vK),h}}function f(){var W=[];u(W);for(var m;m=d();)m!==!1&&(W.push(m),u(W));return W}return p(),f()}function $E(e){return e?e.replace(yK,Tl):Tl}var bK=EK,kK=or&&or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.default=RK;const wK=kK(bK);function RK(e,t){let n=null;if(!e||typeof e!="string")return n;const a=(0,wK.default)(e),r=typeof t=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:i}=l;r?t(o,i,l):i&&(n=n||{},n[o]=i)}),n}var lA={};Object.defineProperty(lA,"__esModule",{value:!0}),lA.camelCase=void 0;var BK=/^--[a-zA-Z0-9_-]+$/,LK=/-([a-z])/g,MK=/^[^-]+$/,QK=/^-(webkit|moz|ms|o|khtml)-/,VK=/^-(ms)-/,UK=function(e){return!e||MK.test(e)||BK.test(e)},FK=function(e,t){return t.toUpperCase()},eb=function(e,t){return"".concat(t,"-")},zK=function(e,t){return t===void 0&&(t={}),UK(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(VK,eb):e=e.replace(QK,eb),e.replace(LK,FK))};lA.camelCase=zK;var qK=or&&or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},jK=qK(Kh),TK=lA;function Ph(e,t){var n={};return!e||typeof e!="string"||(0,jK.default)(e,function(a,r){a&&r&&(n[(0,TK.camelCase)(a,t)]=r)}),n}Ph.default=Ph;var OK=Ph;const KK=Dl(OK),tb=nb("end"),Jh=nb("start");function nb(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function PK(e){const t=Jh(e),n=tb(e);if(t&&n)return{start:t,end:n}}function Ps(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ab(e.position):"start"in e||"end"in e?ab(e):"line"in e||"column"in e?Dh(e):""}function Dh(e){return rb(e&&e.line)+":"+rb(e&&e.column)}function ab(e){return Dh(e&&e.start)+"-"+Dh(e&&e.end)}function rb(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let r="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?r=t:!l.cause&&t&&(o=!0,r=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof a=="string"){const s=a.indexOf(":");s===-1?l.ruleId=a:(l.source=a.slice(0,s),l.ruleId=a.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const i=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=Ps(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}An.prototype.file="",An.prototype.name="",An.prototype.reason="",An.prototype.message="",An.prototype.stack="",An.prototype.column=void 0,An.prototype.line=void 0,An.prototype.ancestors=void 0,An.prototype.cause=void 0,An.prototype.fatal=void 0,An.prototype.place=void 0,An.prototype.ruleId=void 0,An.prototype.source=void 0;const Yh={}.hasOwnProperty,JK=new Map,DK=/[A-Z]/g,YK=new Set(["table","tbody","thead","tfoot","tr"]),ZK=new Set(["td","th"]),lb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NK(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=nP(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=tP(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Oh:dK,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=ob(r,e,void 0);return l&&typeof l!="string"?l:r.create(e,r.Fragment,{children:l||void 0},void 0)}function ob(e,t,n){if(t.type==="element")return GK(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return HK(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return _K(e,t,n);if(t.type==="mdxjsEsm")return XK(e,t);if(t.type==="root")return $K(e,t,n);if(t.type==="text")return eP(e,t)}function GK(e,t,n){const a=e.schema;let r=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(r=Oh,e.schema=r),e.ancestors.push(t);const l=sb(e,t.tagName,!1),o=aP(e,t);let i=Nh(e,t);return YK.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!aK(s):!0})),ib(e,o,l,t),Zh(o,i),e.ancestors.pop(),e.schema=a,e.create(t,l,o,n)}function HK(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Js(e,t.position)}function XK(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Js(e,t.position)}function _K(e,t,n){const a=e.schema;let r=a;t.name==="svg"&&a.space==="html"&&(r=Oh,e.schema=r),e.ancestors.push(t);const l=t.name===null?e.Fragment:sb(e,t.name,!0),o=rP(e,t),i=Nh(e,t);return ib(e,o,l,t),Zh(o,i),e.ancestors.pop(),e.schema=a,e.create(t,l,o,n)}function $K(e,t,n){const a={};return Zh(a,Nh(e,t)),e.create(t,e.Fragment,a,n)}function eP(e,t){return t.value}function ib(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function Zh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function tP(e,t,n){return a;function a(r,l,o,i){const p=Array.isArray(o.children)?n:t;return i?p(l,o,i):p(l,o)}}function nP(e,t){return n;function n(a,r,l,o){const i=Array.isArray(l.children),s=Jh(a);return t(r,l,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function aP(e,t){const n={};let a,r;for(r in t.properties)if(r!=="children"&&Yh.call(t.properties,r)){const l=lP(e,r,t.properties[r]);if(l){const[o,i]=l;e.tableCellAlignToStyle&&o==="align"&&typeof i=="string"&&ZK.has(t.tagName)?a=i:n[o]=i}}if(a){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function rP(e,t){const n={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];l.type;const o=l.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Js(e,t.position);else{const r=a.name;let l;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const i=a.value.data.estree.body[0];i.type,l=e.evaluater.evaluateExpression(i.expression)}else Js(e,t.position);else l=a.value===null?!0:a.value;n[r]=l}return n}function Nh(e,t){const n=[];let a=-1;const r=e.passKeys?new Map:JK;for(;++a<t.children.length;){const l=t.children[a];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const p=r.get(s)||0;o=s+"-"+p,r.set(s,p+1)}}const i=ob(e,l,o);i!==void 0&&n.push(i)}return n}function lP(e,t,n){const a=uK(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?_O(n):fK(n)),a.property==="style"){let r=typeof n=="object"?n:oP(e,String(n));return e.stylePropertyNameCase==="css"&&(r=iP(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&a.space?iK[a.property]||a.property:a.attribute,n]}}function oP(e,t){try{return KK(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const a=n,r=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=lb+"#cannot-parse-style-attribute",r}}function sb(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let l=-1,o;for(;++l<r.length;){const i=jE(r[l])?{type:"Identifier",name:r[l]}:{type:"Literal",value:r[l]};o=o?{type:"MemberExpression",object:o,property:i,computed:!!(l&&i.type==="Literal"),optional:!1}:i}a=o}else a=jE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const r=a.value;return Yh.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(a);Js(e)}function Js(e,t){const n=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=lb+"#cannot-handle-mdx-estrees-without-createevaluater",n}function iP(e){const t={};let n;for(n in e)Yh.call(e,n)&&(t[sP(n)]=e[n]);return t}function sP(e){let t=e.replace(DK,pP);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pP(e){return"-"+e.toLowerCase()}const Gh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},uP={};function Hh(e,t){const n=uP,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return pb(e,a,r)}function pb(e,t,n){if(cP(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ub(e.children,t,n)}return Array.isArray(e)?ub(e,t,n):""}function ub(e,t,n){const a=[];let r=-1;for(;++r<e.length;)a[r]=pb(e[r],t,n);return a.join("")}function cP(e){return!!(e&&typeof e=="object")}const cb=document.createElement("i");function Xh(e){const t="&"+e+";";cb.innerHTML=t;const n=cb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function aa(e,t,n,a){const r=e.length;let l=0,o;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,a.length<1e4)o=Array.from(a),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<a.length;)o=a.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function xa(e,t){return e.length>0?(aa(e,e.length,0,t),e):t}const Ab={}.hasOwnProperty;function db(e){const t={};let n=-1;for(;++n<e.length;)AP(t,e[n]);return t}function AP(e,t){let n;for(n in t){const r=(Ab.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Ab.call(r,o)||(r[o]=[]);const i=l[o];dP(r[o],Array.isArray(i)?i:i?[i]:[])}}}function dP(e,t){let n=-1;const a=[];for(;++n<t.length;)(t[n].add==="after"?e:a).push(t[n]);aa(e,0,0,a)}function fb(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ja(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yn=al(/[A-Za-z]/),dn=al(/[\dA-Za-z]/),fP=al(/[#-'*+\--9=?A-Z^-~]/);function oA(e){return e!==null&&(e<32||e===127)}const _h=al(/\d/),WP=al(/[\dA-Fa-f]/),gP=al(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function gt(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const iA=al(new RegExp("\\p{P}|\\p{S}","u")),Ol=al(/\s/);function al(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ni(e){const t=[];let n=-1,a=0,r=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&dn(e.charCodeAt(n+1))&&dn(e.charCodeAt(n+2)))r=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const i=e.charCodeAt(n+1);l<56320&&i>56319&&i<57344?(o=String.fromCharCode(l,i),r=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(a,n),encodeURIComponent(o)),a=n+r+1,o=""),r&&(n+=r,r=0)}return t.join("")+e.slice(a)}function et(e,t,n,a){const r=a?a-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return He(s)?(e.enter(n),i(s)):t(s)}function i(s){return He(s)&&l++<r?(e.consume(s),i):(e.exit(n),t(s))}}const hP={tokenize:mP};function mP(e){const t=e.attempt(this.parser.constructs.contentInitial,a,r);let n;return t;function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),et(e,t,"linePrefix")}function r(i){return e.enter("paragraph"),l(i)}function l(i){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(i)}function o(i){if(i===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(i);return}return Me(i)?(e.consume(i),e.exit("chunkText"),l):(e.consume(i),o)}}const CP={tokenize:vP},Wb={tokenize:yP};function vP(e){const t=this,n=[];let a=0,r,l,o;return i;function i(C){if(a<n.length){const y=n[a];return t.containerState=y[1],e.attempt(y[0].continuation,s,p)(C)}return p(C)}function s(C){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&g();const y=t.events.length;let E=y,S;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){S=t.events[E][1].end;break}h(a);let k=y;for(;k<t.events.length;)t.events[k][1].end={...S},k++;return aa(t.events,E+1,0,t.events.slice(y)),t.events.length=k,p(C)}return i(C)}function p(C){if(a===n.length){if(!r)return d(C);if(r.currentConstruct&&r.currentConstruct.concrete)return W(C);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wb,u,c)(C)}function u(C){return r&&g(),h(a),d(C)}function c(C){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,W(C)}function d(C){return t.containerState={},e.attempt(Wb,f,W)(C)}function f(C){return a++,n.push([t.currentConstruct,t.containerState]),d(C)}function W(C){if(C===null){r&&g(),h(0),e.consume(C);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:l}),m(C)}function m(C){if(C===null){x(e.exit("chunkFlow"),!0),h(0),e.consume(C);return}return Me(C)?(e.consume(C),x(e.exit("chunkFlow")),a=0,t.interrupt=void 0,i):(e.consume(C),m)}function x(C,y){const E=t.sliceStream(C);if(y&&E.push(null),C.previous=l,l&&(l.next=C),l=C,r.defineSkip(C.start),r.write(E),t.parser.lazy[C.start.line]){let S=r.events.length;for(;S--;)if(r.events[S][1].start.offset<o&&(!r.events[S][1].end||r.events[S][1].end.offset>o))return;const k=t.events.length;let R=k,V,b;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(V){b=t.events[R][1].end;break}V=!0}for(h(a),S=k;S<t.events.length;)t.events[S][1].end={...b},S++;aa(t.events,R+1,0,t.events.slice(k)),t.events.length=S}}function h(C){let y=n.length;for(;y-- >C;){const E=n[y];t.containerState=E[1],E[0].exit.call(t,e)}n.length=C}function g(){r.write([null]),l=void 0,r=void 0,t.containerState._closeFlow=void 0}}function yP(e,t,n){return et(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ai(e){if(e===null||gt(e)||Ol(e))return 1;if(iA(e))return 2}function sA(e,t,n){const a=[];let r=-1;for(;++r<e.length;){const l=e[r].resolveAll;l&&!a.includes(l)&&(t=l(t,n),a.push(l))}return t}const $h={name:"attention",resolveAll:SP,tokenize:IP};function SP(e,t){let n=-1,a,r,l,o,i,s,p,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(a=n;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[a][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[a][1].end.offset-e[a][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[a][1].end},d={...e[n][1].start};gb(c,-s),gb(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[a][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:s>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[n][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[a][1].end={...o.start},e[n][1].start={...i.end},p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=xa(p,[["enter",e[a][1],t],["exit",e[a][1],t]])),p=xa(p,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",l,t]]),p=xa(p,sA(t.parser.constructs.insideSpan.null,e.slice(a+1,n),t)),p=xa(p,[["exit",l,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,p=xa(p,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,aa(e,a-1,n-a+3,p),n=a+p.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function IP(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,r=ai(a);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),i(s)}function i(s){if(s===l)return e.consume(s),i;const p=e.exit("attentionSequence"),u=ai(s),c=!u||u===2&&r||n.includes(s),d=!r||r===2&&u||n.includes(a);return p._open=!!(l===42?c:c&&(r||!d)),p._close=!!(l===42?d:d&&(u||!c)),t(s)}}function gb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const xP={name:"autolink",tokenize:EP};function EP(e,t,n){let a=0;return r;function r(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return yn(f)?(e.consume(f),o):f===64?n(f):p(f)}function o(f){return f===43||f===45||f===46||dn(f)?(a=1,i(f)):p(f)}function i(f){return f===58?(e.consume(f),a=0,s):(f===43||f===45||f===46||dn(f))&&a++<32?(e.consume(f),i):(a=0,p(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||oA(f)?n(f):(e.consume(f),s)}function p(f){return f===64?(e.consume(f),u):fP(f)?(e.consume(f),p):n(f)}function u(f){return dn(f)?c(f):n(f)}function c(f){return f===46?(e.consume(f),a=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||dn(f))&&a++<63){const W=f===45?d:c;return e.consume(f),W}return n(f)}}const Ds={partial:!0,tokenize:bP};function bP(e,t,n){return a;function a(l){return He(l)?et(e,r,"linePrefix")(l):r(l)}function r(l){return l===null||Me(l)?t(l):n(l)}}const hb={continuation:{tokenize:wP},exit:RP,name:"blockQuote",tokenize:kP};function kP(e,t,n){const a=this;return r;function r(o){if(o===62){const i=a.containerState;return i.open||(e.enter("blockQuote",{_container:!0}),i.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return He(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function wP(e,t,n){const a=this;return r;function r(o){return He(o)?et(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(hb,t,n)(o)}}function RP(e){e.exit("blockQuote")}const mb={name:"characterEscape",tokenize:BP};function BP(e,t,n){return a;function a(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),r}function r(l){return gP(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Cb={name:"characterReference",tokenize:LP};function LP(e,t,n){const a=this;let r=0,l,o;return i;function i(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),l=31,o=dn,u(c))}function p(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=WP,u):(e.enter("characterReferenceValue"),l=7,o=_h,u(c))}function u(c){if(c===59&&r){const d=e.exit("characterReferenceValue");return o===dn&&!Xh(a.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&r++<l?(e.consume(c),u):n(c)}}const vb={partial:!0,tokenize:QP},yb={concrete:!0,name:"codeFenced",tokenize:MP};function MP(e,t,n){const a=this,r={partial:!0,tokenize:E};let l=0,o=0,i;return s;function s(S){return p(S)}function p(S){const k=a.events[a.events.length-1];return l=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,i=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(S)}function u(S){return S===i?(o++,e.consume(S),u):o<3?n(S):(e.exit("codeFencedFenceSequence"),He(S)?et(e,c,"whitespace")(S):c(S))}function c(S){return S===null||Me(S)?(e.exit("codeFencedFence"),a.interrupt?t(S):e.check(vb,m,y)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||Me(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):He(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),et(e,f,"whitespace")(S)):S===96&&S===i?n(S):(e.consume(S),d)}function f(S){return S===null||Me(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),W(S))}function W(S){return S===null||Me(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===i?n(S):(e.consume(S),W)}function m(S){return e.attempt(r,y,x)(S)}function x(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),h}function h(S){return l>0&&He(S)?et(e,g,"linePrefix",l+1)(S):g(S)}function g(S){return S===null||Me(S)?e.check(vb,m,y)(S):(e.enter("codeFlowValue"),C(S))}function C(S){return S===null||Me(S)?(e.exit("codeFlowValue"),g(S)):(e.consume(S),C)}function y(S){return e.exit("codeFenced"),t(S)}function E(S,k,R){let V=0;return b;function b(T){return S.enter("lineEnding"),S.consume(T),S.exit("lineEnding"),B}function B(T){return S.enter("codeFencedFence"),He(T)?et(S,M,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):M(T)}function M(T){return T===i?(S.enter("codeFencedFenceSequence"),F(T)):R(T)}function F(T){return T===i?(V++,S.consume(T),F):V>=o?(S.exit("codeFencedFenceSequence"),He(T)?et(S,z,"whitespace")(T):z(T)):R(T)}function z(T){return T===null||Me(T)?(S.exit("codeFencedFence"),k(T)):R(T)}}}function QP(e,t,n){const a=this;return r;function r(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return a.parser.lazy[a.now().line]?n(o):t(o)}}const em={name:"codeIndented",tokenize:UP},VP={partial:!0,tokenize:FP};function UP(e,t,n){const a=this;return r;function r(p){return e.enter("codeIndented"),et(e,l,"linePrefix",5)(p)}function l(p){const u=a.events[a.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(p):n(p)}function o(p){return p===null?s(p):Me(p)?e.attempt(VP,o,s)(p):(e.enter("codeFlowValue"),i(p))}function i(p){return p===null||Me(p)?(e.exit("codeFlowValue"),o(p)):(e.consume(p),i)}function s(p){return e.exit("codeIndented"),t(p)}}function FP(e,t,n){const a=this;return r;function r(o){return a.parser.lazy[a.now().line]?n(o):Me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):et(e,l,"linePrefix",5)(o)}function l(o){const i=a.events[a.events.length-1];return i&&i[1].type==="linePrefix"&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):Me(o)?r(o):n(o)}}const zP={name:"codeText",previous:jP,resolve:qP,tokenize:TP};function qP(e){let t=e.length-4,n=3,a,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)r===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(r=a):(a===t||e[a][1].type==="lineEnding")&&(e[r][1].type="codeTextData",a!==r+2&&(e[r][1].end=e[a-1][1].end,e.splice(r+2,a-r-2),t-=a-r-2,a=r+2),r=void 0);return e}function jP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function TP(e,t,n){let a=0,r,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),i(c)}function i(c){return c===96?(e.consume(c),a++,i):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),r=0,u(c)):Me(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),p(c))}function p(c){return c===null||c===32||c===96||Me(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),p)}function u(c){return c===96?(e.consume(c),r++,u):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",p(c))}}class OP{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const a=n??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,n,a){const r=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return a&&Ys(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ys(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ys(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ys(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ys(this.left,n.reverse())}}}function Ys(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Sb(e){const t={};let n=-1,a,r,l,o,i,s,p;const u=new OP(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(a=u.get(n),n&&a[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(s=a[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,KP(u,n)),n=t[n],p=!0);else if(a[1]._container){for(l=n,r=void 0;l--;)if(o=u.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;r&&(a[1].end={...u.get(r)[1].start},i=u.slice(r,n),i.unshift(a),u.splice(r,n-r+1,i))}}return aa(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!p}function KP(e,t){const n=e.get(t)[1],a=e.get(t)[2];let r=t-1;const l=[];let o=n._tokenizer;o||(o=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const i=o.events,s=[],p={};let u,c,d=-1,f=n,W=0,m=0;const x=[m];for(;f;){for(;e.get(++r)[1]!==f;);l.push(r),f._tokenizer||(u=a.sliceStream(f),f.next||u.push(null),c&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=n;++d<i.length;)i[d][0]==="exit"&&i[d-1][0]==="enter"&&i[d][1].type===i[d-1][1].type&&i[d][1].start.line!==i[d][1].end.line&&(m=d+1,x.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):x.pop(),d=x.length;d--;){const h=i.slice(x[d],x[d+1]),g=l.pop();s.push([g,g+h.length-1]),e.splice(g,2,h)}for(s.reverse(),d=-1;++d<s.length;)p[W+s[d][0]]=W+s[d][1],W+=s[d][1]-s[d][0]-1;return p}const PP={resolve:DP,tokenize:YP},JP={partial:!0,tokenize:ZP};function DP(e){return Sb(e),e}function YP(e,t){let n;return a;function a(i){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(i)}function r(i){return i===null?l(i):Me(i)?e.check(JP,o,l)(i):(e.consume(i),r)}function l(i){return e.exit("chunkContent"),e.exit("content"),t(i)}function o(i){return e.consume(i),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function ZP(e,t,n){const a=this;return r;function r(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),et(e,l,"linePrefix")}function l(o){if(o===null||Me(o))return n(o);const i=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&i&&i[1].type==="linePrefix"&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(a.parser.constructs.flow,n,t)(o)}}function Ib(e,t,n,a,r,l,o,i,s){const p=s||Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return h===60?(e.enter(a),e.enter(r),e.enter(l),e.consume(h),e.exit(l),d):h===null||h===32||h===41||oA(h)?n(h):(e.enter(a),e.enter(o),e.enter(i),e.enter("chunkString",{contentType:"string"}),m(h))}function d(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(r),e.exit(a),t):(e.enter(i),e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===62?(e.exit("chunkString"),e.exit(i),d(h)):h===null||h===60||Me(h)?n(h):(e.consume(h),h===92?W:f)}function W(h){return h===60||h===62||h===92?(e.consume(h),f):f(h)}function m(h){return!u&&(h===null||h===41||gt(h))?(e.exit("chunkString"),e.exit(i),e.exit(o),e.exit(a),t(h)):u<p&&h===40?(e.consume(h),u++,m):h===41?(e.consume(h),u--,m):h===null||h===32||h===40||oA(h)?n(h):(e.consume(h),h===92?x:m)}function x(h){return h===40||h===41||h===92?(e.consume(h),m):m(h)}}function xb(e,t,n,a,r,l){const o=this;let i=0,s;return p;function p(f){return e.enter(a),e.enter(r),e.consume(f),e.exit(r),e.enter(l),u}function u(f){return i>999||f===null||f===91||f===93&&!s||f===94&&!i&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(l),e.enter(r),e.consume(f),e.exit(r),e.exit(a),t):Me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||Me(f)||i++>999?(e.exit("chunkString"),u(f)):(e.consume(f),s||(s=!He(f)),f===92?d:c)}function d(f){return f===91||f===92||f===93?(e.consume(f),i++,c):c(f)}}function Eb(e,t,n,a,r,l){let o;return i;function i(d){return d===34||d===39||d===40?(e.enter(a),e.enter(r),e.consume(d),e.exit(r),o=d===40?41:d,s):n(d)}function s(d){return d===o?(e.enter(r),e.consume(d),e.exit(r),e.exit(a),t):(e.enter(l),p(d))}function p(d){return d===o?(e.exit(l),s(o)):d===null?n(d):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),et(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===o||d===null||Me(d)?(e.exit("chunkString"),p(d)):(e.consume(d),d===92?c:u)}function c(d){return d===o||d===92?(e.consume(d),u):u(d)}}function Zs(e,t){let n;return a;function a(r){return Me(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,a):He(r)?et(e,a,n?"linePrefix":"lineSuffix")(r):t(r)}}const NP={name:"definition",tokenize:HP},GP={partial:!0,tokenize:XP};function HP(e,t,n){const a=this;let r;return l;function l(f){return e.enter("definition"),o(f)}function o(f){return xb.call(a,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function i(f){return r=ja(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):n(f)}function s(f){return gt(f)?Zs(e,p)(f):p(f)}function p(f){return Ib(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(GP,c,c)(f)}function c(f){return He(f)?et(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Me(f)?(e.exit("definition"),a.parser.defined.push(r),t(f)):n(f)}}function XP(e,t,n){return a;function a(i){return gt(i)?Zs(e,r)(i):n(i)}function r(i){return Eb(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(i)}function l(i){return He(i)?et(e,o,"whitespace")(i):o(i)}function o(i){return i===null||Me(i)?t(i):n(i)}}const _P={name:"hardBreakEscape",tokenize:$P};function $P(e,t,n){return a;function a(l){return e.enter("hardBreakEscape"),e.consume(l),r}function r(l){return Me(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const eJ={name:"headingAtx",resolve:tJ,tokenize:nJ};function tJ(e,t){let n=e.length-2,a=3,r,l;return e[a][1].type==="whitespace"&&(a+=2),n-2>a&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&e[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[n][1].end},l={type:"chunkText",start:e[a][1].start,end:e[n][1].end,contentType:"text"},aa(e,a,n-a+1,[["enter",r,t],["enter",l,t],["exit",l,t],["exit",r,t]])),e}function nJ(e,t,n){let a=0;return r;function r(u){return e.enter("atxHeading"),l(u)}function l(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&a++<6?(e.consume(u),o):u===null||gt(u)?(e.exit("atxHeadingSequence"),i(u)):n(u)}function i(u){return u===35?(e.enter("atxHeadingSequence"),s(u)):u===null||Me(u)?(e.exit("atxHeading"),t(u)):He(u)?et(e,i,"whitespace")(u):(e.enter("atxHeadingText"),p(u))}function s(u){return u===35?(e.consume(u),s):(e.exit("atxHeadingSequence"),i(u))}function p(u){return u===null||u===35||gt(u)?(e.exit("atxHeadingText"),i(u)):(e.consume(u),p)}}const aJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bb=["pre","script","style","textarea"],rJ={concrete:!0,name:"htmlFlow",resolveTo:iJ,tokenize:sJ},lJ={partial:!0,tokenize:uJ},oJ={partial:!0,tokenize:pJ};function iJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function sJ(e,t,n){const a=this;let r,l,o,i,s;return p;function p(Q){return u(Q)}function u(Q){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Q),c}function c(Q){return Q===33?(e.consume(Q),d):Q===47?(e.consume(Q),l=!0,m):Q===63?(e.consume(Q),r=3,a.interrupt?t:w):yn(Q)?(e.consume(Q),o=String.fromCharCode(Q),x):n(Q)}function d(Q){return Q===45?(e.consume(Q),r=2,f):Q===91?(e.consume(Q),r=5,i=0,W):yn(Q)?(e.consume(Q),r=4,a.interrupt?t:w):n(Q)}function f(Q){return Q===45?(e.consume(Q),a.interrupt?t:w):n(Q)}function W(Q){const N="CDATA[";return Q===N.charCodeAt(i++)?(e.consume(Q),i===N.length?a.interrupt?t:M:W):n(Q)}function m(Q){return yn(Q)?(e.consume(Q),o=String.fromCharCode(Q),x):n(Q)}function x(Q){if(Q===null||Q===47||Q===62||gt(Q)){const N=Q===47,re=o.toLowerCase();return!N&&!l&&bb.includes(re)?(r=1,a.interrupt?t(Q):M(Q)):aJ.includes(o.toLowerCase())?(r=6,N?(e.consume(Q),h):a.interrupt?t(Q):M(Q)):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(Q):l?g(Q):C(Q))}return Q===45||dn(Q)?(e.consume(Q),o+=String.fromCharCode(Q),x):n(Q)}function h(Q){return Q===62?(e.consume(Q),a.interrupt?t:M):n(Q)}function g(Q){return He(Q)?(e.consume(Q),g):b(Q)}function C(Q){return Q===47?(e.consume(Q),b):Q===58||Q===95||yn(Q)?(e.consume(Q),y):He(Q)?(e.consume(Q),C):b(Q)}function y(Q){return Q===45||Q===46||Q===58||Q===95||dn(Q)?(e.consume(Q),y):E(Q)}function E(Q){return Q===61?(e.consume(Q),S):He(Q)?(e.consume(Q),E):C(Q)}function S(Q){return Q===null||Q===60||Q===61||Q===62||Q===96?n(Q):Q===34||Q===39?(e.consume(Q),s=Q,k):He(Q)?(e.consume(Q),S):R(Q)}function k(Q){return Q===s?(e.consume(Q),s=null,V):Q===null||Me(Q)?n(Q):(e.consume(Q),k)}function R(Q){return Q===null||Q===34||Q===39||Q===47||Q===60||Q===61||Q===62||Q===96||gt(Q)?E(Q):(e.consume(Q),R)}function V(Q){return Q===47||Q===62||He(Q)?C(Q):n(Q)}function b(Q){return Q===62?(e.consume(Q),B):n(Q)}function B(Q){return Q===null||Me(Q)?M(Q):He(Q)?(e.consume(Q),B):n(Q)}function M(Q){return Q===45&&r===2?(e.consume(Q),j):Q===60&&r===1?(e.consume(Q),P):Q===62&&r===4?(e.consume(Q),H):Q===63&&r===3?(e.consume(Q),w):Q===93&&r===5?(e.consume(Q),q):Me(Q)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(lJ,te,F)(Q)):Q===null||Me(Q)?(e.exit("htmlFlowData"),F(Q)):(e.consume(Q),M)}function F(Q){return e.check(oJ,z,te)(Q)}function z(Q){return e.enter("lineEnding"),e.consume(Q),e.exit("lineEnding"),T}function T(Q){return Q===null||Me(Q)?F(Q):(e.enter("htmlFlowData"),M(Q))}function j(Q){return Q===45?(e.consume(Q),w):M(Q)}function P(Q){return Q===47?(e.consume(Q),o="",L):M(Q)}function L(Q){if(Q===62){const N=o.toLowerCase();return bb.includes(N)?(e.consume(Q),H):M(Q)}return yn(Q)&&o.length<8?(e.consume(Q),o+=String.fromCharCode(Q),L):M(Q)}function q(Q){return Q===93?(e.consume(Q),w):M(Q)}function w(Q){return Q===62?(e.consume(Q),H):Q===45&&r===2?(e.consume(Q),w):M(Q)}function H(Q){return Q===null||Me(Q)?(e.exit("htmlFlowData"),te(Q)):(e.consume(Q),H)}function te(Q){return e.exit("htmlFlow"),t(Q)}}function pJ(e,t,n){const a=this;return r;function r(o){return Me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return a.parser.lazy[a.now().line]?n(o):t(o)}}function uJ(e,t,n){return a;function a(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ds,t,n)}}const cJ={name:"htmlText",tokenize:AJ};function AJ(e,t,n){const a=this;let r,l,o;return i;function i(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),s}function s(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),E):w===63?(e.consume(w),C):yn(w)?(e.consume(w),R):n(w)}function p(w){return w===45?(e.consume(w),u):w===91?(e.consume(w),l=0,W):yn(w)?(e.consume(w),g):n(w)}function u(w){return w===45?(e.consume(w),f):n(w)}function c(w){return w===null?n(w):w===45?(e.consume(w),d):Me(w)?(o=c,P(w)):(e.consume(w),c)}function d(w){return w===45?(e.consume(w),f):c(w)}function f(w){return w===62?j(w):w===45?d(w):c(w)}function W(w){const H="CDATA[";return w===H.charCodeAt(l++)?(e.consume(w),l===H.length?m:W):n(w)}function m(w){return w===null?n(w):w===93?(e.consume(w),x):Me(w)?(o=m,P(w)):(e.consume(w),m)}function x(w){return w===93?(e.consume(w),h):m(w)}function h(w){return w===62?j(w):w===93?(e.consume(w),h):m(w)}function g(w){return w===null||w===62?j(w):Me(w)?(o=g,P(w)):(e.consume(w),g)}function C(w){return w===null?n(w):w===63?(e.consume(w),y):Me(w)?(o=C,P(w)):(e.consume(w),C)}function y(w){return w===62?j(w):C(w)}function E(w){return yn(w)?(e.consume(w),S):n(w)}function S(w){return w===45||dn(w)?(e.consume(w),S):k(w)}function k(w){return Me(w)?(o=k,P(w)):He(w)?(e.consume(w),k):j(w)}function R(w){return w===45||dn(w)?(e.consume(w),R):w===47||w===62||gt(w)?V(w):n(w)}function V(w){return w===47?(e.consume(w),j):w===58||w===95||yn(w)?(e.consume(w),b):Me(w)?(o=V,P(w)):He(w)?(e.consume(w),V):j(w)}function b(w){return w===45||w===46||w===58||w===95||dn(w)?(e.consume(w),b):B(w)}function B(w){return w===61?(e.consume(w),M):Me(w)?(o=B,P(w)):He(w)?(e.consume(w),B):V(w)}function M(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),r=w,F):Me(w)?(o=M,P(w)):He(w)?(e.consume(w),M):(e.consume(w),z)}function F(w){return w===r?(e.consume(w),r=void 0,T):w===null?n(w):Me(w)?(o=F,P(w)):(e.consume(w),F)}function z(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||gt(w)?V(w):(e.consume(w),z)}function T(w){return w===47||w===62||gt(w)?V(w):n(w)}function j(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function P(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),L}function L(w){return He(w)?et(e,q,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):q(w)}function q(w){return e.enter("htmlTextData"),o(w)}}const tm={name:"labelEnd",resolveAll:gJ,resolveTo:hJ,tokenize:mJ},dJ={tokenize:CJ},fJ={tokenize:vJ},WJ={tokenize:yJ};function gJ(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const r=a.type==="labelImage"?4:2;a.type="data",t+=r}}return e.length!==n.length&&aa(e,0,e.length,n),e}function hJ(e,t){let n=e.length,a=0,r,l,o,i;for(;n--;)if(r=e[n][1],l){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(l=n,r.type!=="labelLink")){a=2;break}}else r.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[l+a+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",p,t]],i=xa(i,e.slice(l+1,l+a+3)),i=xa(i,[["enter",u,t]]),i=xa(i,sA(t.parser.constructs.insideSpan.null,e.slice(l+a+4,o-3),t)),i=xa(i,[["exit",u,t],e[o-2],e[o-1],["exit",p,t]]),i=xa(i,e.slice(o+1)),i=xa(i,[["exit",s,t]]),aa(e,l,e.length,i),e}function mJ(e,t,n){const a=this;let r=a.events.length,l,o;for(;r--;)if((a.events[r][1].type==="labelImage"||a.events[r][1].type==="labelLink")&&!a.events[r][1]._balanced){l=a.events[r][1];break}return i;function i(d){return l?l._inactive?c(d):(o=a.parser.defined.includes(ja(a.sliceSerialize({start:l.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),s):n(d)}function s(d){return d===40?e.attempt(dJ,u,o?u:c)(d):d===91?e.attempt(fJ,u,o?p:c)(d):o?u(d):c(d)}function p(d){return e.attempt(WJ,u,c)(d)}function u(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function CJ(e,t,n){return a;function a(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),r}function r(c){return gt(c)?Zs(e,l)(c):l(c)}function l(c){return c===41?u(c):Ib(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return gt(c)?Zs(e,s)(c):u(c)}function i(c){return n(c)}function s(c){return c===34||c===39||c===40?Eb(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):u(c)}function p(c){return gt(c)?Zs(e,u)(c):u(c)}function u(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function vJ(e,t,n){const a=this;return r;function r(i){return xb.call(a,e,l,o,"reference","referenceMarker","referenceString")(i)}function l(i){return a.parser.defined.includes(ja(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(i):n(i)}function o(i){return n(i)}}function yJ(e,t,n){return a;function a(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),r}function r(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const SJ={name:"labelStartImage",resolveAll:tm.resolveAll,tokenize:IJ};function IJ(e,t,n){const a=this;return r;function r(i){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(i),e.exit("labelImageMarker"),l}function l(i){return i===91?(e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelImage"),o):n(i)}function o(i){return i===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(i):t(i)}}const xJ={name:"labelStartLink",resolveAll:tm.resolveAll,tokenize:EJ};function EJ(e,t,n){const a=this;return r;function r(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(o):t(o)}}const nm={name:"lineEnding",tokenize:bJ};function bJ(e,t){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),et(e,t,"linePrefix")}}const pA={name:"thematicBreak",tokenize:kJ};function kJ(e,t,n){let a=0,r;return l;function l(p){return e.enter("thematicBreak"),o(p)}function o(p){return r=p,i(p)}function i(p){return p===r?(e.enter("thematicBreakSequence"),s(p)):a>=3&&(p===null||Me(p))?(e.exit("thematicBreak"),t(p)):n(p)}function s(p){return p===r?(e.consume(p),a++,s):(e.exit("thematicBreakSequence"),He(p)?et(e,i,"whitespace")(p):i(p))}}const Un={continuation:{tokenize:LJ},exit:QJ,name:"list",tokenize:BJ},wJ={partial:!0,tokenize:VJ},RJ={partial:!0,tokenize:MJ};function BJ(e,t,n){const a=this,r=a.events[a.events.length-1];let l=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return i;function i(f){const W=a.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(W==="listUnordered"?!a.containerState.marker||f===a.containerState.marker:_h(f)){if(a.containerState.type||(a.containerState.type=W,e.enter(W,{_container:!0})),W==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(pA,n,p)(f):p(f);if(!a.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return n(f)}function s(f){return _h(f)&&++o<10?(e.consume(f),s):(!a.interrupt||o<2)&&(a.containerState.marker?f===a.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),p(f)):n(f)}function p(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||f,e.check(Ds,a.interrupt?n:u,e.attempt(wJ,d,c))}function u(f){return a.containerState.initialBlankLine=!0,l++,d(f)}function c(f){return He(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function LJ(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(Ds,r,l);function r(i){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,et(e,t,"listItemIndent",a.containerState.size+1)(i)}function l(i){return a.containerState.furtherBlankLines||!He(i)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,o(i)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(RJ,t,o)(i))}function o(i){return a.containerState._closeFlow=!0,a.interrupt=void 0,et(e,e.attempt(Un,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}function MJ(e,t,n){const a=this;return et(e,r,"listItemIndent",a.containerState.size+1);function r(l){const o=a.events[a.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===a.containerState.size?t(l):n(l)}}function QJ(e){e.exit(this.containerState.type)}function VJ(e,t,n){const a=this;return et(e,r,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(l){const o=a.events[a.events.length-1];return!He(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const kb={name:"setextUnderline",resolveTo:UJ,tokenize:FJ};function UJ(e,t){let n=e.length,a,r,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){a=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,t]),e.splice(l+1,0,["exit",e[a][1],t]),e[a][1].end={...e[l][1].end}):e[a][1]=o,e.push(["exit",o,t]),e}function FJ(e,t,n){const a=this;let r;return l;function l(p){let u=a.events.length,c;for(;u--;)if(a.events[u][1].type!=="lineEnding"&&a.events[u][1].type!=="linePrefix"&&a.events[u][1].type!=="content"){c=a.events[u][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||c)?(e.enter("setextHeadingLine"),r=p,o(p)):n(p)}function o(p){return e.enter("setextHeadingLineSequence"),i(p)}function i(p){return p===r?(e.consume(p),i):(e.exit("setextHeadingLineSequence"),He(p)?et(e,s,"lineSuffix")(p):s(p))}function s(p){return p===null||Me(p)?(e.exit("setextHeadingLine"),t(p)):n(p)}}const zJ={tokenize:qJ};function qJ(e){const t=this,n=e.attempt(Ds,a,e.attempt(this.parser.constructs.flowInitial,r,et(e,e.attempt(this.parser.constructs.flow,r,e.attempt(PP,r)),"linePrefix")));return n;function a(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const jJ={resolveAll:Rb()},TJ=wb("string"),OJ=wb("text");function wb(e){return{resolveAll:Rb(e==="text"?KJ:void 0),tokenize:t};function t(n){const a=this,r=this.parser.constructs[e],l=n.attempt(r,o,i);return o;function o(u){return p(u)?l(u):i(u)}function i(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),s}function s(u){return p(u)?(n.exit("data"),l(u)):(n.consume(u),s)}function p(u){if(u===null)return!0;const c=r[u];let d=-1;if(c)for(;++d<c.length;){const f=c[d];if(!f.previous||f.previous.call(a,a.previous))return!0}return!1}}}function Rb(e){return t;function t(n,a){let r=-1,l;for(;++r<=n.length;)l===void 0?n[r]&&n[r][1].type==="data"&&(l=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==l+2&&(n[l][1].end=n[r-1][1].end,n.splice(l+2,r-l-2),r=l+2),l=void 0);return e?e(n,a):n}}function KJ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const a=e[n-1][1],r=t.sliceStream(a);let l=r.length,o=-1,i=0,s;for(;l--;){const p=r[l];if(typeof p=="string"){for(o=p.length;p.charCodeAt(o-1)===32;)i++,o--;if(o)break;o=-1}else if(p===-2)s=!0,i++;else if(p!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(i=0),i){const p={type:n===e.length||s||i<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:a.start._bufferIndex+o,_index:a.start._index+l,line:a.end.line,column:a.end.column-i,offset:a.end.offset-i},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(e.splice(n,0,["enter",p,t],["exit",p,t]),n+=2)}n++}return e}const PJ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:NP},disable:{null:[]},document:{42:Un,43:Un,45:Un,48:Un,49:Un,50:Un,51:Un,52:Un,53:Un,54:Un,55:Un,56:Un,57:Un,62:hb},flow:{35:eJ,42:pA,45:[kb,pA],60:rJ,61:kb,95:pA,96:yb,126:yb},flowInitial:{[-2]:em,[-1]:em,32:em},insideSpan:{null:[$h,jJ]},string:{38:Cb,92:mb},text:{[-5]:nm,[-4]:nm,[-3]:nm,33:SJ,38:Cb,42:$h,60:[xP,cJ],91:xJ,92:[_P,mb],93:tm,95:$h,96:zP}},Symbol.toStringTag,{value:"Module"}));function JJ(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},l=[];let o=[],i=[];const s={attempt:k(E),check:k(S),consume:g,enter:C,exit:y,interrupt:k(S,{interrupt:!0})},p={code:null,containerState:{},defineSkip:m,events:[],now:W,parser:e,previous:null,sliceSerialize:d,sliceStream:f,write:c};let u=t.tokenize.call(p,s);return t.resolveAll&&l.push(t),p;function c(B){return o=xa(o,B),x(),o[o.length-1]!==null?[]:(R(t,0),p.events=sA(l,p.events,p),p.events)}function d(B,M){return YJ(f(B),M)}function f(B){return DJ(o,B)}function W(){const{_bufferIndex:B,_index:M,line:F,column:z,offset:T}=a;return{_bufferIndex:B,_index:M,line:F,column:z,offset:T}}function m(B){r[B.line]=B.column,b()}function x(){let B;for(;a._index<o.length;){const M=o[a._index];if(typeof M=="string")for(B=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===B&&a._bufferIndex<M.length;)h(M.charCodeAt(a._bufferIndex));else h(M)}}function h(B){u=u(B)}function g(B){Me(B)?(a.line++,a.column=1,a.offset+=B===-3?2:1,b()):B!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===o[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=B}function C(B,M){const F=M||{};return F.type=B,F.start=W(),p.events.push(["enter",F,p]),i.push(F),F}function y(B){const M=i.pop();return M.end=W(),p.events.push(["exit",M,p]),M}function E(B,M){R(B,M.from)}function S(B,M){M.restore()}function k(B,M){return F;function F(z,T,j){let P,L,q,w;return Array.isArray(z)?te(z):"tokenize"in z?te([z]):H(z);function H(ue){return X;function X(ee){const de=ee!==null&&ue[ee],ae=ee!==null&&ue.null,G=[...Array.isArray(de)?de:de?[de]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return te(G)(ee)}}function te(ue){return P=ue,L=0,ue.length===0?j:Q(ue[L])}function Q(ue){return X;function X(ee){return w=V(),q=ue,ue.partial||(p.currentConstruct=ue),ue.name&&p.parser.constructs.disable.null.includes(ue.name)?re():ue.tokenize.call(M?Object.assign(Object.create(p),M):p,s,N,re)(ee)}}function N(ue){return B(q,w),T}function re(ue){return w.restore(),++L<P.length?Q(P[L]):j}}}function R(B,M){B.resolveAll&&!l.includes(B)&&l.push(B),B.resolve&&aa(p.events,M,p.events.length-M,B.resolve(p.events.slice(M),p)),B.resolveTo&&(p.events=B.resolveTo(p.events,p))}function V(){const B=W(),M=p.previous,F=p.currentConstruct,z=p.events.length,T=Array.from(i);return{from:z,restore:j};function j(){a=B,p.previous=M,p.currentConstruct=F,p.events.length=z,i=T,b()}}function b(){a.line in r&&a.column<2&&(a.column=r[a.line],a.offset+=r[a.line]-1)}}function DJ(e,t){const n=t.start._index,a=t.start._bufferIndex,r=t.end._index,l=t.end._bufferIndex;let o;if(n===r)o=[e[n].slice(a,l)];else{if(o=e.slice(n,r),a>-1){const i=o[0];typeof i=="string"?o[0]=i.slice(a):o.shift()}l>0&&o.push(e[r].slice(0,l))}return o}function YJ(e,t){let n=-1;const a=[];let r;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
792
+ `,XE="/",_E="*",Tl="",IK="comment",xK="declaration";function EK(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,a=1;function r(W){var m=W.match(WK);m&&(n+=m.length);var x=W.lastIndexOf(SK);a=~x?W.length-x:a+W.length}function l(){var W={line:n,column:a};return function(m){return m.position=new o(W),p(),m}}function o(W){this.start=W,this.end={line:n,column:a},this.source=t.source}o.prototype.content=e;function i(W){var m=new Error(t.source+":"+n+":"+a+": "+W);if(m.reason=W,m.filename=t.source,m.line=n,m.column=a,m.source=e,!t.silent)throw m}function s(W){var m=W.exec(e);if(m){var x=m[0];return r(x),e=e.slice(x.length),m}}function p(){s(gK)}function u(W){var m;for(W=W||[];m=c();)m!==!1&&W.push(m);return W}function c(){var W=l();if(!(XE!=e.charAt(0)||_E!=e.charAt(1))){for(var m=2;Tl!=e.charAt(m)&&(_E!=e.charAt(m)||XE!=e.charAt(m+1));)++m;if(m+=2,Tl===e.charAt(m-1))return i("End of comment missing");var x=e.slice(2,m-2);return a+=2,r(x),e=e.slice(m),a+=2,W({type:IK,comment:x})}}function d(){var W=l(),m=s(hK);if(m){if(c(),!s(mK))return i("property missing ':'");var x=s(CK),h=W({type:xK,property:$E(m[0].replace(HE,Tl)),value:x?$E(x[0].replace(HE,Tl)):Tl});return s(vK),h}}function f(){var W=[];u(W);for(var m;m=d();)m!==!1&&(W.push(m),u(W));return W}return p(),f()}function $E(e){return e?e.replace(yK,Tl):Tl}var bK=EK,kK=or&&or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.default=RK;const wK=kK(bK);function RK(e,t){let n=null;if(!e||typeof e!="string")return n;const a=(0,wK.default)(e),r=typeof t=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:i}=l;r?t(o,i,l):i&&(n=n||{},n[o]=i)}),n}var lA={};Object.defineProperty(lA,"__esModule",{value:!0}),lA.camelCase=void 0;var BK=/^--[a-zA-Z0-9_-]+$/,LK=/-([a-z])/g,MK=/^[^-]+$/,QK=/^-(webkit|moz|ms|o|khtml)-/,VK=/^-(ms)-/,UK=function(e){return!e||MK.test(e)||BK.test(e)},FK=function(e,t){return t.toUpperCase()},eb=function(e,t){return"".concat(t,"-")},zK=function(e,t){return t===void 0&&(t={}),UK(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(VK,eb):e=e.replace(QK,eb),e.replace(LK,FK))};lA.camelCase=zK;var qK=or&&or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},jK=qK(Kh),TK=lA;function Ph(e,t){var n={};return!e||typeof e!="string"||(0,jK.default)(e,function(a,r){a&&r&&(n[(0,TK.camelCase)(a,t)]=r)}),n}Ph.default=Ph;var OK=Ph;const KK=Dl(OK),tb=nb("end"),Jh=nb("start");function nb(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function PK(e){const t=Jh(e),n=tb(e);if(t&&n)return{start:t,end:n}}function Ps(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ab(e.position):"start"in e||"end"in e?ab(e):"line"in e||"column"in e?Dh(e):""}function Dh(e){return rb(e&&e.line)+":"+rb(e&&e.column)}function ab(e){return Dh(e&&e.start)+"-"+Dh(e&&e.end)}function rb(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let r="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?r=t:!l.cause&&t&&(o=!0,r=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof a=="string"){const s=a.indexOf(":");s===-1?l.ruleId=a:(l.source=a.slice(0,s),l.ruleId=a.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const i=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=Ps(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}An.prototype.file="",An.prototype.name="",An.prototype.reason="",An.prototype.message="",An.prototype.stack="",An.prototype.column=void 0,An.prototype.line=void 0,An.prototype.ancestors=void 0,An.prototype.cause=void 0,An.prototype.fatal=void 0,An.prototype.place=void 0,An.prototype.ruleId=void 0,An.prototype.source=void 0;const Yh={}.hasOwnProperty,JK=new Map,DK=/[A-Z]/g,YK=new Set(["table","tbody","thead","tfoot","tr"]),ZK=new Set(["td","th"]),lb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NK(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=nP(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=tP(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Oh:dK,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=ob(r,e,void 0);return l&&typeof l!="string"?l:r.create(e,r.Fragment,{children:l||void 0},void 0)}function ob(e,t,n){if(t.type==="element")return GK(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return HK(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return _K(e,t,n);if(t.type==="mdxjsEsm")return XK(e,t);if(t.type==="root")return $K(e,t,n);if(t.type==="text")return eP(e,t)}function GK(e,t,n){const a=e.schema;let r=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(r=Oh,e.schema=r),e.ancestors.push(t);const l=sb(e,t.tagName,!1),o=aP(e,t);let i=Nh(e,t);return YK.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!aK(s):!0})),ib(e,o,l,t),Zh(o,i),e.ancestors.pop(),e.schema=a,e.create(t,l,o,n)}function HK(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Js(e,t.position)}function XK(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Js(e,t.position)}function _K(e,t,n){const a=e.schema;let r=a;t.name==="svg"&&a.space==="html"&&(r=Oh,e.schema=r),e.ancestors.push(t);const l=t.name===null?e.Fragment:sb(e,t.name,!0),o=rP(e,t),i=Nh(e,t);return ib(e,o,l,t),Zh(o,i),e.ancestors.pop(),e.schema=a,e.create(t,l,o,n)}function $K(e,t,n){const a={};return Zh(a,Nh(e,t)),e.create(t,e.Fragment,a,n)}function eP(e,t){return t.value}function ib(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function Zh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function tP(e,t,n){return a;function a(r,l,o,i){const p=Array.isArray(o.children)?n:t;return i?p(l,o,i):p(l,o)}}function nP(e,t){return n;function n(a,r,l,o){const i=Array.isArray(l.children),s=Jh(a);return t(r,l,o,i,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function aP(e,t){const n={};let a,r;for(r in t.properties)if(r!=="children"&&Yh.call(t.properties,r)){const l=lP(e,r,t.properties[r]);if(l){const[o,i]=l;e.tableCellAlignToStyle&&o==="align"&&typeof i=="string"&&ZK.has(t.tagName)?a=i:n[o]=i}}if(a){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function rP(e,t){const n={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];l.type;const o=l.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Js(e,t.position);else{const r=a.name;let l;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const i=a.value.data.estree.body[0];i.type,l=e.evaluater.evaluateExpression(i.expression)}else Js(e,t.position);else l=a.value===null?!0:a.value;n[r]=l}return n}function Nh(e,t){const n=[];let a=-1;const r=e.passKeys?new Map:JK;for(;++a<t.children.length;){const l=t.children[a];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const p=r.get(s)||0;o=s+"-"+p,r.set(s,p+1)}}const i=ob(e,l,o);i!==void 0&&n.push(i)}return n}function lP(e,t,n){const a=uK(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?_O(n):fK(n)),a.property==="style"){let r=typeof n=="object"?n:oP(e,String(n));return e.stylePropertyNameCase==="css"&&(r=iP(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&a.space?iK[a.property]||a.property:a.attribute,n]}}function oP(e,t){try{return KK(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const a=n,r=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=lb+"#cannot-parse-style-attribute",r}}function sb(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let l=-1,o;for(;++l<r.length;){const i=jE(r[l])?{type:"Identifier",name:r[l]}:{type:"Literal",value:r[l]};o=o?{type:"MemberExpression",object:o,property:i,computed:!!(l&&i.type==="Literal"),optional:!1}:i}a=o}else a=jE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const r=a.value;return Yh.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(a);Js(e)}function Js(e,t){const n=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=lb+"#cannot-handle-mdx-estrees-without-createevaluater",n}function iP(e){const t={};let n;for(n in e)Yh.call(e,n)&&(t[sP(n)]=e[n]);return t}function sP(e){let t=e.replace(DK,pP);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pP(e){return"-"+e.toLowerCase()}const Gh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},uP={};function Hh(e,t){const n=uP,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return pb(e,a,r)}function pb(e,t,n){if(cP(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ub(e.children,t,n)}return Array.isArray(e)?ub(e,t,n):""}function ub(e,t,n){const a=[];let r=-1;for(;++r<e.length;)a[r]=pb(e[r],t,n);return a.join("")}function cP(e){return!!(e&&typeof e=="object")}const cb=document.createElement("i");function Xh(e){const t="&"+e+";";cb.innerHTML=t;const n=cb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function aa(e,t,n,a){const r=e.length;let l=0,o;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,a.length<1e4)o=Array.from(a),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<a.length;)o=a.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function xa(e,t){return e.length>0?(aa(e,e.length,0,t),e):t}const Ab={}.hasOwnProperty;function db(e){const t={};let n=-1;for(;++n<e.length;)AP(t,e[n]);return t}function AP(e,t){let n;for(n in t){const r=(Ab.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Ab.call(r,o)||(r[o]=[]);const i=l[o];dP(r[o],Array.isArray(i)?i:i?[i]:[])}}}function dP(e,t){let n=-1;const a=[];for(;++n<t.length;)(t[n].add==="after"?e:a).push(t[n]);aa(e,0,0,a)}function fb(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ja(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yn=al(/[A-Za-z]/),dn=al(/[\dA-Za-z]/),fP=al(/[#-'*+\--9=?A-Z^-~]/);function oA(e){return e!==null&&(e<32||e===127)}const _h=al(/\d/),WP=al(/[\dA-Fa-f]/),gP=al(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function gt(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const iA=al(new RegExp("\\p{P}|\\p{S}","u")),Ol=al(/\s/);function al(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ni(e){const t=[];let n=-1,a=0,r=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&dn(e.charCodeAt(n+1))&&dn(e.charCodeAt(n+2)))r=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const i=e.charCodeAt(n+1);l<56320&&i>56319&&i<57344?(o=String.fromCharCode(l,i),r=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(a,n),encodeURIComponent(o)),a=n+r+1,o=""),r&&(n+=r,r=0)}return t.join("")+e.slice(a)}function et(e,t,n,a){const r=a?a-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return He(s)?(e.enter(n),i(s)):t(s)}function i(s){return He(s)&&l++<r?(e.consume(s),i):(e.exit(n),t(s))}}const hP={tokenize:mP};function mP(e){const t=e.attempt(this.parser.constructs.contentInitial,a,r);let n;return t;function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),et(e,t,"linePrefix")}function r(i){return e.enter("paragraph"),l(i)}function l(i){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(i)}function o(i){if(i===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(i);return}return Me(i)?(e.consume(i),e.exit("chunkText"),l):(e.consume(i),o)}}const CP={tokenize:vP},Wb={tokenize:yP};function vP(e){const t=this,n=[];let a=0,r,l,o;return i;function i(C){if(a<n.length){const y=n[a];return t.containerState=y[1],e.attempt(y[0].continuation,s,p)(C)}return p(C)}function s(C){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&g();const y=t.events.length;let E=y,S;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){S=t.events[E][1].end;break}h(a);let k=y;for(;k<t.events.length;)t.events[k][1].end={...S},k++;return aa(t.events,E+1,0,t.events.slice(y)),t.events.length=k,p(C)}return i(C)}function p(C){if(a===n.length){if(!r)return d(C);if(r.currentConstruct&&r.currentConstruct.concrete)return W(C);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wb,u,c)(C)}function u(C){return r&&g(),h(a),d(C)}function c(C){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,W(C)}function d(C){return t.containerState={},e.attempt(Wb,f,W)(C)}function f(C){return a++,n.push([t.currentConstruct,t.containerState]),d(C)}function W(C){if(C===null){r&&g(),h(0),e.consume(C);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:l}),m(C)}function m(C){if(C===null){x(e.exit("chunkFlow"),!0),h(0),e.consume(C);return}return Me(C)?(e.consume(C),x(e.exit("chunkFlow")),a=0,t.interrupt=void 0,i):(e.consume(C),m)}function x(C,y){const E=t.sliceStream(C);if(y&&E.push(null),C.previous=l,l&&(l.next=C),l=C,r.defineSkip(C.start),r.write(E),t.parser.lazy[C.start.line]){let S=r.events.length;for(;S--;)if(r.events[S][1].start.offset<o&&(!r.events[S][1].end||r.events[S][1].end.offset>o))return;const k=t.events.length;let R=k,V,b;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(V){b=t.events[R][1].end;break}V=!0}for(h(a),S=k;S<t.events.length;)t.events[S][1].end={...b},S++;aa(t.events,R+1,0,t.events.slice(k)),t.events.length=S}}function h(C){let y=n.length;for(;y-- >C;){const E=n[y];t.containerState=E[1],E[0].exit.call(t,e)}n.length=C}function g(){r.write([null]),l=void 0,r=void 0,t.containerState._closeFlow=void 0}}function yP(e,t,n){return et(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ai(e){if(e===null||gt(e)||Ol(e))return 1;if(iA(e))return 2}function sA(e,t,n){const a=[];let r=-1;for(;++r<e.length;){const l=e[r].resolveAll;l&&!a.includes(l)&&(t=l(t,n),a.push(l))}return t}const $h={name:"attention",resolveAll:SP,tokenize:IP};function SP(e,t){let n=-1,a,r,l,o,i,s,p,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(a=n;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[a][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[a][1].end.offset-e[a][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[a][1].end},d={...e[n][1].start};gb(c,-s),gb(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[a][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:s>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[n][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[a][1].end={...o.start},e[n][1].start={...i.end},p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=xa(p,[["enter",e[a][1],t],["exit",e[a][1],t]])),p=xa(p,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",l,t]]),p=xa(p,sA(t.parser.constructs.insideSpan.null,e.slice(a+1,n),t)),p=xa(p,[["exit",l,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,p=xa(p,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,aa(e,a-1,n-a+3,p),n=a+p.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function IP(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,r=ai(a);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),i(s)}function i(s){if(s===l)return e.consume(s),i;const p=e.exit("attentionSequence"),u=ai(s),c=!u||u===2&&r||n.includes(s),d=!r||r===2&&u||n.includes(a);return p._open=!!(l===42?c:c&&(r||!d)),p._close=!!(l===42?d:d&&(u||!c)),t(s)}}function gb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const xP={name:"autolink",tokenize:EP};function EP(e,t,n){let a=0;return r;function r(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return yn(f)?(e.consume(f),o):f===64?n(f):p(f)}function o(f){return f===43||f===45||f===46||dn(f)?(a=1,i(f)):p(f)}function i(f){return f===58?(e.consume(f),a=0,s):(f===43||f===45||f===46||dn(f))&&a++<32?(e.consume(f),i):(a=0,p(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||oA(f)?n(f):(e.consume(f),s)}function p(f){return f===64?(e.consume(f),u):fP(f)?(e.consume(f),p):n(f)}function u(f){return dn(f)?c(f):n(f)}function c(f){return f===46?(e.consume(f),a=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||dn(f))&&a++<63){const W=f===45?d:c;return e.consume(f),W}return n(f)}}const Ds={partial:!0,tokenize:bP};function bP(e,t,n){return a;function a(l){return He(l)?et(e,r,"linePrefix")(l):r(l)}function r(l){return l===null||Me(l)?t(l):n(l)}}const hb={continuation:{tokenize:wP},exit:RP,name:"blockQuote",tokenize:kP};function kP(e,t,n){const a=this;return r;function r(o){if(o===62){const i=a.containerState;return i.open||(e.enter("blockQuote",{_container:!0}),i.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return He(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function wP(e,t,n){const a=this;return r;function r(o){return He(o)?et(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(hb,t,n)(o)}}function RP(e){e.exit("blockQuote")}const mb={name:"characterEscape",tokenize:BP};function BP(e,t,n){return a;function a(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),r}function r(l){return gP(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Cb={name:"characterReference",tokenize:LP};function LP(e,t,n){const a=this;let r=0,l,o;return i;function i(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),l=31,o=dn,u(c))}function p(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=WP,u):(e.enter("characterReferenceValue"),l=7,o=_h,u(c))}function u(c){if(c===59&&r){const d=e.exit("characterReferenceValue");return o===dn&&!Xh(a.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&r++<l?(e.consume(c),u):n(c)}}const vb={partial:!0,tokenize:QP},yb={concrete:!0,name:"codeFenced",tokenize:MP};function MP(e,t,n){const a=this,r={partial:!0,tokenize:E};let l=0,o=0,i;return s;function s(S){return p(S)}function p(S){const k=a.events[a.events.length-1];return l=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,i=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(S)}function u(S){return S===i?(o++,e.consume(S),u):o<3?n(S):(e.exit("codeFencedFenceSequence"),He(S)?et(e,c,"whitespace")(S):c(S))}function c(S){return S===null||Me(S)?(e.exit("codeFencedFence"),a.interrupt?t(S):e.check(vb,m,y)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||Me(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):He(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),et(e,f,"whitespace")(S)):S===96&&S===i?n(S):(e.consume(S),d)}function f(S){return S===null||Me(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),W(S))}function W(S){return S===null||Me(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===i?n(S):(e.consume(S),W)}function m(S){return e.attempt(r,y,x)(S)}function x(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),h}function h(S){return l>0&&He(S)?et(e,g,"linePrefix",l+1)(S):g(S)}function g(S){return S===null||Me(S)?e.check(vb,m,y)(S):(e.enter("codeFlowValue"),C(S))}function C(S){return S===null||Me(S)?(e.exit("codeFlowValue"),g(S)):(e.consume(S),C)}function y(S){return e.exit("codeFenced"),t(S)}function E(S,k,R){let V=0;return b;function b(T){return S.enter("lineEnding"),S.consume(T),S.exit("lineEnding"),B}function B(T){return S.enter("codeFencedFence"),He(T)?et(S,M,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):M(T)}function M(T){return T===i?(S.enter("codeFencedFenceSequence"),F(T)):R(T)}function F(T){return T===i?(V++,S.consume(T),F):V>=o?(S.exit("codeFencedFenceSequence"),He(T)?et(S,z,"whitespace")(T):z(T)):R(T)}function z(T){return T===null||Me(T)?(S.exit("codeFencedFence"),k(T)):R(T)}}}function QP(e,t,n){const a=this;return r;function r(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return a.parser.lazy[a.now().line]?n(o):t(o)}}const em={name:"codeIndented",tokenize:UP},VP={partial:!0,tokenize:FP};function UP(e,t,n){const a=this;return r;function r(p){return e.enter("codeIndented"),et(e,l,"linePrefix",5)(p)}function l(p){const u=a.events[a.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(p):n(p)}function o(p){return p===null?s(p):Me(p)?e.attempt(VP,o,s)(p):(e.enter("codeFlowValue"),i(p))}function i(p){return p===null||Me(p)?(e.exit("codeFlowValue"),o(p)):(e.consume(p),i)}function s(p){return e.exit("codeIndented"),t(p)}}function FP(e,t,n){const a=this;return r;function r(o){return a.parser.lazy[a.now().line]?n(o):Me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):et(e,l,"linePrefix",5)(o)}function l(o){const i=a.events[a.events.length-1];return i&&i[1].type==="linePrefix"&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):Me(o)?r(o):n(o)}}const zP={name:"codeText",previous:jP,resolve:qP,tokenize:TP};function qP(e){let t=e.length-4,n=3,a,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)r===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(r=a):(a===t||e[a][1].type==="lineEnding")&&(e[r][1].type="codeTextData",a!==r+2&&(e[r][1].end=e[a-1][1].end,e.splice(r+2,a-r-2),t-=a-r-2,a=r+2),r=void 0);return e}function jP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function TP(e,t,n){let a=0,r,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),i(c)}function i(c){return c===96?(e.consume(c),a++,i):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),r=0,u(c)):Me(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),p(c))}function p(c){return c===null||c===32||c===96||Me(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),p)}function u(c){return c===96?(e.consume(c),r++,u):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",p(c))}}class OP{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const a=n??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,n,a){const r=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return a&&Ys(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ys(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ys(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ys(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ys(this.left,n.reverse())}}}function Ys(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Sb(e){const t={};let n=-1,a,r,l,o,i,s,p;const u=new OP(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(a=u.get(n),n&&a[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(s=a[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,KP(u,n)),n=t[n],p=!0);else if(a[1]._container){for(l=n,r=void 0;l--;)if(o=u.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;r&&(a[1].end={...u.get(r)[1].start},i=u.slice(r,n),i.unshift(a),u.splice(r,n-r+1,i))}}return aa(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!p}function KP(e,t){const n=e.get(t)[1],a=e.get(t)[2];let r=t-1;const l=[];let o=n._tokenizer;o||(o=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const i=o.events,s=[],p={};let u,c,d=-1,f=n,W=0,m=0;const x=[m];for(;f;){for(;e.get(++r)[1]!==f;);l.push(r),f._tokenizer||(u=a.sliceStream(f),f.next||u.push(null),c&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=n;++d<i.length;)i[d][0]==="exit"&&i[d-1][0]==="enter"&&i[d][1].type===i[d-1][1].type&&i[d][1].start.line!==i[d][1].end.line&&(m=d+1,x.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):x.pop(),d=x.length;d--;){const h=i.slice(x[d],x[d+1]),g=l.pop();s.push([g,g+h.length-1]),e.splice(g,2,h)}for(s.reverse(),d=-1;++d<s.length;)p[W+s[d][0]]=W+s[d][1],W+=s[d][1]-s[d][0]-1;return p}const PP={resolve:DP,tokenize:YP},JP={partial:!0,tokenize:ZP};function DP(e){return Sb(e),e}function YP(e,t){let n;return a;function a(i){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(i)}function r(i){return i===null?l(i):Me(i)?e.check(JP,o,l)(i):(e.consume(i),r)}function l(i){return e.exit("chunkContent"),e.exit("content"),t(i)}function o(i){return e.consume(i),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function ZP(e,t,n){const a=this;return r;function r(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),et(e,l,"linePrefix")}function l(o){if(o===null||Me(o))return n(o);const i=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&i&&i[1].type==="linePrefix"&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(a.parser.constructs.flow,n,t)(o)}}function Ib(e,t,n,a,r,l,o,i,s){const p=s||Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return h===60?(e.enter(a),e.enter(r),e.enter(l),e.consume(h),e.exit(l),d):h===null||h===32||h===41||oA(h)?n(h):(e.enter(a),e.enter(o),e.enter(i),e.enter("chunkString",{contentType:"string"}),m(h))}function d(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(r),e.exit(a),t):(e.enter(i),e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===62?(e.exit("chunkString"),e.exit(i),d(h)):h===null||h===60||Me(h)?n(h):(e.consume(h),h===92?W:f)}function W(h){return h===60||h===62||h===92?(e.consume(h),f):f(h)}function m(h){return!u&&(h===null||h===41||gt(h))?(e.exit("chunkString"),e.exit(i),e.exit(o),e.exit(a),t(h)):u<p&&h===40?(e.consume(h),u++,m):h===41?(e.consume(h),u--,m):h===null||h===32||h===40||oA(h)?n(h):(e.consume(h),h===92?x:m)}function x(h){return h===40||h===41||h===92?(e.consume(h),m):m(h)}}function xb(e,t,n,a,r,l){const o=this;let i=0,s;return p;function p(f){return e.enter(a),e.enter(r),e.consume(f),e.exit(r),e.enter(l),u}function u(f){return i>999||f===null||f===91||f===93&&!s||f===94&&!i&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(l),e.enter(r),e.consume(f),e.exit(r),e.exit(a),t):Me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||Me(f)||i++>999?(e.exit("chunkString"),u(f)):(e.consume(f),s||(s=!He(f)),f===92?d:c)}function d(f){return f===91||f===92||f===93?(e.consume(f),i++,c):c(f)}}function Eb(e,t,n,a,r,l){let o;return i;function i(d){return d===34||d===39||d===40?(e.enter(a),e.enter(r),e.consume(d),e.exit(r),o=d===40?41:d,s):n(d)}function s(d){return d===o?(e.enter(r),e.consume(d),e.exit(r),e.exit(a),t):(e.enter(l),p(d))}function p(d){return d===o?(e.exit(l),s(o)):d===null?n(d):Me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),et(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===o||d===null||Me(d)?(e.exit("chunkString"),p(d)):(e.consume(d),d===92?c:u)}function c(d){return d===o||d===92?(e.consume(d),u):u(d)}}function Zs(e,t){let n;return a;function a(r){return Me(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,a):He(r)?et(e,a,n?"linePrefix":"lineSuffix")(r):t(r)}}const NP={name:"definition",tokenize:HP},GP={partial:!0,tokenize:XP};function HP(e,t,n){const a=this;let r;return l;function l(f){return e.enter("definition"),o(f)}function o(f){return xb.call(a,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function i(f){return r=ja(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):n(f)}function s(f){return gt(f)?Zs(e,p)(f):p(f)}function p(f){return Ib(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(GP,c,c)(f)}function c(f){return He(f)?et(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Me(f)?(e.exit("definition"),a.parser.defined.push(r),t(f)):n(f)}}function XP(e,t,n){return a;function a(i){return gt(i)?Zs(e,r)(i):n(i)}function r(i){return Eb(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(i)}function l(i){return He(i)?et(e,o,"whitespace")(i):o(i)}function o(i){return i===null||Me(i)?t(i):n(i)}}const _P={name:"hardBreakEscape",tokenize:$P};function $P(e,t,n){return a;function a(l){return e.enter("hardBreakEscape"),e.consume(l),r}function r(l){return Me(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const eJ={name:"headingAtx",resolve:tJ,tokenize:nJ};function tJ(e,t){let n=e.length-2,a=3,r,l;return e[a][1].type==="whitespace"&&(a+=2),n-2>a&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&e[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[n][1].end},l={type:"chunkText",start:e[a][1].start,end:e[n][1].end,contentType:"text"},aa(e,a,n-a+1,[["enter",r,t],["enter",l,t],["exit",l,t],["exit",r,t]])),e}function nJ(e,t,n){let a=0;return r;function r(u){return e.enter("atxHeading"),l(u)}function l(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&a++<6?(e.consume(u),o):u===null||gt(u)?(e.exit("atxHeadingSequence"),i(u)):n(u)}function i(u){return u===35?(e.enter("atxHeadingSequence"),s(u)):u===null||Me(u)?(e.exit("atxHeading"),t(u)):He(u)?et(e,i,"whitespace")(u):(e.enter("atxHeadingText"),p(u))}function s(u){return u===35?(e.consume(u),s):(e.exit("atxHeadingSequence"),i(u))}function p(u){return u===null||u===35||gt(u)?(e.exit("atxHeadingText"),i(u)):(e.consume(u),p)}}const aJ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bb=["pre","script","style","textarea"],rJ={concrete:!0,name:"htmlFlow",resolveTo:iJ,tokenize:sJ},lJ={partial:!0,tokenize:uJ},oJ={partial:!0,tokenize:pJ};function iJ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function sJ(e,t,n){const a=this;let r,l,o,i,s;return p;function p(Q){return u(Q)}function u(Q){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Q),c}function c(Q){return Q===33?(e.consume(Q),d):Q===47?(e.consume(Q),l=!0,m):Q===63?(e.consume(Q),r=3,a.interrupt?t:w):yn(Q)?(e.consume(Q),o=String.fromCharCode(Q),x):n(Q)}function d(Q){return Q===45?(e.consume(Q),r=2,f):Q===91?(e.consume(Q),r=5,i=0,W):yn(Q)?(e.consume(Q),r=4,a.interrupt?t:w):n(Q)}function f(Q){return Q===45?(e.consume(Q),a.interrupt?t:w):n(Q)}function W(Q){const N="CDATA[";return Q===N.charCodeAt(i++)?(e.consume(Q),i===N.length?a.interrupt?t:M:W):n(Q)}function m(Q){return yn(Q)?(e.consume(Q),o=String.fromCharCode(Q),x):n(Q)}function x(Q){if(Q===null||Q===47||Q===62||gt(Q)){const N=Q===47,re=o.toLowerCase();return!N&&!l&&bb.includes(re)?(r=1,a.interrupt?t(Q):M(Q)):aJ.includes(o.toLowerCase())?(r=6,N?(e.consume(Q),h):a.interrupt?t(Q):M(Q)):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(Q):l?g(Q):C(Q))}return Q===45||dn(Q)?(e.consume(Q),o+=String.fromCharCode(Q),x):n(Q)}function h(Q){return Q===62?(e.consume(Q),a.interrupt?t:M):n(Q)}function g(Q){return He(Q)?(e.consume(Q),g):b(Q)}function C(Q){return Q===47?(e.consume(Q),b):Q===58||Q===95||yn(Q)?(e.consume(Q),y):He(Q)?(e.consume(Q),C):b(Q)}function y(Q){return Q===45||Q===46||Q===58||Q===95||dn(Q)?(e.consume(Q),y):E(Q)}function E(Q){return Q===61?(e.consume(Q),S):He(Q)?(e.consume(Q),E):C(Q)}function S(Q){return Q===null||Q===60||Q===61||Q===62||Q===96?n(Q):Q===34||Q===39?(e.consume(Q),s=Q,k):He(Q)?(e.consume(Q),S):R(Q)}function k(Q){return Q===s?(e.consume(Q),s=null,V):Q===null||Me(Q)?n(Q):(e.consume(Q),k)}function R(Q){return Q===null||Q===34||Q===39||Q===47||Q===60||Q===61||Q===62||Q===96||gt(Q)?E(Q):(e.consume(Q),R)}function V(Q){return Q===47||Q===62||He(Q)?C(Q):n(Q)}function b(Q){return Q===62?(e.consume(Q),B):n(Q)}function B(Q){return Q===null||Me(Q)?M(Q):He(Q)?(e.consume(Q),B):n(Q)}function M(Q){return Q===45&&r===2?(e.consume(Q),j):Q===60&&r===1?(e.consume(Q),P):Q===62&&r===4?(e.consume(Q),G):Q===63&&r===3?(e.consume(Q),w):Q===93&&r===5?(e.consume(Q),q):Me(Q)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(lJ,te,F)(Q)):Q===null||Me(Q)?(e.exit("htmlFlowData"),F(Q)):(e.consume(Q),M)}function F(Q){return e.check(oJ,z,te)(Q)}function z(Q){return e.enter("lineEnding"),e.consume(Q),e.exit("lineEnding"),T}function T(Q){return Q===null||Me(Q)?F(Q):(e.enter("htmlFlowData"),M(Q))}function j(Q){return Q===45?(e.consume(Q),w):M(Q)}function P(Q){return Q===47?(e.consume(Q),o="",L):M(Q)}function L(Q){if(Q===62){const N=o.toLowerCase();return bb.includes(N)?(e.consume(Q),G):M(Q)}return yn(Q)&&o.length<8?(e.consume(Q),o+=String.fromCharCode(Q),L):M(Q)}function q(Q){return Q===93?(e.consume(Q),w):M(Q)}function w(Q){return Q===62?(e.consume(Q),G):Q===45&&r===2?(e.consume(Q),w):M(Q)}function G(Q){return Q===null||Me(Q)?(e.exit("htmlFlowData"),te(Q)):(e.consume(Q),G)}function te(Q){return e.exit("htmlFlow"),t(Q)}}function pJ(e,t,n){const a=this;return r;function r(o){return Me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return a.parser.lazy[a.now().line]?n(o):t(o)}}function uJ(e,t,n){return a;function a(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ds,t,n)}}const cJ={name:"htmlText",tokenize:AJ};function AJ(e,t,n){const a=this;let r,l,o;return i;function i(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),s}function s(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),E):w===63?(e.consume(w),C):yn(w)?(e.consume(w),R):n(w)}function p(w){return w===45?(e.consume(w),u):w===91?(e.consume(w),l=0,W):yn(w)?(e.consume(w),g):n(w)}function u(w){return w===45?(e.consume(w),f):n(w)}function c(w){return w===null?n(w):w===45?(e.consume(w),d):Me(w)?(o=c,P(w)):(e.consume(w),c)}function d(w){return w===45?(e.consume(w),f):c(w)}function f(w){return w===62?j(w):w===45?d(w):c(w)}function W(w){const G="CDATA[";return w===G.charCodeAt(l++)?(e.consume(w),l===G.length?m:W):n(w)}function m(w){return w===null?n(w):w===93?(e.consume(w),x):Me(w)?(o=m,P(w)):(e.consume(w),m)}function x(w){return w===93?(e.consume(w),h):m(w)}function h(w){return w===62?j(w):w===93?(e.consume(w),h):m(w)}function g(w){return w===null||w===62?j(w):Me(w)?(o=g,P(w)):(e.consume(w),g)}function C(w){return w===null?n(w):w===63?(e.consume(w),y):Me(w)?(o=C,P(w)):(e.consume(w),C)}function y(w){return w===62?j(w):C(w)}function E(w){return yn(w)?(e.consume(w),S):n(w)}function S(w){return w===45||dn(w)?(e.consume(w),S):k(w)}function k(w){return Me(w)?(o=k,P(w)):He(w)?(e.consume(w),k):j(w)}function R(w){return w===45||dn(w)?(e.consume(w),R):w===47||w===62||gt(w)?V(w):n(w)}function V(w){return w===47?(e.consume(w),j):w===58||w===95||yn(w)?(e.consume(w),b):Me(w)?(o=V,P(w)):He(w)?(e.consume(w),V):j(w)}function b(w){return w===45||w===46||w===58||w===95||dn(w)?(e.consume(w),b):B(w)}function B(w){return w===61?(e.consume(w),M):Me(w)?(o=B,P(w)):He(w)?(e.consume(w),B):V(w)}function M(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),r=w,F):Me(w)?(o=M,P(w)):He(w)?(e.consume(w),M):(e.consume(w),z)}function F(w){return w===r?(e.consume(w),r=void 0,T):w===null?n(w):Me(w)?(o=F,P(w)):(e.consume(w),F)}function z(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||gt(w)?V(w):(e.consume(w),z)}function T(w){return w===47||w===62||gt(w)?V(w):n(w)}function j(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function P(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),L}function L(w){return He(w)?et(e,q,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):q(w)}function q(w){return e.enter("htmlTextData"),o(w)}}const tm={name:"labelEnd",resolveAll:gJ,resolveTo:hJ,tokenize:mJ},dJ={tokenize:CJ},fJ={tokenize:vJ},WJ={tokenize:yJ};function gJ(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const r=a.type==="labelImage"?4:2;a.type="data",t+=r}}return e.length!==n.length&&aa(e,0,e.length,n),e}function hJ(e,t){let n=e.length,a=0,r,l,o,i;for(;n--;)if(r=e[n][1],l){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(l=n,r.type!=="labelLink")){a=2;break}}else r.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[l+a+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",p,t]],i=xa(i,e.slice(l+1,l+a+3)),i=xa(i,[["enter",u,t]]),i=xa(i,sA(t.parser.constructs.insideSpan.null,e.slice(l+a+4,o-3),t)),i=xa(i,[["exit",u,t],e[o-2],e[o-1],["exit",p,t]]),i=xa(i,e.slice(o+1)),i=xa(i,[["exit",s,t]]),aa(e,l,e.length,i),e}function mJ(e,t,n){const a=this;let r=a.events.length,l,o;for(;r--;)if((a.events[r][1].type==="labelImage"||a.events[r][1].type==="labelLink")&&!a.events[r][1]._balanced){l=a.events[r][1];break}return i;function i(d){return l?l._inactive?c(d):(o=a.parser.defined.includes(ja(a.sliceSerialize({start:l.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),s):n(d)}function s(d){return d===40?e.attempt(dJ,u,o?u:c)(d):d===91?e.attempt(fJ,u,o?p:c)(d):o?u(d):c(d)}function p(d){return e.attempt(WJ,u,c)(d)}function u(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function CJ(e,t,n){return a;function a(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),r}function r(c){return gt(c)?Zs(e,l)(c):l(c)}function l(c){return c===41?u(c):Ib(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return gt(c)?Zs(e,s)(c):u(c)}function i(c){return n(c)}function s(c){return c===34||c===39||c===40?Eb(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):u(c)}function p(c){return gt(c)?Zs(e,u)(c):u(c)}function u(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function vJ(e,t,n){const a=this;return r;function r(i){return xb.call(a,e,l,o,"reference","referenceMarker","referenceString")(i)}function l(i){return a.parser.defined.includes(ja(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(i):n(i)}function o(i){return n(i)}}function yJ(e,t,n){return a;function a(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),r}function r(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const SJ={name:"labelStartImage",resolveAll:tm.resolveAll,tokenize:IJ};function IJ(e,t,n){const a=this;return r;function r(i){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(i),e.exit("labelImageMarker"),l}function l(i){return i===91?(e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelImage"),o):n(i)}function o(i){return i===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(i):t(i)}}const xJ={name:"labelStartLink",resolveAll:tm.resolveAll,tokenize:EJ};function EJ(e,t,n){const a=this;return r;function r(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(o):t(o)}}const nm={name:"lineEnding",tokenize:bJ};function bJ(e,t){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),et(e,t,"linePrefix")}}const pA={name:"thematicBreak",tokenize:kJ};function kJ(e,t,n){let a=0,r;return l;function l(p){return e.enter("thematicBreak"),o(p)}function o(p){return r=p,i(p)}function i(p){return p===r?(e.enter("thematicBreakSequence"),s(p)):a>=3&&(p===null||Me(p))?(e.exit("thematicBreak"),t(p)):n(p)}function s(p){return p===r?(e.consume(p),a++,s):(e.exit("thematicBreakSequence"),He(p)?et(e,i,"whitespace")(p):i(p))}}const Un={continuation:{tokenize:LJ},exit:QJ,name:"list",tokenize:BJ},wJ={partial:!0,tokenize:VJ},RJ={partial:!0,tokenize:MJ};function BJ(e,t,n){const a=this,r=a.events[a.events.length-1];let l=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return i;function i(f){const W=a.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(W==="listUnordered"?!a.containerState.marker||f===a.containerState.marker:_h(f)){if(a.containerState.type||(a.containerState.type=W,e.enter(W,{_container:!0})),W==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(pA,n,p)(f):p(f);if(!a.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return n(f)}function s(f){return _h(f)&&++o<10?(e.consume(f),s):(!a.interrupt||o<2)&&(a.containerState.marker?f===a.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),p(f)):n(f)}function p(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||f,e.check(Ds,a.interrupt?n:u,e.attempt(wJ,d,c))}function u(f){return a.containerState.initialBlankLine=!0,l++,d(f)}function c(f){return He(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function LJ(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(Ds,r,l);function r(i){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,et(e,t,"listItemIndent",a.containerState.size+1)(i)}function l(i){return a.containerState.furtherBlankLines||!He(i)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,o(i)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(RJ,t,o)(i))}function o(i){return a.containerState._closeFlow=!0,a.interrupt=void 0,et(e,e.attempt(Un,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}function MJ(e,t,n){const a=this;return et(e,r,"listItemIndent",a.containerState.size+1);function r(l){const o=a.events[a.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===a.containerState.size?t(l):n(l)}}function QJ(e){e.exit(this.containerState.type)}function VJ(e,t,n){const a=this;return et(e,r,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(l){const o=a.events[a.events.length-1];return!He(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const kb={name:"setextUnderline",resolveTo:UJ,tokenize:FJ};function UJ(e,t){let n=e.length,a,r,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){a=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,t]),e.splice(l+1,0,["exit",e[a][1],t]),e[a][1].end={...e[l][1].end}):e[a][1]=o,e.push(["exit",o,t]),e}function FJ(e,t,n){const a=this;let r;return l;function l(p){let u=a.events.length,c;for(;u--;)if(a.events[u][1].type!=="lineEnding"&&a.events[u][1].type!=="linePrefix"&&a.events[u][1].type!=="content"){c=a.events[u][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||c)?(e.enter("setextHeadingLine"),r=p,o(p)):n(p)}function o(p){return e.enter("setextHeadingLineSequence"),i(p)}function i(p){return p===r?(e.consume(p),i):(e.exit("setextHeadingLineSequence"),He(p)?et(e,s,"lineSuffix")(p):s(p))}function s(p){return p===null||Me(p)?(e.exit("setextHeadingLine"),t(p)):n(p)}}const zJ={tokenize:qJ};function qJ(e){const t=this,n=e.attempt(Ds,a,e.attempt(this.parser.constructs.flowInitial,r,et(e,e.attempt(this.parser.constructs.flow,r,e.attempt(PP,r)),"linePrefix")));return n;function a(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const jJ={resolveAll:Rb()},TJ=wb("string"),OJ=wb("text");function wb(e){return{resolveAll:Rb(e==="text"?KJ:void 0),tokenize:t};function t(n){const a=this,r=this.parser.constructs[e],l=n.attempt(r,o,i);return o;function o(u){return p(u)?l(u):i(u)}function i(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),s}function s(u){return p(u)?(n.exit("data"),l(u)):(n.consume(u),s)}function p(u){if(u===null)return!0;const c=r[u];let d=-1;if(c)for(;++d<c.length;){const f=c[d];if(!f.previous||f.previous.call(a,a.previous))return!0}return!1}}}function Rb(e){return t;function t(n,a){let r=-1,l;for(;++r<=n.length;)l===void 0?n[r]&&n[r][1].type==="data"&&(l=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==l+2&&(n[l][1].end=n[r-1][1].end,n.splice(l+2,r-l-2),r=l+2),l=void 0);return e?e(n,a):n}}function KJ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const a=e[n-1][1],r=t.sliceStream(a);let l=r.length,o=-1,i=0,s;for(;l--;){const p=r[l];if(typeof p=="string"){for(o=p.length;p.charCodeAt(o-1)===32;)i++,o--;if(o)break;o=-1}else if(p===-2)s=!0,i++;else if(p!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(i=0),i){const p={type:n===e.length||s||i<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:a.start._bufferIndex+o,_index:a.start._index+l,line:a.end.line,column:a.end.column-i,offset:a.end.offset-i},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(e.splice(n,0,["enter",p,t],["exit",p,t]),n+=2)}n++}return e}const PJ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:NP},disable:{null:[]},document:{42:Un,43:Un,45:Un,48:Un,49:Un,50:Un,51:Un,52:Un,53:Un,54:Un,55:Un,56:Un,57:Un,62:hb},flow:{35:eJ,42:pA,45:[kb,pA],60:rJ,61:kb,95:pA,96:yb,126:yb},flowInitial:{[-2]:em,[-1]:em,32:em},insideSpan:{null:[$h,jJ]},string:{38:Cb,92:mb},text:{[-5]:nm,[-4]:nm,[-3]:nm,33:SJ,38:Cb,42:$h,60:[xP,cJ],91:xJ,92:[_P,mb],93:tm,95:$h,96:zP}},Symbol.toStringTag,{value:"Module"}));function JJ(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},l=[];let o=[],i=[];const s={attempt:k(E),check:k(S),consume:g,enter:C,exit:y,interrupt:k(S,{interrupt:!0})},p={code:null,containerState:{},defineSkip:m,events:[],now:W,parser:e,previous:null,sliceSerialize:d,sliceStream:f,write:c};let u=t.tokenize.call(p,s);return t.resolveAll&&l.push(t),p;function c(B){return o=xa(o,B),x(),o[o.length-1]!==null?[]:(R(t,0),p.events=sA(l,p.events,p),p.events)}function d(B,M){return YJ(f(B),M)}function f(B){return DJ(o,B)}function W(){const{_bufferIndex:B,_index:M,line:F,column:z,offset:T}=a;return{_bufferIndex:B,_index:M,line:F,column:z,offset:T}}function m(B){r[B.line]=B.column,b()}function x(){let B;for(;a._index<o.length;){const M=o[a._index];if(typeof M=="string")for(B=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===B&&a._bufferIndex<M.length;)h(M.charCodeAt(a._bufferIndex));else h(M)}}function h(B){u=u(B)}function g(B){Me(B)?(a.line++,a.column=1,a.offset+=B===-3?2:1,b()):B!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===o[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=B}function C(B,M){const F=M||{};return F.type=B,F.start=W(),p.events.push(["enter",F,p]),i.push(F),F}function y(B){const M=i.pop();return M.end=W(),p.events.push(["exit",M,p]),M}function E(B,M){R(B,M.from)}function S(B,M){M.restore()}function k(B,M){return F;function F(z,T,j){let P,L,q,w;return Array.isArray(z)?te(z):"tokenize"in z?te([z]):G(z);function G(ue){return _;function _(H){const de=H!==null&&ue[H],ae=H!==null&&ue.null,X=[...Array.isArray(de)?de:de?[de]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return te(X)(H)}}function te(ue){return P=ue,L=0,ue.length===0?j:Q(ue[L])}function Q(ue){return _;function _(H){return w=V(),q=ue,ue.partial||(p.currentConstruct=ue),ue.name&&p.parser.constructs.disable.null.includes(ue.name)?re():ue.tokenize.call(M?Object.assign(Object.create(p),M):p,s,N,re)(H)}}function N(ue){return B(q,w),T}function re(ue){return w.restore(),++L<P.length?Q(P[L]):j}}}function R(B,M){B.resolveAll&&!l.includes(B)&&l.push(B),B.resolve&&aa(p.events,M,p.events.length-M,B.resolve(p.events.slice(M),p)),B.resolveTo&&(p.events=B.resolveTo(p.events,p))}function V(){const B=W(),M=p.previous,F=p.currentConstruct,z=p.events.length,T=Array.from(i);return{from:z,restore:j};function j(){a=B,p.previous=M,p.currentConstruct=F,p.events.length=z,i=T,b()}}function b(){a.line in r&&a.column<2&&(a.column=r[a.line],a.offset+=r[a.line]-1)}}function DJ(e,t){const n=t.start._index,a=t.start._bufferIndex,r=t.end._index,l=t.end._bufferIndex;let o;if(n===r)o=[e[n].slice(a,l)];else{if(o=e.slice(n,r),a>-1){const i=o[0];typeof i=="string"?o[0]=i.slice(a):o.shift()}l>0&&o.push(e[r].slice(0,l))}return o}function YJ(e,t){let n=-1;const a=[];let r;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
793
793
  `;break}case-3:{o=`\r
794
- `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&r)continue;o=" ";break}default:o=String.fromCharCode(l)}r=l===-2,a.push(o)}return a.join("")}function ZJ(e){const a={constructs:db([PJ,...(e||{}).extensions||[]]),content:r(hP),defined:[],document:r(CP),flow:r(zJ),lazy:{},string:r(TJ),text:r(OJ)};return a;function r(l){return o;function o(i){return JJ(a,l,i)}}}function NJ(e){for(;!Sb(e););return e}const Bb=/[\0\t\n\r]/g;function GJ(){let e=1,t="",n=!0,a;return r;function r(l,o,i){const s=[];let p,u,c,d,f;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(Bb.lastIndex=c,p=Bb.exec(l),d=p&&p.index!==void 0?p.index:l.length,f=l.charCodeAt(d),!p){t=l.slice(c);break}if(f===10&&c===d&&a)s.push(-3),a=void 0;else switch(a&&(s.push(-5),a=void 0),c<d&&(s.push(l.slice(c,d)),e+=d-c),f){case 0:{s.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,s.push(-2);e++<u;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:a=!0,e=1}c=d+1}return i&&(a&&s.push(-5),t&&s.push(t),s.push(null)),s}}const HJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function XJ(e){return e.replace(HJ,_J)}function _J(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),l=r===120||r===88;return fb(n.slice(l?2:1),l?16:10)}return Xh(n)||e}const Lb={}.hasOwnProperty;function $J(e,t,n){return typeof t!="string"&&(n=t,t=void 0),eD(n)(NJ(ZJ(n).document().write(GJ()(e,t,!0))))}function eD(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ke),autolinkProtocol:V,autolinkEmail:V,atxHeading:l(ve),blockQuote:l(ae),characterEscape:V,characterReference:V,codeFenced:l(G),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(G,o),codeText:l(he,o),codeTextData:V,data:V,codeFlowValue:V,definition:l(ge),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(me),hardBreakEscape:l(ce),hardBreakTrailing:l(ce),htmlFlow:l(Ze,o),htmlFlowData:V,htmlText:l(Ze,o),htmlTextData:V,image:l(le),label:o,link:l(Ke),listItem:l(Be),listItemValue:d,listOrdered:l(qe,c),listUnordered:l(qe),paragraph:l(Te),reference:Q,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(ve),strong:l(Pe),thematicBreak:l(it)},exit:{atxHeading:s(),atxHeadingSequence:E,autolink:s(),autolinkEmail:de,autolinkProtocol:ee,blockQuote:s(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:ue,characterReference:X,codeFenced:s(x),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:W,codeFlowValue:b,codeIndented:s(h),codeText:s(T),codeTextData:b,data:b,definition:s(),definitionDestinationString:y,definitionLabelString:g,definitionTitleString:C,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s(F),htmlFlowData:b,htmlText:s(z),htmlTextData:b,image:s(P),label:q,labelText:L,lineEnding:B,link:s(j),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:N,resourceDestinationString:w,resourceTitleString:H,resource:te,setextHeading:s(R),setextHeadingLineSequence:k,setextHeadingText:S,strong:s(),thematicBreak:s()}};Mb(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(D){let ne={type:"root",children:[]};const U={stack:[ne],tokenStack:[],config:t,enter:i,exit:p,buffer:o,resume:u,data:n},O=[];let Y=-1;for(;++Y<D.length;)if(D[Y][1].type==="listOrdered"||D[Y][1].type==="listUnordered")if(D[Y][0]==="enter")O.push(Y);else{const Ie=O.pop();Y=r(D,Ie,Y)}for(Y=-1;++Y<D.length;){const Ie=t[D[Y][0]];Lb.call(Ie,D[Y][1].type)&&Ie[D[Y][1].type].call(Object.assign({sliceSerialize:D[Y][2].sliceSerialize},U),D[Y][1])}if(U.tokenStack.length>0){const Ie=U.tokenStack[U.tokenStack.length-1];(Ie[1]||Qb).call(U,void 0,Ie[0])}for(ne.position={start:rl(D.length>0?D[0][1].start:{line:1,column:1,offset:0}),end:rl(D.length>0?D[D.length-2][1].end:{line:1,column:1,offset:0})},Y=-1;++Y<t.transforms.length;)ne=t.transforms[Y](ne)||ne;return ne}function r(D,ne,U){let O=ne-1,Y=-1,Ie=!1,Se,pe,xe,Qe;for(;++O<=U;){const Je=D[O];switch(Je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Je[0]==="enter"?Y++:Y--,Qe=void 0;break}case"lineEndingBlank":{Je[0]==="enter"&&(Se&&!Qe&&!Y&&!xe&&(xe=O),Qe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qe=void 0}if(!Y&&Je[0]==="enter"&&Je[1].type==="listItemPrefix"||Y===-1&&Je[0]==="exit"&&(Je[1].type==="listUnordered"||Je[1].type==="listOrdered")){if(Se){let ft=O;for(pe=void 0;ft--;){const bt=D[ft];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;pe&&(D[pe][1].type="lineEndingBlank",Ie=!0),bt[1].type="lineEnding",pe=ft}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}xe&&(!pe||xe<pe)&&(Se._spread=!0),Se.end=Object.assign({},pe?D[pe][1].start:Je[1].end),D.splice(pe||O,0,["exit",Se,Je[2]]),O++,U++}if(Je[1].type==="listItemPrefix"){const ft={type:"listItem",_spread:!1,start:Object.assign({},Je[1].start),end:void 0};Se=ft,D.splice(O,0,["enter",ft,Je[2]]),O++,U++,xe=void 0,Qe=!0}}}return D[ne][1]._spread=Ie,U}function l(D,ne){return U;function U(O){i.call(this,D(O),O),ne&&ne.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function i(D,ne,U){this.stack[this.stack.length-1].children.push(D),this.stack.push(D),this.tokenStack.push([ne,U||void 0]),D.position={start:rl(ne.start),end:void 0}}function s(D){return ne;function ne(U){D&&D.call(this,U),p.call(this,U)}}function p(D,ne){const U=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==D.type&&(ne?ne.call(this,D,O[0]):(O[1]||Qb).call(this,D,O[0]));else throw new Error("Cannot close `"+D.type+"` ("+Ps({start:D.start,end:D.end})+"): it’s not open");U.position.end=rl(D.end)}function u(){return Hh(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(D){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(D),10),this.data.expectingFirstListItemValue=void 0}}function f(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=D}function W(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=D}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D.replace(/(\r?\n|\r)$/g,"")}function g(D){const ne=this.resume(),U=this.stack[this.stack.length-1];U.label=ne,U.identifier=ja(this.sliceSerialize(D)).toLowerCase()}function C(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.title=D}function y(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.url=D}function E(D){const ne=this.stack[this.stack.length-1];if(!ne.depth){const U=this.sliceSerialize(D).length;ne.depth=U}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function k(D){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(D).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function V(D){const U=this.stack[this.stack.length-1].children;let O=U[U.length-1];(!O||O.type!=="text")&&(O=je(),O.position={start:rl(D.start),end:void 0},U.push(O)),this.stack.push(O)}function b(D){const ne=this.stack.pop();ne.value+=this.sliceSerialize(D),ne.position.end=rl(D.end)}function B(D){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=ne.children[ne.children.length-1];U.position.end=rl(D.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ne.type)&&(V.call(this,D),b.call(this,D))}function M(){this.data.atHardBreak=!0}function F(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D}function z(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D}function T(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D}function j(){const D=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=ne,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function P(){const D=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=ne,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function L(D){const ne=this.sliceSerialize(D),U=this.stack[this.stack.length-2];U.label=XJ(ne),U.identifier=ja(ne).toLowerCase()}function q(){const D=this.stack[this.stack.length-1],ne=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const O=D.children;U.children=O}else U.alt=ne}function w(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.url=D}function H(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.title=D}function te(){this.data.inReference=void 0}function Q(){this.data.referenceType="collapsed"}function N(D){const ne=this.resume(),U=this.stack[this.stack.length-1];U.label=ne,U.identifier=ja(this.sliceSerialize(D)).toLowerCase(),this.data.referenceType="full"}function re(D){this.data.characterReferenceType=D.type}function ue(D){const ne=this.sliceSerialize(D),U=this.data.characterReferenceType;let O;U?(O=fb(ne,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=Xh(ne);const Y=this.stack[this.stack.length-1];Y.value+=O}function X(D){const ne=this.stack.pop();ne.position.end=rl(D.end)}function ee(D){b.call(this,D);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(D)}function de(D){b.call(this,D);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(D)}function ae(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function he(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function me(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function ce(){return{type:"break"}}function Ze(){return{type:"html",value:""}}function le(){return{type:"image",title:null,url:"",alt:null}}function Ke(){return{type:"link",title:null,url:"",children:[]}}function qe(D){return{type:"list",ordered:D.type==="listOrdered",start:null,spread:D._spread,children:[]}}function Be(D){return{type:"listItem",spread:D._spread,checked:null,children:[]}}function Te(){return{type:"paragraph",children:[]}}function Pe(){return{type:"strong",children:[]}}function je(){return{type:"text",value:""}}function it(){return{type:"thematicBreak"}}}function rl(e){return{line:e.line,column:e.column,offset:e.offset}}function Mb(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?Mb(e,a):tD(e,a)}}function tD(e,t){let n;for(n in t)if(Lb.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function Qb(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ps({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ps({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ps({start:t.start,end:t.end})+") is still open")}function nD(e){const t=this;t.parser=n;function n(a){return $J(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function aD(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function rD(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
794
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&r)continue;o=" ";break}default:o=String.fromCharCode(l)}r=l===-2,a.push(o)}return a.join("")}function ZJ(e){const a={constructs:db([PJ,...(e||{}).extensions||[]]),content:r(hP),defined:[],document:r(CP),flow:r(zJ),lazy:{},string:r(TJ),text:r(OJ)};return a;function r(l){return o;function o(i){return JJ(a,l,i)}}}function NJ(e){for(;!Sb(e););return e}const Bb=/[\0\t\n\r]/g;function GJ(){let e=1,t="",n=!0,a;return r;function r(l,o,i){const s=[];let p,u,c,d,f;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(Bb.lastIndex=c,p=Bb.exec(l),d=p&&p.index!==void 0?p.index:l.length,f=l.charCodeAt(d),!p){t=l.slice(c);break}if(f===10&&c===d&&a)s.push(-3),a=void 0;else switch(a&&(s.push(-5),a=void 0),c<d&&(s.push(l.slice(c,d)),e+=d-c),f){case 0:{s.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,s.push(-2);e++<u;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:a=!0,e=1}c=d+1}return i&&(a&&s.push(-5),t&&s.push(t),s.push(null)),s}}const HJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function XJ(e){return e.replace(HJ,_J)}function _J(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),l=r===120||r===88;return fb(n.slice(l?2:1),l?16:10)}return Xh(n)||e}const Lb={}.hasOwnProperty;function $J(e,t,n){return typeof t!="string"&&(n=t,t=void 0),eD(n)(NJ(ZJ(n).document().write(GJ()(e,t,!0))))}function eD(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ke),autolinkProtocol:V,autolinkEmail:V,atxHeading:l(ve),blockQuote:l(ae),characterEscape:V,characterReference:V,codeFenced:l(X),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(X,o),codeText:l(he,o),codeTextData:V,data:V,codeFlowValue:V,definition:l(We),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(me),hardBreakEscape:l(ce),hardBreakTrailing:l(ce),htmlFlow:l(Ze,o),htmlFlowData:V,htmlText:l(Ze,o),htmlTextData:V,image:l(le),label:o,link:l(Ke),listItem:l(Be),listItemValue:d,listOrdered:l(qe,c),listUnordered:l(qe),paragraph:l(Te),reference:Q,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(ve),strong:l(Pe),thematicBreak:l(it)},exit:{atxHeading:s(),atxHeadingSequence:E,autolink:s(),autolinkEmail:de,autolinkProtocol:H,blockQuote:s(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:ue,characterReference:_,codeFenced:s(x),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:W,codeFlowValue:b,codeIndented:s(h),codeText:s(T),codeTextData:b,data:b,definition:s(),definitionDestinationString:y,definitionLabelString:g,definitionTitleString:C,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s(F),htmlFlowData:b,htmlText:s(z),htmlTextData:b,image:s(P),label:q,labelText:L,lineEnding:B,link:s(j),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:N,resourceDestinationString:w,resourceTitleString:G,resource:te,setextHeading:s(R),setextHeadingLineSequence:k,setextHeadingText:S,strong:s(),thematicBreak:s()}};Mb(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(D){let ne={type:"root",children:[]};const U={stack:[ne],tokenStack:[],config:t,enter:i,exit:p,buffer:o,resume:u,data:n},O=[];let Y=-1;for(;++Y<D.length;)if(D[Y][1].type==="listOrdered"||D[Y][1].type==="listUnordered")if(D[Y][0]==="enter")O.push(Y);else{const Ie=O.pop();Y=r(D,Ie,Y)}for(Y=-1;++Y<D.length;){const Ie=t[D[Y][0]];Lb.call(Ie,D[Y][1].type)&&Ie[D[Y][1].type].call(Object.assign({sliceSerialize:D[Y][2].sliceSerialize},U),D[Y][1])}if(U.tokenStack.length>0){const Ie=U.tokenStack[U.tokenStack.length-1];(Ie[1]||Qb).call(U,void 0,Ie[0])}for(ne.position={start:rl(D.length>0?D[0][1].start:{line:1,column:1,offset:0}),end:rl(D.length>0?D[D.length-2][1].end:{line:1,column:1,offset:0})},Y=-1;++Y<t.transforms.length;)ne=t.transforms[Y](ne)||ne;return ne}function r(D,ne,U){let O=ne-1,Y=-1,Ie=!1,Se,pe,xe,Qe;for(;++O<=U;){const Je=D[O];switch(Je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Je[0]==="enter"?Y++:Y--,Qe=void 0;break}case"lineEndingBlank":{Je[0]==="enter"&&(Se&&!Qe&&!Y&&!xe&&(xe=O),Qe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qe=void 0}if(!Y&&Je[0]==="enter"&&Je[1].type==="listItemPrefix"||Y===-1&&Je[0]==="exit"&&(Je[1].type==="listUnordered"||Je[1].type==="listOrdered")){if(Se){let ft=O;for(pe=void 0;ft--;){const bt=D[ft];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;pe&&(D[pe][1].type="lineEndingBlank",Ie=!0),bt[1].type="lineEnding",pe=ft}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}xe&&(!pe||xe<pe)&&(Se._spread=!0),Se.end=Object.assign({},pe?D[pe][1].start:Je[1].end),D.splice(pe||O,0,["exit",Se,Je[2]]),O++,U++}if(Je[1].type==="listItemPrefix"){const ft={type:"listItem",_spread:!1,start:Object.assign({},Je[1].start),end:void 0};Se=ft,D.splice(O,0,["enter",ft,Je[2]]),O++,U++,xe=void 0,Qe=!0}}}return D[ne][1]._spread=Ie,U}function l(D,ne){return U;function U(O){i.call(this,D(O),O),ne&&ne.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function i(D,ne,U){this.stack[this.stack.length-1].children.push(D),this.stack.push(D),this.tokenStack.push([ne,U||void 0]),D.position={start:rl(ne.start),end:void 0}}function s(D){return ne;function ne(U){D&&D.call(this,U),p.call(this,U)}}function p(D,ne){const U=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==D.type&&(ne?ne.call(this,D,O[0]):(O[1]||Qb).call(this,D,O[0]));else throw new Error("Cannot close `"+D.type+"` ("+Ps({start:D.start,end:D.end})+"): it’s not open");U.position.end=rl(D.end)}function u(){return Hh(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(D){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(D),10),this.data.expectingFirstListItemValue=void 0}}function f(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=D}function W(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=D}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D.replace(/(\r?\n|\r)$/g,"")}function g(D){const ne=this.resume(),U=this.stack[this.stack.length-1];U.label=ne,U.identifier=ja(this.sliceSerialize(D)).toLowerCase()}function C(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.title=D}function y(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.url=D}function E(D){const ne=this.stack[this.stack.length-1];if(!ne.depth){const U=this.sliceSerialize(D).length;ne.depth=U}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function k(D){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(D).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function V(D){const U=this.stack[this.stack.length-1].children;let O=U[U.length-1];(!O||O.type!=="text")&&(O=je(),O.position={start:rl(D.start),end:void 0},U.push(O)),this.stack.push(O)}function b(D){const ne=this.stack.pop();ne.value+=this.sliceSerialize(D),ne.position.end=rl(D.end)}function B(D){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=ne.children[ne.children.length-1];U.position.end=rl(D.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ne.type)&&(V.call(this,D),b.call(this,D))}function M(){this.data.atHardBreak=!0}function F(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D}function z(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D}function T(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.value=D}function j(){const D=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=ne,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function P(){const D=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=ne,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function L(D){const ne=this.sliceSerialize(D),U=this.stack[this.stack.length-2];U.label=XJ(ne),U.identifier=ja(ne).toLowerCase()}function q(){const D=this.stack[this.stack.length-1],ne=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const O=D.children;U.children=O}else U.alt=ne}function w(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.url=D}function G(){const D=this.resume(),ne=this.stack[this.stack.length-1];ne.title=D}function te(){this.data.inReference=void 0}function Q(){this.data.referenceType="collapsed"}function N(D){const ne=this.resume(),U=this.stack[this.stack.length-1];U.label=ne,U.identifier=ja(this.sliceSerialize(D)).toLowerCase(),this.data.referenceType="full"}function re(D){this.data.characterReferenceType=D.type}function ue(D){const ne=this.sliceSerialize(D),U=this.data.characterReferenceType;let O;U?(O=fb(ne,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=Xh(ne);const Y=this.stack[this.stack.length-1];Y.value+=O}function _(D){const ne=this.stack.pop();ne.position.end=rl(D.end)}function H(D){b.call(this,D);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(D)}function de(D){b.call(this,D);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(D)}function ae(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function he(){return{type:"inlineCode",value:""}}function We(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function me(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function ce(){return{type:"break"}}function Ze(){return{type:"html",value:""}}function le(){return{type:"image",title:null,url:"",alt:null}}function Ke(){return{type:"link",title:null,url:"",children:[]}}function qe(D){return{type:"list",ordered:D.type==="listOrdered",start:null,spread:D._spread,children:[]}}function Be(D){return{type:"listItem",spread:D._spread,checked:null,children:[]}}function Te(){return{type:"paragraph",children:[]}}function Pe(){return{type:"strong",children:[]}}function je(){return{type:"text",value:""}}function it(){return{type:"thematicBreak"}}}function rl(e){return{line:e.line,column:e.column,offset:e.offset}}function Mb(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?Mb(e,a):tD(e,a)}}function tD(e,t){let n;for(n in t)if(Lb.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function Qb(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ps({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ps({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ps({start:t.start,end:t.end})+") is still open")}function nD(e){const t=this;t.parser=n;function n(a){return $J(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function aD(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function rD(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
795
795
  `}]}function lD(e,t){const n=t.value?t.value+`
796
796
  `:"",a={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(a.className=["language-"+r[0]]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function oD(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iD(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sD(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),r=ni(a.toLowerCase()),l=e.footnoteOrder.indexOf(a);let o,i=e.footnoteCounts.get(a);i===void 0?(i=0,e.footnoteOrder.push(a),o=e.footnoteOrder.length):o=l+1,i+=1,e.footnoteCounts.set(a,i);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const p={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,p),e.applyData(t,p)}function pD(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uD(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Vb(e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const r=e.all(t),l=r[0];l&&l.type==="text"?l.value="["+l.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=a:r.push({type:"text",value:a}),r}function cD(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return Vb(e,t);const r={src:ni(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(r.title=a.title);const l={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,l),e.applyData(t,l)}function AD(e,t){const n={src:ni(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function dD(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function fD(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return Vb(e,t);const r={href:ni(a.url||"")};a.title!==null&&a.title!==void 0&&(r.title=a.title);const l={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function WD(e,t){const n={href:ni(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function gD(e,t,n){const a=e.all(t),r=n?hD(n):Ub(t),l={},o=[];if(typeof t.checked=="boolean"){const u=a[0];let c;u&&u.type==="element"&&u.tagName==="p"?c=u:(c={type:"element",tagName:"p",properties:{},children:[]},a.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let i=-1;for(;++i<a.length;){const u=a[i];(r||i!==0||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
797
797
  `}),u.type==="element"&&u.tagName==="p"&&!r?o.push(...u.children):o.push(u)}const s=a[a.length-1];s&&(r||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
@@ -816,7 +816,7 @@ data: `)[1];throw console.error("[v3-sse] error event:",W),new Error(JSON.parse(
816
816
  `))+1))}const o="#".repeat(r),i=n.enter("headingAtx"),s=n.enter("phrasing");l.move(o+" ");let p=n.containerPhrasing(e,{before:"# ",after:`
817
817
  `,...l.current()});return/^[\t ]/.test(p)&&(p=Xs(p.charCodeAt(0))+p.slice(1)),p=p?o+" "+p:o,n.options.closeAtx&&(p+=" "+o),s(),i(),p}mk.peek=SZ;function mk(e){return e.value||""}function SZ(){return"<"}Ck.peek=IZ;function Ck(e,t,n,a){const r=Im(n),l=r==='"'?"Quote":"Apostrophe",o=n.enter("image");let i=n.enter("label");const s=n.createTracker(a);let p=s.move("![");return p+=s.move(n.safe(e.alt,{before:p,after:"]",...s.current()})),p+=s.move("]("),i(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(i=n.enter("destinationLiteral"),p+=s.move("<"),p+=s.move(n.safe(e.url,{before:p,after:">",...s.current()})),p+=s.move(">")):(i=n.enter("destinationRaw"),p+=s.move(n.safe(e.url,{before:p,after:e.title?" ":")",...s.current()}))),i(),e.title&&(i=n.enter(`title${l}`),p+=s.move(" "+r),p+=s.move(n.safe(e.title,{before:p,after:r,...s.current()})),p+=s.move(r),i()),p+=s.move(")"),o(),p}function IZ(){return"!"}vk.peek=xZ;function vk(e,t,n,a){const r=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const i=n.createTracker(a);let s=i.move("![");const p=n.safe(e.alt,{before:s,after:"]",...i.current()});s+=i.move(p+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...i.current()});return o(),n.stack=u,l(),r==="full"||!p||p!==c?s+=i.move(c+"]"):r==="shortcut"?s=s.slice(0,-1):s+=i.move("]"),s}function xZ(){return"!"}yk.peek=EZ;function yk(e,t,n){let a=e.value||"",r="`",l=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(a);)r+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++l<n.unsafe.length;){const o=n.unsafe[l],i=n.compilePattern(o);let s;if(o.atBreak)for(;s=i.exec(a);){let p=s.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(s.index+1)}}return r+a+r}function EZ(){return"`"}function Sk(e,t){const n=Hh(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ik.peek=bZ;function Ik(e,t,n,a){const r=Im(n),l=r==='"'?"Quote":"Apostrophe",o=n.createTracker(a);let i,s;if(Sk(e,n)){const u=n.stack;n.stack=[],i=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),i(),n.stack=u,c}i=n.enter("link"),s=n.enter("label");let p=o.move("[");return p+=o.move(n.containerPhrasing(e,{before:p,after:"](",...o.current()})),p+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),p+=o.move("<"),p+=o.move(n.safe(e.url,{before:p,after:">",...o.current()})),p+=o.move(">")):(s=n.enter("destinationRaw"),p+=o.move(n.safe(e.url,{before:p,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=n.enter(`title${l}`),p+=o.move(" "+r),p+=o.move(n.safe(e.title,{before:p,after:r,...o.current()})),p+=o.move(r),s()),p+=o.move(")"),i(),p}function bZ(e,t,n){return Sk(e,n)?"<":"["}xk.peek=kZ;function xk(e,t,n,a){const r=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const i=n.createTracker(a);let s=i.move("[");const p=n.containerPhrasing(e,{before:s,after:"]",...i.current()});s+=i.move(p+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...i.current()});return o(),n.stack=u,l(),r==="full"||!p||p!==c?s+=i.move(c+"]"):r==="shortcut"?s=s.slice(0,-1):s+=i.move("]"),s}function kZ(){return"["}function xm(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function wZ(e){const t=xm(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function RZ(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ek(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function BZ(e,t,n,a){const r=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?RZ(n):xm(n);const i=e.ordered?o==="."?")":".":wZ(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),Ek(n)===o&&u){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=i),n.bulletCurrent=o;const p=n.containerFlow(e,a);return n.bulletLastUsed=o,n.bulletCurrent=l,r(),p}function LZ(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function MZ(e,t,n,a){const r=LZ(n);let l=n.bulletCurrent||xm(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const i=n.createTracker(a);i.move(l+" ".repeat(o-l.length)),i.shift(o);const s=n.enter("listItem"),p=n.indentLines(n.containerFlow(e,i.current()),u);return s(),p;function u(c,d,f){return d?(f?"":" ".repeat(o))+c:(f?l:l+" ".repeat(o-l.length))+c}}function QZ(e,t,n,a){const r=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,a);return l(),r(),o}const VZ=WA(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function UZ(e,t,n,a){return(e.children.some(function(o){return VZ(o)})?n.containerPhrasing:n.containerFlow).call(n,e,a)}function FZ(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}bk.peek=zZ;function bk(e,t,n,a){const r=FZ(n),l=n.enter("strong"),o=n.createTracker(a),i=o.move(r+r);let s=o.move(n.containerPhrasing(e,{after:r,before:i,...o.current()}));const p=s.charCodeAt(0),u=CA(a.before.charCodeAt(a.before.length-1),p,r);u.inside&&(s=Xs(p)+s.slice(1));const c=s.charCodeAt(s.length-1),d=CA(a.after.charCodeAt(0),c,r);d.inside&&(s=s.slice(0,-1)+Xs(c));const f=o.move(r+r);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},i+s+f}function zZ(e,t,n){return n.options.strong||"*"}function qZ(e,t,n,a){return n.safe(e.value,a)}function jZ(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function TZ(e,t,n){const a=(Ek(n)+(n.options.ruleSpaces?" ":"")).repeat(jZ(n));return n.options.ruleSpaces?a.slice(0,-1):a}const kk={blockquote:pZ,break:gk,code:WZ,definition:hZ,emphasis:hk,hardBreak:gk,heading:yZ,html:mk,image:Ck,imageReference:vk,inlineCode:yk,link:Ik,linkReference:xk,list:BZ,listItem:MZ,paragraph:QZ,root:UZ,strong:bk,text:qZ,thematicBreak:TZ};function OZ(){return{enter:{table:KZ,tableData:wk,tableHeader:wk,tableRow:JZ},exit:{codeText:DZ,table:PZ,tableData:Em,tableHeader:Em,tableRow:Em}}}function KZ(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function PZ(e){this.exit(e),this.data.inTable=void 0}function JZ(e){this.enter({type:"tableRow",children:[]},e)}function Em(e){this.exit(e)}function wk(e){this.enter({type:"tableCell",children:[]},e)}function DZ(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,YZ));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function YZ(e,t){return t==="|"?t:e}function ZZ(e){const t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,r=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
818
818
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:o,tableCell:s,tableRow:i}};function o(f,W,m,x){return p(u(f,m,x),f.align)}function i(f,W,m,x){const h=c(f,m,x),g=p([h]);return g.slice(0,g.indexOf(`
819
- `))}function s(f,W,m,x){const h=m.enter("tableCell"),g=m.enter("phrasing"),C=m.containerPhrasing(f,{...x,before:l,after:l});return g(),h(),C}function p(f,W){return iZ(f,{align:W,alignDelimiters:a,padding:n,stringLength:r})}function u(f,W,m){const x=f.children;let h=-1;const g=[],C=W.enter("table");for(;++h<x.length;)g[h]=c(x[h],W,m);return C(),g}function c(f,W,m){const x=f.children;let h=-1;const g=[],C=W.enter("tableRow");for(;++h<x.length;)g[h]=s(x[h],f,W,m);return C(),g}function d(f,W,m){let x=kk.inlineCode(f,W,m);return m.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function NZ(){return{exit:{taskListCheckValueChecked:Rk,taskListCheckValueUnchecked:Rk,paragraph:HZ}}}function GZ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:XZ}}}function Rk(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function HZ(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const r=t.children;let l=-1,o;for(;++l<r.length;){const i=r[l];if(i.type==="paragraph"){o=i;break}}o===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function XZ(e,t,n,a){const r=e.children[0],l=typeof e.checked=="boolean"&&r&&r.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",i=n.createTracker(a);l&&i.move(o);let s=kk.listItem(e,t,n,{...a,...i.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),s;function p(u){return u+o}}function _Z(){return[BY(),XY(),tZ(),OZ(),NZ()]}function $Z(e){return{extensions:[LY(),_Y(e),nZ(),ZZ(e),GZ()]}}const eN={tokenize:oN,partial:!0},Bk={tokenize:iN,partial:!0},Lk={tokenize:sN,partial:!0},Mk={tokenize:pN,partial:!0},tN={tokenize:uN,partial:!0},Qk={name:"wwwAutolink",tokenize:rN,previous:Uk},Vk={name:"protocolAutolink",tokenize:lN,previous:Fk},Ir={name:"emailAutolink",tokenize:aN,previous:zk},ar={};function nN(){return{text:ar}}let Kl=48;for(;Kl<123;)ar[Kl]=Ir,Kl++,Kl===58?Kl=65:Kl===91&&(Kl=97);ar[43]=Ir,ar[45]=Ir,ar[46]=Ir,ar[95]=Ir,ar[72]=[Ir,Vk],ar[104]=[Ir,Vk],ar[87]=[Ir,Qk],ar[119]=[Ir,Qk];function aN(e,t,n){const a=this;let r,l;return o;function o(c){return!bm(c)||!zk.call(a,a.previous)||km(a.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(c))}function i(c){return bm(c)?(e.consume(c),i):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(tN,u,p)(c):c===45||c===95||dn(c)?(l=!0,e.consume(c),s):u(c)}function p(c){return e.consume(c),r=!0,s}function u(c){return l&&r&&yn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function rN(e,t,n){const a=this;return r;function r(o){return o!==87&&o!==119||!Uk.call(a,a.previous)||km(a.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eN,e.attempt(Bk,e.attempt(Lk,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function lN(e,t,n){const a=this;let r="",l=!1;return o;function o(c){return(c===72||c===104)&&Fk.call(a,a.previous)&&!km(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(c),e.consume(c),i):n(c)}function i(c){if(yn(c)&&r.length<5)return r+=String.fromCodePoint(c),e.consume(c),i;if(c===58){const d=r.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?p:(l=!0,s)):n(c)}function p(c){return c===null||oA(c)||gt(c)||Ol(c)||iA(c)?n(c):e.attempt(Bk,e.attempt(Lk,u),n)(c)}function u(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function oN(e,t,n){let a=0;return r;function r(o){return(o===87||o===119)&&a<3?(a++,e.consume(o),r):o===46&&a===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function iN(e,t,n){let a,r,l;return o;function o(p){return p===46||p===95?e.check(Mk,s,i)(p):p===null||gt(p)||Ol(p)||p!==45&&iA(p)?s(p):(l=!0,e.consume(p),o)}function i(p){return p===95?a=!0:(r=a,a=void 0),e.consume(p),o}function s(p){return r||a||!l?n(p):t(p)}}function sN(e,t){let n=0,a=0;return r;function r(o){return o===40?(n++,e.consume(o),r):o===41&&a<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Mk,t,l)(o):o===null||gt(o)||Ol(o)?t(o):(e.consume(o),r)}function l(o){return o===41&&a++,e.consume(o),r}}function pN(e,t,n){return a;function a(i){return i===33||i===34||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===63||i===95||i===126?(e.consume(i),a):i===38?(e.consume(i),l):i===93?(e.consume(i),r):i===60||i===null||gt(i)||Ol(i)?t(i):n(i)}function r(i){return i===null||i===40||i===91||gt(i)||Ol(i)?t(i):a(i)}function l(i){return yn(i)?o(i):n(i)}function o(i){return i===59?(e.consume(i),a):yn(i)?(e.consume(i),o):n(i)}}function uN(e,t,n){return a;function a(l){return e.consume(l),r}function r(l){return dn(l)?n(l):t(l)}}function Uk(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||gt(e)}function Fk(e){return!yn(e)}function zk(e){return!(e===47||bm(e))}function bm(e){return e===43||e===45||e===46||e===95||dn(e)}function km(e){let t=e.length,n=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){n=!0;break}if(a._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const cN={tokenize:CN,partial:!0};function AN(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gN,continuation:{tokenize:hN},exit:mN}},text:{91:{name:"gfmFootnoteCall",tokenize:WN},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dN,resolveTo:fN}}}}function dN(e,t,n){const a=this;let r=a.events.length;const l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o;for(;r--;){const s=a.events[r][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return i;function i(s){if(!o||!o._balanced)return n(s);const p=ja(a.sliceSerialize({start:o.end,end:a.now()}));return p.codePointAt(0)!==94||!l.includes(p.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function fN(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},i=[e[n+1],e[n+2],["enter",a,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(n,e.length-n+1,...i),e}function WN(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l=0,o;return i;function i(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(c){if(l>999||c===93&&!o||c===null||c===91||gt(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return r.includes(ja(a.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return gt(c)||(o=!0),l++,e.consume(c),c===92?u:p}function u(c){return c===91||c===92||c===93?(e.consume(c),l++,p):p(c)}}function gN(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l,o=0,i;return s;function s(W){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(W){return W===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(W)}function u(W){if(o>999||W===93&&!i||W===null||W===91||gt(W))return n(W);if(W===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return l=ja(a.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return gt(W)||(i=!0),o++,e.consume(W),W===92?c:u}function c(W){return W===91||W===92||W===93?(e.consume(W),o++,u):u(W)}function d(W){return W===58?(e.enter("definitionMarker"),e.consume(W),e.exit("definitionMarker"),r.includes(l)||r.push(l),et(e,f,"gfmFootnoteDefinitionWhitespace")):n(W)}function f(W){return t(W)}}function hN(e,t,n){return e.check(Ds,t,e.attempt(cN,t,n))}function mN(e){e.exit("gfmFootnoteDefinition")}function CN(e,t,n){const a=this;return et(e,r,"gfmFootnoteDefinitionIndent",5);function r(l){const o=a.events[a.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function vN(e){let n=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:l,resolveAll:r};return n==null&&(n=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function r(o,i){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let p=s;for(;p--;)if(o[p][0]==="exit"&&o[p][1].type==="strikethroughSequenceTemporary"&&o[p][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[p][1].end.offset-o[p][1].start.offset){o[s][1].type="strikethroughSequence",o[p][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[p][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[p][1].end),end:Object.assign({},o[s][1].start)},d=[["enter",u,i],["enter",o[p][1],i],["exit",o[p][1],i],["enter",c,i]],f=i.parser.constructs.insideSpan.null;f&&aa(d,d.length,0,sA(f,o.slice(p+1,s),i)),aa(d,d.length,0,[["exit",c,i],["enter",o[s][1],i],["exit",o[s][1],i],["exit",u,i]]),aa(o,p-1,s-p+3,d),s=p+d.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,i,s){const p=this.previous,u=this.events;let c=0;return d;function d(W){return p===126&&u[u.length-1][1].type!=="characterEscape"?s(W):(o.enter("strikethroughSequenceTemporary"),f(W))}function f(W){const m=ai(p);if(W===126)return c>1?s(W):(o.consume(W),c++,f);if(c<2&&!n)return s(W);const x=o.exit("strikethroughSequenceTemporary"),h=ai(W);return x._open=!h||h===2&&!!m,x._close=!m||m===2&&!!h,i(W)}}}class yN{constructor(){this.map=[]}add(t,n,a){SN(this,t,n,a)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const a=[];for(;n>0;)n-=1,a.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];a.push(t.slice()),t.length=0;let r=a.pop();for(;r;){for(const l of r)t.push(l);r=a.pop()}this.map.length=0}}function SN(e,t,n,a){let r=0;if(!(n===0&&a.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...a);return}r+=1}e.map.push([t,n,a])}}function IN(e,t){let n=!1;const a=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=a.length-1;a[l]=a[l]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return a}function xN(){return{flow:{null:{name:"table",tokenize:EN,resolveAll:bN}}}}function EN(e,t,n){const a=this;let r=0,l=0,o;return i;function i(b){let B=a.events.length-1;for(;B>-1;){const z=a.events[B][1].type;if(z==="lineEnding"||z==="linePrefix")B--;else break}const M=B>-1?a.events[B][1].type:null,F=M==="tableHead"||M==="tableRow"?S:s;return F===S&&a.parser.lazy[a.now().line]?n(b):F(b)}function s(b){return e.enter("tableHead"),e.enter("tableRow"),p(b)}function p(b){return b===124||(o=!0,l+=1),u(b)}function u(b){return b===null?n(b):Me(b)?l>1?(l=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):n(b):He(b)?et(e,u,"whitespace")(b):(l+=1,o&&(o=!1,r+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),c(b)))}function c(b){return b===null||b===124||gt(b)?(e.exit("data"),u(b)):(e.consume(b),b===92?d:c)}function d(b){return b===92||b===124?(e.consume(b),c):c(b)}function f(b){return a.interrupt=!1,a.parser.lazy[a.now().line]?n(b):(e.enter("tableDelimiterRow"),o=!1,He(b)?et(e,W,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):W(b))}function W(b){return b===45||b===58?x(b):b===124?(o=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),m):E(b)}function m(b){return He(b)?et(e,x,"whitespace")(b):x(b)}function x(b){return b===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),h):b===45?(l+=1,h(b)):b===null||Me(b)?y(b):E(b)}function h(b){return b===45?(e.enter("tableDelimiterFiller"),g(b)):E(b)}function g(b){return b===45?(e.consume(b),g):b===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(b))}function C(b){return He(b)?et(e,y,"whitespace")(b):y(b)}function y(b){return b===124?W(b):b===null||Me(b)?!o||r!==l?E(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):E(b)}function E(b){return n(b)}function S(b){return e.enter("tableRow"),k(b)}function k(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),k):b===null||Me(b)?(e.exit("tableRow"),t(b)):He(b)?et(e,k,"whitespace")(b):(e.enter("data"),R(b))}function R(b){return b===null||b===124||gt(b)?(e.exit("data"),k(b)):(e.consume(b),b===92?V:R)}function V(b){return b===92||b===124?(e.consume(b),R):R(b)}}function bN(e,t){let n=-1,a=!0,r=0,l=[0,0,0,0],o=[0,0,0,0],i=!1,s=0,p,u,c;const d=new yN;for(;++n<e.length;){const f=e[n],W=f[1];f[0]==="enter"?W.type==="tableHead"?(i=!1,s!==0&&(qk(d,t,s,p,u),u=void 0,s=0),p={type:"table",start:Object.assign({},W.start),end:Object.assign({},W.end)},d.add(n,0,[["enter",p,t]])):W.type==="tableRow"||W.type==="tableDelimiterRow"?(a=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],i&&(i=!1,u={type:"tableBody",start:Object.assign({},W.start),end:Object.assign({},W.end)},d.add(n,0,[["enter",u,t]])),r=W.type==="tableDelimiterRow"?2:u?3:1):r&&(W.type==="data"||W.type==="tableDelimiterMarker"||W.type==="tableDelimiterFiller")?(a=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=vA(d,t,l,r,void 0,c),l=[0,0,0,0]),o[2]=n)):W.type==="tableCellDivider"&&(a?a=!1:(l[1]!==0&&(o[0]=o[1],c=vA(d,t,l,r,void 0,c)),l=o,o=[l[1],n,0,0])):W.type==="tableHead"?(i=!0,s=n):W.type==="tableRow"||W.type==="tableDelimiterRow"?(s=n,l[1]!==0?(o[0]=o[1],c=vA(d,t,l,r,n,c)):o[1]!==0&&(c=vA(d,t,o,r,n,c)),r=0):r&&(W.type==="data"||W.type==="tableDelimiterMarker"||W.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&qk(d,t,s,p,u),d.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=IN(t.events,n))}return e}function vA(e,t,n,a,r,l){const o=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",i="tableContent";n[0]!==0&&(l.end=Object.assign({},li(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=li(t.events,n[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const p=li(t.events,n[2]),u=li(t.events,n[3]),c={type:i,start:Object.assign({},p),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",c,t]]),a!==2){const d=t.events[n[2]],f=t.events[n[3]];if(d[1].end=Object.assign({},f[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const W=n[2]+1,m=n[3]-n[2]-1;e.add(W,m,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return r!==void 0&&(l.end=Object.assign({},li(t.events,r)),e.add(r,0,[["exit",l,t]]),l=void 0),l}function qk(e,t,n,a,r){const l=[],o=li(t.events,n);r&&(r.end=Object.assign({},o),l.push(["exit",r,t])),a.end=Object.assign({},o),l.push(["exit",a,t]),e.add(n+1,0,l)}function li(e,t){const n=e[t],a=n[0]==="enter"?"start":"end";return n[1][a]}const kN={name:"tasklistCheck",tokenize:RN};function wN(){return{text:{91:kN}}}function RN(e,t,n){const a=this;return r;function r(s){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return gt(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(s)}function i(s){return Me(s)?t(s):He(s)?e.check({tokenize:BN},t,n)(s):n(s)}}function BN(e,t,n){return et(e,a,"whitespace");function a(r){return r===null?n(r):t(r)}}function LN(e){return db([nN(),AN(),vN(e),xN(),wN()])}const MN={};function QN(e){const t=this,n=e||MN,a=t.data(),r=a.micromarkExtensions||(a.micromarkExtensions=[]),l=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),o=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);r.push(LN(n)),l.push(_Z()),o.push($Z(n))}function yA({text:e,className:t,dense:n,disableLinks:a}){const r=a?{a:({children:l,href:o})=>A.jsx("span",{title:o,style:{color:"inherit",textDecoration:"underline",cursor:"default"},children:l})}:void 0;return A.jsx(K,{className:t,component:"div",sx:{"& p":{margin:n?"0 0 0.5em":"0 0 0.75em","&:last-child":{marginBottom:0}},"& ul, & ol":{margin:"0.25em 0",paddingLeft:"1.5em"},"& li":{marginBottom:"0.25em"},"& strong":{fontWeight:600},"& code":{fontSize:"0.9em",bgcolor:"action.hover",px:.5,borderRadius:.5},"& pre":{overflow:"auto",margin:"0.5em 0","& code":{bgcolor:"transparent",px:0}},"& table":{width:"100%",borderCollapse:"collapse",margin:"0.5em 0",fontSize:"0.9em"},"& th, & td":{border:"1px solid",borderColor:"divider",padding:"6px 10px",textAlign:"start"},"& th":{fontWeight:600,bgcolor:"action.hover"},"& tr:nth-of-type(even)":{bgcolor:"action.hover"},lineHeight:1.6,fontSize:"0.9375rem"},children:A.jsx(vY,{remarkPlugins:[QN],components:r,children:e})})}const At=rA,VN=Hc(qE,rA);function UN(e){return e.map(t=>({...t,timestamp:new Date(t.timestamp)}))}function FN(e){return e.map(t=>({...t,timestamp:t.timestamp.toISOString()}))}const xr=new qj;function jk({domain:e="",onClose:t,logo:n="",logoBackgroundHex:a,language:r,context:l}){Gc(VN,"smsAIChat-styles");const o=vr(),i=vW(o.breakpoints.down("sm")),s=Go(),{step2Data:p}=bg(),u=p==null?void 0:p.websiteUrl,c=u??e,[d,f]=v.useState([]),W=d.length>0,[m,x]=v.useState(""),[h,g]=v.useState(!1),[C,y]=v.useState(!1),[E,S]=v.useState(null),[k,R]=v.useState(null),V=v.useRef(null),b=v.useRef(null),B=v.useRef(null);v.useEffect(()=>{const L=ix(Rg,c);f(UN(L))},[c]),v.useEffect(()=>{d.length!==0&&sx(Rg,c,FN(d))},[c,d]);const M=v.useCallback(()=>{b.current?b.current.scrollTo({top:b.current.scrollHeight,behavior:"smooth"}):V.current&&V.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[]);v.useEffect(()=>{M()},[d,M]),v.useEffect(()=>{let L=!1;return(async()=>{try{xr.getToken(c)||await xr.createSession(c,c),L||(y(!0),S(null))}catch(w){L||S(w instanceof Error?w.message:"לא ניתן להתחבר לצ'אט SMS")}})(),()=>{L=!0}},[c]);const F=v.useCallback(async L=>{let q=xr.getToken(c);if(!q)try{const{token:N}=await xr.createSession(c,u??e);if(q=N,!q){f(re=>[...re,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}catch{f(N=>[...N,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}const w=xr.getToken(c);let H;try{H=await xr.sendMessage({token:w,message:L,domain:c,...r&&{language:r},...l&&{context:l}})}catch(N){if(N instanceof Error&&N.message==="SESSION_NOT_FOUND")try{const{token:re}=await xr.createSession(c,u??e);if(re)H=await xr.sendMessage({token:re,message:L,domain:c,...r&&{language:r},...l&&{context:l}});else throw new Error("לא ניתן ליצור סשן חדש")}catch{f(ue=>[...ue,{id:Date.now().toString(),text:"פג תוקף השיחה. התחילו שיחה חדשה.",sender:"ai",timestamp:new Date}]);return}else{f(re=>[...re,{id:Date.now().toString(),text:N instanceof Error?N.message:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}const te=(H.quickQuestions||[]).filter(N=>typeof N=="string"&&N.trim().length>0).map(N=>N.trim()),Q=H.sms&&H.sms.trim()?H.sms.trim():void 0;if(Q){const N=Date.now();f(re=>[...re,{id:N.toString(),text:H.answer,sender:"ai",timestamp:new Date},{id:(N+1).toString(),text:Q,sender:"ai",timestamp:new Date,sms:Q,...te.length>0&&{quickQuestions:te}}])}else f(N=>[...N,{id:Date.now().toString(),text:H.answer,sender:"ai",timestamp:new Date,...te.length>0&&{quickQuestions:te}}])},[e,u,c,r,l]),z=async L=>{const q=(L??m).trim();if(!q||h||!C)return;const w={id:Date.now().toString(),text:q,sender:"user",timestamp:new Date};f(H=>[...H,w]),L==null&&x(""),g(!0),setTimeout(()=>{var H;return(H=B.current)==null?void 0:H.focus()},0);try{await F(q)}finally{g(!1),setTimeout(()=>{var H;return(H=B.current)==null?void 0:H.focus()},100)}},T=L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),z())},j=()=>{xr.clearSession(c),px(Rg,c),f([])},P=(L,q)=>{if(R(L),s)try{s.triggerEvent("onUseSms",q)}catch(w){console.error("Error triggering onUseSms:",w)}window.dispatchEvent(new CustomEvent("business-ai-use-sms",{detail:{sms:q},bubbles:!0,composed:!0})),setTimeout(()=>R(null),1e4)};return E&&!C?A.jsxs(K,{className:At.smsChatContainer,"data-lang":"he",sx:{p:3},children:[A.jsx(fe,{color:"error",children:E}),t&&A.jsx(fe,{component:"button",onClick:t,sx:{mt:2,textDecoration:"underline",cursor:"pointer"},children:"סגור"})]}):C?A.jsxs(K,{"data-lang":"he",className:At.smsChatContainer,sx:{p:0,flex:1,minHeight:0,minWidth:0,maxWidth:"100%",display:"flex",width:"100%",flexDirection:"column",overflow:"hidden",pt:10},children:[A.jsx(K,{ref:b,className:At.messagesContainer,sx:{flex:"1 1 0",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:W?A.jsxs(A.Fragment,{children:[d.map(L=>A.jsxs(K,{children:[A.jsxs(K,{className:`${At.messageWrapper} ${L.sender==="user"?At.userMessage:At.aiMessage}`,children:[L.sender==="ai"&&A.jsx(Sr,{className:At.messageAvatar,children:A.jsx(aA,{})}),A.jsx(Nt,{className:`${At.messageBubble} ${L.sender==="user"?At.userBubble:At.aiBubble}`,elevation:0,sx:{backgroundColor:L.sender==="user"?"#e0e0e0":"#9c27b0",color:L.sender==="user"?"#333333":"#ffffff"},children:L.sender==="ai"?A.jsx(yA,{text:L.text,className:At.messageText,dense:!0,disableLinks:!0}):A.jsx(fe,{variant:"body1",className:At.messageText,children:L.text})}),L.sender==="user"&&A.jsx(Sr,{className:At.messageAvatar,src:n,sx:{bgcolor:n?a??"transparent":"#9c27b0"},children:!n&&"U"})]}),L.sender==="ai"&&L.sms&&A.jsx(K,{className:At.quickQuestionsContainer,children:k===L.id?A.jsxs(K,{className:At.bouncingDots,children:[A.jsx("span",{}),A.jsx("span",{}),A.jsx("span",{})]}):A.jsx(ze,{variant:"contained",size:"small",onClick:()=>P(L.id,L.sms),sx:{bgcolor:"#000",color:"#fff","&:hover":{bgcolor:"#333"},textTransform:"none"},children:"בחירת הודעה"})}),L.sender==="ai"&&L.quickQuestions&&L.quickQuestions.length>0&&A.jsx(K,{className:At.quickQuestionsContainer,children:L.quickQuestions.map((q,w)=>A.jsx(vn,{label:q,onClick:()=>z(q),disabled:h,className:At.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},w))})]},L.id)),h&&A.jsxs(K,{className:`${At.messageWrapper} ${At.aiMessage}`,children:[A.jsx(Sr,{className:At.messageAvatar,children:A.jsx(aA,{})}),A.jsx(Nt,{className:`${At.messageBubble} ${At.aiBubble}`,elevation:0,children:A.jsx(va,{size:16,className:At.loadingSpinner})})]}),A.jsx("div",{ref:V})]}):A.jsxs(K,{className:At.welcomeScreen,children:[A.jsx(Sr,{className:At.aiAvatar,children:A.jsx(aA,{})}),A.jsx(fe,{variant:"h5",className:At.welcomeTitle,children:"איזה SMS תרצו ליצור?"})]})}),W&&A.jsx(K,{sx:{flexShrink:0,flexGrow:0,display:"flex",justifyContent:"flex-start",px:1,pb:.5},children:A.jsx(ze,{size:"small",startIcon:A.jsx(Fl,{}),onClick:j,sx:{textTransform:"none"},children:"שיחה חדשה"})}),A.jsx(K,{className:At.inputContainer,sx:{flexShrink:0,flexGrow:0},children:A.jsx(K,{sx:{flex:1,minWidth:0,maxWidth:"100%",display:"flex",flexDirection:"column",gap:.5},children:A.jsx(at,{inputRef:B,fullWidth:!0,multiline:!0,minRows:2,maxRows:6,placeholder:i?void 0:"צור SMS עבור...",value:m,onChange:L=>x(L.target.value),onKeyPress:T,disabled:h,variant:"outlined",className:At.inputField,inputProps:i?{"aria-label":"הודעה ל-SMS"}:void 0,InputProps:{endAdornment:A.jsx(Hn,{onClick:()=>z(),disabled:!m.trim()||h,size:"small",sx:{alignSelf:"flex-end",mb:.5,marginInlineEnd:.5,flexShrink:0,bgcolor:"#9c27b0",color:"white","&:hover":{bgcolor:"#7b1fa2"},"&.Mui-disabled":{bgcolor:"#e0e0e0",color:"#9e9e9e"}},children:A.jsx(Vh,{fontSize:"small"})})},sx:{width:"100%",minWidth:0,maxWidth:"100%","& .MuiOutlinedInput-root":{borderRadius:"24px",backgroundColor:"#f5f5f5",minWidth:0,width:"100%",maxWidth:"100%",boxSizing:"border-box","& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},alignItems:"flex-end"},"& .MuiOutlinedInput-input":{padding:"12px 16px",paddingInlineEnd:52,lineHeight:"1.5",boxSizing:"border-box"},"& textarea":{minWidth:0,maxWidth:"100%",overflowX:"hidden"}}})})})]}):A.jsx(K,{className:At.smsChatContainer,"data-lang":"he",sx:{display:"flex",alignItems:"center",justifyContent:"center",p:3},children:A.jsx(va,{})})}var wm={},zN=Fe;Object.defineProperty(wm,"__esModule",{value:!0});var Tk=wm.default=void 0,qN=zN(Oe()),jN=A;Tk=wm.default=(0,qN.default)((0,jN.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");var Rm={},TN=Fe;Object.defineProperty(Rm,"__esModule",{value:!0});var _s=Rm.default=void 0,ON=TN(Oe()),KN=A;_s=Rm.default=(0,ON.default)((0,KN.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-5h2zm4 0h-2v-3h2zm0-5h-2v-2h2zm4 5h-2V7h2z"}),"Analytics");const dt=rA,PN=Hc(qE,rA);function JN(e){return e.map(t=>{const{componentType:n,...a}=t;return{...a,timestamp:new Date(t.timestamp),...n&&{componentType:n}}})}function DN(e){return e.map(t=>({...t,timestamp:t.timestamp.toISOString()}))}const Er=new jj;function YN({componentType:e,content:t}){const n=t||"";if(e==="card")return A.jsx(Nt,{elevation:0,sx:{p:2,mt:1,bgcolor:"#f5f5f5",borderRadius:2},children:A.jsx(yA,{text:n,dense:!0})});if(e==="numbers"){const a=n.split(/\n/).filter(Boolean);return A.jsx(K,{sx:{display:"flex",flexWrap:"wrap",gap:1,mt:1},children:a.map((r,l)=>A.jsx(vn,{label:r,size:"small",sx:{borderRadius:1}},l))})}if(e==="todoList"){const a=n.split(/\n/).filter(Boolean);return A.jsx(K,{component:"ul",sx:{mt:1,pl:2.5,mb:0},children:a.map((r,l)=>A.jsx(fe,{component:"li",variant:"body2",sx:{mb:.5},children:r.replace(/^[-*]\s*/,"")},l))})}return e==="graph"||e==="image"?A.jsxs(Nt,{elevation:0,sx:{p:2,mt:1,bgcolor:"#fafafa",borderRadius:2},children:[A.jsx(fe,{variant:"caption",color:"text.secondary",children:e==="graph"?"גרף":"תמונה"}),A.jsx(K,{sx:{mt:.5},children:A.jsx(yA,{text:n,dense:!0})})]}):null}function Ok({domain:e="",context:t,onClose:n,language:a}){Gc(PN,"analyzeAIChat-styles");const r=vr(),l=vW(r.breakpoints.up("lg")),o=vW(r.breakpoints.down("sm")),[i,s]=v.useState([]),p=i.length>0,[u,c]=v.useState(""),[d,f]=v.useState(!1),[W,m]=v.useState(!1),[x,h]=v.useState(null),g=v.useRef(null),C=v.useRef(null),y=v.useRef(null),E=v.useMemo(()=>{const B=new Set,M=[];return i.forEach(F=>{var z;(z=F.sources)==null||z.forEach(T=>{T.url&&!B.has(T.url)&&(B.add(T.url),M.push(T))})}),M},[i]);v.useEffect(()=>{const B=ix(Bg,e);s(JN(B))},[e]),v.useEffect(()=>{i.length!==0&&sx(Bg,e,DN(i))},[e,i]);const S=v.useCallback(()=>{C.current?C.current.scrollTo({top:C.current.scrollHeight,behavior:"smooth"}):g.current&&g.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[]);v.useEffect(()=>{S()},[i,S]),v.useEffect(()=>{let B=!1;return(async()=>{try{Er.getToken(e)||await Er.createSession(e),B||(m(!0),h(null))}catch(F){B||h(F instanceof Error?F.message:"לא ניתן להתחבר לצ'אט ניתוח עסקי")}})(),()=>{B=!0}},[e,a]);const k=v.useCallback(async B=>{let M=Er.getToken(e);if(!M)try{const{token:T}=await Er.createSession(e);if(M=T,!M){s(j=>[...j,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}catch{s(T=>[...T,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}const F=Er.getToken(e);let z;try{z=await Er.sendMessage({token:F,message:B,domain:e,...t&&{context:t}})}catch(T){if(T instanceof Error&&T.message==="SESSION_NOT_FOUND")try{const{token:j}=await Er.createSession(e);if(j)z=await Er.sendMessage({token:j,message:B,domain:e,...t&&{context:t}});else throw new Error("לא ניתן ליצור סשן חדש")}catch{s(j=>[...j,{id:Date.now().toString(),text:"פג תוקף השיחה. התחילו שיחה חדשה.",sender:"ai",timestamp:new Date}]);return}else{s(j=>[...j,{id:Date.now().toString(),text:T instanceof Error?T.message:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}s(T=>{var j,P;return[...T,{id:Date.now().toString(),text:z.answer,sender:"ai",timestamp:new Date,quickQuestions:((j=z.quickQuestions)==null?void 0:j.filter(L=>L&&String(L).trim()))||[],...z.componentType&&{componentType:z.componentType},...z.markdown!=null&&{markdown:z.markdown},...((P=z.sources)==null?void 0:P.length)&&{sources:z.sources}}]})},[e,t,a]),R=async B=>{const M=(B??u).trim();if(!M||d||!W)return;const F={id:Date.now().toString(),text:M,sender:"user",timestamp:new Date};s(z=>[...z,F]),B||c(""),f(!0),setTimeout(()=>{var z;return(z=y.current)==null?void 0:z.focus()},0);try{await k(M)}finally{f(!1),setTimeout(()=>{var z;return(z=y.current)==null?void 0:z.focus()},100)}},V=B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),R())},b=()=>{Er.clearSession(e),px(Bg,e),s([])};return x&&!W?A.jsxs(K,{className:dt.smsChatContainer,"data-lang":"he",sx:{p:3},children:[A.jsx(fe,{color:"error",children:x}),n&&A.jsx(fe,{component:"button",onClick:n,sx:{mt:2,textDecoration:"underline",cursor:"pointer"},children:"סגור"})]}):W?A.jsxs(K,{"data-lang":"he",sx:{p:0,flex:1,minHeight:0,display:"flex",width:"100%",maxWidth:"100%",minWidth:0,overflow:"hidden",boxSizing:"border-box",pt:10},children:[A.jsx(K,{sx:{overflow:"auto",maxHeight:"85vh"},children:A.jsxs(K,{className:dt.smsChatContainer,sx:{p:0,flex:1,minHeight:0,display:"flex",minWidth:0,flexDirection:"column",overflow:"hidden"},children:[A.jsx(K,{ref:C,className:dt.messagesContainer,sx:{flex:"1 1 0",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:p?A.jsxs(A.Fragment,{children:[i.map(B=>A.jsxs(K,{children:[A.jsxs(K,{className:`${dt.messageWrapper} ${B.sender==="user"?dt.userMessage:dt.aiMessage}`,children:[B.sender==="ai"&&A.jsx(Sr,{className:dt.messageAvatar,children:A.jsx(_s,{})}),A.jsx(Nt,{className:`${dt.messageBubble} ${B.sender==="user"?dt.userBubble:dt.aiBubble}`,elevation:0,sx:{backgroundColor:B.sender==="user"?"#e0e0e0":"#9c27b0",color:B.sender==="user"?"#333333":"#ffffff"},children:B.sender==="ai"?A.jsx(yA,{text:B.text,className:dt.messageText,dense:!0}):A.jsx(fe,{variant:"body1",className:dt.messageText,children:B.text})}),B.sender==="user"&&A.jsx(Sr,{className:dt.messageAvatar,children:"U"})]}),B.sender==="ai"&&B.componentType&&(B.markdown??B.text)&&A.jsx(YN,{componentType:B.componentType,content:B.markdown??B.text}),B.sender==="ai"&&B.quickQuestions&&B.quickQuestions.length>0&&A.jsx(K,{className:dt.quickQuestionsContainer,children:B.quickQuestions.map((M,F)=>A.jsx(vn,{label:M,onClick:()=>R(M),disabled:d,className:dt.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},F))}),B.sender==="ai"&&B.sources&&B.sources.length>0&&!l&&A.jsxs(K,{className:dt.quickQuestionsContainer,sx:{mt:1},children:[A.jsx(fe,{variant:"caption",color:"text.secondary",component:"span",sx:{fontWeight:600,mr:.5},children:"מקורות:"}),B.sources.map((M,F)=>A.jsx(vn,{label:M.title||`מקור ${F+1}`,onClick:()=>window.open(M.url,"_blank","noopener,noreferrer"),size:"small",className:dt.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},F))]})]},B.id)),d&&A.jsxs(K,{className:`${dt.messageWrapper} ${dt.aiMessage}`,children:[A.jsx(Sr,{className:dt.messageAvatar,children:A.jsx(_s,{})}),A.jsx(Nt,{className:`${dt.messageBubble} ${dt.aiBubble}`,elevation:0,children:A.jsx(va,{size:16,className:dt.loadingSpinner})})]}),A.jsx("div",{ref:g})]}):A.jsxs(K,{className:dt.welcomeScreen,children:[A.jsx(Sr,{className:dt.aiAvatar,children:A.jsx(_s,{})}),A.jsx(fe,{variant:"h5",className:dt.welcomeTitle,children:"בואו נדבר על העסק שלך, על המתחרים ועל ההזדמנויות שמחכות לכם."})]})}),p&&A.jsx(K,{sx:{flexShrink:0,display:"flex",justifyContent:"flex-start",px:1,pb:.5},children:A.jsx(ze,{size:"small",startIcon:A.jsx(Fl,{}),onClick:b,sx:{textTransform:"none"},children:"שיחה חדשה"})}),A.jsx(K,{className:dt.inputContainer,sx:{flexShrink:0,flexGrow:0},children:A.jsx(K,{sx:{flex:1,minWidth:0,maxWidth:"100%",display:"flex",flexDirection:"column",gap:.5},children:A.jsx(at,{inputRef:y,fullWidth:!0,multiline:!0,minRows:2,maxRows:6,placeholder:o?void 0:"מי המתחרים שלי? איך לנצח את השנה ? מה החוזקות והחולשות שלי",value:u,onChange:B=>c(B.target.value),onKeyPress:V,disabled:d,variant:"outlined",className:dt.inputField,inputProps:o?{"aria-label":"שאלה לניתוח עסקי"}:void 0,InputProps:{endAdornment:A.jsx(Hn,{onClick:()=>R(),disabled:!u.trim()||d,size:"small",sx:{alignSelf:"flex-end",mb:.5,marginInlineEnd:.5,flexShrink:0,bgcolor:"#9c27b0",color:"white","&:hover":{bgcolor:"#7b1fa2"},"&.Mui-disabled":{bgcolor:"#e0e0e0",color:"#9e9e9e"}},children:A.jsx(Vh,{fontSize:"small"})})},sx:{width:"100%",minWidth:0,maxWidth:"100%","& .MuiOutlinedInput-root":{borderRadius:"24px",backgroundColor:"#f5f5f5",minWidth:0,width:"100%",maxWidth:"100%",boxSizing:"border-box","& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},alignItems:"flex-end"},"& .MuiOutlinedInput-input":{padding:"12px 16px",paddingInlineEnd:52,lineHeight:"1.5",boxSizing:"border-box"},"& textarea":{minWidth:0,maxWidth:"100%",overflowX:"hidden"}}})})})]})}),l&&E.length>0&&A.jsxs(K,{sx:{width:200,flexShrink:0,maxHeight:"100%",height:"100%",borderInlineStart:"1px solid",borderColor:"divider",display:"flex",flexDirection:"column",overflow:"hidden",bgcolor:"grey.50"},children:[A.jsx(fe,{variant:"subtitle2",sx:{p:2,fontWeight:600,flexShrink:0},children:"מקורות"}),A.jsx(K,{sx:{flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden",WebkitOverflowScrolling:"touch",px:1.5,pb:2,display:"flex",flexDirection:"column",maxHeight:"85vh",gap:1.5},children:E.map((B,M)=>A.jsxs(Nt,{elevation:0,sx:{p:1.5,borderRadius:1,bgcolor:"background.paper"},children:[A.jsxs(fe,{variant:"body2",sx:{fontWeight:500},children:[A.jsxs("span",{children:[M,")"," "]}),B.title||`מקור ${M+1}`]}),B.snippet&&A.jsx(fe,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:.5},children:B.snippet}),A.jsx(ze,{size:"small",startIcon:A.jsx(Tk,{}),href:B.url,target:"_blank",rel:"noopener noreferrer",sx:{mt:1,textTransform:"none"},children:"עבור למקור"})]},M))})]})]}):A.jsx(K,{className:dt.smsChatContainer,"data-lang":"he",sx:{display:"flex",alignItems:"center",justifyContent:"center",p:3},children:A.jsx(va,{})})}var Bm={},ZN=Fe;Object.defineProperty(Bm,"__esModule",{value:!0});var Kk=Bm.default=void 0,NN=ZN(Oe()),GN=A;Kk=Bm.default=(0,NN.default)((0,GN.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Lm={},HN=Fe;Object.defineProperty(Lm,"__esModule",{value:!0});var Pk=Lm.default=void 0,XN=HN(Oe()),_N=A;Pk=Lm.default=(0,XN.default)((0,_N.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");var Mm={},$N=Fe;Object.defineProperty(Mm,"__esModule",{value:!0});var Jk=Mm.default=void 0,e4=$N(Oe()),t4=A;Jk=Mm.default=(0,e4.default)((0,t4.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M9 11H7V9h2zm4 0h-2V9h2zm4 0h-2V9h2z"}),"Sms");const $s=Ul;function Dk({onCardClick:e,className:t=""}){const{t:n}=Nn(),a=[{id:"email",title:n("actionCards.email"),description:n("actionCardsDesc.email"),step:3,icon:Kk},{id:"domain",title:n("actionCards.domain"),description:n("actionCardsDesc.domain"),icon:Pk},{id:"sms",title:n("actionCards.sms"),description:n("actionCardsDesc.sms"),icon:Jk},{id:"analyze",title:n("actionCards.analyze"),description:n("actionCardsDesc.analyze"),step:1,icon:_s}];return A.jsx(K,{className:t,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:{xs:1.25,sm:1.5},width:"100%"},children:a.map(r=>{const l=r.icon;return A.jsxs(K,{component:"button",type:"button",className:$s.actionCard,onClick:()=>e(r),children:[A.jsx("span",{className:$s.actionCardIcon,children:A.jsx(l,{sx:{fontSize:28,..._o}})}),A.jsxs("span",{className:$s.actionCardContent,children:[A.jsx("span",{className:$s.actionCardTitle,children:r.title}),A.jsx("span",{className:$s.actionCardDescription,children:r.description})]})]},r.id)})})}const Pl=Ul;function n4({userName:e="",websiteUrl:t="",businessName:n="",setActiveStep:a}){var x,h;const{t:r}=Nn(),l=Go(),{setOpenDomainFinder:o,openSmsChat:i,setOpenSmsChat:s,openAnalyzeChat:p,setOpenAnalyzeChat:u}=Ua(),{step2Data:c}=bg(),[d,f]=v.useState(!1),W=()=>{l&&(l.open=!1)},m=g=>{g.id==="email"&&g.step!==void 0?a==null||a(g.step):g.id==="domain"?(o(!0),a==null||a(0)):g.id==="sms"?s(!0):g.id==="analyze"?u(!0):g.id==="series"&&(a==null||a(-4))};if(v.useEffect(()=>{f(!0)},[]),i)return A.jsxs(K,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:[A.jsx(K,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:0,py:4,borderBottom:"1px solid",borderColor:"divider",flexShrink:0,width:"100%"}}),A.jsx(K,{sx:{flex:1,minHeight:0,minWidth:0,maxWidth:"100%",width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(jk,{domain:t,onClose:()=>s(!1),logo:c==null?void 0:c.logo,logoBackgroundHex:c==null?void 0:c.logoBackgroundHex})})]});if(p){const g=c?[(x=c.businessData)==null?void 0:x.business_name,(h=c.businessData)==null?void 0:h.description,c.websiteUrl].filter(Boolean).join(" | "):{};return A.jsxs(K,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:[A.jsx(K,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:0,py:4,borderBottom:"1px solid",borderColor:"divider",flexShrink:0,width:"100%"}}),A.jsx(K,{sx:{flex:1,minHeight:0,minWidth:0,maxWidth:"100%",width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Ok,{domain:t,context:g||void 0,onClose:()=>u(!1)})})]})}return A.jsx(K,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",position:"relative",boxSizing:"border-box"},children:A.jsxs(ut,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(vn,{label:"Business AI",className:d?Pl.fadeUp:"",icon:A.jsx(_c,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},margin:"0 auto",fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsx(K,{className:d?Pl.fadeUpDelay1:"",sx:{mb:{xs:2,sm:2.5},display:"flex",justifyContent:"center",alignItems:"center"},children:A.jsx(WE,{sx:{fontSize:{xs:50,sm:65,md:80},..._o}})}),A.jsxs(K,{sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(fe,{component:"h1",variant:"h4",className:d?Pl.fadeUpDelay2:"",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary",textAlign:"center"},children:e?r("thankyou.title",{name:e}):`${r("thankyou.titleNoName")}!`}),A.jsx(fe,{variant:"body2",color:"text.secondary",className:d?Pl.fadeUpDelay4:"",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,textAlign:"center",maxWidth:"min(44ch, 100%)",mx:"auto"},children:r("thankyou.subtitle")}),A.jsx(fe,{variant:"body2",color:"text.secondary",className:d?Pl.fadeUpDelay5:"",sx:{mt:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,textAlign:"center",maxWidth:"min(44ch, 100%)",mx:"auto"},children:r("thankyou.whatNext")})]}),A.jsx(K,{sx:{textAlign:"center"},className:d?Pl.fadeUpDelay5:"",children:A.jsx(Dk,{onCardClick:m})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ze,{onClick:W,variant:"text",color:"primary",className:d?Pl.fadeUpDelay5:"",sx:{alignSelf:"flex-start",textTransform:"none",maxWidth:"min(100%, 32rem)",px:.5},children:r("thankyou.keepWorking")})]})})}var Qm={},a4=Fe;Object.defineProperty(Qm,"__esModule",{value:!0});var Yk=Qm.default=void 0,r4=a4(Oe()),l4=A;Yk=Qm.default=(0,r4.default)((0,l4.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");var Vm={},o4=Fe;Object.defineProperty(Vm,"__esModule",{value:!0});var Zk=Vm.default=void 0,i4=o4(Oe()),s4=A;Zk=Vm.default=(0,i4.default)((0,s4.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const ll=Ul;function p4({userName:e="",setActiveStep:t,onViewResults:n,onStartFromBeginning:a}){const{t:r}=Nn(),{setOpenDomainFinder:l,setOpenSmsChat:o,setOpenAnalyzeChat:i}=Ua(),s=()=>{if(a){a();return}t(0)},p=()=>{n?n():t(1)},u=()=>{t(-2)},c=d=>{d.id==="email"&&d.step!==void 0?t(d.step):d.id==="domain"?(l(!0),t(0)):d.id==="sms"?o(!0):d.id==="analyze"?i(!0):d.id==="series"&&t(-4)};return A.jsx(K,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",boxSizing:"border-box"},children:A.jsxs(ut,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(vn,{label:"Business AI",icon:A.jsx(_c,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsxs(K,{sx:{mb:{xs:2.5,sm:3},alignSelf:"stretch",textAlign:"start"},children:[A.jsxs(fe,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:[r("secondTime.hi"),e?` ${e}`:"","!"]}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,maxWidth:"min(52ch, 100%)"},children:r("secondTime.whatNext")})]}),A.jsx(Sa,{title:r("secondTime.hubSectionPrimary"),description:r("secondTime.hubSectionPrimaryHint"),children:A.jsx(Dk,{onCardClick:c})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Sa,{title:r("secondTime.hubSectionSecondary"),description:r("secondTime.hubSectionSecondaryHint"),children:A.jsxs(K,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:{xs:1.25,sm:1.5},width:"100%"},children:[A.jsxs(K,{component:"button",type:"button",className:ll.actionCard,onClick:s,children:[A.jsx("span",{className:ll.actionCardIcon,children:A.jsx(Yk,{sx:{fontSize:28,..._o}})}),A.jsxs("span",{className:ll.actionCardContent,children:[A.jsx("span",{className:ll.actionCardTitle,children:r("secondTime.startFromBeginning")}),A.jsx(fe,{component:"span",variant:"body2",sx:{color:"text.secondary",mt:.5,fontSize:"0.8125rem",display:"block",lineHeight:1.45},children:r("secondTime.startFromBeginningDesc")})]})]}),A.jsxs(K,{component:"button",type:"button",className:ll.actionCard,onClick:p,children:[A.jsx("span",{className:ll.actionCardIcon,children:A.jsx(Zk,{sx:{fontSize:28,..._o}})}),A.jsxs("span",{className:ll.actionCardContent,children:[A.jsx("span",{className:ll.actionCardTitle,children:r("secondTime.viewResults")}),A.jsx(fe,{component:"span",variant:"body2",sx:{color:"text.secondary",mt:.5,fontSize:"0.8125rem",display:"block",lineHeight:1.45},children:r("secondTime.viewResultsDesc")})]})]})]})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ze,{variant:"text",color:"primary",onClick:u,sx:{alignSelf:"center",mt:{xs:.5,sm:1},fontSize:{xs:"0.8125rem",sm:"0.875rem"},px:{xs:1,sm:2},textAlign:"center",textTransform:"none",whiteSpace:{xs:"normal",sm:"nowrap"},maxWidth:"min(40ch, 100%)",lineHeight:1.45},children:r("secondTime.featureRequest")})]})})}function u4({userName:e="",setActiveStep:t}){const{t:n}=Nn(),[a,r]=v.useState({title:"",description:"",email:""}),l=()=>{if(!a.title.trim()||!a.description.trim())return;const s=new CustomEvent("business-ai-feature-request",{detail:{title:a.title,description:a.description,email:a.email||void 0,timestamp:new Date().toISOString()},bubbles:!0,composed:!0});window.dispatchEvent(s),t(-1)},o=()=>{t(-1)},i=!!a.title.trim()&&!!a.description.trim();return A.jsx(K,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"stretch"},children:A.jsxs(ut,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(vn,{label:"Business AI",icon:A.jsx(_c,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsxs(K,{sx:{mb:{xs:2.5,sm:3},alignSelf:"stretch",textAlign:"start"},children:[A.jsx(fe,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:n("featureRequestForm.pageTitle")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,maxWidth:"min(52ch, 100%)"},children:e?n("featureRequestForm.pageSubtitleNamed",{name:e}):n("featureRequestForm.pageSubtitle")})]}),A.jsx(Sa,{title:n("featureRequestForm.sectionTitle"),description:n("featureRequestForm.sectionHint"),children:A.jsxs(ut,{spacing:2,children:[A.jsx(at,{label:n("featureRequestForm.titleLabel"),fullWidth:!0,required:!0,value:a.title,onChange:s=>r({...a,title:s.target.value}),placeholder:n("featureRequestForm.titlePlaceholder"),size:"small"}),A.jsx(at,{label:n("featureRequestForm.descriptionLabel"),fullWidth:!0,required:!0,multiline:!0,minRows:3,maxRows:8,value:a.description,onChange:s=>r({...a,description:s.target.value}),placeholder:n("featureRequestForm.descriptionPlaceholder"),size:"small"}),A.jsx(at,{label:n("featureRequestForm.emailLabel"),fullWidth:!0,type:"email",value:a.email,onChange:s=>r({...a,email:s.target.value}),placeholder:n("featureRequestForm.emailPlaceholder"),size:"small"})]})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsxs(ut,{direction:{xs:"column-reverse",sm:"row"},spacing:1.5,justifyContent:"space-between",alignItems:{xs:"stretch",sm:"center"},children:[A.jsx(ze,{variant:"text",color:"primary",onClick:o,sx:{alignSelf:{xs:"stretch",sm:"flex-start"},textTransform:"none"},children:n("featureRequestForm.back")}),A.jsx(ze,{disabled:!i,variant:"contained",color:"primary",onClick:l,sx:{textTransform:"none"},children:n("featureRequestForm.submit")})]})]})})}const c4="https://static.intercomassets.com/avatars/5075191/square_128/%D7%AA%D7%9E%D7%95%D7%A0%D7%AA_%D7%A4%D7%A8%D7%95%D7%A4%D7%99%D7%9C_%D7%9E%D7%A6%D7%95%D7%99%D7%A8%D7%AA-1763991463.jpg";function A4({setActiveStep:e}){const{t}=Nn(),n=()=>{e(0)};return A.jsx(K,{dir:"auto",sx:{display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"center",height:"100%",padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",boxSizing:"border-box"},children:A.jsxs(ut,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center",alignItems:"stretch"},children:[A.jsx(Sr,{src:c4,alt:"Support Avatar",sx:{alignSelf:"center",width:{xs:80,sm:100,md:120},height:{xs:80,sm:100,md:120},mb:{xs:2.5,sm:3}}}),A.jsx(fe,{dir:"auto",component:"h1",variant:"h4",sx:{textAlign:"center",fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:t("welcome.heading")}),A.jsx(fe,{dir:"auto",variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},textAlign:"center",lineHeight:1.55,whiteSpace:"pre-wrap",fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(44ch, 100%)",mx:"auto",mb:{xs:3,sm:3.5}},children:t("welcome.text")}),A.jsx(ze,{size:"large",dir:"auto",variant:"contained",color:"primary",onClick:n,sx:{alignSelf:"center",textTransform:"none"},children:t("welcome.startButton")})]})})}function d4({header:e,children:t,footer:n,compactBody:a}){return A.jsxs(K,{sx:{flex:"1 1 0%",minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column",bgcolor:"background.paper"},children:[A.jsx(K,{sx:{flexShrink:0,pt:{xs:6,sm:7},px:2.5,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:e}),a?A.jsx(K,{sx:{flex:1,minHeight:0}}):A.jsx(K,{sx:{flex:1,minHeight:0,overflow:"auto",px:2.5,py:2,WebkitOverflowScrolling:"touch"},children:t}),n?A.jsx(K,{sx:{flexShrink:0,px:2.5,py:2,borderTop:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:n}):null]})}function f4(e){const{t}=Nn(),{setSeriesPromptData:n,setSeriesFormRequest:a,step2Data:r}=Ua(),[l,o]=v.useState(""),[i,s]=v.useState(7),[p,u]=v.useState(""),[c,d]=v.useState(!1),[f,W]=v.useState({kind:"none"}),[m,x]=v.useState(null),h=async y=>{var E;W({kind:"none"}),x(y),d(!0);try{const S=await Pj(y);a({goal:y.goal,totalParts:y.totalParts??7,language:y.language,targetAction:y.targetAction}),n(S.parts),(E=e.setActiveStep)==null||E.call(e,-5)}catch(S){const k=S instanceof Error?S.message:String(S),R=k.match(/failed: (\d{3})/),V=R?parseInt(R[1],10):500;W(V===400?{kind:"field",field:"goal",message:k}:V===503?{kind:"banner503"}:{kind:"banner500",message:t("seriesPrompt.errors.serverError")})}finally{d(!1)}},g=async()=>{if(W({kind:"none"}),!l.trim()){W({kind:"field",field:"goal",message:t("seriesPrompt.errors.goalRequired")});return}if(l.trim().length>500){W({kind:"field",field:"goal",message:t("seriesPrompt.errors.goalTooLong")});return}const y={goal:l.trim()};i&&(y.totalParts=i),p!==""&&(y.daysBetween=p);const E=r?{...r.businessData,websiteUrl:r.websiteUrl}:e.data??null,S=Xc(E);S&&(y.context=S),await h(y)},C=async()=>{m&&await h(m)};return A.jsx(d4,{header:A.jsxs(ut,{spacing:.5,children:[A.jsx(fe,{variant:"h6",sx:{fontWeight:700,letterSpacing:"-0.02em"},children:t("seriesPrompt.form.pageTitle")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem"},children:t("seriesPrompt.form.pageSubtitle")})]}),footer:A.jsxs(ut,{spacing:1,children:[f.kind==="banner503"&&A.jsx(Ml,{severity:"error",children:t("seriesPrompt.errors.serviceUnavailable")}),f.kind==="banner500"&&A.jsxs(Ml,{severity:"error",children:[f.message,A.jsx(ze,{size:"small",onClick:C,sx:{ml:1,textTransform:"none"},children:t("seriesPrompt.errors.retryButton")})]}),f.kind!=="banner503"&&A.jsxs(ut,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[A.jsx(ze,{variant:"text",onClick:()=>{var y;return(y=e.setActiveStep)==null?void 0:y.call(e,-1)},disabled:c,sx:{textTransform:"none"},children:t("seriesPrompt.form.back")}),A.jsx(ze,{variant:"contained",color:"primary",disabled:!l.trim()||c,onClick:g,sx:{textTransform:"none"},children:c?A.jsxs(A.Fragment,{children:[A.jsx(va,{size:18,color:"inherit",sx:{mr:1}}),t("seriesPrompt.form.generatingButton")]}):t("seriesPrompt.form.generateButton")})]}),c&&A.jsx(fe,{variant:"body2",color:"text.secondary",align:"center",children:t("seriesPrompt.loading.generatingParts",{count:i})})]}),children:A.jsxs(ut,{spacing:2,children:[A.jsx(at,{label:t("seriesPrompt.form.goalLabel"),value:l,onChange:y=>o(y.target.value),disabled:c,required:!0,fullWidth:!0,error:f.kind==="field"&&f.field==="goal",helperText:f.kind==="field"&&f.field==="goal"?f.message:void 0,inputProps:{maxLength:500}}),A.jsx(at,{label:t("seriesPrompt.form.totalPartsLabel"),type:"number",value:i,onChange:y=>{const E=parseInt(y.target.value,10);isNaN(E)||s(Math.min(7,Math.max(1,E)))},disabled:c,fullWidth:!0,inputProps:{min:1,max:7}}),A.jsx(at,{label:t("seriesPrompt.form.daysBetweenLabel"),type:"number",value:p,onChange:y=>{const E=parseInt(y.target.value,10);u(y.target.value===""?"":Math.min(365,Math.max(1,E)))},disabled:c,fullWidth:!0,inputProps:{min:1,max:365}})]})})}var Um={},W4=Fe;Object.defineProperty(Um,"__esModule",{value:!0});var Nk=Um.default=void 0,g4=W4(Oe()),h4=A;Nk=Um.default=(0,g4.default)((0,h4.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");function m4({header:e,children:t,footer:n,compactBody:a}){return A.jsxs(K,{sx:{flex:"1 1 0%",minHeight:0,display:"flex",flexDirection:"column",bgcolor:"background.paper"},children:[A.jsx(K,{sx:{flexShrink:0,pt:{xs:6,sm:7},px:2.5,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:e}),a?A.jsx(K,{sx:{flex:1,minHeight:0}}):A.jsx(K,{sx:{flex:1,minHeight:0,overflow:"auto",px:2.5,py:2,WebkitOverflowScrolling:"touch"},children:t}),n?A.jsx(K,{sx:{flexShrink:0,px:2.5,py:2,borderTop:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:n}):null]})}const C4=[{key:"moreUrgent",i18nKey:"seriesPrompt.quickActions.moreUrgent"},{key:"makeShorter",i18nKey:"seriesPrompt.quickActions.makeShorter"},{key:"moreCasual",i18nKey:"seriesPrompt.quickActions.moreCasual"},{key:"moreFormal",i18nKey:"seriesPrompt.quickActions.moreFormal"}];function v4({part:e,partIndex:t,onSuccess:n}){const{t:a}=Nn(),{seriesFormRequest:r,seriesPromptData:l}=Ua(),[o,i]=v.useState(e.subject),[s,p]=v.useState(e.prompt),[u,c]=v.useState(!1),[d,f]=v.useState(!1),[W,m]=v.useState(null),[x,h]=v.useState(!1),[g,C]=v.useState(e.cta),[y,E]=v.useState(!1),[S,k]=v.useState(null),[R,V]=v.useState(""),b=async()=>{try{await navigator.clipboard.writeText(s),h(!0),setTimeout(()=>h(!1),2e3)}catch{}},B=async()=>{c(!0),m(null);try{const z=await kg({prompt:s,domain:"",structureUrl:"",textStyleUrl:"",forceAuthentic:!0});f(!0),n(t,{subject:o,prompt:s,cta:g},z)}catch{m(a("seriesPrompt.errors.serverError"))}finally{c(!1)}},M=async z=>{const T=z??R;E(!0),k(null);try{const j=await Jj({subject:o,prompt:s,cta:g,editInstruction:T,goal:(r==null?void 0:r.goal)??"",partNumber:t+1,totalParts:(r==null?void 0:r.totalParts)??(l==null?void 0:l.length)??1,language:r==null?void 0:r.language,targetAction:r==null?void 0:r.targetAction});i(j.subject),p(j.prompt),C(j.cta),V("")}catch{k(a("seriesPrompt.errors.serverError"))}finally{E(!1)}},F=z=>{V(z),M(z)};return A.jsx(eg,{variant:"outlined",sx:{borderRadius:2},children:A.jsxs(ng,{children:[A.jsxs(ut,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:1},children:[A.jsx(fe,{variant:"body2",fontWeight:700,children:a("seriesPrompt.cards.partLabel",{number:t+1})}),d&&A.jsx(vn,{color:"success",size:"small",icon:A.jsx(Nk,{}),label:a("common.send")})]}),A.jsx(at,{label:a("seriesPrompt.cards.subjectLabel"),value:o,onChange:z=>i(z.target.value),disabled:y,fullWidth:!0,size:"small",sx:{mb:1.5}}),A.jsx(at,{label:a("seriesPrompt.cards.promptLabel"),value:s,onChange:z=>p(z.target.value),disabled:y,fullWidth:!0,multiline:!0,rows:4,sx:{mb:1.5}}),A.jsx(at,{label:a("seriesPrompt.cards.ctaLabel"),value:g,onChange:z=>C(z.target.value),disabled:y,fullWidth:!0,size:"small",sx:{mb:2}}),A.jsx(ut,{direction:"row",flexWrap:"wrap",gap:1,sx:{mb:1},children:C4.map(z=>A.jsx(vn,{label:a(z.i18nKey),size:"small",variant:"outlined",disabled:y,onClick:()=>F(a(z.i18nKey))},z.key))}),A.jsx(at,{label:a("seriesPrompt.edit.label"),placeholder:a("seriesPrompt.edit.placeholder"),value:R,onChange:z=>V(z.target.value),disabled:y,fullWidth:!0,size:"small",multiline:!0,rows:2,inputProps:{maxLength:500},sx:{mt:2}}),A.jsx(ut,{direction:"row",justifyContent:"flex-end",sx:{mb:1},children:A.jsx(ze,{variant:"contained",size:"small",color:"primary",disabled:y,onClick:()=>M(),sx:{textTransform:"none"},children:y?A.jsx(va,{size:18,color:"inherit","aria-label":"Loading"}):a("seriesPrompt.edit.submitButton")})}),S&&A.jsx(Ml,{severity:"error",sx:{mb:1},children:S}),W&&A.jsx(Ml,{severity:"error",sx:{mb:1},children:W}),A.jsxs(ut,{direction:"row",justifyContent:"flex-end",gap:1,children:[A.jsx(ze,{variant:"outlined",size:"small",onClick:b,sx:{textTransform:"none"},children:a(x?"seriesPrompt.cards.copiedButton":"seriesPrompt.cards.copyButton")}),A.jsx(ze,{variant:"contained",size:"small",disabled:u||d,onClick:B,sx:{textTransform:"none"},children:u?A.jsxs(A.Fragment,{children:[A.jsx(va,{size:18,color:"inherit",sx:{mr:1}}),a("seriesPrompt.cards.sendingButton")]}):a(W?"seriesPrompt.errors.retryButton":"seriesPrompt.cards.sendToNewsletterButton")})]})]})})}function y4({setActiveStep:e}){const{t}=Nn(),{seriesPromptData:n}=Ua(),a=Go(),r=v.useCallback((l,o,i)=>{a&&a.triggerEvent("onSeriesNewsletterComplete",{partIndex:l,part:o,newsletterData:i})},[a]);return!n||n.length===0?null:A.jsx(m4,{header:A.jsxs(ut,{spacing:.5,children:[A.jsx(fe,{variant:"h6",sx:{fontWeight:700,letterSpacing:"-0.02em"},children:t("seriesPrompt.form.pageTitle")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem"},children:t("seriesPrompt.form.pageSubtitle")})]}),footer:A.jsx(ze,{variant:"text",onClick:()=>e==null?void 0:e(-4),sx:{textTransform:"none"},children:t("seriesPrompt.form.back")}),children:A.jsx(ut,{spacing:2,children:n.map((l,o)=>A.jsx(v4,{part:l,partIndex:o,onSuccess:r},o))})})}const S4=Ul,I4=Hc(Qj,Ul);function x4(e,t){return t!=null?!0:Fm(e)}function Fm(e){if(!e||typeof e!="object")return!1;const t=e,n=t.domain??t.website??t.websiteUrl,a=typeof n=="string"&&n.length>0&&!n.includes("example.com"),r=typeof t.business_name=="string"&&t.business_name.length>0&&t.business_name!=="Example Company";return!!(a||r||t.analyzed_at||t.businessData)}function E4({language:e="he",showWelcome:t=!1,userName:n="",freeSolo:a=!0,placeholderSuggestions:r=[],data:l={websiteUrl:"https://www.example.com",business_name:"Example Company"},websiteUrl:o="",business_name:i="",logo:s="",urls:p=[],mergeTags:u=[],visibilityRules:c,location:d}){Gc(I4,"bussinessAILayout-styles");const{t:f}=Nn(),{shadowRoot:W,activeStep:m,setActiveStep:x,step2Data:h,setStep2Data:g,step3Draft:C,setStep3Draft:y,openSmsChat:E,setOpenSmsChat:S,openAnalyzeChat:k,setOpenAnalyzeChat:R,openDomainFinder:V}=Ua(),b=x4(l,h),B=()=>t&&!b?-3:b?-1:0,M=v.useRef(!1),F=v.useRef(m),z=v.useRef(!1);v.useEffect(()=>{if(M.current)b&&m===0&&h==null&&!z.current&&!V?(x(-1),z.current=!0):M.current&&h!=null&&m===2&&Fm(l)?x(-1):M.current&&h!=null&&m===0&&!V&&(x(-1),z.current=!0);else{if(h!=null&&m===2&&Fm(l)){x(-1),z.current=!0,M.current=!0;return}if(h!=null){m===0&&(x(-1),z.current=!0),M.current=!0;return}const le=B();le!==0&&F.current===0&&(x(le),le===-1&&(z.current=!0)),M.current=!0}},[h,b,m,l,V]),v.useEffect(()=>{if((m===-1||m===-2)&&!b){x(t?-3:0);return}m===-3&&!t&&x(0)},[m,b,t,x]);const T=v.useRef(null);v.useEffect(()=>{if(T.current===null){T.current=t;return}!T.current&&t&&m===0&&!b&&h==null&&!V&&x(-3),T.current=t},[t,m,b,h,V,x]);const j=m,P=x,L=l??{},q=L.businessData&&typeof L.businessData=="object"?L.businessData:null,w=o||(typeof L.websiteUrl=="string"?L.websiteUrl:"")||(typeof L.website=="string"?L.website:"")||(typeof L.domain=="string"?L.domain:"")||(typeof(q==null?void 0:q.website)=="string"?q.website:""),H=i||(typeof L.business_name=="string"?L.business_name:"")||(typeof(q==null?void 0:q.business_name)=="string"?q.business_name:""),te=q!=null?{...q,logo:(typeof L.logo=="string"?L.logo:"")||(typeof q.logo=="string"?q.logo:""),websiteUrl:(typeof L.websiteUrl=="string"?L.websiteUrl:"")||(typeof q.website=="string"?q.website:""),domain:(typeof L.domain=="string"?L.domain:"")||(typeof q.website=="string"?q.website:"")}:l,[Q,N]=v.useState(w),[re,ue]=v.useState(H),[X,ee]=v.useState(null),[de,ae]=v.useState(null),G=v.useRef(null),he=v.useRef(null);v.useEffect(()=>{console.log("🔄 [Parent] step2Data from context updated:",h),console.log("🔄 [Parent] step2Data (stringified):",h?JSON.stringify(h,null,2):"null"),h&&ee(h.businessData)},[h]);function ge(le){var qe;console.log("💾 [Parent] onSave called with data:",le),console.log("💾 [Parent] onSave data (stringified):",JSON.stringify(le,null,2)),console.log("💾 [Parent] onSave - businessData keys:",Object.keys(le.businessData||{})),g(le),ee(le.businessData),console.log("💾 [Parent] step2Data saved to context");const Ke=((qe=le.businessData)==null?void 0:qe.website)||le.websiteUrl||"";Ke&&N(Ke)}const me=()=>{S(!1),R(!1),g(null),C!=null&&y(null),ee(null),N(w),ue(H),x(0)},ve=[f("steps.brandDetails"),f("steps.designPrefs"),f("steps.summary"),f("steps.summaryAndSend")];v.useEffect(()=>{const le=()=>{let Be=null;if(G.current&&(Be=G.current.closest(".MuiDialog-paper")),!Be&&W&&(Be=W.querySelector(".MuiDialog-paper")),Be||(Be=document.querySelector(".MuiDialog-paper")),Be){const Pe=Be.getBoundingClientRect().height;ae(Pe)}else if(G.current){const Te=G.current.getBoundingClientRect();ae(Te.height)}};le(),window.addEventListener("resize",le);const Ke=setTimeout(le,100),qe=setTimeout(le,300);return()=>{window.removeEventListener("resize",le),clearTimeout(Ke),clearTimeout(qe)}},[j,W]);const ce=j===-3||j===-2||j===-1||j===-4||j===-5||j===2,Ze=j===3||E||k;return A.jsx(K,{"data-lang":e,sx:{flex:1,minHeight:0,height:"100%",width:"100%",display:"flex",flexDirection:"column",paddingBottom:j===1?{xs:72,sm:80}:0},children:A.jsxs(ct,{height:"100%",justifyContent:"space-between",sx:{height:"100%",flex:"1 1 0%",minHeight:0,minWidth:0,flexWrap:{xs:"wrap",md:j===0?"nowrap":"wrap"}},container:!0,children:[A.jsx(ct,{item:!0,lg:j===0?8:12,md:j===0?8:12,sm:12,xs:12,sx:{minHeight:0,minWidth:0,display:"flex",flexDirection:"column",flex:"1 1 0%",maxWidth:{xs:"100%",md:j===0?"66.666667%":"100%"}},children:A.jsx(K,{ref:G,sx:{flex:"1 1 0%",minHeight:0,minWidth:0,display:"flex",flexDirection:"column"},children:j===1?A.jsx(K,{ref:he,sx:{overflow:"hidden",flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(iO,{data:te,websiteUrl:Q,setActiveStep:P,onSave:ge,urls:p||[],language:e})}):A.jsx(K,{sx:{flex:"1 1 0%",minHeight:0,minWidth:0,display:"flex",flexDirection:"column",width:"100%",position:"relative",justifyContent:Ze||ce?"flex-start":"center",alignItems:Ze||ce?"stretch":"center"},children:A.jsxs(K,{ref:he,sx:{flex:"1 1 0%",minHeight:0,minWidth:0,overflow:Ze?"hidden":void 0,overflowY:Ze?"hidden":"auto",overscrollBehaviorY:"contain",overflowX:"hidden",width:"100%",maxHeight:Ze?void 0:ce?"calc(90vh - 7.5rem)":void 0,display:"flex",flexDirection:"column",alignItems:Ze?"stretch":"center",pb:ce?{xs:4,sm:5}:{xs:1,sm:2},WebkitOverflowScrolling:"touch"},children:[E?A.jsx(K,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:A.jsx(K,{sx:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(jk,{domain:Q||(l==null?void 0:l.domain)||"",onClose:()=>S(!1),logo:(h==null?void 0:h.logo)??(l==null?void 0:l.logo)??"",logoBackgroundHex:(h==null?void 0:h.logoBackgroundHex)??(l==null?void 0:l.logoBackgroundHex)??void 0,language:e,context:Xc(h?{...h.businessData,websiteUrl:h.websiteUrl}:l)??void 0})})}):k?(()=>{const le=Xc(h?{...h.businessData,websiteUrl:h.websiteUrl}:l)??void 0;return A.jsx(K,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:A.jsx(K,{sx:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Ok,{domain:Q||(l==null?void 0:l.domain)||"",context:le,onClose:()=>R(!1),language:e})})})})():null,!E&&!k?A.jsxs(A.Fragment,{children:[t&&j===-3?A.jsx(A4,{userName:n,setActiveStep:P}):null,b&&j===-1?A.jsx(p4,{userName:n,setActiveStep:P,onStartFromBeginning:me}):null,b&&j===-2?A.jsx(u4,{userName:n,setActiveStep:P}):null,b&&j===-4?A.jsx(f4,{setActiveStep:P,data:L}):null,b&&j===-5?A.jsx(y4,{setActiveStep:P}):null,j===0?A.jsx(Nj,{activeStep:j,steps:ve,userName:n,websiteUrl:Q,setWebsiteUrl:N,setActiveStep:P,freeSolo:a,hasContext:b,urls:p||[],businessNameOrDescription:re||(X==null?void 0:X.business_name)||"",setBusinessNameOrDescription:ue,language:e}):null,j===2?A.jsx(n4,{userName:n,websiteUrl:(X==null?void 0:X.website)||Q||"",businessName:(X==null?void 0:X.business_name)||re||"",setActiveStep:P}):null,j===3?(()=>{const le=l,Ke=h||{businessData:X||(le&&typeof le=="object"&&"businessData"in le?le.businessData:le)||{},logo:s||(le==null?void 0:le.logo)||"",websiteUrl:Q||(le==null?void 0:le.domain)||(le==null?void 0:le.websiteUrl)||""};return A.jsx(KO,{setActiveStep:P,placeholderSuggestions:r,language:e,data:Ke,logo:(h==null?void 0:h.logo)||s,mergeTags:u,visibilityRules:c,location:d})})():null]}):null]})})})}),j===0?A.jsx(ct,{item:!0,lg:5,md:4,sx:{display:{xs:"none",sm:"none",md:"block"},position:"sticky",top:0,alignSelf:"flex-start",height:"fit-content",maxHeight:"100vh"},className:S4.rightLayout,children:A.jsx(K,{sx:{height:de?`${de}px`:"100vh",minHeight:"100%",backgroundImage:`url(${Mj})`,backgroundSize:"cover",backgroundPosition:"right",backgroundRepeat:"no-repeat",backgroundColor:"#ececec"}})}):null]})})}function b4({showWelcome:e=!1,fullScreen:t=!1,language:n="he",userName:a="",freeSolo:r=!0,placeholderSuggestions:l=[],data:o={},websiteUrl:i="",business_name:s="",logo:p="",open:u=!1,urls:c=[],mergeTags:d=[],visibilityRules:f,location:W}){const m=o??{},x=n&&/^(he|ar|fa|ur)/i.test(n)?"rtl":"ltr",h=v.useMemo(()=>BW({direction:x,typography:{fontFamily:"'Rubik', sans-serif"},palette:{mode:"light",primary:{main:"#6328A7",contrastText:"#ffffff"},secondary:{main:"#000"}},components:{MuiSvgIcon:{styleOverrides:{colorPrimary:{...ql}}},MuiIconButton:{styleOverrides:{colorPrimary:{color:"transparent","& .MuiSvgIcon-root":{...ql}}}},MuiTypography:{styleOverrides:{root:({ownerState:j})=>j.color==="primary"?{backgroundImage:ta,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{}}},MuiLink:{styleOverrides:{root:({ownerState:j})=>j.color==="primary"?{backgroundImage:ta,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{}}},MuiCircularProgress:{styleOverrides:{colorPrimary:{color:"url(#cdtr-brand-gradient)"}}},MuiCheckbox:{styleOverrides:{colorPrimary:{color:"url(#cdtr-brand-gradient)","&.Mui-checked, &.MuiCheckbox-indeterminate":{color:"url(#cdtr-brand-gradient)"},"& .MuiSvgIcon-root":{...ql}}}},MuiChip:{styleOverrides:{outlinedPrimary:({theme:j})=>({border:"1px solid transparent",backgroundColor:"transparent",backgroundImage:`
819
+ `))}function s(f,W,m,x){const h=m.enter("tableCell"),g=m.enter("phrasing"),C=m.containerPhrasing(f,{...x,before:l,after:l});return g(),h(),C}function p(f,W){return iZ(f,{align:W,alignDelimiters:a,padding:n,stringLength:r})}function u(f,W,m){const x=f.children;let h=-1;const g=[],C=W.enter("table");for(;++h<x.length;)g[h]=c(x[h],W,m);return C(),g}function c(f,W,m){const x=f.children;let h=-1;const g=[],C=W.enter("tableRow");for(;++h<x.length;)g[h]=s(x[h],f,W,m);return C(),g}function d(f,W,m){let x=kk.inlineCode(f,W,m);return m.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function NZ(){return{exit:{taskListCheckValueChecked:Rk,taskListCheckValueUnchecked:Rk,paragraph:HZ}}}function GZ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:XZ}}}function Rk(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function HZ(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const r=t.children;let l=-1,o;for(;++l<r.length;){const i=r[l];if(i.type==="paragraph"){o=i;break}}o===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function XZ(e,t,n,a){const r=e.children[0],l=typeof e.checked=="boolean"&&r&&r.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",i=n.createTracker(a);l&&i.move(o);let s=kk.listItem(e,t,n,{...a,...i.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),s;function p(u){return u+o}}function _Z(){return[BY(),XY(),tZ(),OZ(),NZ()]}function $Z(e){return{extensions:[LY(),_Y(e),nZ(),ZZ(e),GZ()]}}const eN={tokenize:oN,partial:!0},Bk={tokenize:iN,partial:!0},Lk={tokenize:sN,partial:!0},Mk={tokenize:pN,partial:!0},tN={tokenize:uN,partial:!0},Qk={name:"wwwAutolink",tokenize:rN,previous:Uk},Vk={name:"protocolAutolink",tokenize:lN,previous:Fk},Ir={name:"emailAutolink",tokenize:aN,previous:zk},ar={};function nN(){return{text:ar}}let Kl=48;for(;Kl<123;)ar[Kl]=Ir,Kl++,Kl===58?Kl=65:Kl===91&&(Kl=97);ar[43]=Ir,ar[45]=Ir,ar[46]=Ir,ar[95]=Ir,ar[72]=[Ir,Vk],ar[104]=[Ir,Vk],ar[87]=[Ir,Qk],ar[119]=[Ir,Qk];function aN(e,t,n){const a=this;let r,l;return o;function o(c){return!bm(c)||!zk.call(a,a.previous)||km(a.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(c))}function i(c){return bm(c)?(e.consume(c),i):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(tN,u,p)(c):c===45||c===95||dn(c)?(l=!0,e.consume(c),s):u(c)}function p(c){return e.consume(c),r=!0,s}function u(c){return l&&r&&yn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function rN(e,t,n){const a=this;return r;function r(o){return o!==87&&o!==119||!Uk.call(a,a.previous)||km(a.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eN,e.attempt(Bk,e.attempt(Lk,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function lN(e,t,n){const a=this;let r="",l=!1;return o;function o(c){return(c===72||c===104)&&Fk.call(a,a.previous)&&!km(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(c),e.consume(c),i):n(c)}function i(c){if(yn(c)&&r.length<5)return r+=String.fromCodePoint(c),e.consume(c),i;if(c===58){const d=r.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?p:(l=!0,s)):n(c)}function p(c){return c===null||oA(c)||gt(c)||Ol(c)||iA(c)?n(c):e.attempt(Bk,e.attempt(Lk,u),n)(c)}function u(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function oN(e,t,n){let a=0;return r;function r(o){return(o===87||o===119)&&a<3?(a++,e.consume(o),r):o===46&&a===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function iN(e,t,n){let a,r,l;return o;function o(p){return p===46||p===95?e.check(Mk,s,i)(p):p===null||gt(p)||Ol(p)||p!==45&&iA(p)?s(p):(l=!0,e.consume(p),o)}function i(p){return p===95?a=!0:(r=a,a=void 0),e.consume(p),o}function s(p){return r||a||!l?n(p):t(p)}}function sN(e,t){let n=0,a=0;return r;function r(o){return o===40?(n++,e.consume(o),r):o===41&&a<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Mk,t,l)(o):o===null||gt(o)||Ol(o)?t(o):(e.consume(o),r)}function l(o){return o===41&&a++,e.consume(o),r}}function pN(e,t,n){return a;function a(i){return i===33||i===34||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===63||i===95||i===126?(e.consume(i),a):i===38?(e.consume(i),l):i===93?(e.consume(i),r):i===60||i===null||gt(i)||Ol(i)?t(i):n(i)}function r(i){return i===null||i===40||i===91||gt(i)||Ol(i)?t(i):a(i)}function l(i){return yn(i)?o(i):n(i)}function o(i){return i===59?(e.consume(i),a):yn(i)?(e.consume(i),o):n(i)}}function uN(e,t,n){return a;function a(l){return e.consume(l),r}function r(l){return dn(l)?n(l):t(l)}}function Uk(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||gt(e)}function Fk(e){return!yn(e)}function zk(e){return!(e===47||bm(e))}function bm(e){return e===43||e===45||e===46||e===95||dn(e)}function km(e){let t=e.length,n=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){n=!0;break}if(a._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const cN={tokenize:CN,partial:!0};function AN(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gN,continuation:{tokenize:hN},exit:mN}},text:{91:{name:"gfmFootnoteCall",tokenize:WN},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dN,resolveTo:fN}}}}function dN(e,t,n){const a=this;let r=a.events.length;const l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o;for(;r--;){const s=a.events[r][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return i;function i(s){if(!o||!o._balanced)return n(s);const p=ja(a.sliceSerialize({start:o.end,end:a.now()}));return p.codePointAt(0)!==94||!l.includes(p.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function fN(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},i=[e[n+1],e[n+2],["enter",a,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(n,e.length-n+1,...i),e}function WN(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l=0,o;return i;function i(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(c){if(l>999||c===93&&!o||c===null||c===91||gt(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return r.includes(ja(a.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return gt(c)||(o=!0),l++,e.consume(c),c===92?u:p}function u(c){return c===91||c===92||c===93?(e.consume(c),l++,p):p(c)}}function gN(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l,o=0,i;return s;function s(W){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(W){return W===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(W)}function u(W){if(o>999||W===93&&!i||W===null||W===91||gt(W))return n(W);if(W===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return l=ja(a.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return gt(W)||(i=!0),o++,e.consume(W),W===92?c:u}function c(W){return W===91||W===92||W===93?(e.consume(W),o++,u):u(W)}function d(W){return W===58?(e.enter("definitionMarker"),e.consume(W),e.exit("definitionMarker"),r.includes(l)||r.push(l),et(e,f,"gfmFootnoteDefinitionWhitespace")):n(W)}function f(W){return t(W)}}function hN(e,t,n){return e.check(Ds,t,e.attempt(cN,t,n))}function mN(e){e.exit("gfmFootnoteDefinition")}function CN(e,t,n){const a=this;return et(e,r,"gfmFootnoteDefinitionIndent",5);function r(l){const o=a.events[a.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function vN(e){let n=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:l,resolveAll:r};return n==null&&(n=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function r(o,i){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let p=s;for(;p--;)if(o[p][0]==="exit"&&o[p][1].type==="strikethroughSequenceTemporary"&&o[p][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[p][1].end.offset-o[p][1].start.offset){o[s][1].type="strikethroughSequence",o[p][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[p][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[p][1].end),end:Object.assign({},o[s][1].start)},d=[["enter",u,i],["enter",o[p][1],i],["exit",o[p][1],i],["enter",c,i]],f=i.parser.constructs.insideSpan.null;f&&aa(d,d.length,0,sA(f,o.slice(p+1,s),i)),aa(d,d.length,0,[["exit",c,i],["enter",o[s][1],i],["exit",o[s][1],i],["exit",u,i]]),aa(o,p-1,s-p+3,d),s=p+d.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,i,s){const p=this.previous,u=this.events;let c=0;return d;function d(W){return p===126&&u[u.length-1][1].type!=="characterEscape"?s(W):(o.enter("strikethroughSequenceTemporary"),f(W))}function f(W){const m=ai(p);if(W===126)return c>1?s(W):(o.consume(W),c++,f);if(c<2&&!n)return s(W);const x=o.exit("strikethroughSequenceTemporary"),h=ai(W);return x._open=!h||h===2&&!!m,x._close=!m||m===2&&!!h,i(W)}}}class yN{constructor(){this.map=[]}add(t,n,a){SN(this,t,n,a)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const a=[];for(;n>0;)n-=1,a.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];a.push(t.slice()),t.length=0;let r=a.pop();for(;r;){for(const l of r)t.push(l);r=a.pop()}this.map.length=0}}function SN(e,t,n,a){let r=0;if(!(n===0&&a.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...a);return}r+=1}e.map.push([t,n,a])}}function IN(e,t){let n=!1;const a=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=a.length-1;a[l]=a[l]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return a}function xN(){return{flow:{null:{name:"table",tokenize:EN,resolveAll:bN}}}}function EN(e,t,n){const a=this;let r=0,l=0,o;return i;function i(b){let B=a.events.length-1;for(;B>-1;){const z=a.events[B][1].type;if(z==="lineEnding"||z==="linePrefix")B--;else break}const M=B>-1?a.events[B][1].type:null,F=M==="tableHead"||M==="tableRow"?S:s;return F===S&&a.parser.lazy[a.now().line]?n(b):F(b)}function s(b){return e.enter("tableHead"),e.enter("tableRow"),p(b)}function p(b){return b===124||(o=!0,l+=1),u(b)}function u(b){return b===null?n(b):Me(b)?l>1?(l=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):n(b):He(b)?et(e,u,"whitespace")(b):(l+=1,o&&(o=!1,r+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),c(b)))}function c(b){return b===null||b===124||gt(b)?(e.exit("data"),u(b)):(e.consume(b),b===92?d:c)}function d(b){return b===92||b===124?(e.consume(b),c):c(b)}function f(b){return a.interrupt=!1,a.parser.lazy[a.now().line]?n(b):(e.enter("tableDelimiterRow"),o=!1,He(b)?et(e,W,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):W(b))}function W(b){return b===45||b===58?x(b):b===124?(o=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),m):E(b)}function m(b){return He(b)?et(e,x,"whitespace")(b):x(b)}function x(b){return b===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),h):b===45?(l+=1,h(b)):b===null||Me(b)?y(b):E(b)}function h(b){return b===45?(e.enter("tableDelimiterFiller"),g(b)):E(b)}function g(b){return b===45?(e.consume(b),g):b===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(b))}function C(b){return He(b)?et(e,y,"whitespace")(b):y(b)}function y(b){return b===124?W(b):b===null||Me(b)?!o||r!==l?E(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):E(b)}function E(b){return n(b)}function S(b){return e.enter("tableRow"),k(b)}function k(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),k):b===null||Me(b)?(e.exit("tableRow"),t(b)):He(b)?et(e,k,"whitespace")(b):(e.enter("data"),R(b))}function R(b){return b===null||b===124||gt(b)?(e.exit("data"),k(b)):(e.consume(b),b===92?V:R)}function V(b){return b===92||b===124?(e.consume(b),R):R(b)}}function bN(e,t){let n=-1,a=!0,r=0,l=[0,0,0,0],o=[0,0,0,0],i=!1,s=0,p,u,c;const d=new yN;for(;++n<e.length;){const f=e[n],W=f[1];f[0]==="enter"?W.type==="tableHead"?(i=!1,s!==0&&(qk(d,t,s,p,u),u=void 0,s=0),p={type:"table",start:Object.assign({},W.start),end:Object.assign({},W.end)},d.add(n,0,[["enter",p,t]])):W.type==="tableRow"||W.type==="tableDelimiterRow"?(a=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],i&&(i=!1,u={type:"tableBody",start:Object.assign({},W.start),end:Object.assign({},W.end)},d.add(n,0,[["enter",u,t]])),r=W.type==="tableDelimiterRow"?2:u?3:1):r&&(W.type==="data"||W.type==="tableDelimiterMarker"||W.type==="tableDelimiterFiller")?(a=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=vA(d,t,l,r,void 0,c),l=[0,0,0,0]),o[2]=n)):W.type==="tableCellDivider"&&(a?a=!1:(l[1]!==0&&(o[0]=o[1],c=vA(d,t,l,r,void 0,c)),l=o,o=[l[1],n,0,0])):W.type==="tableHead"?(i=!0,s=n):W.type==="tableRow"||W.type==="tableDelimiterRow"?(s=n,l[1]!==0?(o[0]=o[1],c=vA(d,t,l,r,n,c)):o[1]!==0&&(c=vA(d,t,o,r,n,c)),r=0):r&&(W.type==="data"||W.type==="tableDelimiterMarker"||W.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&qk(d,t,s,p,u),d.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=IN(t.events,n))}return e}function vA(e,t,n,a,r,l){const o=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",i="tableContent";n[0]!==0&&(l.end=Object.assign({},li(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=li(t.events,n[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const p=li(t.events,n[2]),u=li(t.events,n[3]),c={type:i,start:Object.assign({},p),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",c,t]]),a!==2){const d=t.events[n[2]],f=t.events[n[3]];if(d[1].end=Object.assign({},f[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const W=n[2]+1,m=n[3]-n[2]-1;e.add(W,m,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return r!==void 0&&(l.end=Object.assign({},li(t.events,r)),e.add(r,0,[["exit",l,t]]),l=void 0),l}function qk(e,t,n,a,r){const l=[],o=li(t.events,n);r&&(r.end=Object.assign({},o),l.push(["exit",r,t])),a.end=Object.assign({},o),l.push(["exit",a,t]),e.add(n+1,0,l)}function li(e,t){const n=e[t],a=n[0]==="enter"?"start":"end";return n[1][a]}const kN={name:"tasklistCheck",tokenize:RN};function wN(){return{text:{91:kN}}}function RN(e,t,n){const a=this;return r;function r(s){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return gt(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(s)}function i(s){return Me(s)?t(s):He(s)?e.check({tokenize:BN},t,n)(s):n(s)}}function BN(e,t,n){return et(e,a,"whitespace");function a(r){return r===null?n(r):t(r)}}function LN(e){return db([nN(),AN(),vN(e),xN(),wN()])}const MN={};function QN(e){const t=this,n=e||MN,a=t.data(),r=a.micromarkExtensions||(a.micromarkExtensions=[]),l=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),o=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);r.push(LN(n)),l.push(_Z()),o.push($Z(n))}function yA({text:e,className:t,dense:n,disableLinks:a}){const r=a?{a:({children:l,href:o})=>A.jsx("span",{title:o,style:{color:"inherit",textDecoration:"underline",cursor:"default"},children:l})}:void 0;return A.jsx(K,{className:t,component:"div",sx:{"& p":{margin:n?"0 0 0.5em":"0 0 0.75em","&:last-child":{marginBottom:0}},"& ul, & ol":{margin:"0.25em 0",paddingLeft:"1.5em"},"& li":{marginBottom:"0.25em"},"& strong":{fontWeight:600},"& code":{fontSize:"0.9em",bgcolor:"action.hover",px:.5,borderRadius:.5},"& pre":{overflow:"auto",margin:"0.5em 0","& code":{bgcolor:"transparent",px:0}},"& table":{width:"100%",borderCollapse:"collapse",margin:"0.5em 0",fontSize:"0.9em"},"& th, & td":{border:"1px solid",borderColor:"divider",padding:"6px 10px",textAlign:"start"},"& th":{fontWeight:600,bgcolor:"action.hover"},"& tr:nth-of-type(even)":{bgcolor:"action.hover"},lineHeight:1.6,fontSize:"0.9375rem"},children:A.jsx(vY,{remarkPlugins:[QN],components:r,children:e})})}const At=rA,VN=Hc(qE,rA);function UN(e){return e.map(t=>({...t,timestamp:new Date(t.timestamp)}))}function FN(e){return e.map(t=>({...t,timestamp:t.timestamp.toISOString()}))}const xr=new qj;function jk({domain:e="",onClose:t,logo:n="",logoBackgroundHex:a,language:r,context:l}){Gc(VN,"smsAIChat-styles");const o=vr(),i=vW(o.breakpoints.down("sm")),s=Go(),{step2Data:p}=bg(),u=p==null?void 0:p.websiteUrl,c=u??e,[d,f]=v.useState([]),W=d.length>0,[m,x]=v.useState(""),[h,g]=v.useState(!1),[C,y]=v.useState(!1),[E,S]=v.useState(null),[k,R]=v.useState(null),V=v.useRef(null),b=v.useRef(null),B=v.useRef(null);v.useEffect(()=>{const L=ix(Rg,c);f(UN(L))},[c]),v.useEffect(()=>{d.length!==0&&sx(Rg,c,FN(d))},[c,d]);const M=v.useCallback(()=>{b.current?b.current.scrollTo({top:b.current.scrollHeight,behavior:"smooth"}):V.current&&V.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[]);v.useEffect(()=>{M()},[d,M]),v.useEffect(()=>{let L=!1;return(async()=>{try{xr.getToken(c)||await xr.createSession(c,c),L||(y(!0),S(null))}catch(w){L||S(w instanceof Error?w.message:"לא ניתן להתחבר לצ'אט SMS")}})(),()=>{L=!0}},[c]);const F=v.useCallback(async L=>{let q=xr.getToken(c);if(!q)try{const{token:N}=await xr.createSession(c,u??e);if(q=N,!q){f(re=>[...re,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}catch{f(N=>[...N,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}const w=xr.getToken(c);let G;try{G=await xr.sendMessage({token:w,message:L,domain:c,...r&&{language:r},...l&&{context:l}})}catch(N){if(N instanceof Error&&N.message==="SESSION_NOT_FOUND")try{const{token:re}=await xr.createSession(c,u??e);if(re)G=await xr.sendMessage({token:re,message:L,domain:c,...r&&{language:r},...l&&{context:l}});else throw new Error("לא ניתן ליצור סשן חדש")}catch{f(ue=>[...ue,{id:Date.now().toString(),text:"פג תוקף השיחה. התחילו שיחה חדשה.",sender:"ai",timestamp:new Date}]);return}else{f(re=>[...re,{id:Date.now().toString(),text:N instanceof Error?N.message:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}const te=(G.quickQuestions||[]).filter(N=>typeof N=="string"&&N.trim().length>0).map(N=>N.trim()),Q=G.sms&&G.sms.trim()?G.sms.trim():void 0;if(Q){const N=Date.now();f(re=>[...re,{id:N.toString(),text:G.answer,sender:"ai",timestamp:new Date},{id:(N+1).toString(),text:Q,sender:"ai",timestamp:new Date,sms:Q,...te.length>0&&{quickQuestions:te}}])}else f(N=>[...N,{id:Date.now().toString(),text:G.answer,sender:"ai",timestamp:new Date,...te.length>0&&{quickQuestions:te}}])},[e,u,c,r,l]),z=async L=>{const q=(L??m).trim();if(!q||h||!C)return;const w={id:Date.now().toString(),text:q,sender:"user",timestamp:new Date};f(G=>[...G,w]),L==null&&x(""),g(!0),setTimeout(()=>{var G;return(G=B.current)==null?void 0:G.focus()},0);try{await F(q)}finally{g(!1),setTimeout(()=>{var G;return(G=B.current)==null?void 0:G.focus()},100)}},T=L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),z())},j=()=>{xr.clearSession(c),px(Rg,c),f([])},P=(L,q)=>{if(R(L),s)try{s.triggerEvent("onUseSms",q)}catch(w){console.error("Error triggering onUseSms:",w)}window.dispatchEvent(new CustomEvent("business-ai-use-sms",{detail:{sms:q},bubbles:!0,composed:!0})),setTimeout(()=>R(null),1e4)};return E&&!C?A.jsxs(K,{className:At.smsChatContainer,"data-lang":"he",sx:{p:3},children:[A.jsx(fe,{color:"error",children:E}),t&&A.jsx(fe,{component:"button",onClick:t,sx:{mt:2,textDecoration:"underline",cursor:"pointer"},children:"סגור"})]}):C?A.jsxs(K,{"data-lang":"he",className:At.smsChatContainer,sx:{p:0,flex:1,minHeight:0,minWidth:0,maxWidth:"100%",display:"flex",width:"100%",flexDirection:"column",overflow:"hidden",pt:10},children:[A.jsx(K,{ref:b,className:At.messagesContainer,sx:{flex:"1 1 0",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:W?A.jsxs(A.Fragment,{children:[d.map(L=>A.jsxs(K,{children:[A.jsxs(K,{className:`${At.messageWrapper} ${L.sender==="user"?At.userMessage:At.aiMessage}`,children:[L.sender==="ai"&&A.jsx(Sr,{className:At.messageAvatar,children:A.jsx(aA,{})}),A.jsx(Nt,{className:`${At.messageBubble} ${L.sender==="user"?At.userBubble:At.aiBubble}`,elevation:0,sx:{backgroundColor:L.sender==="user"?"#e0e0e0":"#9c27b0",color:L.sender==="user"?"#333333":"#ffffff"},children:L.sender==="ai"?A.jsx(yA,{text:L.text,className:At.messageText,dense:!0,disableLinks:!0}):A.jsx(fe,{variant:"body1",className:At.messageText,children:L.text})}),L.sender==="user"&&A.jsx(Sr,{className:At.messageAvatar,src:n,sx:{bgcolor:n?a??"transparent":"#9c27b0"},children:!n&&"U"})]}),L.sender==="ai"&&L.sms&&A.jsx(K,{className:At.quickQuestionsContainer,children:k===L.id?A.jsxs(K,{className:At.bouncingDots,children:[A.jsx("span",{}),A.jsx("span",{}),A.jsx("span",{})]}):A.jsx(ze,{variant:"contained",size:"small",onClick:()=>P(L.id,L.sms),sx:{bgcolor:"#000",color:"#fff","&:hover":{bgcolor:"#333"},textTransform:"none"},children:"בחירת הודעה"})}),L.sender==="ai"&&L.quickQuestions&&L.quickQuestions.length>0&&A.jsx(K,{className:At.quickQuestionsContainer,children:L.quickQuestions.map((q,w)=>A.jsx(vn,{label:q,onClick:()=>z(q),disabled:h,className:At.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},w))})]},L.id)),h&&A.jsxs(K,{className:`${At.messageWrapper} ${At.aiMessage}`,children:[A.jsx(Sr,{className:At.messageAvatar,children:A.jsx(aA,{})}),A.jsx(Nt,{className:`${At.messageBubble} ${At.aiBubble}`,elevation:0,children:A.jsx(va,{size:16,className:At.loadingSpinner})})]}),A.jsx("div",{ref:V})]}):A.jsxs(K,{className:At.welcomeScreen,children:[A.jsx(Sr,{className:At.aiAvatar,children:A.jsx(aA,{})}),A.jsx(fe,{variant:"h5",className:At.welcomeTitle,children:"איזה SMS תרצו ליצור?"})]})}),W&&A.jsx(K,{sx:{flexShrink:0,flexGrow:0,display:"flex",justifyContent:"flex-start",px:1,pb:.5},children:A.jsx(ze,{size:"small",startIcon:A.jsx(Fl,{}),onClick:j,sx:{textTransform:"none"},children:"שיחה חדשה"})}),A.jsx(K,{className:At.inputContainer,sx:{flexShrink:0,flexGrow:0},children:A.jsx(K,{sx:{flex:1,minWidth:0,maxWidth:"100%",display:"flex",flexDirection:"column",gap:.5},children:A.jsx(at,{inputRef:B,fullWidth:!0,multiline:!0,minRows:2,maxRows:6,placeholder:i?void 0:"צור SMS עבור...",value:m,onChange:L=>x(L.target.value),onKeyPress:T,disabled:h,variant:"outlined",className:At.inputField,inputProps:i?{"aria-label":"הודעה ל-SMS"}:void 0,InputProps:{endAdornment:A.jsx(Hn,{onClick:()=>z(),disabled:!m.trim()||h,size:"small",sx:{alignSelf:"flex-end",mb:.5,marginInlineEnd:.5,flexShrink:0,bgcolor:"#9c27b0",color:"white","&:hover":{bgcolor:"#7b1fa2"},"&.Mui-disabled":{bgcolor:"#e0e0e0",color:"#9e9e9e"}},children:A.jsx(Vh,{fontSize:"small"})})},sx:{width:"100%",minWidth:0,maxWidth:"100%","& .MuiOutlinedInput-root":{borderRadius:"24px",backgroundColor:"#f5f5f5",minWidth:0,width:"100%",maxWidth:"100%",boxSizing:"border-box","& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},alignItems:"flex-end"},"& .MuiOutlinedInput-input":{padding:"12px 16px",paddingInlineEnd:52,lineHeight:"1.5",boxSizing:"border-box"},"& textarea":{minWidth:0,maxWidth:"100%",overflowX:"hidden"}}})})})]}):A.jsx(K,{className:At.smsChatContainer,"data-lang":"he",sx:{display:"flex",alignItems:"center",justifyContent:"center",p:3},children:A.jsx(va,{})})}var wm={},zN=Fe;Object.defineProperty(wm,"__esModule",{value:!0});var Tk=wm.default=void 0,qN=zN(Oe()),jN=A;Tk=wm.default=(0,qN.default)((0,jN.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");var Rm={},TN=Fe;Object.defineProperty(Rm,"__esModule",{value:!0});var _s=Rm.default=void 0,ON=TN(Oe()),KN=A;_s=Rm.default=(0,ON.default)((0,KN.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-5h2zm4 0h-2v-3h2zm0-5h-2v-2h2zm4 5h-2V7h2z"}),"Analytics");const dt=rA,PN=Hc(qE,rA);function JN(e){return e.map(t=>{const{componentType:n,...a}=t;return{...a,timestamp:new Date(t.timestamp),...n&&{componentType:n}}})}function DN(e){return e.map(t=>({...t,timestamp:t.timestamp.toISOString()}))}const Er=new jj;function YN({componentType:e,content:t}){const n=t||"";if(e==="card")return A.jsx(Nt,{elevation:0,sx:{p:2,mt:1,bgcolor:"#f5f5f5",borderRadius:2},children:A.jsx(yA,{text:n,dense:!0})});if(e==="numbers"){const a=n.split(/\n/).filter(Boolean);return A.jsx(K,{sx:{display:"flex",flexWrap:"wrap",gap:1,mt:1},children:a.map((r,l)=>A.jsx(vn,{label:r,size:"small",sx:{borderRadius:1}},l))})}if(e==="todoList"){const a=n.split(/\n/).filter(Boolean);return A.jsx(K,{component:"ul",sx:{mt:1,pl:2.5,mb:0},children:a.map((r,l)=>A.jsx(fe,{component:"li",variant:"body2",sx:{mb:.5},children:r.replace(/^[-*]\s*/,"")},l))})}return e==="graph"||e==="image"?A.jsxs(Nt,{elevation:0,sx:{p:2,mt:1,bgcolor:"#fafafa",borderRadius:2},children:[A.jsx(fe,{variant:"caption",color:"text.secondary",children:e==="graph"?"גרף":"תמונה"}),A.jsx(K,{sx:{mt:.5},children:A.jsx(yA,{text:n,dense:!0})})]}):null}function Ok({domain:e="",context:t,onClose:n,language:a}){Gc(PN,"analyzeAIChat-styles");const r=vr(),l=vW(r.breakpoints.up("lg")),o=vW(r.breakpoints.down("sm")),[i,s]=v.useState([]),p=i.length>0,[u,c]=v.useState(""),[d,f]=v.useState(!1),[W,m]=v.useState(!1),[x,h]=v.useState(null),g=v.useRef(null),C=v.useRef(null),y=v.useRef(null),E=v.useMemo(()=>{const B=new Set,M=[];return i.forEach(F=>{var z;(z=F.sources)==null||z.forEach(T=>{T.url&&!B.has(T.url)&&(B.add(T.url),M.push(T))})}),M},[i]);v.useEffect(()=>{const B=ix(Bg,e);s(JN(B))},[e]),v.useEffect(()=>{i.length!==0&&sx(Bg,e,DN(i))},[e,i]);const S=v.useCallback(()=>{C.current?C.current.scrollTo({top:C.current.scrollHeight,behavior:"smooth"}):g.current&&g.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[]);v.useEffect(()=>{S()},[i,S]),v.useEffect(()=>{let B=!1;return(async()=>{try{Er.getToken(e)||await Er.createSession(e),B||(m(!0),h(null))}catch(F){B||h(F instanceof Error?F.message:"לא ניתן להתחבר לצ'אט ניתוח עסקי")}})(),()=>{B=!0}},[e,a]);const k=v.useCallback(async B=>{let M=Er.getToken(e);if(!M)try{const{token:T}=await Er.createSession(e);if(M=T,!M){s(j=>[...j,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}catch{s(T=>[...T,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}const F=Er.getToken(e);let z;try{z=await Er.sendMessage({token:F,message:B,domain:e,...t&&{context:t}})}catch(T){if(T instanceof Error&&T.message==="SESSION_NOT_FOUND")try{const{token:j}=await Er.createSession(e);if(j)z=await Er.sendMessage({token:j,message:B,domain:e,...t&&{context:t}});else throw new Error("לא ניתן ליצור סשן חדש")}catch{s(j=>[...j,{id:Date.now().toString(),text:"פג תוקף השיחה. התחילו שיחה חדשה.",sender:"ai",timestamp:new Date}]);return}else{s(j=>[...j,{id:Date.now().toString(),text:T instanceof Error?T.message:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}s(T=>{var j,P;return[...T,{id:Date.now().toString(),text:z.answer,sender:"ai",timestamp:new Date,quickQuestions:((j=z.quickQuestions)==null?void 0:j.filter(L=>L&&String(L).trim()))||[],...z.componentType&&{componentType:z.componentType},...z.markdown!=null&&{markdown:z.markdown},...((P=z.sources)==null?void 0:P.length)&&{sources:z.sources}}]})},[e,t,a]),R=async B=>{const M=(B??u).trim();if(!M||d||!W)return;const F={id:Date.now().toString(),text:M,sender:"user",timestamp:new Date};s(z=>[...z,F]),B||c(""),f(!0),setTimeout(()=>{var z;return(z=y.current)==null?void 0:z.focus()},0);try{await k(M)}finally{f(!1),setTimeout(()=>{var z;return(z=y.current)==null?void 0:z.focus()},100)}},V=B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),R())},b=()=>{Er.clearSession(e),px(Bg,e),s([])};return x&&!W?A.jsxs(K,{className:dt.smsChatContainer,"data-lang":"he",sx:{p:3},children:[A.jsx(fe,{color:"error",children:x}),n&&A.jsx(fe,{component:"button",onClick:n,sx:{mt:2,textDecoration:"underline",cursor:"pointer"},children:"סגור"})]}):W?A.jsxs(K,{"data-lang":"he",sx:{p:0,flex:1,minHeight:0,display:"flex",width:"100%",maxWidth:"100%",minWidth:0,overflow:"hidden",boxSizing:"border-box",pt:10},children:[A.jsx(K,{sx:{overflow:"auto",maxHeight:"85vh"},children:A.jsxs(K,{className:dt.smsChatContainer,sx:{p:0,flex:1,minHeight:0,display:"flex",minWidth:0,flexDirection:"column",overflow:"hidden"},children:[A.jsx(K,{ref:C,className:dt.messagesContainer,sx:{flex:"1 1 0",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:p?A.jsxs(A.Fragment,{children:[i.map(B=>A.jsxs(K,{children:[A.jsxs(K,{className:`${dt.messageWrapper} ${B.sender==="user"?dt.userMessage:dt.aiMessage}`,children:[B.sender==="ai"&&A.jsx(Sr,{className:dt.messageAvatar,children:A.jsx(_s,{})}),A.jsx(Nt,{className:`${dt.messageBubble} ${B.sender==="user"?dt.userBubble:dt.aiBubble}`,elevation:0,sx:{backgroundColor:B.sender==="user"?"#e0e0e0":"#9c27b0",color:B.sender==="user"?"#333333":"#ffffff"},children:B.sender==="ai"?A.jsx(yA,{text:B.text,className:dt.messageText,dense:!0}):A.jsx(fe,{variant:"body1",className:dt.messageText,children:B.text})}),B.sender==="user"&&A.jsx(Sr,{className:dt.messageAvatar,children:"U"})]}),B.sender==="ai"&&B.componentType&&(B.markdown??B.text)&&A.jsx(YN,{componentType:B.componentType,content:B.markdown??B.text}),B.sender==="ai"&&B.quickQuestions&&B.quickQuestions.length>0&&A.jsx(K,{className:dt.quickQuestionsContainer,children:B.quickQuestions.map((M,F)=>A.jsx(vn,{label:M,onClick:()=>R(M),disabled:d,className:dt.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},F))}),B.sender==="ai"&&B.sources&&B.sources.length>0&&!l&&A.jsxs(K,{className:dt.quickQuestionsContainer,sx:{mt:1},children:[A.jsx(fe,{variant:"caption",color:"text.secondary",component:"span",sx:{fontWeight:600,mr:.5},children:"מקורות:"}),B.sources.map((M,F)=>A.jsx(vn,{label:M.title||`מקור ${F+1}`,onClick:()=>window.open(M.url,"_blank","noopener,noreferrer"),size:"small",className:dt.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},F))]})]},B.id)),d&&A.jsxs(K,{className:`${dt.messageWrapper} ${dt.aiMessage}`,children:[A.jsx(Sr,{className:dt.messageAvatar,children:A.jsx(_s,{})}),A.jsx(Nt,{className:`${dt.messageBubble} ${dt.aiBubble}`,elevation:0,children:A.jsx(va,{size:16,className:dt.loadingSpinner})})]}),A.jsx("div",{ref:g})]}):A.jsxs(K,{className:dt.welcomeScreen,children:[A.jsx(Sr,{className:dt.aiAvatar,children:A.jsx(_s,{})}),A.jsx(fe,{variant:"h5",className:dt.welcomeTitle,children:"בואו נדבר על העסק שלך, על המתחרים ועל ההזדמנויות שמחכות לכם."})]})}),p&&A.jsx(K,{sx:{flexShrink:0,display:"flex",justifyContent:"flex-start",px:1,pb:.5},children:A.jsx(ze,{size:"small",startIcon:A.jsx(Fl,{}),onClick:b,sx:{textTransform:"none"},children:"שיחה חדשה"})}),A.jsx(K,{className:dt.inputContainer,sx:{flexShrink:0,flexGrow:0},children:A.jsx(K,{sx:{flex:1,minWidth:0,maxWidth:"100%",display:"flex",flexDirection:"column",gap:.5},children:A.jsx(at,{inputRef:y,fullWidth:!0,multiline:!0,minRows:2,maxRows:6,placeholder:o?void 0:"מי המתחרים שלי? איך לנצח את השנה ? מה החוזקות והחולשות שלי",value:u,onChange:B=>c(B.target.value),onKeyPress:V,disabled:d,variant:"outlined",className:dt.inputField,inputProps:o?{"aria-label":"שאלה לניתוח עסקי"}:void 0,InputProps:{endAdornment:A.jsx(Hn,{onClick:()=>R(),disabled:!u.trim()||d,size:"small",sx:{alignSelf:"flex-end",mb:.5,marginInlineEnd:.5,flexShrink:0,bgcolor:"#9c27b0",color:"white","&:hover":{bgcolor:"#7b1fa2"},"&.Mui-disabled":{bgcolor:"#e0e0e0",color:"#9e9e9e"}},children:A.jsx(Vh,{fontSize:"small"})})},sx:{width:"100%",minWidth:0,maxWidth:"100%","& .MuiOutlinedInput-root":{borderRadius:"24px",backgroundColor:"#f5f5f5",minWidth:0,width:"100%",maxWidth:"100%",boxSizing:"border-box","& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},alignItems:"flex-end"},"& .MuiOutlinedInput-input":{padding:"12px 16px",paddingInlineEnd:52,lineHeight:"1.5",boxSizing:"border-box"},"& textarea":{minWidth:0,maxWidth:"100%",overflowX:"hidden"}}})})})]})}),l&&E.length>0&&A.jsxs(K,{sx:{width:200,flexShrink:0,maxHeight:"100%",height:"100%",borderInlineStart:"1px solid",borderColor:"divider",display:"flex",flexDirection:"column",overflow:"hidden",bgcolor:"grey.50"},children:[A.jsx(fe,{variant:"subtitle2",sx:{p:2,fontWeight:600,flexShrink:0},children:"מקורות"}),A.jsx(K,{sx:{flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden",WebkitOverflowScrolling:"touch",px:1.5,pb:2,display:"flex",flexDirection:"column",maxHeight:"85vh",gap:1.5},children:E.map((B,M)=>A.jsxs(Nt,{elevation:0,sx:{p:1.5,borderRadius:1,bgcolor:"background.paper"},children:[A.jsxs(fe,{variant:"body2",sx:{fontWeight:500},children:[A.jsxs("span",{children:[M,")"," "]}),B.title||`מקור ${M+1}`]}),B.snippet&&A.jsx(fe,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:.5},children:B.snippet}),A.jsx(ze,{size:"small",startIcon:A.jsx(Tk,{}),href:B.url,target:"_blank",rel:"noopener noreferrer",sx:{mt:1,textTransform:"none"},children:"עבור למקור"})]},M))})]})]}):A.jsx(K,{className:dt.smsChatContainer,"data-lang":"he",sx:{display:"flex",alignItems:"center",justifyContent:"center",p:3},children:A.jsx(va,{})})}var Bm={},ZN=Fe;Object.defineProperty(Bm,"__esModule",{value:!0});var Kk=Bm.default=void 0,NN=ZN(Oe()),GN=A;Kk=Bm.default=(0,NN.default)((0,GN.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var Lm={},HN=Fe;Object.defineProperty(Lm,"__esModule",{value:!0});var Pk=Lm.default=void 0,XN=HN(Oe()),_N=A;Pk=Lm.default=(0,XN.default)((0,_N.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");var Mm={},$N=Fe;Object.defineProperty(Mm,"__esModule",{value:!0});var Jk=Mm.default=void 0,e4=$N(Oe()),t4=A;Jk=Mm.default=(0,e4.default)((0,t4.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M9 11H7V9h2zm4 0h-2V9h2zm4 0h-2V9h2z"}),"Sms");const $s=Ul;function Dk({onCardClick:e,className:t=""}){const{t:n}=Nn(),a=[{id:"email",title:n("actionCards.email"),description:n("actionCardsDesc.email"),step:3,icon:Kk},{id:"domain",title:n("actionCards.domain"),description:n("actionCardsDesc.domain"),icon:Pk},{id:"sms",title:n("actionCards.sms"),description:n("actionCardsDesc.sms"),icon:Jk},{id:"analyze",title:n("actionCards.analyze"),description:n("actionCardsDesc.analyze"),step:1,icon:_s}];return A.jsx(K,{className:t,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:{xs:1.25,sm:1.5},width:"100%"},children:a.map(r=>{const l=r.icon;return A.jsxs(K,{component:"button",type:"button",className:$s.actionCard,onClick:()=>e(r),children:[A.jsx("span",{className:$s.actionCardIcon,children:A.jsx(l,{sx:{fontSize:28,..._o}})}),A.jsxs("span",{className:$s.actionCardContent,children:[A.jsx("span",{className:$s.actionCardTitle,children:r.title}),A.jsx("span",{className:$s.actionCardDescription,children:r.description})]})]},r.id)})})}const Pl=Ul;function n4({userName:e="",websiteUrl:t="",businessName:n="",setActiveStep:a}){var x,h;const{t:r}=Nn(),l=Go(),{setOpenDomainFinder:o,openSmsChat:i,setOpenSmsChat:s,openAnalyzeChat:p,setOpenAnalyzeChat:u}=Ua(),{step2Data:c}=bg(),[d,f]=v.useState(!1),W=()=>{l&&(l.open=!1)},m=g=>{g.id==="email"&&g.step!==void 0?a==null||a(g.step):g.id==="domain"?(o(!0),a==null||a(0)):g.id==="sms"?s(!0):g.id==="analyze"?u(!0):g.id==="series"&&(a==null||a(-4))};if(v.useEffect(()=>{f(!0)},[]),i)return A.jsxs(K,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:[A.jsx(K,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:0,py:4,borderBottom:"1px solid",borderColor:"divider",flexShrink:0,width:"100%"}}),A.jsx(K,{sx:{flex:1,minHeight:0,minWidth:0,maxWidth:"100%",width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(jk,{domain:t,onClose:()=>s(!1),logo:c==null?void 0:c.logo,logoBackgroundHex:c==null?void 0:c.logoBackgroundHex})})]});if(p){const g=c?[(x=c.businessData)==null?void 0:x.business_name,(h=c.businessData)==null?void 0:h.description,c.websiteUrl].filter(Boolean).join(" | "):{};return A.jsxs(K,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:[A.jsx(K,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:0,py:4,borderBottom:"1px solid",borderColor:"divider",flexShrink:0,width:"100%"}}),A.jsx(K,{sx:{flex:1,minHeight:0,minWidth:0,maxWidth:"100%",width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Ok,{domain:t,context:g||void 0,onClose:()=>u(!1)})})]})}return A.jsx(K,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",position:"relative",boxSizing:"border-box"},children:A.jsxs(ut,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(vn,{label:"Business AI",className:d?Pl.fadeUp:"",icon:A.jsx(_c,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},margin:"0 auto",fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsx(K,{className:d?Pl.fadeUpDelay1:"",sx:{mb:{xs:2,sm:2.5},display:"flex",justifyContent:"center",alignItems:"center"},children:A.jsx(WE,{sx:{fontSize:{xs:50,sm:65,md:80},..._o}})}),A.jsxs(K,{sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(fe,{component:"h1",variant:"h4",className:d?Pl.fadeUpDelay2:"",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary",textAlign:"center"},children:e?r("thankyou.title",{name:e}):`${r("thankyou.titleNoName")}!`}),A.jsx(fe,{variant:"body2",color:"text.secondary",className:d?Pl.fadeUpDelay4:"",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,textAlign:"center",maxWidth:"min(44ch, 100%)",mx:"auto"},children:r("thankyou.subtitle")}),A.jsx(fe,{variant:"body2",color:"text.secondary",className:d?Pl.fadeUpDelay5:"",sx:{mt:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,textAlign:"center",maxWidth:"min(44ch, 100%)",mx:"auto"},children:r("thankyou.whatNext")})]}),A.jsx(K,{sx:{textAlign:"center"},className:d?Pl.fadeUpDelay5:"",children:A.jsx(Dk,{onCardClick:m})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ze,{onClick:W,variant:"text",color:"primary",className:d?Pl.fadeUpDelay5:"",sx:{alignSelf:"flex-start",textTransform:"none",maxWidth:"min(100%, 32rem)",px:.5},children:r("thankyou.keepWorking")})]})})}var Qm={},a4=Fe;Object.defineProperty(Qm,"__esModule",{value:!0});var Yk=Qm.default=void 0,r4=a4(Oe()),l4=A;Yk=Qm.default=(0,r4.default)((0,l4.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");var Vm={},o4=Fe;Object.defineProperty(Vm,"__esModule",{value:!0});var Zk=Vm.default=void 0,i4=o4(Oe()),s4=A;Zk=Vm.default=(0,i4.default)((0,s4.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const ll=Ul;function p4({userName:e="",setActiveStep:t,onViewResults:n,onStartFromBeginning:a}){const{t:r}=Nn(),{setOpenDomainFinder:l,setOpenSmsChat:o,setOpenAnalyzeChat:i}=Ua(),s=()=>{if(a){a();return}t(0)},p=()=>{n?n():t(1)},u=()=>{t(-2)},c=d=>{d.id==="email"&&d.step!==void 0?t(d.step):d.id==="domain"?(l(!0),t(0)):d.id==="sms"?o(!0):d.id==="analyze"?i(!0):d.id==="series"&&t(-4)};return A.jsx(K,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",boxSizing:"border-box"},children:A.jsxs(ut,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(vn,{label:"Business AI",icon:A.jsx(_c,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsxs(K,{sx:{mb:{xs:2.5,sm:3},alignSelf:"stretch",textAlign:"start"},children:[A.jsxs(fe,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:[r("secondTime.hi"),e?` ${e}`:"","!"]}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,maxWidth:"min(52ch, 100%)"},children:r("secondTime.whatNext")})]}),A.jsx(Sa,{title:r("secondTime.hubSectionPrimary"),description:r("secondTime.hubSectionPrimaryHint"),children:A.jsx(Dk,{onCardClick:c})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Sa,{title:r("secondTime.hubSectionSecondary"),description:r("secondTime.hubSectionSecondaryHint"),children:A.jsxs(K,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:{xs:1.25,sm:1.5},width:"100%"},children:[A.jsxs(K,{component:"button",type:"button",className:ll.actionCard,onClick:s,children:[A.jsx("span",{className:ll.actionCardIcon,children:A.jsx(Yk,{sx:{fontSize:28,..._o}})}),A.jsxs("span",{className:ll.actionCardContent,children:[A.jsx("span",{className:ll.actionCardTitle,children:r("secondTime.startFromBeginning")}),A.jsx(fe,{component:"span",variant:"body2",sx:{color:"text.secondary",mt:.5,fontSize:"0.8125rem",display:"block",lineHeight:1.45},children:r("secondTime.startFromBeginningDesc")})]})]}),A.jsxs(K,{component:"button",type:"button",className:ll.actionCard,onClick:p,children:[A.jsx("span",{className:ll.actionCardIcon,children:A.jsx(Zk,{sx:{fontSize:28,..._o}})}),A.jsxs("span",{className:ll.actionCardContent,children:[A.jsx("span",{className:ll.actionCardTitle,children:r("secondTime.viewResults")}),A.jsx(fe,{component:"span",variant:"body2",sx:{color:"text.secondary",mt:.5,fontSize:"0.8125rem",display:"block",lineHeight:1.45},children:r("secondTime.viewResultsDesc")})]})]})]})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ze,{variant:"text",color:"primary",onClick:u,sx:{alignSelf:"center",mt:{xs:.5,sm:1},fontSize:{xs:"0.8125rem",sm:"0.875rem"},px:{xs:1,sm:2},textAlign:"center",textTransform:"none",whiteSpace:{xs:"normal",sm:"nowrap"},maxWidth:"min(40ch, 100%)",lineHeight:1.45},children:r("secondTime.featureRequest")})]})})}function u4({userName:e="",setActiveStep:t}){const{t:n}=Nn(),[a,r]=v.useState({title:"",description:"",email:""}),l=()=>{if(!a.title.trim()||!a.description.trim())return;const s=new CustomEvent("business-ai-feature-request",{detail:{title:a.title,description:a.description,email:a.email||void 0,timestamp:new Date().toISOString()},bubbles:!0,composed:!0});window.dispatchEvent(s),t(-1)},o=()=>{t(-1)},i=!!a.title.trim()&&!!a.description.trim();return A.jsx(K,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"stretch"},children:A.jsxs(ut,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(vn,{label:"Business AI",icon:A.jsx(_c,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsxs(K,{sx:{mb:{xs:2.5,sm:3},alignSelf:"stretch",textAlign:"start"},children:[A.jsx(fe,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:n("featureRequestForm.pageTitle")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,maxWidth:"min(52ch, 100%)"},children:e?n("featureRequestForm.pageSubtitleNamed",{name:e}):n("featureRequestForm.pageSubtitle")})]}),A.jsx(Sa,{title:n("featureRequestForm.sectionTitle"),description:n("featureRequestForm.sectionHint"),children:A.jsxs(ut,{spacing:2,children:[A.jsx(at,{label:n("featureRequestForm.titleLabel"),fullWidth:!0,required:!0,value:a.title,onChange:s=>r({...a,title:s.target.value}),placeholder:n("featureRequestForm.titlePlaceholder"),size:"small"}),A.jsx(at,{label:n("featureRequestForm.descriptionLabel"),fullWidth:!0,required:!0,multiline:!0,minRows:3,maxRows:8,value:a.description,onChange:s=>r({...a,description:s.target.value}),placeholder:n("featureRequestForm.descriptionPlaceholder"),size:"small"}),A.jsx(at,{label:n("featureRequestForm.emailLabel"),fullWidth:!0,type:"email",value:a.email,onChange:s=>r({...a,email:s.target.value}),placeholder:n("featureRequestForm.emailPlaceholder"),size:"small"})]})}),A.jsx(er,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsxs(ut,{direction:{xs:"column-reverse",sm:"row"},spacing:1.5,justifyContent:"space-between",alignItems:{xs:"stretch",sm:"center"},children:[A.jsx(ze,{variant:"text",color:"primary",onClick:o,sx:{alignSelf:{xs:"stretch",sm:"flex-start"},textTransform:"none"},children:n("featureRequestForm.back")}),A.jsx(ze,{disabled:!i,variant:"contained",color:"primary",onClick:l,sx:{textTransform:"none"},children:n("featureRequestForm.submit")})]})]})})}const c4="https://static.intercomassets.com/avatars/5075191/square_128/%D7%AA%D7%9E%D7%95%D7%A0%D7%AA_%D7%A4%D7%A8%D7%95%D7%A4%D7%99%D7%9C_%D7%9E%D7%A6%D7%95%D7%99%D7%A8%D7%AA-1763991463.jpg";function A4({setActiveStep:e}){const{t}=Nn(),n=()=>{e(0)};return A.jsx(K,{dir:"auto",sx:{display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"center",height:"100%",padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",boxSizing:"border-box"},children:A.jsxs(ut,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center",alignItems:"stretch"},children:[A.jsx(Sr,{src:c4,alt:"Support Avatar",sx:{alignSelf:"center",width:{xs:80,sm:100,md:120},height:{xs:80,sm:100,md:120},mb:{xs:2.5,sm:3}}}),A.jsx(fe,{dir:"auto",component:"h1",variant:"h4",sx:{textAlign:"center",fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:t("welcome.heading")}),A.jsx(fe,{dir:"auto",variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},textAlign:"center",lineHeight:1.55,whiteSpace:"pre-wrap",fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(44ch, 100%)",mx:"auto",mb:{xs:3,sm:3.5}},children:t("welcome.text")}),A.jsx(ze,{size:"large",dir:"auto",variant:"contained",color:"primary",onClick:n,sx:{alignSelf:"center",textTransform:"none"},children:t("welcome.startButton")})]})})}function d4({header:e,children:t,footer:n,compactBody:a}){return A.jsxs(K,{sx:{flex:"1 1 0%",minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column",bgcolor:"background.paper"},children:[A.jsx(K,{sx:{flexShrink:0,pt:{xs:6,sm:7},px:2.5,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:e}),a?A.jsx(K,{sx:{flex:1,minHeight:0}}):A.jsx(K,{sx:{flex:1,minHeight:0,overflow:"auto",px:2.5,py:2,WebkitOverflowScrolling:"touch"},children:t}),n?A.jsx(K,{sx:{flexShrink:0,px:2.5,py:2,borderTop:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:n}):null]})}function f4(e){const{t}=Nn(),{setSeriesPromptData:n,setSeriesFormRequest:a,step2Data:r}=Ua(),[l,o]=v.useState(""),[i,s]=v.useState(7),[p,u]=v.useState(""),[c,d]=v.useState(!1),[f,W]=v.useState({kind:"none"}),[m,x]=v.useState(null),h=async y=>{var E;W({kind:"none"}),x(y),d(!0);try{const S=await Pj(y);a({goal:y.goal,totalParts:y.totalParts??7,language:y.language,targetAction:y.targetAction}),n(S.parts),(E=e.setActiveStep)==null||E.call(e,-5)}catch(S){const k=S instanceof Error?S.message:String(S),R=k.match(/failed: (\d{3})/),V=R?parseInt(R[1],10):500;W(V===400?{kind:"field",field:"goal",message:k}:V===503?{kind:"banner503"}:{kind:"banner500",message:t("seriesPrompt.errors.serverError")})}finally{d(!1)}},g=async()=>{if(W({kind:"none"}),!l.trim()){W({kind:"field",field:"goal",message:t("seriesPrompt.errors.goalRequired")});return}if(l.trim().length>500){W({kind:"field",field:"goal",message:t("seriesPrompt.errors.goalTooLong")});return}const y={goal:l.trim()};i&&(y.totalParts=i),p!==""&&(y.daysBetween=p);const E=r?{...r.businessData,websiteUrl:r.websiteUrl}:e.data??null,S=Xc(E);S&&(y.context=S),await h(y)},C=async()=>{m&&await h(m)};return A.jsx(d4,{header:A.jsxs(ut,{spacing:.5,children:[A.jsx(fe,{variant:"h6",sx:{fontWeight:700,letterSpacing:"-0.02em"},children:t("seriesPrompt.form.pageTitle")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem"},children:t("seriesPrompt.form.pageSubtitle")})]}),footer:A.jsxs(ut,{spacing:1,children:[f.kind==="banner503"&&A.jsx(Ml,{severity:"error",children:t("seriesPrompt.errors.serviceUnavailable")}),f.kind==="banner500"&&A.jsxs(Ml,{severity:"error",children:[f.message,A.jsx(ze,{size:"small",onClick:C,sx:{ml:1,textTransform:"none"},children:t("seriesPrompt.errors.retryButton")})]}),f.kind!=="banner503"&&A.jsxs(ut,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:1,children:[A.jsx(ze,{variant:"text",onClick:()=>{var y;return(y=e.setActiveStep)==null?void 0:y.call(e,-1)},disabled:c,sx:{textTransform:"none"},children:t("seriesPrompt.form.back")}),A.jsx(ze,{variant:"contained",color:"primary",disabled:!l.trim()||c,onClick:g,sx:{textTransform:"none"},children:c?A.jsxs(A.Fragment,{children:[A.jsx(va,{size:18,color:"inherit",sx:{mr:1}}),t("seriesPrompt.form.generatingButton")]}):t("seriesPrompt.form.generateButton")})]}),c&&A.jsx(fe,{variant:"body2",color:"text.secondary",align:"center",children:t("seriesPrompt.loading.generatingParts",{count:i})})]}),children:A.jsxs(ut,{spacing:2,children:[A.jsx(at,{label:t("seriesPrompt.form.goalLabel"),value:l,onChange:y=>o(y.target.value),disabled:c,required:!0,fullWidth:!0,error:f.kind==="field"&&f.field==="goal",helperText:f.kind==="field"&&f.field==="goal"?f.message:void 0,inputProps:{maxLength:500}}),A.jsx(at,{label:t("seriesPrompt.form.totalPartsLabel"),type:"number",value:i,onChange:y=>{const E=parseInt(y.target.value,10);isNaN(E)||s(Math.min(7,Math.max(1,E)))},disabled:c,fullWidth:!0,inputProps:{min:1,max:7}}),A.jsx(at,{label:t("seriesPrompt.form.daysBetweenLabel"),type:"number",value:p,onChange:y=>{const E=parseInt(y.target.value,10);u(y.target.value===""?"":Math.min(365,Math.max(1,E)))},disabled:c,fullWidth:!0,inputProps:{min:1,max:365}})]})})}var Um={},W4=Fe;Object.defineProperty(Um,"__esModule",{value:!0});var Nk=Um.default=void 0,g4=W4(Oe()),h4=A;Nk=Um.default=(0,g4.default)((0,h4.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");function m4({header:e,children:t,footer:n,compactBody:a}){return A.jsxs(K,{sx:{flex:"1 1 0%",minHeight:0,display:"flex",flexDirection:"column",bgcolor:"background.paper"},children:[A.jsx(K,{sx:{flexShrink:0,pt:{xs:6,sm:7},px:2.5,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:e}),a?A.jsx(K,{sx:{flex:1,minHeight:0}}):A.jsx(K,{sx:{flex:1,minHeight:0,overflow:"auto",px:2.5,py:2,WebkitOverflowScrolling:"touch"},children:t}),n?A.jsx(K,{sx:{flexShrink:0,px:2.5,py:2,borderTop:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:n}):null]})}const C4=[{key:"moreUrgent",i18nKey:"seriesPrompt.quickActions.moreUrgent"},{key:"makeShorter",i18nKey:"seriesPrompt.quickActions.makeShorter"},{key:"moreCasual",i18nKey:"seriesPrompt.quickActions.moreCasual"},{key:"moreFormal",i18nKey:"seriesPrompt.quickActions.moreFormal"}];function v4({part:e,partIndex:t,onSuccess:n}){const{t:a}=Nn(),{seriesFormRequest:r,seriesPromptData:l}=Ua(),[o,i]=v.useState(e.subject),[s,p]=v.useState(e.prompt),[u,c]=v.useState(!1),[d,f]=v.useState(!1),[W,m]=v.useState(null),[x,h]=v.useState(!1),[g,C]=v.useState(e.cta),[y,E]=v.useState(!1),[S,k]=v.useState(null),[R,V]=v.useState(""),b=async()=>{try{await navigator.clipboard.writeText(s),h(!0),setTimeout(()=>h(!1),2e3)}catch{}},B=async()=>{c(!0),m(null);try{const z=await kg({prompt:s,domain:"",structureUrl:"",textStyleUrl:"",forceAuthentic:!0});f(!0),n(t,{subject:o,prompt:s,cta:g},z)}catch{m(a("seriesPrompt.errors.serverError"))}finally{c(!1)}},M=async z=>{const T=z??R;E(!0),k(null);try{const j=await Jj({subject:o,prompt:s,cta:g,editInstruction:T,goal:(r==null?void 0:r.goal)??"",partNumber:t+1,totalParts:(r==null?void 0:r.totalParts)??(l==null?void 0:l.length)??1,language:r==null?void 0:r.language,targetAction:r==null?void 0:r.targetAction});i(j.subject),p(j.prompt),C(j.cta),V("")}catch{k(a("seriesPrompt.errors.serverError"))}finally{E(!1)}},F=z=>{V(z),M(z)};return A.jsx(eg,{variant:"outlined",sx:{borderRadius:2},children:A.jsxs(ng,{children:[A.jsxs(ut,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{mb:1},children:[A.jsx(fe,{variant:"body2",fontWeight:700,children:a("seriesPrompt.cards.partLabel",{number:t+1})}),d&&A.jsx(vn,{color:"success",size:"small",icon:A.jsx(Nk,{}),label:a("common.send")})]}),A.jsx(at,{label:a("seriesPrompt.cards.subjectLabel"),value:o,onChange:z=>i(z.target.value),disabled:y,fullWidth:!0,size:"small",sx:{mb:1.5}}),A.jsx(at,{label:a("seriesPrompt.cards.promptLabel"),value:s,onChange:z=>p(z.target.value),disabled:y,fullWidth:!0,multiline:!0,rows:4,sx:{mb:1.5}}),A.jsx(at,{label:a("seriesPrompt.cards.ctaLabel"),value:g,onChange:z=>C(z.target.value),disabled:y,fullWidth:!0,size:"small",sx:{mb:2}}),A.jsx(ut,{direction:"row",flexWrap:"wrap",gap:1,sx:{mb:1},children:C4.map(z=>A.jsx(vn,{label:a(z.i18nKey),size:"small",variant:"outlined",disabled:y,onClick:()=>F(a(z.i18nKey))},z.key))}),A.jsx(at,{label:a("seriesPrompt.edit.label"),placeholder:a("seriesPrompt.edit.placeholder"),value:R,onChange:z=>V(z.target.value),disabled:y,fullWidth:!0,size:"small",multiline:!0,rows:2,inputProps:{maxLength:500},sx:{mt:2}}),A.jsx(ut,{direction:"row",justifyContent:"flex-end",sx:{mb:1},children:A.jsx(ze,{variant:"contained",size:"small",color:"primary",disabled:y,onClick:()=>M(),sx:{textTransform:"none"},children:y?A.jsx(va,{size:18,color:"inherit","aria-label":"Loading"}):a("seriesPrompt.edit.submitButton")})}),S&&A.jsx(Ml,{severity:"error",sx:{mb:1},children:S}),W&&A.jsx(Ml,{severity:"error",sx:{mb:1},children:W}),A.jsxs(ut,{direction:"row",justifyContent:"flex-end",gap:1,children:[A.jsx(ze,{variant:"outlined",size:"small",onClick:b,sx:{textTransform:"none"},children:a(x?"seriesPrompt.cards.copiedButton":"seriesPrompt.cards.copyButton")}),A.jsx(ze,{variant:"contained",size:"small",disabled:u||d,onClick:B,sx:{textTransform:"none"},children:u?A.jsxs(A.Fragment,{children:[A.jsx(va,{size:18,color:"inherit",sx:{mr:1}}),a("seriesPrompt.cards.sendingButton")]}):a(W?"seriesPrompt.errors.retryButton":"seriesPrompt.cards.sendToNewsletterButton")})]})]})})}function y4({setActiveStep:e}){const{t}=Nn(),{seriesPromptData:n}=Ua(),a=Go(),r=v.useCallback((l,o,i)=>{a&&a.triggerEvent("onSeriesNewsletterComplete",{partIndex:l,part:o,newsletterData:i})},[a]);return!n||n.length===0?null:A.jsx(m4,{header:A.jsxs(ut,{spacing:.5,children:[A.jsx(fe,{variant:"h6",sx:{fontWeight:700,letterSpacing:"-0.02em"},children:t("seriesPrompt.form.pageTitle")}),A.jsx(fe,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem"},children:t("seriesPrompt.form.pageSubtitle")})]}),footer:A.jsx(ze,{variant:"text",onClick:()=>e==null?void 0:e(-4),sx:{textTransform:"none"},children:t("seriesPrompt.form.back")}),children:A.jsx(ut,{spacing:2,children:n.map((l,o)=>A.jsx(v4,{part:l,partIndex:o,onSuccess:r},o))})})}const S4=Ul,I4=Hc(Qj,Ul);function x4(e,t){return t!=null?!0:Fm(e)}function Fm(e){if(!e||typeof e!="object")return!1;const t=e,n=t.domain??t.website??t.websiteUrl,a=typeof n=="string"&&n.length>0&&!n.includes("example.com"),r=typeof t.business_name=="string"&&t.business_name.length>0&&t.business_name!=="Example Company";return!!(a||r||t.analyzed_at||t.businessData)}function E4({language:e="he",showWelcome:t=!1,userName:n="",freeSolo:a=!0,placeholderSuggestions:r=[],data:l={websiteUrl:"https://www.example.com",business_name:"Example Company"},websiteUrl:o="",business_name:i="",logo:s="",urls:p=[],mergeTags:u=[],visibilityRules:c,location:d}){Gc(I4,"bussinessAILayout-styles");const{t:f}=Nn(),{shadowRoot:W,activeStep:m,setActiveStep:x,step2Data:h,setStep2Data:g,step3Draft:C,setStep3Draft:y,openSmsChat:E,setOpenSmsChat:S,openAnalyzeChat:k,setOpenAnalyzeChat:R,openDomainFinder:V}=Ua(),b=x4(l,h),B=()=>t&&!b?-3:b?-1:0,M=v.useRef(!1),F=v.useRef(m),z=v.useRef(!1);v.useEffect(()=>{if(M.current)b&&m===0&&h==null&&!z.current&&!V?(x(-1),z.current=!0):M.current&&h!=null&&m===2&&Fm(l)?x(-1):M.current&&h!=null&&m===0&&!V&&(x(-1),z.current=!0);else{if(h!=null&&m===2&&Fm(l)){x(-1),z.current=!0,M.current=!0;return}if(h!=null){m===0&&(x(-1),z.current=!0),M.current=!0;return}const le=B();le!==0&&F.current===0&&(x(le),le===-1&&(z.current=!0)),M.current=!0}},[h,b,m,l,V]),v.useEffect(()=>{if((m===-1||m===-2)&&!b){x(t?-3:0);return}m===-3&&!t&&x(0)},[m,b,t,x]);const T=v.useRef(null);v.useEffect(()=>{if(T.current===null){T.current=t;return}!T.current&&t&&m===0&&!b&&h==null&&!V&&x(-3),T.current=t},[t,m,b,h,V,x]);const j=m,P=x,L=l??{},q=L.businessData&&typeof L.businessData=="object"?L.businessData:null,w=o||(typeof L.websiteUrl=="string"?L.websiteUrl:"")||(typeof L.website=="string"?L.website:"")||(typeof L.domain=="string"?L.domain:"")||(typeof(q==null?void 0:q.website)=="string"?q.website:""),G=i||(typeof L.business_name=="string"?L.business_name:"")||(typeof(q==null?void 0:q.business_name)=="string"?q.business_name:""),te=q!=null?{...q,logo:(typeof L.logo=="string"?L.logo:"")||(typeof q.logo=="string"?q.logo:""),websiteUrl:(typeof L.websiteUrl=="string"?L.websiteUrl:"")||(typeof q.website=="string"?q.website:""),domain:(typeof L.domain=="string"?L.domain:"")||(typeof q.website=="string"?q.website:"")}:l,[Q,N]=v.useState(w),[re,ue]=v.useState(G),[_,H]=v.useState(null),[de,ae]=v.useState(null),X=v.useRef(null),he=v.useRef(null);v.useEffect(()=>{console.log("🔄 [Parent] step2Data from context updated:",h),console.log("🔄 [Parent] step2Data (stringified):",h?JSON.stringify(h,null,2):"null"),h&&H(h.businessData)},[h]);function We(le){var qe;console.log("💾 [Parent] onSave called with data:",le),console.log("💾 [Parent] onSave data (stringified):",JSON.stringify(le,null,2)),console.log("💾 [Parent] onSave - businessData keys:",Object.keys(le.businessData||{})),g(le),H(le.businessData),console.log("💾 [Parent] step2Data saved to context");const Ke=((qe=le.businessData)==null?void 0:qe.website)||le.websiteUrl||"";Ke&&N(Ke)}const me=()=>{S(!1),R(!1),g(null),C!=null&&y(null),H(null),N(w),ue(G),x(0)},ve=[f("steps.brandDetails"),f("steps.designPrefs"),f("steps.summary"),f("steps.summaryAndSend")];v.useEffect(()=>{const le=()=>{let Be=null;if(X.current&&(Be=X.current.closest(".MuiDialog-paper")),!Be&&W&&(Be=W.querySelector(".MuiDialog-paper")),Be||(Be=document.querySelector(".MuiDialog-paper")),Be){const Pe=Be.getBoundingClientRect().height;ae(Pe)}else if(X.current){const Te=X.current.getBoundingClientRect();ae(Te.height)}};le(),window.addEventListener("resize",le);const Ke=setTimeout(le,100),qe=setTimeout(le,300);return()=>{window.removeEventListener("resize",le),clearTimeout(Ke),clearTimeout(qe)}},[j,W]);const ce=j===-3||j===-2||j===-1||j===-4||j===-5||j===2,Ze=j===3||E||k;return A.jsx(K,{"data-lang":e,sx:{flex:1,minHeight:0,height:"100%",width:"100%",display:"flex",flexDirection:"column",paddingBottom:j===1?{xs:72,sm:80}:0},children:A.jsxs(ct,{height:"100%",justifyContent:"space-between",sx:{height:"100%",flex:"1 1 0%",minHeight:0,minWidth:0,flexWrap:{xs:"wrap",md:j===0?"nowrap":"wrap"}},container:!0,children:[A.jsx(ct,{item:!0,lg:j===0?8:12,md:j===0?8:12,sm:12,xs:12,sx:{minHeight:0,minWidth:0,display:"flex",flexDirection:"column",flex:"1 1 0%",maxWidth:{xs:"100%",md:j===0?"66.666667%":"100%"}},children:A.jsx(K,{ref:X,sx:{flex:"1 1 0%",minHeight:0,minWidth:0,display:"flex",flexDirection:"column"},children:j===1?A.jsx(K,{ref:he,sx:{overflow:"hidden",flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(iO,{data:te,websiteUrl:Q,setActiveStep:P,onSave:We,urls:p||[],language:e})}):A.jsx(K,{sx:{flex:"1 1 0%",minHeight:0,minWidth:0,display:"flex",flexDirection:"column",width:"100%",position:"relative",justifyContent:Ze||ce?"flex-start":"center",alignItems:Ze||ce?"stretch":"center"},children:A.jsxs(K,{ref:he,sx:{flex:"1 1 0%",minHeight:0,minWidth:0,overflow:Ze?"hidden":void 0,overflowY:Ze?"hidden":"auto",overscrollBehaviorY:"contain",overflowX:"hidden",width:"100%",maxHeight:Ze?void 0:ce?"calc(90vh - 7.5rem)":void 0,display:"flex",flexDirection:"column",alignItems:Ze?"stretch":"center",pb:ce?{xs:4,sm:5}:{xs:1,sm:2},WebkitOverflowScrolling:"touch"},children:[E?A.jsx(K,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:A.jsx(K,{sx:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(jk,{domain:Q||(l==null?void 0:l.domain)||"",onClose:()=>S(!1),logo:(h==null?void 0:h.logo)??(l==null?void 0:l.logo)??"",logoBackgroundHex:(h==null?void 0:h.logoBackgroundHex)??(l==null?void 0:l.logoBackgroundHex)??void 0,language:e,context:Xc(h?{...h.businessData,websiteUrl:h.websiteUrl}:l)??void 0})})}):k?(()=>{const le=Xc(h?{...h.businessData,websiteUrl:h.websiteUrl}:l)??void 0;return A.jsx(K,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:A.jsx(K,{sx:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Ok,{domain:Q||(l==null?void 0:l.domain)||"",context:le,onClose:()=>R(!1),language:e})})})})():null,!E&&!k?A.jsxs(A.Fragment,{children:[t&&j===-3?A.jsx(A4,{userName:n,setActiveStep:P}):null,b&&j===-1?A.jsx(p4,{userName:n,setActiveStep:P,onStartFromBeginning:me}):null,b&&j===-2?A.jsx(u4,{userName:n,setActiveStep:P}):null,b&&j===-4?A.jsx(f4,{setActiveStep:P,data:L}):null,b&&j===-5?A.jsx(y4,{setActiveStep:P}):null,j===0?A.jsx(Nj,{activeStep:j,steps:ve,userName:n,websiteUrl:Q,setWebsiteUrl:N,setActiveStep:P,freeSolo:a,hasContext:b,urls:p||[],businessNameOrDescription:re||(_==null?void 0:_.business_name)||"",setBusinessNameOrDescription:ue,language:e}):null,j===2?A.jsx(n4,{userName:n,websiteUrl:(_==null?void 0:_.website)||Q||"",businessName:(_==null?void 0:_.business_name)||re||"",setActiveStep:P}):null,j===3?(()=>{const le=l,Ke=h||{businessData:_||(le&&typeof le=="object"&&"businessData"in le?le.businessData:le)||{},logo:s||(le==null?void 0:le.logo)||"",websiteUrl:Q||(le==null?void 0:le.domain)||(le==null?void 0:le.websiteUrl)||""};return A.jsx(KO,{setActiveStep:P,placeholderSuggestions:r,language:e,data:Ke,logo:(h==null?void 0:h.logo)||s,mergeTags:u,visibilityRules:c,location:d})})():null]}):null]})})})}),j===0?A.jsx(ct,{item:!0,lg:5,md:4,sx:{display:{xs:"none",sm:"none",md:"block"},position:"sticky",top:0,alignSelf:"flex-start",height:"fit-content",maxHeight:"100vh"},className:S4.rightLayout,children:A.jsx(K,{sx:{height:de?`${de}px`:"100vh",minHeight:"100%",backgroundImage:`url(${Mj})`,backgroundSize:"cover",backgroundPosition:"right",backgroundRepeat:"no-repeat",backgroundColor:"#ececec"}})}):null]})})}function b4({showWelcome:e=!1,fullScreen:t=!1,language:n="he",userName:a="",freeSolo:r=!0,placeholderSuggestions:l=[],data:o={},websiteUrl:i="",business_name:s="",logo:p="",open:u=!1,urls:c=[],mergeTags:d=[],visibilityRules:f,location:W}){const m=o??{},x=n&&/^(he|ar|fa|ur)/i.test(n)?"rtl":"ltr",h=v.useMemo(()=>BW({direction:x,typography:{fontFamily:"'Rubik', sans-serif"},palette:{mode:"light",primary:{main:"#6328A7",contrastText:"#ffffff"},secondary:{main:"#000"}},components:{MuiSvgIcon:{styleOverrides:{colorPrimary:{...ql}}},MuiIconButton:{styleOverrides:{colorPrimary:{color:"transparent","& .MuiSvgIcon-root":{...ql}}}},MuiTypography:{styleOverrides:{root:({ownerState:j})=>j.color==="primary"?{backgroundImage:ta,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{}}},MuiLink:{styleOverrides:{root:({ownerState:j})=>j.color==="primary"?{backgroundImage:ta,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{}}},MuiCircularProgress:{styleOverrides:{colorPrimary:{color:"url(#cdtr-brand-gradient)"}}},MuiCheckbox:{styleOverrides:{colorPrimary:{color:"url(#cdtr-brand-gradient)","&.Mui-checked, &.MuiCheckbox-indeterminate":{color:"url(#cdtr-brand-gradient)"},"& .MuiSvgIcon-root":{...ql}}}},MuiChip:{styleOverrides:{outlinedPrimary:({theme:j})=>({border:"1px solid transparent",backgroundColor:"transparent",backgroundImage:`
820
820
  linear-gradient(${j.palette.background.paper}, ${j.palette.background.paper}),
821
821
  ${ta}
822
822
  `,backgroundOrigin:"padding-box, border-box",backgroundClip:"padding-box, border-box","& .MuiChip-label":{backgroundImage:ta,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"},"& .MuiChip-icon":{color:"transparent","& .MuiSvgIcon-root":{...ql}}})}},MuiButton:{styleOverrides:{root:{borderRadius:999},textPrimary:({theme:j})=>({backgroundImage:ta,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent","& .MuiButton-startIcon, & .MuiButton-endIcon":{WebkitBackgroundClip:"border-box",WebkitTextFillColor:"unset",backgroundImage:"none","& .MuiSvgIcon-root":{...ql}},"&:hover":{backgroundImage:ta,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",opacity:.92},"&.Mui-disabled":{WebkitTextFillColor:"currentcolor",backgroundImage:"none",color:j.palette.action.disabled,"& .MuiButton-startIcon .MuiSvgIcon-root, & .MuiButton-endIcon .MuiSvgIcon-root":{fill:"none",color:j.palette.action.disabled}}}),outlinedPrimary:({theme:j})=>({border:"2px solid transparent",backgroundColor:"transparent",boxShadow:"none",backgroundImage:`