(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".api-render-page{display:flex!important;flex-direction:column!important;height:100%!important;background:#f7f3e8!important;padding:16px!important;box-sizing:border-box!important;width:100%!important;overflow-x:hidden!important}.event-status-bar{display:flex;align-items:center;gap:12px;padding:10px 16px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:8px;margin-bottom:12px;color:#fff;font-size:13px}.event-code{font-weight:600}.event-type{padding:2px 10px;border-radius:12px;font-size:11px;font-weight:500;text-transform:uppercase}.event-type.tool_event_start{background:#ffc1074d;color:#ffc107}.event-type.tool_event_end{background:#4caf504d;color:#4caf50}.event-type.tool_event_process{background:#2196f34d;color:#2196f3}.update-params{font-family:monospace;background:#ffffff26;padding:2px 8px;border-radius:4px;font-size:11px}.store-info-panel{background:#fff;border-radius:8px;box-shadow:0 1px 3px #00000014;margin-bottom:12px;overflow:hidden}.store-info-panel .panel-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#fafafa;border-bottom:1px solid #eee}.store-info-panel .panel-header h3{margin:0;font-size:15px;color:#333;font-weight:600}.store-id{font-size:12px;color:#999;font-family:monospace}.store-info-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;padding:16px}.info-row{display:flex;gap:8px;font-size:13px}.info-label{color:#888;white-space:nowrap}.info-value{color:#333;font-weight:500}.info-value.store-name{font-size:18px;font-weight:600;color:#c41e3a}.detail-grid{display:flex;flex-direction:row;width:100%;gap:12px;overflow:hidden}.detail-grid .steps-panel,.detail-grid .ingredient-panel{flex:1;min-width:0;overflow:hidden}.empty-store{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px;background:#fff;border-radius:8px;color:#999;text-align:center}.empty-store p{margin:4px 0}.empty-store .hint{font-size:12px;color:#ccc}.render-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.dish-info{display:flex;align-items:center;gap:12px}.dish-name{margin:0;font-size:24px;color:#c41e3a;font-weight:600}.dish-tags{display:flex;gap:8px}.tag{padding:4px 12px;border-radius:16px;font-size:13px;font-weight:500}.tag.cuisine{background:#fff0f0;color:#c41e3a;border:1px solid #ffcdd2}.tag.category{background:#e3f2fd;color:#1976d2;border:1px solid #bbdefb}.dish-meta{display:flex;gap:20px}.meta-item{font-size:14px;color:#666}.meta-item.cost{color:#c41e3a;font-weight:600}.clear-all-btn{padding:6px 12px;border:1px solid #ddd;border-radius:4px;background:#fff;color:#666;font-size:12px;cursor:pointer}.clear-all-btn:hover{background:#f5f5f5}.edit-tip{display:flex;justify-content:space-between;margin-bottom:12px;font-size:12px;color:#999}.render-grid{display:grid;grid-template-columns:1.5fr 1fr;grid-template-rows:1fr 1fr;gap:12px;flex:1;min-height:0}.grid-card{background:#fff;border-radius:8px;box-shadow:0 1px 3px #00000014;display:flex;flex-direction:column;overflow:hidden}.card-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#fafafa;border-bottom:1px solid #eee}.card-header h3{margin:0;font-size:15px;color:#333;font-weight:600}.card-toggle{color:#999;font-size:16px;cursor:pointer}.card-content{flex:1;overflow:auto;padding:12px 16px}.empty-card{display:flex;align-items:center;justify-content:center;height:100px;color:#999;font-size:13px}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th{text-align:left;padding:8px 10px;background:#f5f5f5;color:#666;font-weight:500;border-bottom:2px solid #e0e0e0;white-space:nowrap}.data-table td{padding:8px 10px;border-bottom:1px solid #f0f0f0;color:#333}.data-table tbody tr:nth-child(2n){background:#fafafa}.data-table tbody tr:hover{background:#f5f5f5}.process-card{grid-column:1;grid-row:1}.col-num{width:30px;text-align:center!important;color:#999}.col-name{width:120px}.col-role{width:70px}.col-time{width:60px}.col-points{color:#888!important;font-size:12px}.role-badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:500}.role-gray{background:#f0f0f0;color:#666}.role-green{background:#e8f5e9;color:#2e7d32}.role-blue{background:#e3f2fd;color:#1565c0}.role-orange{background:#fff3e0;color:#e65100}.role-purple{background:#f3e5f5;color:#7b1fa2}.card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid #eee}.summary{font-size:12px;color:#666}.add-btn{padding:6px 12px;border:1px dashed #ccc;border-radius:4px;background:transparent;color:#666;font-size:12px;cursor:pointer;transition:all .2s}.add-btn:hover{border-color:#667eea;color:#667eea}.cost-card{grid-column:2;grid-row:1}.cost-card .subtotal{font-weight:500;color:#333}.cost-total{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #eee;font-size:14px}.cost-total .total-value{font-size:18px;font-weight:600;color:#c41e3a}.scenario-card{grid-column:1;grid-row:2}.scenario-list{list-style:none;padding:0;margin:0}.scenario-list li{display:flex;align-items:flex-start;gap:10px;padding:8px 0;font-size:14px;color:#333}.scenario-list .bullet{width:6px;height:6px;border-radius:50%;background:#ff9800;margin-top:6px;flex-shrink:0}.schedule-card{grid-column:2;grid-row:2}.schedule-card .impact{color:#c41e3a;font-weight:500;font-family:monospace}.schedule-card .status{color:#4caf50;font-weight:500}.schedule-footer{margin-top:12px;padding-top:12px;border-top:1px solid #eee;font-size:12px;color:#4caf50;text-align:center}.render-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid #e0e0e0}.footer-right{display:flex;gap:12px}.action-btn{padding:10px 20px;border-radius:6px;font-size:14px;cursor:pointer;transition:all .2s}.action-btn.save{background:#fff;border:1px solid #8d6e63;color:#5d4037}.action-btn.save:hover{background:#f5f5f5}.action-btn.stock{background:#5d4037;border:none;color:#fff}.action-btn.stock:hover{background:#4e342e}@media (max-width: 1200px){.render-grid{grid-template-columns:1fr;grid-template-rows:auto}.process-card,.cost-card,.scenario-card,.schedule-card{grid-column:1;grid-row:auto}}.ingredient-panel{background:#fff;border-radius:8px;box-shadow:0 1px 3px #00000014;overflow:hidden;display:flex;flex-direction:column;height:100%}.ingredient-panel .panel-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#fafafa;border-bottom:1px solid #eee}.ingredient-panel .panel-header h3{margin:0;font-size:15px;color:#333;font-weight:600}.ingredient-count{font-size:12px;color:#999;font-family:monospace}.ingredient-table-container{padding:0;flex:1;overflow:auto}.ingredient-panel>.panel-header,.ingredient-panel>.ingredient-footer{flex-shrink:0}.ingredient-panel>.ingredient-table-container{flex:1 1 auto;overflow:auto;min-height:0}.ingredient-table{width:100%;border-collapse:collapse;font-size:13px}.ingredient-table th{text-align:left;padding:10px 16px;background:#fafafa;color:#666;font-weight:500;border-bottom:2px solid #e0e0e0;white-space:nowrap}.ingredient-table td{padding:10px 16px;border-bottom:1px solid #f0f0f0;color:#333}.ingredient-table tbody tr:nth-child(2n){background:#fafafa}.ingredient-table tbody tr:hover{background:#f5f5f5}.ingredient-table .col-ingredient{width:auto}.ingredient-type-badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:500;margin-right:8px;background:#e8f5e9;color:#2e7d32}.ingredient-table .col-amount,.ingredient-table .col-unit-price{width:100px;text-align:right}.ingredient-table .col-subtotal{width:100px;text-align:right;font-weight:500;color:#c41e3a}.ingredient-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#fafafa;border-top:1px solid #eee}.cost-summary{display:flex;align-items:center;gap:12px;font-size:14px}.cost-label{color:#666}.cost-value{font-size:18px;font-weight:600;color:#c41e3a}.ingredient-pagination{display:flex;align-items:center;gap:12px}.ingredient-pagination .page-btn{padding:4px 12px;border:1px solid #ddd;border-radius:4px;background:#fff;color:#666;font-size:12px;cursor:pointer;transition:all .2s}.ingredient-pagination .page-btn:hover:not(:disabled){border-color:#667eea;color:#667eea}.ingredient-pagination .page-btn:disabled{opacity:.5;cursor:not-allowed}.ingredient-pagination .page-info{font-size:12px;color:#999}.cell-truncate{cursor:pointer;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-expanded{cursor:pointer;white-space:normal;word-break:break-all;min-width:300px;max-width:none;width:auto;background-color:#fffbe6;padding:8px 12px;border-radius:4px;position:relative;z-index:10;box-shadow:0 2px 8px #00000026}.cell-truncate:hover{background-color:#f5f5f5}.steps-panel{background:#fff;border-radius:8px;box-shadow:0 1px 3px #00000014;overflow:hidden;display:flex;flex-direction:column;height:100%}.steps-panel .panel-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#fafafa;border-bottom:1px solid #eee}.steps-panel .panel-header h3{margin:0;font-size:15px;color:#333;font-weight:600}.steps-count{font-size:12px;color:#999;font-family:monospace}.steps-table-container{padding:0;flex:1;overflow:auto}.steps-panel>.panel-header,.steps-panel>.steps-footer{flex-shrink:0}.steps-panel>.steps-table-container{flex:1 1 auto;overflow:auto;min-height:0}.steps-table{width:100%;border-collapse:collapse;font-size:13px}.steps-table th{text-align:left;padding:10px 16px;background:#fafafa;color:#666;font-weight:500;border-bottom:2px solid #e0e0e0;white-space:nowrap}.steps-table td{padding:10px 16px;border-bottom:1px solid #f0f0f0;color:#333}.steps-table tbody tr:nth-child(2n){background:#fafafa}.steps-table tbody tr:hover{background:#f5f5f5}.steps-table .col-step-num{width:50px;text-align:center;color:#999;font-weight:500}.steps-table .col-step-desc{width:auto}.steps-table .col-step-cause{min-width:150px;max-width:250px;color:#666}.steps-table .col-step-points{min-width:150px;max-width:250px;color:#ff9800}.steps-table .col-step-duration{width:80px;text-align:right;color:#666}.steps-footer{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;background:#fafafa;border-top:1px solid #eee}.steps-summary{font-size:14px;color:#666}.steps-summary .total-duration{font-weight:600;color:#c41e3a}.dish-create-panel{background:#fff;border-radius:8px;box-shadow:0 1px 3px #00000014;margin-bottom:12px;overflow:hidden}.dish-create-panel .panel-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:linear-gradient(135deg,#ff9800,#f57c00);border-bottom:1px solid #eee}.dish-create-panel.completed .panel-header{background:linear-gradient(135deg,#eee,#e0e0e0)}.dish-create-panel .panel-header h3{margin:0;font-size:15px;color:#fff;font-weight:600}.dish-create-panel.completed .panel-header h3{color:#ff8f00}.dish-status.creating{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500;background:#ffffff40;color:#fff}.dish-status.completed{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500;background:#00000014;color:#c62828}.dish-create-content{padding:16px}.dish-basic-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.dish-basic-info .dish-name{font-size:20px;font-weight:600;color:#c41e3a}.dish-store-id{display:flex;align-items:center;gap:6px;padding:4px 10px;background:#f5f5f5;border-radius:4px;font-size:13px}.dish-store-id .label{color:#888}.dish-store-id .value{color:#333;font-weight:500;font-family:monospace}.dish-scene{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fff8e1;border-radius:6px}.scene-label{font-size:13px;color:#ff8f00;font-weight:500;white-space:nowrap}.scene-value{font-size:13px;color:#333}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;width:420px;max-width:90%;box-shadow:0 4px 20px #00000026}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #eee}.modal-header h3{margin:0;font-size:18px;color:#333}.modal-close{background:none;border:none;font-size:24px;color:#999;cursor:pointer;line-height:1}.modal-close:hover{color:#666}.modal-body{padding:20px}.modal-body p{margin:0 0 16px;color:#666}.stock-summary{background:#fafafa;border-radius:8px;padding:16px}.stock-item{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #eee}.stock-item:last-child{border-bottom:none}.stock-label{color:#666;font-size:14px}.stock-value{color:#333;font-size:14px;font-weight:500}.modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 20px;border-top:1px solid #eee;background:#fafafa;border-radius:0 0 12px 12px}.btn{padding:10px 24px;border-radius:6px;font-size:14px;cursor:pointer;transition:all .2s}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-cancel{background:#fff;border:1px solid #ddd;color:#666}.btn-cancel:hover:not(:disabled){background:#f5f5f5}.btn-confirm{background:#5d4037;border:none;color:#fff}.btn-confirm:hover:not(:disabled){background:#4e342e}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:#f7f3e8}.app-container{height:100vh;display:flex;flex-direction:column}.app-main{flex:1;padding:16px;overflow:hidden}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background-color:#f5f5f5;color:#333;line-height:1.6}.app-container{min-height:100vh;padding:24px}.page-header{display:flex;align-items:center;gap:12px;margin-bottom:24px}.page-title{font-size:24px;font-weight:600;color:#1a1a1a}.page-subtitle{font-size:14px;color:#888}.main-content{display:grid;grid-template-columns:360px 1fr;gap:24px}.left-column,.right-column{display:flex;flex-direction:column;gap:20px}.card{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000f;border:1px solid #e8e8e8;overflow:hidden}.card-header{padding:20px 24px;border-bottom:1px solid #f0f0f0;display:flex;justify-content:space-between;align-items:center}.card-header h3{font-size:16px;font-weight:600;color:#1a1a1a;display:flex;align-items:center;gap:8px}.card-body{padding:20px 24px}.dish-info-card{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000f;border:1px solid #e8e8e8;overflow:hidden}.dish-info-header{padding:24px;border-bottom:1px solid #f0f0f0}.dish-name-row{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px}.dish-name{font-size:24px;font-weight:600;color:#1a1a1a;flex:1}.dish-icon{width:40px;height:40px;background:linear-gradient(135deg,#ff6b6b,#ee5a24);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px}.dish-tags{display:flex;gap:8px;flex-wrap:wrap}.tag{padding:4px 12px;border-radius:16px;font-size:12px;font-weight:500}.tag-cuisine{background:#fff0e6;color:#ee5a24}.tag-type{background:#e6f7ff;color:#1890ff}.tag-version{background:#f5f5f5;color:#666}.dish-description{font-size:14px;color:#666;line-height:1.8;margin-top:16px;padding-top:16px;border-top:1px solid #f0f0f0}.dish-info-actions{padding:20px 24px;display:flex;gap:12px;justify-content:flex-end;background:#fafafa}.btn{padding:10px 20px;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s ease;border:none;font-size:14px}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-default{background:#fff;border:1px solid #d9d9d9;color:#666}.btn-default:hover{border-color:#667eea;color:#667eea}.btn-danger{background:#fff1f0;border:1px solid #ffa39e;color:#ff4d4f}.btn-danger:hover{background:#ff4d4f;color:#fff}.step-list{display:flex;flex-direction:column;gap:0}.step-item{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid #f5f5f5}.step-item:last-child{border-bottom:none}.step-order{width:28px;height:28px;background:#667eea;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;flex-shrink:0}.step-content{flex:1}.step-name{font-size:14px;font-weight:500;color:#333;margin-bottom:4px}.step-meta{font-size:12px;color:#888}.step-keypoint{margin-top:8px;padding:8px 12px;background:#f8f9fa;border-radius:6px;font-size:13px;color:#666;border-left:3px solid #667eea}.cost-table{width:100%;border-collapse:collapse}.cost-table th{background:#fafafa;padding:12px 16px;text-align:left;font-size:12px;font-weight:500;color:#888;border-bottom:1px solid #f0f0f0}.cost-table td{padding:14px 16px;border-bottom:1px solid #f5f5f5;font-size:14px;color:#333}.cost-table td:last-child{text-align:right;font-weight:500}.cost-total-row{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:8px;margin-top:16px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center}.cost-total-label{font-size:14px;font-weight:500}.cost-total-value{font-size:24px;font-weight:700}.schedule-list{display:flex;flex-direction:column;gap:0}.schedule-item{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #f5f5f5}.schedule-item:last-child{border-bottom:none}.chef-avatar{width:44px;height:44px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}.chef-info{flex:1}.chef-name{font-size:14px;font-weight:500;color:#333;margin-bottom:2px}.chef-role{font-size:12px;color:#888}.chef-time{text-align:right}.chef-additional-time{font-size:18px;font-weight:600;color:#667eea}.chef-unit{font-size:12px;color:#888}.schedule-total{margin-top:16px;padding:16px 20px;background:#f8f9fa;border-radius:8px;display:flex;justify-content:space-between;align-items:center}.schedule-total-label{font-size:14px;color:#666}.schedule-total-value{font-size:20px;font-weight:700;color:#333}.scenario-list{display:flex;flex-direction:column;gap:12px}.scenario-item{padding:16px;background:#f8f9fa;border-radius:8px;font-size:14px;color:#333;line-height:1.6;border-left:3px solid #667eea}.data-table{width:100%;border-collapse:collapse}.data-table th{background:#fafafa;padding:12px 16px;text-align:left;font-size:13px;font-weight:500;color:#666;border-bottom:1px solid #f0f0f0}.data-table td{padding:14px 16px;border-bottom:1px solid #f5f5f5;font-size:14px;color:#333}.data-table tbody tr:hover{background:#fafafa}.data-table tbody tr:last-child td{border-bottom:none}.empty-state{text-align:center;padding:60px 20px;color:#999}.empty-state-icon{font-size:48px;margin-bottom:16px;opacity:.5}@media (max-width: 1024px){.main-content{grid-template-columns:1fr}.left-column{order:-1}}@media (max-width: 768px){.app-container{padding:16px}.dish-info-actions{flex-direction:column}.btn{width:100%}}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})(); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function ld(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pa={exports:{}},Kl={},ha={exports:{}},H={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var jr=Symbol.for("react.element"),od=Symbol.for("react.portal"),id=Symbol.for("react.fragment"),sd=Symbol.for("react.strict_mode"),ud=Symbol.for("react.profiler"),ad=Symbol.for("react.provider"),cd=Symbol.for("react.context"),fd=Symbol.for("react.forward_ref"),dd=Symbol.for("react.suspense"),pd=Symbol.for("react.memo"),hd=Symbol.for("react.lazy"),Hs=Symbol.iterator;function md(e){return e===null||typeof e!="object"?null:(e=Hs&&e[Hs]||e["@@iterator"],typeof e=="function"?e:null)}var ma={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ga=Object.assign,ya={};function Hn(e,t,n){this.props=e,this.context=t,this.refs=ya,this.updater=n||ma}Hn.prototype.isReactComponent={};Hn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Hn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function va(){}va.prototype=Hn.prototype;function Vi(e,t,n){this.props=e,this.context=t,this.refs=ya,this.updater=n||ma}var Wi=Vi.prototype=new va;Wi.constructor=Vi;ga(Wi,Hn.prototype);Wi.isPureReactComponent=!0;var Vs=Array.isArray,wa=Object.prototype.hasOwnProperty,Qi={current:null},Sa={key:!0,ref:!0,__self:!0,__source:!0};function _a(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)wa.call(t,r)&&!Sa.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,J=N[V];if(0>>1;Vl(Ye,z))ftl(hn,Ye)?(N[V]=hn,N[ft]=z,V=ft):(N[V]=Ye,N[me]=z,V=me);else if(ftl(hn,z))N[V]=hn,N[ft]=z,V=ft;else break e}}return I}function l(N,I){var z=N.sortIndex-I.sortIndex;return z!==0?z:N.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],f=1,h=null,y=3,E=!1,m=!1,S=!1,x=typeof setTimeout=="function"?setTimeout:null,d=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 p(N){for(var I=n(a);I!==null;){if(I.callback===null)r(a);else if(I.startTime<=N)r(a),I.sortIndex=I.expirationTime,t(u,I);else break;I=n(a)}}function _(N){if(S=!1,p(N),!m)if(n(u)!==null)m=!0,ce(P);else{var I=n(a);I!==null&&Ee(_,I.startTime-N)}}function P(N,I){m=!1,S&&(S=!1,d(D),D=-1),E=!0;var z=y;try{for(p(I),h=n(u);h!==null&&(!(h.expirationTime>I)||N&&!A());){var V=h.callback;if(typeof V=="function"){h.callback=null,y=h.priorityLevel;var J=V(h.expirationTime<=I);I=e.unstable_now(),typeof J=="function"?h.callback=J:h===n(u)&&r(u),p(I)}else r(u);h=n(u)}if(h!==null)var ct=!0;else{var me=n(a);me!==null&&Ee(_,me.startTime-I),ct=!1}return ct}finally{h=null,y=z,E=!1}}var T=!1,R=null,D=-1,C=5,F=-1;function A(){return!(e.unstable_now()-FN||125V?(N.sortIndex=z,t(a,N),n(u)===null&&N===n(a)&&(S?(d(D),D=-1):S=!0,Ee(_,z-V))):(N.sortIndex=J,t(u,N),m||E||(m=!0,ce(P))),N},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(N){var I=y;return function(){var z=y;y=I;try{return N.apply(this,arguments)}finally{y=z}}}})(Ca);Na.exports=Ca;var Pd=Na.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Rd=b,We=Pd;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jo=Object.prototype.hasOwnProperty,Td=/^[: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]*$/,Qs={},Ks={};function Od(e){return Jo.call(Ks,e)?!0:Jo.call(Qs,e)?!1:Td.test(e)?Ks[e]=!0:(Qs[e]=!0,!1)}function jd(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 Dd(e,t,n,r){if(t===null||typeof t>"u"||jd(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 De(e,t,n,r,l,o,i){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=o,this.removeEmptyString=i}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new De(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){Se[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ji=/[\-:]([a-z])/g;function Yi(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(Ji,Yi);Se[t]=new De(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(Ji,Yi);Se[t]=new De(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(Ji,Yi);Se[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function qi(e,t,n,r){var l=Se.hasOwnProperty(t)?Se[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` `+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{wo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tr(e):""}function Ad(e){switch(e.tag){case 5:return tr(e.type);case 16:return tr("Lazy");case 13:return tr("Suspense");case 19:return tr("SuspenseList");case 0:case 2:case 15:return e=So(e.type,!1),e;case 11:return e=So(e.type.render,!1),e;case 1:return e=So(e.type,!0),e;default:return""}}function Go(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 yn:return"Fragment";case gn:return"Portal";case Yo:return"Profiler";case Xi:return"StrictMode";case qo:return"Suspense";case Xo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ta:return(e.displayName||"Context")+".Consumer";case Ra:return(e._context.displayName||"Context")+".Provider";case Gi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zi:return t=e.displayName||null,t!==null?t:Go(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return Go(e(t))}catch{}}return null}function Ld(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 Go(t);case 8:return t===Xi?"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 Qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ja(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Id(e){var t=ja(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wr(e){e._valueTracker||(e._valueTracker=Id(e))}function Da(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ja(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _l(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 Zo(e,t){var n=t.checked;return oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ys(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qt(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 Aa(e,t){t=t.checked,t!=null&&qi(e,"checked",t,!1)}function bo(e,t){Aa(e,t);var n=Qt(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")?ei(e,t.type,n):t.hasOwnProperty("defaultValue")&&ei(e,t.type,Qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qs(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 ei(e,t,n){(t!=="number"||_l(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nr=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Qr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var or={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},zd=["Webkit","ms","Moz","O"];Object.keys(or).forEach(function(e){zd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),or[t]=or[e]})});function Fa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||or.hasOwnProperty(e)&&or[e]?(""+t).trim():t+"px"}function Ua(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Fa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Fd=oe({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 ri(e,t){if(t){if(Fd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function li(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 oi=null;function bi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ii=null,Tn=null,On=null;function Zs(e){if(e=Lr(e)){if(typeof ii!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Gl(t),ii(e.stateNode,e.type,t))}}function Ma(e){Tn?On?On.push(e):On=[e]:Tn=e}function Ba(){if(Tn){var e=Tn,t=On;if(On=Tn=null,Zs(e),t)for(e=0;e>>=0,e===0?32:31-(Yd(e)/qd|0)|0}var Kr=64,Jr=4194304;function rr(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 Nl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=rr(s):(o&=i,o!==0&&(r=rr(o)))}else i=n&~l,i!==0?r=rr(i):o!==0&&(r=rr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 Dr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function bd(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=sr),su=" ",uu=!1;function ic(e,t){switch(e){case"keyup":return Pp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vn=!1;function Tp(e,t){switch(e){case"compositionend":return sc(t);case"keypress":return t.which!==32?null:(uu=!0,su);case"textInput":return e=t.data,e===su&&uu?null:e;default:return null}}function Op(e,t){if(vn)return e==="compositionend"||!ss&&ic(e,t)?(e=lc(),al=ls=It=null,vn=!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=du(n)}}function fc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dc(){for(var e=window,t=_l();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_l(e.document)}return t}function us(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 Mp(e){var t=dc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fc(n.ownerDocument.documentElement,n)){if(r!==null&&us(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,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=pu(n,o);var i=pu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)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,wn=null,di=null,ar=null,pi=!1;function hu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pi||wn==null||wn!==_l(r)||(r=wn,"selectionStart"in r&&us(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}),ar&&_r(ar,r)||(ar=r,r=Rl(di,"onSelect"),0En||(e.current=wi[En],wi[En]=null,En--)}function G(e,t){En++,wi[En]=e.current,e.current=t}var Kt={},Pe=Yt(Kt),Ie=Yt(!1),on=Kt;function In(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ze(e){return e=e.childContextTypes,e!=null}function Ol(){ee(Ie),ee(Pe)}function _u(e,t,n){if(Pe.current!==Kt)throw Error(k(168));G(Pe,t),G(Ie,n)}function _c(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(k(108,Ld(e)||"Unknown",l));return oe({},n,r)}function jl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,on=Pe.current,G(Pe,e),G(Ie,Ie.current),!0}function Eu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=_c(e,t,on),r.__reactInternalMemoizedMergedChildContext=e,ee(Ie),ee(Pe),G(Pe,e)):ee(Ie),G(Ie,n)}var St=null,Zl=!1,Lo=!1;function Ec(e){St===null?St=[e]:St.push(e)}function Gp(e){Zl=!0,Ec(e)}function qt(){if(!Lo&&St!==null){Lo=!0;var e=0,t=K;try{var n=St;for(K=1;e>=i,l-=i,_t=1<<32-it(t)+l|n<D?(C=R,R=null):C=R.sibling;var F=y(d,R,p[D],_);if(F===null){R===null&&(R=C);break}e&&R&&F.alternate===null&&t(d,R),c=o(F,c,D),T===null?P=F:T.sibling=F,T=F,R=C}if(D===p.length)return n(d,R),te&&Xt(d,D),P;if(R===null){for(;DD?(C=R,R=null):C=R.sibling;var A=y(d,R,F.value,_);if(A===null){R===null&&(R=C);break}e&&R&&A.alternate===null&&t(d,R),c=o(A,c,D),T===null?P=A:T.sibling=A,T=A,R=C}if(F.done)return n(d,R),te&&Xt(d,D),P;if(R===null){for(;!F.done;D++,F=p.next())F=h(d,F.value,_),F!==null&&(c=o(F,c,D),T===null?P=F:T.sibling=F,T=F);return te&&Xt(d,D),P}for(R=r(d,R);!F.done;D++,F=p.next())F=E(R,d,D,F.value,_),F!==null&&(e&&F.alternate!==null&&R.delete(F.key===null?D:F.key),c=o(F,c,D),T===null?P=F:T.sibling=F,T=F);return e&&R.forEach(function(Be){return t(d,Be)}),te&&Xt(d,D),P}function x(d,c,p,_){if(typeof p=="object"&&p!==null&&p.type===yn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Vr:e:{for(var P=p.key,T=c;T!==null;){if(T.key===P){if(P=p.type,P===yn){if(T.tag===7){n(d,T.sibling),c=l(T,p.props.children),c.return=d,d=c;break e}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===jt&&Nu(P)===T.type){n(d,T.sibling),c=l(T,p.props),c.ref=Gn(d,T,p),c.return=d,d=c;break e}n(d,T);break}else t(d,T);T=T.sibling}p.type===yn?(c=rn(p.props.children,d.mode,_,p.key),c.return=d,d=c):(_=yl(p.type,p.key,p.props,null,d.mode,_),_.ref=Gn(d,c,p),_.return=d,d=_)}return i(d);case gn:e:{for(T=p.key;c!==null;){if(c.key===T)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(d,c.sibling),c=l(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Ho(p,d.mode,_),c.return=d,d=c}return i(d);case jt:return T=p._init,x(d,c,T(p._payload),_)}if(nr(p))return m(d,c,p,_);if(Kn(p))return S(d,c,p,_);el(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,p),c.return=d,d=c):(n(d,c),c=$o(p,d.mode,_),c.return=d,d=c),i(d)):n(d,c)}return x}var Fn=Cc(!0),Pc=Cc(!1),Ll=Yt(null),Il=null,Nn=null,ds=null;function ps(){ds=Nn=Il=null}function hs(e){var t=Ll.current;ee(Ll),e._currentValue=t}function Ei(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 Dn(e,t){Il=e,ds=Nn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function be(e){var t=e._currentValue;if(ds!==e)if(e={context:e,memoizedValue:t,next:null},Nn===null){if(Il===null)throw Error(k(308));Nn=e,Il.dependencies={lanes:0,firstContext:e}}else Nn=Nn.next=e;return t}var bt=null;function ms(e){bt===null?bt=[e]:bt.push(e)}function Rc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ms(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ct(e,r)}function Ct(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 Dt=!1;function gs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tc(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 kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ct(e,n)}return l=r.interleaved,l===null?(t.next=t,ms(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ct(e,n)}function fl(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,ts(e,n)}}function Cu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,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 zl(e,t,n,r){var l=e.updateQueue;Dt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(o!==null){var h=l.baseState;i=0,f=a=u=null,s=o;do{var y=s.lane,E=s.eventTime;if((r&y)===y){f!==null&&(f=f.next={eventTime:E,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,S=s;switch(y=t,E=n,S.tag){case 1:if(m=S.payload,typeof m=="function"){h=m.call(E,h,y);break e}h=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=S.payload,y=typeof m=="function"?m.call(E,h,y):m,y==null)break e;h=oe({},h,y);break e;case 2:Dt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,y=l.effects,y===null?l.effects=[s]:y.push(s))}else E={eventTime:E,lane:y,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=E,u=h):f=f.next=E,i|=y;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;y=s,s=y.next,y.next=null,l.lastBaseUpdate=y,l.shared.pending=null}}while(!0);if(f===null&&(u=h),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);an|=i,e.lanes=i,e.memoizedState=h}}function Pu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=zo.transition;zo.transition={};try{e(!1),t()}finally{K=n,zo.transition=r}}function Kc(){return et().memoizedState}function th(e,t,n){var r=Vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jc(e))Yc(t,n);else if(n=Rc(e,t,n,r),n!==null){var l=Oe();st(n,e,r,l),qc(n,t,r)}}function nh(e,t,n){var r=Vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jc(e))Yc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,ut(s,i)){var u=t.interleaved;u===null?(l.next=l,ms(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Rc(e,t,l,r),n!==null&&(l=Oe(),st(n,e,r,l),qc(n,t,r))}}function Jc(e){var t=e.alternate;return e===le||t!==null&&t===le}function Yc(e,t){cr=Ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ts(e,n)}}var Ml={readContext:be,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},rh={readContext:be,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:Tu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pl(4194308,4,$c.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pl(4194308,4,e,t)},useInsertionEffect:function(e,t){return pl(4,2,e,t)},useMemo:function(e,t){var n=mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mt();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=th.bind(null,le,e),[r.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:Ru,useDebugValue:xs,useDeferredValue:function(e){return mt().memoizedState=e},useTransition:function(){var e=Ru(!1),t=e[0];return e=eh.bind(null,e[1]),mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=le,l=mt();if(te){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ye===null)throw Error(k(349));un&30||Ac(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Tu(Ic.bind(null,r,o,e),[e]),r.flags|=2048,Tr(9,Lc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=mt(),t=ye.identifierPrefix;if(te){var n=Et,r=_t;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[gt]=t,e[xr]=r,of(e,t,!1,!1),t.stateNode=e;e:{switch(i=li(n,r),n){case"dialog":Z("cancel",e),Z("close",e),l=r;break;case"iframe":case"object":case"embed":Z("load",e),l=r;break;case"video":case"audio":for(l=0;lBn&&(t.flags|=128,r=!0,Zn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Fl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Zn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!te)return xe(t),null}else 2*ae()-o.renderingStartTime>Bn&&n!==1073741824&&(t.flags|=128,r=!0,Zn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ae(),t.sibling=null,n=re.current,G(re,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return Os(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?$e&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function fh(e,t){switch(cs(t),t.tag){case 1:return ze(t.type)&&Ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),ee(Ie),ee(Pe),ws(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vs(t),null;case 13:if(ee(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(re),null;case 4:return Un(),null;case 10:return hs(t.type._context),null;case 22:case 23:return Os(),null;case 24:return null;default:return null}}var nl=!1,Ne=!1,dh=typeof WeakSet=="function"?WeakSet:Set,j=null;function Cn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){se(e,t,r)}else n.current=null}function ji(e,t,n){try{n()}catch(r){se(e,t,r)}}var Bu=!1;function ph(e,t){if(hi=Cl,e=dc(),us(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,f=0,h=e,y=null;t:for(;;){for(var E;h!==n||l!==0&&h.nodeType!==3||(s=i+l),h!==o||r!==0&&h.nodeType!==3||(u=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(E=h.firstChild)!==null;)y=h,h=E;for(;;){if(h===e)break t;if(y===n&&++a===l&&(s=i),y===o&&++f===r&&(u=i),(E=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=E}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(mi={focusedElem:e,selectionRange:n},Cl=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var S=m.memoizedProps,x=m.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?S:rt(t.type,S),x);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(_){se(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Bu,Bu=!1,m}function fr(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 o=l.destroy;l.destroy=void 0,o!==void 0&&ji(t,n,o)}l=l.next}while(l!==r)}}function to(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 Di(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 af(e){var t=e.alternate;t!==null&&(e.alternate=null,af(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[xr],delete t[vi],delete t[qp],delete t[Xp])),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 cf(e){return e.tag===5||e.tag===3||e.tag===4}function $u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cf(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 Ai(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=Tl));else if(r!==4&&(e=e.child,e!==null))for(Ai(e,t,n),e=e.sibling;e!==null;)Ai(e,t,n),e=e.sibling}function Li(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(Li(e,t,n),e=e.sibling;e!==null;)Li(e,t,n),e=e.sibling}var ve=null,lt=!1;function Tt(e,t,n){for(n=n.child;n!==null;)ff(e,t,n),n=n.sibling}function ff(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(Jl,n)}catch{}switch(n.tag){case 5:Ne||Cn(n,t);case 6:var r=ve,l=lt;ve=null,Tt(e,t,n),ve=r,lt=l,ve!==null&&(lt?(e=ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ve.removeChild(n.stateNode));break;case 18:ve!==null&&(lt?(e=ve,n=n.stateNode,e.nodeType===8?Ao(e.parentNode,n):e.nodeType===1&&Ao(e,n),wr(e)):Ao(ve,n.stateNode));break;case 4:r=ve,l=lt,ve=n.stateNode.containerInfo,lt=!0,Tt(e,t,n),ve=r,lt=l;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ji(n,t,i),l=l.next}while(l!==r)}Tt(e,t,n);break;case 1:if(!Ne&&(Cn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){se(n,t,s)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,Tt(e,t,n),Ne=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function Hu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dh),t.forEach(function(r){var l=Eh.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=i),r&=~o}if(r=l,r=ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mh(r/1960))-r,10e?16:e,zt===null)var r=!1;else{if(e=zt,zt=null,Hl=0,Q&6)throw Error(k(331));var l=Q;for(Q|=4,j=e.current;j!==null;){var o=j,i=o.child;if(j.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uae()-Rs?nn(e,0):Ps|=n),Fe(e,t)}function wf(e,t){t===0&&(e.mode&1?(t=Jr,Jr<<=1,!(Jr&130023424)&&(Jr=4194304)):t=1);var n=Oe();e=Ct(e,t),e!==null&&(Dr(e,t,n),Fe(e,n))}function _h(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wf(e,n)}function Eh(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(k(314))}r!==null&&r.delete(t),wf(e,n)}var Sf;Sf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ie.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,ah(e,t,n);Le=!!(e.flags&131072)}else Le=!1,te&&t.flags&1048576&&kc(t,Al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hl(e,t),e=t.pendingProps;var l=In(t,Pe.current);Dn(t,n),l=_s(null,t,r,e,l,n);var o=Es();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,ze(r)?(o=!0,jl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,gs(t),l.updater=eo,t.stateNode=l,l._reactInternals=t,xi(t,r,e,n),t=Pi(null,t,r,!0,o,n)):(t.tag=0,te&&o&&as(t),Te(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=xh(r),e=rt(r,e),l){case 0:t=Ci(null,t,r,e,n);break e;case 1:t=Fu(null,t,r,e,n);break e;case 11:t=Iu(null,t,r,e,n);break e;case 14:t=zu(null,t,r,rt(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Ci(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),Fu(e,t,r,l,n);case 3:e:{if(nf(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Tc(e,t),zl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Mn(Error(k(423)),t),t=Uu(e,t,r,n,l);break e}else if(r!==l){l=Mn(Error(k(424)),t),t=Uu(e,t,r,n,l);break e}else for(He=Bt(t.stateNode.containerInfo.firstChild),Ve=t,te=!0,ot=null,n=Pc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zn(),r===l){t=Pt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return Oc(t),e===null&&_i(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,gi(r,l)?i=null:o!==null&&gi(r,o)&&(t.flags|=32),tf(e,t),Te(e,t,i,n),t.child;case 6:return e===null&&_i(t),null;case 13:return rf(e,t,n);case 4:return ys(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fn(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),Iu(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,o=t.memoizedProps,i=l.value,G(Ll,r._currentValue),r._currentValue=i,o!==null)if(ut(o.value,i)){if(o.children===l.children&&!Ie.current){t=Pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=kt(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Ei(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ei(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Te(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Dn(t,n),l=be(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),zu(e,t,r,l,n);case 15:return bc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:rt(r,l),hl(e,t),t.tag=1,ze(r)?(e=!0,jl(t)):e=!1,Dn(t,n),Xc(t,r,l),xi(t,r,l,n),Pi(null,t,r,!0,e,n);case 19:return lf(e,t,n);case 22:return ef(e,t,n)}throw Error(k(156,t.tag))};function _f(e,t){return Ja(e,t)}function kh(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 kh(e,t,n,r)}function Ds(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xh(e){if(typeof e=="function")return Ds(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gi)return 11;if(e===Zi)return 14}return 2}function Wt(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 yl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Ds(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case yn:return rn(n.children,l,o,t);case Xi:i=8,l|=8;break;case Yo:return e=Ge(12,n,t,l|2),e.elementType=Yo,e.lanes=o,e;case qo:return e=Ge(13,n,t,l),e.elementType=qo,e.lanes=o,e;case Xo:return e=Ge(19,n,t,l),e.elementType=Xo,e.lanes=o,e;case Oa:return ro(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ra:i=10;break e;case Ta:i=9;break e;case Gi:i=11;break e;case Zi:i=14;break e;case jt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ge(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function rn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function ro(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Oa,e.lanes=n,e.stateNode={isHidden:!1},e}function $o(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Ho(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 Nh(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=Eo(0),this.expirationTimes=Eo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function As(e,t,n,r,l,o,i,s,u){return e=new Nh(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ge(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gs(o),e}function Ch(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nf)}catch(e){console.error(e)}}Nf(),xa.exports=Qe;var jh=xa.exports,Xu=jh;Ko.createRoot=Xu.createRoot,Ko.hydrateRoot=Xu.hydrateRoot;function Cf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dh}=Object.prototype,{getPrototypeOf:Fs}=Object,{iterator:uo,toStringTag:Pf}=Symbol,ao=(e=>t=>{const n=Dh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),at=e=>(e=e.toLowerCase(),t=>ao(t)===e),co=e=>t=>typeof t===e,{isArray:Qn}=Array,$n=co("undefined");function zr(e){return e!==null&&!$n(e)&&e.constructor!==null&&!$n(e.constructor)&&Ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rf=at("ArrayBuffer");function Ah(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Rf(e.buffer),t}const Lh=co("string"),Ue=co("function"),Tf=co("number"),Fr=e=>e!==null&&typeof e=="object",Ih=e=>e===!0||e===!1,vl=e=>{if(ao(e)!=="object")return!1;const t=Fs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pf in e)&&!(uo in e)},zh=e=>{if(!Fr(e)||zr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Fh=at("Date"),Uh=at("File"),Mh=at("Blob"),Bh=at("FileList"),$h=e=>Fr(e)&&Ue(e.pipe),Hh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ue(e.append)&&((t=ao(e))==="formdata"||t==="object"&&Ue(e.toString)&&e.toString()==="[object FormData]"))},Vh=at("URLSearchParams"),[Wh,Qh,Kh,Jh]=["ReadableStream","Request","Response","Headers"].map(at),Yh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ur(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Qn(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const tn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jf=e=>!$n(e)&&e!==tn;function Mi(){const{caseless:e,skipUndefined:t}=jf(this)&&this||{},n={},r=(l,o)=>{const i=e&&Of(n,o)||o;vl(n[i])&&vl(l)?n[i]=Mi(n[i],l):vl(l)?n[i]=Mi({},l):Qn(l)?n[i]=l.slice():(!t||!$n(l))&&(n[i]=l)};for(let l=0,o=arguments.length;l(Ur(t,(l,o)=>{n&&Ue(l)?Object.defineProperty(e,o,{value:Cf(l,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:l,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Xh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gh=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Zh=(e,t,n,r)=>{let l,o,i;const s={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&Fs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},em=e=>{if(!e)return null;if(Qn(e))return e;let t=e.length;if(!Tf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fs(Uint8Array)),nm=(e,t)=>{const r=(e&&e[uo]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},rm=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lm=at("HTMLFormElement"),om=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),Gu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),im=at("RegExp"),Df=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ur(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},sm=e=>{Df(e,(t,n)=>{if(Ue(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ue(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},um=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return Qn(e)?r(e):r(String(e).split(t)),n},am=()=>{},cm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function fm(e){return!!(e&&Ue(e.append)&&e[Pf]==="FormData"&&e[uo])}const dm=e=>{const t=new Array(10),n=(r,l)=>{if(Fr(r)){if(t.indexOf(r)>=0)return;if(zr(r))return r;if(!("toJSON"in r)){t[l]=r;const o=Qn(r)?[]:{};return Ur(r,(i,s)=>{const u=n(i,l+1);!$n(u)&&(o[s]=u)}),t[l]=void 0,o}}return r};return n(e,0)},pm=at("AsyncFunction"),hm=e=>e&&(Fr(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),Af=((e,t)=>e?setImmediate:t?((n,r)=>(tn.addEventListener("message",({source:l,data:o})=>{l===tn&&o===n&&r.length&&r.shift()()},!1),l=>{r.push(l),tn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ue(tn.postMessage)),mm=typeof queueMicrotask<"u"?queueMicrotask.bind(tn):typeof process<"u"&&process.nextTick||Af,gm=e=>e!=null&&Ue(e[uo]),v={isArray:Qn,isArrayBuffer:Rf,isBuffer:zr,isFormData:Hh,isArrayBufferView:Ah,isString:Lh,isNumber:Tf,isBoolean:Ih,isObject:Fr,isPlainObject:vl,isEmptyObject:zh,isReadableStream:Wh,isRequest:Qh,isResponse:Kh,isHeaders:Jh,isUndefined:$n,isDate:Fh,isFile:Uh,isBlob:Mh,isRegExp:im,isFunction:Ue,isStream:$h,isURLSearchParams:Vh,isTypedArray:tm,isFileList:Bh,forEach:Ur,merge:Mi,extend:qh,trim:Yh,stripBOM:Xh,inherits:Gh,toFlatObject:Zh,kindOf:ao,kindOfTest:at,endsWith:bh,toArray:em,forEachEntry:nm,matchAll:rm,isHTMLForm:lm,hasOwnProperty:Gu,hasOwnProp:Gu,reduceDescriptors:Df,freezeMethods:sm,toObjectSet:um,toCamelCase:om,noop:am,toFiniteNumber:cm,findKey:Of,global:tn,isContextDefined:jf,isSpecCompliantForm:fm,toJSONObject:dm,isAsyncFn:pm,isThenable:hm,setImmediate:Af,asap:mm,isIterable:gm};let M=class Lf extends Error{static from(t,n,r,l,o,i){const s=new Lf(t.message,n||t.code,r,l,o);return s.cause=t,s.name=t.name,i&&Object.assign(s,i),s}constructor(t,n,r,l,o){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),l&&(this.request=l),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.status}}};M.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";M.ERR_BAD_OPTION="ERR_BAD_OPTION";M.ECONNABORTED="ECONNABORTED";M.ETIMEDOUT="ETIMEDOUT";M.ERR_NETWORK="ERR_NETWORK";M.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";M.ERR_DEPRECATED="ERR_DEPRECATED";M.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";M.ERR_BAD_REQUEST="ERR_BAD_REQUEST";M.ERR_CANCELED="ERR_CANCELED";M.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";M.ERR_INVALID_URL="ERR_INVALID_URL";const ym=null;function Bi(e){return v.isPlainObject(e)||v.isArray(e)}function If(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Zu(e,t,n){return e?e.concat(t).map(function(l,o){return l=If(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function vm(e){return v.isArray(e)&&!e.some(Bi)}const wm=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function fo(e,t,n){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=v.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,x){return!v.isUndefined(x[S])});const r=n.metaTokens,l=n.visitor||f,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(l))throw new TypeError("visitor must be a function");function a(m){if(m===null)return"";if(v.isDate(m))return m.toISOString();if(v.isBoolean(m))return m.toString();if(!u&&v.isBlob(m))throw new M("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(m)||v.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,S,x){let d=m;if(m&&!x&&typeof m=="object"){if(v.endsWith(S,"{}"))S=r?S:S.slice(0,-2),m=JSON.stringify(m);else if(v.isArray(m)&&vm(m)||(v.isFileList(m)||v.endsWith(S,"[]"))&&(d=v.toArray(m)))return S=If(S),d.forEach(function(p,_){!(v.isUndefined(p)||p===null)&&t.append(i===!0?Zu([S],_,o):i===null?S:S+"[]",a(p))}),!1}return Bi(m)?!0:(t.append(Zu(x,S,o),a(m)),!1)}const h=[],y=Object.assign(wm,{defaultVisitor:f,convertValue:a,isVisitable:Bi});function E(m,S){if(!v.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(m),v.forEach(m,function(d,c){(!(v.isUndefined(d)||d===null)&&l.call(t,d,v.isString(c)?c.trim():c,S,y))===!0&&E(d,S?S.concat(c):[c])}),h.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return E(e),t}function bu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Us(e,t){this._pairs=[],e&&fo(e,this,t)}const zf=Us.prototype;zf.append=function(t,n){this._pairs.push([t,n])};zf.toString=function(t){const n=t?function(r){return t.call(this,r,bu)}:bu;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function Sm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ff(e,t,n){if(!t)return e;const r=n&&n.encode||Sm,l=v.isFunction(n)?{serialize:n}:n,o=l&&l.serialize;let i;if(o?i=o(t,l):i=v.isURLSearchParams(t)?t.toString():new Us(t,l).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ea{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Uf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_m=typeof URLSearchParams<"u"?URLSearchParams:Us,Em=typeof FormData<"u"?FormData:null,km=typeof Blob<"u"?Blob:null,xm={isBrowser:!0,classes:{URLSearchParams:_m,FormData:Em,Blob:km},protocols:["http","https","file","blob","url","data"]},Ms=typeof window<"u"&&typeof document<"u",$i=typeof navigator=="object"&&navigator||void 0,Nm=Ms&&(!$i||["ReactNative","NativeScript","NS"].indexOf($i.product)<0),Cm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Pm=Ms&&window.location.href||"http://localhost",Rm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ms,hasStandardBrowserEnv:Nm,hasStandardBrowserWebWorkerEnv:Cm,navigator:$i,origin:Pm},Symbol.toStringTag,{value:"Module"})),Ce={...Rm,...xm};function Tm(e,t){return fo(e,new Ce.classes.URLSearchParams,{visitor:function(n,r,l,o){return Ce.isNode&&v.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Om(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function jm(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&v.isArray(l)?l.length:i,u?(v.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!s):((!l[i]||!v.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&v.isArray(l[i])&&(l[i]=jm(l[i])),!s)}if(v.isFormData(e)&&v.isFunction(e.entries)){const n={};return v.forEachEntry(e,(r,l)=>{t(Om(r),l,n,0)}),n}return null}function Dm(e,t,n){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Mr={transitional:Uf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=v.isObject(t);if(o&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return l?JSON.stringify(Mf(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Tm(t,this.formSerializer).toString();if((s=v.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return fo(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),Dm(t)):t}],transformResponse:[function(t){const n=this.transitional||Mr.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?M.from(s,M.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ce.classes.FormData,Blob:Ce.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Mr.headers[e]={}});const Am=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lm=e=>{const t={};let n,r,l;return e&&e.split(` `).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&Am[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ta=Symbol("internals");function er(e){return e&&String(e).trim().toLowerCase()}function wl(e){return e===!1||e==null?e:v.isArray(e)?e.map(wl):String(e)}function Im(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const zm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vo(e,t,n,r,l){if(v.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!v.isString(t)){if(v.isString(r))return t.indexOf(r)!==-1;if(v.isRegExp(r))return r.test(t)}}function Fm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Um(e,t){const n=v.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}let Me=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(s,u,a){const f=er(u);if(!f)throw new Error("header name must be a non-empty string");const h=v.findKey(l,f);(!h||l[h]===void 0||a===!0||a===void 0&&l[h]!==!1)&&(l[h||u]=wl(s))}const i=(s,u)=>v.forEach(s,(a,f)=>o(a,f,u));if(v.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(v.isString(t)&&(t=t.trim())&&!zm(t))i(Lm(t),n);else if(v.isObject(t)&&v.isIterable(t)){let s={},u,a;for(const f of t){if(!v.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[a=f[0]]=(u=s[a])?v.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}i(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=er(t),t){const r=v.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return Im(l);if(v.isFunction(n))return n.call(this,l,r);if(v.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=er(t),t){const r=v.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=er(i),i){const s=v.findKey(r,i);s&&(!n||Vo(r,r[s],s,n))&&(delete r[s],l=!0)}}return v.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||Vo(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return v.forEach(this,(l,o)=>{const i=v.findKey(r,o);if(i){n[i]=wl(l),delete n[o];return}const s=t?Fm(o):String(o).trim();s!==o&&delete n[o],n[s]=wl(l),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return v.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&v.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[ta]=this[ta]={accessors:{}}).accessors,l=this.prototype;function o(i){const s=er(i);r[s]||(Um(l,i),r[s]=!0)}return v.isArray(t)?t.forEach(o):o(t),this}};Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Me.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});v.freezeMethods(Me);function Wo(e,t){const n=this||Mr,r=t||n,l=Me.from(r.headers);let o=r.data;return v.forEach(e,function(s){o=s.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function Bf(e){return!!(e&&e.__CANCEL__)}let Br=class extends M{constructor(t,n,r){super(t??"canceled",M.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function $f(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Bm(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[o];i||(i=a),n[l]=u,r[l]=a;let h=o,y=0;for(;h!==l;)y+=n[h++],h=h%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i{n=f,l=null,o&&(clearTimeout(o),o=null),e(...a)};return[(...a)=>{const f=Date.now(),h=f-n;h>=r?i(a,f):(l=a,o||(o=setTimeout(()=>{o=null,i(l)},r-h)))},()=>l&&i(l)]}const Ql=(e,t,n=3)=>{let r=0;const l=Bm(50,250);return $m(o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-r,a=l(u),f=i<=s;r=i;const h={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},n)},na=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ra=e=>(...t)=>v.asap(()=>e(...t)),Hm=Ce.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ce.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ce.origin),Ce.navigator&&/(msie|trident)/i.test(Ce.navigator.userAgent)):()=>!0,Vm=Ce.hasStandardBrowserEnv?{write(e,t,n,r,l,o,i){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];v.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),v.isString(r)&&s.push(`path=${r}`),v.isString(l)&&s.push(`domain=${l}`),o===!0&&s.push("secure"),v.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Wm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hf(e,t,n){let r=!Wm(t);return e&&(r||n==!1)?Qm(e,t):t}const la=e=>e instanceof Me?{...e}:e;function fn(e,t){t=t||{};const n={};function r(a,f,h,y){return v.isPlainObject(a)&&v.isPlainObject(f)?v.merge.call({caseless:y},a,f):v.isPlainObject(f)?v.merge({},f):v.isArray(f)?f.slice():f}function l(a,f,h,y){if(v.isUndefined(f)){if(!v.isUndefined(a))return r(void 0,a,h,y)}else return r(a,f,h,y)}function o(a,f){if(!v.isUndefined(f))return r(void 0,f)}function i(a,f){if(v.isUndefined(f)){if(!v.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,h){if(h in t)return r(a,f);if(h in e)return r(void 0,a)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(a,f,h)=>l(la(a),la(f),h,!0)};return v.forEach(Object.keys({...e,...t}),function(f){const h=u[f]||l,y=h(e[f],t[f],f);v.isUndefined(y)&&h!==s||(n[f]=y)}),n}const Vf=e=>{const t=fn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:i,auth:s}=t;if(t.headers=i=Me.from(i),t.url=Ff(Hf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),v.isFormData(n)){if(Ce.hasStandardBrowserEnv||Ce.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(v.isFunction(n.getHeaders)){const u=n.getHeaders(),a=["content-type","content-length"];Object.entries(u).forEach(([f,h])=>{a.includes(f.toLowerCase())&&i.set(f,h)})}}if(Ce.hasStandardBrowserEnv&&(r&&v.isFunction(r)&&(r=r(t)),r||r!==!1&&Hm(t.url))){const u=l&&o&&Vm.read(o);u&&i.set(l,u)}return t},Km=typeof XMLHttpRequest<"u",Jm=Km&&function(e){return new Promise(function(n,r){const l=Vf(e);let o=l.data;const i=Me.from(l.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=l,f,h,y,E,m;function S(){E&&E(),m&&m(),l.cancelToken&&l.cancelToken.unsubscribe(f),l.signal&&l.signal.removeEventListener("abort",f)}let x=new XMLHttpRequest;x.open(l.method.toUpperCase(),l.url,!0),x.timeout=l.timeout;function d(){if(!x)return;const p=Me.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),P={data:!s||s==="text"||s==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:p,config:e,request:x};$f(function(R){n(R),S()},function(R){r(R),S()},P),x=null}"onloadend"in x?x.onloadend=d:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(d)},x.onabort=function(){x&&(r(new M("Request aborted",M.ECONNABORTED,e,x)),x=null)},x.onerror=function(_){const P=_&&_.message?_.message:"Network Error",T=new M(P,M.ERR_NETWORK,e,x);T.event=_||null,r(T),x=null},x.ontimeout=function(){let _=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const P=l.transitional||Uf;l.timeoutErrorMessage&&(_=l.timeoutErrorMessage),r(new M(_,P.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,x)),x=null},o===void 0&&i.setContentType(null),"setRequestHeader"in x&&v.forEach(i.toJSON(),function(_,P){x.setRequestHeader(P,_)}),v.isUndefined(l.withCredentials)||(x.withCredentials=!!l.withCredentials),s&&s!=="json"&&(x.responseType=l.responseType),a&&([y,m]=Ql(a,!0),x.addEventListener("progress",y)),u&&x.upload&&([h,E]=Ql(u),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",E)),(l.cancelToken||l.signal)&&(f=p=>{x&&(r(!p||p.type?new Br(null,e,x):p),x.abort(),x=null)},l.cancelToken&&l.cancelToken.subscribe(f),l.signal&&(l.signal.aborted?f():l.signal.addEventListener("abort",f)));const c=Mm(l.url);if(c&&Ce.protocols.indexOf(c)===-1){r(new M("Unsupported protocol "+c+":",M.ERR_BAD_REQUEST,e));return}x.send(o||null)})},Ym=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,l;const o=function(a){if(!l){l=!0,s();const f=a instanceof Error?a:this.reason;r.abort(f instanceof M?f:new Br(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new M(`timeout of ${t}ms exceeded`,M.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>v.asap(s),u}},qm=function*(e,t){let n=e.byteLength;if(n{const l=Xm(e,t);let o=0,i,s=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:f}=await l.next();if(a){s(),u.close();return}let h=f.byteLength;if(n){let y=o+=h;n(y)}u.enqueue(new Uint8Array(f))}catch(a){throw s(a),a}},cancel(u){return s(u),l.return()}},{highWaterMark:2})},ia=64*1024,{isFunction:ol}=v,Zm=(({Request:e,Response:t})=>({Request:e,Response:t}))(v.global),{ReadableStream:sa,TextEncoder:ua}=v.global,aa=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bm=e=>{e=v.merge.call({skipUndefined:!0},Zm,e);const{fetch:t,Request:n,Response:r}=e,l=t?ol(t):typeof fetch=="function",o=ol(n),i=ol(r);if(!l)return!1;const s=l&&ol(sa),u=l&&(typeof ua=="function"?(m=>S=>m.encode(S))(new ua):async m=>new Uint8Array(await new n(m).arrayBuffer())),a=o&&s&&aa(()=>{let m=!1;const S=new n(Ce.origin,{body:new sa,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!S}),f=i&&s&&aa(()=>v.isReadableStream(new r("").body)),h={stream:f&&(m=>m.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!h[m]&&(h[m]=(S,x)=>{let d=S&&S[m];if(d)return d.call(S);throw new M(`Response type '${m}' is not supported`,M.ERR_NOT_SUPPORT,x)})});const y=async m=>{if(m==null)return 0;if(v.isBlob(m))return m.size;if(v.isSpecCompliantForm(m))return(await new n(Ce.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(v.isArrayBufferView(m)||v.isArrayBuffer(m))return m.byteLength;if(v.isURLSearchParams(m)&&(m=m+""),v.isString(m))return(await u(m)).byteLength},E=async(m,S)=>{const x=v.toFiniteNumber(m.getContentLength());return x??y(S)};return async m=>{let{url:S,method:x,data:d,signal:c,cancelToken:p,timeout:_,onDownloadProgress:P,onUploadProgress:T,responseType:R,headers:D,withCredentials:C="same-origin",fetchOptions:F}=Vf(m),A=t||fetch;R=R?(R+"").toLowerCase():"text";let Be=Ym([c,p&&p.toAbortSignal()],_),ie=null;const _e=Be&&Be.unsubscribe&&(()=>{Be.unsubscribe()});let Je;try{if(T&&a&&x!=="get"&&x!=="head"&&(Je=await E(D,d))!==0){let V=new n(S,{method:"POST",body:d,duplex:"half"}),J;if(v.isFormData(d)&&(J=V.headers.get("content-type"))&&D.setContentType(J),V.body){const[ct,me]=na(Je,Ql(ra(T)));d=oa(V.body,ia,ct,me)}}v.isString(C)||(C=C?"include":"omit");const ce=o&&"credentials"in n.prototype,Ee={...F,signal:Be,method:x.toUpperCase(),headers:D.normalize().toJSON(),body:d,duplex:"half",credentials:ce?C:void 0};ie=o&&new n(S,Ee);let N=await(o?A(ie,F):A(S,Ee));const I=f&&(R==="stream"||R==="response");if(f&&(P||I&&_e)){const V={};["status","statusText","headers"].forEach(Ye=>{V[Ye]=N[Ye]});const J=v.toFiniteNumber(N.headers.get("content-length")),[ct,me]=P&&na(J,Ql(ra(P),!0))||[];N=new r(oa(N.body,ia,ct,()=>{me&&me(),_e&&_e()}),V)}R=R||"text";let z=await h[v.findKey(h,R)||"text"](N,m);return!I&&_e&&_e(),await new Promise((V,J)=>{$f(V,J,{data:z,headers:Me.from(N.headers),status:N.status,statusText:N.statusText,config:m,request:ie})})}catch(ce){throw _e&&_e(),ce&&ce.name==="TypeError"&&/Load failed|fetch/i.test(ce.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,m,ie),{cause:ce.cause||ce}):M.from(ce,ce&&ce.code,m,ie)}}},eg=new Map,Wf=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:l}=t,o=[r,l,n];let i=o.length,s=i,u,a,f=eg;for(;s--;)u=o[s],a=f.get(u),a===void 0&&f.set(u,a=s?new Map:bm(t)),f=a;return a};Wf();const Bs={http:ym,xhr:Jm,fetch:{get:Wf}};v.forEach(Bs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ca=e=>`- ${e}`,tg=e=>v.isFunction(e)||e===null||e===!1;function ng(e,t){e=v.isArray(e)?e:[e];const{length:n}=e;let r,l;const o={};for(let i=0;i`adapter ${u} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=n?i.length>1?`since : `+i.map(ca).join(` `):" "+ca(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return l}const Qf={getAdapter:ng,adapters:Bs};function Qo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Br(null,e)}function fa(e){return Qo(e),e.headers=Me.from(e.headers),e.data=Wo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qf.getAdapter(e.adapter||Mr.adapter,e)(e).then(function(r){return Qo(e),r.data=Wo.call(e,e.transformResponse,r),r.headers=Me.from(r.headers),r},function(r){return Bf(r)||(Qo(e),r&&r.response&&(r.response.data=Wo.call(e,e.transformResponse,r.response),r.response.headers=Me.from(r.response.headers))),Promise.reject(r)})}const Kf="1.13.4",po={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{po[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const da={};po.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Kf+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(t===!1)throw new M(l(i," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!da[i]&&(da[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,s):!0}};po.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function rg(e,t,n){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const s=e[o],u=s===void 0||i(s,o,e);if(u!==!0)throw new M("option "+o+" must be "+u,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+o,M.ERR_BAD_OPTION)}}const Sl={assertOptions:rg,validators:po},ht=Sl.validators;let ln=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ea,response:new ea}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fn(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&Sl.assertOptions(r,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),l!=null&&(v.isFunction(l)?n.paramsSerializer={serialize:l}:Sl.assertOptions(l,{encode:ht.function,serialize:ht.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Sl.assertOptions(n,{baseUrl:ht.spelling("baseURL"),withXsrfToken:ht.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&v.merge(o.common,o[n.method]);o&&v.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Me.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(u=u&&S.synchronous,s.unshift(S.fulfilled,S.rejected))});const a=[];this.interceptors.response.forEach(function(S){a.push(S.fulfilled,S.rejected)});let f,h=0,y;if(!u){const m=[fa.bind(this),void 0];for(m.unshift(...s),m.push(...a),y=m.length,f=Promise.resolve(n);h{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,s){r.reason||(r.reason=new Br(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Jf(function(l){t=l}),cancel:t}}};function og(e){return function(n){return e.apply(null,n)}}function ig(e){return v.isObject(e)&&e.isAxiosError===!0}const Hi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Hi).forEach(([e,t])=>{Hi[t]=e});function Yf(e){const t=new ln(e),n=Cf(ln.prototype.request,t);return v.extend(n,ln.prototype,t,{allOwnKeys:!0}),v.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Yf(fn(e,l))},n}const Y=Yf(Mr);Y.Axios=ln;Y.CanceledError=Br;Y.CancelToken=lg;Y.isCancel=Bf;Y.VERSION=Kf;Y.toFormData=fo;Y.AxiosError=M;Y.Cancel=Y.CanceledError;Y.all=function(t){return Promise.all(t)};Y.spread=og;Y.isAxiosError=ig;Y.mergeConfig=fn;Y.AxiosHeaders=Me;Y.formToJSON=e=>Mf(v.isHTMLForm(e)?new FormData(e):e);Y.getAdapter=Qf.getAdapter;Y.HttpStatusCode=Hi;Y.default=Y;const{Axios:dg,AxiosError:pg,CanceledError:hg,isCancel:mg,CancelToken:gg,VERSION:yg,all:vg,Cancel:wg,isAxiosError:Sg,spread:_g,toFormData:Eg,AxiosHeaders:kg,HttpStatusCode:xg,formToJSON:Ng,getAdapter:Cg,mergeConfig:Pg}=Y,Ot="https://dataapi.kitchain.cn/api/v1";function sg(){const[e,t]=b.useState(null),[n,r]=b.useState([]),[l,o]=b.useState([]),[i,s]=b.useState(""),[u,a]=b.useState(""),[f,h]=b.useState(""),[y,E]=b.useState(""),[m,S]=b.useState(!1),[x,d]=b.useState(null),[c,p]=b.useState(0),[_,P]=b.useState(null),[T,R]=b.useState(1),D=5,[C,F]=b.useState(null),[A,Be]=b.useState({steps:[],ingredients:[]}),[ie,_e]=b.useState([]),[Je,ce]=b.useState(null),[Ee,N]=b.useState([]),[I,z]=b.useState(null),[V,J]=b.useState(!1),[ct,me]=b.useState(!1),[Ye,ft]=b.useState(!1),hn=async w=>{console.log("[API] 开始查询门店数据, store_name:",w);try{const O=await Y.get(`${Ot}/stores/`,{params:{store_name:w}});console.log("[API] 门店响应完整:",O),console.log("[API] 门店响应 data:",O.data);const L=O.data;if(console.log("[API] result:",L,"code:",L.code,"data:",L.data),L.code===200&&L.data){const U=L.data.items||L.data,B=Array.isArray(U)?U[0]:U;console.log("[API] 设置门店数据:",B),t(B),p(X=>X+1),console.log("[API] currentStoreData 已设置")}else console.warn("[API] 门店响应码不为200或无data:",L)}catch(O){console.error("[API] 按名称查询门店数据失败:",O)}},qf=async w=>{try{const O={};w.dish_id!==void 0&&(O.dish_id=w.dish_id),w.dish_name&&(O.dish_name=w.dish_name),w.store_id!==void 0&&(O.store_id=w.store_id),w.store_name&&(O.store_name=w.store_name),console.log("[API] 查询原料参数:",O),P(w);const U=(await Y.get(`${Ot}/ingredients/by-dish`,{params:O})).data;if(console.log("[API] 原料响应:",JSON.stringify(U,null,2)),U.code===200&&U.data){let B;Array.isArray(U.data)?B=U.data:U.data.items?B=U.data.items:B=[];const X=B;console.log("[API] 原料数据字段:",X.length>0?Object.keys(X[0]):[]),console.log("[API] 原料数据完整内容:",JSON.stringify(X[0],null,2)),r(X),console.log("[API] 设置原料数据, 共",X.length,"条")}}catch(O){console.error("[ApiRenderPage] 查询原料数据失败:",O)}},$s=async(w,O)=>{try{const L={dish_name:w,store_name:O},B=(await Y.get(`${Ot}/steps/by-name`,{params:L})).data;console.log("[API] 步骤响应:",B);const X=Array.isArray(B.data)?B.data:[B.data].filter(Boolean);X.length>0&&(console.log("[API] 步骤数据字段:",Object.keys(X[0])),console.log("[API] 步骤数据完整内容:",JSON.stringify(X[0],null,2))),B.code===200&&B.data&&o(B.data||[])}catch(L){console.error("[ApiRenderPage] 查询步骤数据失败:",L)}},Xf=async w=>{try{const L=(await Y.get(`${Ot}/steps/${w}`)).data;if(console.log("[API] 步骤(ID)响应:",JSON.stringify(L,null,2)),L.code===200){const U=L.message||"",B=U.match(/门店\s+'([^']+)'/),X=U.match(/菜品\s+'([^']+)'/),$r=B?B[1]:"",ho=X?X[1]:"";console.log("[API] 解析 - 门店:",$r,"菜品:",ho);const q=Array.isArray(L.data)?L.data:[];console.log("[API] 步骤数据:",q),o(q),s(ho),a($r)}}catch(O){console.error("[ApiRenderPage] 查询步骤数据失败:",O)}},Gf=async(w,O,L)=>{try{await Y.post(`${Ot}/steps/batch`,{dish_name:w,store_name:O,steps:L.map(U=>({step_no:U.step_no,cooking_description:U.cooking_description,cause:U.cause,key_points:U.key_points}))})}catch(U){throw console.error("[ApiRenderPage] 批量保存步骤失败:",U),U}},Zf=async w=>{try{console.log("[API] 创建菜品, 数据:",w);const L=(await Y.post(`${Ot}/dishes/`,w)).data;if(console.log("[API] 创建菜品响应:",L),L.code!==200)throw new Error(L.message||"创建菜品失败");return L}catch(O){throw console.error("[ApiRenderPage] 创建菜品失败:",O),O}},bf=async(w,O,L)=>{try{console.log("[API] 创建步骤, dishId:",w,"storeId:",O,"steps:",L);const B=(await Y.post(`${Ot}/steps/batch`,{dish_id:w,store_id:O,steps:L})).data;if(console.log("[API] 创建步骤响应:",B),B.code!==200)throw new Error(B.message||"创建步骤失败");return B}catch(U){throw console.error("[ApiRenderPage] 创建步骤失败:",U),U}},ed=async w=>{try{console.log("[API] 创建原料, 数据:",w);const L=(await Y.post(`${Ot}/ingredients/`,w)).data;if(console.log("[API] 创建原料响应:",L),L.code!==200)throw new Error(L.message||"创建原料失败");return L}catch(O){throw console.error("[ApiRenderPage] 创建原料失败:",O),O}},td=async()=>{if(!A.dish_name){d("缺少菜品名称");return}ft(!0),d(null);try{if(await Zf({dish_name:A.dish_name}),console.log("[Stock] 菜品创建成功"),A.steps.length>0&&(await bf(0,10,A.steps.map(w=>({step_no:w.step_no,cooking_description:w.cooking_description,cause:w.cause,key_points:w.key_points}))),console.log("[Stock] 步骤创建成功")),A.ingredients.length>0){for(const w of A.ingredients)await ed({store_id:10,ing_name:w.ing_name,ing_type:w.ing_type,ing_cost:w.ing_cost,ingredient_count:w.ingredient_count,ing_amount:w.ing_amount});console.log("[Stock] 原料创建成功")}console.log("[Stock] 入库完成"),me(!1),alert("入库成功!")}catch(w){console.error("[Stock] 入库失败:",w),d("入库失败,请重试")}finally{ft(!1)}};return b.useEffect(()=>{const w=O=>{console.log("========== 收到 postMessage =========="),console.log("origin:",O.origin),console.log("data:",JSON.stringify(O.data,null,2)),console.log("======================================");const L=O.data;if((L==null?void 0:L.type)!=="tool_event"||!(L!=null&&L.event)){console.log("[Debug] 消息格式不正确");return}const U=L,{type:B,code:X,id:$r,timestamp:ho,data:q}=U.event;if(console.log(`[解析] ${X} | ${B} | id: ${$r}`,q),X==="UPDATE_STORES"){console.log("[Debug] 匹配到 UPDATE_STORES 事件"),console.log("[Debug] eventType:",B),console.log("[Debug] eventData:",JSON.stringify(q,null,2));const ue=q;if(X==="UPDATE_STORES"&&ue.code===0&&ue.data&&ue.data.items){const tt=ue.data.items[0];console.log("[Debug] 直接从事件获取门店数据:",tt),tt&&(t(tt),p(de=>de+1),console.log("[Debug] 门店数据设置成功"));return}const $=(ue.data||{}).store_name;if(console.log("[Debug] storeName:",$),!$){console.warn("[Event] 门店名称为空");return}B==="tool_event_start"&&(console.log("[Event] 开始查询门店, store_name:",$),hn(String($)))}else if(X==="UPDATE_INGREDIENTS_BY_DISH"){if(B==="tool_event_start"){console.log("[Event] 查询原料数据:",q);const W=q.data||{};r([]),_e([]),ce(null),h(""),E("");const $=W.dish_name,ne=W.store_name;if(!$||!ne){console.warn("[Event] 查询原料缺少必传参数: dish_name, store_name");return}h($),E(ne),console.log("[Event] 开始查询原料, dish_name:",$,"store_name:",ne),qf({dish_name:$,store_name:ne})}}else if(X==="UPDATE_STEPS_BY_ID"){if(B==="tool_event_start"){console.log("[Event] UPDATE_STEPS_BY_ID 数据:",q);const $=(q.data||{}).id;if(console.log("[Event] id:",$),$==null){console.warn("[Event] 查询步骤缺少必传参数: id");return}o([]),N([]),z(null),s(""),a(""),console.log("[Event] 开始按ID查询步骤, id:",$),Xf(Number($))}}else if(X==="UPDATE_STEPS_BY_NAME"){if(B==="tool_event_start"){console.log("[Event] 查询步骤数据:",q);const W=q.data||{};o([]),N([]),z(null),s(""),a("");const $=W.dish_name,ne=W.store_name;if(!$||!ne){console.warn("[Event] 查询步骤缺少必传参数: dish_name, store_name");return}s($),a(ne),console.log("[Event] 开始查询步骤, dish_name:",$,"store_name:",ne),$s($,ne)}}else if(X==="UPDATE_BATCH_STEPS_BY_NAME"){if(B==="tool_event_start"){o([]),N([]),z(null),s(""),a("");const ue=q.dish_name,W=q.store_name,$=q.steps;ue&&W&&$&&(S(!0),Gf(ue,W,$).catch(()=>d("保存步骤失败")).finally(()=>S(!1)))}else if(B==="tool_event_end"){o([]),N([]),z(null),s(""),a("");const ue=q.dish_name||q.dishName,W=q.store_name||q.storeName;ue&&$s(ue,W)}}else if(X==="DISH_CREATE"){if(B==="tool_event_end"){console.log("[Event] 菜品创建数据:",q);const ue=q,W=ue.data||{},$=ue.code,ne=ue.msg;console.log("[Event] code:",$,"msg:",ne),console.log("[Event] 菜品数据:",W),o([]),N([]),z(null),s(""),a(""),r([]),_e([]),ce(null),h(""),E("");const Re=W.dish_name,tt=W.cuisine,de=W.scene,mo=W.steps,nd=(mo==null?void 0:mo.map(dt=>({step_no:Number(dt.step_no),cooking_description:dt.cooking_description||"",cause:dt.cause||"",key_points:dt.key_points||""})))||[],go=W.ingredients,rd=(go==null?void 0:go.map(dt=>({ing_name:dt.ing_name,ing_type:Number(dt.ing_type)||1,ing_amount:Number(dt.ing_amount)||0,ing_cost:Number(dt.ing_cost)||0,ingredient_count:Number(dt.ingredient_count)||0})))||[];Be({dish_name:Re,cuisine:tt,scene:de,steps:nd,ingredients:rd}),J(!0),console.log("[Event] 菜品创建完成")}}else if(X==="CREATE_DISH_BY_NAME"){if(B==="tool_event_end"){console.log("[Event] CREATE_DISH_BY_NAME 数据:",q);const W=q.data||{};console.log("[Event] 菜品信息数据:",W),o([]),N([]),z(null),s(""),a(""),r([]),_e([]),ce(null),h(""),E("");const $=W.dish_name,ne=W.store_id,Re=W.category_name,tt=W.big_category_name;Be({dish_name:$,store_id:ne,category_name:Re,big_category_name:tt,steps:[],ingredients:[]}),J(!0),console.log("[Event] 菜品信息显示完成")}}else if(X==="UPDATE_BATCH_INGREDIENTS_BY_NAME"){if(B==="tool_event_end"){console.log("[Event] 检测到 UPDATE_BATCH_INGREDIENTS_BY_NAME 事件"),console.log("[Event] eventData:",JSON.stringify(q,null,2));const W=q.data||{};console.log("[Event] dataObj:",JSON.stringify(W,null,2)),r([]),_e([]),ce(null),h(""),E("");const $=W.resolved;console.log("[Event] resolved:",JSON.stringify($,null,2));const ne={store_id:Number($==null?void 0:$.store_id)||0,store_name:($==null?void 0:$.store_name)||"",dish_id:Number($==null?void 0:$.dish_id)||0,dish_name:($==null?void 0:$.dish_name)||""};ce(ne);const Re=W.created;console.log("[Event] createdData:",JSON.stringify(Re,null,2));const tt=(Re||[]).map(de=>({id:Number(de.id)||0,store_id:Number(de.store_id)||0,dish_id:Number(de.dish_id)||0,ing_name:de.ing_name||"",ing_type:Number(de.ing_type)||0,ing_cost:Number(de.ing_cost)||0,ingredient_count:Number(de.ingredient_count)||0,ing_amount:Number(de.ing_amount)||0,ing_yield_rate:Number(de.ing_yield_rate)||0,ing_process_ratio:Number(de.ing_process_ratio)||0,ing_ratio:Number(de.ing_ratio)||0,ing_type_code:de.ing_type_code||"",ing_spec:de.ing_spec||"",ing_weight_g:Number(de.ing_weight_g)||0,ing_id:Number(de.ing_id)||0}));console.log("[Event] newBatchIngredients:",JSON.stringify(tt,null,2)),_e(tt),console.log("[Event] 批量原料加载完成,共",tt.length,"条")}}else if(X==="CREATE_BATCH_STEPS_WITH_DETAIL"&&B==="tool_event_end"){console.log("[Event] 检测到 CREATE_BATCH_STEPS_WITH_DETAIL 事件"),console.log("[Event] eventData:",JSON.stringify(q,null,2));const W=q.data;console.log("[Event] dataArray:",JSON.stringify(W,null,2)),o([]),N([]),z(null),s(""),a("");const $=(W||[]).map(Re=>({id:Number(Re.id)||0,dish_id:Number(Re.dish_id)||0,store_id:Number(Re.store_id)||0,step_no:Number(Re.step_no)||0,cooking_description:Re.cooking_description||"",cause:Re.cause||"",key_points:Re.key_points||""})),ne=W==null?void 0:W[0];z({store_id:Number(ne==null?void 0:ne.store_id)||0,dish_id:Number(ne==null?void 0:ne.dish_id)||0}),console.log("[Event] newBatchSteps:",JSON.stringify($,null,2)),N($),console.log("[Event] 批量步骤加载完成,共",$.length,"条")}};return window.addEventListener("message",w),()=>window.removeEventListener("message",w)},[]),g.jsxs("div",{className:"api-render-page",children:[m&&g.jsx("div",{className:"empty-store",children:g.jsx("p",{children:"正在处理..."})}),x&&!m&&g.jsxs("div",{className:"empty-store",children:[g.jsxs("p",{style:{color:"#c41e3a"},children:["错误: ",x]}),g.jsx("p",{className:"hint",children:"请检查后端服务是否启动"})]}),e&&g.jsxs("div",{className:"store-info-panel",children:[g.jsxs("div",{className:"panel-header",children:[g.jsx("h3",{children:"门店信息"}),g.jsxs("span",{className:"store-id",children:["ID: ",e.id]})]}),g.jsxs("div",{className:"store-info-content",children:[g.jsxs("div",{className:"info-row",children:[g.jsx("span",{className:"info-label",children:"门店名称:"}),g.jsx("span",{className:"info-value store-name",children:e.store_name||"-"})]}),g.jsxs("div",{className:"info-row",children:[g.jsx("span",{className:"info-label",children:"ID:"}),g.jsx("span",{className:"info-value",children:e.id})]}),g.jsxs("div",{className:"info-row",children:[g.jsx("span",{className:"info-label",children:"门店编号:"}),g.jsx("span",{className:"info-value",children:e.store_id||"-"})]})]})]}),(A.dish_name||A.category_name||A.big_category_name||A.store_id!==void 0||A.cuisine||A.steps.length>0||A.ingredients.length>0)&&g.jsxs("div",{className:`dish-create-panel ${V?"completed":""}`,children:[g.jsxs("div",{className:"panel-header",children:[g.jsx("h3",{children:"菜品信息"}),A.dish_name&&g.jsx("span",{className:`dish-status ${V?"completed":"creating"}`,children:V?"创建完成":"创建中"})]}),g.jsx("div",{className:"dish-create-content",children:g.jsxs("div",{className:"dish-basic-info",children:[A.dish_name&&g.jsx("div",{className:"dish-name",children:A.dish_name}),A.store_id!==void 0&&g.jsxs("div",{className:"dish-store-id",children:[g.jsx("span",{className:"label",children:"门店ID:"}),g.jsx("span",{className:"value",children:A.store_id})]}),A.category_name&&g.jsx("span",{className:"tag cuisine",children:A.category_name}),A.big_category_name&&g.jsx("span",{className:"tag category",children:A.big_category_name})]})})]}),(l.length>0||n.length>0||A.steps.length>0||A.ingredients.length>0||Ee.length>0||ie.length>0)&&g.jsxs("div",{className:"detail-grid",children:[g.jsxs("div",{className:"steps-panel",children:[g.jsxs("div",{className:"panel-header",children:[g.jsxs("div",{children:[g.jsx("h3",{children:"制作流程"}),I&&Ee.length>0&&g.jsxs("div",{className:"query-info",style:{fontSize:"12px",color:"#666",marginTop:"4px"},children:[I.store_id!==0&&g.jsxs("span",{children:["门店ID: ",I.store_id]}),I.store_id!==0&&I.dish_id!==0&&g.jsx("span",{style:{marginLeft:"12px"},children:"|"}),I.dish_id!==0&&g.jsxs("span",{style:{marginLeft:"12px"},children:["菜品ID: ",I.dish_id]})]}),(i||u)&&g.jsxs("div",{className:"query-info",style:{fontSize:"12px",color:"#666",marginTop:"4px"},children:[i&&g.jsxs("span",{children:["菜品: ",i]}),i&&u&&g.jsx("span",{style:{marginLeft:"12px"},children:"|"}),u&&g.jsxs("span",{style:{marginLeft:"12px"},children:["门店: ",u]})]})]}),g.jsxs("span",{className:"steps-count",children:["共 ",(A.steps.length>0?A.steps:Ee.length>0?Ee:l).length," 道工序"]})]}),g.jsx("div",{className:"steps-table-container",children:g.jsxs("table",{className:"steps-table",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{className:"col-step-num",children:"序号"}),g.jsx("th",{className:"col-step-desc",children:"步骤"}),g.jsx("th",{className:"col-step-cause",children:"原因"}),g.jsx("th",{className:"col-step-points",children:"要点"})]})}),g.jsx("tbody",{children:Ee.length>0?Ee.sort((w,O)=>w.step_no-O.step_no).map((w,O)=>{const L=(C==null?void 0:C.rowId)===O&&(C==null?void 0:C.col)==="desc",U=(C==null?void 0:C.rowId)===O&&(C==null?void 0:C.col)==="cause",B=(C==null?void 0:C.rowId)===O&&(C==null?void 0:C.col)==="points";return g.jsxs("tr",{children:[g.jsx("td",{className:"col-step-num",children:w.step_no}),g.jsx("td",{className:L?"cell-expanded":"cell-truncate",onDoubleClick:()=>F(L?null:{rowId:O,col:"desc"}),children:L?w.cooking_description:(w.cooking_description||"-").length>5?`${(w.cooking_description||"-").slice(0,5)}...`:w.cooking_description||"-"}),g.jsx("td",{className:U?"cell-expanded":"cell-truncate",onDoubleClick:()=>F(U?null:{rowId:O,col:"cause"}),children:U?w.cause:(w.cause||"-").length>5?`${(w.cause||"-").slice(0,5)}...`:w.cause||"-"}),g.jsx("td",{className:B?"cell-expanded":"cell-truncate",onDoubleClick:()=>F(B?null:{rowId:O,col:"points"}),children:B?w.key_points:(w.key_points||"-").length>5?`${(w.key_points||"-").slice(0,5)}...`:w.key_points||"-"})]},`batch-step-${w.id}`)}):A.steps.length>0?A.steps.sort((w,O)=>w.step_no-O.step_no).map((w,O)=>{const L=(C==null?void 0:C.rowId)===O&&(C==null?void 0:C.col)==="desc",U=(C==null?void 0:C.rowId)===O&&(C==null?void 0:C.col)==="cause",B=(C==null?void 0:C.rowId)===O&&(C==null?void 0:C.col)==="points";return g.jsxs("tr",{children:[g.jsx("td",{className:"col-step-num",children:w.step_no}),g.jsx("td",{className:L?"cell-expanded":"cell-truncate",onDoubleClick:()=>F(L?null:{rowId:O,col:"desc"}),children:L?w.cooking_description:(w.cooking_description||"-").length>5?`${(w.cooking_description||"-").slice(0,5)}...`:w.cooking_description||"-"}),g.jsx("td",{className:U?"cell-expanded":"cell-truncate",onDoubleClick:()=>F(U?null:{rowId:O,col:"cause"}),children:U?w.cause:(w.cause||"-").length>5?`${(w.cause||"-").slice(0,5)}...`:w.cause||"-"}),g.jsx("td",{className:B?"cell-expanded":"cell-truncate",onDoubleClick:()=>F(B?null:{rowId:O,col:"points"}),children:B?w.key_points:(w.key_points||"-").length>5?`${(w.key_points||"-").slice(0,5)}...`:w.key_points||"-"})]},`create-step-${w.step_no}`)}):l.length>0?l.sort((w,O)=>w.step_no-O.step_no).map(w=>{const O=(C==null?void 0:C.rowId)===w.id&&(C==null?void 0:C.col)==="desc",L=(C==null?void 0:C.rowId)===w.id&&(C==null?void 0:C.col)==="cause",U=(C==null?void 0:C.rowId)===w.id&&(C==null?void 0:C.col)==="points";return g.jsxs("tr",{children:[g.jsx("td",{className:"col-step-num",children:w.step_no}),g.jsx("td",{className:O?"cell-expanded":"cell-truncate",onDoubleClick:()=>F(O?null:{rowId:w.id,col:"desc"}),children:O?w.cooking_description:(w.cooking_description||"-").length>5?`${(w.cooking_description||"-").slice(0,5)}...`:w.cooking_description||"-"}),g.jsx("td",{className:L?"cell-expanded":"cell-truncate",onDoubleClick:()=>F(L?null:{rowId:w.id,col:"cause"}),children:L?w.cause:(w.cause||"-").length>5?`${(w.cause||"-").slice(0,5)}...`:w.cause||"-"}),g.jsx("td",{className:U?"cell-expanded":"cell-truncate",onDoubleClick:()=>F(U?null:{rowId:w.id,col:"points"}),children:U?w.key_points:(w.key_points||"-").length>5?`${(w.key_points||"-").slice(0,5)}...`:w.key_points||"-"})]},w.id)}):g.jsx("tr",{children:g.jsx("td",{colSpan:4,style:{textAlign:"center",color:"#999",padding:"20px"},children:"暂无步骤数据"})})})]})}),g.jsx("div",{className:"steps-footer",children:g.jsx("div",{className:"steps-summary",children:g.jsxs("span",{children:["共 ",(A.steps.length>0?A.steps:Ee.length>0?Ee:l).length," 道工序"]})})})]}),g.jsxs("div",{className:"ingredient-panel",children:[g.jsxs("div",{className:"panel-header",children:[g.jsxs("div",{children:[g.jsx("h3",{children:"原料成本明细"}),Je&&ie.length>0&&g.jsxs("div",{className:"query-info",style:{fontSize:"12px",color:"#666",marginTop:"4px"},children:[Je.store_id!==0&&g.jsxs("span",{children:["门店ID: ",Je.store_id]}),Je.store_id!==0&&Je.dish_id!==0&&g.jsx("span",{style:{marginLeft:"12px"},children:"|"}),Je.dish_id!==0&&g.jsxs("span",{style:{marginLeft:"12px"},children:["菜品ID: ",Je.dish_id]})]}),(f||y)&&g.jsxs("div",{className:"query-info",style:{fontSize:"12px",color:"#666",marginTop:"4px"},children:[f&&g.jsxs("span",{children:["菜品: ",f]}),f&&y&&g.jsx("span",{style:{marginLeft:"12px"},children:"|"}),y&&g.jsxs("span",{style:{marginLeft:"12px"},children:["门店: ",y]})]})]}),g.jsxs("span",{className:"ingredient-count",children:["共 ",(A.ingredients.length>0?A.ingredients:ie.length>0?ie:n).length," 种原料"]})]}),g.jsx("div",{className:"ingredient-table-container",children:g.jsxs("table",{className:"ingredient-table",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{className:"col-ingredient",children:"原料名称"}),g.jsx("th",{className:"col-amount",children:"用量"}),g.jsx("th",{className:"col-unit-price",children:"单价(元)"}),g.jsx("th",{className:"col-subtotal",children:"小计"})]})}),g.jsx("tbody",{children:ie.length>0?ie.map((w,O)=>g.jsxs("tr",{children:[g.jsx("td",{className:"col-ingredient",children:w.ing_name||"-"}),g.jsx("td",{className:"col-amount",children:w.ing_amount}),g.jsx("td",{className:"col-unit-price",children:w.ing_cost.toFixed(2)}),g.jsx("td",{className:"col-subtotal",children:w.ingredient_count.toFixed(2)})]},`batch-ing-${O}`)):A.ingredients.length>0?A.ingredients.map((w,O)=>g.jsxs("tr",{children:[g.jsx("td",{className:"col-ingredient",children:w.ing_name}),g.jsx("td",{className:"col-amount",children:w.ing_amount}),g.jsx("td",{className:"col-unit-price",children:w.ing_cost.toFixed(2)}),g.jsx("td",{className:"col-subtotal",children:w.ingredient_count.toFixed(2)})]},`create-ing-${O}`)):n.length>0?(()=>{const w=(T-1)*D,O=w+D;return n.slice(w,O).map((U,B)=>g.jsxs("tr",{children:[g.jsxs("td",{className:"col-ingredient",children:[g.jsx("span",{className:"ingredient-type-badge",children:U.ing_type_name}),U.ing_name]}),g.jsx("td",{className:"col-amount",children:U.ing_amount}),g.jsx("td",{className:"col-unit-price",children:U.ing_cost.toFixed(2)}),g.jsx("td",{className:"col-subtotal",children:U.ingredient_count.toFixed(2)})]},U.id||w+B))})():g.jsx("tr",{children:g.jsx("td",{colSpan:4,style:{textAlign:"center",color:"#999",padding:"20px"},children:"暂无原料数据"})})})]})}),g.jsxs("div",{className:"ingredient-footer",children:[A.ingredients.length===0&&ie.length===0&&n.length>0&&g.jsxs("div",{className:"ingredient-pagination",children:[g.jsx("button",{className:"page-btn",disabled:T<=1,onClick:()=>R(T-1),children:"上一页"}),g.jsxs("span",{className:"page-info",children:[Math.ceil(n.length/D)," 页 / ",T," 页"]}),g.jsx("button",{className:"page-btn",disabled:T>=Math.ceil(n.length/D),onClick:()=>R(T+1),children:"下一页"})]}),g.jsxs("div",{className:"cost-summary",children:[g.jsx("span",{className:"cost-label",children:"单价求和:"}),g.jsxs("span",{className:"cost-value",children:[(ie.length>0?ie.reduce((w,O)=>w+O.ing_cost,0):A.ingredients.length>0?A.ingredients.reduce((w,O)=>w+O.ing_cost,0):n.reduce((w,O)=>w+(O.ing_cost||0),0)).toFixed(2)," 元"]})]})]})]})]}),!e&&n.length===0&&l.length===0&&A.steps.length===0&&A.ingredients.length===0&&ie.length===0&&Ee.length===0&&!x&&!m&&g.jsxs("div",{className:"empty-store",children:[g.jsx("p",{children:"暂无数据"}),g.jsx("p",{className:"hint",children:"通过 postMessage 发送事件更新数据"})]}),g.jsxs("footer",{className:"render-footer",children:[A.scene&&g.jsxs("div",{className:"dish-scene",children:[g.jsx("span",{className:"scene-label",children:"推荐场景:"}),g.jsx("span",{className:"scene-value",children:A.scene})]}),g.jsxs("div",{className:"footer-right",children:[g.jsx("button",{className:"action-btn save",children:"💾 保存"}),g.jsx("button",{className:"action-btn stock",onClick:()=>me(!0),disabled:!V,children:"📦 入库"})]})]}),ct&&g.jsx("div",{className:"modal-overlay",onClick:()=>!Ye&&me(!1),children:g.jsxs("div",{className:"modal-content",onClick:w=>w.stopPropagation(),children:[g.jsxs("div",{className:"modal-header",children:[g.jsx("h3",{children:"确认入库"}),!Ye&&g.jsx("button",{className:"modal-close",onClick:()=>me(!1),children:"×"})]}),g.jsxs("div",{className:"modal-body",children:[g.jsx("p",{children:"确定要将以下菜品信息入库吗?"}),g.jsxs("div",{className:"stock-summary",children:[g.jsxs("div",{className:"stock-item",children:[g.jsx("span",{className:"stock-label",children:"菜品名称:"}),g.jsx("span",{className:"stock-value",children:A.dish_name||"-"})]}),g.jsxs("div",{className:"stock-item",children:[g.jsx("span",{className:"stock-label",children:"菜系:"}),g.jsx("span",{className:"stock-value",children:A.cuisine||"-"})]}),g.jsxs("div",{className:"stock-item",children:[g.jsx("span",{className:"stock-label",children:"制作工序:"}),g.jsxs("span",{className:"stock-value",children:[A.steps.length," 道"]})]}),g.jsxs("div",{className:"stock-item",children:[g.jsx("span",{className:"stock-label",children:"原料种类:"}),g.jsxs("span",{className:"stock-value",children:[A.ingredients.length," 种"]})]})]})]}),g.jsxs("div",{className:"modal-footer",children:[g.jsx("button",{className:"btn btn-cancel",onClick:()=>me(!1),disabled:Ye,children:"取消"}),g.jsx("button",{className:"btn btn-confirm",onClick:td,disabled:Ye,children:Ye?"入库中...":"确认入库"})]})]})})]},c)}function ug(){return g.jsx(sg,{})}Ko.createRoot(document.getElementById("root")).render(g.jsx(Sd.StrictMode,{children:g.jsx(ug,{})}));