diff --git a/build/assets/App-oq9qlPWg.css b/build/assets/App-B880cxJe.css similarity index 91% rename from build/assets/App-oq9qlPWg.css rename to build/assets/App-B880cxJe.css index 45572c1..43c9e83 100644 --- a/build/assets/App-oq9qlPWg.css +++ b/build/assets/App-B880cxJe.css @@ -1 +1 @@ -.helix-dashboard,.helix-page{padding:2rem;max-width:1400px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.helix-page h1{font-size:2rem;margin-bottom:1rem;color:var(--helix-color-10);font-weight:700}.helix-page p{color:var(--helix-color-6);margin-bottom:2rem}.helix-dashboard__header{margin-bottom:3rem;background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;padding:3rem 2rem;margin:-2rem 0 3rem -2rem;border-radius:0 0 24px 24px;position:relative;overflow:hidden}.helix-dashboard__header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,');opacity:.3}.helix-dashboard__header h1{font-size:3rem;margin:0 0 .5rem;color:#fff;font-weight:800;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.3)}.helix-dashboard__header p{font-size:1.25rem;color:#ffffffe6;margin:0;position:relative;z-index:1;font-weight:400;line-height:3}.helix-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem}.helix-loading__spinner{width:40px;height:40px;border:4px solid var(--helix-color-2);border-top:4px solid var(--helix-color-7);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.helix-dashboard__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.helix-stats-card{background:var(--helix-color-1);border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;display:flex;align-items:flex-start;gap:1rem;transition:transform .2s ease,box-shadow .2s ease;border:1px solid var(--helix-color-3)}.helix-stats-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-stats-card__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:10px;background:#fffc;box-shadow:0 2px 4px #0000001a}.helix-stats-card__icon svg{width:24px;height:24px}.helix-stats-card__content{flex:1}.helix-stats-card__header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.25rem}.helix-stats-card__count{font-size:2rem;font-weight:700;margin:0;color:var(--helix-color-10);line-height:1}.helix-stats-card__title{font-size:.875rem;color:var(--helix-color-6);margin:0;font-weight:500}.helix-stats-card__trend{display:flex;align-items:center;gap:.25rem;font-size:.75rem;font-weight:600;color:#059669;background:#10b9811a;padding:.25rem .5rem;border-radius:6px}.helix-trend-icon{width:12px!important;height:12px!important}.helix-dashboard__content{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:1.5rem}.helix-widget{background:var(--helix-color-1);border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;overflow:hidden;border:1px solid var(--helix-color-3);transition:box-shadow .2s ease}.helix-widget:hover{box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-widget__header{padding:1.25rem 1.5rem;border-bottom:1px solid var(--helix-color-2);display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%)}.helix-widget__header h2{margin:0;font-size:1.25rem;color:var(--helix-color-9);flex-grow:1}.helix-widget__link{color:var(--helix-color-8);text-decoration:none;font-size:.9rem}.helix-widget__link:hover{text-decoration:underline}.helix-widget__content{padding:1.5rem}.helix-widget__empty{color:var(--helix-color-6);font-style:italic}.helix-posts-list,.helix-comments-list{list-style:none;padding:0;margin:0}.helix-posts-list__item,.helix-comments-list__item{display:flex;justify-content:space-between;align-items:flex-start;padding:1rem 0;border-bottom:1px solid var(--helix-color-2)}.helix-posts-list__item:last-child,.helix-comments-list__item:last-child{border-bottom:none}.helix-posts-list__title a,.helix-comments-list__author{color:var(--helix-color-9);text-decoration:none;font-weight:500}.helix-posts-list__title a:hover{color:var(--helix-color-8)}.helix-posts-list__date,.helix-comments-list__date{color:var(--helix-color-6);font-size:.9rem;margin:.25rem 0 0}.helix-comments-list__excerpt{color:var(--helix-color-6);margin:.25rem 0;font-size:.9rem}.helix-status{padding:.25rem .5rem;border-radius:.25rem;font-size:.8rem;font-weight:500}.helix-status--publish{background:#dcfce7;color:#166534}.helix-status--draft{background:#fef3c7;color:#92400e}.helix-status--approved{background:#dcfce7;color:#166534}.helix-status--pending{background:#fef3c7;color:#92400e}.helix-quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.helix-quick-action{display:flex;flex-direction:column;align-items:center;padding:1.25rem 1rem;background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%);border-radius:10px;text-decoration:none;color:var(--helix-color-9);transition:all .2s ease;border:1px solid var(--helix-color-3);position:relative;overflow:hidden}.helix-quick-action:hover{background:linear-gradient(135deg,var(--helix-color-3) 0%,var(--helix-color-4) 100%);transform:translateY(-2px);box-shadow:0 4px 12px #00000026;color:var(--helix-color-10)}.helix-quick-action__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:var(--helix-color-1);border-radius:10px;margin-bottom:.75rem;box-shadow:0 2px 4px #0000001a;transition:all .2s ease}.helix-quick-action:hover .helix-quick-action__icon{background:var(--helix-color-8);transform:scale(1.1)}.helix-quick-action:hover .helix-quick-action__icon svg{color:#fff}.helix-quick-action__icon svg{width:20px;height:20px;color:var(--helix-color-6);transition:color .2s ease}.helix-quick-action__text{font-size:.875rem;font-weight:600;text-align:center;line-height:1.2}.helix-news-placeholder{color:var(--helix-color-6)}.helix-news-item h4{margin:0 0 .5rem;color:var(--helix-color-9)}.helix-news-item p{margin:0 0 .5rem;font-size:.9rem}.helix-news-item a{color:var(--helix-color-8);text-decoration:none;font-size:.9rem}.helix-news-item a:hover{text-decoration:underline}:root{--helix-color-1: #f1f4fe;--helix-color-2: #e4e6ed;--helix-color-3: #c8cad3;--helix-color-4: #a9adb9;--helix-color-5: #9094a3;--helix-color-6: #7f8496;--helix-color-7: #777c91;--helix-color-8: #63687c;--helix-color-9: #595e72;--helix-color-10: #4a5167}.helix-settings-page{max-width:1400px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.helix-settings-header{margin-bottom:3rem;background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;padding:3rem 2rem;margin:-2rem 0 3rem -2rem;border-radius:0 0 24px 24px;position:relative;overflow:hidden}.helix-settings-header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,');opacity:.3}.helix-settings-header h1{font-size:3rem;font-weight:800;color:#fff;margin:0 0 .5rem;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.3)}.helix-settings-header p{font-size:1.25rem;color:#ffffffe6;margin:0;position:relative;z-index:1;font-weight:400;line-height:3}.helix-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.helix-loading p{margin:20px 0 0;font-size:1.1rem;color:var(--helix-color-6)}.helix-spinner{width:24px;height:24px;border:3px solid #e5e7eb;border-top:3px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;display:inline-block}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.helix-settings-controls,.helix-settings-footer{display:flex;justify-content:center;margin:30px 0;padding:20px 0;border-top:1px solid #e5e7eb}.helix-settings-footer{border-bottom:1px solid #e5e7eb;margin-top:50px}.helix-save-buttons{display:flex;align-items:center;gap:15px}.helix-btn{padding:12px 24px;font-size:14px;font-weight:500;border-radius:8px;border:1px solid transparent;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.helix-btn:disabled{opacity:.6;cursor:not-allowed}.helix-btn-primary{background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;border-color:var(--helix-color-8);box-shadow:0 4px 6px -1px #667eea33}.helix-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#5a6fd8,#6a4190);border-color:#5a6fd8;transform:translateY(-1px);box-shadow:0 8px 15px -3px #667eea4d}.helix-btn-secondary{background-color:#fff;color:var(--helix-color-9);border-color:#d1d5db}.helix-btn-secondary:hover:not(:disabled){background-color:#f9fafb;border-color:#9ca3af}.helix-save-status{color:#059669;font-weight:500;display:flex;align-items:center;gap:5px}.helix-settings-tabs{margin:30px 0}.helix-tabs-nav{display:flex;border-bottom:2px solid #e5e7eb;overflow-x:auto;gap:2px}.helix-tab{display:flex;align-items:center;gap:8px;padding:12px 20px;font-size:14px;font-weight:500;color:var(--helix-color-6);background:none;border:none;border-bottom:3px solid transparent;cursor:pointer;transition:all .2s ease;white-space:nowrap;position:relative}.helix-tab:hover{color:var(--helix-color-8);background-color:var(--helix-color-1)}.helix-tab.active{color:var(--helix-color-8);border-bottom-color:var(--helix-color-8)}.helix-tab-icon{font-size:16px;display:flex;align-items:center;justify-content:center}.helix-tab-icon svg{width:20px;height:20px;transition:color .2s ease}.helix-tab-indicator{color:#f59e0b;font-size:12px;position:absolute;top:5px;right:5px}.helix-settings-content{margin:40px 0}.helix-tab-panel{min-height:400px}.helix-settings-section{background:var(--helix-color-1);border-radius:12px;border:1px solid rgba(226,232,240,.5);overflow:hidden;margin-bottom:30px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;transition:transform .2s ease,box-shadow .2s ease}.helix-settings-section:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-settings-section-header{background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%);padding:24px;border-bottom:1px solid rgba(102,126,234,.1)}.helix-settings-section-title{font-size:1.5rem;font-weight:600;color:var(--helix-color-10);margin:0 0 8px}.helix-settings-section-description{color:var(--helix-color-6);margin:0;font-size:14px}.helix-settings-section-content{padding:24px}.helix-settings-grid{display:grid;gap:24px}.helix-settings-subsection{border-top:1px solid #e5e7eb;padding-top:24px;margin-top:24px}.helix-settings-subsection h4{font-size:1.1rem;font-weight:600;color:var(--helix-color-9);margin:0 0 20px}.helix-form-field{display:flex;flex-direction:column;gap:8px}.helix-form-label{font-weight:500;color:var(--helix-color-9);font-size:14px}.helix-required{color:#ef4444;margin-left:4px}.helix-form-control{display:flex;flex-direction:column}.helix-form-description{font-size:13px;color:var(--helix-color-6);margin:0;line-height:1.4}.helix-form-error{font-size:13px;color:#ef4444;margin:0}.helix-text-input,.helix-number-input,.helix-select-input{padding:10px 12px;border:1px solid var(--helix-color-3);border-radius:6px;font-size:14px;transition:border-color .2s ease;background:var(--helix-color-1)}.helix-text-input:focus,.helix-number-input:focus,.helix-select-input:focus{outline:none;border-color:var(--helix-color-8);box-shadow:0 0 0 3px #667eea1a}.helix-select-input{cursor:pointer}.helix-toggle-field{margin:16px 0}.helix-toggle-wrapper{display:flex;align-items:center;gap:12px;cursor:pointer}.helix-toggle-input{position:relative;width:48px;height:24px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--helix-color-3);border-radius:12px;outline:none;cursor:pointer;transition:background-color .2s ease}.helix-toggle-input:checked{background:var(--helix-color-8)}.helix-toggle-input:before{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;background:var(--helix-color-1);border-radius:50%;transition:transform .2s ease}.helix-toggle-input:checked:before{transform:translate(24px)}.helix-toggle-label{font-weight:500;color:var(--helix-color-9);font-size:14px}.helix-notification{background:var(--helix-color-1);border:1px solid var(--helix-color-3);border-radius:8px;padding:16px;margin:20px 0;box-shadow:0 4px 6px -1px #0000001a;opacity:0;transform:translateY(-10px);transition:all .3s ease}.helix-notification.visible{opacity:1;transform:translateY(0)}.helix-notification-success{border-left:4px solid #059669;background-color:#f0fdf4}.helix-notification-error{border-left:4px solid #ef4444;background-color:#fef2f2}.helix-notification-warning{border-left:4px solid #f59e0b;background-color:#fffbeb}.helix-notification-info{border-left:4px solid #667eea;background-color:#f0f4ff}.helix-notification-content{display:flex;align-items:center;gap:12px}.helix-notification-icon{font-size:18px;flex-shrink:0}.helix-notification-message{flex:1;font-size:14px;color:var(--helix-color-9)}.helix-notification-close{background:none;border:none;font-size:20px;color:var(--helix-color-6);cursor:pointer;padding:0;line-height:1;flex-shrink:0}.helix-notification-close:hover{color:var(--helix-color-9)}@media (max-width: 768px){.helix-settings-page{padding:15px}.helix-settings-header h1{font-size:2rem}.helix-tabs-nav{flex-direction:column;gap:0}.helix-tab{justify-content:flex-start;border-bottom:1px solid #e5e7eb;border-right:none}.helix-tab.active{border-bottom-color:#e5e7eb;border-left:3px solid #667eea;background-color:var(--helix-color-1)}.helix-settings-section-content,.helix-settings-section-header{padding:20px}.helix-save-buttons{flex-direction:column;width:100%}.helix-btn{width:100%;justify-content:center}} +.helix-dashboard,.helix-page{padding:2rem;max-width:1400px;margin:0 auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.helix-page h1{font-size:2rem;margin-bottom:1rem;color:var(--helix-color-10);font-weight:700}.helix-page p{color:var(--helix-color-6);margin-bottom:2rem}.helix-dashboard__header{margin-bottom:3rem;background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;padding:3rem 2rem;margin:-2rem 0 3rem -2rem;border-radius:0 0 24px 24px;position:relative;overflow:hidden}.helix-dashboard__header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,');opacity:.3}.helix-dashboard__header h1{font-size:3rem;margin:0 0 .5rem;color:#fff;font-weight:800;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.3)}.helix-dashboard__header p{font-size:1.25rem;color:#ffffffe6;margin:0;position:relative;z-index:1;font-weight:400;line-height:3}.helix-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem}.helix-loading__spinner{width:40px;height:40px;border:4px solid var(--helix-color-2);border-top:4px solid var(--helix-color-7);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.helix-dashboard__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.helix-stats-card{background:var(--helix-color-1);border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;display:flex;align-items:flex-start;gap:1rem;transition:transform .2s ease,box-shadow .2s ease;border:1px solid var(--helix-color-3)}.helix-stats-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-stats-card__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:10px;background:#fffc;box-shadow:0 2px 4px #0000001a}.helix-stats-card__icon svg{width:24px;height:24px}.helix-stats-card__content{flex:1}.helix-stats-card__header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.25rem}.helix-stats-card__count{font-size:2rem;font-weight:700;margin:0;color:var(--helix-color-10);line-height:1}.helix-stats-card__title{font-size:.875rem;color:var(--helix-color-6);margin:0;font-weight:500}.helix-stats-card__trend{display:flex;align-items:center;gap:.25rem;font-size:.75rem;font-weight:600;color:#059669;background:#10b9811a;padding:.25rem .5rem;border-radius:6px}.helix-trend-icon{width:12px!important;height:12px!important}.helix-dashboard__content{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:1.5rem}.helix-widget{background:var(--helix-color-1);border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;overflow:hidden;border:1px solid var(--helix-color-3);transition:box-shadow .2s ease}.helix-widget:hover{box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-widget__header{padding:1.25rem 1.5rem;border-bottom:1px solid var(--helix-color-2);display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%)}.helix-widget__header h2{margin:0;font-size:1.25rem;color:var(--helix-color-9);flex-grow:1}.helix-widget__link{color:var(--helix-color-8);text-decoration:none;font-size:.9rem}.helix-widget__link:hover{text-decoration:underline}.helix-widget__content{padding:1.5rem}.helix-widget__empty{color:var(--helix-color-6);font-style:italic}.helix-posts-list,.helix-comments-list{list-style:none;padding:0;margin:0}.helix-posts-list__item,.helix-comments-list__item{display:flex;justify-content:space-between;align-items:flex-start;padding:1rem 0;border-bottom:1px solid var(--helix-color-2)}.helix-posts-list__item:last-child,.helix-comments-list__item:last-child{border-bottom:none}.helix-posts-list__title a,.helix-comments-list__author{color:var(--helix-color-9);text-decoration:none;font-weight:500}.helix-posts-list__title a:hover{color:var(--helix-color-8)}.helix-posts-list__date,.helix-comments-list__date{color:var(--helix-color-6);font-size:.9rem;margin:.25rem 0 0}.helix-comments-list__excerpt{color:var(--helix-color-6);margin:.25rem 0;font-size:.9rem}.helix-status{padding:.25rem .5rem;border-radius:.25rem;font-size:.8rem;font-weight:500}.helix-status--publish{background:#dcfce7;color:#166534}.helix-status--draft{background:#fef3c7;color:#92400e}.helix-status--approved{background:#dcfce7;color:#166534}.helix-status--pending{background:#fef3c7;color:#92400e}.helix-quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.helix-quick-action{display:flex;flex-direction:column;align-items:center;padding:1.25rem 1rem;background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%);border-radius:10px;text-decoration:none;color:var(--helix-color-9);transition:all .2s ease;border:1px solid var(--helix-color-3);position:relative;overflow:hidden}.helix-quick-action:hover{background:linear-gradient(135deg,var(--helix-color-3) 0%,var(--helix-color-4) 100%);transform:translateY(-2px);box-shadow:0 4px 12px #00000026;color:var(--helix-color-10)}.helix-quick-action__icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:var(--helix-color-1);border-radius:10px;margin-bottom:.75rem;box-shadow:0 2px 4px #0000001a;transition:all .2s ease}.helix-quick-action:hover .helix-quick-action__icon{background:var(--helix-color-8);transform:scale(1.1)}.helix-quick-action:hover .helix-quick-action__icon svg{color:#fff}.helix-quick-action__icon svg{width:20px;height:20px;color:var(--helix-color-6);transition:color .2s ease}.helix-quick-action__text{font-size:.875rem;font-weight:600;text-align:center;line-height:1.2}.helix-news-placeholder{color:var(--helix-color-6)}.helix-news-item h4{margin:0 0 .5rem;color:var(--helix-color-9)}.helix-news-item p{margin:0 0 .5rem;font-size:.9rem}.helix-news-item a{color:var(--helix-color-8);text-decoration:none;font-size:.9rem}.helix-news-item a:hover{text-decoration:underline}:root{--helix-color-1: #f1f4fe;--helix-color-2: #e4e6ed;--helix-color-3: #c8cad3;--helix-color-4: #a9adb9;--helix-color-5: #9094a3;--helix-color-6: #7f8496;--helix-color-7: #777c91;--helix-color-8: #63687c;--helix-color-9: #595e72;--helix-color-10: #4a5167}.helix-settings-page{max-width:1400px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.helix-settings-header{margin-bottom:3rem;background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;padding:3rem 2rem;margin:-2rem 0 3rem -2rem;border-radius:0 0 24px 24px;position:relative;overflow:hidden}.helix-settings-header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,');opacity:.3}.helix-settings-header h1{font-size:3rem;font-weight:800;color:#fff;margin:0 0 .5rem;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.3)}.helix-settings-header p{font-size:1.25rem;color:#ffffffe6;margin:0;position:relative;z-index:1;font-weight:400;line-height:3}.helix-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.helix-loading p{margin:20px 0 0;font-size:1.1rem;color:var(--helix-color-6)}.helix-spinner{width:24px;height:24px;border:3px solid #e5e7eb;border-top:3px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;display:inline-block}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.helix-settings-controls,.helix-settings-footer{display:flex;justify-content:center;margin:30px 0;padding:20px 0;border-top:1px solid #e5e7eb}.helix-settings-footer{border-bottom:1px solid #e5e7eb;margin-top:50px}.helix-save-buttons{display:flex;align-items:center;gap:15px}.helix-btn{padding:12px 24px;font-size:14px;font-weight:500;border-radius:8px;border:1px solid transparent;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.helix-btn:disabled{opacity:.6;cursor:not-allowed}.helix-btn-primary{background:linear-gradient(135deg,var(--helix-color-8) 0%,var(--helix-color-10) 100%);color:#fff;border-color:var(--helix-color-8);box-shadow:0 4px 6px -1px #667eea33}.helix-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#5a6fd8,#6a4190);border-color:#5a6fd8;transform:translateY(-1px);box-shadow:0 8px 15px -3px #667eea4d}.helix-btn-secondary{background-color:#fff;color:var(--helix-color-9);border-color:#d1d5db}.helix-btn-secondary:hover:not(:disabled){background-color:#f9fafb;border-color:#9ca3af}.helix-save-status{color:#059669;font-weight:500;display:flex;align-items:center;gap:5px}.helix-settings-tabs{margin:30px 0}.helix-tabs-nav{display:flex;border-bottom:2px solid #e5e7eb;overflow-x:auto;gap:2px}.helix-tab{display:flex;align-items:center;gap:8px;padding:12px 20px;font-size:14px;font-weight:500;color:var(--helix-color-6);background:none;border:none;border-bottom:3px solid transparent;cursor:pointer;transition:all .2s ease;white-space:nowrap;position:relative}.helix-tab:hover{color:var(--helix-color-8);background-color:var(--helix-color-1)}.helix-tab.active{color:var(--helix-color-8);border-bottom-color:var(--helix-color-8)}.helix-tab-icon{font-size:16px;display:flex;align-items:center;justify-content:center}.helix-tab-icon svg{width:20px;height:20px;transition:color .2s ease}.helix-tab-indicator{color:#f59e0b;font-size:12px;position:absolute;top:5px;right:5px}.helix-settings-content{margin:40px 0}.helix-tab-panel{min-height:400px}.helix-settings-section{background:var(--helix-color-1);border-radius:12px;border:1px solid rgba(226,232,240,.5);overflow:hidden;margin-bottom:30px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;transition:transform .2s ease,box-shadow .2s ease}.helix-settings-section:hover{transform:translateY(-2px);box-shadow:0 10px 25px -3px #0000001a,0 4px 6px -2px #0000000d}.helix-settings-section-header{background:linear-gradient(135deg,var(--helix-color-1) 0%,var(--helix-color-2) 100%);padding:24px;border-bottom:1px solid rgba(102,126,234,.1)}.helix-settings-section-title{font-size:1.5rem;font-weight:600;color:var(--helix-color-10);margin:0 0 8px}.helix-settings-section-description{color:var(--helix-color-6);margin:0;font-size:14px}.helix-settings-section-content{padding:24px}.helix-settings-grid{display:grid;gap:24px}.helix-settings-subsection{border-top:1px solid #e5e7eb;padding-top:24px;margin-top:24px}.helix-settings-subsection h4{font-size:1.1rem;font-weight:600;color:var(--helix-color-9);margin:0 0 20px}.helix-form-field{display:flex;flex-direction:column;gap:8px}.helix-form-label{font-weight:500;color:var(--helix-color-9);font-size:14px}.helix-required{color:#ef4444;margin-left:4px}.helix-form-control{display:flex;flex-direction:column}.helix-form-description{font-size:13px;color:var(--helix-color-6);margin:0;line-height:1.4}.helix-form-error{font-size:13px;color:#ef4444;margin:0}.helix-text-input,.helix-number-input,.helix-select-input{padding:10px 12px;border:1px solid var(--helix-color-3);border-radius:6px;font-size:14px;transition:border-color .2s ease;background:var(--helix-color-1)}.helix-text-input:focus,.helix-number-input:focus,.helix-select-input:focus{outline:none;border-color:var(--helix-color-8);box-shadow:0 0 0 3px #667eea1a}.helix-select-input{cursor:pointer}.helix-toggle-field{margin:16px 0}.helix-toggle-wrapper{display:flex;align-items:center;gap:12px}.helix-toggle-label{font-weight:500;color:var(--helix-color-9);font-size:14px;cursor:pointer;-webkit-user-select:none;user-select:none}.helix-toggle-label-disabled{opacity:.5;cursor:not-allowed}.helix-toggle-switch{position:relative;width:48px;height:24px;border-radius:24px;border:none;cursor:pointer;transition:all .2s ease-in-out;flex-shrink:0;outline:none;padding:0;margin:0;display:inline-flex;align-items:center}.helix-toggle-switch:focus{box-shadow:0 0 0 3px var(--helix-color-3);outline:none}.helix-toggle-switch-off{background-color:var(--helix-color-3)}.helix-toggle-switch-off:hover:not(:disabled){background-color:var(--helix-color-4)}.helix-toggle-switch-on{background-color:var(--helix-color-8)}.helix-toggle-switch-on:hover:not(:disabled){background-color:var(--helix-color-9)}.helix-toggle-switch-disabled{opacity:.5;cursor:not-allowed}.helix-toggle-knob{display:inline-block;width:20px;height:20px;background-color:#fff;border-radius:50%;box-shadow:0 2px 4px #0003;transition:transform .2s ease-in-out;transform:translate(2px)}.helix-toggle-knob-on{transform:translate(26px)}.helix-toggle-knob-off{transform:translate(2px)}.helix-notification{background:var(--helix-color-1);border:1px solid var(--helix-color-3);border-radius:8px;padding:16px;margin:20px 0;box-shadow:0 4px 6px -1px #0000001a;opacity:0;transform:translateY(-10px);transition:all .3s ease}.helix-notification.visible{opacity:1;transform:translateY(0)}.helix-notification-success{border-left:4px solid #059669;background-color:#f0fdf4}.helix-notification-error{border-left:4px solid #ef4444;background-color:#fef2f2}.helix-notification-warning{border-left:4px solid #f59e0b;background-color:#fffbeb}.helix-notification-info{border-left:4px solid #667eea;background-color:#f0f4ff}.helix-notification-content{display:flex;align-items:center;gap:12px}.helix-notification-icon{font-size:18px;flex-shrink:0}.helix-notification-message{flex:1;font-size:14px;color:var(--helix-color-9)}.helix-notification-close{background:none;border:none;font-size:20px;color:var(--helix-color-6);cursor:pointer;padding:0;line-height:1;flex-shrink:0}.helix-notification-close:hover{color:var(--helix-color-9)}@media (max-width: 768px){.helix-settings-page{padding:15px}.helix-settings-header h1{font-size:2rem}.helix-tabs-nav{flex-direction:column;gap:0}.helix-tab{justify-content:flex-start;border-bottom:1px solid #e5e7eb;border-right:none}.helix-tab.active{border-bottom-color:#e5e7eb;border-left:3px solid #667eea;background-color:var(--helix-color-1)}.helix-settings-section-content,.helix-settings-section-header{padding:20px}.helix-save-buttons{flex-direction:column;width:100%}.helix-btn{width:100%;justify-content:center}} diff --git a/build/index.js b/build/index.js index 804c027..ff8b04c 100644 --- a/build/index.js +++ b/build/index.js @@ -6,7 +6,7 @@ function wp(e,t){for(var n=0;n>>1,pe=j[oe];if(0>>1;oel(so,F))enl(dl,so)?(j[oe]=dl,j[en]=F,oe=en):(j[oe]=so,j[qt]=F,oe=qt);else if(enl(dl,F))j[oe]=dl,j[en]=F,oe=en;else break e}}return R}function l(j,R){var F=j.sortIndex-R.sortIndex;return F!==0?F:j.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],g=1,h=null,m=3,x=!1,v=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(j){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=j)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function w(j){if(S=!1,y(j),!v)if(n(a)!==null)v=!0,W(T);else{var R=n(u);R!==null&&we(w,R.startTime-j)}}function T(j,R){v=!1,S&&(S=!1,d($),$=-1),x=!0;var F=m;try{for(y(R),h=n(a);h!==null&&(!(h.expirationTime>R)||j&&!D());){var oe=h.callback;if(typeof oe=="function"){h.callback=null,m=h.priorityLevel;var pe=oe(h.expirationTime<=R);R=e.unstable_now(),typeof pe=="function"?h.callback=pe:h===n(a)&&r(a),y(R)}else r(a);h=n(a)}if(h!==null)var fl=!0;else{var qt=n(u);qt!==null&&we(w,qt.startTime-R),fl=!1}return fl}finally{h=null,m=F,x=!1}}var k=!1,E=null,$=-1,M=5,A=-1;function D(){return!(e.unstable_now()-Aj||125oe?(j.sortIndex=F,t(u,j),n(a)===null&&j===n(u)&&(S?(d($),$=-1):S=!0,we(w,F-oe))):(j.sortIndex=pe,t(a,j),v||x||(v=!0,W(T))),j},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(j){var R=m;return function(){var F=m;m=R;try{return j.apply(this,arguments)}finally{m=F}}}})(Dc);Fc.exports=Dc;var bp=Fc.exports;/** + */(function(e){function t(j,R){var F=j.length;j.push(R);e:for(;0>>1,pe=j[oe];if(0>>1;oel(so,F))enl(dl,so)?(j[oe]=dl,j[en]=F,oe=en):(j[oe]=so,j[qt]=F,oe=qt);else if(enl(dl,F))j[oe]=dl,j[en]=F,oe=en;else break e}}return R}function l(j,R){var F=j.sortIndex-R.sortIndex;return F!==0?F:j.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],g=1,m=null,h=3,w=!1,v=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(j){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=j)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function x(j){if(S=!1,y(j),!v)if(n(a)!==null)v=!0,W(T);else{var R=n(u);R!==null&&we(x,R.startTime-j)}}function T(j,R){v=!1,S&&(S=!1,p($),$=-1),w=!0;var F=h;try{for(y(R),m=n(a);m!==null&&(!(m.expirationTime>R)||j&&!D());){var oe=m.callback;if(typeof oe=="function"){m.callback=null,h=m.priorityLevel;var pe=oe(m.expirationTime<=R);R=e.unstable_now(),typeof pe=="function"?m.callback=pe:m===n(a)&&r(a),y(R)}else r(a);m=n(a)}if(m!==null)var fl=!0;else{var qt=n(u);qt!==null&&we(x,qt.startTime-R),fl=!1}return fl}finally{m=null,h=F,w=!1}}var k=!1,E=null,$=-1,M=5,A=-1;function D(){return!(e.unstable_now()-Aj||125oe?(j.sortIndex=F,t(u,j),n(a)===null&&j===n(u)&&(S?(p($),$=-1):S=!0,we(x,F-oe))):(j.sortIndex=pe,t(a,j),v||w||(v=!0,W(T))),j},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(j){var R=h;return function(){var F=h;h=R;try{return j.apply(this,arguments)}finally{h=F}}}})(Dc);Fc.exports=Dc;var bp=Fc.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function wp(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,Qp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ga={},Xa={};function Kp(e){return Do.call(Xa,e)?!0:Do.call(Ga,e)?!1:Qp.test(e)?Xa[e]=!0:(Ga[e]=!0,!1)}function Yp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gp(e,t,n,r){if(t===null||typeof t>"u"||Yp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var bs=/[\-:]([a-z])/g;function Hs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bs,Hs);xe[t]=new je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(bs,Hs);xe[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(bs,Hs);xe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qs(e,t,n,r){var l=xe.hasOwnProperty(t)?xe[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=Object.prototype.hasOwnProperty,Qp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ga={},Xa={};function Kp(e){return Do.call(Xa,e)?!0:Do.call(Ga,e)?!1:Qp.test(e)?Xa[e]=!0:(Ga[e]=!0,!1)}function Yp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gp(e,t,n,r){if(t===null||typeof t>"u"||Yp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var bs=/[\-:]([a-z])/g;function Hs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bs,Hs);xe[t]=new je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(bs,Hs);xe[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(bs,Hs);xe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qs(e,t,n,r){var l=xe.hasOwnProperty(t)?xe[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var a=` -`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Xp(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=fo(e.type,!1),e;case 11:return e=fo(e.type.render,!1),e;case 1:return e=fo(e.type,!0),e;default:return""}}function Vo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pn:return"Fragment";case Tn:return"Portal";case Bo:return"Profiler";case Ks:return"StrictMode";case Uo:return"Suspense";case Wo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wc:return(e.displayName||"Context")+".Consumer";case Uc:return(e._context.displayName||"Context")+".Provider";case Ys:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gs:return t=e.displayName||null,t!==null?t:Vo(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return Vo(e(t))}catch{}}return null}function Zp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Vo(t);case 8:return t===Ks?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jp(e){var t=bc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ml(e){e._valueTracker||(e._valueTracker=Jp(e))}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bo(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ja(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qc(e,t){t=t.checked,t!=null&&Qs(e,"checked",t,!1)}function Ho(e,t){Qc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qo(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qo(e,t,n){(t!=="number"||Yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xr=Array.isArray;function Fn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Er={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qp=["Webkit","ms","Moz","O"];Object.keys(Er).forEach(function(e){qp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Er[t]=Er[e]})});function Xc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Er.hasOwnProperty(e)&&Er[e]?(""+t).trim():t+"px"}function Zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Xc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var eh=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Go(e,t){if(t){if(eh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Xo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zo=null;function Xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jo=null,Dn=null,Bn=null;function nu(e){if(e=il(e)){if(typeof Jo!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Ei(t),Jo(e.stateNode,e.type,t))}}function Jc(e){Dn?Bn?Bn.push(e):Bn=[e]:Dn=e}function qc(){if(Dn){var e=Dn,t=Bn;if(Bn=Dn=null,nu(e),t)for(e=0;e>>=0,e===0?32:31-(fh(e)/dh|0)|0}var yl=64,vl=4194304;function wr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=wr(s):(i&=o,i!==0&&(r=wr(i)))}else o=n&~l,o!==0?r=wr(o):i!==0&&(r=wr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function gh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Pr),fu=" ",du=!1;function wf(e,t){switch(e){case"keyup":return bh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function Qh(e,t){switch(e){case"compositionend":return Sf(t);case"keypress":return t.which!==32?null:(du=!0,fu);case"textInput":return e=t.data,e===fu&&du?null:e;default:return null}}function Kh(e,t){if(Nn)return e==="compositionend"||!la&&wf(e,t)?(e=vf(),Ll=ta=Mt=null,Nn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gu(n)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(){for(var e=window,t=Yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yl(e.document)}return t}function ia(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function nm(e){var t=Tf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ef(n.ownerDocument.documentElement,n)){if(r!==null&&ia(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=yu(n,i);var o=yu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,jn=null,ls=null,jr=null,is=!1;function vu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;is||jn==null||jn!==Yl(r)||(r=jn,"selectionStart"in r&&ia(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Wr(jr,r)||(jr=r,r=ti(ls,"onSelect"),0zn||(e.current=fs[zn],fs[zn]=null,zn--)}function G(e,t){zn++,fs[zn]=e.current,e.current=t}var Yt={},Ee=Zt(Yt),ze=Zt(!1),dn=Yt;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ae(e){return e=e.childContextTypes,e!=null}function ri(){Z(ze),Z(Ee)}function Eu(e,t,n){if(Ee.current!==Yt)throw Error(P(168));G(Ee,t),G(ze,n)}function Lf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(P(108,Zp(e)||"Unknown",l));return ne({},n,r)}function li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,dn=Ee.current,G(Ee,e),G(ze,ze.current),!0}function Tu(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Lf(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,Z(ze),Z(Ee),G(Ee,e)):Z(ze),G(ze,n)}var St=null,Ti=!1,To=!1;function If(e){St===null?St=[e]:St.push(e)}function hm(e){Ti=!0,If(e)}function Jt(){if(!To&&St!==null){To=!0;var e=0,t=K;try{var n=St;for(K=1;e>=o,l-=o,Ct=1<<32-ot(t)+l|n<$?(M=E,E=null):M=E.sibling;var A=m(d,E,y[$],w);if(A===null){E===null&&(E=M);break}e&&E&&A.alternate===null&&t(d,E),f=i(A,f,$),k===null?T=A:k.sibling=A,k=A,E=M}if($===y.length)return n(d,E),q&&nn(d,$),T;if(E===null){for(;$$?(M=E,E=null):M=E.sibling;var D=m(d,E,A.value,w);if(D===null){E===null&&(E=M);break}e&&E&&D.alternate===null&&t(d,E),f=i(D,f,$),k===null?T=D:k.sibling=D,k=D,E=M}if(A.done)return n(d,E),q&&nn(d,$),T;if(E===null){for(;!A.done;$++,A=y.next())A=h(d,A.value,w),A!==null&&(f=i(A,f,$),k===null?T=A:k.sibling=A,k=A);return q&&nn(d,$),T}for(E=r(d,E);!A.done;$++,A=y.next())A=x(E,d,$,A.value,w),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?$:A.key),f=i(A,f,$),k===null?T=A:k.sibling=A,k=A);return e&&E.forEach(function(c){return t(d,c)}),q&&nn(d,$),T}function _(d,f,y,w){if(typeof y=="object"&&y!==null&&y.type===Pn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case hl:e:{for(var T=y.key,k=f;k!==null;){if(k.key===T){if(T=y.type,T===Pn){if(k.tag===7){n(d,k.sibling),f=l(k,y.props.children),f.return=d,d=f;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===At&&ju(T)===k.type){n(d,k.sibling),f=l(k,y.props),f.ref=pr(d,k,y),f.return=d,d=f;break e}n(d,k);break}else t(d,k);k=k.sibling}y.type===Pn?(f=cn(y.props.children,d.mode,w,y.key),f.return=d,d=f):(w=Vl(y.type,y.key,y.props,null,d.mode,w),w.ref=pr(d,f,y),w.return=d,d=w)}return o(d);case Tn:e:{for(k=y.key;f!==null;){if(f.key===k)if(f.tag===4&&f.stateNode.containerInfo===y.containerInfo&&f.stateNode.implementation===y.implementation){n(d,f.sibling),f=l(f,y.children||[]),f.return=d,d=f;break e}else{n(d,f);break}else t(d,f);f=f.sibling}f=Ro(y,d.mode,w),f.return=d,d=f}return o(d);case At:return k=y._init,_(d,f,k(y._payload),w)}if(xr(y))return v(d,f,y,w);if(ar(y))return S(d,f,y,w);El(d,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,f!==null&&f.tag===6?(n(d,f.sibling),f=l(f,y),f.return=d,d=f):(n(d,f),f=Ao(y,d.mode,w),f.return=d,d=f),o(d)):n(d,f)}return _}var Xn=Bf(!0),Uf=Bf(!1),si=Zt(null),ai=null,Ln=null,ua=null;function ca(){ua=Ln=ai=null}function fa(e){var t=si.current;Z(si),e._currentValue=t}function hs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wn(e,t){ai=e,ua=Ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(ua!==e)if(e={context:e,memoizedValue:t,next:null},Ln===null){if(ai===null)throw Error(P(308));Ln=e,ai.dependencies={lanes:0,firstContext:e}}else Ln=Ln.next=e;return t}var on=null;function da(e){on===null?on=[e]:on.push(e)}function Wf(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,da(t)):(n.next=l.next,l.next=n),t.interleaved=n,Nt(e,r)}function Nt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Nt(e,n)}return l=r.interleaved,l===null?(t.next=t,da(r)):(t.next=l.next,l.next=t),r.interleaved=t,Nt(e,n)}function Ml(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Js(e,n)}}function $u(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ui(e,t,n,r){var l=e.updateQueue;Rt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?i=u:o.next=u,o=a;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==o&&(s===null?g.firstBaseUpdate=u:s.next=u,g.lastBaseUpdate=a))}if(i!==null){var h=l.baseState;o=0,g=u=a=null,s=i;do{var m=s.lane,x=s.eventTime;if((r&m)===m){g!==null&&(g=g.next={eventTime:x,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,S=s;switch(m=t,x=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){h=v.call(x,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,m=typeof v=="function"?v.call(x,h,m):v,m==null)break e;h=ne({},h,m);break e;case 2:Rt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else x={eventTime:x,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(u=g=x,a=h):g=g.next=x,o|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(g===null&&(a=h),l.baseState=a,l.firstBaseUpdate=u,l.lastBaseUpdate=g,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);mn|=o,e.lanes=o,e.memoizedState=h}}function Ou(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=No.transition;No.transition={};try{e(!1),t()}finally{K=n,No.transition=r}}function od(){return Je().memoizedState}function vm(e,t,n){var r=Ht(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sd(e))ad(t,n);else if(n=Wf(e,t,n,r),n!==null){var l=Pe();st(n,e,r,l),ud(n,t,r)}}function xm(e,t,n){var r=Ht(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sd(e))ad(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,at(s,o)){var a=t.interleaved;a===null?(l.next=l,da(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Wf(e,t,l,r),n!==null&&(l=Pe(),st(n,e,r,l),ud(n,t,r))}}function sd(e){var t=e.alternate;return e===te||t!==null&&t===te}function ad(e,t){$r=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ud(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Js(e,n)}}var di={readContext:Ze,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},wm={readContext:Ze,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Au,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Dl(4194308,4,td.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dl(4,2,e,t)},useMemo:function(e,t){var n=ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ft();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vm.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:zu,useDebugValue:Sa,useDeferredValue:function(e){return ft().memoizedState=e},useTransition:function(){var e=zu(!1),t=e[0];return e=ym.bind(null,e[1]),ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,l=ft();if(q){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),me===null)throw Error(P(349));hn&30||Kf(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Au(Gf.bind(null,r,i,e),[e]),r.flags|=2048,Xr(9,Yf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ft(),t=me.identifierPrefix;if(q){var n=_t,r=Ct;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{co=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Xp(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=fo(e.type,!1),e;case 11:return e=fo(e.type.render,!1),e;case 1:return e=fo(e.type,!0),e;default:return""}}function Vo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nn:return"Fragment";case Pn:return"Portal";case Bo:return"Profiler";case Ks:return"StrictMode";case Uo:return"Suspense";case Wo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wc:return(e.displayName||"Context")+".Consumer";case Uc:return(e._context.displayName||"Context")+".Provider";case Ys:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gs:return t=e.displayName||null,t!==null?t:Vo(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Vo(e(t))}catch{}}return null}function Zp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Vo(t);case 8:return t===Ks?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jp(e){var t=bc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ml(e){e._valueTracker||(e._valueTracker=Jp(e))}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bo(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ja(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qc(e,t){t=t.checked,t!=null&&Qs(e,"checked",t,!1)}function Ho(e,t){Qc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qo(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qo(e,t,n){(t!=="number"||Yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xr=Array.isArray;function Dn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=gl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Er={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qp=["Webkit","ms","Moz","O"];Object.keys(Er).forEach(function(e){qp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Er[t]=Er[e]})});function Xc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Er.hasOwnProperty(e)&&Er[e]?(""+t).trim():t+"px"}function Zc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Xc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var eh=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Go(e,t){if(t){if(eh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Xo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zo=null;function Xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jo=null,Bn=null,Un=null;function nu(e){if(e=il(e)){if(typeof Jo!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Ei(t),Jo(e.stateNode,e.type,t))}}function Jc(e){Bn?Un?Un.push(e):Un=[e]:Bn=e}function qc(){if(Bn){var e=Bn,t=Un;if(Un=Bn=null,nu(e),t)for(e=0;e>>=0,e===0?32:31-(fh(e)/dh|0)|0}var yl=64,vl=4194304;function wr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=wr(s):(i&=o,i!==0&&(r=wr(i)))}else o=n&~l,o!==0?r=wr(o):i!==0&&(r=wr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function gh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Pr),fu=" ",du=!1;function wf(e,t){switch(e){case"keyup":return bh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Qh(e,t){switch(e){case"compositionend":return Sf(t);case"keypress":return t.which!==32?null:(du=!0,fu);case"textInput":return e=t.data,e===fu&&du?null:e;default:return null}}function Kh(e,t){if(jn)return e==="compositionend"||!la&&wf(e,t)?(e=vf(),Ll=ta=It=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gu(n)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(){for(var e=window,t=Yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yl(e.document)}return t}function ia(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function nm(e){var t=Tf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ef(n.ownerDocument.documentElement,n)){if(r!==null&&ia(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=yu(n,i);var o=yu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$n=null,ls=null,jr=null,is=!1;function vu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;is||$n==null||$n!==Yl(r)||(r=$n,"selectionStart"in r&&ia(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Wr(jr,r)||(jr=r,r=ti(ls,"onSelect"),0An||(e.current=fs[An],fs[An]=null,An--)}function G(e,t){An++,fs[An]=e.current,e.current=t}var Yt={},Ee=Zt(Yt),Oe=Zt(!1),pn=Yt;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ae(e){return e=e.childContextTypes,e!=null}function ri(){Z(Oe),Z(Ee)}function Eu(e,t,n){if(Ee.current!==Yt)throw Error(P(168));G(Ee,t),G(Oe,n)}function Lf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(P(108,Zp(e)||"Unknown",l));return ne({},n,r)}function li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,pn=Ee.current,G(Ee,e),G(Oe,Oe.current),!0}function Tu(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Lf(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,Z(Oe),Z(Ee),G(Ee,e)):Z(Oe),G(Oe,n)}var wt=null,Ti=!1,To=!1;function If(e){wt===null?wt=[e]:wt.push(e)}function hm(e){Ti=!0,If(e)}function Jt(){if(!To&&wt!==null){To=!0;var e=0,t=K;try{var n=wt;for(K=1;e>=o,l-=o,kt=1<<32-ot(t)+l|n<$?(M=E,E=null):M=E.sibling;var A=h(p,E,y[$],x);if(A===null){E===null&&(E=M);break}e&&E&&A.alternate===null&&t(p,E),c=i(A,c,$),k===null?T=A:k.sibling=A,k=A,E=M}if($===y.length)return n(p,E),q&&nn(p,$),T;if(E===null){for(;$$?(M=E,E=null):M=E.sibling;var D=h(p,E,A.value,x);if(D===null){E===null&&(E=M);break}e&&E&&D.alternate===null&&t(p,E),c=i(D,c,$),k===null?T=D:k.sibling=D,k=D,E=M}if(A.done)return n(p,E),q&&nn(p,$),T;if(E===null){for(;!A.done;$++,A=y.next())A=m(p,A.value,x),A!==null&&(c=i(A,c,$),k===null?T=A:k.sibling=A,k=A);return q&&nn(p,$),T}for(E=r(p,E);!A.done;$++,A=y.next())A=w(E,p,$,A.value,x),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?$:A.key),c=i(A,c,$),k===null?T=A:k.sibling=A,k=A);return e&&E.forEach(function(f){return t(p,f)}),q&&nn(p,$),T}function _(p,c,y,x){if(typeof y=="object"&&y!==null&&y.type===Nn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case hl:e:{for(var T=y.key,k=c;k!==null;){if(k.key===T){if(T=y.type,T===Nn){if(k.tag===7){n(p,k.sibling),c=l(k,y.props.children),c.return=p,p=c;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ot&&ju(T)===k.type){n(p,k.sibling),c=l(k,y.props),c.ref=pr(p,k,y),c.return=p,p=c;break e}n(p,k);break}else t(p,k);k=k.sibling}y.type===Nn?(c=fn(y.props.children,p.mode,x,y.key),c.return=p,p=c):(x=Vl(y.type,y.key,y.props,null,p.mode,x),x.ref=pr(p,c,y),x.return=p,p=x)}return o(p);case Pn:e:{for(k=y.key;c!==null;){if(c.key===k)if(c.tag===4&&c.stateNode.containerInfo===y.containerInfo&&c.stateNode.implementation===y.implementation){n(p,c.sibling),c=l(c,y.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=Ro(y,p.mode,x),c.return=p,p=c}return o(p);case Ot:return k=y._init,_(p,c,k(y._payload),x)}if(xr(y))return v(p,c,y,x);if(ar(y))return S(p,c,y,x);El(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,c!==null&&c.tag===6?(n(p,c.sibling),c=l(c,y),c.return=p,p=c):(n(p,c),c=Ao(y,p.mode,x),c.return=p,p=c),o(p)):n(p,c)}return _}var Xn=Bf(!0),Uf=Bf(!1),si=Zt(null),ai=null,In=null,ua=null;function ca(){ua=In=ai=null}function fa(e){var t=si.current;Z(si),e._currentValue=t}function hs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vn(e,t){ai=e,ua=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ze=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(ua!==e)if(e={context:e,memoizedValue:t,next:null},In===null){if(ai===null)throw Error(P(308));In=e,ai.dependencies={lanes:0,firstContext:e}}else In=In.next=e;return t}var sn=null;function da(e){sn===null?sn=[e]:sn.push(e)}function Wf(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,da(t)):(n.next=l.next,l.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var At=!1;function pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Pt(e,n)}return l=r.interleaved,l===null?(t.next=t,da(r)):(t.next=l.next,l.next=t),r.interleaved=t,Pt(e,n)}function Ml(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Js(e,n)}}function $u(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ui(e,t,n,r){var l=e.updateQueue;At=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?i=u:o.next=u,o=a;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==o&&(s===null?g.firstBaseUpdate=u:s.next=u,g.lastBaseUpdate=a))}if(i!==null){var m=l.baseState;o=0,g=u=a=null,s=i;do{var h=s.lane,w=s.eventTime;if((r&h)===h){g!==null&&(g=g.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,S=s;switch(h=t,w=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){m=v.call(w,m,h);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,h=typeof v=="function"?v.call(w,m,h):v,h==null)break e;m=ne({},m,h);break e;case 2:At=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[s]:h.push(s))}else w={eventTime:w,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(u=g=w,a=m):g=g.next=w,o|=h;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;h=s,s=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(g===null&&(a=m),l.baseState=a,l.firstBaseUpdate=u,l.lastBaseUpdate=g,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);gn|=o,e.lanes=o,e.memoizedState=m}}function zu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=No.transition;No.transition={};try{e(!1),t()}finally{K=n,No.transition=r}}function od(){return Je().memoizedState}function vm(e,t,n){var r=bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sd(e))ad(t,n);else if(n=Wf(e,t,n,r),n!==null){var l=Pe();st(n,e,r,l),ud(n,t,r)}}function xm(e,t,n){var r=bt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sd(e))ad(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,at(s,o)){var a=t.interleaved;a===null?(l.next=l,da(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Wf(e,t,l,r),n!==null&&(l=Pe(),st(n,e,r,l),ud(n,t,r))}}function sd(e){var t=e.alternate;return e===te||t!==null&&t===te}function ad(e,t){$r=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ud(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Js(e,n)}}var di={readContext:Ze,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},wm={readContext:Ze,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Au,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Dl(4194308,4,td.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dl(4,2,e,t)},useMemo:function(e,t){var n=ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ft();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vm.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:Ou,useDebugValue:Sa,useDeferredValue:function(e){return ft().memoizedState=e},useTransition:function(){var e=Ou(!1),t=e[0];return e=ym.bind(null,e[1]),ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,l=ft();if(q){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),me===null)throw Error(P(349));mn&30||Kf(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Au(Gf.bind(null,r,i,e),[e]),r.flags|=2048,Xr(9,Yf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ft(),t=me.identifierPrefix;if(q){var n=Ct,r=kt;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ht]=t,e[Hr]=r,xd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Xo(n,r),n){case"dialog":X("cancel",e),X("close",e),l=r;break;case"iframe":case"object":case"embed":X("load",e),l=r;break;case"video":case"audio":for(l=0;lqn&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ci(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!q)return ke(t),null}else 2*se()-i.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=se(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return Pa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Nm(e,t){switch(sa(t),t.tag){case 1:return Ae(t.type)&&ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),Z(ze),Z(Ee),ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ma(t),null;case 13:if(Z(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(ee),null;case 4:return Zn(),null;case 10:return fa(t.type._context),null;case 22:case 23:return Pa(),null;case 24:return null;default:return null}}var Pl=!1,_e=!1,jm=typeof WeakSet=="function"?WeakSet:Set,z=null;function In(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function Cs(e,t,n){try{n()}catch(r){ie(e,t,r)}}var bu=!1;function $m(e,t){if(os=ql,e=Tf(),ia(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,g=0,h=e,m=null;t:for(;;){for(var x;h!==n||l!==0&&h.nodeType!==3||(s=o+l),h!==i||r!==0&&h.nodeType!==3||(a=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(x=h.firstChild)!==null;)m=h,h=x;for(;;){if(h===e)break t;if(m===n&&++u===l&&(s=o),m===i&&++g===r&&(a=o),(x=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=x}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ss={focusedElem:e,selectionRange:n},ql=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,_=v.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?S:rt(t.type,S),_);d.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(w){ie(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return v=bu,bu=!1,v}function Or(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Cs(t,n,i)}l=l.next}while(l!==r)}}function ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _s(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ht],delete t[Hr],delete t[cs],delete t[dm],delete t[pm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cd(e){return e.tag===5||e.tag===3||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Es(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ni));else if(r!==4&&(e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}function Ts(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ts(e,t,n),e=e.sibling;e!==null;)Ts(e,t,n),e=e.sibling}var ge=null,lt=!1;function zt(e,t,n){for(n=n.child;n!==null;)_d(e,t,n),n=n.sibling}function _d(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Si,n)}catch{}switch(n.tag){case 5:_e||In(n,t);case 6:var r=ge,l=lt;ge=null,zt(e,t,n),ge=r,lt=l,ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?Eo(e.parentNode,n):e.nodeType===1&&Eo(e,n),Br(e)):Eo(ge,n.stateNode));break;case 4:r=ge,l=lt,ge=n.stateNode.containerInfo,lt=!0,zt(e,t,n),ge=r,lt=l;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Cs(n,t,o),l=l.next}while(l!==r)}zt(e,t,n);break;case 1:if(!_e&&(In(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ie(n,t,s)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,zt(e,t,n),_e=r):zt(e,t,n);break;default:zt(e,t,n)}}function Qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jm),t.forEach(function(r){var l=Dm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zm(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,mi=0,U&6)throw Error(P(331));var l=U;for(U|=4,z=e.current;z!==null;){var i=z,o=i.child;if(z.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ase()-Ea?un(e,0):_a|=n),Re(e,t)}function zd(e,t){t===0&&(e.mode&1?(t=vl,vl<<=1,!(vl&130023424)&&(vl=4194304)):t=1);var n=Pe();e=Nt(e,t),e!==null&&(rl(e,t,n),Re(e,n))}function Fm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zd(e,n)}function Dm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),zd(e,n)}var Ad;Ad=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ze.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,Tm(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,q&&t.flags&1048576&&Mf(t,oi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var l=Yn(t,Ee.current);Wn(t,n),l=va(null,t,r,e,l,n);var i=xa();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ae(r)?(i=!0,li(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pa(t),l.updater=Ni,t.stateNode=l,l._reactInternals=t,gs(t,r,e,n),t=xs(null,t,r,!0,i,n)):(t.tag=0,q&&i&&oa(t),Te(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Um(r),e=rt(r,e),l){case 0:t=vs(null,t,r,e,n);break e;case 1:t=Uu(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Bu(null,t,r,rt(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),vs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Uu(e,t,r,l,n);case 3:e:{if(gd(t),e===null)throw Error(P(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Vf(e,t),ui(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Jn(Error(P(423)),t),t=Wu(e,t,r,n,l);break e}else if(r!==l){l=Jn(Error(P(424)),t),t=Wu(e,t,r,n,l);break e}else for(Fe=Wt(t.stateNode.containerInfo.firstChild),De=t,q=!0,it=null,n=Uf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===l){t=jt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return bf(t),e===null&&ps(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,as(r,l)?o=null:i!==null&&as(r,i)&&(t.flags|=32),md(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&ps(t),null;case 13:return yd(e,t,n);case 4:return ha(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Du(e,t,r,l,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,G(si,r._currentValue),r._currentValue=o,i!==null)if(at(i.value,o)){if(i.children===l.children&&!ze.current){t=jt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Et(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var g=u.pending;g===null?a.next=a:(a.next=g.next,g.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),hs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(P(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),hs(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Te(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Wn(t,n),l=Ze(l),r=r(l),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,l=rt(r,t.pendingProps),l=rt(r.type,l),Bu(e,t,r,l,n);case 15:return pd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Bl(e,t),t.tag=1,Ae(r)?(e=!0,li(t)):e=!1,Wn(t,n),cd(t,r,l),gs(t,r,l,n),xs(null,t,r,!0,e,n);case 19:return vd(e,t,n);case 22:return hd(e,t,n)}throw Error(P(156,t.tag))};function Rd(e,t){return sf(e,t)}function Bm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(e,t,n,r){return new Bm(e,t,n,r)}function ja(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Um(e){if(typeof e=="function")return ja(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ys)return 11;if(e===Gs)return 14}return 2}function Qt(e,t){var n=e.alternate;return n===null?(n=Ge(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")ja(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pn:return cn(n.children,l,i,t);case Ks:o=8,l|=8;break;case Bo:return e=Ge(12,n,t,l|2),e.elementType=Bo,e.lanes=i,e;case Uo:return e=Ge(13,n,t,l),e.elementType=Uo,e.lanes=i,e;case Wo:return e=Ge(19,n,t,l),e.elementType=Wo,e.lanes=i,e;case Vc:return Oi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uc:o=10;break e;case Wc:o=9;break e;case Ys:o=11;break e;case Gs:o=14;break e;case At:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Ge(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function cn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function Oi(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Vc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Ro(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ho(0),this.expirationTimes=ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ho(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $a(e,t,n,r,l,i,o,s,a){return e=new Wm(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ge(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pa(i),e}function Vm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fd)}catch(e){console.error(e)}}Fd(),Mc.exports=Ve;var Ym=Mc.exports,kr,ec=Ym;kr=ec.createRoot,ec.hydrateRoot;const tc=e=>e,Gm=()=>{let e=tc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tc}}},Xm=Gm();function yn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function er(e){if(typeof e!="string")throw new Error(yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Dd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ht]=t,e[Hr]=r,xd(e,t,!1,!1),t.stateNode=e;e:{switch(o=Xo(n,r),n){case"dialog":X("cancel",e),X("close",e),l=r;break;case"iframe":case"object":case"embed":X("load",e),l=r;break;case"video":case"audio":for(l=0;lqn&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ci(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!q)return ke(t),null}else 2*se()-i.renderingStartTime>qn&&n!==1073741824&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=se(),t.sibling=null,n=ee.current,G(ee,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return Pa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Nm(e,t){switch(sa(t),t.tag){case 1:return Ae(t.type)&&ri(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),Z(Oe),Z(Ee),ga(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ma(t),null;case 13:if(Z(ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(ee),null;case 4:return Zn(),null;case 10:return fa(t.type._context),null;case 22:case 23:return Pa(),null;case 24:return null;default:return null}}var Pl=!1,_e=!1,jm=typeof WeakSet=="function"?WeakSet:Set,O=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function Cs(e,t,n){try{n()}catch(r){ie(e,t,r)}}var bu=!1;function $m(e,t){if(os=ql,e=Tf(),ia(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,g=0,m=e,h=null;t:for(;;){for(var w;m!==n||l!==0&&m.nodeType!==3||(s=o+l),m!==i||r!==0&&m.nodeType!==3||(a=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(w=m.firstChild)!==null;)h=m,m=w;for(;;){if(m===e)break t;if(h===n&&++u===l&&(s=o),h===i&&++g===r&&(a=o),(w=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=w}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ss={focusedElem:e,selectionRange:n},ql=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,_=v.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?S:rt(t.type,S),_);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(x){ie(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return v=bu,bu=!1,v}function zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Cs(t,n,i)}l=l.next}while(l!==r)}}function ji(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _s(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kd(e){var t=e.alternate;t!==null&&(e.alternate=null,kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ht],delete t[Hr],delete t[cs],delete t[dm],delete t[pm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cd(e){return e.tag===5||e.tag===3||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Es(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ni));else if(r!==4&&(e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}function Ts(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ts(e,t,n),e=e.sibling;e!==null;)Ts(e,t,n),e=e.sibling}var ge=null,lt=!1;function zt(e,t,n){for(n=n.child;n!==null;)_d(e,t,n),n=n.sibling}function _d(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Si,n)}catch{}switch(n.tag){case 5:_e||Mn(n,t);case 6:var r=ge,l=lt;ge=null,zt(e,t,n),ge=r,lt=l,ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(lt?(e=ge,n=n.stateNode,e.nodeType===8?Eo(e.parentNode,n):e.nodeType===1&&Eo(e,n),Br(e)):Eo(ge,n.stateNode));break;case 4:r=ge,l=lt,ge=n.stateNode.containerInfo,lt=!0,zt(e,t,n),ge=r,lt=l;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Cs(n,t,o),l=l.next}while(l!==r)}zt(e,t,n);break;case 1:if(!_e&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ie(n,t,s)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,zt(e,t,n),_e=r):zt(e,t,n);break;default:zt(e,t,n)}}function Qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jm),t.forEach(function(r){var l=Dm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Om(r/1960))-r,10e?16:e,Mt===null)var r=!1;else{if(e=Mt,Mt=null,mi=0,U&6)throw Error(P(331));var l=U;for(U|=4,O=e.current;O!==null;){var i=O,o=i.child;if(O.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ase()-Ea?cn(e,0):_a|=n),Re(e,t)}function Od(e,t){t===0&&(e.mode&1?(t=vl,vl<<=1,!(vl&130023424)&&(vl=4194304)):t=1);var n=Pe();e=Pt(e,t),e!==null&&(rl(e,t,n),Re(e,n))}function Fm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Od(e,n)}function Dm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),Od(e,n)}var Ad;Ad=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Oe.current)ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ze=!1,Tm(e,t,n);ze=!!(e.flags&131072)}else ze=!1,q&&t.flags&1048576&&Mf(t,oi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var l=Yn(t,Ee.current);Vn(t,n),l=va(null,t,r,e,l,n);var i=xa();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ae(r)?(i=!0,li(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pa(t),l.updater=Ni,t.stateNode=l,l._reactInternals=t,gs(t,r,e,n),t=xs(null,t,r,!0,i,n)):(t.tag=0,q&&i&&oa(t),Te(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Um(r),e=rt(r,e),l){case 0:t=vs(null,t,r,e,n);break e;case 1:t=Uu(null,t,r,e,n);break e;case 11:t=Du(null,t,r,e,n);break e;case 14:t=Bu(null,t,r,rt(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),vs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Uu(e,t,r,l,n);case 3:e:{if(gd(t),e===null)throw Error(P(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Vf(e,t),ui(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Jn(Error(P(423)),t),t=Wu(e,t,r,n,l);break e}else if(r!==l){l=Jn(Error(P(424)),t),t=Wu(e,t,r,n,l);break e}else for(Fe=Ut(t.stateNode.containerInfo.firstChild),De=t,q=!0,it=null,n=Uf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===l){t=Nt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return bf(t),e===null&&ps(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,as(r,l)?o=null:i!==null&&as(r,i)&&(t.flags|=32),md(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&ps(t),null;case 13:return yd(e,t,n);case 4:return ha(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Du(e,t,r,l,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,G(si,r._currentValue),r._currentValue=o,i!==null)if(at(i.value,o)){if(i.children===l.children&&!Oe.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=_t(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var g=u.pending;g===null?a.next=a:(a.next=g.next,g.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),hs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(P(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),hs(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Te(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Vn(t,n),l=Ze(l),r=r(l),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,l=rt(r,t.pendingProps),l=rt(r.type,l),Bu(e,t,r,l,n);case 15:return pd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Bl(e,t),t.tag=1,Ae(r)?(e=!0,li(t)):e=!1,Vn(t,n),cd(t,r,l),gs(t,r,l,n),xs(null,t,r,!0,e,n);case 19:return vd(e,t,n);case 22:return hd(e,t,n)}throw Error(P(156,t.tag))};function Rd(e,t){return sf(e,t)}function Bm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(e,t,n,r){return new Bm(e,t,n,r)}function ja(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Um(e){if(typeof e=="function")return ja(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ys)return 11;if(e===Gs)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Ge(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")ja(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Nn:return fn(n.children,l,i,t);case Ks:o=8,l|=8;break;case Bo:return e=Ge(12,n,t,l|2),e.elementType=Bo,e.lanes=i,e;case Uo:return e=Ge(13,n,t,l),e.elementType=Uo,e.lanes=i,e;case Wo:return e=Ge(19,n,t,l),e.elementType=Wo,e.lanes=i,e;case Vc:return zi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uc:o=10;break e;case Wc:o=9;break e;case Ys:o=11;break e;case Gs:o=14;break e;case Ot:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Ge(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function fn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function zi(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Vc,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Ro(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ho(0),this.expirationTimes=ho(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ho(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function $a(e,t,n,r,l,i,o,s,a){return e=new Wm(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ge(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pa(i),e}function Vm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fd)}catch(e){console.error(e)}}Fd(),Mc.exports=Ve;var Ym=Mc.exports,kr,ec=Ym;kr=ec.createRoot,ec.hydrateRoot;const tc=e=>e,Gm=()=>{let e=tc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tc}}},Xm=Gm();function vn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function er(e){if(typeof e!="string")throw new Error(vn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Dd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t{t[n]=Vd(e[n])}),t}function Be(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return kt(e)&&kt(t)&&Object.keys(t).forEach(l=>{I.isValidElement(t[l])||Wd.isValidElementType(t[l])?r[l]=t[l]:kt(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&kt(e[l])?r[l]=Be(e[l],t[l],n):n.clone?r[l]=kt(t[l])?Vd(t[l]):t[l]:r[l]=t[l]}),r}function Rr(e,t){return t?Be(e,t,{clone:!1}):e}function nc(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{var o,s;const i=/min-width:\s*([0-9.]+)/;return+(((o=r.match(i))==null?void 0:o[1])||0)-+(((s=l.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,l)=>{const i=t[l];return delete r[l],r[l]=i,r},{...t}):t}function eg(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function tg(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,l]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(i)}function ng(e){const t=(i,o)=>i.replace("@media",o?`@container ${o}`:"@container");function n(i,o){i.up=(...s)=>t(e.breakpoints.up(...s),o),i.down=(...s)=>t(e.breakpoints.down(...s),o),i.between=(...s)=>t(e.breakpoints.between(...s),o),i.only=(...s)=>t(e.breakpoints.only(...s),o),i.not=(...s)=>{const a=t(e.breakpoints.not(...s),o);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const r={},l=i=>(n(r,i),r);return n(l),{...e,containerQueries:l}}const Qi={xs:0,sm:600,md:900,lg:1200,xl:1536},rc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qi[e]}px)`},rg={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Qi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function $t(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||rc;return t.reduce((o,s,a)=>(o[i.up(i.keys[a])]=n(t[a]),o),{})}if(typeof t=="object"){const i=r.breakpoints||rc;return Object.keys(t).reduce((o,s)=>{if(eg(i.keys,s)){const a=tg(r.containerQueries?r:rg,s);a&&(o[a]=n(t[s],s))}else if(Object.keys(i.values||Qi).includes(s)){const a=i.up(s);o[a]=n(t[s],s)}else{const a=s;o[a]=t[a]}return o},{})}return n(t)}function lg(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,l)=>{const i=e.up(l);return r[i]={},r},{}))||{}}function lc(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Ki(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,i)=>l&&l[i]?l[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function vi(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=Ki(e,n)||r,t&&(l=t(l,r,e)),l}function ae(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,i=o=>{if(o[t]==null)return null;const s=o[t],a=o.theme,u=Ki(a,r)||{};return $t(o,s,h=>{let m=vi(u,l,h);return h===m&&typeof h=="string"&&(m=vi(u,l,`${t}${h==="default"?"":er(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function ig(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const og={m:"margin",p:"padding"},sg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ic={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ag=ig(e=>{if(e.length>2)if(ic[e])e=ic[e];else return[e];const[t,n]=e.split(""),r=og[t],l=sg[n]||"";return Array.isArray(l)?l.map(i=>r+i):[r+l]}),Ia=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ma=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ia,...Ma];function sl(e,t,n,r){const l=Ki(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?i=>typeof i=="string"?i:typeof l=="string"?l.startsWith("var(")&&i===0?0:l.startsWith("var(")&&i===1?l:`calc(${i} * ${l})`:l*i:Array.isArray(l)?i=>{if(typeof i=="string")return i;const o=Math.abs(i),s=l[o];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof l=="function"?l:()=>{}}function Fa(e){return sl(e,"spacing",8)}function al(e,t){return typeof t=="string"||t==null?t:e(t)}function ug(e,t){return n=>e.reduce((r,l)=>(r[l]=al(t,n),r),{})}function cg(e,t,n,r){if(!t.includes(n))return null;const l=ag(n),i=ug(l,r),o=e[n];return $t(e,o,i)}function bd(e,t){const n=Fa(e.theme);return Object.keys(e).map(r=>cg(e,t,r,n)).reduce(Rr,{})}function re(e){return bd(e,Ia)}re.propTypes={};re.filterProps=Ia;function le(e){return bd(e,Ma)}le.propTypes={};le.filterProps=Ma;function Yi(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(i=>{r[i]=l}),r),{}),n=r=>Object.keys(r).reduce((l,i)=>t[i]?Rr(l,t[i](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function Ye(e){return typeof e!="number"?e:`${e}px solid`}function et(e,t){return ae({prop:e,themeKey:"borders",transform:t})}const fg=et("border",Ye),dg=et("borderTop",Ye),pg=et("borderRight",Ye),hg=et("borderBottom",Ye),mg=et("borderLeft",Ye),gg=et("borderColor"),yg=et("borderTopColor"),vg=et("borderRightColor"),xg=et("borderBottomColor"),wg=et("borderLeftColor"),Sg=et("outline",Ye),kg=et("outlineColor"),Gi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:al(t,r)});return $t(e,e.borderRadius,n)}return null};Gi.propTypes={};Gi.filterProps=["borderRadius"];Yi(fg,dg,pg,hg,mg,gg,yg,vg,xg,wg,Gi,Sg,kg);const Xi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sl(e.theme,"spacing",8),n=r=>({gap:al(t,r)});return $t(e,e.gap,n)}return null};Xi.propTypes={};Xi.filterProps=["gap"];const Zi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({columnGap:al(t,r)});return $t(e,e.columnGap,n)}return null};Zi.propTypes={};Zi.filterProps=["columnGap"];const Ji=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:al(t,r)});return $t(e,e.rowGap,n)}return null};Ji.propTypes={};Ji.filterProps=["rowGap"];const Cg=ae({prop:"gridColumn"}),_g=ae({prop:"gridRow"}),Eg=ae({prop:"gridAutoFlow"}),Tg=ae({prop:"gridAutoColumns"}),Pg=ae({prop:"gridAutoRows"}),Ng=ae({prop:"gridTemplateColumns"}),jg=ae({prop:"gridTemplateRows"}),$g=ae({prop:"gridTemplateAreas"}),Og=ae({prop:"gridArea"});Yi(Xi,Zi,Ji,Cg,_g,Eg,Tg,Pg,Ng,jg,$g,Og);function bn(e,t){return t==="grey"?t:e}const zg=ae({prop:"color",themeKey:"palette",transform:bn}),Ag=ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bn}),Rg=ae({prop:"backgroundColor",themeKey:"palette",transform:bn});Yi(zg,Ag,Rg);function Me(e){return e<=1&&e!==0?`${e*100}%`:e}const Lg=ae({prop:"width",transform:Me}),Da=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var l,i,o,s,a;const r=((o=(i=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:i.values)==null?void 0:o[n])||Qi[n];return r?((a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Me(n)}};return $t(e,e.maxWidth,t)}return null};Da.filterProps=["maxWidth"];const Ig=ae({prop:"minWidth",transform:Me}),Mg=ae({prop:"height",transform:Me}),Fg=ae({prop:"maxHeight",transform:Me}),Dg=ae({prop:"minHeight",transform:Me});ae({prop:"size",cssProperty:"width",transform:Me});ae({prop:"size",cssProperty:"height",transform:Me});const Bg=ae({prop:"boxSizing"});Yi(Lg,Da,Ig,Mg,Fg,Dg,Bg);const qi={border:{themeKey:"borders",transform:Ye},borderTop:{themeKey:"borders",transform:Ye},borderRight:{themeKey:"borders",transform:Ye},borderBottom:{themeKey:"borders",transform:Ye},borderLeft:{themeKey:"borders",transform:Ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gi},color:{themeKey:"palette",transform:bn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bn},backgroundColor:{themeKey:"palette",transform:bn},p:{style:le},pt:{style:le},pr:{style:le},pb:{style:le},pl:{style:le},px:{style:le},py:{style:le},padding:{style:le},paddingTop:{style:le},paddingRight:{style:le},paddingBottom:{style:le},paddingLeft:{style:le},paddingX:{style:le},paddingY:{style:le},paddingInline:{style:le},paddingInlineStart:{style:le},paddingInlineEnd:{style:le},paddingBlock:{style:le},paddingBlockStart:{style:le},paddingBlockEnd:{style:le},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},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:Xi},rowGap:{style:Ji},columnGap:{style:Zi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Me},maxWidth:{style:Da},minWidth:{transform:Me},height:{transform:Me},maxHeight:{transform:Me},minHeight:{transform:Me},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ug(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Wg(e,t){return typeof e=="function"?e(t):e}function Vg(){function e(n,r,l,i){const o={[n]:r,theme:l},s=i[n];if(!s)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:g,style:h}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=Ki(l,u)||{};return h?h(o):$t(o,r,v=>{let S=vi(m,g,v);return v===S&&typeof v=="string"&&(S=vi(m,g,`${n}${v==="default"?"":er(v)}`,v)),a===!1?S:{[a]:S}})}function t(n){const{sx:r,theme:l={},nested:i}=n||{};if(!r)return null;const o=l.unstable_sxConfig??qi;function s(a){let u=a;if(typeof a=="function")u=a(l);else if(typeof a!="object")return a;if(!u)return null;const g=lg(l.breakpoints),h=Object.keys(g);let m=g;return Object.keys(u).forEach(x=>{const v=Wg(u[x],l);if(v!=null)if(typeof v=="object")if(o[x])m=Rr(m,e(x,v,l,o));else{const S=$t({theme:l},v,_=>({[x]:_}));Ug(S,v)?m[x]=t({sx:v,theme:l,nested:!0}):m=Rr(m,S)}else m=Rr(m,e(x,v,l,o))}),!i&&l.modularCssLayers?{"@layer sx":nc(l,lc(h,m))}:nc(l,lc(h,m))}return Array.isArray(r)?r.map(s):s(r)}return t}const tr=Vg();tr.filterProps=["sx"];function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ye(or,--Le):0,nr--,ue===10&&(nr=1,to--),ue}function Ue(){return ue=Le2||qr(ue)>3?"":" "}function r0(e,t){for(;--t&&Ue()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return ul(e,bl()+(t<6&&yt()==32&&Ue()==32))}function As(e){for(;Ue();)switch(ue){case e:return Le;case 34:case 39:e!==34&&e!==39&&As(ue);break;case 40:e===41&&As(e);break;case 92:Ue();break}return Le}function l0(e,t){for(;Ue()&&e+ue!==57;)if(e+ue===84&&yt()===47)break;return"/*"+ul(t,Le-1)+"*"+eo(e===47?e:Ue())}function i0(e){for(;!qr(yt());)Ue();return ul(e,Le)}function o0(e){return Xd(Ql("",null,null,null,[""],e=Gd(e),0,[0],e))}function Ql(e,t,n,r,l,i,o,s,a){for(var u=0,g=0,h=o,m=0,x=0,v=0,S=1,_=1,d=1,f=0,y="",w=l,T=i,k=r,E=y;_;)switch(v=f,f=Ue()){case 40:if(v!=108&&ye(E,h-1)==58){zs(E+=b(Hl(f),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:E+=Hl(f);break;case 9:case 10:case 13:case 32:E+=n0(v);break;case 92:E+=r0(bl()-1,7);continue;case 47:switch(yt()){case 42:case 47:$l(s0(l0(Ue(),bl()),t,n),a);break;default:E+="/"}break;case 123*S:s[u++]=dt(E)*d;case 125*S:case 59:case 0:switch(f){case 0:case 125:_=0;case 59+g:d==-1&&(E=b(E,/\f/g,"")),x>0&&dt(E)-h&&$l(x>32?sc(E+";",r,n,h-1):sc(b(E," ","")+";",r,n,h-2),a);break;case 59:E+=";";default:if($l(k=oc(E,t,n,u,g,l,s,y,w=[],T=[],h),i),f===123)if(g===0)Ql(E,t,k,k,w,i,h,s,T);else switch(m===99&&ye(E,3)===110?100:m){case 100:case 108:case 109:case 115:Ql(e,k,k,r&&$l(oc(e,k,k,0,0,l,s,y,l,w=[],h),T),l,T,h,s,r?w:T);break;default:Ql(E,k,k,k,[""],T,0,s,T)}}u=g=x=0,S=d=1,y=E="",h=o;break;case 58:h=1+dt(E),x=v;default:if(S<1){if(f==123)--S;else if(f==125&&S++==0&&t0()==125)continue}switch(E+=eo(f),f*S){case 38:d=g>0?1:(E+="\f",-1);break;case 44:s[u++]=(dt(E)-1)*d,d=1;break;case 64:yt()===45&&(E+=Hl(Ue())),m=yt(),g=h=dt(y=E+=i0(bl())),f++;break;case 45:v===45&&dt(E)==2&&(S=0)}}return i}function oc(e,t,n,r,l,i,o,s,a,u,g){for(var h=l-1,m=l===0?i:[""],x=Wa(m),v=0,S=0,_=0;v0?m[d]+" "+f:b(f,/&\f/g,m[d])))&&(a[_++]=y);return no(e,t,n,l===0?Ba:s,a,u,g)}function s0(e,t,n){return no(e,t,n,Hd,eo(e0()),Jr(e,2,-2),0)}function sc(e,t,n,r){return no(e,t,n,Ua,Jr(e,0,r),Jr(e,r+1,-1),r)}function Hn(e,t){for(var n="",r=Wa(e),l=0;l6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+xi+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zs(e,"stretch")?Jd(b(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,dt(e)-3-(~zs(e,"!important")&&10))){case 107:return b(e,":",":"+V)+e;case 101:return b(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(ye(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Ce+e+e}return e}var g0=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case Ua:t.return=Jd(t.value,t.length);break;case Qd:return Hn([gr(t,{value:b(t.value,"@","@"+V)})],l);case Ba:if(t.length)return qg(t.props,function(i){switch(Jg(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hn([gr(t,{props:[b(i,/:(read-\w+)/,":"+xi+"$1")]})],l);case"::placeholder":return Hn([gr(t,{props:[b(i,/:(plac\w+)/,":"+V+"input-$1")]}),gr(t,{props:[b(i,/:(plac\w+)/,":"+xi+"$1")]}),gr(t,{props:[b(i,/:(plac\w+)/,Ce+"input-$1")]})],l)}return""})}},y0=[g0],v0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var _=S.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var l=t.stylisPlugins||y0,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var _=S.getAttribute("data-emotion").split(" "),d=1;d<_.length;d++)i[_[d]]=!0;s.push(S)});var a,u=[h0,m0];{var g,h=[a0,c0(function(S){g.insert(S)})],m=u0(u.concat(l,h)),x=function(_){return Hn(o0(_),m)};a=function(_,d,f,y){g=f,x(_?_+"{"+d.styles+"}":d.styles),y&&(v.inserted[d.name]=!0)}}var v={key:n,sheet:new Qg({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:a};return v.sheet.hydrate(s),v},x0=!0;function w0(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(r+=l+" ")}),r}var qd=function(t,n,r){var l=t.key+"-"+n.name;(r===!1||x0===!1)&&t.registered[l]===void 0&&(t.registered[l]=n.styles)},S0=function(t,n,r){qd(t,n,r);var l=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+l:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function k0(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var C0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_0=/[A-Z]|^ms/g,E0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ep=function(t){return t.charCodeAt(1)===45},uc=function(t){return t!=null&&typeof t!="boolean"},Lo=Zd(function(e){return ep(e)?e:e.replace(_0,"-$&").toLowerCase()}),cc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(E0,function(r,l,i){return pt={name:l,styles:i,next:pt},l})}return C0[t]!==1&&!ep(t)&&typeof n=="number"&&n!==0?n+"px":n};function el(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var l=n;if(l.anim===1)return pt={name:l.name,styles:l.styles,next:pt},l.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)pt={name:o.name,styles:o.styles,next:pt},o=o.next;var s=i.styles+";";return s}return T0(e,t,n)}case"function":{if(e!==void 0){var a=pt,u=n(e);return pt=a,el(e,t,u)}break}}var g=n;if(t==null)return g;var h=t[g];return h!==void 0?h:g}function T0(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?R0:L0},pc=function(t,n,r){var l;if(n){var i=n.shouldForwardProp;l=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},I0=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return qd(n,r,l),j0(function(){return S0(n,r,l)}),null},M0=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var s=pc(t,n,r),a=s||dc(l),u=!a("as");return function(){var g=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)h.push.apply(h,g);else{var m=g[0];h.push(m[0]);for(var x=g.length,v=1;v{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function W0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,i=U0(t),o=Object.keys(i);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function a(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,x){const v=o.indexOf(x);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:x)-r/100}${n})`}function g(m){return o.indexOf(m)+1(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function b0(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function lp(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:i={},...o}=e,s=W0(n),a=rp(l);let u=Be({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:a,shape:{...V0,...i}},o);return u=ng(u),u.applyStyles=b0,u=t.reduce((g,h)=>Be(g,h),u),u.unstable_sxConfig={...qi,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(h){return tr({sx:h,theme:this})},u}const H0={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 ip(e,t,n="Mui"){const r=H0[t];return r?`${n}-${r}`:`${Xm.generate(e)}-${t}`}function Q0(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=ip(e,l,n)}),r}function op(e){const{variants:t,...n}=e,r={variants:t,style:fn(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=fn(l.style))}),r}const K0=lp();function Io(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function an(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Y0(e){return e?(t,n)=>n[e]:null}function G0(e,t,n){e.theme=J0(e.theme)?n:e.theme[t]||e.theme}function Kl(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>Kl(e,l,n));if(Array.isArray(r==null?void 0:r.variants)){let l;if(r.isProcessed)l=n?an(r.style,n):r.style;else{const{variants:i,...o}=r;l=n?an(fn(o),n):o}return sp(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?an(fn(r.style),n):r.style:n?an(fn(r),n):r}function sp(e,t,n=[],r=void 0){var i;let l;e:for(let o=0;o{B0(s,k=>k.filter(E=>E!==tr));const{name:u,slot:g,skipVariantsResolver:h,skipSx:m,overridesResolver:x=Y0(ey(g)),...v}=a,S=u&&u.startsWith("Mui")||g?"components":"custom",_=h!==void 0?h:g&&g!=="Root"&&g!=="root"||!1,d=m||!1;let f=Io;g==="Root"||g==="root"?f=r:g?f=l:q0(s)&&(f=void 0);const y=D0(s,{shouldForwardProp:f,label:Z0(),...v}),w=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function($){return Kl($,k,$.theme.modularCssLayers?S:void 0)};if(kt(k)){const E=op(k);return function(M){return E.variants?Kl(M,E,M.theme.modularCssLayers?S:void 0):M.theme.modularCssLayers?an(E.style,S):E.style}}return k},T=(...k)=>{const E=[],$=k.map(w),M=[];if(E.push(i),u&&x&&M.push(function(O){var we,j;const L=(j=(we=O.theme.components)==null?void 0:we[u])==null?void 0:j.styleOverrides;if(!L)return null;const W={};for(const R in L)W[R]=Kl(O,L[R],O.theme.modularCssLayers?"theme":void 0);return x(O,W)}),u&&!_&&M.push(function(O){var W,we;const N=O.theme,L=(we=(W=N==null?void 0:N.components)==null?void 0:W[u])==null?void 0:we.variants;return L?sp(O,L,[],O.theme.modularCssLayers?"theme":void 0):null}),d||M.push(tr),Array.isArray($[0])){const c=$.shift(),O=new Array(E.length).fill(""),N=new Array(M.length).fill("");let L;L=[...O,...c,...N],L.raw=[...O,...c.raw,...N],E.unshift(L)}const A=[...E,...$,...M],D=y(...A);return s.muiName&&(D.muiName=s.muiName),D};return y.withConfig&&(T.withConfig=y.withConfig),T}}function Z0(e,t){return void 0}function J0(e){for(const t in e)return!1;return!0}function q0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ey(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ls(e,t,n=!1){const r={...t};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const i=l;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],s=t[i];if(!s)r[i]=o||{};else if(!o)r[i]=s;else{r[i]={...s};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const u=a;r[i][u]=Ls(o[u],s[u],n)}}}else i==="className"&&n&&t.className?r.className=Bd(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function ty(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Va(e,t=0,n=1){return ty(e,t,n)}function ny(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gt(e){if(e.type)return e;if(e.charAt(0)==="#")return Gt(ny(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(yn(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(yn(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const ry=e=>{const t=Gt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Cr=(e,t)=>{try{return ry(e)}catch{return e}};function ro(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((l,i)=>i<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ap(e){e=Gt(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,i=r*Math.min(l,1-l),o=(u,g=(u+n/30)%12)=>l-i*Math.max(Math.min(g-3,9-g,1),-1);let s="rgb";const a=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",a.push(t[3])),ro({type:s,values:a})}function Is(e){e=Gt(e);let t=e.type==="hsl"||e.type==="hsla"?Gt(ap(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 ly(e,t){const n=Is(e),r=Is(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function up(e,t){return e=Gt(e),t=Va(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ro(e)}function tn(e,t,n){try{return up(e,t)}catch{return e}}function lo(e,t){if(e=Gt(e),t=Va(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ro(e)}function H(e,t,n){try{return lo(e,t)}catch{return e}}function io(e,t){if(e=Gt(e),t=Va(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ro(e)}function Q(e,t,n){try{return io(e,t)}catch{return e}}function iy(e,t=.15){return Is(e)>.5?lo(e,t):io(e,t)}function Ol(e,t,n){try{return iy(e,t)}catch{return e}}const oy=I.createContext(void 0);function sy(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const l=t.components[n];return l.defaultProps?Ls(l.defaultProps,r,t.components.mergeClassNameAndStyle):!l.styleOverrides&&!l.variants?Ls(l,r,t.components.mergeClassNameAndStyle):r}function ay({props:e,name:t}){const n=I.useContext(oy);return sy({props:e,name:t,theme:{components:n}})}const mc={theme:void 0};function uy(e){let t,n;return function(l){let i=t;return(i===void 0||l.theme!==n)&&(mc.theme=l.theme,i=op(e(mc)),t=i,n=l.theme),i}}function cy(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const gc=(e,t,n,r=[])=>{let l=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(l)?l[Number(i)]=n:l&&typeof l=="object"&&(l[i]=n):l&&typeof l=="object"&&(l[i]||(l[i]=r.includes(i)?[]:{}),l=l[i])})},fy=(e,t,n)=>{function r(l,i=[],o=[]){Object.entries(l).forEach(([s,a])=>{(!n||n&&!n([...i,s]))&&a!=null&&(typeof a=="object"&&Object.keys(a).length>0?r(a,[...i,s],Array.isArray(a)?[...o,s]:o):t([...i,s],a,o))})}r(e)},dy=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Mo(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return fy(e,(s,a,u)=>{if((typeof a=="string"||typeof a=="number")&&(!r||!r(s,a))){const g=`--${n?`${n}-`:""}${s.join("-")}`,h=dy(s,a);Object.assign(l,{[g]:h}),gc(i,s,`var(${g})`,u),gc(o,s,`var(${g}, ${h})`,u)}},s=>s[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}function py(e,t={}){const{getSelector:n=d,disableCssColorScheme:r,colorSchemeSelector:l,enableContrastVars:i}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...u}=e,{vars:g,css:h,varsWithDefaults:m}=Mo(u,t);let x=m;const v={},{[a]:S,..._}=o;if(Object.entries(_||{}).forEach(([w,T])=>{const{vars:k,css:E,varsWithDefaults:$}=Mo(T,t);x=Be(x,$),v[w]={css:E,vars:k}}),S){const{css:w,vars:T,varsWithDefaults:k}=Mo(S,t);x=Be(x,k),v[a]={css:w,vars:T}}function d(w,T){var E,$;let k=l;if(l==="class"&&(k=".%s"),l==="data"&&(k="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(k=`[${l}="%s"]`),w){if(k==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${(($=(E=o[w])==null?void 0:E.palette)==null?void 0:$.mode)||w})`]:{":root":T}};if(k)return e.defaultColorScheme===w?`:root, ${k.replace("%s",String(w))}`:k.replace("%s",String(w))}return":root"}return{vars:x,generateThemeVars:()=>{let w={...g};return Object.entries(v).forEach(([,{vars:T}])=>{w=Be(w,T)}),w},generateStyleSheets:()=>{var M,A;const w=[],T=e.defaultColorScheme||"light";function k(D,c){Object.keys(c).length&&w.push(typeof D=="string"?{[D]:{...c}}:D)}k(n(void 0,{...h}),h);const{[T]:E,...$}=v;if(E){const{css:D}=E,c=(A=(M=o[T])==null?void 0:M.palette)==null?void 0:A.mode,O=!r&&c?{colorScheme:c,...D}:{...D};k(n(T,{...O}),O)}return Object.entries($).forEach(([D,{css:c}])=>{var L,W;const O=(W=(L=o[D])==null?void 0:L.palette)==null?void 0:W.mode,N=!r&&O?{colorScheme:O,...c}:{...c};k(n(D,{...N}),N)}),i&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function hy(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const tl={black:"#000",white:"#fff"},my={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"},Sn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},kn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Cn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},_n={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},En={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function cp(){return{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:tl.white,default:tl.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}}}const fp=cp();function dp(){return{text:{primary:tl.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:tl.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}}}const Ms=dp();function yc(e,t,n,r){const l=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=io(e.main,l):t==="dark"&&(e.dark=lo(e.main,i)))}function vc(e,t,n,r,l){const i=l.light||l,o=l.dark||l*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function gy(e="light"){return e==="dark"?{main:Cn[200],light:Cn[50],dark:Cn[400]}:{main:Cn[700],light:Cn[400],dark:Cn[800]}}function yy(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[500],light:Sn[300],dark:Sn[700]}}function vy(e="light"){return e==="dark"?{main:kn[500],light:kn[300],dark:kn[700]}:{main:kn[700],light:kn[400],dark:kn[800]}}function xy(e="light"){return e==="dark"?{main:_n[400],light:_n[300],dark:_n[700]}:{main:_n[700],light:_n[500],dark:_n[900]}}function wy(e="light"){return e==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[800],light:En[500],dark:En[900]}}function Sy(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function ky(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ba(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:l,...i}=e,o=e.primary||gy(t),s=e.secondary||yy(t),a=e.error||vy(t),u=e.info||xy(t),g=e.success||wy(t),h=e.warning||Sy(t);function m(_){return l?ky(_):ly(_,Ms.text.primary)>=n?Ms.text.primary:fp.text.primary}const x=({color:_,name:d,mainShade:f=500,lightShade:y=300,darkShade:w=700})=>{if(_={..._},!_.main&&_[f]&&(_.main=_[f]),!_.hasOwnProperty("main"))throw new Error(yn(11,d?` (${d})`:"",f));if(typeof _.main!="string")throw new Error(yn(12,d?` (${d})`:"",JSON.stringify(_.main)));return l?(vc(l,_,"light",y,r),vc(l,_,"dark",w,r)):(yc(_,"light",y,r),yc(_,"dark",w,r)),_.contrastText||(_.contrastText=m(_.main)),_};let v;return t==="light"?v=cp():t==="dark"&&(v=dp()),Be({common:{...tl},mode:t,primary:x({color:o,name:"primary"}),secondary:x({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:a,name:"error"}),warning:x({color:h,name:"warning"}),info:x({color:u,name:"info"}),success:x({color:g,name:"success"}),grey:my,contrastThreshold:n,getContrastText:m,augmentColor:x,tonalOffset:r,...v},i)}function Cy(e){const t={};return Object.entries(e).forEach(r=>{const[l,i]=r;typeof i=="object"&&(t[l]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function _y(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ey(e){return Math.round(e*1e5)/1e5}const xc={textTransform:"uppercase"},wc='"Roboto", "Helvetica", "Arial", sans-serif';function Ty(e,t){const{fontFamily:n=wc,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:a=16,allVariants:u,pxToRem:g,...h}=typeof t=="function"?t(e):t,m=r/14,x=g||(_=>`${_/a*m}rem`),v=(_,d,f,y,w)=>({fontFamily:n,fontWeight:_,fontSize:x(d),lineHeight:f,...n===wc?{letterSpacing:`${Ey(y/d)}em`}:{},...w,...u}),S={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(o,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(o,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(o,14,1.75,.4,xc),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,xc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Be({htmlFontSize:a,pxToRem:x,fontFamily:n,fontSize:r,fontWeightLight:l,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:s,...S},h,{clone:!1})}const Py=.2,Ny=.14,jy=.12;function J(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Py})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ny})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${jy})`].join(",")}const $y=["none",J(0,2,1,-1,0,1,1,0,0,1,3,0),J(0,3,1,-2,0,2,2,0,0,1,5,0),J(0,3,3,-2,0,3,4,0,0,1,8,0),J(0,2,4,-1,0,4,5,0,0,1,10,0),J(0,3,5,-1,0,5,8,0,0,1,14,0),J(0,3,5,-1,0,6,10,0,0,1,18,0),J(0,4,5,-2,0,7,10,1,0,2,16,1),J(0,5,5,-3,0,8,10,1,0,3,14,2),J(0,5,6,-3,0,9,12,1,0,3,16,2),J(0,6,6,-3,0,10,14,1,0,4,18,3),J(0,6,7,-4,0,11,15,1,0,4,20,3),J(0,7,8,-4,0,12,17,2,0,5,22,4),J(0,7,8,-4,0,13,19,2,0,5,24,4),J(0,7,9,-4,0,14,21,2,0,5,26,4),J(0,8,9,-5,0,15,22,2,0,6,28,5),J(0,8,10,-5,0,16,24,2,0,6,30,5),J(0,8,11,-5,0,17,26,2,0,6,32,5),J(0,9,11,-5,0,18,28,2,0,7,34,6),J(0,9,12,-6,0,19,29,2,0,7,36,6),J(0,10,13,-6,0,20,31,3,0,8,38,7),J(0,10,13,-6,0,21,33,3,0,8,40,7),J(0,10,14,-6,0,22,35,3,0,8,42,7),J(0,11,14,-7,0,23,36,3,0,9,44,8),J(0,11,15,-7,0,24,38,3,0,9,46,8)],Oy={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)"},zy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sc(e){return`${Math.round(e)}ms`}function Ay(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ry(e){const t={...Oy,...e.easing},n={...zy,...e.duration};return{getAutoHeightDuration:Ay,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:s=t.easeInOut,delay:a=0,...u}=i;return(Array.isArray(l)?l:[l]).map(g=>`${g} ${typeof o=="string"?o:Sc(o)} ${s} ${typeof a=="string"?a:Sc(a)}`).join(",")},...e,easing:t,duration:n}}const Ly={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Iy(e){return kt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function pp(e={}){const t={...e};function n(r){const l=Object.entries(r);for(let i=0;i{t[n]=Vd(e[n])}),t}function Be(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return St(e)&&St(t)&&Object.keys(t).forEach(l=>{I.isValidElement(t[l])||Wd.isValidElementType(t[l])?r[l]=t[l]:St(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&St(e[l])?r[l]=Be(e[l],t[l],n):n.clone?r[l]=St(t[l])?Vd(t[l]):t[l]:r[l]=t[l]}),r}function Rr(e,t){return t?Be(e,t,{clone:!1}):e}function nc(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{var o,s;const i=/min-width:\s*([0-9.]+)/;return+(((o=r.match(i))==null?void 0:o[1])||0)-+(((s=l.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,l)=>{const i=t[l];return delete r[l],r[l]=i,r},{...t}):t}function eg(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function tg(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,l]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(i)}function ng(e){const t=(i,o)=>i.replace("@media",o?`@container ${o}`:"@container");function n(i,o){i.up=(...s)=>t(e.breakpoints.up(...s),o),i.down=(...s)=>t(e.breakpoints.down(...s),o),i.between=(...s)=>t(e.breakpoints.between(...s),o),i.only=(...s)=>t(e.breakpoints.only(...s),o),i.not=(...s)=>{const a=t(e.breakpoints.not(...s),o);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const r={},l=i=>(n(r,i),r);return n(l),{...e,containerQueries:l}}const Qi={xs:0,sm:600,md:900,lg:1200,xl:1536},rc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qi[e]}px)`},rg={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Qi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function jt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||rc;return t.reduce((o,s,a)=>(o[i.up(i.keys[a])]=n(t[a]),o),{})}if(typeof t=="object"){const i=r.breakpoints||rc;return Object.keys(t).reduce((o,s)=>{if(eg(i.keys,s)){const a=tg(r.containerQueries?r:rg,s);a&&(o[a]=n(t[s],s))}else if(Object.keys(i.values||Qi).includes(s)){const a=i.up(s);o[a]=n(t[s],s)}else{const a=s;o[a]=t[a]}return o},{})}return n(t)}function lg(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,l)=>{const i=e.up(l);return r[i]={},r},{}))||{}}function lc(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Ki(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,i)=>l&&l[i]?l[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function vi(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=Ki(e,n)||r,t&&(l=t(l,r,e)),l}function ae(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,i=o=>{if(o[t]==null)return null;const s=o[t],a=o.theme,u=Ki(a,r)||{};return jt(o,s,m=>{let h=vi(u,l,m);return m===h&&typeof m=="string"&&(h=vi(u,l,`${t}${m==="default"?"":er(m)}`,m)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function ig(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const og={m:"margin",p:"padding"},sg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ic={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ag=ig(e=>{if(e.length>2)if(ic[e])e=ic[e];else return[e];const[t,n]=e.split(""),r=og[t],l=sg[n]||"";return Array.isArray(l)?l.map(i=>r+i):[r+l]}),Ia=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ma=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ia,...Ma];function sl(e,t,n,r){const l=Ki(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?i=>typeof i=="string"?i:typeof l=="string"?l.startsWith("var(")&&i===0?0:l.startsWith("var(")&&i===1?l:`calc(${i} * ${l})`:l*i:Array.isArray(l)?i=>{if(typeof i=="string")return i;const o=Math.abs(i),s=l[o];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof l=="function"?l:()=>{}}function Fa(e){return sl(e,"spacing",8)}function al(e,t){return typeof t=="string"||t==null?t:e(t)}function ug(e,t){return n=>e.reduce((r,l)=>(r[l]=al(t,n),r),{})}function cg(e,t,n,r){if(!t.includes(n))return null;const l=ag(n),i=ug(l,r),o=e[n];return jt(e,o,i)}function bd(e,t){const n=Fa(e.theme);return Object.keys(e).map(r=>cg(e,t,r,n)).reduce(Rr,{})}function re(e){return bd(e,Ia)}re.propTypes={};re.filterProps=Ia;function le(e){return bd(e,Ma)}le.propTypes={};le.filterProps=Ma;function Yi(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(i=>{r[i]=l}),r),{}),n=r=>Object.keys(r).reduce((l,i)=>t[i]?Rr(l,t[i](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function Ye(e){return typeof e!="number"?e:`${e}px solid`}function et(e,t){return ae({prop:e,themeKey:"borders",transform:t})}const fg=et("border",Ye),dg=et("borderTop",Ye),pg=et("borderRight",Ye),hg=et("borderBottom",Ye),mg=et("borderLeft",Ye),gg=et("borderColor"),yg=et("borderTopColor"),vg=et("borderRightColor"),xg=et("borderBottomColor"),wg=et("borderLeftColor"),Sg=et("outline",Ye),kg=et("outlineColor"),Gi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sl(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:al(t,r)});return jt(e,e.borderRadius,n)}return null};Gi.propTypes={};Gi.filterProps=["borderRadius"];Yi(fg,dg,pg,hg,mg,gg,yg,vg,xg,wg,Gi,Sg,kg);const Xi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sl(e.theme,"spacing",8),n=r=>({gap:al(t,r)});return jt(e,e.gap,n)}return null};Xi.propTypes={};Xi.filterProps=["gap"];const Zi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({columnGap:al(t,r)});return jt(e,e.columnGap,n)}return null};Zi.propTypes={};Zi.filterProps=["columnGap"];const Ji=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sl(e.theme,"spacing",8),n=r=>({rowGap:al(t,r)});return jt(e,e.rowGap,n)}return null};Ji.propTypes={};Ji.filterProps=["rowGap"];const Cg=ae({prop:"gridColumn"}),_g=ae({prop:"gridRow"}),Eg=ae({prop:"gridAutoFlow"}),Tg=ae({prop:"gridAutoColumns"}),Pg=ae({prop:"gridAutoRows"}),Ng=ae({prop:"gridTemplateColumns"}),jg=ae({prop:"gridTemplateRows"}),$g=ae({prop:"gridTemplateAreas"}),zg=ae({prop:"gridArea"});Yi(Xi,Zi,Ji,Cg,_g,Eg,Tg,Pg,Ng,jg,$g,zg);function Hn(e,t){return t==="grey"?t:e}const Og=ae({prop:"color",themeKey:"palette",transform:Hn}),Ag=ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hn}),Rg=ae({prop:"backgroundColor",themeKey:"palette",transform:Hn});Yi(Og,Ag,Rg);function Me(e){return e<=1&&e!==0?`${e*100}%`:e}const Lg=ae({prop:"width",transform:Me}),Da=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var l,i,o,s,a;const r=((o=(i=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:i.values)==null?void 0:o[n])||Qi[n];return r?((a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Me(n)}};return jt(e,e.maxWidth,t)}return null};Da.filterProps=["maxWidth"];const Ig=ae({prop:"minWidth",transform:Me}),Mg=ae({prop:"height",transform:Me}),Fg=ae({prop:"maxHeight",transform:Me}),Dg=ae({prop:"minHeight",transform:Me});ae({prop:"size",cssProperty:"width",transform:Me});ae({prop:"size",cssProperty:"height",transform:Me});const Bg=ae({prop:"boxSizing"});Yi(Lg,Da,Ig,Mg,Fg,Dg,Bg);const qi={border:{themeKey:"borders",transform:Ye},borderTop:{themeKey:"borders",transform:Ye},borderRight:{themeKey:"borders",transform:Ye},borderBottom:{themeKey:"borders",transform:Ye},borderLeft:{themeKey:"borders",transform:Ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gi},color:{themeKey:"palette",transform:Hn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hn},backgroundColor:{themeKey:"palette",transform:Hn},p:{style:le},pt:{style:le},pr:{style:le},pb:{style:le},pl:{style:le},px:{style:le},py:{style:le},padding:{style:le},paddingTop:{style:le},paddingRight:{style:le},paddingBottom:{style:le},paddingLeft:{style:le},paddingX:{style:le},paddingY:{style:le},paddingInline:{style:le},paddingInlineStart:{style:le},paddingInlineEnd:{style:le},paddingBlock:{style:le},paddingBlockStart:{style:le},paddingBlockEnd:{style:le},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},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:Xi},rowGap:{style:Ji},columnGap:{style:Zi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Me},maxWidth:{style:Da},minWidth:{transform:Me},height:{transform:Me},maxHeight:{transform:Me},minHeight:{transform:Me},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ug(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Wg(e,t){return typeof e=="function"?e(t):e}function Vg(){function e(n,r,l,i){const o={[n]:r,theme:l},s=i[n];if(!s)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:g,style:m}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=Ki(l,u)||{};return m?m(o):jt(o,r,v=>{let S=vi(h,g,v);return v===S&&typeof v=="string"&&(S=vi(h,g,`${n}${v==="default"?"":er(v)}`,v)),a===!1?S:{[a]:S}})}function t(n){const{sx:r,theme:l={},nested:i}=n||{};if(!r)return null;const o=l.unstable_sxConfig??qi;function s(a){let u=a;if(typeof a=="function")u=a(l);else if(typeof a!="object")return a;if(!u)return null;const g=lg(l.breakpoints),m=Object.keys(g);let h=g;return Object.keys(u).forEach(w=>{const v=Wg(u[w],l);if(v!=null)if(typeof v=="object")if(o[w])h=Rr(h,e(w,v,l,o));else{const S=jt({theme:l},v,_=>({[w]:_}));Ug(S,v)?h[w]=t({sx:v,theme:l,nested:!0}):h=Rr(h,S)}else h=Rr(h,e(w,v,l,o))}),!i&&l.modularCssLayers?{"@layer sx":nc(l,lc(m,h))}:nc(l,lc(m,h))}return Array.isArray(r)?r.map(s):s(r)}return t}const tr=Vg();tr.filterProps=["sx"];function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ye(or,--Le):0,nr--,ue===10&&(nr=1,to--),ue}function Ue(){return ue=Le2||qr(ue)>3?"":" "}function r0(e,t){for(;--t&&Ue()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return ul(e,bl()+(t<6&&yt()==32&&Ue()==32))}function As(e){for(;Ue();)switch(ue){case e:return Le;case 34:case 39:e!==34&&e!==39&&As(ue);break;case 40:e===41&&As(e);break;case 92:Ue();break}return Le}function l0(e,t){for(;Ue()&&e+ue!==57;)if(e+ue===84&&yt()===47)break;return"/*"+ul(t,Le-1)+"*"+eo(e===47?e:Ue())}function i0(e){for(;!qr(yt());)Ue();return ul(e,Le)}function o0(e){return Xd(Ql("",null,null,null,[""],e=Gd(e),0,[0],e))}function Ql(e,t,n,r,l,i,o,s,a){for(var u=0,g=0,m=o,h=0,w=0,v=0,S=1,_=1,p=1,c=0,y="",x=l,T=i,k=r,E=y;_;)switch(v=c,c=Ue()){case 40:if(v!=108&&ye(E,m-1)==58){Os(E+=b(Hl(c),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:E+=Hl(c);break;case 9:case 10:case 13:case 32:E+=n0(v);break;case 92:E+=r0(bl()-1,7);continue;case 47:switch(yt()){case 42:case 47:$l(s0(l0(Ue(),bl()),t,n),a);break;default:E+="/"}break;case 123*S:s[u++]=dt(E)*p;case 125*S:case 59:case 0:switch(c){case 0:case 125:_=0;case 59+g:p==-1&&(E=b(E,/\f/g,"")),w>0&&dt(E)-m&&$l(w>32?sc(E+";",r,n,m-1):sc(b(E," ","")+";",r,n,m-2),a);break;case 59:E+=";";default:if($l(k=oc(E,t,n,u,g,l,s,y,x=[],T=[],m),i),c===123)if(g===0)Ql(E,t,k,k,x,i,m,s,T);else switch(h===99&&ye(E,3)===110?100:h){case 100:case 108:case 109:case 115:Ql(e,k,k,r&&$l(oc(e,k,k,0,0,l,s,y,l,x=[],m),T),l,T,m,s,r?x:T);break;default:Ql(E,k,k,k,[""],T,0,s,T)}}u=g=w=0,S=p=1,y=E="",m=o;break;case 58:m=1+dt(E),w=v;default:if(S<1){if(c==123)--S;else if(c==125&&S++==0&&t0()==125)continue}switch(E+=eo(c),c*S){case 38:p=g>0?1:(E+="\f",-1);break;case 44:s[u++]=(dt(E)-1)*p,p=1;break;case 64:yt()===45&&(E+=Hl(Ue())),h=yt(),g=m=dt(y=E+=i0(bl())),c++;break;case 45:v===45&&dt(E)==2&&(S=0)}}return i}function oc(e,t,n,r,l,i,o,s,a,u,g){for(var m=l-1,h=l===0?i:[""],w=Wa(h),v=0,S=0,_=0;v0?h[p]+" "+c:b(c,/&\f/g,h[p])))&&(a[_++]=y);return no(e,t,n,l===0?Ba:s,a,u,g)}function s0(e,t,n){return no(e,t,n,Hd,eo(e0()),Jr(e,2,-2),0)}function sc(e,t,n,r){return no(e,t,n,Ua,Jr(e,0,r),Jr(e,r+1,-1),r)}function Qn(e,t){for(var n="",r=Wa(e),l=0;l6)switch(ye(e,t+1)){case 109:if(ye(e,t+4)!==45)break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+xi+(ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Os(e,"stretch")?Jd(b(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ye(e,t+1)!==115)break;case 6444:switch(ye(e,dt(e)-3-(~Os(e,"!important")&&10))){case 107:return b(e,":",":"+V)+e;case 101:return b(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(ye(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(ye(e,t+11)){case 114:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Ce+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Ce+e+e}return e}var g0=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case Ua:t.return=Jd(t.value,t.length);break;case Qd:return Qn([gr(t,{value:b(t.value,"@","@"+V)})],l);case Ba:if(t.length)return qg(t.props,function(i){switch(Jg(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qn([gr(t,{props:[b(i,/:(read-\w+)/,":"+xi+"$1")]})],l);case"::placeholder":return Qn([gr(t,{props:[b(i,/:(plac\w+)/,":"+V+"input-$1")]}),gr(t,{props:[b(i,/:(plac\w+)/,":"+xi+"$1")]}),gr(t,{props:[b(i,/:(plac\w+)/,Ce+"input-$1")]})],l)}return""})}},y0=[g0],v0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var _=S.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var l=t.stylisPlugins||y0,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var _=S.getAttribute("data-emotion").split(" "),p=1;p<_.length;p++)i[_[p]]=!0;s.push(S)});var a,u=[h0,m0];{var g,m=[a0,c0(function(S){g.insert(S)})],h=u0(u.concat(l,m)),w=function(_){return Qn(o0(_),h)};a=function(_,p,c,y){g=c,w(_?_+"{"+p.styles+"}":p.styles),y&&(v.inserted[p.name]=!0)}}var v={key:n,sheet:new Qg({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:a};return v.sheet.hydrate(s),v},x0=!0;function w0(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(r+=l+" ")}),r}var qd=function(t,n,r){var l=t.key+"-"+n.name;(r===!1||x0===!1)&&t.registered[l]===void 0&&(t.registered[l]=n.styles)},S0=function(t,n,r){qd(t,n,r);var l=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+l:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function k0(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var C0={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_0=/[A-Z]|^ms/g,E0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ep=function(t){return t.charCodeAt(1)===45},uc=function(t){return t!=null&&typeof t!="boolean"},Lo=Zd(function(e){return ep(e)?e:e.replace(_0,"-$&").toLowerCase()}),cc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(E0,function(r,l,i){return pt={name:l,styles:i,next:pt},l})}return C0[t]!==1&&!ep(t)&&typeof n=="number"&&n!==0?n+"px":n};function el(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var l=n;if(l.anim===1)return pt={name:l.name,styles:l.styles,next:pt},l.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)pt={name:o.name,styles:o.styles,next:pt},o=o.next;var s=i.styles+";";return s}return T0(e,t,n)}case"function":{if(e!==void 0){var a=pt,u=n(e);return pt=a,el(e,t,u)}break}}var g=n;if(t==null)return g;var m=t[g];return m!==void 0?m:g}function T0(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?R0:L0},pc=function(t,n,r){var l;if(n){var i=n.shouldForwardProp;l=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},I0=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return qd(n,r,l),j0(function(){return S0(n,r,l)}),null},M0=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var s=pc(t,n,r),a=s||dc(l),u=!a("as");return function(){var g=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),g[0]==null||g[0].raw===void 0)m.push.apply(m,g);else{var h=g[0];m.push(h[0]);for(var w=g.length,v=1;v{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function W0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,i=U0(t),o=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function a(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,w){const v=o.indexOf(w);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:w)-r/100}${n})`}function g(h){return o.indexOf(h)+1(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function b0(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function lp(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:i={},...o}=e,s=W0(n),a=rp(l);let u=Be({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:a,shape:{...V0,...i}},o);return u=ng(u),u.applyStyles=b0,u=t.reduce((g,m)=>Be(g,m),u),u.unstable_sxConfig={...qi,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(m){return tr({sx:m,theme:this})},u}const H0={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 ip(e,t,n="Mui"){const r=H0[t];return r?`${n}-${r}`:`${Xm.generate(e)}-${t}`}function Q0(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=ip(e,l,n)}),r}function op(e){const{variants:t,...n}=e,r={variants:t,style:dn(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=dn(l.style))}),r}const K0=lp();function Io(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function un(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Y0(e){return e?(t,n)=>n[e]:null}function G0(e,t,n){e.theme=J0(e.theme)?n:e.theme[t]||e.theme}function Kl(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>Kl(e,l,n));if(Array.isArray(r==null?void 0:r.variants)){let l;if(r.isProcessed)l=n?un(r.style,n):r.style;else{const{variants:i,...o}=r;l=n?un(dn(o),n):o}return sp(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?un(dn(r.style),n):r.style:n?un(dn(r),n):r}function sp(e,t,n=[],r=void 0){var i;let l;e:for(let o=0;o{B0(s,k=>k.filter(E=>E!==tr));const{name:u,slot:g,skipVariantsResolver:m,skipSx:h,overridesResolver:w=Y0(ey(g)),...v}=a,S=u&&u.startsWith("Mui")||g?"components":"custom",_=m!==void 0?m:g&&g!=="Root"&&g!=="root"||!1,p=h||!1;let c=Io;g==="Root"||g==="root"?c=r:g?c=l:q0(s)&&(c=void 0);const y=D0(s,{shouldForwardProp:c,label:Z0(),...v}),x=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function($){return Kl($,k,$.theme.modularCssLayers?S:void 0)};if(St(k)){const E=op(k);return function(M){return E.variants?Kl(M,E,M.theme.modularCssLayers?S:void 0):M.theme.modularCssLayers?un(E.style,S):E.style}}return k},T=(...k)=>{const E=[],$=k.map(x),M=[];if(E.push(i),u&&w&&M.push(function(z){var we,j;const L=(j=(we=z.theme.components)==null?void 0:we[u])==null?void 0:j.styleOverrides;if(!L)return null;const W={};for(const R in L)W[R]=Kl(z,L[R],z.theme.modularCssLayers?"theme":void 0);return w(z,W)}),u&&!_&&M.push(function(z){var W,we;const N=z.theme,L=(we=(W=N==null?void 0:N.components)==null?void 0:W[u])==null?void 0:we.variants;return L?sp(z,L,[],z.theme.modularCssLayers?"theme":void 0):null}),p||M.push(tr),Array.isArray($[0])){const f=$.shift(),z=new Array(E.length).fill(""),N=new Array(M.length).fill("");let L;L=[...z,...f,...N],L.raw=[...z,...f.raw,...N],E.unshift(L)}const A=[...E,...$,...M],D=y(...A);return s.muiName&&(D.muiName=s.muiName),D};return y.withConfig&&(T.withConfig=y.withConfig),T}}function Z0(e,t){return void 0}function J0(e){for(const t in e)return!1;return!0}function q0(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ey(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ls(e,t,n=!1){const r={...t};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const i=l;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],s=t[i];if(!s)r[i]=o||{};else if(!o)r[i]=s;else{r[i]={...s};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const u=a;r[i][u]=Ls(o[u],s[u],n)}}}else i==="className"&&n&&t.className?r.className=Bd(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function ty(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Va(e,t=0,n=1){return ty(e,t,n)}function ny(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gt(e){if(e.type)return e;if(e.charAt(0)==="#")return Gt(ny(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(vn(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(vn(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const ry=e=>{const t=Gt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Cr=(e,t)=>{try{return ry(e)}catch{return e}};function ro(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((l,i)=>i<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ap(e){e=Gt(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,i=r*Math.min(l,1-l),o=(u,g=(u+n/30)%12)=>l-i*Math.max(Math.min(g-3,9-g,1),-1);let s="rgb";const a=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",a.push(t[3])),ro({type:s,values:a})}function Is(e){e=Gt(e);let t=e.type==="hsl"||e.type==="hsla"?Gt(ap(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 ly(e,t){const n=Is(e),r=Is(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function up(e,t){return e=Gt(e),t=Va(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ro(e)}function tn(e,t,n){try{return up(e,t)}catch{return e}}function lo(e,t){if(e=Gt(e),t=Va(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ro(e)}function H(e,t,n){try{return lo(e,t)}catch{return e}}function io(e,t){if(e=Gt(e),t=Va(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ro(e)}function Q(e,t,n){try{return io(e,t)}catch{return e}}function iy(e,t=.15){return Is(e)>.5?lo(e,t):io(e,t)}function zl(e,t,n){try{return iy(e,t)}catch{return e}}const oy=I.createContext(void 0);function sy(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const l=t.components[n];return l.defaultProps?Ls(l.defaultProps,r,t.components.mergeClassNameAndStyle):!l.styleOverrides&&!l.variants?Ls(l,r,t.components.mergeClassNameAndStyle):r}function ay({props:e,name:t}){const n=I.useContext(oy);return sy({props:e,name:t,theme:{components:n}})}const mc={theme:void 0};function uy(e){let t,n;return function(l){let i=t;return(i===void 0||l.theme!==n)&&(mc.theme=l.theme,i=op(e(mc)),t=i,n=l.theme),i}}function cy(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const gc=(e,t,n,r=[])=>{let l=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(l)?l[Number(i)]=n:l&&typeof l=="object"&&(l[i]=n):l&&typeof l=="object"&&(l[i]||(l[i]=r.includes(i)?[]:{}),l=l[i])})},fy=(e,t,n)=>{function r(l,i=[],o=[]){Object.entries(l).forEach(([s,a])=>{(!n||n&&!n([...i,s]))&&a!=null&&(typeof a=="object"&&Object.keys(a).length>0?r(a,[...i,s],Array.isArray(a)?[...o,s]:o):t([...i,s],a,o))})}r(e)},dy=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Mo(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return fy(e,(s,a,u)=>{if((typeof a=="string"||typeof a=="number")&&(!r||!r(s,a))){const g=`--${n?`${n}-`:""}${s.join("-")}`,m=dy(s,a);Object.assign(l,{[g]:m}),gc(i,s,`var(${g})`,u),gc(o,s,`var(${g}, ${m})`,u)}},s=>s[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}function py(e,t={}){const{getSelector:n=p,disableCssColorScheme:r,colorSchemeSelector:l,enableContrastVars:i}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...u}=e,{vars:g,css:m,varsWithDefaults:h}=Mo(u,t);let w=h;const v={},{[a]:S,..._}=o;if(Object.entries(_||{}).forEach(([x,T])=>{const{vars:k,css:E,varsWithDefaults:$}=Mo(T,t);w=Be(w,$),v[x]={css:E,vars:k}}),S){const{css:x,vars:T,varsWithDefaults:k}=Mo(S,t);w=Be(w,k),v[a]={css:x,vars:T}}function p(x,T){var E,$;let k=l;if(l==="class"&&(k=".%s"),l==="data"&&(k="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(k=`[${l}="%s"]`),x){if(k==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${(($=(E=o[x])==null?void 0:E.palette)==null?void 0:$.mode)||x})`]:{":root":T}};if(k)return e.defaultColorScheme===x?`:root, ${k.replace("%s",String(x))}`:k.replace("%s",String(x))}return":root"}return{vars:w,generateThemeVars:()=>{let x={...g};return Object.entries(v).forEach(([,{vars:T}])=>{x=Be(x,T)}),x},generateStyleSheets:()=>{var M,A;const x=[],T=e.defaultColorScheme||"light";function k(D,f){Object.keys(f).length&&x.push(typeof D=="string"?{[D]:{...f}}:D)}k(n(void 0,{...m}),m);const{[T]:E,...$}=v;if(E){const{css:D}=E,f=(A=(M=o[T])==null?void 0:M.palette)==null?void 0:A.mode,z=!r&&f?{colorScheme:f,...D}:{...D};k(n(T,{...z}),z)}return Object.entries($).forEach(([D,{css:f}])=>{var L,W;const z=(W=(L=o[D])==null?void 0:L.palette)==null?void 0:W.mode,N=!r&&z?{colorScheme:z,...f}:{...f};k(n(D,{...N}),N)}),i&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function hy(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const tl={black:"#000",white:"#fff"},my={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"},kn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Cn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},_n={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},En={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Tn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function cp(){return{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:tl.white,default:tl.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}}}const fp=cp();function dp(){return{text:{primary:tl.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:tl.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}}}const Ms=dp();function yc(e,t,n,r){const l=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=io(e.main,l):t==="dark"&&(e.dark=lo(e.main,i)))}function vc(e,t,n,r,l){const i=l.light||l,o=l.dark||l*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function gy(e="light"){return e==="dark"?{main:_n[200],light:_n[50],dark:_n[400]}:{main:_n[700],light:_n[400],dark:_n[800]}}function yy(e="light"){return e==="dark"?{main:kn[200],light:kn[50],dark:kn[400]}:{main:kn[500],light:kn[300],dark:kn[700]}}function vy(e="light"){return e==="dark"?{main:Cn[500],light:Cn[300],dark:Cn[700]}:{main:Cn[700],light:Cn[400],dark:Cn[800]}}function xy(e="light"){return e==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[700],light:En[500],dark:En[900]}}function wy(e="light"){return e==="dark"?{main:Tn[400],light:Tn[300],dark:Tn[700]}:{main:Tn[800],light:Tn[500],dark:Tn[900]}}function Sy(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function ky(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ba(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:l,...i}=e,o=e.primary||gy(t),s=e.secondary||yy(t),a=e.error||vy(t),u=e.info||xy(t),g=e.success||wy(t),m=e.warning||Sy(t);function h(_){return l?ky(_):ly(_,Ms.text.primary)>=n?Ms.text.primary:fp.text.primary}const w=({color:_,name:p,mainShade:c=500,lightShade:y=300,darkShade:x=700})=>{if(_={..._},!_.main&&_[c]&&(_.main=_[c]),!_.hasOwnProperty("main"))throw new Error(vn(11,p?` (${p})`:"",c));if(typeof _.main!="string")throw new Error(vn(12,p?` (${p})`:"",JSON.stringify(_.main)));return l?(vc(l,_,"light",y,r),vc(l,_,"dark",x,r)):(yc(_,"light",y,r),yc(_,"dark",x,r)),_.contrastText||(_.contrastText=h(_.main)),_};let v;return t==="light"?v=cp():t==="dark"&&(v=dp()),Be({common:{...tl},mode:t,primary:w({color:o,name:"primary"}),secondary:w({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:a,name:"error"}),warning:w({color:m,name:"warning"}),info:w({color:u,name:"info"}),success:w({color:g,name:"success"}),grey:my,contrastThreshold:n,getContrastText:h,augmentColor:w,tonalOffset:r,...v},i)}function Cy(e){const t={};return Object.entries(e).forEach(r=>{const[l,i]=r;typeof i=="object"&&(t[l]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function _y(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ey(e){return Math.round(e*1e5)/1e5}const xc={textTransform:"uppercase"},wc='"Roboto", "Helvetica", "Arial", sans-serif';function Ty(e,t){const{fontFamily:n=wc,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:a=16,allVariants:u,pxToRem:g,...m}=typeof t=="function"?t(e):t,h=r/14,w=g||(_=>`${_/a*h}rem`),v=(_,p,c,y,x)=>({fontFamily:n,fontWeight:_,fontSize:w(p),lineHeight:c,...n===wc?{letterSpacing:`${Ey(y/p)}em`}:{},...x,...u}),S={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(o,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(o,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(o,14,1.75,.4,xc),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,xc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Be({htmlFontSize:a,pxToRem:w,fontFamily:n,fontSize:r,fontWeightLight:l,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:s,...S},m,{clone:!1})}const Py=.2,Ny=.14,jy=.12;function J(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Py})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ny})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${jy})`].join(",")}const $y=["none",J(0,2,1,-1,0,1,1,0,0,1,3,0),J(0,3,1,-2,0,2,2,0,0,1,5,0),J(0,3,3,-2,0,3,4,0,0,1,8,0),J(0,2,4,-1,0,4,5,0,0,1,10,0),J(0,3,5,-1,0,5,8,0,0,1,14,0),J(0,3,5,-1,0,6,10,0,0,1,18,0),J(0,4,5,-2,0,7,10,1,0,2,16,1),J(0,5,5,-3,0,8,10,1,0,3,14,2),J(0,5,6,-3,0,9,12,1,0,3,16,2),J(0,6,6,-3,0,10,14,1,0,4,18,3),J(0,6,7,-4,0,11,15,1,0,4,20,3),J(0,7,8,-4,0,12,17,2,0,5,22,4),J(0,7,8,-4,0,13,19,2,0,5,24,4),J(0,7,9,-4,0,14,21,2,0,5,26,4),J(0,8,9,-5,0,15,22,2,0,6,28,5),J(0,8,10,-5,0,16,24,2,0,6,30,5),J(0,8,11,-5,0,17,26,2,0,6,32,5),J(0,9,11,-5,0,18,28,2,0,7,34,6),J(0,9,12,-6,0,19,29,2,0,7,36,6),J(0,10,13,-6,0,20,31,3,0,8,38,7),J(0,10,13,-6,0,21,33,3,0,8,40,7),J(0,10,14,-6,0,22,35,3,0,8,42,7),J(0,11,14,-7,0,23,36,3,0,9,44,8),J(0,11,15,-7,0,24,38,3,0,9,46,8)],zy={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)"},Oy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sc(e){return`${Math.round(e)}ms`}function Ay(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ry(e){const t={...zy,...e.easing},n={...Oy,...e.duration};return{getAutoHeightDuration:Ay,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:s=t.easeInOut,delay:a=0,...u}=i;return(Array.isArray(l)?l:[l]).map(g=>`${g} ${typeof o=="string"?o:Sc(o)} ${s} ${typeof a=="string"?a:Sc(a)}`).join(",")},...e,easing:t,duration:n}}const Ly={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Iy(e){return St(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function pp(e={}){const t={...e};function n(r){const l=Object.entries(r);for(let i=0;i{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;rBe(v,S),x),x.unstable_sxConfig={...qi,...g==null?void 0:g.unstable_sxConfig},x.unstable_sx=function(S){return tr({sx:S,theme:this})},x.toRuntimeSource=pp,Fy(x),x}function Dy(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const By=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Dy(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function hp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function mp(e){return e==="dark"?By:[]}function Uy(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:l,...i}=e,o=ba({...t,colorSpace:l});return{palette:o,opacity:{...hp(o.mode),...n},overlays:r||mp(o.mode),...i}}function Wy(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Vy=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],by=e=>(t,n)=>{const r=e.rootSelector||":root",l=e.colorSchemeSelector;let i=l;if(l==="class"&&(i=".%s"),l==="data"&&(i="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(i=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return Vy(e.cssVarPrefix).forEach(s=>{o[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Hy(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function C(e,t,n){!e[t]&&n&&(e[t]=n)}function _r(e){return typeof e!="string"||!e.startsWith("hsl")?e:ap(e)}function vt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Cr(_r(e[t])))}function Qy(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ct=e=>{try{return e()}catch{}},Ky=(e="mui")=>cy(e);function Fo(e,t,n,r,l){if(!n)return;n=n===!0?{}:n;const i=l==="dark"?"dark":"light";if(!r){t[l]=Uy({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:o,...s}=Fs({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[l]={...n,palette:o,opacity:{...hp(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||mp(i)},s}function Yy(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:l=!1,cssVarPrefix:i="mui",nativeColor:o=!1,shouldSkipGeneratingVar:s=Wy,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...g}=e,h=Object.keys(n)[0],m=r||(n.light&&h!=="light"?"light":h),x=Ky(i),{[m]:v,light:S,dark:_,...d}=n,f={...d};let y=v;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(y=!0),!y)throw new Error(yn(21,m));let w;o&&(w="oklch");const T=Fo(w,f,y,g,m);S&&!f.light&&Fo(w,f,S,void 0,"light"),_&&!f.dark&&Fo(w,f,_,void 0,"dark");let k={defaultColorScheme:m,...T,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:u,getCssVar:x,colorSchemes:f,font:{...Cy(T.typography),...T.font},spacing:Qy(g.spacing)};Object.keys(k.colorSchemes).forEach(D=>{const c=k.colorSchemes[D].palette,O=L=>{const W=L.split("-"),we=W[1],j=W[2];return x(L,c[we][j])};c.mode==="light"&&(C(c.common,"background","#fff"),C(c.common,"onBackground","#000")),c.mode==="dark"&&(C(c.common,"background","#000"),C(c.common,"onBackground","#fff"));function N(L,W,we){if(w){let j;return L===tn&&(j=`transparent ${((1-we)*100).toFixed(0)}%`),L===H&&(j=`#000 ${(we*100).toFixed(0)}%`),L===Q&&(j=`#fff ${(we*100).toFixed(0)}%`),`color-mix(in ${w}, ${W}, ${j})`}return L(W,we)}if(Hy(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){C(c.Alert,"errorColor",N(H,c.error.light,.6)),C(c.Alert,"infoColor",N(H,c.info.light,.6)),C(c.Alert,"successColor",N(H,c.success.light,.6)),C(c.Alert,"warningColor",N(H,c.warning.light,.6)),C(c.Alert,"errorFilledBg",O("palette-error-main")),C(c.Alert,"infoFilledBg",O("palette-info-main")),C(c.Alert,"successFilledBg",O("palette-success-main")),C(c.Alert,"warningFilledBg",O("palette-warning-main")),C(c.Alert,"errorFilledColor",ct(()=>c.getContrastText(c.error.main))),C(c.Alert,"infoFilledColor",ct(()=>c.getContrastText(c.info.main))),C(c.Alert,"successFilledColor",ct(()=>c.getContrastText(c.success.main))),C(c.Alert,"warningFilledColor",ct(()=>c.getContrastText(c.warning.main))),C(c.Alert,"errorStandardBg",N(Q,c.error.light,.9)),C(c.Alert,"infoStandardBg",N(Q,c.info.light,.9)),C(c.Alert,"successStandardBg",N(Q,c.success.light,.9)),C(c.Alert,"warningStandardBg",N(Q,c.warning.light,.9)),C(c.Alert,"errorIconColor",O("palette-error-main")),C(c.Alert,"infoIconColor",O("palette-info-main")),C(c.Alert,"successIconColor",O("palette-success-main")),C(c.Alert,"warningIconColor",O("palette-warning-main")),C(c.AppBar,"defaultBg",O("palette-grey-100")),C(c.Avatar,"defaultBg",O("palette-grey-400")),C(c.Button,"inheritContainedBg",O("palette-grey-300")),C(c.Button,"inheritContainedHoverBg",O("palette-grey-A100")),C(c.Chip,"defaultBorder",O("palette-grey-400")),C(c.Chip,"defaultAvatarColor",O("palette-grey-700")),C(c.Chip,"defaultIconColor",O("palette-grey-700")),C(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),C(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),C(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),C(c.LinearProgress,"primaryBg",N(Q,c.primary.main,.62)),C(c.LinearProgress,"secondaryBg",N(Q,c.secondary.main,.62)),C(c.LinearProgress,"errorBg",N(Q,c.error.main,.62)),C(c.LinearProgress,"infoBg",N(Q,c.info.main,.62)),C(c.LinearProgress,"successBg",N(Q,c.success.main,.62)),C(c.LinearProgress,"warningBg",N(Q,c.warning.main,.62)),C(c.Skeleton,"bg",w?N(tn,c.text.primary,.11):`rgba(${O("palette-text-primaryChannel")} / 0.11)`),C(c.Slider,"primaryTrack",N(Q,c.primary.main,.62)),C(c.Slider,"secondaryTrack",N(Q,c.secondary.main,.62)),C(c.Slider,"errorTrack",N(Q,c.error.main,.62)),C(c.Slider,"infoTrack",N(Q,c.info.main,.62)),C(c.Slider,"successTrack",N(Q,c.success.main,.62)),C(c.Slider,"warningTrack",N(Q,c.warning.main,.62));const L=w?N(H,c.background.default,.6825):Ol(c.background.default,.8);C(c.SnackbarContent,"bg",L),C(c.SnackbarContent,"color",ct(()=>w?Ms.text.primary:c.getContrastText(L))),C(c.SpeedDialAction,"fabHoverBg",Ol(c.background.paper,.15)),C(c.StepConnector,"border",O("palette-grey-400")),C(c.StepContent,"border",O("palette-grey-400")),C(c.Switch,"defaultColor",O("palette-common-white")),C(c.Switch,"defaultDisabledColor",O("palette-grey-100")),C(c.Switch,"primaryDisabledColor",N(Q,c.primary.main,.62)),C(c.Switch,"secondaryDisabledColor",N(Q,c.secondary.main,.62)),C(c.Switch,"errorDisabledColor",N(Q,c.error.main,.62)),C(c.Switch,"infoDisabledColor",N(Q,c.info.main,.62)),C(c.Switch,"successDisabledColor",N(Q,c.success.main,.62)),C(c.Switch,"warningDisabledColor",N(Q,c.warning.main,.62)),C(c.TableCell,"border",N(Q,N(tn,c.divider,1),.88)),C(c.Tooltip,"bg",N(tn,c.grey[700],.92))}if(c.mode==="dark"){C(c.Alert,"errorColor",N(Q,c.error.light,.6)),C(c.Alert,"infoColor",N(Q,c.info.light,.6)),C(c.Alert,"successColor",N(Q,c.success.light,.6)),C(c.Alert,"warningColor",N(Q,c.warning.light,.6)),C(c.Alert,"errorFilledBg",O("palette-error-dark")),C(c.Alert,"infoFilledBg",O("palette-info-dark")),C(c.Alert,"successFilledBg",O("palette-success-dark")),C(c.Alert,"warningFilledBg",O("palette-warning-dark")),C(c.Alert,"errorFilledColor",ct(()=>c.getContrastText(c.error.dark))),C(c.Alert,"infoFilledColor",ct(()=>c.getContrastText(c.info.dark))),C(c.Alert,"successFilledColor",ct(()=>c.getContrastText(c.success.dark))),C(c.Alert,"warningFilledColor",ct(()=>c.getContrastText(c.warning.dark))),C(c.Alert,"errorStandardBg",N(H,c.error.light,.9)),C(c.Alert,"infoStandardBg",N(H,c.info.light,.9)),C(c.Alert,"successStandardBg",N(H,c.success.light,.9)),C(c.Alert,"warningStandardBg",N(H,c.warning.light,.9)),C(c.Alert,"errorIconColor",O("palette-error-main")),C(c.Alert,"infoIconColor",O("palette-info-main")),C(c.Alert,"successIconColor",O("palette-success-main")),C(c.Alert,"warningIconColor",O("palette-warning-main")),C(c.AppBar,"defaultBg",O("palette-grey-900")),C(c.AppBar,"darkBg",O("palette-background-paper")),C(c.AppBar,"darkColor",O("palette-text-primary")),C(c.Avatar,"defaultBg",O("palette-grey-600")),C(c.Button,"inheritContainedBg",O("palette-grey-800")),C(c.Button,"inheritContainedHoverBg",O("palette-grey-700")),C(c.Chip,"defaultBorder",O("palette-grey-700")),C(c.Chip,"defaultAvatarColor",O("palette-grey-300")),C(c.Chip,"defaultIconColor",O("palette-grey-300")),C(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),C(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),C(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),C(c.LinearProgress,"primaryBg",N(H,c.primary.main,.5)),C(c.LinearProgress,"secondaryBg",N(H,c.secondary.main,.5)),C(c.LinearProgress,"errorBg",N(H,c.error.main,.5)),C(c.LinearProgress,"infoBg",N(H,c.info.main,.5)),C(c.LinearProgress,"successBg",N(H,c.success.main,.5)),C(c.LinearProgress,"warningBg",N(H,c.warning.main,.5)),C(c.Skeleton,"bg",w?N(tn,c.text.primary,.13):`rgba(${O("palette-text-primaryChannel")} / 0.13)`),C(c.Slider,"primaryTrack",N(H,c.primary.main,.5)),C(c.Slider,"secondaryTrack",N(H,c.secondary.main,.5)),C(c.Slider,"errorTrack",N(H,c.error.main,.5)),C(c.Slider,"infoTrack",N(H,c.info.main,.5)),C(c.Slider,"successTrack",N(H,c.success.main,.5)),C(c.Slider,"warningTrack",N(H,c.warning.main,.5));const L=w?N(Q,c.background.default,.985):Ol(c.background.default,.98);C(c.SnackbarContent,"bg",L),C(c.SnackbarContent,"color",ct(()=>w?fp.text.primary:c.getContrastText(L))),C(c.SpeedDialAction,"fabHoverBg",Ol(c.background.paper,.15)),C(c.StepConnector,"border",O("palette-grey-600")),C(c.StepContent,"border",O("palette-grey-600")),C(c.Switch,"defaultColor",O("palette-grey-300")),C(c.Switch,"defaultDisabledColor",O("palette-grey-600")),C(c.Switch,"primaryDisabledColor",N(H,c.primary.main,.55)),C(c.Switch,"secondaryDisabledColor",N(H,c.secondary.main,.55)),C(c.Switch,"errorDisabledColor",N(H,c.error.main,.55)),C(c.Switch,"infoDisabledColor",N(H,c.info.main,.55)),C(c.Switch,"successDisabledColor",N(H,c.success.main,.55)),C(c.Switch,"warningDisabledColor",N(H,c.warning.main,.55)),C(c.TableCell,"border",N(H,N(tn,c.divider,1),.68)),C(c.Tooltip,"bg",N(tn,c.grey[700],.92))}vt(c.background,"default"),vt(c.background,"paper"),vt(c.common,"background"),vt(c.common,"onBackground"),vt(c,"divider"),Object.keys(c).forEach(L=>{const W=c[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&C(c[L],"mainChannel",Cr(_r(W.main))),W.light&&C(c[L],"lightChannel",Cr(_r(W.light))),W.dark&&C(c[L],"darkChannel",Cr(_r(W.dark))),W.contrastText&&C(c[L],"contrastTextChannel",Cr(_r(W.contrastText))),L==="text"&&(vt(c[L],"primary"),vt(c[L],"secondary")),L==="action"&&(W.active&&vt(c[L],"active"),W.selected&&vt(c[L],"selected")))})}),k=t.reduce((D,c)=>Be(D,c),k);const E={prefix:i,disableCssColorScheme:l,shouldSkipGeneratingVar:s,getSelector:by(k),enableContrastVars:o},{vars:$,generateThemeVars:M,generateStyleSheets:A}=py(k,E);return k.vars=$,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([D,c])=>{k[D]=c}),k.generateThemeVars=M,k.generateStyleSheets=A,k.generateSpacing=function(){return rp(g.spacing,Fa(this))},k.getColorSchemeSelector=hy(a),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=s,k.unstable_sxConfig={...qi,...g==null?void 0:g.unstable_sxConfig},k.unstable_sx=function(c){return tr({sx:c,theme:this})},k.toRuntimeSource=pp,k}function Cc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ba({...n===!0?{}:n.palette,mode:t})})}function Gy(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:l=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...o}=e,s=i||"light",a=l==null?void 0:l[s],u={...l,...n?{[s]:{...typeof a!="boolean"&&a,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Fs(e,...t);let g=n;"palette"in e||u[s]&&(u[s]!==!0?g=u[s].palette:s==="dark"&&(g={mode:"dark"}));const h=Fs({...e,palette:g},...t);return h.defaultColorScheme=s,h.colorSchemes=u,h.palette.mode==="light"&&(h.colorSchemes.light={...u.light!==!0&&u.light,palette:h.palette},Cc(h,"dark",u.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:h.palette},Cc(h,"light",u.light)),h}return!n&&!("light"in u)&&s==="light"&&(u.light=!0),Yy({...o,colorSchemes:u,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Xy=Gy(),Zy="$$material";function Jy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qy=e=>Jy(e)&&e!=="classes",ev=X0({themeId:Zy,defaultTheme:Xy,rootShouldForwardProp:qy}),tv=uy;function nv(e){return ay(e)}function rv(e){return ip("MuiSvgIcon",e)}Q0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lv=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${er(t)}`,`fontSize${er(n)}`]};return Zm(l,rv,r)},iv=ev("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${er(n.color)}`],t[`fontSize${er(n.fontSize)}`]]}})(tv(({theme:e})=>{var t,n,r,l,i,o,s,a,u,g,h,m,x,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((a=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:a.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:g.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var _,d;return{props:{color:S},style:{color:(d=(_=(e.vars??e).palette)==null?void 0:_[S])==null?void 0:d.main}}}),{props:{color:"action"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(v=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ds=I.forwardRef(function(t,n){const r=nv({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:s="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:g=!1,titleAccess:h,viewBox:m="0 0 24 24",...x}=r,v=I.isValidElement(l)&&l.type==="svg",S={...r,color:o,component:s,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:m,hasSvgAsChild:v},_={};g||(_.viewBox=m);const d=lv(S);return p.jsxs(iv,{as:s,className:Bd(d.root,i),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,..._,...x,...v&&l.props,ownerState:S,children:[v?l.props.children:l,h?p.jsx("title",{children:h}):null]})});Ds.muiName="SvgIcon";function tt(e,t){function n(r,l){return p.jsx(Ds,{"data-testid":void 0,ref:l,...r,children:e})}return n.muiName=Ds.muiName,I.memo(I.forwardRef(n))}const gp=tt(p.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-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),ov=tt(p.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"})),sv=tt(p.jsx("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"})),yp=tt(p.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),vp=tt(p.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.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),av=tt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),uv=tt(p.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),cv=tt(p.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 11-2.5-1.5L14 13V5h5z"})),fv=tt(p.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function dv(){const[e,t]=I.useState({postsCount:0,pagesCount:0,commentsCount:0,usersCount:0,recentPosts:[],recentComments:[],loading:!0});I.useEffect(()=>{(async()=>{var i,o,s,a;try{const[u,g,h,m]=await Promise.all([fetch(`${((i=window.helixData)==null?void 0:i.restUrl)||"/wp-json/wp/v2/"}posts?per_page=5`),fetch(`${((o=window.helixData)==null?void 0:o.restUrl)||"/wp-json/wp/v2/"}pages?per_page=5`),fetch(`${((s=window.helixData)==null?void 0:s.restUrl)||"/wp-json/wp/v2/"}comments?per_page=5`),fetch(`${((a=window.helixData)==null?void 0:a.restUrl)||"/wp-json/wp/v2/"}users?per_page=5`)]),[x,v,S,_]=await Promise.all([u.json(),g.json(),h.json(),m.json()]);t({postsCount:u.headers.get("X-WP-Total")||x.length,pagesCount:g.headers.get("X-WP-Total")||v.length,commentsCount:h.headers.get("X-WP-Total")||S.length,usersCount:m.headers.get("X-WP-Total")||_.length,recentPosts:x.slice(0,5),recentComments:S.slice(0,5),loading:!1})}catch{t(g=>({...g,loading:!1}))}})()},[]);const n=({title:l,count:i,icon:o,color:s,trend:a})=>p.jsxs("div",{className:`helix-stats-card helix-stats-card--${s}`,children:[p.jsx("div",{className:"helix-stats-card__icon",children:p.jsx(o,{})}),p.jsxs("div",{className:"helix-stats-card__content",children:[p.jsxs("div",{className:"helix-stats-card__header",children:[p.jsx("h3",{className:"helix-stats-card__count",children:i}),a&&p.jsxs("div",{className:"helix-stats-card__trend",children:[p.jsx(fv,{className:"helix-trend-icon"}),p.jsx("span",{children:a})]})]}),p.jsx("p",{className:"helix-stats-card__title",children:l})]})]}),r=l=>new Date(l).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return e.loading?p.jsx("div",{className:"helix-settings-page",children:p.jsxs("div",{className:"helix-loading",children:[p.jsx("div",{className:"helix-spinner"}),p.jsx("p",{children:"Loading dashboard..."})]})}):p.jsxs("div",{className:"helix-dashboard",children:[p.jsxs("div",{className:"helix-dashboard__header",children:[p.jsx("h1",{children:"Welcome to Helix"}),p.jsx("p",{children:"Your modern WordPress admin experience"})]}),p.jsxs("div",{className:"helix-dashboard__stats",children:[p.jsx(n,{title:"Posts",count:e.postsCount,icon:gp,color:"blue",trend:"+12%"}),p.jsx(n,{title:"Pages",count:e.pagesCount,icon:ov,color:"green",trend:"+5%"}),p.jsx(n,{title:"Comments",count:e.commentsCount,icon:sv,color:"orange",trend:"+28%"}),p.jsx(n,{title:"Users",count:e.usersCount,icon:yp,color:"purple",trend:"+3%"})]}),p.jsxs("div",{className:"helix-dashboard__content",children:[p.jsxs("div",{className:"helix-widget",children:[p.jsxs("div",{className:"helix-widget__header",children:[p.jsx("h2",{children:"Recent Posts"}),p.jsx("a",{href:"/wp-admin/edit.php",className:"helix-widget__link",children:"View All"})]}),p.jsx("div",{className:"helix-widget__content",children:e.recentPosts.length>0?p.jsx("ul",{className:"helix-posts-list",children:e.recentPosts.map(l=>p.jsxs("li",{className:"helix-posts-list__item",children:[p.jsxs("div",{className:"helix-posts-list__content",children:[p.jsx("h3",{className:"helix-posts-list__title",children:p.jsx("a",{href:`/wp-admin/post.php?post=${l.id}&action=edit`,children:l.title.rendered||"Untitled"})}),p.jsx("p",{className:"helix-posts-list__date",children:r(l.date)})]}),p.jsx("div",{className:"helix-posts-list__status",children:p.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):p.jsxs("p",{className:"helix-widget__empty",children:["No posts yet."," ",p.jsx("a",{href:"/wp-admin/post-new.php",children:"Create your first post!"})]})})]}),p.jsxs("div",{className:"helix-widget",children:[p.jsxs("div",{className:"helix-widget__header",children:[p.jsx("h2",{children:"Recent Comments"}),p.jsx("a",{href:"/wp-admin/edit-comments.php",className:"helix-widget__link",children:"View All"})]}),p.jsx("div",{className:"helix-widget__content",children:e.recentComments.length>0?p.jsx("ul",{className:"helix-comments-list",children:e.recentComments.map(l=>p.jsxs("li",{className:"helix-comments-list__item",children:[p.jsxs("div",{className:"helix-comments-list__content",children:[p.jsx("h4",{className:"helix-comments-list__author",children:l.author_name}),p.jsxs("p",{className:"helix-comments-list__excerpt",children:[l.content.rendered.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),p.jsx("p",{className:"helix-comments-list__date",children:r(l.date)})]}),p.jsx("div",{className:"helix-comments-list__status",children:p.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):p.jsx("p",{className:"helix-widget__empty",children:"No comments yet."})})]}),p.jsxs("div",{className:"helix-widget",children:[p.jsx("div",{className:"helix-widget__header",children:p.jsx("h2",{children:"Quick Actions"})}),p.jsx("div",{className:"helix-widget__content",children:p.jsxs("div",{className:"helix-quick-actions",children:[p.jsxs("a",{href:"/wp-admin/post-new.php",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(vp,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Write a Post"})]}),p.jsxs("a",{href:"/wp-admin/post-new.php?post_type=page",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(av,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Create a Page"})]}),p.jsxs("a",{href:"/wp-admin/upload.php",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(uv,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Upload Media"})]}),p.jsxs("a",{href:"/wp-admin/edit-comments.php",className:"helix-quick-action",children:[p.jsx("span",{className:"helix-quick-action__icon",children:p.jsx(cv,{})}),p.jsx("span",{className:"helix-quick-action__text",children:"Moderate Comments"})]})]})})]}),p.jsxs("div",{className:"helix-widget",children:[p.jsx("div",{className:"helix-widget__header",children:p.jsx("h2",{children:"WordPress News"})}),p.jsxs("div",{className:"helix-widget__content",children:[p.jsx("p",{children:"Stay updated with the latest WordPress news and updates."}),p.jsx("div",{className:"helix-news-placeholder",children:p.jsxs("div",{className:"helix-news-item",children:[p.jsx("h4",{children:"WordPress 6.4 “Shirley” Released"}),p.jsx("p",{children:"The latest version includes new features and improvements..."}),p.jsx("a",{href:"https://wordpress.org/news/",target:"_blank",rel:"noopener noreferrer",children:"Read more"})]})})]})]})]})]})}const pv=()=>{var e;return((e=window.helixData)==null?void 0:e.restUrl)||"/wp-json/helix/v1/"},hv=()=>{var e;return((e=window.helixData)==null?void 0:e.nonce)||""},xp=async(e,t={})=>{const n=`${pv()}${e}`,r={headers:{"Content-Type":"application/json","X-WP-Nonce":hv()},credentials:"include"},l={...r,...t,headers:{...r.headers,...t.headers}};try{const i=await fetch(n,l);if(!i.ok){const o=await i.json().catch(()=>({}));throw new Error(o.message||`HTTP ${i.status}: ${i.statusText}`)}return await i.json()}catch(i){throw i}},mv=async()=>xp("settings"),gv=async e=>xp("settings",{method:"POST",body:JSON.stringify(e)}),yv=()=>{const[e,t]=I.useState({}),[n,r]=I.useState({}),[l,i]=I.useState(!0),[o,s]=I.useState(!1),[a,u]=I.useState(null),[g,h]=I.useState(!1),m=I.useCallback(async()=>{try{i(!0),u(null);const d=await mv(),f={};Object.keys(d).forEach(y=>{Object.keys(d[y]).forEach(w=>{f[w]=d[y][w].value})}),t(f),r(f),h(!1)}catch(d){u(d.message)}finally{i(!1)}},[]),x=I.useCallback((d,f)=>{t(y=>{const w={...y,[d]:f},T=Object.keys(w).some(k=>w[k]!==n[k]);return h(T),w})},[n]),v=I.useCallback(async()=>{try{s(!0),u(null);const d={};if(Object.keys(e).forEach(y=>{e[y]!==n[y]&&(d[y]=e[y])}),Object.keys(d).length===0)return{success:!0,message:"No changes to save"};const f=await gv(d);return r(e),h(!1),{success:!0,message:"Settings saved successfully",updated:f.updated,errors:f.errors}}catch(d){return u(d.message),{success:!1,message:d.message}}finally{s(!1)}},[e,n]),S=I.useCallback(()=>{t(n),h(!1),u(null)},[n]),_=I.useCallback(d=>{x(d,n[d])},[n,x]);return I.useEffect(()=>{m()},[m]),I.useEffect(()=>{const d=f=>{if(g)return f.preventDefault(),f.returnValue="You have unsaved changes. Are you sure you want to leave?",f.returnValue};return window.addEventListener("beforeunload",d),()=>window.removeEventListener("beforeunload",d)},[g]),{settings:e,loading:l,saving:o,error:a,hasUnsavedChanges:g,updateSetting:x,saveSettings:v,resetSettings:S,resetSetting:_,loadSettings:m}},vv=tt(p.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),xv=tt(p.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"})),wv=tt(p.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),Sv=({activeTab:e,onTabChange:t,hasUnsavedChanges:n})=>{const r=[{id:"site",label:"Site Information",icon:vv},{id:"content",label:"Content & Reading",icon:gp},{id:"writing",label:"Writing & Publishing",icon:vp},{id:"media",label:"Media & Assets",icon:xv},{id:"users",label:"Users & Membership",icon:yp},{id:"helix",label:"Helix Settings",icon:wv}];return p.jsx("div",{className:"helix-settings-tabs",children:p.jsx("nav",{className:"helix-tabs-nav",role:"tablist",children:r.map(l=>p.jsxs("button",{type:"button",role:"tab","aria-selected":e===l.id,"aria-controls":`${l.id}-panel`,className:`helix-tab ${e===l.id?"active":""}`,onClick:()=>t(l.id),children:[p.jsx("span",{className:"helix-tab-icon",children:p.jsx(l.icon,{})}),p.jsx("span",{className:"helix-tab-label",children:l.label}),n&&p.jsx("span",{className:"helix-tab-indicator",title:"Unsaved changes",children:"●"})]},l.id))})})},kv=({onSave:e,onReset:t,saving:n=!1,hasUnsavedChanges:r=!1,disabled:l=!1})=>p.jsxs("div",{className:"helix-save-buttons",children:[p.jsx("button",{type:"button",onClick:e,disabled:l||n||!r,className:`helix-btn helix-btn-primary ${n?"saving":""}`,children:n?p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"helix-spinner"}),"Saving..."]}):"Save Changes"}),r&&!n&&p.jsx("button",{type:"button",onClick:t,className:"helix-btn helix-btn-secondary",children:"Reset Changes"}),!r&&!n&&p.jsx("span",{className:"helix-save-status",children:"✓ All changes saved"})]}),_c=({type:e="info",message:t,onClose:n,autoClose:r=!0,duration:l=5e3})=>{const[i,o]=I.useState(!0);if(I.useEffect(()=>{if(r&&l>0){const a=setTimeout(()=>{o(!1),setTimeout(()=>n==null?void 0:n(),300)},l);return()=>clearTimeout(a)}},[r,l,n]),!i)return null;const s=()=>{switch(e){case"success":return"✅";case"error":return"❌";case"warning":return"⚠️";default:return"ℹ️"}};return p.jsx("div",{className:`helix-notification helix-notification-${e} ${i?"visible":""}`,children:p.jsxs("div",{className:"helix-notification-content",children:[p.jsx("span",{className:"helix-notification-icon",children:s()}),p.jsx("span",{className:"helix-notification-message",children:t}),n&&p.jsx("button",{type:"button",onClick:()=>{o(!1),setTimeout(()=>n(),300)},className:"helix-notification-close","aria-label":"Close notification",children:"×"})]})})},sr=({title:e,description:t,children:n,className:r=""})=>p.jsxs("div",{className:`helix-settings-section ${r}`,children:[e&&p.jsxs("div",{className:"helix-settings-section-header",children:[p.jsx("h3",{className:"helix-settings-section-title",children:e}),t&&p.jsx("p",{className:"helix-settings-section-description",children:t})]}),p.jsx("div",{className:"helix-settings-section-content",children:n})]}),oo=({label:e,description:t,error:n,required:r=!1,children:l,className:i=""})=>p.jsxs("div",{className:`helix-form-field ${i}`,children:[e&&p.jsxs("label",{className:"helix-form-label",children:[e,r&&p.jsx("span",{className:"helix-required",children:"*"})]}),p.jsx("div",{className:"helix-form-control",children:l}),t&&p.jsx("p",{className:"helix-form-description",children:t}),n&&p.jsx("p",{className:"helix-form-error",children:n})]}),wt=({label:e,description:t,value:n,onChange:r,placeholder:l="",type:i="text",required:o=!1,disabled:s=!1,error:a=null,className:u="",...g})=>{const h=m=>{r(m.target.value)};return p.jsx(oo,{label:e,description:t,error:a,required:o,className:u,children:p.jsx("input",{type:i,value:n||"",onChange:h,placeholder:l,required:o,disabled:s,className:"helix-text-input",...g})})},Ec=({settings:e,updateSetting:t})=>p.jsx(sr,{title:"Site Information",description:"Basic information about your WordPress site",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(wt,{label:"Site Title",description:"In a few words, explain what this site is about.",value:e.siteTitle,onChange:n=>t("siteTitle",n),placeholder:"My Awesome Site",required:!0}),p.jsx(wt,{label:"Tagline",description:"A brief description of your site, usually displayed under the title.",value:e.tagline,onChange:n=>t("tagline",n),placeholder:"Just another WordPress site"}),p.jsx(wt,{label:"WordPress Address (URL)",description:"The address of your WordPress core files.",value:e.siteUrl,onChange:n=>t("siteUrl",n),type:"url",placeholder:"https://example.com"}),p.jsx(wt,{label:"Site Address (URL)",description:"The address you want people to type in their browser to reach your website.",value:e.homeUrl,onChange:n=>t("homeUrl",n),type:"url",placeholder:"https://example.com"}),p.jsx(wt,{label:"Administration Email Address",description:"This address is used for admin purposes, like new user notification.",value:e.adminEmail,onChange:n=>t("adminEmail",n),type:"email",placeholder:"admin@example.com",required:!0}),p.jsx(wt,{label:"Site Language",description:"The language for your site interface.",value:e.language,onChange:n=>t("language",n),placeholder:"en_US"}),p.jsx(wt,{label:"Timezone",description:"Choose either a city in the same timezone as you or a UTC timezone offset.",value:e.timezone,onChange:n=>t("timezone",n),placeholder:"UTC"})]})}),Qn=({label:e,description:t,value:n,onChange:r,options:l=[],required:i=!1,disabled:o=!1,error:s=null,className:a="",placeholder:u="Select an option...",...g})=>{const h=m=>{r(m.target.value)};return p.jsx(oo,{label:e,description:t,error:s,required:i,className:a,children:p.jsxs("select",{value:n||"",onChange:h,required:i,disabled:o,className:"helix-select-input",...g,children:[u&&p.jsx("option",{value:"",disabled:!0,children:u}),l.map(m=>p.jsx("option",{value:m.value,children:m.label},m.value))]})})},He=({label:e,description:t,value:n,onChange:r,min:l=null,max:i=null,step:o=1,required:s=!1,disabled:a=!1,error:u=null,className:g="",...h})=>{const m=x=>{const v=x.target.value;r(v===""?"":Number(v))};return p.jsx(oo,{label:e,description:t,error:u,required:s,className:g,children:p.jsx("input",{type:"number",value:n||"",onChange:m,min:l,max:i,step:o,required:s,disabled:a,className:"helix-number-input",...h})})},cl=({label:e,description:t,value:n,onChange:r,required:l=!1,disabled:i=!1,error:o=null,className:s="",...a})=>{const u=g=>{r(g.target.checked)};return p.jsx(oo,{description:t,error:o,required:l,className:`helix-toggle-field ${s}`,children:p.jsxs("label",{className:"helix-toggle-wrapper",children:[p.jsx("input",{type:"checkbox",checked:!!n,onChange:u,required:l,disabled:i,className:"helix-toggle-input",...a}),p.jsx("span",{className:"helix-toggle-slider"}),p.jsx("span",{className:"helix-toggle-label",children:e})]})})},Cv=({settings:e,updateSetting:t})=>{const n=[{value:"posts",label:"Your latest posts"},{value:"page",label:"A static page"}],r=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:2,label:"Tuesday"},{value:3,label:"Wednesday"},{value:4,label:"Thursday"},{value:5,label:"Friday"},{value:6,label:"Saturday"}];return p.jsx(sr,{title:"Content & Reading",description:"Settings that affect how your content is displayed",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(Qn,{label:"Your homepage displays",description:"What to show on the front page of your site.",value:e.showOnFront,onChange:l=>t("showOnFront",l),options:n}),e.showOnFront==="page"&&p.jsxs(p.Fragment,{children:[p.jsx(He,{label:"Homepage",description:"The page to show on the front page (Page ID).",value:e.pageOnFront,onChange:l=>t("pageOnFront",l),min:0}),p.jsx(He,{label:"Posts page",description:"The page to show posts (Page ID).",value:e.pageForPosts,onChange:l=>t("pageForPosts",l),min:0})]}),p.jsx(He,{label:"Blog pages show at most",description:"Number of posts to show per page.",value:e.postsPerPage,onChange:l=>t("postsPerPage",l),min:1,max:100}),p.jsx(cl,{label:"Discourage search engines from indexing this site",description:"This will discourage, but not prevent, search engines from indexing this site.",value:!e.blogPublic,onChange:l=>t("blogPublic",!l)}),p.jsx(wt,{label:"Date Format",description:"Format for displaying dates throughout your site.",value:e.dateFormat,onChange:l=>t("dateFormat",l),placeholder:"F j, Y"}),p.jsx(wt,{label:"Time Format",description:"Format for displaying times throughout your site.",value:e.timeFormat,onChange:l=>t("timeFormat",l),placeholder:"g:i a"}),p.jsx(Qn,{label:"Week Starts On",description:"The day of the week the calendar should start on.",value:e.startOfWeek,onChange:l=>t("startOfWeek",parseInt(l)),options:r})]})})},_v=({settings:e,updateSetting:t})=>{const n=[{value:"standard",label:"Standard"},{value:"aside",label:"Aside"},{value:"gallery",label:"Gallery"},{value:"image",label:"Image"},{value:"link",label:"Link"},{value:"quote",label:"Quote"},{value:"status",label:"Status"},{value:"video",label:"Video"},{value:"audio",label:"Audio"},{value:"chat",label:"Chat"}],r=[{value:"open",label:"Open"},{value:"closed",label:"Closed"}];return p.jsx(sr,{title:"Writing & Publishing",description:"Settings for content creation and publishing",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(He,{label:"Default Post Category",description:"The default category for new posts (Category ID).",value:e.defaultCategory,onChange:l=>t("defaultCategory",l),min:1}),p.jsx(Qn,{label:"Default Post Format",description:"The default format for new posts.",value:e.defaultPostFormat,onChange:l=>t("defaultPostFormat",l),options:n}),p.jsx(cl,{label:"Convert emoticons like :-) and :-P to graphics on display",description:"Transform text emoticons into graphical representations.",value:e.useSmilies,onChange:l=>t("useSmilies",l)}),p.jsx(Qn,{label:"Default comment status",description:"Allow people to submit comments on new posts.",value:e.defaultCommentStatus,onChange:l=>t("defaultCommentStatus",l),options:r}),p.jsx(Qn,{label:"Default ping status",description:"Allow link notifications from other blogs (pingbacks and trackbacks) on new posts.",value:e.defaultPingStatus,onChange:l=>t("defaultPingStatus",l),options:r})]})})},Ev=({settings:e,updateSetting:t})=>p.jsx(sr,{title:"Media & Assets",description:"Settings for media files, images, and site branding",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(He,{label:"Site Logo",description:"The site logo (Media ID). Upload a logo in Media Library and enter its ID here.",value:e.siteLogo,onChange:n=>t("siteLogo",n),min:0}),p.jsx(He,{label:"Site Icon (Favicon)",description:"The site icon/favicon (Media ID). Upload an icon in Media Library and enter its ID here.",value:e.siteIcon,onChange:n=>t("siteIcon",n),min:0}),p.jsxs("div",{className:"helix-settings-subsection",children:[p.jsx("h4",{children:"Image Sizes"}),p.jsx(He,{label:"Thumbnail Width",description:"Maximum width of thumbnail images in pixels.",value:e.thumbnailSizeW,onChange:n=>t("thumbnailSizeW",n),min:0,max:2e3}),p.jsx(He,{label:"Thumbnail Height",description:"Maximum height of thumbnail images in pixels.",value:e.thumbnailSizeH,onChange:n=>t("thumbnailSizeH",n),min:0,max:2e3}),p.jsx(He,{label:"Medium Width",description:"Maximum width of medium-sized images in pixels.",value:e.mediumSizeW,onChange:n=>t("mediumSizeW",n),min:0,max:2e3}),p.jsx(He,{label:"Medium Height",description:"Maximum height of medium-sized images in pixels.",value:e.mediumSizeH,onChange:n=>t("mediumSizeH",n),min:0,max:2e3}),p.jsx(He,{label:"Large Width",description:"Maximum width of large-sized images in pixels.",value:e.largeSizeW,onChange:n=>t("largeSizeW",n),min:0,max:4e3}),p.jsx(He,{label:"Large Height",description:"Maximum height of large-sized images in pixels.",value:e.largeSizeH,onChange:n=>t("largeSizeH",n),min:0,max:4e3})]}),p.jsx(cl,{label:"Organize my uploads into month- and year-based folders",description:"Organize uploaded files into date-based folder structure.",value:e.uploadsUseYearmonthFolders,onChange:n=>t("uploadsUseYearmonthFolders",n)})]})}),Tv=({settings:e,updateSetting:t})=>{const n=[{value:"subscriber",label:"Subscriber"},{value:"contributor",label:"Contributor"},{value:"author",label:"Author"},{value:"editor",label:"Editor"},{value:"administrator",label:"Administrator"}];return p.jsx(sr,{title:"Users & Membership",description:"Settings for user registration and default permissions",children:p.jsxs("div",{className:"helix-settings-grid",children:[p.jsx(cl,{label:"Anyone can register",description:"Allow anyone to register as a user on your site.",value:e.usersCanRegister,onChange:r=>t("usersCanRegister",r)}),p.jsx(Qn,{label:"New User Default Role",description:"The default role assigned to new users when they register.",value:e.defaultRole,onChange:r=>t("defaultRole",r),options:n})]})})},Pv=({settings:e,updateSetting:t})=>p.jsx(sr,{title:"Helix Settings",description:"Settings specific to the Helix plugin",children:p.jsx("div",{className:"helix-settings-grid",children:p.jsx(cl,{label:"Use Default WordPress Admin",description:"Switch back to the default WordPress admin interface instead of using Helix.",value:e.helixUseDefaultAdmin,onChange:n=>t("helixUseDefaultAdmin",n)})})});function Nv(){const{settings:e,loading:t,saving:n,error:r,hasUnsavedChanges:l,updateSetting:i,saveSettings:o,resetSettings:s}=yv(),[a,u]=I.useState("site"),[g,h]=I.useState(null),m=async()=>{const _=await o();_.success?h({type:"success",message:_.message||"Settings saved successfully!"}):h({type:"error",message:_.message||"Failed to save settings. Please try again."})},x=()=>{s(),h({type:"info",message:"Changes have been reset to their original values."})},v=_=>{l&&!window.confirm("You have unsaved changes. Are you sure you want to switch tabs? Your changes will be lost.")||u(_)},S=()=>{const _={settings:e,updateSetting:i};switch(a){case"site":return p.jsx(Ec,{..._});case"content":return p.jsx(Cv,{..._});case"writing":return p.jsx(_v,{..._});case"media":return p.jsx(Ev,{..._});case"users":return p.jsx(Tv,{..._});case"helix":return p.jsx(Pv,{..._});default:return p.jsx(Ec,{..._})}};return t?p.jsx("div",{className:"helix-settings-page",children:p.jsxs("div",{className:"helix-loading",children:[p.jsx("div",{className:"helix-spinner"}),p.jsx("p",{children:"Loading settings..."})]})}):p.jsxs("div",{className:"helix-settings-page",children:[p.jsxs("div",{className:"helix-settings-header",children:[p.jsx("h1",{children:"Settings"}),p.jsx("p",{children:"Manage your WordPress site configuration"})]}),r&&p.jsx(_c,{type:"error",message:r,onClose:()=>{},autoClose:!1}),g&&p.jsx(_c,{type:g.type,message:g.message,onClose:()=>h(null)}),p.jsx(Sv,{activeTab:a,onTabChange:v,hasUnsavedChanges:l}),p.jsx("div",{className:"helix-settings-content",children:p.jsx("div",{id:`${a}-panel`,role:"tabpanel","aria-labelledby":`${a}-tab`,className:"helix-tab-panel",children:S()})}),p.jsx("div",{className:"helix-settings-footer",children:p.jsx(kv,{onSave:m,onReset:x,saving:n,hasUnsavedChanges:l})})]})}function jv(){return p.jsx(dv,{})}function $v(){return p.jsxs("div",{className:"helix-page",children:[p.jsx("h1",{children:"Posts Management"}),p.jsx("p",{children:"Posts management interface will be implemented here."})]})}function Ov(){return p.jsxs("div",{className:"helix-page",children:[p.jsx("h1",{children:"Users Management"}),p.jsx("p",{children:"Users management interface will be implemented here."})]})}document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("helix-root");e&&kr(e).render(p.jsx(jv,{}));const t=document.getElementById("helix-settings-root");t&&kr(t).render(p.jsx(Nv,{}));const n=document.getElementById("helix-posts-root");n&&kr(n).render(p.jsx($v,{}));const r=document.getElementById("helix-users-root");r&&kr(r).render(p.jsx(Ov,{}))}); +export default theme;`}function kc(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const My=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;rBe(v,S),w),w.unstable_sxConfig={...qi,...g==null?void 0:g.unstable_sxConfig},w.unstable_sx=function(S){return tr({sx:S,theme:this})},w.toRuntimeSource=pp,Fy(w),w}function Dy(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const By=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Dy(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function hp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function mp(e){return e==="dark"?By:[]}function Uy(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:l,...i}=e,o=ba({...t,colorSpace:l});return{palette:o,opacity:{...hp(o.mode),...n},overlays:r||mp(o.mode),...i}}function Wy(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Vy=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],by=e=>(t,n)=>{const r=e.rootSelector||":root",l=e.colorSchemeSelector;let i=l;if(l==="class"&&(i=".%s"),l==="data"&&(i="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(i=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return Vy(e.cssVarPrefix).forEach(s=>{o[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Hy(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function C(e,t,n){!e[t]&&n&&(e[t]=n)}function _r(e){return typeof e!="string"||!e.startsWith("hsl")?e:ap(e)}function vt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Cr(_r(e[t])))}function Qy(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ct=e=>{try{return e()}catch{}},Ky=(e="mui")=>cy(e);function Fo(e,t,n,r,l){if(!n)return;n=n===!0?{}:n;const i=l==="dark"?"dark":"light";if(!r){t[l]=Uy({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:o,...s}=Fs({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[l]={...n,palette:o,opacity:{...hp(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||mp(i)},s}function Yy(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:l=!1,cssVarPrefix:i="mui",nativeColor:o=!1,shouldSkipGeneratingVar:s=Wy,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...g}=e,m=Object.keys(n)[0],h=r||(n.light&&m!=="light"?"light":m),w=Ky(i),{[h]:v,light:S,dark:_,...p}=n,c={...p};let y=v;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(y=!0),!y)throw new Error(vn(21,h));let x;o&&(x="oklch");const T=Fo(x,c,y,g,h);S&&!c.light&&Fo(x,c,S,void 0,"light"),_&&!c.dark&&Fo(x,c,_,void 0,"dark");let k={defaultColorScheme:h,...T,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:u,getCssVar:w,colorSchemes:c,font:{...Cy(T.typography),...T.font},spacing:Qy(g.spacing)};Object.keys(k.colorSchemes).forEach(D=>{const f=k.colorSchemes[D].palette,z=L=>{const W=L.split("-"),we=W[1],j=W[2];return w(L,f[we][j])};f.mode==="light"&&(C(f.common,"background","#fff"),C(f.common,"onBackground","#000")),f.mode==="dark"&&(C(f.common,"background","#000"),C(f.common,"onBackground","#fff"));function N(L,W,we){if(x){let j;return L===tn&&(j=`transparent ${((1-we)*100).toFixed(0)}%`),L===H&&(j=`#000 ${(we*100).toFixed(0)}%`),L===Q&&(j=`#fff ${(we*100).toFixed(0)}%`),`color-mix(in ${x}, ${W}, ${j})`}return L(W,we)}if(Hy(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){C(f.Alert,"errorColor",N(H,f.error.light,.6)),C(f.Alert,"infoColor",N(H,f.info.light,.6)),C(f.Alert,"successColor",N(H,f.success.light,.6)),C(f.Alert,"warningColor",N(H,f.warning.light,.6)),C(f.Alert,"errorFilledBg",z("palette-error-main")),C(f.Alert,"infoFilledBg",z("palette-info-main")),C(f.Alert,"successFilledBg",z("palette-success-main")),C(f.Alert,"warningFilledBg",z("palette-warning-main")),C(f.Alert,"errorFilledColor",ct(()=>f.getContrastText(f.error.main))),C(f.Alert,"infoFilledColor",ct(()=>f.getContrastText(f.info.main))),C(f.Alert,"successFilledColor",ct(()=>f.getContrastText(f.success.main))),C(f.Alert,"warningFilledColor",ct(()=>f.getContrastText(f.warning.main))),C(f.Alert,"errorStandardBg",N(Q,f.error.light,.9)),C(f.Alert,"infoStandardBg",N(Q,f.info.light,.9)),C(f.Alert,"successStandardBg",N(Q,f.success.light,.9)),C(f.Alert,"warningStandardBg",N(Q,f.warning.light,.9)),C(f.Alert,"errorIconColor",z("palette-error-main")),C(f.Alert,"infoIconColor",z("palette-info-main")),C(f.Alert,"successIconColor",z("palette-success-main")),C(f.Alert,"warningIconColor",z("palette-warning-main")),C(f.AppBar,"defaultBg",z("palette-grey-100")),C(f.Avatar,"defaultBg",z("palette-grey-400")),C(f.Button,"inheritContainedBg",z("palette-grey-300")),C(f.Button,"inheritContainedHoverBg",z("palette-grey-A100")),C(f.Chip,"defaultBorder",z("palette-grey-400")),C(f.Chip,"defaultAvatarColor",z("palette-grey-700")),C(f.Chip,"defaultIconColor",z("palette-grey-700")),C(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),C(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),C(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),C(f.LinearProgress,"primaryBg",N(Q,f.primary.main,.62)),C(f.LinearProgress,"secondaryBg",N(Q,f.secondary.main,.62)),C(f.LinearProgress,"errorBg",N(Q,f.error.main,.62)),C(f.LinearProgress,"infoBg",N(Q,f.info.main,.62)),C(f.LinearProgress,"successBg",N(Q,f.success.main,.62)),C(f.LinearProgress,"warningBg",N(Q,f.warning.main,.62)),C(f.Skeleton,"bg",x?N(tn,f.text.primary,.11):`rgba(${z("palette-text-primaryChannel")} / 0.11)`),C(f.Slider,"primaryTrack",N(Q,f.primary.main,.62)),C(f.Slider,"secondaryTrack",N(Q,f.secondary.main,.62)),C(f.Slider,"errorTrack",N(Q,f.error.main,.62)),C(f.Slider,"infoTrack",N(Q,f.info.main,.62)),C(f.Slider,"successTrack",N(Q,f.success.main,.62)),C(f.Slider,"warningTrack",N(Q,f.warning.main,.62));const L=x?N(H,f.background.default,.6825):zl(f.background.default,.8);C(f.SnackbarContent,"bg",L),C(f.SnackbarContent,"color",ct(()=>x?Ms.text.primary:f.getContrastText(L))),C(f.SpeedDialAction,"fabHoverBg",zl(f.background.paper,.15)),C(f.StepConnector,"border",z("palette-grey-400")),C(f.StepContent,"border",z("palette-grey-400")),C(f.Switch,"defaultColor",z("palette-common-white")),C(f.Switch,"defaultDisabledColor",z("palette-grey-100")),C(f.Switch,"primaryDisabledColor",N(Q,f.primary.main,.62)),C(f.Switch,"secondaryDisabledColor",N(Q,f.secondary.main,.62)),C(f.Switch,"errorDisabledColor",N(Q,f.error.main,.62)),C(f.Switch,"infoDisabledColor",N(Q,f.info.main,.62)),C(f.Switch,"successDisabledColor",N(Q,f.success.main,.62)),C(f.Switch,"warningDisabledColor",N(Q,f.warning.main,.62)),C(f.TableCell,"border",N(Q,N(tn,f.divider,1),.88)),C(f.Tooltip,"bg",N(tn,f.grey[700],.92))}if(f.mode==="dark"){C(f.Alert,"errorColor",N(Q,f.error.light,.6)),C(f.Alert,"infoColor",N(Q,f.info.light,.6)),C(f.Alert,"successColor",N(Q,f.success.light,.6)),C(f.Alert,"warningColor",N(Q,f.warning.light,.6)),C(f.Alert,"errorFilledBg",z("palette-error-dark")),C(f.Alert,"infoFilledBg",z("palette-info-dark")),C(f.Alert,"successFilledBg",z("palette-success-dark")),C(f.Alert,"warningFilledBg",z("palette-warning-dark")),C(f.Alert,"errorFilledColor",ct(()=>f.getContrastText(f.error.dark))),C(f.Alert,"infoFilledColor",ct(()=>f.getContrastText(f.info.dark))),C(f.Alert,"successFilledColor",ct(()=>f.getContrastText(f.success.dark))),C(f.Alert,"warningFilledColor",ct(()=>f.getContrastText(f.warning.dark))),C(f.Alert,"errorStandardBg",N(H,f.error.light,.9)),C(f.Alert,"infoStandardBg",N(H,f.info.light,.9)),C(f.Alert,"successStandardBg",N(H,f.success.light,.9)),C(f.Alert,"warningStandardBg",N(H,f.warning.light,.9)),C(f.Alert,"errorIconColor",z("palette-error-main")),C(f.Alert,"infoIconColor",z("palette-info-main")),C(f.Alert,"successIconColor",z("palette-success-main")),C(f.Alert,"warningIconColor",z("palette-warning-main")),C(f.AppBar,"defaultBg",z("palette-grey-900")),C(f.AppBar,"darkBg",z("palette-background-paper")),C(f.AppBar,"darkColor",z("palette-text-primary")),C(f.Avatar,"defaultBg",z("palette-grey-600")),C(f.Button,"inheritContainedBg",z("palette-grey-800")),C(f.Button,"inheritContainedHoverBg",z("palette-grey-700")),C(f.Chip,"defaultBorder",z("palette-grey-700")),C(f.Chip,"defaultAvatarColor",z("palette-grey-300")),C(f.Chip,"defaultIconColor",z("palette-grey-300")),C(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),C(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),C(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),C(f.LinearProgress,"primaryBg",N(H,f.primary.main,.5)),C(f.LinearProgress,"secondaryBg",N(H,f.secondary.main,.5)),C(f.LinearProgress,"errorBg",N(H,f.error.main,.5)),C(f.LinearProgress,"infoBg",N(H,f.info.main,.5)),C(f.LinearProgress,"successBg",N(H,f.success.main,.5)),C(f.LinearProgress,"warningBg",N(H,f.warning.main,.5)),C(f.Skeleton,"bg",x?N(tn,f.text.primary,.13):`rgba(${z("palette-text-primaryChannel")} / 0.13)`),C(f.Slider,"primaryTrack",N(H,f.primary.main,.5)),C(f.Slider,"secondaryTrack",N(H,f.secondary.main,.5)),C(f.Slider,"errorTrack",N(H,f.error.main,.5)),C(f.Slider,"infoTrack",N(H,f.info.main,.5)),C(f.Slider,"successTrack",N(H,f.success.main,.5)),C(f.Slider,"warningTrack",N(H,f.warning.main,.5));const L=x?N(Q,f.background.default,.985):zl(f.background.default,.98);C(f.SnackbarContent,"bg",L),C(f.SnackbarContent,"color",ct(()=>x?fp.text.primary:f.getContrastText(L))),C(f.SpeedDialAction,"fabHoverBg",zl(f.background.paper,.15)),C(f.StepConnector,"border",z("palette-grey-600")),C(f.StepContent,"border",z("palette-grey-600")),C(f.Switch,"defaultColor",z("palette-grey-300")),C(f.Switch,"defaultDisabledColor",z("palette-grey-600")),C(f.Switch,"primaryDisabledColor",N(H,f.primary.main,.55)),C(f.Switch,"secondaryDisabledColor",N(H,f.secondary.main,.55)),C(f.Switch,"errorDisabledColor",N(H,f.error.main,.55)),C(f.Switch,"infoDisabledColor",N(H,f.info.main,.55)),C(f.Switch,"successDisabledColor",N(H,f.success.main,.55)),C(f.Switch,"warningDisabledColor",N(H,f.warning.main,.55)),C(f.TableCell,"border",N(H,N(tn,f.divider,1),.68)),C(f.Tooltip,"bg",N(tn,f.grey[700],.92))}vt(f.background,"default"),vt(f.background,"paper"),vt(f.common,"background"),vt(f.common,"onBackground"),vt(f,"divider"),Object.keys(f).forEach(L=>{const W=f[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&C(f[L],"mainChannel",Cr(_r(W.main))),W.light&&C(f[L],"lightChannel",Cr(_r(W.light))),W.dark&&C(f[L],"darkChannel",Cr(_r(W.dark))),W.contrastText&&C(f[L],"contrastTextChannel",Cr(_r(W.contrastText))),L==="text"&&(vt(f[L],"primary"),vt(f[L],"secondary")),L==="action"&&(W.active&&vt(f[L],"active"),W.selected&&vt(f[L],"selected")))})}),k=t.reduce((D,f)=>Be(D,f),k);const E={prefix:i,disableCssColorScheme:l,shouldSkipGeneratingVar:s,getSelector:by(k),enableContrastVars:o},{vars:$,generateThemeVars:M,generateStyleSheets:A}=py(k,E);return k.vars=$,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([D,f])=>{k[D]=f}),k.generateThemeVars=M,k.generateStyleSheets=A,k.generateSpacing=function(){return rp(g.spacing,Fa(this))},k.getColorSchemeSelector=hy(a),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=s,k.unstable_sxConfig={...qi,...g==null?void 0:g.unstable_sxConfig},k.unstable_sx=function(f){return tr({sx:f,theme:this})},k.toRuntimeSource=pp,k}function Cc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ba({...n===!0?{}:n.palette,mode:t})})}function Gy(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:l=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...o}=e,s=i||"light",a=l==null?void 0:l[s],u={...l,...n?{[s]:{...typeof a!="boolean"&&a,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Fs(e,...t);let g=n;"palette"in e||u[s]&&(u[s]!==!0?g=u[s].palette:s==="dark"&&(g={mode:"dark"}));const m=Fs({...e,palette:g},...t);return m.defaultColorScheme=s,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Cc(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Cc(m,"light",u.light)),m}return!n&&!("light"in u)&&s==="light"&&(u.light=!0),Yy({...o,colorSchemes:u,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Xy=Gy(),Zy="$$material";function Jy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qy=e=>Jy(e)&&e!=="classes",ev=X0({themeId:Zy,defaultTheme:Xy,rootShouldForwardProp:qy}),tv=uy;function nv(e){return ay(e)}function rv(e){return ip("MuiSvgIcon",e)}Q0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lv=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${er(t)}`,`fontSize${er(n)}`]};return Zm(l,rv,r)},iv=ev("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${er(n.color)}`],t[`fontSize${er(n.fontSize)}`]]}})(tv(({theme:e})=>{var t,n,r,l,i,o,s,a,u,g,m,h,w,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((a=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:a.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:g.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var _,p;return{props:{color:S},style:{color:(p=(_=(e.vars??e).palette)==null?void 0:_[S])==null?void 0:p.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(v=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ds=I.forwardRef(function(t,n){const r=nv({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:s="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:g=!1,titleAccess:m,viewBox:h="0 0 24 24",...w}=r,v=I.isValidElement(l)&&l.type==="svg",S={...r,color:o,component:s,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:h,hasSvgAsChild:v},_={};g||(_.viewBox=h);const p=lv(S);return d.jsxs(iv,{as:s,className:Bd(p.root,i),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,..._,...w,...v&&l.props,ownerState:S,children:[v?l.props.children:l,m?d.jsx("title",{children:m}):null]})});Ds.muiName="SvgIcon";function tt(e,t){function n(r,l){return d.jsx(Ds,{"data-testid":void 0,ref:l,...r,children:e})}return n.muiName=Ds.muiName,I.memo(I.forwardRef(n))}const gp=tt(d.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-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),ov=tt(d.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"})),sv=tt(d.jsx("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"})),yp=tt(d.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),vp=tt(d.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.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),av=tt(d.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),uv=tt(d.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),cv=tt(d.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 11-2.5-1.5L14 13V5h5z"})),fv=tt(d.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}));function dv(){const[e,t]=I.useState({postsCount:0,pagesCount:0,commentsCount:0,usersCount:0,recentPosts:[],recentComments:[],loading:!0});I.useEffect(()=>{(async()=>{var i,o,s,a;try{const[u,g,m,h]=await Promise.all([fetch(`${((i=window.helixData)==null?void 0:i.restUrl)||"/wp-json/wp/v2/"}posts?per_page=5`),fetch(`${((o=window.helixData)==null?void 0:o.restUrl)||"/wp-json/wp/v2/"}pages?per_page=5`),fetch(`${((s=window.helixData)==null?void 0:s.restUrl)||"/wp-json/wp/v2/"}comments?per_page=5`),fetch(`${((a=window.helixData)==null?void 0:a.restUrl)||"/wp-json/wp/v2/"}users?per_page=5`)]),[w,v,S,_]=await Promise.all([u.json(),g.json(),m.json(),h.json()]);t({postsCount:u.headers.get("X-WP-Total")||w.length,pagesCount:g.headers.get("X-WP-Total")||v.length,commentsCount:m.headers.get("X-WP-Total")||S.length,usersCount:h.headers.get("X-WP-Total")||_.length,recentPosts:w.slice(0,5),recentComments:S.slice(0,5),loading:!1})}catch{t(g=>({...g,loading:!1}))}})()},[]);const n=({title:l,count:i,icon:o,color:s,trend:a})=>d.jsxs("div",{className:`helix-stats-card helix-stats-card--${s}`,children:[d.jsx("div",{className:"helix-stats-card__icon",children:d.jsx(o,{})}),d.jsxs("div",{className:"helix-stats-card__content",children:[d.jsxs("div",{className:"helix-stats-card__header",children:[d.jsx("h3",{className:"helix-stats-card__count",children:i}),a&&d.jsxs("div",{className:"helix-stats-card__trend",children:[d.jsx(fv,{className:"helix-trend-icon"}),d.jsx("span",{children:a})]})]}),d.jsx("p",{className:"helix-stats-card__title",children:l})]})]}),r=l=>new Date(l).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return e.loading?d.jsx("div",{className:"helix-settings-page",children:d.jsxs("div",{className:"helix-loading",children:[d.jsx("div",{className:"helix-spinner"}),d.jsx("p",{children:"Loading dashboard..."})]})}):d.jsxs("div",{className:"helix-dashboard",children:[d.jsxs("div",{className:"helix-dashboard__header",children:[d.jsx("h1",{children:"Welcome to Helix"}),d.jsx("p",{children:"Your modern WordPress admin experience"})]}),d.jsxs("div",{className:"helix-dashboard__stats",children:[d.jsx(n,{title:"Posts",count:e.postsCount,icon:gp,color:"blue",trend:"+12%"}),d.jsx(n,{title:"Pages",count:e.pagesCount,icon:ov,color:"green",trend:"+5%"}),d.jsx(n,{title:"Comments",count:e.commentsCount,icon:sv,color:"orange",trend:"+28%"}),d.jsx(n,{title:"Users",count:e.usersCount,icon:yp,color:"purple",trend:"+3%"})]}),d.jsxs("div",{className:"helix-dashboard__content",children:[d.jsxs("div",{className:"helix-widget",children:[d.jsxs("div",{className:"helix-widget__header",children:[d.jsx("h2",{children:"Recent Posts"}),d.jsx("a",{href:"/wp-admin/edit.php",className:"helix-widget__link",children:"View All"})]}),d.jsx("div",{className:"helix-widget__content",children:e.recentPosts.length>0?d.jsx("ul",{className:"helix-posts-list",children:e.recentPosts.map(l=>d.jsxs("li",{className:"helix-posts-list__item",children:[d.jsxs("div",{className:"helix-posts-list__content",children:[d.jsx("h3",{className:"helix-posts-list__title",children:d.jsx("a",{href:`/wp-admin/post.php?post=${l.id}&action=edit`,children:l.title.rendered||"Untitled"})}),d.jsx("p",{className:"helix-posts-list__date",children:r(l.date)})]}),d.jsx("div",{className:"helix-posts-list__status",children:d.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):d.jsxs("p",{className:"helix-widget__empty",children:["No posts yet."," ",d.jsx("a",{href:"/wp-admin/post-new.php",children:"Create your first post!"})]})})]}),d.jsxs("div",{className:"helix-widget",children:[d.jsxs("div",{className:"helix-widget__header",children:[d.jsx("h2",{children:"Recent Comments"}),d.jsx("a",{href:"/wp-admin/edit-comments.php",className:"helix-widget__link",children:"View All"})]}),d.jsx("div",{className:"helix-widget__content",children:e.recentComments.length>0?d.jsx("ul",{className:"helix-comments-list",children:e.recentComments.map(l=>d.jsxs("li",{className:"helix-comments-list__item",children:[d.jsxs("div",{className:"helix-comments-list__content",children:[d.jsx("h4",{className:"helix-comments-list__author",children:l.author_name}),d.jsxs("p",{className:"helix-comments-list__excerpt",children:[l.content.rendered.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),d.jsx("p",{className:"helix-comments-list__date",children:r(l.date)})]}),d.jsx("div",{className:"helix-comments-list__status",children:d.jsx("span",{className:`helix-status helix-status--${l.status}`,children:l.status})})]},l.id))}):d.jsx("p",{className:"helix-widget__empty",children:"No comments yet."})})]}),d.jsxs("div",{className:"helix-widget",children:[d.jsx("div",{className:"helix-widget__header",children:d.jsx("h2",{children:"Quick Actions"})}),d.jsx("div",{className:"helix-widget__content",children:d.jsxs("div",{className:"helix-quick-actions",children:[d.jsxs("a",{href:"/wp-admin/post-new.php",className:"helix-quick-action",children:[d.jsx("span",{className:"helix-quick-action__icon",children:d.jsx(vp,{})}),d.jsx("span",{className:"helix-quick-action__text",children:"Write a Post"})]}),d.jsxs("a",{href:"/wp-admin/post-new.php?post_type=page",className:"helix-quick-action",children:[d.jsx("span",{className:"helix-quick-action__icon",children:d.jsx(av,{})}),d.jsx("span",{className:"helix-quick-action__text",children:"Create a Page"})]}),d.jsxs("a",{href:"/wp-admin/upload.php",className:"helix-quick-action",children:[d.jsx("span",{className:"helix-quick-action__icon",children:d.jsx(uv,{})}),d.jsx("span",{className:"helix-quick-action__text",children:"Upload Media"})]}),d.jsxs("a",{href:"/wp-admin/edit-comments.php",className:"helix-quick-action",children:[d.jsx("span",{className:"helix-quick-action__icon",children:d.jsx(cv,{})}),d.jsx("span",{className:"helix-quick-action__text",children:"Moderate Comments"})]})]})})]}),d.jsxs("div",{className:"helix-widget",children:[d.jsx("div",{className:"helix-widget__header",children:d.jsx("h2",{children:"WordPress News"})}),d.jsxs("div",{className:"helix-widget__content",children:[d.jsx("p",{children:"Stay updated with the latest WordPress news and updates."}),d.jsx("div",{className:"helix-news-placeholder",children:d.jsxs("div",{className:"helix-news-item",children:[d.jsx("h4",{children:"WordPress 6.4 “Shirley” Released"}),d.jsx("p",{children:"The latest version includes new features and improvements..."}),d.jsx("a",{href:"https://wordpress.org/news/",target:"_blank",rel:"noopener noreferrer",children:"Read more"})]})})]})]})]})]})}const pv=()=>{var e;return((e=window.helixData)==null?void 0:e.restUrl)||"/wp-json/helix/v1/"},hv=()=>{var e;return((e=window.helixData)==null?void 0:e.nonce)||""},xp=async(e,t={})=>{const n=`${pv()}${e}`,r={headers:{"Content-Type":"application/json","X-WP-Nonce":hv()},credentials:"include"},l={...r,...t,headers:{...r.headers,...t.headers}};try{const i=await fetch(n,l);if(!i.ok){const o=await i.json().catch(()=>({}));throw new Error(o.message||`HTTP ${i.status}: ${i.statusText}`)}return await i.json()}catch(i){throw i}},mv=async()=>xp("settings"),gv=async e=>xp("settings",{method:"POST",body:JSON.stringify(e)}),yv=()=>{const[e,t]=I.useState({}),[n,r]=I.useState({}),[l,i]=I.useState(!0),[o,s]=I.useState(!1),[a,u]=I.useState(null),[g,m]=I.useState(!1),h=c=>c&&typeof c=="object"&&"value"in c?c.value:c,w=I.useCallback(async()=>{try{i(!0),u(null);const c=await mv(),y={};Object.keys(c).forEach(x=>{Object.keys(c[x]).forEach(T=>{const k=c[x][T];k.options&&Array.isArray(k.options)?y[T]=k:y[T]=k.value})}),t(y),r(y),m(!1)}catch(c){u(c.message)}finally{i(!1)}},[]),v=I.useCallback((c,y)=>{t(x=>{let T;x[c]&&typeof x[c]=="object"&&"options"in x[c]?T={...x,[c]:{...x[c],value:y}}:T={...x,[c]:y};const k=Object.keys(T).some(E=>h(T[E])!==h(n[E]));return m(k),T})},[n]),S=I.useCallback(async()=>{try{s(!0),u(null);const c={};if(Object.keys(e).forEach(x=>{const T=h(e[x]),k=h(n[x]);T!==k&&(c[x]=T)}),Object.keys(c).length===0)return{success:!0,message:"No changes to save"};const y=await gv(c);return r(e),m(!1),{success:!0,message:"Settings saved successfully",updated:y.updated,errors:y.errors}}catch(c){return u(c.message),{success:!1,message:c.message}}finally{s(!1)}},[e,n]),_=I.useCallback(()=>{t(n),m(!1),u(null)},[n]),p=I.useCallback(c=>{const y=h(n[c]);v(c,y)},[n,v]);return I.useEffect(()=>{w()},[w]),I.useEffect(()=>{const c=y=>{if(g)return y.preventDefault(),y.returnValue="You have unsaved changes. Are you sure you want to leave?",y.returnValue};return window.addEventListener("beforeunload",c),()=>window.removeEventListener("beforeunload",c)},[g]),{settings:e,loading:l,saving:o,error:a,hasUnsavedChanges:g,updateSetting:v,saveSettings:S,resetSettings:_,resetSetting:p,loadSettings:w}},vv=tt(d.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),xv=tt(d.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"})),wv=tt(d.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),Sv=({activeTab:e,onTabChange:t,hasUnsavedChanges:n})=>{const r=[{id:"site",label:"Site Information",icon:vv},{id:"content",label:"Content & Reading",icon:gp},{id:"writing",label:"Writing & Publishing",icon:vp},{id:"media",label:"Media & Assets",icon:xv},{id:"users",label:"Users & Membership",icon:yp},{id:"helix",label:"Helix Settings",icon:wv}];return d.jsx("div",{className:"helix-settings-tabs",children:d.jsx("nav",{className:"helix-tabs-nav",role:"tablist",children:r.map(l=>d.jsxs("button",{type:"button",role:"tab","aria-selected":e===l.id,"aria-controls":`${l.id}-panel`,className:`helix-tab ${e===l.id?"active":""}`,onClick:()=>t(l.id),children:[d.jsx("span",{className:"helix-tab-icon",children:d.jsx(l.icon,{})}),d.jsx("span",{className:"helix-tab-label",children:l.label}),n&&d.jsx("span",{className:"helix-tab-indicator",title:"Unsaved changes",children:"●"})]},l.id))})})},kv=({onSave:e,onReset:t,saving:n=!1,hasUnsavedChanges:r=!1,disabled:l=!1})=>d.jsxs("div",{className:"helix-save-buttons",children:[d.jsx("button",{type:"button",onClick:e,disabled:l||n||!r,className:`helix-btn helix-btn-primary ${n?"saving":""}`,children:n?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"helix-spinner"}),"Saving..."]}):"Save Changes"}),r&&!n&&d.jsx("button",{type:"button",onClick:t,className:"helix-btn helix-btn-secondary",children:"Reset Changes"}),!r&&!n&&d.jsx("span",{className:"helix-save-status",children:"✓ All changes saved"})]}),_c=({type:e="info",message:t,onClose:n,autoClose:r=!0,duration:l=5e3})=>{const[i,o]=I.useState(!0);if(I.useEffect(()=>{if(r&&l>0){const a=setTimeout(()=>{o(!1),setTimeout(()=>n==null?void 0:n(),300)},l);return()=>clearTimeout(a)}},[r,l,n]),!i)return null;const s=()=>{switch(e){case"success":return"✅";case"error":return"❌";case"warning":return"⚠️";default:return"ℹ️"}};return d.jsx("div",{className:`helix-notification helix-notification-${e} ${i?"visible":""}`,children:d.jsxs("div",{className:"helix-notification-content",children:[d.jsx("span",{className:"helix-notification-icon",children:s()}),d.jsx("span",{className:"helix-notification-message",children:t}),n&&d.jsx("button",{type:"button",onClick:()=>{o(!1),setTimeout(()=>n(),300)},className:"helix-notification-close","aria-label":"Close notification",children:"×"})]})})},sr=({title:e,description:t,children:n,className:r=""})=>d.jsxs("div",{className:`helix-settings-section ${r}`,children:[e&&d.jsxs("div",{className:"helix-settings-section-header",children:[d.jsx("h3",{className:"helix-settings-section-title",children:e}),t&&d.jsx("p",{className:"helix-settings-section-description",children:t})]}),d.jsx("div",{className:"helix-settings-section-content",children:n})]}),oo=({label:e,description:t,error:n,required:r=!1,children:l,className:i=""})=>d.jsxs("div",{className:`helix-form-field ${i}`,children:[e&&d.jsxs("label",{className:"helix-form-label",children:[e,r&&d.jsx("span",{className:"helix-required",children:"*"})]}),d.jsx("div",{className:"helix-form-control",children:l}),t&&d.jsx("p",{className:"helix-form-description",children:t}),n&&d.jsx("p",{className:"helix-form-error",children:n})]}),ln=({label:e,description:t,value:n,onChange:r,placeholder:l="",type:i="text",required:o=!1,disabled:s=!1,error:a=null,className:u="",...g})=>{const m=h=>{r(h.target.value)};return d.jsx(oo,{label:e,description:t,error:a,required:o,className:u,children:d.jsx("input",{type:i,value:n||"",onChange:m,placeholder:l,required:o,disabled:s,className:"helix-text-input",...g})})},Qt=({label:e,description:t,value:n,onChange:r,options:l=[],required:i=!1,disabled:o=!1,error:s=null,className:a="",placeholder:u="Select an option...",...g})=>{const m=h=>{r(h.target.value)};return d.jsx(oo,{label:e,description:t,error:s,required:i,className:a,children:d.jsxs("select",{value:n||"",onChange:m,required:i,disabled:o,className:"helix-select-input",...g,children:[u&&d.jsx("option",{value:"",disabled:!0,children:u}),l.map(h=>d.jsx("option",{value:h.value,children:h.label},h.value))]})})},Ec=({settings:e,updateSetting:t})=>{var n,r,l,i;return d.jsx(sr,{title:"Site Information",description:"Basic information about your WordPress site",children:d.jsxs("div",{className:"helix-settings-grid",children:[d.jsx(ln,{label:"Site Title",description:"In a few words, explain what this site is about.",value:e.siteTitle,onChange:o=>t("siteTitle",o),placeholder:"My Awesome Site",required:!0}),d.jsx(ln,{label:"Tagline",description:"A brief description of your site, usually displayed under the title.",value:e.tagline,onChange:o=>t("tagline",o),placeholder:"Just another WordPress site"}),d.jsx(ln,{label:"WordPress Address (URL)",description:"The address of your WordPress core files.",value:e.siteUrl,onChange:o=>t("siteUrl",o),type:"url",placeholder:"https://example.com"}),d.jsx(ln,{label:"Site Address (URL)",description:"The address you want people to type in their browser to reach your website.",value:e.homeUrl,onChange:o=>t("homeUrl",o),type:"url",placeholder:"https://example.com"}),d.jsx(ln,{label:"Administration Email Address",description:"This address is used for admin purposes, like new user notification.",value:e.adminEmail,onChange:o=>t("adminEmail",o),type:"email",placeholder:"admin@example.com",required:!0}),d.jsx(Qt,{label:"Site Language",description:"The language for your site interface.",value:((n=e.language)==null?void 0:n.value)||e.language||"",onChange:o=>t("language",o),options:((r=e.language)==null?void 0:r.options)||[],placeholder:"Select a language..."}),d.jsx(Qt,{label:"Timezone",description:"Choose either a city in the same timezone as you or a UTC timezone offset.",value:((l=e.timezone)==null?void 0:l.value)||e.timezone||"",onChange:o=>t("timezone",o),options:((i=e.timezone)==null?void 0:i.options)||[],placeholder:"Select a timezone..."})]})})},He=({label:e,description:t,value:n,onChange:r,min:l=null,max:i=null,step:o=1,required:s=!1,disabled:a=!1,error:u=null,className:g="",...m})=>{const h=w=>{const v=w.target.value;r(v===""?"":Number(v))};return d.jsx(oo,{label:e,description:t,error:u,required:s,className:g,children:d.jsx("input",{type:"number",value:n||"",onChange:h,min:l,max:i,step:o,required:s,disabled:a,className:"helix-number-input",...m})})},cl=({label:e,description:t,value:n,onChange:r,required:l=!1,disabled:i=!1,error:o=null,className:s="",id:a=`toggle-${Math.random().toString(36).substr(2,9)}`,...u})=>{const g=()=>{i||r(!n)};return d.jsx(oo,{description:t,error:o,required:l,className:`helix-toggle-field ${s}`,children:d.jsxs("div",{className:"helix-toggle-wrapper",children:[e&&d.jsx("label",{htmlFor:a,className:`helix-toggle-label ${i?"helix-toggle-label-disabled":""}`,children:e}),d.jsx("button",{id:a,type:"button",role:"switch","aria-checked":!!n,onClick:g,disabled:i,className:`helix-toggle-switch ${n?"helix-toggle-switch-on":"helix-toggle-switch-off"} ${i?"helix-toggle-switch-disabled":""}`,...u,children:d.jsx("span",{className:`helix-toggle-knob ${n?"helix-toggle-knob-on":"helix-toggle-knob-off"}`})})]})})},Cv=({settings:e,updateSetting:t})=>{const n=[{value:"posts",label:"Your latest posts"},{value:"page",label:"A static page"}],r=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:2,label:"Tuesday"},{value:3,label:"Wednesday"},{value:4,label:"Thursday"},{value:5,label:"Friday"},{value:6,label:"Saturday"}];return d.jsx(sr,{title:"Content & Reading",description:"Settings that affect how your content is displayed",children:d.jsxs("div",{className:"helix-settings-grid",children:[d.jsx(Qt,{label:"Your homepage displays",description:"What to show on the front page of your site.",value:e.showOnFront,onChange:l=>t("showOnFront",l),options:n}),e.showOnFront==="page"&&d.jsxs(d.Fragment,{children:[d.jsx(He,{label:"Homepage",description:"The page to show on the front page (Page ID).",value:e.pageOnFront,onChange:l=>t("pageOnFront",l),min:0}),d.jsx(He,{label:"Posts page",description:"The page to show posts (Page ID).",value:e.pageForPosts,onChange:l=>t("pageForPosts",l),min:0})]}),d.jsx(He,{label:"Blog pages show at most",description:"Number of posts to show per page.",value:e.postsPerPage,onChange:l=>t("postsPerPage",l),min:1,max:100}),d.jsx(cl,{label:"Discourage search engines from indexing this site",description:"This will discourage, but not prevent, search engines from indexing this site.",value:!e.blogPublic,onChange:l=>t("blogPublic",!l)}),d.jsx(ln,{label:"Date Format",description:"Format for displaying dates throughout your site.",value:e.dateFormat,onChange:l=>t("dateFormat",l),placeholder:"F j, Y"}),d.jsx(ln,{label:"Time Format",description:"Format for displaying times throughout your site.",value:e.timeFormat,onChange:l=>t("timeFormat",l),placeholder:"g:i a"}),d.jsx(Qt,{label:"Week Starts On",description:"The day of the week the calendar should start on.",value:e.startOfWeek,onChange:l=>t("startOfWeek",parseInt(l)),options:r})]})})},_v=({settings:e,updateSetting:t})=>{const n=[{value:"standard",label:"Standard"},{value:"aside",label:"Aside"},{value:"gallery",label:"Gallery"},{value:"image",label:"Image"},{value:"link",label:"Link"},{value:"quote",label:"Quote"},{value:"status",label:"Status"},{value:"video",label:"Video"},{value:"audio",label:"Audio"},{value:"chat",label:"Chat"}],r=[{value:"open",label:"Open"},{value:"closed",label:"Closed"}];return d.jsx(sr,{title:"Writing & Publishing",description:"Settings for content creation and publishing",children:d.jsxs("div",{className:"helix-settings-grid",children:[d.jsx(He,{label:"Default Post Category",description:"The default category for new posts (Category ID).",value:e.defaultCategory,onChange:l=>t("defaultCategory",l),min:1}),d.jsx(Qt,{label:"Default Post Format",description:"The default format for new posts.",value:e.defaultPostFormat,onChange:l=>t("defaultPostFormat",l),options:n}),d.jsx(cl,{label:"Convert emoticons like :-) and :-P to graphics on display",description:"Transform text emoticons into graphical representations.",value:e.useSmilies,onChange:l=>t("useSmilies",l)}),d.jsx(Qt,{label:"Default comment status",description:"Allow people to submit comments on new posts.",value:e.defaultCommentStatus,onChange:l=>t("defaultCommentStatus",l),options:r}),d.jsx(Qt,{label:"Default ping status",description:"Allow link notifications from other blogs (pingbacks and trackbacks) on new posts.",value:e.defaultPingStatus,onChange:l=>t("defaultPingStatus",l),options:r})]})})},Ev=({settings:e,updateSetting:t})=>d.jsx(sr,{title:"Media & Assets",description:"Settings for media files, images, and site branding",children:d.jsxs("div",{className:"helix-settings-grid",children:[d.jsx(He,{label:"Site Logo",description:"The site logo (Media ID). Upload a logo in Media Library and enter its ID here.",value:e.siteLogo,onChange:n=>t("siteLogo",n),min:0}),d.jsx(He,{label:"Site Icon (Favicon)",description:"The site icon/favicon (Media ID). Upload an icon in Media Library and enter its ID here.",value:e.siteIcon,onChange:n=>t("siteIcon",n),min:0}),d.jsxs("div",{className:"helix-settings-subsection",children:[d.jsx("h4",{children:"Image Sizes"}),d.jsx(He,{label:"Thumbnail Width",description:"Maximum width of thumbnail images in pixels.",value:e.thumbnailSizeW,onChange:n=>t("thumbnailSizeW",n),min:0,max:2e3}),d.jsx(He,{label:"Thumbnail Height",description:"Maximum height of thumbnail images in pixels.",value:e.thumbnailSizeH,onChange:n=>t("thumbnailSizeH",n),min:0,max:2e3}),d.jsx(He,{label:"Medium Width",description:"Maximum width of medium-sized images in pixels.",value:e.mediumSizeW,onChange:n=>t("mediumSizeW",n),min:0,max:2e3}),d.jsx(He,{label:"Medium Height",description:"Maximum height of medium-sized images in pixels.",value:e.mediumSizeH,onChange:n=>t("mediumSizeH",n),min:0,max:2e3}),d.jsx(He,{label:"Large Width",description:"Maximum width of large-sized images in pixels.",value:e.largeSizeW,onChange:n=>t("largeSizeW",n),min:0,max:4e3}),d.jsx(He,{label:"Large Height",description:"Maximum height of large-sized images in pixels.",value:e.largeSizeH,onChange:n=>t("largeSizeH",n),min:0,max:4e3})]}),d.jsx(cl,{label:"Organize my uploads into month- and year-based folders",description:"Organize uploaded files into date-based folder structure.",value:e.uploadsUseYearmonthFolders,onChange:n=>t("uploadsUseYearmonthFolders",n)})]})}),Tv=({settings:e,updateSetting:t})=>{const n=[{value:"subscriber",label:"Subscriber"},{value:"contributor",label:"Contributor"},{value:"author",label:"Author"},{value:"editor",label:"Editor"},{value:"administrator",label:"Administrator"}];return d.jsx(sr,{title:"Users & Membership",description:"Settings for user registration and default permissions",children:d.jsxs("div",{className:"helix-settings-grid",children:[d.jsx(cl,{label:"Anyone can register",description:"Allow anyone to register as a user on your site.",value:e.usersCanRegister,onChange:r=>t("usersCanRegister",r)}),d.jsx(Qt,{label:"New User Default Role",description:"The default role assigned to new users when they register.",value:e.defaultRole,onChange:r=>t("defaultRole",r),options:n})]})})},Pv=({settings:e,updateSetting:t})=>d.jsx(sr,{title:"Helix Settings",description:"Settings specific to the Helix plugin",children:d.jsx("div",{className:"helix-settings-grid",children:d.jsx(cl,{label:"Use Default WordPress Admin",description:"Switch back to the default WordPress admin interface instead of using Helix.",value:e.helixUseDefaultAdmin,onChange:n=>t("helixUseDefaultAdmin",n)})})});function Nv(){const{settings:e,loading:t,saving:n,error:r,hasUnsavedChanges:l,updateSetting:i,saveSettings:o,resetSettings:s}=yv(),[a,u]=I.useState("site"),[g,m]=I.useState(null),h=async()=>{const _=await o();_.success?m({type:"success",message:_.message||"Settings saved successfully!"}):m({type:"error",message:_.message||"Failed to save settings. Please try again."})},w=()=>{s(),m({type:"info",message:"Changes have been reset to their original values."})},v=_=>{l&&!window.confirm("You have unsaved changes. Are you sure you want to switch tabs? Your changes will be lost.")||u(_)},S=()=>{const _={settings:e,updateSetting:i};switch(a){case"site":return d.jsx(Ec,{..._});case"content":return d.jsx(Cv,{..._});case"writing":return d.jsx(_v,{..._});case"media":return d.jsx(Ev,{..._});case"users":return d.jsx(Tv,{..._});case"helix":return d.jsx(Pv,{..._});default:return d.jsx(Ec,{..._})}};return t?d.jsx("div",{className:"helix-settings-page",children:d.jsxs("div",{className:"helix-loading",children:[d.jsx("div",{className:"helix-spinner"}),d.jsx("p",{children:"Loading settings..."})]})}):d.jsxs("div",{className:"helix-settings-page",children:[d.jsxs("div",{className:"helix-settings-header",children:[d.jsx("h1",{children:"Settings"}),d.jsx("p",{children:"Manage your WordPress site configuration"})]}),r&&d.jsx(_c,{type:"error",message:r,onClose:()=>{},autoClose:!1}),g&&d.jsx(_c,{type:g.type,message:g.message,onClose:()=>m(null)}),d.jsx(Sv,{activeTab:a,onTabChange:v,hasUnsavedChanges:l}),d.jsx("div",{className:"helix-settings-content",children:d.jsx("div",{id:`${a}-panel`,role:"tabpanel","aria-labelledby":`${a}-tab`,className:"helix-tab-panel",children:S()})}),d.jsx("div",{className:"helix-settings-footer",children:d.jsx(kv,{onSave:h,onReset:w,saving:n,hasUnsavedChanges:l})})]})}function jv(){return d.jsx(dv,{})}function $v(){return d.jsxs("div",{className:"helix-page",children:[d.jsx("h1",{children:"Posts Management"}),d.jsx("p",{children:"Posts management interface will be implemented here."})]})}function zv(){return d.jsxs("div",{className:"helix-page",children:[d.jsx("h1",{children:"Users Management"}),d.jsx("p",{children:"Users management interface will be implemented here."})]})}document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("helix-root");e&&kr(e).render(d.jsx(jv,{}));const t=document.getElementById("helix-settings-root");t&&kr(t).render(d.jsx(Nv,{}));const n=document.getElementById("helix-posts-root");n&&kr(n).render(d.jsx($v,{}));const r=document.getElementById("helix-users-root");r&&kr(r).render(d.jsx(zv,{}))}); diff --git a/src/components/ToggleInput.jsx b/src/components/ToggleInput.jsx index f184138..3db2c25 100644 --- a/src/components/ToggleInput.jsx +++ b/src/components/ToggleInput.jsx @@ -2,7 +2,7 @@ import React from 'react'; import FormField from './FormField'; /** - * Toggle/Checkbox input component + * Toggle switch component with proper accessibility * @param root0 * @param root0.label * @param root0.description @@ -12,6 +12,7 @@ import FormField from './FormField'; * @param root0.disabled * @param root0.error * @param root0.className + * @param root0.id */ const ToggleInput = ( { label, @@ -22,10 +23,14 @@ const ToggleInput = ( { disabled = false, error = null, className = '', + id = `toggle-${ Math.random().toString( 36 ).substr( 2, 9 ) }`, ...props } ) => { - const handleChange = ( event ) => { - onChange( event.target.checked ); + const handleToggle = () => { + if ( disabled ) { + return; + } + onChange( ! value ); }; return ( @@ -35,19 +40,41 @@ const ToggleInput = ( { required={ required } className={ `helix-toggle-field ${ className }` } > -