diff --git a/dist/copilot_web/App-DFg5976E.js b/dist/copilot_web/App-DFg5976E.js deleted file mode 100644 index 9f04249..0000000 --- a/dist/copilot_web/App-DFg5976E.js +++ /dev/null @@ -1,14 +0,0 @@ -function getImportPath(filename) { - return `./${filename}`; - } - const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["copilot_web/workflowChat-DRLZy61n.js","copilot_web/vendor-markdown-BAJQc3l1.js","copilot_web/vendor-react-Dixhfmvb.js","copilot_web/message-components-DtpRtuWw.js","copilot_web/input.js","copilot_web/assets/input-Dx1yyZQD.css","copilot_web/fonts.css"].map(path => { - const apiBase = window.comfyAPI?.api?.api?.api_base; - if (apiBase) { - // 有 API base 时,使用完整路径 - return `${apiBase.substring(1)}/${path}`; - } else { - // 没有 API base 时,使用相对路径 - return `./${path}`; - } - }))))=>i.map(i=>d[i]); -import{_ as a}from"./input.js";import{j as o}from"./vendor-markdown-BAJQc3l1.js";import{r as t,R as i}from"./vendor-react-Dixhfmvb.js";import{C as n}from"./message-components-DtpRtuWw.js";const s={EXPLAIN_NODE:"copilot:explain-node",TOOLBOX_USAGE:"copilot:toolbox-usage",TOOLBOX_PARAMETERS:"copilot:toolbox-parameters",TOOLBOX_DOWNSTREAMNODES:"copilot:toolbox-downstreamnodes"},d=i.lazy(()=>a(()=>import(getImportPath("workflowChat-DRLZy61n.js")).then(e=>e.w),__vite__mapDeps([0,1,2,3,4,5,6])).then(e=>({default:e.default})));function c(){const[e,r]=t.useState(!1);return t.useEffect(()=>{const l=()=>{r(!0)};return window.addEventListener(s.EXPLAIN_NODE,l),()=>window.removeEventListener(s.EXPLAIN_NODE,l)},[]),o.jsx(n,{children:o.jsx("div",{className:"h-full w-full flex flex-col",children:o.jsx(t.Suspense,{fallback:o.jsx("div",{className:"h-full w-full flex items-center justify-center",children:"Loading..."}),children:o.jsx(d,{visible:!0,triggerUsage:e,onUsageTriggered:()=>r(!1)})})})})}const O=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}));export{O as A,s as C}; diff --git a/dist/copilot_web/DebugGuide-BqZDgqyf.js b/dist/copilot_web/DebugGuide-BqZDgqyf.js deleted file mode 100644 index 383c8e8..0000000 --- a/dist/copilot_web/DebugGuide-BqZDgqyf.js +++ /dev/null @@ -1,5 +0,0 @@ -function getImportPath(filename) { - return `./${filename}`; - } - import{j as s}from"./vendor-markdown-BAJQc3l1.js";import{r as i}from"./vendor-react-Dixhfmvb.js";import{u as A,B as D,R as E,h as x,a as m,W as b}from"./message-components-DtpRtuWw.js";function M({content:f,name:k="Assistant",avatar:O,onAddMessage:y,onUpdateMessage:c,messageId:w}){const{dispatch:u,abortControllerRef:l}=A(),[d,_]=i.useState(!1),[T,G]=i.useState(""),[J,S]=i.useState(!1),[j,N]=i.useState(null),r=i.useMemo(()=>{try{return JSON.parse(f)}catch(e){return console.error("Failed to parse message content:",e),null}},[f]),h=i.useMemo(()=>{if(!r||!r.ext)return null;const e=r.ext.find(t=>t.type==="debug_start_checkpoint"||t.type==="debug_checkpoint"&&t.data?.checkpoint_type==="debug_start");return e&&e.data&&e.data.checkpoint_id?e.data.checkpoint_id:null},[r])||j,C=async()=>{if(d)return;const e=x(),t={id:e,role:"ai",content:JSON.stringify({text:`🔍 Starting workflow analysis... -`,ext:[]}),format:"markdown",name:"Assistant",finished:!1,debugGuide:!0};y?.(t);try{await v(),u({type:"SET_LOADING",payload:!0}),await I(e)}finally{_(!1)}},v=async()=>{try{const e=await m.graphToPrompt(),t=localStorage.getItem("sessionId")||"";if(t&&e){const n=await b.saveWorkflowCheckpoint(t,e.output,e.workflow,"debug_start");if(N(n.version_id),console.log(`Saved debug start checkpoint: ${n.version_id}`),c&&r){const o=[...r.ext||[]].filter(g=>g.type!=="debug_start_checkpoint"&&!(g.type==="debug_checkpoint"&&g.data?.checkpoint_type==="debug_start"));o.push({type:"debug_start_checkpoint",data:{checkpoint_id:n.version_id,checkpoint_type:"debug_start"}});const p={id:w||x(),role:"ai",content:JSON.stringify({text:r.text,ext:o}),format:"debug_guide",name:"Assistant"};c(p)}}}catch(e){console.error("Failed to save checkpoint before debug:",e)}},I=async e=>{try{const t=await m.graphToPrompt();let n="",a=null;l&&(l.current=new AbortController);for await(const o of b.streamDebugAgent(t,l?.current?.signal||void 0))if(o.text){n=o.text,o.ext&&(a=o.ext);const p={id:e,role:"ai",content:JSON.stringify({text:n,ext:a||[]}),format:"markdown",name:"Assistant",finished:!1,debugGuide:!0};c?.(p)}c?.({id:e,role:"ai",content:JSON.stringify({text:n,ext:a||[]}),format:"markdown",name:"Assistant",finished:!0,debugGuide:!0}),u({type:"SET_LOADING",payload:!1}),l.current=null}catch(t){console.error("Error calling debug agent:",t),S(!1);const a={id:e,role:"ai",content:JSON.stringify({text:`I encountered an error while analyzing your workflow: ${t.message||"Unknown error"}`,ext:[]}),format:"markdown",name:"Assistant",finished:!0};c?.(a),u({type:"SET_LOADING",payload:!1}),l.current=null}};return r?s.jsx(D,{name:k,children:s.jsxs("div",{className:"bg-gray-100 pt-4 px-4 pb-3 rounded-lg",children:[s.jsx("div",{className:"flex justify-between items-start",children:s.jsx("p",{className:"text-gray-700 text-sm flex-1",children:r.text})}),s.jsx("div",{className:"flex justify-end mt-4",children:s.jsx("button",{onClick:C,disabled:d,className:`debug-btn bg-debug-btn text-sm text-[#fff] rounded-lg px-4 py-2 ${d?"cursor-not-allowed":"cursor-pointer"}`,children:d?"Analyzing...":"Debug Errors"})}),s.jsx("div",{className:"flex justify-end mt-2",children:!!h&&s.jsx("div",{className:"ml-2 flex-shrink-0",children:s.jsx(E,{checkpointId:h,onRestore:()=>{console.log("Workflow restored from checkpoint")}})})})]})}):null}export{M as DebugGuide}; diff --git a/dist/copilot_web/DebugResult-DS9tfz5k.js b/dist/copilot_web/DebugResult-DS9tfz5k.js deleted file mode 100644 index 8ccfa81..0000000 --- a/dist/copilot_web/DebugResult-DS9tfz5k.js +++ /dev/null @@ -1,4 +0,0 @@ -function getImportPath(filename) { - return `./${filename}`; - } - import{j as e}from"./vendor-markdown-BAJQc3l1.js";import{b as f,c as h,B as m,p as u,R as w}from"./message-components-DtpRtuWw.js";import{r as k}from"./vendor-react-Dixhfmvb.js";import{B as j}from"./workflowChat-DRLZy61n.js";import"./input.js";/* empty css */import"./App-DFg5976E.js";const v=i=>{const{title:a="",isWorkflowUpdate:d=!1,className:n="",children:c}=i,[s,r]=k.useState(!1);return e.jsx(j,{className:"rounded-lg ",borderClassName:"rounded-lg",children:e.jsxs("div",{className:`flex flex-col ${n} ${s?"":"max-h-[200px]"}`,children:[e.jsxs("div",{className:"flex justify-between items-center pb-2 border-b border-gray-100",children:[e.jsx("div",{children:typeof a=="string"?e.jsx("h3",{className:"text-sm text-[#fff] font-medium",children:a}):a}),e.jsx("button",{onClick:()=>{r(!s)},children:s?e.jsx(f,{className:"text-gray-700"}):e.jsx(h,{className:"text-gray-700"})})]}),e.jsx("div",{className:"overflow-hidden flex-1",children:c})]})})};function B({content:i,name:a="Assistant",avatar:d,format:n="markdown"}){const c=()=>{let s=null,r=!1,o;try{if(o=JSON.parse(i),o.ext){let t=o.ext.find(l=>l.type==="workflow_rewrite_checkpoint"||l.type==="debug_checkpoint"&&l.data?.checkpoint_type==="workflow_rewrite_start");t&&t.data&&t.data.checkpoint_id?(s=t.data.checkpoint_id,r=!0):(t=o.ext.find(l=>l.type==="workflow_rewrite_complete"),t&&t.data&&t.data.version_id?(s=t.data.version_id,r=!0):(t=o.ext.find(l=>l.type==="debug_checkpoint"),t&&t.data&&t.data.checkpoint_id&&(s=t.data.checkpoint_id,r=!1))),o.ext.find(l=>l.type==="workflow_update")&&(r=!0)}}catch(t){return console.error("Failed to parse DebugResult content:",t),null}const x=r?e.jsxs("div",{className:"flex items-center text-green-500",children:[e.jsx("svg",{className:"w-5 h-5 mr-2",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),e.jsx("h4",{className:"font-bold text-xl",children:"Workflow Updated Successfully"})]}):e.jsxs("div",{className:"flex items-center text-gray-900",children:[e.jsx("svg",{className:"w-5 h-5 mr-2",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"28108",fill:"currentColor",children:e.jsx("path",{d:"M401.048025 844.855924c0 20.341281 16.643052 36.984333 36.984333 36.984333l147.936307 0c20.341281 0 36.984333-16.643052 36.984333-36.984333L622.952998 807.872614 401.048025 807.872614 401.048025 844.855924zM512 142.159744c-142.943596 0-258.888282 115.944686-258.888282 258.888282 0 88.021729 44.011376 165.503405 110.951975 212.288964l0 83.58365c0 20.341281 16.643052 36.984333 36.984333 36.984333l221.903949 0c20.341281 0 36.984333-16.643052 36.984333-36.984333l0-83.58365c66.941622-46.784536 110.951975-124.266212 110.951975-212.288964C770.888282 258.104429 654.943596 142.159744 512 142.159744zM617.588827 552.682561l-31.621185 22.005176 0 85.248569L438.031335 659.936307l0-85.063351L406.41015 552.866756c-49.743938-34.764781-79.33079-91.350544-79.33079-151.634536 0-101.890598 83.029018-184.92064 184.92064-184.92064s184.92064 83.029018 184.92064 184.92064C696.919617 461.332017 667.332764 517.91778 617.588827 552.682561z","p-id":"28277"})}),e.jsx("h4",{className:"font-bold text-xl",children:"Workflow Updated Finished"})]}),p=r?e.jsx("div",{className:"mt-3 text-xs text-gray-700",children:"💡 If you're not satisfied with the changes, click the restore button to revert to the previous version."}):null;return e.jsxs("div",{className:"sticky top-0 left-0 w-full bg-gray-100 p-4 rounded-lg overflow-hidden",children:[e.jsx(v,{title:x,isWorkflowUpdate:r,className:"p-4",children:e.jsxs("div",{className:"prose prose-sm max-w-none",children:[n==="markdown"?e.jsx(u,{response:o||{}}):e.jsx("pre",{className:"whitespace-pre-wrap text-gray-700 text-sm leading-relaxed h-full",children:o?.text||""}),p]})}),e.jsx("div",{className:"flex justify-end mt-2",children:!!s&&e.jsx("div",{className:"ml-2 flex-shrink-0",children:e.jsx(w,{checkpointId:s,onRestore:()=>{console.log(`Workflow restored from ${r?"workflow update":"debug"} checkpoint`)},title:r?`Restore to this version (Version ${s})`:`Restore checkpoint ${s}`})})})]})};return e.jsx(m,{name:a,children:c()})}export{B as DebugResult}; diff --git a/dist/copilot_web/WorkflowOption-DuOwKePw.js b/dist/copilot_web/WorkflowOption-DuOwKePw.js deleted file mode 100644 index 51884f3..0000000 --- a/dist/copilot_web/WorkflowOption-DuOwKePw.js +++ /dev/null @@ -1,71 +0,0 @@ -function getImportPath(filename) { - return `./${filename}`; - } - import{j as ue}from"./vendor-markdown-BAJQc3l1.js";import{W as Si,h as Wa,a as Wt}from"./message-components-DtpRtuWw.js";import{g as _u,R as Oe,b as Ba,r as h,d as Ca,a as Ou}from"./vendor-react-Dixhfmvb.js";var ns={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var r={}.hasOwnProperty;function t(){for(var a="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},t=[];return Oe.Children.forEach(e,function(n){n==null&&!r.keepEmpty||(Array.isArray(n)?t=t.concat(Rn(n)):is(n)&&n.props?t=t.concat(Rn(n.props.children,r)):t.push(n))}),t}var Vi={},$u=function(r){};function ju(e,r){}function Vu(e,r){}function Iu(){Vi={}}function as(e,r,t){!r&&!Vi[t]&&(e(!1,t),Vi[t]=!0)}function et(e,r){as(ju,e,r)}function Lu(e,r){as(Vu,e,r)}et.preMessage=$u;et.resetWarned=Iu;et.noteOnce=Lu;function Nu(e,r){if(q(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(q(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function os(e){var r=Nu(e,"string");return q(r)=="symbol"?r:r+""}function E(e,r,t){return(r=os(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function qa(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function F(e){for(var r=1;r=19)return!0;var i=Ci.isMemo(r)?r.type.type:r.type;return!(typeof i=="function"&&!((t=i.prototype)!==null&&t!==void 0&&t.render)&&i.$$typeof!==Ci.ForwardRef||typeof r=="function"&&!((n=r.prototype)!==null&&n!==void 0&&n.render)&&r.$$typeof!==Ci.ForwardRef)};function ls(e){return h.isValidElement(e)&&!is(e)}var ka=function(r){if(r&&ls(r)){var t=r;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},Ii=h.createContext(null);function qu(e){var r=e.children,t=e.onBatchResize,n=h.useRef(0),i=h.useRef([]),a=h.useContext(Ii),o=h.useCallback(function(s,u,c){n.current+=1;var l=n.current;i.current.push({size:s,element:u,data:c}),Promise.resolve().then(function(){l===n.current&&(t?.(i.current),i.current=[])}),a?.(s,u,c)},[t,a]);return h.createElement(Ii.Provider,{value:o},r)}var fs=function(){if(typeof Map<"u")return Map;function e(r,t){var n=-1;return r.some(function(i,a){return i[0]===t?(n=a,!0):!1}),n}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},r.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},r.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,n){n===void 0&&(n=null);for(var i=0,a=this.__entries__;i0},e.prototype.connect_=function(){!Li||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Qu?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Li||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(r){var t=r.propertyName,n=t===void 0?"":t,i=Zu.some(function(a){return!!~n.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ds=function(e,r){for(var t=0,n=Object.keys(r);t"u"||!(Element instanceof Object))){if(!(r instanceof gr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)||(t.set(r,new oc(r)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof gr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)&&(t.delete(r),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&r.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new sc(n.target,n.broadcastRect())});this.callback_.call(r,t,r),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),hs=typeof WeakMap<"u"?new WeakMap:new fs,gs=function(){function e(r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=Ju.getInstance(),n=new uc(r,t,this);hs.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){gs.prototype[e]=function(){var r;return(r=hs.get(this))[e].apply(r,arguments)}});var cc=function(){return typeof An.ResizeObserver<"u"?An.ResizeObserver:gs}(),Tt=new Map;function lc(e){e.forEach(function(r){var t,n=r.target;(t=Tt.get(n))===null||t===void 0||t.forEach(function(i){return i(n)})})}var ms=new cc(lc);function fc(e,r){Tt.has(e)||(Tt.set(e,new Set),ms.observe(e)),Tt.get(e).add(r)}function dc(e,r){Tt.has(e)&&(Tt.get(e).delete(r),Tt.get(e).size||(ms.unobserve(e),Tt.delete(e)))}function Me(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ga(e,r){for(var t=0;te.length)&&(r=e.length);for(var t=0,n=Array(r);t1&&arguments[1]!==void 0?arguments[1]:1;Ka+=1;var n=Ka;function i(a){if(a===0)ws(n),r();else{var o=ys(function(){i(a-1)});Ta.set(n,o)}}return i(t),n};zi.cancel=function(e){var r=Ta.get(e);return ws(e),bs(r)};function Ss(e){if(Array.isArray(e))return e}function Sc(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(s.push(n.value),s.length!==r);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Cs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(e,r){return Ss(e)||Sc(e,r)||Ma(e,r)||Cs()}function zr(e){for(var r=0,t,n=0,i=e.length;i>=4;++n,i-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function tt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cc(e,r){if(!e)return!1;if(e.contains)return e.contains(r);for(var t=r;t;){if(t===e)return!0;t=t.parentNode}return!1}var Xa="data-rc-order",Za="data-rc-priority",xc="rc-util-key",Di=new Map;function xs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.mark;return r?r.startsWith("data-")?r:"data-".concat(r):xc}function Jn(e){if(e.attachTo)return e.attachTo;var r=document.querySelector("head");return r||document.body}function Ec(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ra(e){return Array.from((Di.get(e)||e).children).filter(function(r){return r.tagName==="STYLE"})}function Es(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!tt())return null;var t=r.csp,n=r.prepend,i=r.priority,a=i===void 0?0:i,o=Ec(n),s=o==="prependQueue",u=document.createElement("style");u.setAttribute(Xa,o),s&&a&&u.setAttribute(Za,"".concat(a)),t!=null&&t.nonce&&(u.nonce=t?.nonce),u.innerHTML=e;var c=Jn(r),l=c.firstChild;if(n){if(s){var f=(r.styles||Ra(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(Xa)))return!1;var m=Number(d.getAttribute(Za)||0);return a>=m});if(f.length)return c.insertBefore(u,f[f.length-1].nextSibling),u}c.insertBefore(u,l)}else c.appendChild(u);return u}function Ps(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Jn(r);return(r.styles||Ra(t)).find(function(n){return n.getAttribute(xs(r))===e})}function Dr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Ps(e,r);if(t){var n=Jn(r);n.removeChild(t)}}function Pc(e,r){var t=Di.get(e);if(!t||!Cc(document,t)){var n=Es("",r),i=n.parentNode;Di.set(e,i),e.removeChild(n)}}function Gt(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Jn(t),i=Ra(n),a=F(F({},t),{},{styles:i});Pc(n,a);var o=Ps(r,a);if(o){var s,u;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((u=a.csp)===null||u===void 0?void 0:u.nonce)){var c;o.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=Es(e,a);return l.setAttribute(xs(a),r),l}function Fc(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Xt(e,r){if(e==null)return{};var t,n,i=Fc(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=n.has(a);if(et(!u,"Warning: There may be circular references"),u)return!1;if(a===o)return!0;if(t&&s>1)return!1;n.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return t.forEach(function(s){if(!o)o=void 0;else{var u;o=(u=o)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(s)}}),(n=o)!==null&&n!==void 0&&n.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,n){var i=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,l){var f=I(c,2),d=f[1];return i.internalGet(l)[1]0,void 0),Ja+=1}return Te(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,i){return i(t,n)},void 0)}}]),e}(),xi=new Aa;function Tc(e){var r=Array.isArray(e)?e:[e];return xi.has(r)||xi.set(r,new Fs(r)),xi.get(r)}var Rc=new WeakMap,Ei={};function Ac(e,r){for(var t=Rc,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=F(F({},i),{},(n={},E(n,mr,r),E(n,vt,t),n)),s=Object.keys(o).map(function(u){var c=o[u];return c?"".concat(u,'="').concat(c,'"'):null}).filter(function(u){return u}).join(" ");return"")}var kn=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(r).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},$c=function(r,t,n){return Object.keys(r).length?".".concat(t).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(r).map(function(i){var a=I(i,2),o=a[0],s=a[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},ks=function(r,t,n){var i={},a={};return Object.entries(r).forEach(function(o){var s,u,c=I(o,2),l=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[l])a[l]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(u=n.ignore)!==null&&u!==void 0&&u[l])){var d,m=kn(l,n?.prefix);i[m]=typeof f=="number"&&!(n!=null&&(d=n.unitless)!==null&&d!==void 0&&d[l])?"".concat(f,"px"):String(f),a[l]="var(".concat(m,")")}}),[a,$c(i,t,{scope:n?.scope})]},to=tt()?h.useLayoutEffect:h.useEffect,$e=function(r,t){var n=h.useRef(!0);to(function(){return r(n.current)},t),to(function(){return n.current=!1,function(){n.current=!0}},[])},ro=function(r,t){$e(function(n){if(!n)return r()},t)},jc=F({},Ca),no=jc.useInsertionEffect,Vc=function(r,t,n){h.useMemo(r,n),$e(function(){return t(!0)},n)},Ic=no?function(e,r,t){return no(function(){return e(),r()},t)}:Vc,Lc=F({},Ca),Nc=Lc.useInsertionEffect,zc=function(r){var t=[],n=!1;function i(a){n||t.push(a)}return h.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(a){return a()})}},r),i},Dc=function(){return function(r){r()}},Hc=typeof Nc<"u"?zc:Dc;function $a(e,r,t,n,i){var a=h.useContext(Yn),o=a.cache,s=[e].concat(D(r)),u=Hi(s),c=Hc([u]),l=function(p){o.opUpdate(u,function(g){var v=g||[void 0,void 0],b=I(v,2),y=b[0],w=y===void 0?0:y,x=b[1],S=x,P=S||t(),C=[w,P];return p?p(C):C})};h.useMemo(function(){l()},[u]);var f=o.opGet(u),d=f[1];return Ic(function(){i?.(d)},function(m){return l(function(p){var g=I(p,2),v=g[0],b=g[1];return m&&v===0&&i?.(d),[v+1,b]}),function(){o.opUpdate(u,function(p){var g=p||[],v=I(g,2),b=v[0],y=b===void 0?0:b,w=v[1],x=y-1;return x===0?(c(function(){(m||!o.opGet(u))&&n?.(w,!1)}),null):[y-1,w]})}},[u]),d}var Wc={},Bc="css",qt=new Map;function qc(e){qt.set(e,(qt.get(e)||0)+1)}function Uc(e,r){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(mr,'="').concat(e,'"]'));t.forEach(function(n){if(n[Rt]===r){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var Gc=0;function Kc(e,r){qt.set(e,(qt.get(e)||0)-1);var t=Array.from(qt.keys()),n=t.filter(function(i){var a=qt.get(i)||0;return a<=0});t.length-n.length>Gc&&n.forEach(function(i){Uc(i,r),qt.delete(i)})}var Xc=function(r,t,n,i){var a=n.getDerivativeToken(r),o=F(F({},a),t);return i&&(o=i(o)),o},_s="token";function Zc(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=h.useContext(Yn),i=n.cache.instanceId,a=n.container,o=t.salt,s=o===void 0?"":o,u=t.override,c=u===void 0?Wc:u,l=t.formatToken,f=t.getComputedToken,d=t.cssVar,m=Ac(function(){return Object.assign.apply(Object,[{}].concat(D(r)))},r),p=jr(m),g=jr(c),v=d?jr(d):"",b=$a(_s,[s,e.id,p,g,v],function(){var y,w=f?f(m,c,e):Xc(m,c,e,l),x=F({},w),S="";if(d){var P=ks(w,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),C=I(P,2);w=C[0],S=C[1]}var k=eo(w,s);w._tokenKey=k,x._tokenKey=eo(x,s);var _=(y=d?.key)!==null&&y!==void 0?y:k;w._themeKey=_,qc(_);var M="".concat(Bc,"-").concat(zr(k));return w._hashId=M,[w,M,x,S,d?.key||""]},function(y){Kc(y[0]._themeKey,i)},function(y){var w=I(y,4),x=w[0],S=w[3];if(d&&S){var P=Gt(S,zr("css-variables-".concat(x._themeKey)),{mark:vt,prepend:"queue",attachTo:a,priority:-999});P[Rt]=i,P.setAttribute(mr,x._themeKey)}});return b}var Qc=function(r,t,n){var i=I(r,5),a=i[2],o=i[3],s=i[4],u=n||{},c=u.plain;if(!o)return null;var l=a._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=jn(o,s,l,d,c);return[f,l,m]},Jc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Os="comm",Ms="rule",Ts="decl",Yc="@import",el="@namespace",tl="@keyframes",rl="@layer",Rs=Math.abs,ja=String.fromCharCode;function As(e){return e.trim()}function _n(e,r,t){return e.replace(r,t)}function nl(e,r,t){return e.indexOf(r,t)}function vr(e,r){return e.charCodeAt(r)|0}function pr(e,r,t){return e.slice(r,t)}function pt(e){return e.length}function il(e){return e.length}function pn(e,r){return r.push(e),e}var ei=1,yr=1,$s=0,rt=0,ye=0,wr="";function Va(e,r,t,n,i,a,o,s){return{value:e,root:r,parent:t,type:n,props:i,children:a,line:ei,column:yr,length:o,return:"",siblings:s}}function al(){return ye}function ol(){return ye=rt>0?vr(wr,--rt):0,yr--,ye===10&&(yr=1,ei--),ye}function ht(){return ye=rt<$s?vr(wr,rt++):0,yr++,ye===10&&(yr=1,ei++),ye}function At(){return vr(wr,rt)}function On(){return rt}function ti(e,r){return pr(wr,e,r)}function Hr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sl(e){return ei=yr=1,$s=pt(wr=e),rt=0,[]}function ul(e){return wr="",e}function Pi(e){return As(ti(rt-1,Bi(e===91?e+2:e===40?e+1:e)))}function cl(e){for(;(ye=At())&&ye<33;)ht();return Hr(e)>2||Hr(ye)>3?"":" "}function ll(e,r){for(;--r&&ht()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return ti(e,On()+(r<6&&At()==32&&ht()==32))}function Bi(e){for(;ht();)switch(ye){case e:return rt;case 34:case 39:e!==34&&e!==39&&Bi(ye);break;case 40:e===41&&Bi(e);break;case 92:ht();break}return rt}function fl(e,r){for(;ht()&&e+ye!==57;)if(e+ye===84&&At()===47)break;return"/*"+ti(r,rt-1)+"*"+ja(e===47?e:ht())}function dl(e){for(;!Hr(At());)ht();return ti(e,rt)}function vl(e){return ul(Mn("",null,null,null,[""],e=sl(e),0,[0],e))}function Mn(e,r,t,n,i,a,o,s,u){for(var c=0,l=0,f=o,d=0,m=0,p=0,g=1,v=1,b=1,y=0,w="",x=i,S=a,P=n,C=w;v;)switch(p=y,y=ht()){case 40:if(p!=108&&vr(C,f-1)==58){nl(C+=_n(Pi(y),"&","&\f"),"&\f",Rs(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Pi(y);break;case 9:case 10:case 13:case 32:C+=cl(p);break;case 92:C+=ll(On()-1,7);continue;case 47:switch(At()){case 42:case 47:pn(hl(fl(ht(),On()),r,t,u),u),(Hr(p||1)==5||Hr(At()||1)==5)&&pt(C)&&pr(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*g:s[c++]=pt(C)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:b==-1&&(C=_n(C,/\f/g,"")),m>0&&(pt(C)-f||g===0&&p===47)&&pn(m>32?ao(C+";",n,t,f-1,u):ao(_n(C," ","")+";",n,t,f-2,u),u);break;case 59:C+=";";default:if(pn(P=io(C,r,t,c,l,i,s,w,x=[],S=[],f,a),a),y===123)if(l===0)Mn(C,r,P,P,x,a,f,s,S);else{switch(d){case 99:if(vr(C,3)===110)break;case 108:if(vr(C,2)===97)break;default:l=0;case 100:case 109:case 115:}l?Mn(e,P,P,n&&pn(io(e,P,P,0,0,i,s,w,i,x=[],f,S),S),i,S,f,s,n?x:S):Mn(C,P,P,P,[""],S,0,s,S)}}c=l=m=0,g=b=1,w=C="",f=o;break;case 58:f=1+pt(C),m=p;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&ol()==125)continue}switch(C+=ja(y),y*g){case 38:b=l>0?1:(C+="\f",-1);break;case 44:s[c++]=(pt(C)-1)*b,b=1;break;case 64:At()===45&&(C+=Pi(ht())),d=At(),l=f=pt(w=C+=dl(On())),y++;break;case 45:p===45&&pt(C)==2&&(g=0)}}return a}function io(e,r,t,n,i,a,o,s,u,c,l,f){for(var d=i-1,m=i===0?a:[""],p=il(m),g=0,v=0,b=0;g0?m[y]+" "+w:_n(w,/&\f/g,m[y])))&&(u[b++]=x);return Va(e,r,t,i===0?Ms:s,u,c,l,f)}function hl(e,r,t,n){return Va(e,r,t,Os,ja(al()),pr(e,2,-2),0,n)}function ao(e,r,t,n,i){return Va(e,r,t,Ts,pr(e,0,n),pr(e,n+1,-1),n,i)}function qi(e,r){for(var t="",n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,a=n.injectHash,o=n.parentSelectors,s=t.hashId,u=t.layer;t.path;var c=t.hashPriority,l=t.transformers,f=l===void 0?[]:l;t.linters;var d="",m={};function p(b){var y=b.getName(s);if(!m[y]){var w=e(b.style,t,{root:!1,parentSelectors:o}),x=I(w,1),S=x[0];m[y]="@keyframes ".concat(b.getName(s)).concat(S)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(w){Array.isArray(w)?g(w,y):w&&y.push(w)}),y}var v=g(Array.isArray(r)?r:[r]);return v.forEach(function(b){var y=typeof b=="string"&&!i?{}:b;if(typeof y=="string")d+="".concat(y,` -`);else if(y._keyframe)p(y);else{var w=f.reduce(function(x,S){var P;return(S==null||(P=S.visit)===null||P===void 0?void 0:P.call(S,x))||x},y);Object.keys(w).forEach(function(x){var S=w[x];if(q(S)==="object"&&S&&(x!=="animationName"||!S._keyframe)&&!wl(S)){var P=!1,C=x.trim(),k=!1;(i||a)&&s?C.startsWith("@")?P=!0:C==="&"?C=so("",s,c):C=so(x,s,c):i&&!s&&(C==="&"||C==="")&&(C="",k=!0);var _=e(S,t,{root:k,injectHash:P,parentSelectors:[].concat(D(o),[C])}),M=I(_,2),A=M[0],R=M[1];m=F(F({},m),R),d+="".concat(C).concat(A)}else{let V=function(j,$){var z=j.replace(/[A-Z]/g,function(K){return"-".concat(K.toLowerCase())}),W=$;!Jc[j]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),j==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(p($),W=$.getName(s)),d+="".concat(z,":").concat(W,";")};var T,O=(T=S?.value)!==null&&T!==void 0?T:S;q(S)==="object"&&S!==null&&S!==void 0&&S[Is]&&Array.isArray(O)?O.forEach(function(j){V(x,j)}):V(x,O)}})}}),i?u&&(d&&(d="@layer ".concat(u.name," {").concat(d,"}")),u.dependencies&&(m["@layer ".concat(u.name)]=u.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(u.name,";")}).join(` -`))):d="{".concat(d,"}"),[d,m]};function Ls(e,r){return zr("".concat(e.join("%")).concat(r))}function Cl(){return null}var Ns="style";function uo(e,r){var t=e.token,n=e.path,i=e.hashId,a=e.layer,o=e.nonce,s=e.clientOnly,u=e.order,c=u===void 0?0:u,l=h.useContext(Yn),f=l.autoClear;l.mock;var d=l.defaultCache,m=l.hashPriority,p=l.container,g=l.ssrInline,v=l.transformers,b=l.linters,y=l.cache,w=l.layer,x=t._tokenKey,S=[x];w&&S.push("layer"),S.push.apply(S,D(n));var P=Wi,C=$a(Ns,S,function(){var R=S.join("|");if(pl(R)){var T=yl(R),O=I(T,2),V=O[0],j=O[1];if(V)return[V,x,j,{},s,c]}var $=r(),z=Sl($,{hashId:i,hashPriority:m,layer:w?a:void 0,path:n.join("-"),transformers:v,linters:b}),W=I(z,2),K=W[0],B=W[1],N=Tn(K),re=Ls(S,N);return[N,x,re,B,s,c]},function(R,T){var O=I(R,3),V=O[2];(T||f)&&Wi&&Dr(V,{mark:vt})},function(R){var T=I(R,4),O=T[0];T[1];var V=T[2],j=T[3];if(P&&O!==js){var $={mark:vt,prepend:w?!1:"queue",attachTo:p,priority:c},z=typeof o=="function"?o():o;z&&($.csp={nonce:z});var W=[],K=[];Object.keys(j).forEach(function(N){N.startsWith("@layer")?W.push(N):K.push(N)}),W.forEach(function(N){Gt(Tn(j[N]),"_layer-".concat(N),F(F({},$),{},{prepend:!0}))});var B=Gt(O,V,$);B[Rt]=y.instanceId,B.setAttribute(mr,x),K.forEach(function(N){Gt(Tn(j[N]),"_effect-".concat(N),$)})}}),k=I(C,3),_=k[0],M=k[1],A=k[2];return function(R){var T;if(!g||P||!d)T=h.createElement(Cl,null);else{var O;T=h.createElement("style",bt({},(O={},E(O,mr,M),E(O,vt,A),O),{dangerouslySetInnerHTML:{__html:_}}))}return h.createElement(h.Fragment,null,T,R)}}var xl=function(r,t,n){var i=I(r,6),a=i[0],o=i[1],s=i[2],u=i[3],c=i[4],l=i[5],f=n||{},d=f.plain;if(c)return null;var m=a,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return m=jn(a,o,s,p,d),u&&Object.keys(u).forEach(function(g){if(!t[g]){t[g]=!0;var v=Tn(u[g]),b=jn(v,o,"_effect-".concat(g),p,d);g.startsWith("@layer")?m=b+m:m+=b}}),[l,s,m]},zs="cssVar",El=function(r,t){var n=r.key,i=r.prefix,a=r.unitless,o=r.ignore,s=r.token,u=r.scope,c=u===void 0?"":u,l=h.useContext(Yn),f=l.cache.instanceId,d=l.container,m=s._tokenKey,p=[].concat(D(r.path),[n,c,m]),g=$a(zs,p,function(){var v=t(),b=ks(v,n,{prefix:i,unitless:a,ignore:o,scope:c}),y=I(b,2),w=y[0],x=y[1],S=Ls(p,x);return[w,x,S,n]},function(v){var b=I(v,3),y=b[2];Wi&&Dr(y,{mark:vt})},function(v){var b=I(v,3),y=b[1],w=b[2];if(y){var x=Gt(y,w,{mark:vt,prepend:"queue",attachTo:d,priority:-999});x[Rt]=f,x.setAttribute(mr,n)}});return g},Pl=function(r,t,n){var i=I(r,4),a=i[1],o=i[2],s=i[3],u=n||{},c=u.plain;if(!a)return null;var l=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)},d=jn(a,s,o,f,c);return[l,o,d]},Or;Or={},E(Or,Ns,xl),E(Or,_s,Qc),E(Or,zs,Pl);var at=function(){function e(r,t){Me(this,e),E(this,"name",void 0),E(this,"style",void 0),E(this,"_keyframe",!0),this.name=r,this.style=t}return Te(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e}();function ar(e){return e.notSplit=!0,e}ar(["borderTop","borderBottom"]),ar(["borderTop"]),ar(["borderBottom"]),ar(["borderLeft","borderRight"]),ar(["borderLeft"]),ar(["borderRight"]);function Fl(e){return Ss(e)||ps(e)||Ma(e)||Cs()}function yt(e,r){for(var t=e,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&n&&t===void 0&&!yt(e,r.slice(0,-1))?e:Ds(e,r,t,n)}function kl(e){return q(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function co(e){return Array.isArray(e)?[]:{}}var _l=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ar(){for(var e=arguments.length,r=new Array(e),t=0;t{const e=()=>{};return e.deprecated=Ol,e},Hs={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Vn=Object.assign(Object.assign({},Hs),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),xe=Math.round;function Fi(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=r(n[i]||0,t[i]||"",i);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const lo=(e,r,t)=>t===0?e:e/100;function Mr(e,r){const t=r||255;return e>t?t:e<0?0:e}class Ee{constructor(r){E(this,"isValid",!0),E(this,"r",0),E(this,"g",0),E(this,"b",0),E(this,"a",1),E(this,"_h",void 0),E(this,"_s",void 0),E(this,"_l",void 0),E(this,"_v",void 0),E(this,"_max",void 0),E(this,"_min",void 0),E(this,"_brightness",void 0);function t(n){return n[0]in r&&n[1]in r&&n[2]in r}if(r)if(typeof r=="string"){let i=function(a){return n.startsWith(a)};const n=r.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(r instanceof Ee)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(t("rgb"))this.r=Mr(r.r),this.g=Mr(r.g),this.b=Mr(r.b),this.a=typeof r.a=="number"?Mr(r.a,1):1;else if(t("hsl"))this.fromHsl(r);else if(t("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const t=this.toHsv();return t.h=r,this._c(t)}getLuminance(){function r(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const t=r(this.r),n=r(this.g),i=r(this.b);return .2126*t+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=xe(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(r=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()-r/100;return i<0&&(i=0),this._c({h:t,s:n,l:i,a:this.a})}lighten(r=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()+r/100;return i>1&&(i=1),this._c({h:t,s:n,l:i,a:this.a})}mix(r,t=50){const n=this._c(r),i=t/100,a=s=>(n[s]-this[s])*i+this[s],o={r:xe(a("r")),g:xe(a("g")),b:xe(a("b")),a:xe(a("a")*100)/100};return this._c(o)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const t=this._c(r),n=this.a+t.a*(1-this.a),i=a=>xe((this[a]*this.a+t[a]*t.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const t=(this.r||0).toString(16);r+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);r+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(r+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=xe(this.a*255).toString(16);r+=a.length===2?a:"0"+a}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),t=xe(this.getSaturation()*100),n=xe(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${n}%,${this.a})`:`hsl(${r},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(r,t,n){const i=this.clone();return i[r]=Mr(t,n),i}_c(r){return new this.constructor(r)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(r){const t=r.replace("#","");function n(i,a){return parseInt(t[i]+t[a||i],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:r,s:t,l:n,a:i}){if(this._h=r%360,this._s=t,this._l=n,this.a=typeof i=="number"?i:1,t<=0){const d=xe(n*255);this.r=d,this.g=d,this.b=d}let a=0,o=0,s=0;const u=r/60,c=(1-Math.abs(2*n-1))*t,l=c*(1-Math.abs(u%2-1));u>=0&&u<1?(a=c,o=l):u>=1&&u<2?(a=l,o=c):u>=2&&u<3?(o=c,s=l):u>=3&&u<4?(o=l,s=c):u>=4&&u<5?(a=l,s=c):u>=5&&u<6&&(a=c,s=l);const f=n-c/2;this.r=xe((a+f)*255),this.g=xe((o+f)*255),this.b=xe((s+f)*255)}fromHsv({h:r,s:t,v:n,a:i}){this._h=r%360,this._s=t,this._v=n,this.a=typeof i=="number"?i:1;const a=xe(n*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;const o=r/60,s=Math.floor(o),u=o-s,c=xe(n*(1-t)*255),l=xe(n*(1-t*u)*255),f=xe(n*(1-t*(1-u))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=l,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=l;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=l;break}}fromHsvString(r){const t=Fi(r,lo);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=Fi(r,lo);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=Fi(r,(n,i)=>i.includes("%")?xe(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var yn=2,fo=.16,Tl=.05,Rl=.05,Al=.15,Ws=5,Bs=4,$l=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function vo(e,r,t){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=t?Math.round(e.h)-yn*r:Math.round(e.h)+yn*r:n=t?Math.round(e.h)+yn*r:Math.round(e.h)-yn*r,n<0?n+=360:n>=360&&(n-=360),n}function ho(e,r,t){if(e.h===0&&e.s===0)return e.s;var n;return t?n=e.s-fo*r:r===Bs?n=e.s+fo:n=e.s+Tl*r,n>1&&(n=1),t&&r===Ws&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function go(e,r,t){var n;return t?n=e.v+Rl*r:n=e.v-Al*r,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function qs(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=new Ee(e),i=n.toHsv(),a=Ws;a>0;a-=1){var o=new Ee({h:vo(i,a,!0),s:ho(i,a,!0),v:go(i,a,!0)});t.push(o)}t.push(n);for(var s=1;s<=Bs;s+=1){var u=new Ee({h:vo(i,s),s:ho(i,s),v:go(i,s)});t.push(u)}return r.theme==="dark"?$l.map(function(c){var l=c.index,f=c.amount;return new Ee(r.backgroundColor||"#141414").mix(t[l],f).toHexString()}):t.map(function(c){return c.toHexString()})}var ki={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ui=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ui.primary=Ui[5];var Gi=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Gi.primary=Gi[5];var Ki=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ki.primary=Ki[5];var Xi=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Xi.primary=Xi[5];var Zi=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Zi.primary=Zi[5];var Qi=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Qi.primary=Qi[5];var Ji=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ji.primary=Ji[5];var Yi=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Yi.primary=Yi[5];var ea=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ea.primary=ea[5];var ta=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ta.primary=ta[5];var ra=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ra.primary=ra[5];var na=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];na.primary=na[5];var ia=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ia.primary=ia[5];var _i={red:Ui,volcano:Gi,orange:Ki,gold:Xi,yellow:Zi,lime:Qi,green:Ji,cyan:Yi,blue:ea,geekblue:ta,purple:ra,magenta:na,grey:ia};function jl(e,{generateColorPalettes:r,generateNeutralColorPalettes:t}){const{colorSuccess:n,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,l=r(s),f=r(n),d=r(i),m=r(a),p=r(o),g=t(u,c),v=e.colorLink||e.colorInfo,b=r(v),y=new Ee(m[1]).mix(new Ee(m[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:l[1],colorPrimaryBgHover:l[2],colorPrimaryBorder:l[3],colorPrimaryBorderHover:l[4],colorPrimaryHover:l[5],colorPrimary:l[6],colorPrimaryActive:l[7],colorPrimaryTextHover:l[8],colorPrimaryText:l[9],colorPrimaryTextActive:l[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:y,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Ee("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Vl=e=>{let r=e,t=e,n=e,i=e;return e<6&&e>=5?r=e+1:e<16&&e>=6?r=e+2:e>=16&&(r=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:r,borderRadiusOuter:i}};function Il(e){const{motionUnit:r,motionBase:t,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(t+r).toFixed(1)}s`,motionDurationMid:`${(t+r*2).toFixed(1)}s`,motionDurationSlow:`${(t+r*3).toFixed(1)}s`,lineWidthBold:i+1},Vl(n))}const Ll=e=>{const{controlHeight:r}=e;return{controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}};function Nl(e){return(e+8)/e}function zl(e){const r=Array.from({length:10}).map((t,n)=>{const i=n-1,a=e*Math.pow(Math.E,i/5),o=n>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:Nl(t)}))}const Dl=e=>{const r=zl(e),t=r.map(l=>l.size),n=r.map(l=>l.lineHeight),i=t[1],a=t[0],o=t[2],s=n[1],u=n[0],c=n[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:s,lineHeightLG:c,lineHeightSM:u,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(u*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function Hl(e){const{sizeUnit:r,sizeStep:t}=e;return{sizeXXL:r*(t+8),sizeXL:r*(t+4),sizeLG:r*(t+2),sizeMD:r*(t+1),sizeMS:r*t,size:r*t,sizeSM:r*(t-1),sizeXS:r*(t-2),sizeXXS:r*(t-3)}}const Ze=(e,r)=>new Ee(e).setA(r).toRgbString(),Tr=(e,r)=>new Ee(e).darken(r).toHexString(),Wl=e=>{const r=qs(e);return{1:r[0],2:r[1],3:r[2],4:r[3],5:r[4],6:r[5],7:r[6],8:r[4],9:r[5],10:r[6]}},Bl=(e,r)=>{const t=e||"#fff",n=r||"#000";return{colorBgBase:t,colorTextBase:n,colorText:Ze(n,.88),colorTextSecondary:Ze(n,.65),colorTextTertiary:Ze(n,.45),colorTextQuaternary:Ze(n,.25),colorFill:Ze(n,.15),colorFillSecondary:Ze(n,.06),colorFillTertiary:Ze(n,.04),colorFillQuaternary:Ze(n,.02),colorBgSolid:Ze(n,1),colorBgSolidHover:Ze(n,.75),colorBgSolidActive:Ze(n,.95),colorBgLayout:Tr(t,4),colorBgContainer:Tr(t,0),colorBgElevated:Tr(t,0),colorBgSpotlight:Ze(n,.85),colorBgBlur:"transparent",colorBorder:Tr(t,15),colorBorderSecondary:Tr(t,6)}};function ql(e){ki.pink=ki.magenta,_i.pink=_i.magenta;const r=Object.keys(Hs).map(t=>{const n=e[t]===ki[t]?_i[t]:qs(e[t]);return Array.from({length:10},()=>1).reduce((i,a,o)=>(i[`${t}-${o+1}`]=n[o],i[`${t}${o+1}`]=n[o],i),{})}).reduce((t,n)=>(t=Object.assign(Object.assign({},t),n),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),r),jl(e,{generateColorPalettes:Wl,generateNeutralColorPalettes:Bl})),Dl(e.fontSize)),Hl(e)),Ll(e)),Il(e))}const Ul=Tc(ql),Gl={token:Vn,override:{override:Vn},hashed:!0},Kl=Oe.createContext(Gl),mo="ant",Us="anticon",Xl=(e,r)=>r||(e?`${mo}-${e}`:mo),Wr=h.createContext({getPrefixCls:Xl,iconPrefixCls:Us}),{Consumer:nh}=Wr,po={};function Zl(e){const r=h.useContext(Wr),{getPrefixCls:t,direction:n,getPopupContainer:i}=r,a=r[e];return Object.assign(Object.assign({classNames:po,styles:po},a),{getPrefixCls:t,direction:n,getPopupContainer:i})}var Gs=Te(function e(){Me(this,e)}),Ks="CALC_UNIT",Ql=new RegExp(Ks,"g");function Oi(e){return typeof e=="number"?"".concat(e).concat(Ks):e}var Jl=function(e){Qt(t,e);var r=Jt(t);function t(n,i){var a;Me(this,t),a=r.call(this),E(U(a),"result",""),E(U(a),"unitlessCssVar",void 0),E(U(a),"lowPriority",void 0);var o=q(n);return a.unitlessCssVar=i,n instanceof t?a.result="(".concat(n.result,")"):o==="number"?a.result=Oi(n):o==="string"&&(a.result=n),a}return Te(t,[{key:"add",value:function(i){return i instanceof t?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Oi(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof t?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Oi(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof t?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof t?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,o=i||{},s=o.unit,u=!0;return typeof s=="boolean"?u=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(u=!1),this.result=this.result.replace(Ql,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),t}(Gs),Yl=function(e){Qt(t,e);var r=Jt(t);function t(n){var i;return Me(this,t),i=r.call(this),E(U(i),"result",0),n instanceof t?i.result=n.result:typeof n=="number"&&(i.result=n),i}return Te(t,[{key:"add",value:function(i){return i instanceof t?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof t?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof t?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof t?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),t}(Gs),ef=function(r,t){var n=r==="css"?Jl:Yl;return function(i){return new n(i,t)}},yo=function(r,t){return"".concat([t,r.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ye(e){var r=h.useRef();r.current=e;var t=h.useCallback(function(){for(var n,i=arguments.length,a=new Array(i),o=0;o1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,a){n-i>of&&(t.map.delete(a),t.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),Co=new sf;function uf(e,r){return Oe.useMemo(function(){var t=Co.get(r);if(t)return t;var n=e();return Co.set(r,n),n},r)}var cf=function(){return{}};function lf(e){var r=e.useCSP,t=r===void 0?cf:r,n=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function u(d,m,p,g){var v=Array.isArray(d)?d[0]:d;function b(k){return"".concat(String(v)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var y=g?.unitless||{},w=typeof s=="function"?s(d):{},x=F(F({},w),{},E({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(k){x[b(k)]=y[k]});var S=F(F({},g),{},{unitless:x,prefixToken:b}),P=l(d,m,p,S),C=c(v,p,S);return function(k){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,M=P(k,_),A=I(M,2),R=A[1],T=C(_),O=I(T,2),V=O[0],j=O[1];return[V,R,j]}}function c(d,m,p){var g=p.unitless,v=p.injectStyle,b=v===void 0?!0:v,y=p.prefixToken,w=p.ignore,x=function(C){var k=C.rootCls,_=C.cssVar,M=_===void 0?{}:_,A=n(),R=A.realToken;return El({path:[d],prefix:M.prefix,key:M.key,unitless:g,ignore:w,token:R,scope:k},function(){var T=So(d,R,m),O=bo(d,R,T,{deprecatedTokens:p?.deprecatedTokens});return Object.keys(T).forEach(function(V){O[y(V)]=O[V],delete O[V]}),O}),null},S=function(C){var k=n(),_=k.cssVar;return[function(M){return b&&_?Oe.createElement(Oe.Fragment,null,Oe.createElement(x,{rootCls:C,cssVar:_,component:d}),M):M},_?.key]};return S}function l(d,m,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(d)?d:[d,d],b=I(v,1),y=b[0],w=v.join("-"),x=e.layer||{name:"antd"};return function(S){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,C=n(),k=C.theme,_=C.realToken,M=C.hashId,A=C.token,R=C.cssVar,T=i(),O=T.rootPrefixCls,V=T.iconPrefixCls,j=t(),$=R?"css":"js",z=uf(function(){var X=new Set;return R&&Object.keys(g.unitless||{}).forEach(function(Q){X.add(kn(Q,R.prefix)),X.add(kn(Q,yo(y,R.prefix)))}),ef($,X)},[$,y,R?.prefix]),W=af($),K=W.max,B=W.min,N={theme:k,token:A,hashId:M,nonce:function(){return j.nonce},clientOnly:g.clientOnly,layer:x,order:g.order||-999};typeof a=="function"&&uo(F(F({},N),{},{clientOnly:!1,path:["Shared",O]}),function(){return a(A,{prefix:{rootPrefixCls:O,iconPrefixCls:V},csp:j})});var re=uo(F(F({},N),{},{path:[w,S,V]}),function(){if(g.injectStyle===!1)return[];var X=nf(A),Q=X.token,ne=X.flush,ae=So(y,_,p),Fe=".".concat(S),ce=bo(y,_,ae,{deprecatedTokens:g.deprecatedTokens});R&&ae&&q(ae)==="object"&&Object.keys(ae).forEach(function(Pe){ae[Pe]="var(".concat(kn(Pe,yo(y,R.prefix)),")")});var Ve=ri(Q,{componentCls:Fe,prefixCls:S,iconCls:".".concat(V),antCls:".".concat(O),calc:z,max:K,min:B},R?ae:ce),Ie=m(Ve,{hashId:M,prefixCls:S,rootPrefixCls:O,iconPrefixCls:V});ne(y,ce);var me=typeof o=="function"?o(Ve,S,P,g.resetFont):null;return[g.resetStyle===!1?null:me,Ie]});return[re,M]}}function f(d,m,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=l(d,m,p,F({resetStyle:!1,order:-998},g)),b=function(w){var x=w.prefixCls,S=w.rootCls,P=S===void 0?x:S;return v(x,P),null};return b}return{genStyleHooks:u,genSubStyleComponent:f,genComponentStyleHook:l}}const In=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ff="5.26.3";function Ti(e){return e>=0&&e<=255}function bn(e,r){const{r:t,g:n,b:i,a}=new Ee(e).toRgb();if(a<1)return e;const{r:o,g:s,b:u}=new Ee(r).toRgb();for(let c=.01;c<=1;c+=.01){const l=Math.round((t-o*(1-c))/c),f=Math.round((n-s*(1-c))/c),d=Math.round((i-u*(1-c))/c);if(Ti(l)&&Ti(f)&&Ti(d))return new Ee({r:l,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new Ee({r:t,g:n,b:i,a:1}).toRgbString()}var df=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{delete n[d]});const i=Object.assign(Object.assign({},t),n),a=480,o=576,s=768,u=992,c=1200,l=1600;if(i.motion===!1){const d="0s";i.motionDurationFast=d,i.motionDurationMid=d,i.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:bn(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:bn(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:bn(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:bn(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new Ee("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new Ee("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new Ee("rgba(0, 0, 0, 0.09)").toRgbString()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerDown:` - 0 -6px 16px 0 rgba(0, 0, 0, 0.08), - 0 -3px 6px -4px rgba(0, 0, 0, 0.12), - 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var xo=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const n=t.getDerivativeToken(e),{override:i}=r,a=xo(r,["override"]);let o=Object.assign(Object.assign({},n),{override:i});return o=Zs(o),a&&Object.entries(a).forEach(([s,u])=>{const{theme:c}=u,l=xo(u,["theme"]);let f=l;c&&(f=Js(Object.assign(Object.assign({},o),l),{override:l},c)),o[s]=f}),o};function Ia(){const{token:e,hashed:r,theme:t,override:n,cssVar:i}=Oe.useContext(Kl),a=`${ff}-${r||""}`,o=t||Ul,[s,u,c]=Zc(o,[Vn,e],{salt:a,override:n,getComputedToken:Js,formatToken:Zs,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Qs,ignore:vf,preserve:hf}});return[o,c,r?u:"",s,i]}const gf=(e,r=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"inherit":e.fontFamily}),mf=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),pf=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),yf=(e,r,t,n)=>{const i=`[class^="${r}"], [class*=" ${r}"]`,a=t?`.${t}`:i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},bf=e=>({[`.${e}`]:Object.assign(Object.assign({},mf()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:wf}=lf({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:r}=h.useContext(Wr);return{rootPrefixCls:e(),iconPrefixCls:r}},useToken:()=>{const[e,r,t,n,i]=Ia();return{theme:e,realToken:r,hashId:t,token:n,cssVar:i}},useCSP:()=>{const{csp:e}=h.useContext(Wr);return e??{}},getResetStyles:(e,r)=>{var t;const n=pf(e);return[n,{"&":n},bf((t=r?.prefix.iconPrefixCls)!==null&&t!==void 0?t:Us)]},getCommonStyle:yf,getCompUnitless:()=>Qs});function Sf(e,r){return In.reduce((t,n)=>{const i=e[`${n}1`],a=e[`${n}3`],o=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},t),r(n,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}var Cf=h.createContext({}),xf=function(e){Qt(t,e);var r=Jt(t);function t(){return Me(this,t),r.apply(this,arguments)}return Te(t,[{key:"render",value:function(){return this.props.children}}]),t}(h.Component);function Ef(e){var r=h.useReducer(function(s){return s+1},0),t=I(r,2),n=t[1],i=h.useRef(e),a=Ye(function(){return i.current}),o=Ye(function(s){i.current=typeof s=="function"?s(i.current):s,n()});return[a,o]}var Mt="none",wn="appear",Sn="enter",Cn="leave",Eo="none",dt="prepare",fr="start",dr="active",La="end",Ys="prepared";function Po(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit".concat(e)]="webkit".concat(r),t["Moz".concat(e)]="moz".concat(r),t["ms".concat(e)]="MS".concat(r),t["O".concat(e)]="o".concat(r.toLowerCase()),t}function Pf(e,r){var t={animationend:Po("Animation","AnimationEnd"),transitionend:Po("Transition","TransitionEnd")};return e&&("AnimationEvent"in r||delete t.animationend.animation,"TransitionEvent"in r||delete t.transitionend.transition),t}var Ff=Pf(tt(),typeof window<"u"?window:{}),eu={};if(tt()){var kf=document.createElement("div");eu=kf.style}var xn={};function tu(e){if(xn[e])return xn[e];var r=Ff[e];if(r)for(var t=Object.keys(r),n=t.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;r();var a=zi(function(){i<=1?n({isCanceled:function(){return a!==e.current}}):t(n,i-1)});e.current=a}return h.useEffect(function(){return function(){r()}},[]),[t,r]};var Mf=[dt,fr,dr,La],Tf=[dt,Ys],ou=!1,Rf=!0;function su(e){return e===dr||e===La}const Af=function(e,r,t){var n=Br(Eo),i=I(n,2),a=i[0],o=i[1],s=Of(),u=I(s,2),c=u[0],l=u[1];function f(){o(dt,!0)}var d=r?Tf:Mf;return au(function(){if(a!==Eo&&a!==La){var m=d.indexOf(a),p=d[m+1],g=t(a);g===ou?o(p,!0):p&&c(function(v){function b(){v.isCanceled()||o(p,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,a]),h.useEffect(function(){return function(){l()}},[]),[f,a]};function $f(e,r,t,n){var i=n.motionEnter,a=i===void 0?!0:i,o=n.motionAppear,s=o===void 0?!0:o,u=n.motionLeave,c=u===void 0?!0:u,l=n.motionDeadline,f=n.motionLeaveImmediately,d=n.onAppearPrepare,m=n.onEnterPrepare,p=n.onLeavePrepare,g=n.onAppearStart,v=n.onEnterStart,b=n.onLeaveStart,y=n.onAppearActive,w=n.onEnterActive,x=n.onLeaveActive,S=n.onAppearEnd,P=n.onEnterEnd,C=n.onLeaveEnd,k=n.onVisibleChanged,_=Br(),M=I(_,2),A=M[0],R=M[1],T=Ef(Mt),O=I(T,2),V=O[0],j=O[1],$=Br(null),z=I($,2),W=z[0],K=z[1],B=V(),N=h.useRef(!1),re=h.useRef(null);function X(){return t()}var Q=h.useRef(!1);function ne(){j(Mt),K(null,!0)}var ae=Ye(function(J){var te=V();if(te!==Mt){var ke=X();if(!(J&&!J.deadline&&J.target!==ke)){var Z=Q.current,qe;te===wn&&Z?qe=S?.(ke,J):te===Sn&&Z?qe=P?.(ke,J):te===Cn&&Z&&(qe=C?.(ke,J)),Z&&qe!==!1&&ne()}}}),Fe=_f(ae),ce=I(Fe,1),Ve=ce[0],Ie=function(te){switch(te){case wn:return E(E(E({},dt,d),fr,g),dr,y);case Sn:return E(E(E({},dt,m),fr,v),dr,w);case Cn:return E(E(E({},dt,p),fr,b),dr,x);default:return{}}},me=h.useMemo(function(){return Ie(B)},[B]),Pe=Af(B,!e,function(J){if(J===dt){var te=me[dt];return te?te(X()):ou}if(be in me){var ke;K(((ke=me[be])===null||ke===void 0?void 0:ke.call(me,X(),null))||null)}return be===dr&&B!==Mt&&(Ve(X()),l>0&&(clearTimeout(re.current),re.current=setTimeout(function(){ae({deadline:!0})},l))),be===Ys&&ne(),Rf}),le=I(Pe,2),Ce=le[0],be=le[1],Le=su(be);Q.current=Le;var Re=h.useRef(null);au(function(){if(!(N.current&&Re.current===r)){R(r);var J=N.current;N.current=!0;var te;!J&&r&&s&&(te=wn),J&&r&&a&&(te=Sn),(J&&!r&&c||!J&&f&&!r&&c)&&(te=Cn);var ke=Ie(te);te&&(e||ke[dt])?(j(te),Ce()):j(Mt),Re.current=r}},[r]),h.useEffect(function(){(B===wn&&!s||B===Sn&&!a||B===Cn&&!c)&&j(Mt)},[s,a,c]),h.useEffect(function(){return function(){N.current=!1,clearTimeout(re.current)}},[]);var fe=h.useRef(!1);h.useEffect(function(){A&&(fe.current=!0),A!==void 0&&B===Mt&&((fe.current||A)&&k?.(A),fe.current=!0)},[A,B]);var De=W;return me[dt]&&be===fr&&(De=F({transition:"none"},De)),[B,be,De,A??r]}function jf(e){var r=e;q(e)==="object"&&(r=e.transitionSupport);function t(i,a){return!!(i.motionName&&r&&a!==!1)}var n=h.forwardRef(function(i,a){var o=i.visible,s=o===void 0?!0:o,u=i.removeOnLeave,c=u===void 0?!0:u,l=i.forceRender,f=i.children,d=i.motionName,m=i.leavedClassName,p=i.eventProps,g=h.useContext(Cf),v=g.motion,b=t(i,v),y=h.useRef(),w=h.useRef();function x(){try{return y.current instanceof HTMLElement?y.current:Fn(w.current)}catch{return null}}var S=$f(b,s,x,i),P=I(S,4),C=P[0],k=P[1],_=P[2],M=P[3],A=h.useRef(M);M&&(A.current=!0);var R=h.useCallback(function(z){y.current=z,Pa(a,z)},[a]),T,O=F(F({},p),{},{visible:s});if(!f)T=null;else if(C===Mt)M?T=f(F({},O),R):!c&&A.current&&m?T=f(F(F({},O),{},{className:m}),R):l||!c&&!m?T=f(F(F({},O),{},{style:{display:"none"}}),R):T=null;else{var V;k===dt?V="prepare":su(k)?V="active":k===fr&&(V="start");var j=_o(d,"".concat(C,"-").concat(V));T=f(F(F({},O),{},{className:je(_o(d,C),E(E({},j,j&&V),d,typeof d=="string")),style:_}),R)}if(h.isValidElement(T)&&Zn(T)){var $=ka(T);$||(T=h.cloneElement(T,{ref:R}))}return h.createElement(xf,{ref:w},T)});return n.displayName="CSSMotion",n}const Na=jf(iu);var oa="add",sa="keep",ua="remove",Ri="removed";function Vf(e){var r;return e&&q(e)==="object"&&"key"in e?r=e:r={key:e},F(F({},r),{},{key:String(r.key)})}function ca(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Vf)}function If(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],n=0,i=r.length,a=ca(e),o=ca(r);a.forEach(function(c){for(var l=!1,f=n;f1});return u.forEach(function(c){t=t.filter(function(l){var f=l.key,d=l.status;return f!==c||d!==ua}),t.forEach(function(l){l.key===c&&(l.status=sa)})}),t}var Lf=["component","children","onVisibleChanged","onAllRemoved"],Nf=["status"],zf=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Df(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Na,t=function(n){Qt(a,n);var i=Jt(a);function a(){var o;Me(this,a);for(var s=arguments.length,u=new Array(s),c=0;cOe.isValidElement(e)?Oe.cloneElement(e,typeof t=="function"?t(e.props||{}):t):r;function qf(e,r){return Bf(e,e,r)}const cu=Oe.createContext(void 0),Bt=100,lu={Modal:Bt,Drawer:Bt,Popover:Bt,Popconfirm:Bt,Tooltip:Bt,Tour:Bt,FloatButton:Bt},Uf={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Gf(e){return e in lu}const Kf=(e,r)=>{const[,t]=Ia(),n=Oe.useContext(cu),i=Gf(e);let a;if(r!==void 0)a=[r,r];else{let o=n??0;i?o+=(n?0:t.zIndexPopupBase)+lu[e]:o+=Uf[e],a=[n===void 0?r:o,o]}return a};function fu(e,r){this.v=e,this.k=r}function _e(e,r,t,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_e=function(o,s,u,c){if(s)i?i(o,s,{value:u,enumerable:!c,configurable:!c,writable:!c}):o[s]=u;else{var l=function(d,m){_e(o,d,function(p){return this._invoke(d,m,p)})};l("next",0),l("throw",1),l("return",2)}},_e(e,r,t,n)}function za(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,t=typeof Symbol=="function"?Symbol:{},n=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function a(m,p,g,v){var b=p&&p.prototype instanceof s?p:s,y=Object.create(b.prototype);return _e(y,"_invoke",function(w,x,S){var P,C,k,_=0,M=S||[],A=!1,R={p:0,n:0,v:e,a:T,f:T.bind(e,4),d:function(V,j){return P=V,C=0,k=e,R.n=j,o}};function T(O,V){for(C=O,k=V,r=0;!A&&_&&!j&&r3?(j=W===V)&&(k=$[(C=$[4])?5:(C=3,3)],$[4]=$[5]=e):$[0]<=z&&((j=O<2&&z<$[1])?(C=0,R.v=V,R.n=$[1]):zV||V>W)&&($[4]=O,$[5]=V,R.n=W,C=0))}if(j||O>1)return o;throw A=!0,V}return function(O,V,j){if(_>1)throw TypeError("Generator is already running");for(A&&V===1&&T(V,j),C=V,k=j;(r=C<2?e:k)||!A;){P||(C?C<3?(C>1&&(R.n=-1),T(C,k)):R.n=k:R.v=k);try{if(_=2,P){if(C||(O="next"),r=P[O]){if(!(r=r.call(P,k)))throw TypeError("iterator result is not an object");if(!r.done)return r;k=r.value,C<2&&(C=0)}else C===1&&(r=P.return)&&r.call(P),C<2&&(k=TypeError("The iterator does not provide a '"+O+"' method"),C=1);P=e}else if((r=(A=R.n<0)?k:w.call(x,R))!==o)break}catch($){P=e,C=1,k=$}finally{_=1}}return{value:r,done:A}}}(m,g,v),!0),y}var o={};function s(){}function u(){}function c(){}r=Object.getPrototypeOf;var l=[][n]?r(r([][n]())):(_e(r={},n,function(){return this}),r),f=c.prototype=s.prototype=Object.create(l);function d(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,c):(m.__proto__=c,_e(m,i,"GeneratorFunction")),m.prototype=Object.create(f),m}return u.prototype=c,_e(f,"constructor",c),_e(c,"constructor",u),u.displayName="GeneratorFunction",_e(c,i,"GeneratorFunction"),_e(f),_e(f,i,"Generator"),_e(f,n,function(){return this}),_e(f,"toString",function(){return"[object Generator]"}),(za=function(){return{w:a,m:d}})()}function Ln(e,r){function t(i,a,o,s){try{var u=e[i](a),c=u.value;return c instanceof fu?r.resolve(c.v).then(function(l){t("next",l,o,s)},function(l){t("throw",l,o,s)}):r.resolve(c).then(function(l){u.value=l,o(u)},function(l){return t("throw",l,o,s)})}catch(l){s(l)}}var n;this.next||(_e(Ln.prototype),_e(Ln.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),_e(this,"_invoke",function(i,a,o){function s(){return new r(function(u,c){t(i,o,u,c)})}return n=n?n.then(s,s):s()},!0)}function du(e,r,t,n,i){return new Ln(za().w(e,r,t,n),i||Promise)}function Xf(e,r,t,n,i){var a=du(e,r,t,n,i);return a.next().then(function(o){return o.done?o.value:a.next()})}function Zf(e){var r=Object(e),t=[];for(var n in r)t.unshift(n);return function i(){for(;t.length;)if((n=t.pop())in r)return i.value=n,i.done=!1,i;return i.done=!0,i}}function Oo(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(q(e)+" is not iterable")}function nt(){var e=za(),r=e.m(nt),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function n(o){var s=typeof o=="function"&&o.constructor;return!!s&&(s===t||(s.displayName||s.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function a(o){var s,u;return function(c){s||(s={stop:function(){return u(c.a,2)},catch:function(){return c.v},abrupt:function(f,d){return u(c.a,i[f],d)},delegateYield:function(f,d,m){return s.resultName=d,u(c.d,Oo(f),m)},finish:function(f){return u(c.f,f)}},u=function(f,d,m){c.p=s.prev,c.n=s.next;try{return f(d,m)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return o.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(nt=function(){return{wrap:function(u,c,l,f){return e.w(a(u),c,l,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(u,c){return new fu(u,c)},AsyncIterator:Ln,async:function(u,c,l,f,d){return(n(c)?du:Xf)(a(u),c,l,f,d)},keys:Zf,values:Oo}})()}function Mo(e,r,t,n,i,a,o){try{var s=e[a](o),u=s.value}catch(c){return void t(c)}s.done?r(u):Promise.resolve(u).then(n,i)}function Ur(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function o(u){Mo(a,n,i,o,s,"next",u)}function s(u){Mo(a,n,i,o,s,"throw",u)}o(void 0)})}}const Qf=(e,r,t)=>t!==void 0?t:`${e}-${r}`,Jf=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var r=e.getBBox(),t=r.width,n=r.height;if(t||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},Yf=h.createContext(null),ed=e=>{const{children:r}=e;return h.createElement(Yf.Provider,{value:null},r)},td=e=>({animationDuration:e,animationFillMode:"both"}),rd=e=>({animationDuration:e,animationFillMode:"both"}),nd=(e,r,t,n,i=!1)=>{const a=i?"&":"";return{[` - ${a}${e}-enter, - ${a}${e}-appear - `]:Object.assign(Object.assign({},td(n)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},rd(n)),{animationPlayState:"paused"}),[` - ${a}${e}-enter${e}-enter-active, - ${a}${e}-appear${e}-appear-active - `]:{animationName:r,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},id=new at("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ad=new at("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),To=new at("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ro=new at("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),od=new at("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),sd=new at("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ud=new at("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),cd=new at("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ld=new at("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),fd=new at("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),dd=new at("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),vd=new at("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),hd={zoom:{inKeyframes:id,outKeyframes:ad},"zoom-big":{inKeyframes:To,outKeyframes:Ro},"zoom-big-fast":{inKeyframes:To,outKeyframes:Ro},"zoom-left":{inKeyframes:ud,outKeyframes:cd},"zoom-right":{inKeyframes:ld,outKeyframes:fd},"zoom-up":{inKeyframes:od,outKeyframes:sd},"zoom-down":{inKeyframes:dd,outKeyframes:vd}},gd=(e,r)=>{const{antCls:t}=e,n=`${t}-${r}`,{inKeyframes:i,outKeyframes:a}=hd[r];return[nd(n,i,a,e.motionDurationFast),{[` - ${n}-enter, - ${n}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var vu=h.createContext(null),Ao=[];function md(e,r){var t=h.useState(function(){if(!tt())return null;var p=document.createElement("div");return p}),n=I(t,1),i=n[0],a=h.useRef(!1),o=h.useContext(vu),s=h.useState(Ao),u=I(s,2),c=u[0],l=u[1],f=o||(a.current?void 0:function(p){l(function(g){var v=[p].concat(D(g));return v})});function d(){i.parentElement||document.body.appendChild(i),a.current=!0}function m(){var p;(p=i.parentElement)===null||p===void 0||p.removeChild(i),a.current=!1}return $e(function(){return e?o?o(d):d():m(),m},[e]),$e(function(){c.length&&(c.forEach(function(p){return p()}),l(Ao))},[c]),[i,f]}function pd(e){var r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=r;var n=t.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);n.scrollbarColor=o.scrollbarColor,n.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(s.width,10),c=parseInt(s.height,10);try{var l=u?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";Gt(` -#`.concat(r,`::-webkit-scrollbar { -`).concat(l,` -`).concat(f,` -}`),r)}catch(p){console.error(p),i=u,a=c}}document.body.appendChild(t);var d=e&&i&&!isNaN(i)?i:t.offsetWidth-t.clientWidth,m=e&&a&&!isNaN(a)?a:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),Dr(r),{width:d,height:m}}function yd(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:pd(e)}function bd(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var wd="rc-util-locker-".concat(Date.now()),$o=0;function Sd(e){var r=!!e,t=h.useState(function(){return $o+=1,"".concat(wd,"_").concat($o)}),n=I(t,1),i=n[0];$e(function(){if(r){var a=yd(document.body).width,o=bd();Gt(` -html body { - overflow-y: hidden; - `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",` -}`),i)}else Dr(i);return function(){Dr(i)}},[r,i])}var Cd=!1;function xd(e){return Cd}var jo=function(r){return r===!1?!1:!tt()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},hu=h.forwardRef(function(e,r){var t=e.open,n=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,s=e.children,u=h.useState(t),c=I(u,2),l=c[0],f=c[1],d=l||t;h.useEffect(function(){(o||t)&&f(t)},[t,o]);var m=h.useState(function(){return jo(i)}),p=I(m,2),g=p[0],v=p[1];h.useEffect(function(){var A=jo(i);v(A??null)});var b=md(d&&!g),y=I(b,2),w=y[0],x=y[1],S=g??w;Sd(n&&t&&tt()&&(S===w||S===document.body));var P=null;if(s&&Zn(s)&&r){var C=s;P=C.ref}var k=Fa(P,r);if(!d||!tt()||g===void 0)return null;var _=S===!1||xd(),M=s;return r&&(M=h.cloneElement(s,{ref:k})),h.createElement(vu.Provider,{value:x},_?M:Ou.createPortal(M,S))});function Ed(){var e=F({},Ca);return e.useId}var Vo=0,Io=Ed();const gu=Io?function(r){var t=Io();return r||t}:function(r){var t=h.useState("ssr-id"),n=I(t,2),i=n[0],a=n[1];return h.useEffect(function(){var o=Vo;Vo+=1,a("rc_unique_".concat(o))},[]),r||i};var Ut="RC_FORM_INTERNAL_HOOKS",ee=function(){et(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},br=h.createContext({getFieldValue:ee,getFieldsValue:ee,getFieldError:ee,getFieldWarning:ee,getFieldsError:ee,isFieldsTouched:ee,isFieldTouched:ee,isFieldValidating:ee,isFieldsValidating:ee,resetFields:ee,setFields:ee,setFieldValue:ee,setFieldsValue:ee,validateFields:ee,submit:ee,getInternalHooks:function(){return ee(),{dispatch:ee,initEntityValue:ee,registerField:ee,useSubscribe:ee,setInitialValues:ee,destroyForm:ee,setCallbacks:ee,registerWatch:ee,getFields:ee,setValidateMessages:ee,setPreserve:ee,getInitialValue:ee}}}),Nn=h.createContext(null);function fa(e){return e==null?[]:Array.isArray(e)?e:[e]}function Pd(e){return e&&!!e._init}function da(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var va=da();function Fd(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function kd(e,r,t){if(_a())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,r);var i=new(e.bind.apply(e,n));return t&&Lr(i,t.prototype),i}function ha(e){var r=typeof Map=="function"?new Map:void 0;return ha=function(n){if(n===null||!Fd(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return kd(n,arguments,Nr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Lr(i,n)},ha(e)}var _d=/%[sdj%]/g,Od=function(){};function ga(e){if(!e||!e.length)return null;var r={};return e.forEach(function(t){var n=t.field;r[n]=r[n]||[],r[n].push(t)}),r}function Be(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=a)return s;switch(s){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function Md(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Se(e,r){return!!(e==null||r==="array"&&Array.isArray(e)&&!e.length||Md(r)&&typeof e=="string"&&!e)}function Td(e,r,t){var n=[],i=0,a=e.length;function o(s){n.push.apply(n,D(s||[])),i++,i===a&&t(n)}e.forEach(function(s){r(s,o)})}function Lo(e,r,t){var n=0,i=e.length;function a(o){if(o&&o.length){t(o);return}var s=n;n=n+1,sr.max?i.push(Be(a.messages[f].max,r.fullField,r.max)):s&&u&&(lr.max)&&i.push(Be(a.messages[f].range,r.fullField,r.min,r.max))},mu=function(r,t,n,i,a,o){r.required&&(!n.hasOwnProperty(r.field)||Se(t,o||r.type))&&i.push(Be(a.messages.required,r.fullField))},En;const Nd=function(){if(En)return En;var e="[a-fA-F\\d:]",r=function(P){return P&&P.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(t,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(t,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(t,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(t,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(t,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(t,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(t,"|(?::").concat(n,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),s=new RegExp("(?:^".concat(t,"$)|(?:^").concat(o,"$)")),u=new RegExp("^".concat(t,"$")),c=new RegExp("^".concat(o,"$")),l=function(P){return P&&P.exact?s:new RegExp("(?:".concat(r(P)).concat(t).concat(r(P),")|(?:").concat(r(P)).concat(o).concat(r(P),")"),"g")};l.v4=function(S){return S&&S.exact?u:new RegExp("".concat(r(S)).concat(t).concat(r(S)),"g")},l.v6=function(S){return S&&S.exact?c:new RegExp("".concat(r(S)).concat(o).concat(r(S)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",m=l.v4().source,p=l.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',x="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(m,"|").concat(p,"|").concat(g).concat(v).concat(b,")").concat(y).concat(w);return En=new RegExp("(?:^".concat(x,"$)"),"i"),En};var Ho={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},$r={integer:function(r){return $r.number(r)&&parseInt(r,10)===r},float:function(r){return $r.number(r)&&!$r.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return q(r)==="object"&&!$r.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(Ho.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(Nd())},hex:function(r){return typeof r=="string"&&!!r.match(Ho.hex)}},zd=function(r,t,n,i,a){if(r.required&&t===void 0){mu(r,t,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=r.type;o.indexOf(s)>-1?$r[s](t)||i.push(Be(a.messages.types[s],r.fullField,r.type)):s&&q(t)!==r.type&&i.push(Be(a.messages.types[s],r.fullField,r.type))},Dd=function(r,t,n,i,a){(/^\s+$/.test(t)||t==="")&&i.push(Be(a.messages.whitespace,r.fullField))};const G={required:mu,whitespace:Dd,type:zd,range:Ld,enum:Vd,pattern:Id};var Hd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t)&&!r.required)return n();G.required(r,t,i,o,a)}n(o)},Wd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(t==null&&!r.required)return n();G.required(r,t,i,o,a,"array"),t!=null&&(G.type(r,t,i,o,a),G.range(r,t,i,o,a))}n(o)},Bd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t)&&!r.required)return n();G.required(r,t,i,o,a),t!==void 0&&G.type(r,t,i,o,a)}n(o)},qd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t,"date")&&!r.required)return n();if(G.required(r,t,i,o,a),!Se(t,"date")){var u;t instanceof Date?u=t:u=new Date(t),G.type(r,u,i,o,a),u&&G.range(r,u.getTime(),i,o,a)}}n(o)},Ud="enum",Gd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t)&&!r.required)return n();G.required(r,t,i,o,a),t!==void 0&&G[Ud](r,t,i,o,a)}n(o)},Kd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t)&&!r.required)return n();G.required(r,t,i,o,a),t!==void 0&&(G.type(r,t,i,o,a),G.range(r,t,i,o,a))}n(o)},Xd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t)&&!r.required)return n();G.required(r,t,i,o,a),t!==void 0&&(G.type(r,t,i,o,a),G.range(r,t,i,o,a))}n(o)},Zd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t)&&!r.required)return n();G.required(r,t,i,o,a),t!==void 0&&G.type(r,t,i,o,a)}n(o)},Qd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(t===""&&(t=void 0),Se(t)&&!r.required)return n();G.required(r,t,i,o,a),t!==void 0&&(G.type(r,t,i,o,a),G.range(r,t,i,o,a))}n(o)},Jd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t)&&!r.required)return n();G.required(r,t,i,o,a),t!==void 0&&G.type(r,t,i,o,a)}n(o)},Yd=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t,"string")&&!r.required)return n();G.required(r,t,i,o,a),Se(t,"string")||G.pattern(r,t,i,o,a)}n(o)},ev=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t)&&!r.required)return n();G.required(r,t,i,o,a),Se(t)||G.type(r,t,i,o,a)}n(o)},tv=function(r,t,n,i,a){var o=[],s=Array.isArray(t)?"array":q(t);G.required(r,t,i,o,a,s),n(o)},rv=function(r,t,n,i,a){var o=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(Se(t,"string")&&!r.required)return n();G.required(r,t,i,o,a,"string"),Se(t,"string")||(G.type(r,t,i,o,a),G.range(r,t,i,o,a),G.pattern(r,t,i,o,a),r.whitespace===!0&&G.whitespace(r,t,i,o,a))}n(o)},Ai=function(r,t,n,i,a){var o=r.type,s=[],u=r.required||!r.required&&i.hasOwnProperty(r.field);if(u){if(Se(t,o)&&!r.required)return n();G.required(r,t,i,s,a,o),Se(t,o)||G.type(r,t,i,s,a)}n(s)};const Vr={string:rv,method:Zd,number:Qd,boolean:Bd,regexp:ev,integer:Xd,float:Kd,array:Wd,object:Jd,enum:Gd,pattern:Yd,date:qd,url:Ai,hex:Ai,email:Ai,required:tv,any:Hd};var Gr=function(){function e(r){Me(this,e),E(this,"rules",null),E(this,"_messages",va),this.define(r)}return Te(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(q(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(i){var a=t[i];n.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(t){return t&&(this._messages=Do(da(),t)),this._messages}},{key:"validate",value:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=t,s=i,u=a;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,o),Promise.resolve(o);function c(p){var g=[],v={};function b(w){if(Array.isArray(w)){var x;g=(x=g).concat.apply(x,D(w))}else g.push(w)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(C)?C:[C];!s.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&v.message!==void 0&&(k=[].concat(v.message));var _=k.map(zo(v,o));if(s.first&&_.length)return m[v.field]=1,g(_);if(!b)g(_);else{if(v.required&&!p.value)return v.message!==void 0?_=[].concat(v.message).map(zo(v,o)):s.error&&(_=[s.error(v,Be(s.messages.required,v.field))]),g(_);var M={};v.defaultField&&Object.keys(p.value).map(function(T){M[T]=v.defaultField}),M=F(F({},M),p.rule.fields);var A={};Object.keys(M).forEach(function(T){var O=M[T],V=Array.isArray(O)?O:[O];A[T]=V.map(y.bind(null,T))});var R=new e(A);R.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),R.validate(p.value,p.rule.options||s,function(T){var O=[];_&&_.length&&O.push.apply(O,D(_)),T&&T.length&&O.push.apply(O,D(T)),g(O.length?O:null)})}}var x;if(v.asyncValidator)x=v.asyncValidator(v,p.value,w,p.source,s);else if(v.validator){try{x=v.validator(v,p.value,w,p.source,s)}catch(C){var S,P;(S=(P=console).error)===null||S===void 0||S.call(P,C),s.suppressValidatorError||setTimeout(function(){throw C},0),w(C.message)}x===!0?w():x===!1?w(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):x instanceof Array?w(x):x instanceof Error&&w(x.message)}x&&x.then&&x.then(function(){return w()},function(C){return w(C)})},function(p){c(p)},o)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Vr.hasOwnProperty(t.type))throw new Error(Be("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?Vr.required:Vr[this.getType(t)]||void 0}}]),e}();E(Gr,"register",function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Vr[r]=t});E(Gr,"warning",Od);E(Gr,"messages",va);E(Gr,"validators",Vr);var We="'${name}' is not a valid ${type}",pu={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:We,method:We,array:We,object:We,number:We,date:We,boolean:We,integer:We,float:We,regexp:We,email:We,url:We,hex:We},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Wo=Gr;function nv(e,r){return e.replace(/\\?\$\{\w+\}/g,function(t){if(t.startsWith("\\"))return t.slice(1);var n=t.slice(2,-1);return r[n]})}var Bo="CODE_LOGIC_ERROR";function ma(e,r,t,n,i){return pa.apply(this,arguments)}function pa(){return pa=Ur(nt().mark(function e(r,t,n,i,a){var o,s,u,c,l,f,d,m,p;return nt().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=F({},n),delete o.ruleIndex,Wo.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Bo)}}),u=null,o&&o.type==="array"&&o.defaultField&&(u=o.defaultField,delete o.defaultField),c=new Wo(E({},r,[o])),l=Ar(pu,i.validateMessages),c.messages(l),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(E({},r,t),F({},i)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(b,y){var w=b.message,x=w===Bo?l.default:w;return h.isValidElement(x)?h.cloneElement(x,{key:"error_".concat(y)}):x}));case 18:if(!(!f.length&&u)){v.next=23;break}return v.next=21,Promise.all(t.map(function(b,y){return ma("".concat(r,".").concat(y),b,u,i,a)}));case 21:return d=v.sent,v.abrupt("return",d.reduce(function(b,y){return[].concat(D(b),D(y))},[]));case 23:return m=F(F({},n),{},{name:r,enum:(n.enum||[]).join(", ")},a),p=f.map(function(b){return typeof b=="string"?nv(b,m):b}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),pa.apply(this,arguments)}function iv(e,r,t,n,i,a){var o=e.join("."),s=t.map(function(l,f){var d=l.validator,m=F(F({},l),{},{ruleIndex:f});return d&&(m.validator=function(p,g,v){var b=!1,y=function(){for(var S=arguments.length,P=new Array(S),C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return yu(r,n,t)})}function yu(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(n,i){return e[i]===n})}function sv(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||q(e)!=="object"||q(r)!=="object")return!1;var t=Object.keys(e),n=Object.keys(r),i=new Set([].concat(t,n));return D(i).every(function(a){var o=e[a],s=r[a];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function uv(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&q(r.target)==="object"&&e in r.target?r.target[e]:r}function Uo(e,r,t){var n=e.length;if(r<0||r>=n||t<0||t>=n)return e;var i=e[r],a=r-t;return a>0?[].concat(D(e.slice(0,t)),[i],D(e.slice(t,r)),D(e.slice(r+1,n))):a<0?[].concat(D(e.slice(0,r)),D(e.slice(r+1,t+1)),[i],D(e.slice(t+1,n))):e}var cv=["name"],Qe=[];function $i(e,r,t,n,i,a){return typeof e=="function"?e(r,t,"source"in a?{source:a.source}:{}):n!==i}var Da=function(e){Qt(t,e);var r=Jt(t);function t(n){var i;if(Me(this,t),i=r.call(this,n),E(U(i),"state",{resetCount:0}),E(U(i),"cancelRegisterFunc",null),E(U(i),"mounted",!1),E(U(i),"touched",!1),E(U(i),"dirty",!1),E(U(i),"validatePromise",void 0),E(U(i),"prevValidating",void 0),E(U(i),"errors",Qe),E(U(i),"warnings",Qe),E(U(i),"cancelRegister",function(){var u=i.props,c=u.preserve,l=u.isListField,f=u.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(l,c,ge(f)),i.cancelRegisterFunc=null}),E(U(i),"getNamePath",function(){var u=i.props,c=u.name,l=u.fieldContext,f=l.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(D(d),D(c)):[]}),E(U(i),"getRules",function(){var u=i.props,c=u.rules,l=c===void 0?[]:c,f=u.fieldContext;return l.map(function(d){return typeof d=="function"?d(f):d})}),E(U(i),"refresh",function(){i.mounted&&i.setState(function(u){var c=u.resetCount;return{resetCount:c+1}})}),E(U(i),"metaCache",null),E(U(i),"triggerMetaEvent",function(u){var c=i.props.onMetaChange;if(c){var l=F(F({},i.getMeta()),{},{destroy:u});Qa(i.metaCache,l)||c(l),i.metaCache=l}else i.metaCache=null}),E(U(i),"onStoreChange",function(u,c,l){var f=i.props,d=f.shouldUpdate,m=f.dependencies,p=m===void 0?[]:m,g=f.onReset,v=l.store,b=i.getNamePath(),y=i.getValue(u),w=i.getValue(v),x=c&&hr(c,b);switch(l.type==="valueUpdate"&&l.source==="external"&&!Qa(y,w)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Qe,i.warnings=Qe,i.triggerMetaEvent()),l.type){case"reset":if(!c||x){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Qe,i.warnings=Qe,i.triggerMetaEvent(),g?.(),i.refresh();return}break;case"remove":{if(d&&$i(d,u,v,y,w,l)){i.reRender();return}break}case"setField":{var S=l.data;if(x){"touched"in S&&(i.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(i.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(i.errors=S.errors||Qe),"warnings"in S&&(i.warnings=S.warnings||Qe),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in S&&hr(c,b,!0)){i.reRender();return}if(d&&!b.length&&$i(d,u,v,y,w,l)){i.reRender();return}break}case"dependenciesUpdate":{var P=p.map(ge);if(P.some(function(C){return hr(l.relatedFields,C)})){i.reRender();return}break}default:if(x||(!p.length||b.length||d)&&$i(d,u,v,y,w,l)){i.reRender();return}break}d===!0&&i.reRender()}),E(U(i),"validateRules",function(u){var c=i.getNamePath(),l=i.getValue(),f=u||{},d=f.triggerName,m=f.validateOnly,p=m===void 0?!1:m,g=Promise.resolve().then(Ur(nt().mark(function v(){var b,y,w,x,S,P,C;return nt().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(i.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(b=i.props,y=b.validateFirst,w=y===void 0?!1:y,x=b.messageVariables,S=b.validateDebounce,P=i.getRules(),d&&(P=P.filter(function(M){return M}).filter(function(M){var A=M.validateTrigger;if(!A)return!0;var R=fa(A);return R.includes(d)})),!(S&&d)){_.next=10;break}return _.next=8,new Promise(function(M){setTimeout(M,S)});case 8:if(i.validatePromise===g){_.next=10;break}return _.abrupt("return",[]);case 10:return C=iv(c,l,P,u,w,x),C.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qe;if(i.validatePromise===g){var A;i.validatePromise=null;var R=[],T=[];(A=M.forEach)===null||A===void 0||A.call(M,function(O){var V=O.rule.warningOnly,j=O.errors,$=j===void 0?Qe:j;V?T.push.apply(T,D($)):R.push.apply(R,D($))}),i.errors=R,i.warnings=T,i.triggerMetaEvent(),i.reRender()}}),_.abrupt("return",C);case 13:case"end":return _.stop()}},v)})));return p||(i.validatePromise=g,i.dirty=!0,i.errors=Qe,i.warnings=Qe,i.triggerMetaEvent(),i.reRender()),g}),E(U(i),"isFieldValidating",function(){return!!i.validatePromise}),E(U(i),"isFieldTouched",function(){return i.touched}),E(U(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var u=i.props.fieldContext,c=u.getInternalHooks(Ut),l=c.getInitialValue;return l(i.getNamePath())!==void 0}),E(U(i),"getErrors",function(){return i.errors}),E(U(i),"getWarnings",function(){return i.warnings}),E(U(i),"isListField",function(){return i.props.isListField}),E(U(i),"isList",function(){return i.props.isList}),E(U(i),"isPreserve",function(){return i.props.preserve}),E(U(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var u={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return u}),E(U(i),"getOnlyChild",function(u){if(typeof u=="function"){var c=i.getMeta();return F(F({},i.getOnlyChild(u(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var l=Rn(u);return l.length!==1||!h.isValidElement(l[0])?{child:l,isFunction:!1}:{child:l[0],isFunction:!1}}),E(U(i),"getValue",function(u){var c=i.props.fieldContext.getFieldsValue,l=i.getNamePath();return yt(u||c(!0),l)}),E(U(i),"getControlled",function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,l=c.name,f=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,p=c.normalize,g=c.valuePropName,v=c.getValueProps,b=c.fieldContext,y=d!==void 0?d:b.validateTrigger,w=i.getNamePath(),x=b.getInternalHooks,S=b.getFieldsValue,P=x(Ut),C=P.dispatch,k=i.getValue(),_=v||function(O){return E({},g,O)},M=u[f],A=l!==void 0?_(k):{},R=F(F({},u),A);R[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var O,V=arguments.length,j=new Array(V),$=0;$=0&&M<=A.length?(l.keys=[].concat(D(l.keys.slice(0,M)),[l.id],D(l.keys.slice(M))),w([].concat(D(A.slice(0,M)),[_],D(A.slice(M))))):(l.keys=[].concat(D(l.keys),[l.id]),w([].concat(D(A),[_]))),l.id+=1},remove:function(_){var M=S(),A=new Set(Array.isArray(_)?_:[_]);A.size<=0||(l.keys=l.keys.filter(function(R,T){return!A.has(T)}),w(M.filter(function(R,T){return!A.has(T)})))},move:function(_,M){if(_!==M){var A=S();_<0||_>=A.length||M<0||M>=A.length||(l.keys=Uo(l.keys,_,M),w(Uo(A,_,M)))}}},C=y||[];return Array.isArray(C)||(C=[]),n(C.map(function(k,_){var M=l.keys[_];return M===void 0&&(l.keys[_]=l.id,M=l.keys[_],l.id+=1),{name:_,key:M,isListField:!0}}),P,v)})))}function fv(e){var r=!1,t=e.length,n=[];return e.length?new Promise(function(i,a){e.forEach(function(o,s){o.catch(function(u){return r=!0,u}).then(function(u){t-=1,n[s]=u,!(t>0)&&(r&&a(n),i(n))})})}):Promise.resolve([])}var wu="__@field_split__";function ji(e){return e.map(function(r){return"".concat(q(r),":").concat(r)}).join(wu)}var sr=function(){function e(){Me(this,e),E(this,"kvs",new Map)}return Te(e,[{key:"set",value:function(t,n){this.kvs.set(ji(t),n)}},{key:"get",value:function(t){return this.kvs.get(ji(t))}},{key:"update",value:function(t,n){var i=this.get(t),a=n(i);a?this.set(t,a):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(ji(t))}},{key:"map",value:function(t){return D(this.kvs.entries()).map(function(n){var i=I(n,2),a=i[0],o=i[1],s=a.split(wu);return t({key:s.map(function(u){var c=u.match(/^([^:]*):(.*)$/),l=I(c,3),f=l[1],d=l[2];return f==="number"?Number(d):d}),value:o})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var i=n.key,a=n.value;return t[i.join(".")]=a,null}),t}}]),e}(),dv=["name"],vv=Te(function e(r){var t=this;Me(this,e),E(this,"formHooked",!1),E(this,"forceRootUpdate",void 0),E(this,"subscribable",!0),E(this,"store",{}),E(this,"fieldEntities",[]),E(this,"initialValues",{}),E(this,"callbacks",{}),E(this,"validateMessages",null),E(this,"preserve",null),E(this,"lastValidatePromise",null),E(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),E(this,"getInternalHooks",function(n){return n===Ut?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(et(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),E(this,"useSubscribe",function(n){t.subscribable=n}),E(this,"prevWithoutPreserves",null),E(this,"setInitialValues",function(n,i){if(t.initialValues=n||{},i){var a,o=Ar(n,t.store);(a=t.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var u=s.key;o=ft(o,u,yt(n,u))}),t.prevWithoutPreserves=null,t.updateStore(o)}}),E(this,"destroyForm",function(n){if(n)t.updateStore({});else{var i=new sr;t.getFieldEntities(!0).forEach(function(a){t.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),t.prevWithoutPreserves=i}}),E(this,"getInitialValue",function(n){var i=yt(t.initialValues,n);return n.length?Ar(i):i}),E(this,"setCallbacks",function(n){t.callbacks=n}),E(this,"setValidateMessages",function(n){t.validateMessages=n}),E(this,"setPreserve",function(n){t.preserve=n}),E(this,"watchList",[]),E(this,"registerWatch",function(n){return t.watchList.push(n),function(){t.watchList=t.watchList.filter(function(i){return i!==n})}}),E(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var i=t.getFieldsValue(),a=t.getFieldsValue(!0);t.watchList.forEach(function(o){o(i,a,n)})}}),E(this,"timeoutId",null),E(this,"warningUnhooked",function(){}),E(this,"updateStore",function(n){t.store=n}),E(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?t.fieldEntities.filter(function(i){return i.getNamePath().length}):t.fieldEntities}),E(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new sr;return t.getFieldEntities(n).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),E(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return t.getFieldEntities(!0);var i=t.getFieldsMap(!0);return n.map(function(a){var o=ge(a);return i.get(o)||{INVALIDATE_NAME_PATH:ge(a)}})}),E(this,"getFieldsValue",function(n,i){t.warningUnhooked();var a,o,s;if(n===!0||Array.isArray(n)?(a=n,o=i):n&&q(n)==="object"&&(s=n.strict,o=n.filter),a===!0&&!o)return t.store;var u=t.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return u.forEach(function(l){var f,d,m="INVALIDATE_NAME_PATH"in l?l.INVALIDATE_NAME_PATH:l.getNamePath();if(s){var p,g;if((p=(g=l).isList)!==null&&p!==void 0&&p.call(g))return}else if(!a&&(f=(d=l).isListField)!==null&&f!==void 0&&f.call(d))return;if(!o)c.push(m);else{var v="getMeta"in l?l.getMeta():null;o(v)&&c.push(m)}}),qo(t.store,c.map(ge))}),E(this,"getFieldValue",function(n){t.warningUnhooked();var i=ge(n);return yt(t.store,i)}),E(this,"getFieldsError",function(n){t.warningUnhooked();var i=t.getFieldEntitiesForNamePathList(n);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:ge(n[o]),errors:[],warnings:[]}})}),E(this,"getFieldError",function(n){t.warningUnhooked();var i=ge(n),a=t.getFieldsError([i])[0];return a.errors}),E(this,"getFieldWarning",function(n){t.warningUnhooked();var i=ge(n),a=t.getFieldsError([i])[0];return a.warnings}),E(this,"isFieldsTouched",function(){t.warningUnhooked();for(var n=arguments.length,i=new Array(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new sr,a=t.getFieldEntities(!0);a.forEach(function(u){var c=u.props.initialValue,l=u.getNamePath();if(c!==void 0){var f=i.get(l)||new Set;f.add({entity:u,value:c}),i.set(l,f)}});var o=function(c){c.forEach(function(l){var f=l.props.initialValue;if(f!==void 0){var d=l.getNamePath(),m=t.getInitialValue(d);if(m!==void 0)et(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var p=i.get(d);if(p&&p.size>1)et(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var g=t.getFieldValue(d),v=l.isListField();!v&&(!n.skipExist||g===void 0)&&t.updateStore(ft(t.store,d,D(p)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(u){var c=i.get(u);if(c){var l;(l=s).push.apply(l,D(D(c).map(function(f){return f.entity})))}})):s=a,o(s)}),E(this,"resetFields",function(n){t.warningUnhooked();var i=t.store;if(!n){t.updateStore(Ar(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(i,null,{type:"reset"}),t.notifyWatch();return}var a=n.map(ge);a.forEach(function(o){var s=t.getInitialValue(o);t.updateStore(ft(t.store,o,s))}),t.resetWithFieldInitialValue({namePathList:a}),t.notifyObservers(i,a,{type:"reset"}),t.notifyWatch(a)}),E(this,"setFields",function(n){t.warningUnhooked();var i=t.store,a=[];n.forEach(function(o){var s=o.name,u=Xt(o,dv),c=ge(s);a.push(c),"value"in u&&t.updateStore(ft(t.store,c,u.value)),t.notifyObservers(i,[c],{type:"setField",data:o})}),t.notifyWatch(a)}),E(this,"getFields",function(){var n=t.getFieldEntities(!0),i=n.map(function(a){var o=a.getNamePath(),s=a.getMeta(),u=F(F({},s),{},{name:o,value:t.getFieldValue(o)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return i}),E(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var a=n.getNamePath(),o=yt(t.store,a);o===void 0&&t.updateStore(ft(t.store,a,i))}}),E(this,"isMergedPreserve",function(n){var i=n!==void 0?n:t.preserve;return i??!0}),E(this,"registerField",function(n){t.fieldEntities.push(n);var i=n.getNamePath();if(t.notifyWatch([i]),n.props.initialValue!==void 0){var a=t.store;t.resetWithFieldInitialValue({entities:[n],skipExist:!0}),t.notifyObservers(a,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(f){return f!==n}),!t.isMergedPreserve(s)&&(!o||u.length>1)){var c=o?void 0:t.getInitialValue(i);if(i.length&&t.getFieldValue(i)!==c&&t.fieldEntities.every(function(f){return!yu(f.getNamePath(),i)})){var l=t.store;t.updateStore(ft(l,i,c,!0)),t.notifyObservers(l,[i],{type:"remove"}),t.triggerDependenciesUpdate(l,i)}}t.notifyWatch([i])}}),E(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,a=n.value;t.updateValue(i,a);break}case"validateField":{var o=n.namePath,s=n.triggerName;t.validateFields([o],{triggerName:s});break}}}),E(this,"notifyObservers",function(n,i,a){if(t.subscribable){var o=F(F({},a),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(s){var u=s.onStoreChange;u(n,i,o)})}else t.forceRootUpdate()}),E(this,"triggerDependenciesUpdate",function(n,i){var a=t.getDependencyChildrenFields(i);return a.length&&t.validateFields(a),t.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[i].concat(D(a))}),a}),E(this,"updateValue",function(n,i){var a=ge(n),o=t.store;t.updateStore(ft(t.store,a,i)),t.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),t.notifyWatch([a]);var s=t.triggerDependenciesUpdate(o,a),u=t.callbacks.onValuesChange;if(u){var c=qo(t.store,[a]);u(c,t.getFieldsValue())}t.triggerOnFieldsChange([a].concat(D(s)))}),E(this,"setFieldsValue",function(n){t.warningUnhooked();var i=t.store;if(n){var a=Ar(t.store,n);t.updateStore(a)}t.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),E(this,"setFieldValue",function(n,i){t.setFields([{name:n,value:i,errors:[],warnings:[]}])}),E(this,"getDependencyChildrenFields",function(n){var i=new Set,a=[],o=new sr;t.getFieldEntities().forEach(function(u){var c=u.props.dependencies;(c||[]).forEach(function(l){var f=ge(l);o.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(u),d})})});var s=function u(c){var l=o.get(c)||new Set;l.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(a.push(d),u(d))}})};return s(n),a}),E(this,"triggerOnFieldsChange",function(n,i){var a=t.callbacks.onFieldsChange;if(a){var o=t.getFields();if(i){var s=new sr;i.forEach(function(c){var l=c.name,f=c.errors;s.set(l,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var u=o.filter(function(c){var l=c.name;return hr(n,l)});u.length&&a(u,o)}}),E(this,"validateFields",function(n,i){t.warningUnhooked();var a,o;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(a=n,o=i):o=n;var s=!!a,u=s?a.map(ge):[],c=[],l=String(Date.now()),f=new Set,d=o||{},m=d.recursive,p=d.dirty;t.getFieldEntities(!0).forEach(function(y){if(s||u.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(p&&!y.isFieldDirty())){var w=y.getNamePath();if(f.add(w.join(l)),!s||hr(u,w,m)){var x=y.validateRules(F({validateMessages:F(F({},pu),t.validateMessages)},o));c.push(x.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(S){var P,C=[],k=[];return(P=S.forEach)===null||P===void 0||P.call(S,function(_){var M=_.rule.warningOnly,A=_.errors;M?k.push.apply(k,D(A)):C.push.apply(C,D(A))}),C.length?Promise.reject({name:w,errors:C,warnings:k}):{name:w,errors:C,warnings:k}}))}}});var g=fv(c);t.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var w=y.map(function(x){var S=x.name;return S});t.notifyObservers(t.store,w,{type:"validateFinish"}),t.triggerOnFieldsChange(w,y)});var v=g.then(function(){return t.lastValidatePromise===g?Promise.resolve(t.getFieldsValue(u)):Promise.reject([])}).catch(function(y){var w=y.filter(function(x){return x&&x.errors.length});return Promise.reject({values:t.getFieldsValue(u),errorFields:w,outOfDate:t.lastValidatePromise!==g})});v.catch(function(y){return y});var b=u.filter(function(y){return f.has(y.join(l))});return t.triggerOnFieldsChange(b),v}),E(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(n){var i=t.callbacks.onFinish;if(i)try{i(n)}catch(a){console.error(a)}}).catch(function(n){var i=t.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=r});function Su(e){var r=h.useRef(),t=h.useState({}),n=I(t,2),i=n[1];if(!r.current)if(e)r.current=e;else{var a=function(){i({})},o=new vv(a);r.current=o.getForm()}return[r.current]}var wa=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),hv=function(r){var t=r.validateMessages,n=r.onFormChange,i=r.onFormFinish,a=r.children,o=h.useContext(wa),s=h.useRef({});return h.createElement(wa.Provider,{value:F(F({},o),{},{validateMessages:F(F({},o.validateMessages),t),triggerFormChange:function(c,l){n&&n(c,{changedFields:l,forms:s.current}),o.triggerFormChange(c,l)},triggerFormFinish:function(c,l){i&&i(c,{values:l,forms:s.current}),o.triggerFormFinish(c,l)},registerForm:function(c,l){c&&(s.current=F(F({},s.current),{},E({},c,l))),o.registerForm(c,l)},unregisterForm:function(c){var l=F({},s.current);delete l[c],s.current=l,o.unregisterForm(c)}})},a)},gv=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],mv=function(r,t){var n=r.name,i=r.initialValues,a=r.fields,o=r.form,s=r.preserve,u=r.children,c=r.component,l=c===void 0?"form":c,f=r.validateMessages,d=r.validateTrigger,m=d===void 0?"onChange":d,p=r.onValuesChange,g=r.onFieldsChange,v=r.onFinish,b=r.onFinishFailed,y=r.clearOnDestroy,w=Xt(r,gv),x=h.useRef(null),S=h.useContext(wa),P=Su(o),C=I(P,1),k=C[0],_=k.getInternalHooks(Ut),M=_.useSubscribe,A=_.setInitialValues,R=_.setCallbacks,T=_.setValidateMessages,O=_.setPreserve,V=_.destroyForm;h.useImperativeHandle(t,function(){return F(F({},k),{},{nativeElement:x.current})}),h.useEffect(function(){return S.registerForm(n,k),function(){S.unregisterForm(n)}},[S,k,n]),T(F(F({},S.validateMessages),f)),R({onValuesChange:p,onFieldsChange:function(X){if(S.triggerFormChange(n,X),g){for(var Q=arguments.length,ne=new Array(Q>1?Q-1:0),ae=1;ae{const n=h.useContext(Ko),i=h.useMemo(()=>{const a=Object.assign({},n);return t&&delete a.isFormItemInput,r&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[r,t,n]);return h.createElement(Ko.Provider,{value:i},e)},wv=e=>{const{space:r,form:t,children:n}=e;if(n==null)return null;let i=n;return t&&(i=Oe.createElement(bv,{override:!0,status:!0},i)),r&&(i=Oe.createElement(ed,null,i)),i},Sv=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))};function Cv(e){var r=e.prefixCls,t=e.align,n=e.arrow,i=e.arrowPos,a=n||{},o=a.className,s=a.content,u=i.x,c=u===void 0?0:u,l=i.y,f=l===void 0?0:l,d=h.useRef();if(!t||!t.points)return null;var m={position:"absolute"};if(t.autoArrow!==!1){var p=t.points[0],g=t.points[1],v=p[0],b=p[1],y=g[0],w=g[1];v===y||!["t","b"].includes(v)?m.top=f:v==="t"?m.top=0:m.bottom=0,b===w||!["l","r"].includes(b)?m.left=c:b==="l"?m.left=0:m.right=0}return h.createElement("div",{ref:d,className:je("".concat(r,"-arrow"),o),style:m},s)}function xv(e){var r=e.prefixCls,t=e.open,n=e.zIndex,i=e.mask,a=e.motion;return i?h.createElement(Na,bt({},a,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(o){var s=o.className;return h.createElement("div",{style:{zIndex:n},className:je("".concat(r,"-mask"),s)})}):null}var Ev=h.memo(function(e){var r=e.children;return r},function(e,r){return r.cache}),Pv=h.forwardRef(function(e,r){var t=e.popup,n=e.className,i=e.prefixCls,a=e.style,o=e.target,s=e.onVisibleChanged,u=e.open,c=e.keepDom,l=e.fresh,f=e.onClick,d=e.mask,m=e.arrow,p=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,x=e.autoDestroy,S=e.portal,P=e.zIndex,C=e.onMouseEnter,k=e.onMouseLeave,_=e.onPointerEnter,M=e.onPointerDownCapture,A=e.ready,R=e.offsetX,T=e.offsetY,O=e.offsetR,V=e.offsetB,j=e.onAlign,$=e.onPrepare,z=e.stretch,W=e.targetWidth,K=e.targetHeight,B=typeof t=="function"?t():t,N=u||c,re=w?.length>0,X=h.useState(!w||!re),Q=I(X,2),ne=Q[0],ae=Q[1];if($e(function(){!ne&&re&&o&&ae(!0)},[ne,re,o]),!ne)return null;var Fe="auto",ce={left:"-1000vw",top:"-1000vh",right:Fe,bottom:Fe};if(A||!u){var Ve,Ie=g.points,me=g.dynamicInset||((Ve=g._experimental)===null||Ve===void 0?void 0:Ve.dynamicInset),Pe=me&&Ie[0][1]==="r",le=me&&Ie[0][0]==="b";Pe?(ce.right=O,ce.left=Fe):(ce.left=R,ce.right=Fe),le?(ce.bottom=V,ce.top=Fe):(ce.top=T,ce.bottom=Fe)}var Ce={};return z&&(z.includes("height")&&K?Ce.height=K:z.includes("minHeight")&&K&&(Ce.minHeight=K),z.includes("width")&&W?Ce.width=W:z.includes("minWidth")&&W&&(Ce.minWidth=W)),u||(Ce.pointerEvents="none"),h.createElement(S,{open:y||N,getContainer:w&&function(){return w(o)},autoDestroy:x},h.createElement(xv,{prefixCls:i,open:u,zIndex:P,mask:d,motion:b}),h.createElement(Oa,{onResize:j,disabled:!u},function(be){return h.createElement(Na,bt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:$,onEnterPrepare:$,visible:u,onVisibleChanged:function(Re){var fe;v==null||(fe=v.onVisibleChanged)===null||fe===void 0||fe.call(v,Re),s(Re)}}),function(Le,Re){var fe=Le.className,De=Le.style,J=je(i,fe,n);return h.createElement("div",{ref:cs(be,r,Re),className:J,style:F(F(F(F({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},ce),Ce),De),{},{boxSizing:"border-box",zIndex:P},a),onMouseEnter:C,onMouseLeave:k,onPointerEnter:_,onClick:f,onPointerDownCapture:M},m&&h.createElement(Cv,{prefixCls:i,arrow:m,arrowPos:p,align:g}),h.createElement(Ev,{cache:!u&&!l},B))})}))}),Fv=h.forwardRef(function(e,r){var t=e.children,n=e.getTriggerDOMNode,i=Zn(t),a=h.useCallback(function(s){Pa(r,n?n(s):s)},[n]),o=Fa(a,ka(t));return i?h.cloneElement(t,{ref:o}):t}),Xo=h.createContext(null);function Zo(e){return e?Array.isArray(e)?e:[e]:[]}function kv(e,r,t,n){return h.useMemo(function(){var i=Zo(t??r),a=Zo(n??r),o=new Set(i),s=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,r,t,n])}function _v(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===r[0]:e[0]===r[0]&&e[1]===r[1]}function Ov(e,r,t,n){for(var i=t.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?r:e}function Rr(e){return qr(parseFloat(e),0)}function Jo(e,r){var t=F({},e);return(r||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=Xr(n).getComputedStyle(n),a=i.overflow,o=i.overflowClipMargin,s=i.borderTopWidth,u=i.borderBottomWidth,c=i.borderLeftWidth,l=i.borderRightWidth,f=n.getBoundingClientRect(),d=n.offsetHeight,m=n.clientHeight,p=n.offsetWidth,g=n.clientWidth,v=Rr(s),b=Rr(u),y=Rr(c),w=Rr(l),x=qr(Math.round(f.width/p*1e3)/1e3),S=qr(Math.round(f.height/d*1e3)/1e3),P=(p-g-y-w)*x,C=(d-m-v-b)*S,k=v*S,_=b*S,M=y*x,A=w*x,R=0,T=0;if(a==="clip"){var O=Rr(o);R=O*x,T=O*S}var V=f.x+M-R,j=f.y+k-T,$=V+f.width+2*R-M-A-P,z=j+f.height+2*T-k-_-C;t.left=Math.max(t.left,V),t.top=Math.max(t.top,j),t.right=Math.min(t.right,$),t.bottom=Math.min(t.bottom,z)}}),t}function Yo(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(r),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function es(e,r){var t=r||[],n=I(t,2),i=n[0],a=n[1];return[Yo(e.width,i),Yo(e.height,a)]}function ts(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ur(e,r){var t=r[0],n=r[1],i,a;return t==="t"?a=e.y:t==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function Ot(e,r){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===r?t[n]||"c":n}).join("")}function Mv(e,r,t,n,i,a,o){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),u=I(s,2),c=u[0],l=u[1],f=h.useRef(0),d=h.useMemo(function(){return r?Sa(r):[]},[r]),m=h.useRef({}),p=function(){m.current={}};e||p();var g=Ye(function(){if(r&&t&&e){let Xe=function(_r,Ct){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qe,vn=N.x+_r,hn=N.y+Ct,yi=vn+le,bi=hn+Pe,L=Math.max(vn,Ht.left),H=Math.max(hn,Ht.top),oe=Math.min(yi,Ht.right),he=Math.min(bi,Ht.bottom);return Math.max(0,(oe-L)*(he-H))},ir=function(){Et=N.y+se,Pt=Et+Pe,Vt=N.x+ie,St=Vt+le};var y,w,x,S,P=r,C=P.ownerDocument,k=Xr(P),_=k.getComputedStyle(P),M=_.position,A=P.style.left,R=P.style.top,T=P.style.right,O=P.style.bottom,V=P.style.overflow,j=F(F({},i[n]),a),$=C.createElement("div");(y=P.parentElement)===null||y===void 0||y.appendChild($),$.style.left="".concat(P.offsetLeft,"px"),$.style.top="".concat(P.offsetTop,"px"),$.style.position=M,$.style.height="".concat(P.offsetHeight,"px"),$.style.width="".concat(P.offsetWidth,"px"),P.style.left="0",P.style.top="0",P.style.right="auto",P.style.bottom="auto",P.style.overflow="hidden";var z;if(Array.isArray(t))z={x:t[0],y:t[1],width:0,height:0};else{var W,K,B=t.getBoundingClientRect();B.x=(W=B.x)!==null&&W!==void 0?W:B.left,B.y=(K=B.y)!==null&&K!==void 0?K:B.top,z={x:B.x,y:B.y,width:B.width,height:B.height}}var N=P.getBoundingClientRect(),re=k.getComputedStyle(P),X=re.height,Q=re.width;N.x=(w=N.x)!==null&&w!==void 0?w:N.left,N.y=(x=N.y)!==null&&x!==void 0?x:N.top;var ne=C.documentElement,ae=ne.clientWidth,Fe=ne.clientHeight,ce=ne.scrollWidth,Ve=ne.scrollHeight,Ie=ne.scrollTop,me=ne.scrollLeft,Pe=N.height,le=N.width,Ce=z.height,be=z.width,Le={left:0,top:0,right:ae,bottom:Fe},Re={left:-me,top:-Ie,right:ce-me,bottom:Ve-Ie},fe=j.htmlRegion,De="visible",J="visibleFirst";fe!=="scroll"&&fe!==J&&(fe=De);var te=fe===J,ke=Jo(Re,d),Z=Jo(Le,d),qe=fe===De?Z:ke,we=te?Z:qe;P.style.left="auto",P.style.top="auto",P.style.right="0",P.style.bottom="0";var Yt=P.getBoundingClientRect();P.style.left=A,P.style.top=R,P.style.right=T,P.style.bottom=O,P.style.overflow=V,(S=P.parentElement)===null||S===void 0||S.removeChild($);var ot=qr(Math.round(le/parseFloat(Q)*1e3)/1e3),gt=qr(Math.round(Pe/parseFloat(X)*1e3)/1e3);if(ot===0||gt===0||Ir(t)&&!Jf(t))return;var Sr=j.offset,pe=j.targetOffset,de=es(N,Sr),st=I(de,2),Ue=st[0],ut=st[1],er=es(z,pe),He=I(er,2),xt=He[0],ni=He[1];z.x-=xt,z.y-=ni;var ii=j.points||[],Zr=I(ii,2),ai=Zr[0],Qr=Zr[1],wt=ts(Qr),Ne=ts(ai),Ae=ur(z,wt),Jr=ur(N,Ne),Ge=F({},j),ie=Ae.x-Jr.x+Ue,se=Ae.y-Jr.y+ut,ct=Xe(ie,se),$t=Xe(ie,se,Z),Ke=ur(z,["t","l"]),Yr=ur(N,["t","l"]),Cr=ur(z,["b","r"]),tr=ur(N,["b","r"]),jt=j.overflow||{},oi=jt.adjustX,en=jt.adjustY,rr=jt.shiftX,xr=jt.shiftY,tn=function(Ct){return typeof Ct=="boolean"?Ct:Ct>=0},Et,Pt,Vt,St;ir();var rn=tn(en),ze=Ne[0]===wt[0];if(rn&&Ne[0]==="t"&&(Pt>we.bottom||m.current.bt)){var It=se;ze?It-=Pe-Ce:It=Ke.y-tr.y-ut;var nn=Xe(ie,It),si=Xe(ie,It,Z);nn>ct||nn===ct&&(!te||si>=$t)?(m.current.bt=!0,se=It,ut=-ut,Ge.points=[Ot(Ne,0),Ot(wt,0)]):m.current.bt=!1}if(rn&&Ne[0]==="b"&&(Etct||an===ct&&(!te||ui>=$t)?(m.current.tb=!0,se=Lt,ut=-ut,Ge.points=[Ot(Ne,0),Ot(wt,0)]):m.current.tb=!1}var on=tn(oi),sn=Ne[1]===wt[1];if(on&&Ne[1]==="l"&&(St>we.right||m.current.rl)){var Nt=ie;sn?Nt-=le-be:Nt=Ke.x-tr.x-Ue;var zt=Xe(Nt,se),Er=Xe(Nt,se,Z);zt>ct||zt===ct&&(!te||Er>=$t)?(m.current.rl=!0,ie=Nt,Ue=-Ue,Ge.points=[Ot(Ne,1),Ot(wt,1)]):m.current.rl=!1}if(on&&Ne[1]==="r"&&(Vtct||Pr===ct&&(!te||nr>=$t)?(m.current.lr=!0,ie=Dt,Ue=-Ue,Ge.points=[Ot(Ne,1),Ot(wt,1)]):m.current.lr=!1}ir();var lt=rr===!0?0:rr;typeof lt=="number"&&(VtZ.right&&(ie-=St-Z.right-Ue,z.x>Z.right-lt&&(ie+=z.x-Z.right+lt)));var Ft=xr===!0?0:xr;typeof Ft=="number"&&(EtZ.bottom&&(se-=Pt-Z.bottom-ut,z.y>Z.bottom-Ft&&(se+=z.y-Z.bottom+Ft)));var kt=N.x+ie,_t=kt+le,Fr=N.y+se,ci=Fr+Pe,un=z.x,cn=un+be,ln=z.y,li=ln+Ce,fi=Math.max(kt,un),fn=Math.min(_t,cn),di=(fi+fn)/2,vi=di-kt,dn=Math.max(Fr,ln),hi=Math.min(ci,li),gi=(dn+hi)/2,mi=gi-Fr;o?.(r,Ge);var mt=Yt.right-N.x-(ie+N.width),kr=Yt.bottom-N.y-(se+N.height);ot===1&&(ie=Math.round(ie),mt=Math.round(mt)),gt===1&&(se=Math.round(se),kr=Math.round(kr));var pi={ready:!0,offsetX:ie/ot,offsetY:se/gt,offsetR:mt/ot,offsetB:kr/gt,arrowX:vi/ot,arrowY:mi/gt,scaleX:ot,scaleY:gt,align:Ge};l(pi)}}),v=function(){f.current+=1;var w=f.current;Promise.resolve().then(function(){f.current===w&&g()})},b=function(){l(function(w){return F(F({},w),{},{ready:!1})})};return $e(b,[n]),$e(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function Tv(e,r,t,n,i){$e(function(){if(e&&r&&t){let f=function(){n(),i()};var a=r,o=t,s=Sa(a),u=Sa(o),c=Xr(o),l=new Set([c].concat(D(s),D(u)));return l.forEach(function(d){d.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),n(),function(){l.forEach(function(d){d.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,r,t])}function Rv(e,r,t,n,i,a,o,s){var u=h.useRef(e);u.current=e;var c=h.useRef(!1);h.useEffect(function(){if(r&&n&&(!i||a)){var f=function(){c.current=!1},d=function(v){var b;u.current&&!o(((b=v.composedPath)===null||b===void 0||(b=b.call(v))===null||b===void 0?void 0:b[0])||v.target)&&!c.current&&s(!1)},m=Xr(n);m.addEventListener("pointerdown",f,!0),m.addEventListener("mousedown",d,!0),m.addEventListener("contextmenu",d,!0);var p=la(t);return p&&(p.addEventListener("mousedown",d,!0),p.addEventListener("contextmenu",d,!0)),function(){m.removeEventListener("pointerdown",f,!0),m.removeEventListener("mousedown",d,!0),m.removeEventListener("contextmenu",d,!0),p&&(p.removeEventListener("mousedown",d,!0),p.removeEventListener("contextmenu",d,!0))}}},[r,t,n,i,a]);function l(){c.current=!0}return l}var Av=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function $v(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hu,r=h.forwardRef(function(t,n){var i=t.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=t.children,s=t.action,u=s===void 0?"hover":s,c=t.showAction,l=t.hideAction,f=t.popupVisible,d=t.defaultPopupVisible,m=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,g=t.mouseEnterDelay,v=t.mouseLeaveDelay,b=v===void 0?.1:v,y=t.focusDelay,w=t.blurDelay,x=t.mask,S=t.maskClosable,P=S===void 0?!0:S,C=t.getPopupContainer,k=t.forceRender,_=t.autoDestroy,M=t.destroyPopupOnHide,A=t.popup,R=t.popupClassName,T=t.popupStyle,O=t.popupPlacement,V=t.builtinPlacements,j=V===void 0?{}:V,$=t.popupAlign,z=t.zIndex,W=t.stretch,K=t.getPopupClassNameFromAlign,B=t.fresh,N=t.alignPoint,re=t.onPopupClick,X=t.onPopupAlign,Q=t.arrow,ne=t.popupMotion,ae=t.maskMotion,Fe=t.popupTransitionName,ce=t.popupAnimation,Ve=t.maskTransitionName,Ie=t.maskAnimation,me=t.className,Pe=t.getTriggerDOMNode,le=Xt(t,Av),Ce=_||M||!1,be=h.useState(!1),Le=I(be,2),Re=Le[0],fe=Le[1];$e(function(){fe(Sv())},[]);var De=h.useRef({}),J=h.useContext(Xo),te=h.useMemo(function(){return{registerSubPopup:function(H,oe){De.current[H]=oe,J?.registerSubPopup(H,oe)}}},[J]),ke=gu(),Z=h.useState(null),qe=I(Z,2),we=qe[0],Yt=qe[1],ot=h.useRef(null),gt=Ye(function(L){ot.current=L,Ir(L)&&we!==L&&Yt(L),J?.registerSubPopup(ke,L)}),Sr=h.useState(null),pe=I(Sr,2),de=pe[0],st=pe[1],Ue=h.useRef(null),ut=Ye(function(L){Ir(L)&&de!==L&&(st(L),Ue.current=L)}),er=h.Children.only(o),He=er?.props||{},xt={},ni=Ye(function(L){var H,oe,he=de;return he?.contains(L)||((H=la(he))===null||H===void 0?void 0:H.host)===L||L===he||we?.contains(L)||((oe=la(we))===null||oe===void 0?void 0:oe.host)===L||L===we||Object.values(De.current).some(function(ve){return ve?.contains(L)||L===ve})}),ii=Qo(a,ne,ce,Fe),Zr=Qo(a,ae,Ie,Ve),ai=h.useState(d||!1),Qr=I(ai,2),wt=Qr[0],Ne=Qr[1],Ae=f??wt,Jr=Ye(function(L){f===void 0&&Ne(L)});$e(function(){Ne(f||!1)},[f]);var Ge=h.useRef(Ae);Ge.current=Ae;var ie=h.useRef([]);ie.current=[];var se=Ye(function(L){var H;Jr(L),((H=ie.current[ie.current.length-1])!==null&&H!==void 0?H:Ae)!==L&&(ie.current.push(L),m?.(L))}),ct=h.useRef(),$t=function(){clearTimeout(ct.current)},Ke=function(H){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;$t(),oe===0?se(H):ct.current=setTimeout(function(){se(H)},oe*1e3)};h.useEffect(function(){return $t},[]);var Yr=h.useState(!1),Cr=I(Yr,2),tr=Cr[0],jt=Cr[1];$e(function(L){(!L||Ae)&&jt(!0)},[Ae]);var oi=h.useState(null),en=I(oi,2),rr=en[0],xr=en[1],tn=h.useState(null),Et=I(tn,2),Pt=Et[0],Vt=Et[1],St=function(H){Vt([H.clientX,H.clientY])},rn=Mv(Ae,we,N&&Pt!==null?Pt:de,O,j,$,X),ze=I(rn,11),It=ze[0],nn=ze[1],si=ze[2],Lt=ze[3],an=ze[4],ui=ze[5],on=ze[6],sn=ze[7],Nt=ze[8],zt=ze[9],Er=ze[10],Dt=kv(Re,u,c,l),Pr=I(Dt,2),nr=Pr[0],lt=Pr[1],Ft=nr.has("click"),kt=lt.has("click")||lt.has("contextMenu"),_t=Ye(function(){tr||Er()}),Fr=function(){Ge.current&&N&&kt&&Ke(!1)};Tv(Ae,de,we,_t,Fr),$e(function(){_t()},[Pt,O]),$e(function(){Ae&&!(j!=null&&j[O])&&_t()},[JSON.stringify($)]);var ci=h.useMemo(function(){var L=Ov(j,a,zt,N);return je(L,K?.(zt))},[zt,K,j,a,N]);h.useImperativeHandle(n,function(){return{nativeElement:Ue.current,popupElement:ot.current,forceAlign:_t}});var un=h.useState(0),cn=I(un,2),ln=cn[0],li=cn[1],fi=h.useState(0),fn=I(fi,2),di=fn[0],vi=fn[1],dn=function(){if(W&&de){var H=de.getBoundingClientRect();li(H.width),vi(H.height)}},hi=function(){dn(),_t()},gi=function(H){jt(!1),Er(),p?.(H)},mi=function(){return new Promise(function(H){dn(),xr(function(){return H})})};$e(function(){rr&&(Er(),rr(),xr(null))},[rr]);function mt(L,H,oe,he){xt[L]=function(ve){var gn;he?.(ve),Ke(H,oe);for(var wi=arguments.length,Ha=new Array(wi>1?wi-1:0),mn=1;mn1?oe-1:0),ve=1;ve1?oe-1:0),ve=1;ve{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:u}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:u(n).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Zt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},xu=8;function Eu(e){const{contentRadius:r,limitVerticalRadius:t}=e,n=r>12?r+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:t?xu:n}}function Pn(e,r){return e?r:{}}function Hv(e,r,t){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Dv(e,r,i)),{"&:before":{background:r}})]},Pn(!!u.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Zt(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Pn(!!u.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Zt(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Pn(!!u.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),Pn(!!u.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function Wv(e,r,t,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=r.arrowOffsetHorizontal*2+t,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=r.arrowOffsetVertical*2+t,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const rs={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Bv={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},qv=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Uv(e){const{arrowWidth:r,autoAdjustOverflow:t,arrowPointAtCenter:n,offset:i,borderRadius:a}=e,o=r/2,s={};return Object.keys(rs).forEach(u=>{const c=n&&Bv[u]||rs[u],l=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[u]=l,qv.has(u)&&(l.autoArrow=!1),u){case"top":case"topLeft":case"topRight":l.offset[1]=-o-i;break;case"bottom":case"bottomLeft":case"bottomRight":l.offset[1]=o+i;break;case"left":case"leftTop":case"leftBottom":l.offset[0]=-o-i;break;case"right":case"rightTop":case"rightBottom":l.offset[0]=o+i;break}const f=Eu({contentRadius:a,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":l.offset[0]=-f.arrowOffsetHorizontal-o;break;case"topRight":case"bottomRight":l.offset[0]=f.arrowOffsetHorizontal+o;break;case"leftTop":case"rightTop":l.offset[1]=-f.arrowOffsetHorizontal*2+o;break;case"leftBottom":case"rightBottom":l.offset[1]=f.arrowOffsetHorizontal*2-o;break}l.overflow=Wv(u,f,r,t),l.htmlRegion="visibleFirst"}),s}const Gv=e=>{const{calc:r,componentCls:t,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:u,boxShadowSecondary:c,paddingSM:l,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:m}=e,p=r(o).add(m).add(d).equal(),g=r(o).mul(2).add(m).equal();return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},gf(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:g,minHeight:u,padding:`${Zt(e.calc(l).div(2).equal())} ${Zt(f)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,xu)}},[`${t}-content`]:{position:"relative"}}),Sf(e,(v,{darkColor:b})=>({[`&${t}-${v}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},Hv(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Kv=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Eu({contentRadius:e.borderRadius,limitVerticalRadius:!0})),zv(ri(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Pu=(e,r=!0)=>wf("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=n,s=ri(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[Gv(s),gd(n,"zoom-big-fast")]},Kv,{resetStyle:!1,injectStyle:r})(e),Xv=In.map(e=>`${e}-inverse`);function Zv(e,r=!0){return r?[].concat(D(Xv),D(In)).includes(e):In.includes(e)}function Fu(e,r){const t=Zv(r),n=je({[`${e}-${r}`]:r&&t}),i={},a={};return r&&!t&&(i.background=r,a["--antd-arrow-background-color"]=r),{className:n,overlayStyle:i,arrowStyle:a}}const Qv=e=>{const{prefixCls:r,className:t,placement:n="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:s}=h.useContext(Wr),u=s("tooltip",r),[c,l,f]=Pu(u),d=Fu(u,a),m=d.arrowStyle,p=Object.assign(Object.assign({},o),d.overlayStyle),g=je(l,f,u,`${u}-pure`,`${u}-placement-${n}`,t,d.className);return c(h.createElement("div",{className:g,style:m},h.createElement("div",{className:`${u}-arrow`}),h.createElement(Cu,Object.assign({},e,{className:l,prefixCls:u,overlayInnerStyle:p}),i)))};var Jv=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var t,n;const{prefixCls:i,openClassName:a,getTooltipContainer:o,color:s,overlayInnerStyle:u,children:c,afterOpenChange:l,afterVisibleChange:f,destroyTooltipOnHide:d,destroyOnHidden:m,arrow:p=!0,title:g,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0,motion:x,getPopupContainer:S,placement:P="top",mouseEnterDelay:C=.1,mouseLeaveDelay:k=.1,overlayStyle:_,rootClassName:M,overlayClassName:A,styles:R,classNames:T}=e,O=Jv(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),V=!!p,[,j]=Ia(),{getPopupContainer:$,getPrefixCls:z,direction:W,className:K,style:B,classNames:N,styles:re}=Zl("tooltip"),X=Ml(),Q=h.useRef(null),ne=()=>{var pe;(pe=Q.current)===null||pe===void 0||pe.forceAlign()};h.useImperativeHandle(r,()=>{var pe,de;return{forceAlign:ne,forcePopupAlign:()=>{X.deprecated(!1,"forcePopupAlign","forceAlign"),ne()},nativeElement:(pe=Q.current)===null||pe===void 0?void 0:pe.nativeElement,popupElement:(de=Q.current)===null||de===void 0?void 0:de.popupElement}});const[ae,Fe]=tf(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),ce=!g&&!v&&g!==0,Ve=pe=>{var de,st;Fe(ce?!1:pe),ce||((de=e.onOpenChange)===null||de===void 0||de.call(e,pe),(st=e.onVisibleChange)===null||st===void 0||st.call(e,pe))},Ie=h.useMemo(()=>{var pe,de;let st=y;return typeof p=="object"&&(st=(de=(pe=p.pointAtCenter)!==null&&pe!==void 0?pe:p.arrowPointAtCenter)!==null&&de!==void 0?de:y),b||Uv({arrowPointAtCenter:st,autoAdjustOverflow:w,arrowWidth:V?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS})},[y,p,b,j]),me=h.useMemo(()=>g===0?g:v||g||"",[v,g]),Pe=h.createElement(wv,{space:!0},typeof me=="function"?me():me),le=z("tooltip",i),Ce=z(),be=e["data-popover-inject"];let Le=ae;!("open"in e)&&!("visible"in e)&&ce&&(Le=!1);const Re=h.isValidElement(c)&&!Wf(c)?c:h.createElement("span",null,c),fe=Re.props,De=!fe.className||typeof fe.className=="string"?je(fe.className,a||`${le}-open`):fe.className,[J,te,ke]=Pu(le,!be),Z=Fu(le,s),qe=Z.arrowStyle,we=je(A,{[`${le}-rtl`]:W==="rtl"},Z.className,M,te,ke,K,N.root,T?.root),Yt=je(N.body,T?.body),[ot,gt]=Kf("Tooltip",O.zIndex),Sr=h.createElement(Nv,Object.assign({},O,{zIndex:ot,showArrow:V,placement:P,mouseEnterDelay:C,mouseLeaveDelay:k,prefixCls:le,classNames:{root:we,body:Yt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qe),re.root),B),_),R?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},re.body),u),R?.body),Z.overlayStyle)},getTooltipContainer:S||o||$,ref:Q,builtinPlacements:Ie,overlay:Pe,visible:Le,onVisibleChange:Ve,afterVisibleChange:l??f,arrowContent:h.createElement("span",{className:`${le}-arrow-content`}),motion:{motionName:Qf(Ce,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!d}),Le?qf(Re,{className:De}):Re);return J(h.createElement(cu.Provider,{value:gt},Sr))}),ku=Yv;ku._InternalPanelDoNotUseOrYouWillBeFired=Qv;function ih({content:e,name:r="Assistant",avatar:t,latestInput:n,installedNodes:i,onAddMessage:a}){const[o,s]=h.useState({}),[u,c]=h.useState(null),[l,f]=h.useState([]);h.useEffect(()=>{const g=JSON.parse(e);c(g),f(g.ext?.find(v=>v.type==="workflow")?.data||[])},[e]);const d=async g=>{if(!g.id){console.error("No workflow id provided");return}const v=String(g.id);if(!o[v]){s(b=>({...b,[v]:!0})),Si.trackEvent({event_type:"workflow_accept",message_type:"workflow",message_id:u?.message_id,data:{workflow_id:g.id,workflow_name:g.name}});try{const b=await Si.getOptimizedWorkflow(g.id,n);if(b.workflow){const y=new Set;if(b.workflow.nodes)for(const x of b.workflow.nodes)y.add(x.type);else for(const x of Object.values(b.workflow))y.add(x.class_type);const w=Array.from(y).filter(x=>!i.includes(x));if(console.log("[WorkflowOption] Missing node types:",w),w.length>0){try{console.log("[WorkflowOption] Fetching info for missing nodes");const x=await Si.batchGetNodeInfo(w);console.log("[WorkflowOption] Received node infos:",x);const S={text:"",ext:[{type:"node_install_guide",data:x.map(C=>({name:C.name,repository_url:C.github_url}))}]},P={id:Wa(),role:"ai",content:JSON.stringify(S),format:"markdown",name:"Assistant",metadata:{pendingWorkflow:b.workflow,optimizedParams:b.optimized_params}};a?.(P)}catch(x){console.error("[WorkflowOption] Error fetching node info:",x),alert("Error checking required nodes. Please try again.")}finally{s(x=>({...x,[v]:!1}))}return}m(b.workflow,b.optimized_params)}}catch(b){console.error("Failed to optimize workflow:",b),alert("Failed to optimize workflow. Please try again.")}finally{s(b=>({...b,[v]:!1}))}}},m=(g,v)=>{if(g.nodes)Wt.loadGraphData(g);else{Wt.loadApiJson(g);const y=Object.keys(g),w=Object.keys(Wt.graph._nodes_by_id)[0],x=Wt.graph._nodes_by_id[w],S=x?x.pos[0]:0,P=x?x.pos[1]:0,C=250,k=60,_=20,M=60,A=50,R=1e3;let T=S,O=P,V=0;for(const j of y){const $=Wt.graph._nodes_by_id[j];if($){V>R&&(T+=C+M,V=0,O=P);const z=$.inputs?$.inputs.length:0,W=$.outputs?$.outputs.length:0,K=$.widgets?$.widgets.length:0,B=Math.max(z,W)+K,N=_*B+k;$.size[0]=C,$.size[1]=N,$.pos[0]=T,$.pos[1]=O,V+=N+A,O+=N+A}}}for(const[y,w,x,S,P]of v){const C=Wt.graph._nodes_by_id[y].widgets;for(const k of C)k.name===S&&(k.value=P)}Wt.graph.setDirtyCanvas(!1,!0);const b={id:Wa(),role:"tool",content:JSON.stringify({text:"The workflow has been successfully loaded to the canvas",ext:[]}),format:"markdown",name:"Assistant"};a?.(b)},p=(g,v)=>{const b=g.id?String(g.id):"",y=g?.source==="AI Generated";return ue.jsxs("div",{className:`relative flex flex-col items-center gap-4 p-2 rounded-lg border ${y?"shadow-[0_0_12px_2px_#3b82f6] shadow-[0_0_0_4px_rgba(59,130,246,0.15)]":"border-gray-200"} hover:bg-gray-50`,children:[y&&ue.jsx("div",{className:"absolute left-1/2 top-[-12px] -translate-x-1/2 rounded-lg flex bg-white",children:ue.jsxs("svg",{t:"1752667348457",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"25237",width:"24",height:"24",children:[ue.jsx("path",{d:"M938.656 256A170.656 170.656 0 0 0 768 85.344H256A170.656 170.656 0 0 0 85.344 256v512A170.656 170.656 0 0 0 256 938.656h512A170.656 170.656 0 0 0 938.656 768V256zM256 170.656h512l6.368 0.256A85.344 85.344 0 0 1 853.312 256v512l-0.224 6.4A85.344 85.344 0 0 1 768 853.312H256l-6.336-0.256A85.344 85.344 0 0 1 170.656 768V256l0.224-6.368A85.344 85.344 0 0 1 256 170.656z","p-id":"25238",fill:"#1296db"}),ue.jsx("path",{d:"M633.12 718.464h-95.392l-34.368-95.68h-160.288l-34.336 95.68H213.344l154.56-419.808h110.656l154.56 419.808z m-209.888-333.888l-61.056 177.696h120.192l-59.136-177.696z","p-id":"25239",fill:"#1296db"}),ue.jsx("path",{d:"M682.656 298.656m0 0l85.344 0q0 0 0 0l0 426.656q0 0 0 0l-85.344 0q0 0 0 0l0-426.656q0 0 0 0Z","p-id":"25240",fill:"#1296db"})]})}),ue.jsxs("div",{className:"flex flex-row",children:[ue.jsx("h3",{className:"flex-1 font-medium text-sm line-clamp-2 break-all h-10 overflow-hidden",children:g.name}),ue.jsx("div",{className:"flex items-start",children:g.description&&ue.jsx(ku,{arrow:!1,placement:"top",title:ue.jsx("div",{className:"bg-gray-900 text-white text-xs rounded-md py-2 px-3 min-w-[400px] whitespace-normal break-words",children:g.description}),children:ue.jsx("div",{className:"w-5 h-5 flex items-center justify-center text-gray-500 cursor-help",children:ue.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:ue.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})})})})})]}),ue.jsx("div",{className:"aspect-[3/4] rounded-lg overflow-hidden flex-1 w-full",children:g.image?ue.jsx("img",{src:g.image,alt:g.name,className:"w-full h-full object-cover",onError:w=>{const x=w.target;x.onerror=null,x.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none'%3E%3Crect width='56' height='56' fill='%23F3F4F6'/%3E%3Cpath d='M28 28C30.2091 28 32 26.2091 32 24C32 21.7909 30.2091 20 28 20C25.7909 20 24 21.7909 24 24C24 26.2091 25.7909 28 28 28Z' fill='%239CA3AF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18.7253 37.6307C19.8278 35.1533 22.6897 33.6 26 33.6H30C33.3103 33.6 36.1722 35.1533 37.2747 37.6307C37.6419 38.4561 37.0611 39.2 36.1694 39.2H19.8306C18.9389 39.2 18.3581 38.4561 18.7253 37.6307Z' fill='%239CA3AF'/%3E%3C/svg%3E"}}):ue.jsx("div",{className:"w-full h-full flex items-center justify-center",children:ue.jsxs("svg",{t:"1753686018498",class:"icon",viewBox:"0 0 1026 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1875",width:"98",height:"98",children:[ue.jsx("path",{d:"M0.003166 0v1024h1024V0H0.003166z m962.692789 61.286783v566.902743l-120.857537-118.426494-186.638683 137.466255-287.435012-237.138993L61.28995 705.410873V61.286783h901.406005zM61.28995 962.692788v-172.195431l309.661685-298.34406 282.164349 232.746773 183.104479-134.89221 126.49592 123.962734v248.722194H61.28995z",fill:"#8a8a8a","p-id":"1876"}),ue.jsx("path",{d:"M757.03794 397.199641h0.960159c63.411392 0 118.263062-53.605506 119.733945-117.057756 1.470883-63.901686-51.337895-119.958663-115.321296-122.410134l-4.330933-0.081716c-31.011112 0-61.817935 13.1358-84.555332 36.016199-22.635252 22.819112-35.505476 53.666793-35.301187 84.616619 0.490294 63.942544 54.892529 118.406065 118.814644 118.916788z m-39.999841-160.346653a59.570753 59.570753 0 0 1 42.900748-17.875312h0.143003c30.214384 1.164449 57.098853 29.621945 56.38384 59.734184-0.694584 30.47996-28.00806 57.200998-58.447162 57.200998v30.643391l-0.449436-30.643391c-30.132668-0.245147-57.773007-27.926344-57.997726-58.079442-0.122574-14.749686 6.230823-29.683232 17.466733-40.980428z",fill:"#8a8a8a","p-id":"1877"})]})})}),ue.jsx("button",{onClick:()=>d(g),disabled:o[b],className:`w-full px-3 py-1 ${o[b]?"bg-[#d2d2d2] cursor-not-allowed":"bg-[#ffffff] hover:bg-[#eee]"} text-black rounded-lg text-xs`,children:o[b]?"Loading...":"Accept"})]},v)};return ue.jsx("div",{className:"space-y-3 flex justify-center",children:l.length>0&&ue.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(120px,1fr))] gap-4",children:l.map((g,v)=>p(g,v))})})}export{ih as WorkflowOption}; diff --git a/dist/copilot_web/assets/cc-icon-DfxqqsZi.svg b/dist/copilot_web/assets/cc-icon-DfxqqsZi.svg deleted file mode 100644 index 872a387..0000000 --- a/dist/copilot_web/assets/cc-icon-DfxqqsZi.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - Generated by IcoMoon - - - - \ No newline at end of file diff --git a/dist/copilot_web/assets/input-Dx1yyZQD.css b/dist/copilot_web/assets/input-Dx1yyZQD.css deleted file mode 100644 index b5c33ef..0000000 --- a/dist/copilot_web/assets/input-Dx1yyZQD.css +++ /dev/null @@ -1 +0,0 @@ -:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) *,:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) :before,:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .container{width:100%}@media (min-width: 640px){:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .container{max-width:640px}}@media (min-width: 768px){:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .container{max-width:768px}}@media (min-width: 1024px){:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .container{max-width:1024px}}@media (min-width: 1280px){:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .container{max-width:1280px}}@media (min-width: 1536px){:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .container{max-width:1536px}}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .prose{--tw-prose-links: inherit;--tw-prose-headings: inherit}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .prose-neutral{--tw-prose-links: inherit;--tw-prose-headings: inherit}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pointer-events-none{pointer-events:none}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .\!visible{visibility:visible!important}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .visible{visibility:visible}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .invisible{visibility:hidden}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .collapse{visibility:collapse}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .static{position:static}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .fixed{position:fixed}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .absolute{position:absolute}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .relative{position:relative}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .sticky{position:sticky}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .inset-0{inset:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .inset-y-0{top:0;bottom:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-bottom-1{bottom:-.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-right-1{right:-.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-top-1{top:-.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-top-10{top:-2.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-top-6{top:-1.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bottom-0{bottom:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bottom-2{bottom:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bottom-3{bottom:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bottom-full{bottom:100%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .left-0{left:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .left-1\/2{left:50%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .left-3{left:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .right-0{right:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .right-12{right:3rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .right-14{right:3.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .right-2{right:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .right-3{right:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .right-4{right:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .top-0{top:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .top-1\/2{top:50%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .top-2{top:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .top-3{top:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .top-4{top:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .top-\[-12px\]{top:-12px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .z-10{z-index:10}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .z-50{z-index:50}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .z-\[1000\]{z-index:1000}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .z-\[9999\]{z-index:9999}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .m-4{margin:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .\!my-0\.5{margin-top:.125rem!important;margin-bottom:.125rem!important}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .\!my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mx-\[1px\]{margin-left:1px;margin-right:1px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mx-auto{margin-left:auto;margin-right:auto}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .my-4{margin-top:1rem;margin-bottom:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .my-\[1px\]{margin-top:1px;margin-bottom:1px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-mb-2{margin-bottom:-.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-ml-1{margin-left:-.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mb-1{margin-bottom:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mb-2{margin-bottom:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mb-3{margin-bottom:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mb-4{margin-bottom:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mb-6{margin-bottom:1.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .ml-1{margin-left:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .ml-2{margin-left:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .ml-3{margin-left:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .ml-4{margin-left:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mr-1{margin-right:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mr-2{margin-right:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mr-3{margin-right:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mt-0{margin-top:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mt-0\.5{margin-top:.125rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mt-1{margin-top:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mt-12{margin-top:3rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mt-2{margin-top:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mt-3{margin-top:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mt-4{margin-top:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .mt-6{margin-top:1.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .block{display:block}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .inline{display:inline}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .flex{display:flex}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .inline-flex{display:inline-flex}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .table{display:table}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .grid{display:grid}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .contents{display:contents}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .hidden{display:none}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .aspect-\[3\/4\]{aspect-ratio:3/4}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .aspect-square{aspect-ratio:1 / 1}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-0{height:0px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-1{height:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-10{height:2.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-12{height:3rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-14{height:3.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-16{height:4rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-2{height:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-20{height:5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-3{height:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-3\.5{height:.875rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-3\/5{height:60%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-4{height:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-5{height:1.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-6{height:1.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-7{height:1.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-8{height:2rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-\[24px\]{height:24px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-\[4\.5rem\]{height:4.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-auto{height:auto}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-full{height:100%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .h-px{height:1px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-h-16{max-height:4rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-h-60{max-height:15rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-h-\[200px\]{max-height:200px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-h-\[400px\]{max-height:400px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-h-\[40vh\]{max-height:40vh}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-h-\[80vh\]{max-height:80vh}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-h-\[90vh\]{max-height:90vh}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-h-\[calc\(90vh-2rem\)\]{max-height:calc(90vh - 2rem)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-h-full{max-height:100%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .min-h-0{min-height:0px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .min-h-\[50px\]{min-height:50px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .min-h-\[80px\]{min-height:80px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-1{width:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-1\/2{width:50%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-12{width:3rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-14{width:3.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-16{width:4rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-2{width:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-28{width:7rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-3{width:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-3\.5{width:.875rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-4{width:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-48{width:12rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-5{width:1.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-64{width:16rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-7{width:1.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-8{width:2rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-96{width:24rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-\[100\%\]{width:100%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-\[35\%\]{width:35%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-\[480px\]{width:480px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-\[500px\]{width:500px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-\[65\%\]{width:65%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-\[90\%\]{width:90%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-\[calc\(50\%-0\.25rem\)\]{width:calc(50% - .25rem)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .w-full{width:100%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .min-w-0{min-width:0px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .min-w-\[300px\]{min-width:300px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .min-w-\[400px\]{min-width:400px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-w-2xl{max-width:42rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-w-6xl{max-width:72rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-w-full{max-width:100%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-w-lg{max-width:32rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .max-w-none{max-width:none}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .flex-1{flex:1 1 0%}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .flex-shrink-0{flex-shrink:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#comfyui-copilot-plugin,#comfyui-copilot-modal{@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .animate-bounce{animation:bounce 1s infinite}#comfyui-copilot-plugin,#comfyui-copilot-modal{@keyframes spin{to{transform:rotate(360deg)}}}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .animate-spin{animation:spin 1s linear infinite}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .cursor-ew-resize{cursor:ew-resize}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .cursor-help{cursor:help}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .cursor-not-allowed{cursor:not-allowed}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .cursor-pointer{cursor:pointer}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .resize-none{resize:none}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .resize-y{resize:vertical}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .resize{resize:both}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .grid-cols-\[repeat\(auto-fill\,minmax\(120px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .flex-row{flex-direction:row}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .flex-col{flex-direction:column}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .flex-wrap{flex-wrap:wrap}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .items-start{align-items:flex-start}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .items-center{align-items:center}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .justify-end{justify-content:flex-end}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .justify-center{justify-content:center}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .justify-between{justify-content:space-between}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .gap-1{gap:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .gap-2{gap:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .gap-3{gap:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .gap-4{gap:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .overflow-auto{overflow:auto}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .overflow-hidden{overflow:hidden}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .overflow-visible{overflow:visible}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .overflow-x-auto{overflow-x:auto}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .overflow-y-auto{overflow-y:auto}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .scroll-smooth{scroll-behavior:smooth}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-ellipsis{text-overflow:ellipsis}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .whitespace-normal{white-space:normal}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .whitespace-nowrap{white-space:nowrap}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .whitespace-pre-wrap{white-space:pre-wrap}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .break-words{overflow-wrap:break-word}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .break-all{word-break:break-all}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .rounded{border-radius:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .rounded-full{border-radius:9999px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .rounded-lg{border-radius:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .rounded-md{border-radius:.375rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .rounded-sm{border-radius:.125rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .rounded-xl{border-radius:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border{border-width:1px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-0{border-width:0px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-2{border-width:2px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-4{border-width:4px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-b{border-bottom-width:1px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-b-2{border-bottom-width:2px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-l-4{border-left-width:4px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-r{border-right-width:1px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-t{border-top-width:1px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-solid{border-style:solid}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-dashed{border-style:dashed}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-none{border-style:none}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-\[\#71A3F2\]{--tw-border-opacity: 1;border-color:rgb(113 163 242 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-\[\#979797\]{--tw-border-opacity: 1;border-color:rgb(151 151 151 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-\[\#d1d5db\]{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-blue-100{--tw-border-opacity: 1;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-gray-100{border-color:color-mix(in srgb,var(--p-text-color) 10%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-gray-200{border-color:color-mix(in srgb,var(--p-text-color) 20%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-gray-300{border-color:color-mix(in srgb,var(--p-text-color) 30%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-gray-700{border-color:color-mix(in srgb,var(--p-text-color) 70%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-gray-900{border-color:color-mix(in srgb,var(--p-text-color) 90%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-green-400{--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-pink-500{--tw-border-opacity: 1;border-color:rgb(236 72 153 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-transparent{border-color:transparent}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-t-\[\#00D9FF\]{--tw-border-opacity: 1;border-top-color:rgb(0 217 255 / var(--tw-border-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-t-gray-800{border-top-color:color-mix(in srgb,var(--p-text-color) 80%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .border-t-transparent{border-top-color:transparent}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-\[\#d2d2d2\]{--tw-bg-opacity: 1;background-color:rgb(210 210 210 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-\[\#ffffff\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-\[rgba\(0\,0\,0\,0\.5\)\]{background-color:#00000080}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-black\/40{background-color:#0006}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-black\/80{background-color:#000c}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gray-100{background-color:color-mix(in srgb,var(--p-text-color) 10%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gray-200{background-color:color-mix(in srgb,var(--p-text-color) 20%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gray-300{background-color:color-mix(in srgb,var(--p-text-color) 30%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gray-400{background-color:color-mix(in srgb,var(--p-text-color) 40%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gray-50{background-color:color-mix(in srgb,var(--p-text-color) 5%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gray-500{background-color:color-mix(in srgb,var(--p-text-color) 50%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gray-700{background-color:color-mix(in srgb,var(--p-text-color) 70%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gray-800{background-color:color-mix(in srgb,var(--p-text-color) 80%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gray-900{background-color:color-mix(in srgb,var(--p-text-color) 90%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(251 207 232 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-pink-500{--tw-bg-opacity: 1;background-color:rgb(236 72 153 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-transparent{background-color:transparent}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-white{background-color:var(--p-panel-background)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-opacity-30{--tw-bg-opacity: .3}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-opacity-50{--tw-bg-opacity: .5}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-opacity-75{--tw-bg-opacity: .75}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-debug-btn{background-image:linear-gradient(325deg,#039ab5,#017084 55%,#039ab5 90%)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-debug-collapsible-card-bg{background-image:linear-gradient(color-mix(in srgb,var(--p-text-color) 0%,transparent),color-mix(in srgb,var(--p-text-color) 60%,transparent))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .from-gray-50{--tw-gradient-from: color-mix(in srgb, var(--p-text-color) 5%, transparent) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .to-gray-100{--tw-gradient-to: color-mix(in srgb, var(--p-text-color) 10%, transparent) var(--tw-gradient-to-position)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .fill-current{fill:currentColor}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .object-contain{-o-object-fit:contain;object-fit:contain}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .object-cover{-o-object-fit:cover;object-fit:cover}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .p-0\.5{padding:.125rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .p-1{padding:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .p-1\.5{padding:.375rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .p-2{padding:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .p-3{padding:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .p-4{padding:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .p-6{padding:1.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .p-8{padding:2rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .px-1{padding-left:.25rem;padding-right:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .px-1\.5{padding-left:.375rem;padding-right:.375rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .px-2{padding-left:.5rem;padding-right:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .px-3{padding-left:.75rem;padding-right:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .px-4{padding-left:1rem;padding-right:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .px-5{padding-left:1.25rem;padding-right:1.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .py-0\.5{padding-top:.125rem;padding-bottom:.125rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .py-1{padding-top:.25rem;padding-bottom:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .py-1\.5{padding-top:.375rem;padding-bottom:.375rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .py-2{padding-top:.5rem;padding-bottom:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .py-2\.5{padding-top:.625rem;padding-bottom:.625rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .py-3{padding-top:.75rem;padding-bottom:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .py-4{padding-top:1rem;padding-bottom:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .py-8{padding-top:2rem;padding-bottom:2rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pb-10{padding-bottom:2.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pb-2{padding-bottom:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pb-3{padding-bottom:.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pl-4{padding-left:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pr-12{padding-right:3rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pr-4{padding-right:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pr-6{padding-right:1.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pt-1{padding-top:.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pt-2{padding-top:.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .pt-4{padding-top:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-left{text-align:left}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-center{text-align:center}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .\!text-\[11px\]{font-size:11px!important}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-\[10px\]{font-size:10px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-\[11px\]{font-size:11px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-\[12px\]{font-size:12px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-\[14px\]{font-size:14px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-base{font-size:1rem;line-height:1.5rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-lg{font-size:1.125rem;line-height:1.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-sm{font-size:.875rem;line-height:1.25rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-xl{font-size:1.25rem;line-height:1.75rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-xs{font-size:.75rem;line-height:1rem}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .font-bold{font-weight:700}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .font-extrabold{font-weight:800}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .font-medium{font-weight:500}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .font-normal{font-weight:400}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .font-semibold{font-weight:600}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .italic{font-style:italic}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .leading-relaxed{line-height:1.625}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .leading-snug{line-height:1.375}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-\[\#4fabdb\]{--tw-text-opacity: 1;color:rgb(79 171 219 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-\[\#71A3F2\]{--tw-text-opacity: 1;color:rgb(113 163 242 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-\[\#fff\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-\[\#fff\]\/70{color:#ffffffb3}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-gray-300{color:color-mix(in srgb,var(--p-text-color) 30%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-gray-400{color:color-mix(in srgb,var(--p-text-color) 40%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-gray-500{color:color-mix(in srgb,var(--p-text-color) 50%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-gray-600{color:color-mix(in srgb,var(--p-text-color) 60%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-gray-700{color:color-mix(in srgb,var(--p-text-color) 70%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-gray-800{color:color-mix(in srgb,var(--p-text-color) 80%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-gray-900{color:color-mix(in srgb,var(--p-text-color) 90%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-pink-700{--tw-text-opacity: 1;color:rgb(190 24 93 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .text-white{color:var(--p-panel-background)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .underline{text-decoration-line:underline}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .underline-offset-2{text-underline-offset:2px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .placeholder-gray-500::-moz-placeholder{color:color-mix(in srgb,var(--p-text-color) 50%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .placeholder-gray-500::placeholder{color:color-mix(in srgb,var(--p-text-color) 50%,transparent)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .opacity-0{opacity:0}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .opacity-25{opacity:.25}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .opacity-40{opacity:.4}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .opacity-50{opacity:.5}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .opacity-75{opacity:.75}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .shadow-\[0_0_0_4px_rgba\(59\,130\,246\,0\.15\)\]{--tw-shadow: 0 0 0 4px rgba(59,130,246,.15);--tw-shadow-colored: 0 0 0 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .shadow-\[0_0_12px_2px_\#3b82f6\]{--tw-shadow: 0 0 12px 2px #3b82f6;--tw-shadow-colored: 0 0 12px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .outline-none{outline:2px solid transparent;outline-offset:2px}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .ring-pink-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 168 212 / var(--tw-ring-opacity, 1))}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:is(#comfyui-copilot-plugin,#comfyui-copilot-modal) .duration-200{transition-duration:.2s}#comfyui-copilot-plugin,#comfyui-copilot-modal{height:100%;display:flex;flex-direction:column}#comfyui-copilot-plugin h1,#comfyui-copilot-plugin h2,#comfyui-copilot-plugin h3,#comfyui-copilot-plugin h4,#comfyui-copilot-plugin h5,#comfyui-copilot-plugin h6,#comfyui-copilot-plugin p,#comfyui-copilot-plugin ul,#comfyui-copilot-plugin ol,#comfyui-copilot-plugin button,#comfyui-copilot-plugin input,#comfyui-copilot-plugin textarea,#comfyui-copilot-plugin select{margin:0;padding:0;font-size:100%;font-weight:400}#comfyui-copilot-plugin *{box-sizing:border-box;border-width:0;border-style:solid}#comfyui-copilot-plugin img,#comfyui-copilot-plugin svg,#comfyui-copilot-plugin video,#comfyui-copilot-plugin canvas,#comfyui-copilot-plugin audio,#comfyui-copilot-plugin iframe,#comfyui-copilot-plugin embed,#comfyui-copilot-plugin object{display:block;vertical-align:middle}#comfyui-copilot-plugin button{background-color:transparent;background-image:none}.hide-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbar::-webkit-scrollbar{display:none}@keyframes breathe{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.2)}}@keyframes colorBreathe{0%,to{color:#039ab5}50%{color:var(--p-text-color) / 20}}.animate-breathe-green{animation:breathe 3s ease-in-out infinite,colorBreathe 3s ease-in-out infinite}@keyframes rotate{to{transform:rotate(360deg)}}.beautify-card-light{box-shadow:0 -16px 24px #ffffff40 inset;background-image:linear-gradient(135deg,#f5faff,#f5ebff)}.beautify-card-light .card-border{overflow:hidden;pointer-events:none;position:absolute;z-index:-1;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% + 2px);height:calc(100% + 2px);background-image:linear-gradient(0deg,#ccc -50%,#e6e6e6)}.beautify-card-light .card-border:before{content:"";pointer-events:none;position:fixed;z-index:200;top:50%;left:50%;transform:translate(-50%,-50%),rotate(0);transform-origin:left;width:200%;height:10rem;background-image:linear-gradient(0deg,#fff,#00d9ff 40% 60%,#ffffffe5);animation:rotate 8s linear infinite}.beautify-card-dark{box-shadow:0 -16px 24px #ffffff40 inset;background-color:#14141a;background-image:radial-gradient(at 88% 40%,hsla(240,15%,9%,1) 0px,transparent 85%),radial-gradient(at 49% 30%,hsla(240,15%,9%,1) 0px,transparent 85%),radial-gradient(at 14% 26%,hsla(240,15%,9%,1) 0px,transparent 85%),radial-gradient(at 0% 64%,hsl(189,99%,26%) 0px,transparent 85%),radial-gradient(at 41% 94%,hsl(189,97%,36%) 0px,transparent 85%),radial-gradient(at 100% 99%,hsl(188,94%,13%) 0px,transparent 85%)}.beautify-card-dark .card-border{overflow:hidden;pointer-events:none;position:absolute;z-index:-1;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% + 2px);height:calc(100% + 2px);background-image:linear-gradient(0deg,#666 -50%,#999)}.beautify-card-dark .card-border:before{content:"";pointer-events:none;position:fixed;z-index:200;top:50%;left:50%;transform:translate(-50%,-50%),rotate(0);transform-origin:left;width:200%;height:10rem;background-image:linear-gradient(0deg,#fff0,#00d9ff 40% 60%,#6660);animation:rotate 8s linear infinite}.debug-btn{transition:.8s;background-size:280% auto;box-shadow:0 0 20px #47b8ff80,0 5px 5px -1px #3a7de940,inset 4px 4px 8px #afe6ff80,inset -4px -4px 8px #135fd859}.debug-btn:hover{background-position:right top}.loading-spin{animation:rotate 1s linear infinite}.hover\:\!overflow-visible:hover{overflow:visible!important}.hover\:\!whitespace-normal:hover{white-space:normal!important}.hover\:\!break-words:hover{overflow-wrap:break-word!important}.hover\:\!border-\[\#71A3F2\]:hover{--tw-border-opacity: 1 !important;border-color:rgb(113 163 242 / var(--tw-border-opacity, 1))!important}.hover\:\!border-blue-500:hover{--tw-border-opacity: 1 !important;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))!important}.hover\:\!bg-gray-100:hover{background-color:color-mix(in srgb,var(--p-text-color) 10%,transparent)!important}.hover\:\!bg-gray-50:hover{background-color:color-mix(in srgb,var(--p-text-color) 5%,transparent)!important}.hover\:bg-\[\#eee\]:hover{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100:hover{background-color:color-mix(in srgb,var(--p-text-color) 10%,transparent)}.hover\:bg-gray-200:hover{background-color:color-mix(in srgb,var(--p-text-color) 20%,transparent)}.hover\:bg-gray-300:hover{background-color:color-mix(in srgb,var(--p-text-color) 30%,transparent)}.hover\:bg-gray-50:hover{background-color:color-mix(in srgb,var(--p-text-color) 5%,transparent)}.hover\:bg-gray-800:hover{background-color:color-mix(in srgb,var(--p-text-color) 80%,transparent)}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.hover\:bg-pink-300:hover{--tw-bg-opacity: 1;background-color:rgb(249 168 212 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-200:hover{--tw-bg-opacity: 1;background-color:rgb(233 213 255 / var(--tw-bg-opacity, 1))}.hover\:\!text-\[\#71A3F2\]:hover{--tw-text-opacity: 1 !important;color:rgb(113 163 242 / var(--tw-text-opacity, 1))!important}.hover\:\!text-gray-600:hover{color:color-mix(in srgb,var(--p-text-color) 60%,transparent)!important}.hover\:\!text-gray-700:hover{color:color-mix(in srgb,var(--p-text-color) 70%,transparent)!important}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\:text-gray-600:hover{color:color-mix(in srgb,var(--p-text-color) 60%,transparent)}.hover\:text-gray-700:hover{color:color-mix(in srgb,var(--p-text-color) 70%,transparent)}.hover\:text-gray-800:hover{color:color-mix(in srgb,var(--p-text-color) 80%,transparent)}.hover\:text-gray-900:hover{color:color-mix(in srgb,var(--p-text-color) 90%,transparent)}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-sm:hover{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-500\/20:focus{--tw-ring-color: rgb(59 130 246 / .2)}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:\!block{display:block!important}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:\!opacity-100{opacity:1!important}.group:hover .group-hover\:opacity-100{opacity:1}.prose-headings\:font-semibold :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:600}.prose-h1\:text-base :is(:where(h1):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:1rem;line-height:1.5rem}.prose-h2\:text-sm :is(:where(h2):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.875rem;line-height:1.25rem}.prose-h3\:text-xs :is(:where(h3):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-h4\:text-xs :is(:where(h4):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-p\:text-xs :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-a\:font-medium :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:500}.prose-a\:text-gray-700 :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){color:color-mix(in srgb,var(--p-text-color) 70%,transparent)}.prose-a\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.hover\:prose-a\:text-gray-800 :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))):hover{color:color-mix(in srgb,var(--p-text-color) 80%,transparent)}.prose-code\:text-xs :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-pre\:text-xs :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-ol\:text-xs :is(:where(ol):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-ul\:text-xs :is(:where(ul):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}.prose-li\:text-xs :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:.75rem;line-height:1rem}@media (prefers-color-scheme: dark){.dark\:border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.dark\:border-gray-600{border-color:color-mix(in srgb,var(--p-text-color) 60%,transparent)}.dark\:border-gray-700{border-color:color-mix(in srgb,var(--p-text-color) 70%,transparent)}.dark\:border-red-800\/20{border-color:#991b1b33}.dark\:bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-600{background-color:color-mix(in srgb,var(--p-text-color) 60%,transparent)}.dark\:bg-gray-700{background-color:color-mix(in srgb,var(--p-text-color) 70%,transparent)}.dark\:bg-gray-800{background-color:color-mix(in srgb,var(--p-text-color) 80%,transparent)}.dark\:bg-green-900\/20{background-color:#14532d33}.dark\:bg-red-900\/20{background-color:#7f1d1d33}.dark\:text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-100{color:color-mix(in srgb,var(--p-text-color) 10%,transparent)}.dark\:text-gray-200{color:color-mix(in srgb,var(--p-text-color) 20%,transparent)}.dark\:text-gray-300{color:color-mix(in srgb,var(--p-text-color) 30%,transparent)}.dark\:text-gray-400{color:color-mix(in srgb,var(--p-text-color) 40%,transparent)}.dark\:text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-pink-400{--tw-text-opacity: 1;color:rgb(244 114 182 / var(--tw-text-opacity, 1))}.dark\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.dark\:text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-white{color:var(--p-panel-background)}.dark\:placeholder-gray-400::-moz-placeholder{color:color-mix(in srgb,var(--p-text-color) 40%,transparent)}.dark\:placeholder-gray-400::placeholder{color:color-mix(in srgb,var(--p-text-color) 40%,transparent)}.dark\:hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-700:hover{background-color:color-mix(in srgb,var(--p-text-color) 70%,transparent)}.dark\:hover\:text-blue-300:hover{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-200:hover{color:color-mix(in srgb,var(--p-text-color) 20%,transparent)}.dark\:hover\:text-white:hover{color:var(--p-panel-background)}.dark\:focus\:border-blue-400:focus{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.dark\:focus\:ring-blue-400\/20:focus{--tw-ring-color: rgb(96 165 250 / .2)}}.\[\&\>\*\]\:\!my-1>*{margin-top:.25rem!important;margin-bottom:.25rem!important} diff --git a/dist/copilot_web/assets/logo-BTZhX0BN.png b/dist/copilot_web/assets/logo-BTZhX0BN.png deleted file mode 100644 index 3237ccf..0000000 Binary files a/dist/copilot_web/assets/logo-BTZhX0BN.png and /dev/null differ diff --git a/dist/copilot_web/fonts.css b/dist/copilot_web/fonts.css deleted file mode 100644 index 81a8b10..0000000 --- a/dist/copilot_web/fonts.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:cc-font;src:url(data:application/vnd.ms-fontobject;base64,UAYAAKwFAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAK+mfMgAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIGbwAAALwAAABgY21hcBdW0ocAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlmgQuiVgAAAXgAAAHwaGVhZC4IiB0AAANoAAAANmhoZWEKSQZPAAADoAAAACRobXR4DIkAAAAAA8QAAAAUbG9jYQAoAQwAAAPYAAAADG1heHAABwCPAAAD5AAAACBuYW1lmUoJ+wAABAQAAAGGcG9zdAADAAAAAAWMAAAAIAADBEUBkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkAA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpAP/9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAP/AAAADwAACAAA3OQEAAAAAAQAA/8AAAAPAAAIAADc5AQAAAAABAAD/wAAAA8AAAgAANzkBAAAAAAEAAP/ABocDwACMAAAlHgEXHgEXFhceATcyNz4BNz4BJy4BJy4BIyYGBw4BBwYnLgEnJicmNz4BNzYXHgEXHgEzPgE/AT4BJy4BJyYnJgYHBgcGBw4BBwYHBgcOAQcGJy4BJyYnLgE3Njc+ARceARceATM+ATc+ATc+AScuAScuAScmBw4BBwYHBhceARcWFxYXFjY3Njc+ATcDigwSChAlFCsyMWs3NzU3ZikKKQkOORUGEwoMGwgVMRpBPz5nJSQODxMSVT8+SyVDIA0mDwsSBkkKDwsXPx9ZX1+vSkouGg0NFg8QIBYeHkYnJyoeOhtPKisMHh9EOZJDEiEPBxIIChEGEiMSBhYEBigNMnY9YVlaji8uCwgNDUU3Nko/RUWJQUE3HUQNpwobDBUlESMXGBgBDQ02JwkkEBotFAcVAR4HExoJFAoKQzQ1QURGR28hIAcEFRMHJAEVB0gKEw4cKhAvBwY5PT1XMzc3bzY2MCIcGyUJCQMCDg0nRkefTU40LBQaBxMLBA8BEwYSJRIGFQsQHAkkKQQGHx92U1NiUU9OjTk6JiEMDA8aGysXQiQAAAABAAAAAAAAMp/pK18PPPUACwQAAAAAAOQxodAAAAAA5DGh0AAA/8AGhwPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAaJAAAAAAaHAAEAAAAAAAAAAAAAAAAAAAAFBAAAAAAAAAAAAAAAAgAAAAaJAAAAAAAAAAoAFAAeAPgAAQAAAAUAjQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=);src:url(data:application/vnd.ms-fontobject;base64,UAYAAKwFAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAK+mfMgAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIGbwAAALwAAABgY21hcBdW0ocAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlmgQuiVgAAAXgAAAHwaGVhZC4IiB0AAANoAAAANmhoZWEKSQZPAAADoAAAACRobXR4DIkAAAAAA8QAAAAUbG9jYQAoAQwAAAPYAAAADG1heHAABwCPAAAD5AAAACBuYW1lmUoJ+wAABAQAAAGGcG9zdAADAAAAAAWMAAAAIAADBEUBkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkAA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpAP/9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAP/AAAADwAACAAA3OQEAAAAAAQAA/8AAAAPAAAIAADc5AQAAAAABAAD/wAAAA8AAAgAANzkBAAAAAAEAAP/ABocDwACMAAAlHgEXHgEXFhceATcyNz4BNz4BJy4BJy4BIyYGBw4BBwYnLgEnJicmNz4BNzYXHgEXHgEzPgE/AT4BJy4BJyYnJgYHBgcGBw4BBwYHBgcOAQcGJy4BJyYnLgE3Njc+ARceARceATM+ATc+ATc+AScuAScuAScmBw4BBwYHBhceARcWFxYXFjY3Njc+ATcDigwSChAlFCsyMWs3NzU3ZikKKQkOORUGEwoMGwgVMRpBPz5nJSQODxMSVT8+SyVDIA0mDwsSBkkKDwsXPx9ZX1+vSkouGg0NFg8QIBYeHkYnJyoeOhtPKisMHh9EOZJDEiEPBxIIChEGEiMSBhYEBigNMnY9YVlaji8uCwgNDUU3Nko/RUWJQUE3HUQNpwobDBUlESMXGBgBDQ02JwkkEBotFAcVAR4HExoJFAoKQzQ1QURGR28hIAcEFRMHJAEVB0gKEw4cKhAvBwY5PT1XMzc3bzY2MCIcGyUJCQMCDg0nRkefTU40LBQaBxMLBA8BEwYSJRIGFQsQHAkkKQQGHx92U1NiUU9OjTk6JiEMDA8aGysXQiQAAAABAAAAAAAAMp/pK18PPPUACwQAAAAAAOQxodAAAAAA5DGh0AAA/8AGhwPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAaJAAAAAAaHAAEAAAAAAAAAAAAAAAAAAAAFBAAAAAAAAAAAAAAAAgAAAAaJAAAAAAAAAAoAFAAeAPgAAQAAAAUAjQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format("embedded-opentype"),url(data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBm8AAAC8AAAAYGNtYXAXVtKHAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZoELolYAAAF4AAAB8GhlYWQuCIgdAAADaAAAADZoaGVhCkkGTwAAA6AAAAAkaG10eAyJAAAAAAPEAAAAFGxvY2EAKAEMAAAD2AAAAAxtYXhwAAcAjwAAA+QAAAAgbmFtZZlKCfsAAAQEAAABhnBvc3QAAwAAAAAFjAAAACAAAwRFAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAAPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QD//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAD/wAAAA8AAAgAANzkBAAAAAAEAAP/AAAADwAACAAA3OQEAAAAAAQAA/8AAAAPAAAIAADc5AQAAAAABAAD/wAaHA8AAjAAAJR4BFx4BFxYXHgE3Mjc+ATc+AScuAScuASMmBgcOAQcGJy4BJyYnJjc+ATc2Fx4BFx4BMz4BPwE+AScuAScmJyYGBwYHBgcOAQcGBwYHDgEHBicuAScmJy4BNzY3PgEXHgEXHgEzPgE3PgE3PgEnLgEnLgEnJgcOAQcGBwYXHgEXFhcWFxY2NzY3PgE3A4oMEgoQJRQrMjFrNzc1N2YpCikJDjkVBhMKDBsIFTEaQT8+ZyUkDg8TElU/PkslQyANJg8LEgZJCg8LFz8fWV9fr0pKLhoNDRYPECAWHh5GJycqHjobTyorDB4fRDmSQxIhDwcSCAoRBhIjEgYWBAYoDTJ2PWFZWo4vLgsIDQ1FNzZKP0VFiUFBNx1EDacKGwwVJREjFxgYAQ0NNicJJBAaLRQHFQEeBxMaCRQKCkM0NUFERkdvISAHBBUTByQBFQdIChMOHCoQLwcGOT09VzM3N282NjAiHBslCQkDAg4NJ0ZHn01ONCwUGgcTCwQPARMGEiUSBhULEBwJJCkEBh8fdlNTYlFPTo05OiYhDAwPGhsrF0IkAAAAAQAAAAAAADKf6StfDzz1AAsEAAAAAADkMaHQAAAAAOQxodAAAP/ABocDwAAAAAgAAgAAAAAAAAABAAADwP/AAAAGiQAAAAAGhwABAAAAAAAAAAAAAAAAAAAABQQAAAAAAAAAAAAAAAIAAAAGiQAAAAAAAAAKABQAHgD4AAEAAAAFAI0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format("truetype"),url(data:font/woff;base64,d09GRgABAAAAAAX4AAsAAAAABawAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIGb2NtYXAAAAFoAAAAVAAAAFQXVtKHZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAfAAAAHwgQuiVmhlYWQAAAO0AAAANgAAADYuCIgdaGhlYQAAA+wAAAAkAAAAJApJBk9obXR4AAAEEAAAABQAAAAUDIkAAGxvY2EAAAQkAAAADAAAAAwAKAEMbWF4cAAABDAAAAAgAAAAIAAHAI9uYW1lAAAEUAAAAYYAAAGGmUoJ+3Bvc3QAAAXYAAAAIAAAACAAAwAAAAMERQGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QADwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkA//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAA/8AAAAPAAAIAADc5AQAAAAABAAD/wAAAA8AAAgAANzkBAAAAAAEAAP/AAAADwAACAAA3OQEAAAAAAQAA/8AGhwPAAIwAACUeARceARcWFx4BNzI3PgE3PgEnLgEnLgEjJgYHDgEHBicuAScmJyY3PgE3NhceARceATM+AT8BPgEnLgEnJicmBgcGBwYHDgEHBgcGBw4BBwYnLgEnJicuATc2Nz4BFx4BFx4BMz4BNz4BNz4BJy4BJy4BJyYHDgEHBgcGFx4BFxYXFhcWNjc2Nz4BNwOKDBIKECUUKzIxazc3NTdmKQopCQ45FQYTCgwbCBUxGkE/PmclJA4PExJVPz5LJUMgDSYPCxIGSQoPCxc/H1lfX69KSi4aDQ0WDxAgFh4eRicnKh46G08qKwweH0Q5kkMSIQ8HEggKEQYSIxIGFgQGKA0ydj1hWVqOLy4LCA0NRTc2Sj9FRYlBQTcdRA2nChsMFSURIxcYGAENDTYnCSQQGi0UBxUBHgcTGgkUCgpDNDVBREZHbyEgBwQVEwckARUHSAoTDhwqEC8HBjk9PVczNzdvNjYwIhwbJQkJAwIODSdGR59NTjQsFBoHEwsEDwETBhIlEgYVCxAcCSQpBAYfH3ZTU2JRT06NOTomIQwMDxobKxdCJAAAAAEAAAAAAAAyn+krXw889QALBAAAAAAA5DGh0AAAAADkMaHQAAD/wAaHA8AAAAAIAAIAAAAAAAAAAQAAA8D/wAAABokAAAAABocAAQAAAAAAAAAAAAAAAAAAAAUEAAAAAAAAAAAAAAACAAAABokAAAAAAAAACgAUAB4A+AABAAAABQCNAAEAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==) format("woff"),url(/copilot_web/assets/cc-icon-DfxqqsZi.svg?jbqswq#icomoon) format("svg");font-weight:400;font-style:normal;font-display:block;font-size:16px}[class^=cc-icon-],[class*=" cc-icon-"]{font-family:cc-font!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cc-icon-logo:before{content:""} diff --git a/dist/copilot_web/input.js b/dist/copilot_web/input.js deleted file mode 100644 index 8d29a37..0000000 --- a/dist/copilot_web/input.js +++ /dev/null @@ -1,38 +0,0 @@ -function getImportPath(filename) { - return `./${filename}`; - } - const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["copilot_web/App-DFg5976E.js","copilot_web/vendor-markdown-BAJQc3l1.js","copilot_web/vendor-react-Dixhfmvb.js","copilot_web/message-components-DtpRtuWw.js"].map(path => { - const apiBase = window.comfyAPI?.api?.api?.api_base; - if (apiBase) { - // 有 API base 时,使用完整路径 - return `${apiBase.substring(1)}/${path}`; - } else { - // 没有 API base 时,使用相对路径 - return `./${path}`; - } - }))))=>i.map(i=>d[i]); -import{j as Fu}from"./vendor-markdown-BAJQc3l1.js";import{r as d0,a as Pv,g as ly,R as s0}from"./vendor-react-Dixhfmvb.js";import{w as ay,a as ty}from"./message-components-DtpRtuWw.js";/* empty css */const uy="modulepreload",ey=function(l){return"/"+l},Jc={},ny=function(a,t,u){let e=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),c=f?.nonce||f?.getAttribute("nonce");e=Promise.allSettled(t.map(i=>{if(i=ey(i),i in Jc)return;Jc[i]=!0;const h=i.endsWith(".css"),b=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${b}`))return;const S=document.createElement("link");if(S.rel=h?"stylesheet":uy,h||(S.as="script"),S.crossOrigin="",S.href=i,c&&S.setAttribute("nonce",c),document.head.appendChild(S),h)return new Promise((d,m)=>{S.addEventListener("load",d),S.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${i}`)))})}))}function n(f){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=f,window.dispatchEvent(c),!c.defaultPrevented)throw f}return e.then(f=>{for(const c of f||[])c.status==="rejected"&&n(c.reason);return a().catch(n)})};var m0={exports:{}},an={},S0={exports:{}},b0={};/** - * @license React - * scheduler.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(l){function a(A,N){var _=A.length;A.push(N);l:for(;0<_;){var k=_-1>>>1,el=A[k];if(0>>1;ke(zn,_))xae(ku,zn)?(A[k]=ku,A[xa]=_,k=xa):(A[k]=zn,A[$u]=_,k=$u);else if(xae(ku,_))A[k]=ku,A[xa]=_,k=xa;else break l}}return N}function e(A,N){var _=A.sortIndex-N.sortIndex;return _!==0?_:A.id-N.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var n=performance;l.unstable_now=function(){return n.now()}}else{var f=Date,c=f.now();l.unstable_now=function(){return f.now()-c}}var i=[],h=[],b=1,S=null,d=3,m=!1,M=!1,E=!1,X=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,s=typeof setImmediate<"u"?setImmediate:null;function g(A){for(var N=t(h);N!==null;){if(N.callback===null)u(h);else if(N.startTime<=A)u(h),N.sortIndex=N.expirationTime,a(i,N);else break;N=t(h)}}function z(A){if(E=!1,g(A),!M)if(t(i)!==null)M=!0,U||(U=!0,da());else{var N=t(h);N!==null&&on(z,N.startTime-A)}}var U=!1,T=-1,D=5,$=-1;function B(){return X?!0:!(l.unstable_now()-$A&&B());){var k=S.callback;if(typeof k=="function"){S.callback=null,d=S.priorityLevel;var el=k(S.expirationTime<=A);if(A=l.unstable_now(),typeof el=="function"){S.callback=el,g(A),N=!0;break a}S===t(i)&&u(i),g(A)}else u(i);S=t(i)}if(S!==null)N=!0;else{var Wu=t(h);Wu!==null&&on(z,Wu.startTime-A),N=!1}}break l}finally{S=null,d=_,m=!1}N=void 0}}finally{N?da():U=!1}}}var da;if(typeof s=="function")da=function(){s(Nl)};else if(typeof MessageChannel<"u"){var Lc=new MessageChannel,Iv=Lc.port2;Lc.port1.onmessage=Nl,da=function(){Iv.postMessage(null)}}else da=function(){y(Nl,0)};function on(A,N){T=y(function(){A(l.unstable_now())},N)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(A){A.callback=null},l.unstable_forceFrameRate=function(A){0>A||125k?(A.sortIndex=_,a(h,A),t(i)===null&&A===t(h)&&(E?(v(T),T=-1):E=!0,on(z,_-k))):(A.sortIndex=el,a(i,A),M||m||(M=!0,U||(U=!0,da()))),A},l.unstable_shouldYield=B,l.unstable_wrapCallback=function(A){var N=d;return function(){var _=d;d=N;try{return A.apply(this,arguments)}finally{d=_}}}})(b0);S0.exports=b0;var fy=S0.exports;/** - * @license React - * react-dom-client.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ul=fy,g0=d0,cy=Pv;function o(l){var a="https://react.dev/errors/"+l;if(1yt||(l.current=nf[yt],nf[yt]=null,yt--)}function J(l,a){yt++,nf[yt]=l.current,l.current=a}var Jl=Wl(null),ou=Wl(null),Oa=Wl(null),Oe=Wl(null);function Ue(l,a){switch(J(Oa,a),J(ou,l),J(Jl,null),a.nodeType){case 9:case 11:l=(l=a.documentElement)&&(l=l.namespaceURI)?Ii(l):0;break;default:if(l=a.tagName,a=a.namespaceURI)a=Ii(a),l=jv(a,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}il(Jl),J(Jl,l)}function Nt(){il(Jl),il(ou),il(Oa)}function ff(l){l.memoizedState!==null&&J(Oe,l);var a=Jl.current,t=jv(a,l.type);a!==t&&(J(ou,l),J(Jl,t))}function He(l){ou.current===l&&(il(Jl),il(ou)),Oe.current===l&&(il(Oe),_u._currentValue=pa)}var cf=Object.prototype.hasOwnProperty,If=ul.unstable_scheduleCallback,An=ul.unstable_cancelCallback,sy=ul.unstable_shouldYield,my=ul.unstable_requestPaint,rl=ul.unstable_now,Sy=ul.unstable_getCurrentPriorityLevel,M0=ul.unstable_ImmediatePriority,D0=ul.unstable_UserBlockingPriority,_e=ul.unstable_NormalPriority,by=ul.unstable_LowPriority,O0=ul.unstable_IdlePriority,gy=ul.log,oy=ul.unstable_setDisableYieldValue,Yu=null,Dl=null;function Ta(l){if(typeof gy=="function"&&oy(l),Dl&&typeof Dl.setStrictMode=="function")try{Dl.setStrictMode(Yu,l)}catch{}}var Ol=Math.clz32?Math.clz32:Ty,zy=Math.log,Ay=Math.LN2;function Ty(l){return l>>>=0,l===0?32:31-(zy(l)/Ay|0)|0}var Pu=256,le=4194304;function Va(l){var a=l&42;if(a!==0)return a;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function tn(l,a,t){var u=l.pendingLanes;if(u===0)return 0;var e=0,n=l.suspendedLanes,f=l.pingedLanes;l=l.warmLanes;var c=u&134217727;return c!==0?(u=c&~n,u!==0?e=Va(u):(f&=c,f!==0?e=Va(f):t||(t=c&~l,t!==0&&(e=Va(t))))):(c=u&~n,c!==0?e=Va(c):f!==0?e=Va(f):t||(t=u&~l,t!==0&&(e=Va(t)))),e===0?0:a!==0&&a!==e&&!(a&n)&&(n=e&-e,t=a&-a,n>=t||n===32&&(t&4194048)!==0)?a:e}function Xu(l,a){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&a)===0}function Ey(l,a){switch(l){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function U0(){var l=Pu;return Pu<<=1,!(Pu&4194048)&&(Pu=256),l}function H0(){var l=le;return le<<=1,!(le&62914560)&&(le=4194304),l}function Tn(l){for(var a=[],t=0;31>t;t++)a.push(l);return a}function Gu(l,a){l.pendingLanes|=a,a!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function My(l,a,t,u,e,n){var f=l.pendingLanes;l.pendingLanes=t,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=t,l.entangledLanes&=t,l.errorRecoveryDisabledLanes&=t,l.shellSuspendCounter=0;var c=l.entanglements,i=l.expirationTimes,h=l.hiddenUpdates;for(t=f&~t;0)":-1e||i[u]!==h[e]){var b=` -`+i[u].replace(" at new "," at ");return l.displayName&&b.includes("")&&(b=b.replace("",l.displayName)),b}while(1<=u&&0<=e);break}}}finally{Mn=!1,Error.prepareStackTrace=t}return(t=l?l.displayName||l.name:"")?ft(t):""}function Ny(l){switch(l.tag){case 26:case 27:case 5:return ft(l.type);case 16:return ft("Lazy");case 13:return ft("Suspense");case 19:return ft("SuspenseList");case 0:case 15:return Dn(l.type,!1);case 11:return Dn(l.type.render,!1);case 1:return Dn(l.type,!0);case 31:return ft("Activity");default:return""}}function Ic(l){try{var a="";do a+=Ny(l),l=l.return;while(l);return a}catch(t){return` -Error generating stack: `+t.message+` -`+t.stack}}function Rl(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Y0(l){var a=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function qy(l){var a=Y0(l)?"checked":"value",t=Object.getOwnPropertyDescriptor(l.constructor.prototype,a),u=""+l[a];if(!l.hasOwnProperty(a)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var e=t.get,n=t.set;return Object.defineProperty(l,a,{configurable:!0,get:function(){return e.call(this)},set:function(f){u=""+f,n.call(this,f)}}),Object.defineProperty(l,a,{enumerable:t.enumerable}),{getValue:function(){return u},setValue:function(f){u=""+f},stopTracking:function(){l._valueTracker=null,delete l[a]}}}}function Ne(l){l._valueTracker||(l._valueTracker=qy(l))}function X0(l){if(!l)return!1;var a=l._valueTracker;if(!a)return!0;var t=a.getValue(),u="";return l&&(u=Y0(l)?l.checked?"true":"false":l.value),l=u,l!==t?(a.setValue(l),!0):!1}function qe(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Ry=/[\n"\\]/g;function Xl(l){return l.replace(Ry,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function yf(l,a,t,u,e,n,f,c){l.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?l.type=f:l.removeAttribute("type"),a!=null?f==="number"?(a===0&&l.value===""||l.value!=a)&&(l.value=""+Rl(a)):l.value!==""+Rl(a)&&(l.value=""+Rl(a)):f!=="submit"&&f!=="reset"||l.removeAttribute("value"),a!=null?hf(l,f,Rl(a)):t!=null?hf(l,f,Rl(t)):u!=null&&l.removeAttribute("value"),e==null&&n!=null&&(l.defaultChecked=!!n),e!=null&&(l.checked=e&&typeof e!="function"&&typeof e!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+Rl(c):l.removeAttribute("name")}function G0(l,a,t,u,e,n,f,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),a!=null||t!=null){if(!(n!=="submit"&&n!=="reset"||a!=null))return;t=t!=null?""+Rl(t):"",a=a!=null?""+Rl(a):t,c||a===l.value||(l.value=a),l.defaultValue=a}u=u??e,u=typeof u!="function"&&typeof u!="symbol"&&!!u,l.checked=c?l.checked:!!u,l.defaultChecked=!!u,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(l.name=f)}function hf(l,a,t){a==="number"&&qe(l.ownerDocument)===l||l.defaultValue===""+t||(l.defaultValue=""+t)}function Et(l,a,t,u){if(l=l.options,a){a={};for(var e=0;e"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sf=!1;if(ca)try{var wt={};Object.defineProperty(wt,"passive",{get:function(){sf=!0}}),window.addEventListener("test",wt,wt),window.removeEventListener("test",wt,wt)}catch{sf=!1}var Ea=null,ec=null,me=null;function V0(){if(me)return me;var l,a=ec,t=a.length,u,e="value"in Ea?Ea.value:Ea.textContent,n=e.length;for(l=0;l=eu),ni=" ",fi=!1;function C0(l,a){switch(l){case"keyup":return nh.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function p0(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var st=!1;function ch(l,a){switch(l){case"compositionend":return p0(a);case"keypress":return a.which!==32?null:(fi=!0,ni);case"textInput":return l=a.data,l===ni&&fi?null:l;default:return null}}function ih(l,a){if(st)return l==="compositionend"||!fc&&C0(l,a)?(l=V0(),me=ec=Ea=null,st=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:t,offset:a-l};l=u}l:{for(;t;){if(t.nextSibling){t=t.nextSibling;break l}t=t.parentNode}t=void 0}t=hi(t)}}function w0(l,a){return l&&a?l===a?!0:l&&l.nodeType===3?!1:a&&a.nodeType===3?w0(l,a.parentNode):"contains"in l?l.contains(a):l.compareDocumentPosition?!!(l.compareDocumentPosition(a)&16):!1:!1}function W0(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var a=qe(l.document);a instanceof l.HTMLIFrameElement;){try{var t=typeof a.contentWindow.location.href=="string"}catch{t=!1}if(t)l=a.contentWindow;else break;a=qe(l.document)}return a}function cc(l){var a=l&&l.nodeName&&l.nodeName.toLowerCase();return a&&(a==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||a==="textarea"||l.contentEditable==="true")}var bh=ca&&"documentMode"in document&&11>=document.documentMode,mt=null,mf=null,fu=null,Sf=!1;function si(l,a,t){var u=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Sf||mt==null||mt!==qe(u)||(u=mt,"selectionStart"in u&&cc(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),fu&&Tu(fu,u)||(fu=u,u=We(mf,"onSelect"),0>=f,e-=f,aa=1<<32-Ol(a)+e|t<n?n:8;var f=O.T,c={};O.T=c,_c(l,!1,a,t);try{var i=e(),h=O.S;if(h!==null&&h(c,i),i!==null&&typeof i=="object"&&typeof i.then=="function"){var b=Oh(i,u);du(l,a,b,Ul(l))}else du(l,a,u,Ul(l))}catch(S){du(l,a,{then:function(){},status:"rejected",reason:S},Ul())}finally{Q.p=n,O.T=f}}function qh(){}function _f(l,a,t,u){if(l.tag!==5)throw Error(o(476));var e=Y1(l).queue;B1(l,e,a,pa,t===null?qh:function(){return X1(l),t(u)})}function Y1(l){var a=l.memoizedState;if(a!==null)return a;a={memoizedState:pa,baseState:pa,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:pa},next:null};var t={};return a.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:t},next:null},l.memoizedState=a,l=l.alternate,l!==null&&(l.memoizedState=a),a}function X1(l){var a=Y1(l).next.queue;du(l,a,{},Ul())}function Hc(){return sl(_u)}function G1(){return ll().memoizedState}function Q1(){return ll().memoizedState}function Rh(l){for(var a=l.return;a!==null;){switch(a.tag){case 24:case 3:var t=Ul();l=Ua(t);var u=Ha(a,l,t);u!==null&&(Hl(u,a,t),vu(u,a,t)),a={cache:sc()},l.payload=a;return}a=a.return}}function Bh(l,a,t){var u=Ul();t={lane:u,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null},dn(l)?x1(a,t):(t=vc(l,a,t,u),t!==null&&(Hl(t,l,u),j1(t,a,u)))}function Z1(l,a,t){var u=Ul();du(l,a,t,u)}function du(l,a,t,u){var e={lane:u,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null};if(dn(l))x1(a,e);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=a.lastRenderedReducer,n!==null))try{var f=a.lastRenderedState,c=n(f,t);if(e.hasEagerState=!0,e.eagerState=c,_l(c,f))return cn(l,a,e,0),C===null&&fn(),!1}catch{}finally{}if(t=vc(l,a,e,u),t!==null)return Hl(t,l,u),j1(t,a,u),!0}return!1}function _c(l,a,t,u){if(u={lane:2,revertLane:Qc(),action:u,hasEagerState:!1,eagerState:null,next:null},dn(l)){if(a)throw Error(o(479))}else a=vc(l,t,u,2),a!==null&&Hl(a,l,2)}function dn(l){var a=l.alternate;return l===H||a!==null&&a===H}function x1(l,a){Ot=Qe=!0;var t=l.pending;t===null?a.next=a:(a.next=t.next,t.next=a),l.pending=a}function j1(l,a,t){if(t&4194048){var u=a.lanes;u&=l.pendingLanes,t|=u,a.lanes=t,N0(l,t)}}var xe={readContext:sl,use:yn,useCallback:F,useContext:F,useEffect:F,useImperativeHandle:F,useLayoutEffect:F,useInsertionEffect:F,useMemo:F,useReducer:F,useRef:F,useState:F,useDebugValue:F,useDeferredValue:F,useTransition:F,useSyncExternalStore:F,useId:F,useHostTransitionStatus:F,useFormState:F,useActionState:F,useOptimistic:F,useMemoCache:F,useCacheRefresh:F},V1={readContext:sl,use:yn,useCallback:function(l,a){return Sl().memoizedState=[l,a===void 0?null:a],l},useContext:sl,useEffect:Ni,useImperativeHandle:function(l,a,t){t=t!=null?t.concat([l]):null,ze(4194308,4,H1.bind(null,a,l),t)},useLayoutEffect:function(l,a){return ze(4194308,4,l,a)},useInsertionEffect:function(l,a){ze(4,2,l,a)},useMemo:function(l,a){var t=Sl();a=a===void 0?null:a;var u=l();if(Ia){Ta(!0);try{l()}finally{Ta(!1)}}return t.memoizedState=[u,a],u},useReducer:function(l,a,t){var u=Sl();if(t!==void 0){var e=t(a);if(Ia){Ta(!0);try{t(a)}finally{Ta(!1)}}}else e=a;return u.memoizedState=u.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:e},u.queue=l,l=l.dispatch=Bh.bind(null,H,l),[u.memoizedState,l]},useRef:function(l){var a=Sl();return l={current:l},a.memoizedState=l},useState:function(l){l=Uf(l);var a=l.queue,t=Z1.bind(null,H,a);return a.dispatch=t,[l.memoizedState,t]},useDebugValue:Oc,useDeferredValue:function(l,a){var t=Sl();return Uc(t,l,a)},useTransition:function(){var l=Uf(!1);return l=B1.bind(null,H,l.queue,!0,!1),Sl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,a,t){var u=H,e=Sl();if(G){if(t===void 0)throw Error(o(407));t=t()}else{if(t=a(),C===null)throw Error(o(349));Y&124||s1(u,a,t)}e.memoizedState=t;var n={value:t,getSnapshot:a};return e.queue=n,Ni(S1.bind(null,u,n,l),[l]),u.flags|=2048,Xt(9,hn(),m1.bind(null,u,n,t,a),null),t},useId:function(){var l=Sl(),a=C.identifierPrefix;if(G){var t=ta,u=aa;t=(u&~(1<<32-Ol(u)-1)).toString(32)+t,a="«"+a+"R"+t,t=Ze++,0D?($=T,T=null):$=T.sibling;var B=d(y,T,s[D],g);if(B===null){T===null&&(T=$);break}l&&T&&B.alternate===null&&a(y,T),v=n(B,v,D),U===null?z=B:U.sibling=B,U=B,T=$}if(D===s.length)return t(y,T),G&&Ka(y,D),z;if(T===null){for(;DD?($=T,T=null):$=T.sibling;var Nl=d(y,T,B.value,g);if(Nl===null){T===null&&(T=$);break}l&&T&&Nl.alternate===null&&a(y,T),v=n(Nl,v,D),U===null?z=Nl:U.sibling=Nl,U=Nl,T=$}if(B.done)return t(y,T),G&&Ka(y,D),z;if(T===null){for(;!B.done;D++,B=s.next())B=S(y,B.value,g),B!==null&&(v=n(B,v,D),U===null?z=B:U.sibling=B,U=B);return G&&Ka(y,D),z}for(T=u(T);!B.done;D++,B=s.next())B=m(T,y,D,B.value,g),B!==null&&(l&&B.alternate!==null&&T.delete(B.key===null?D:B.key),v=n(B,v,D),U===null?z=B:U.sibling=B,U=B);return l&&T.forEach(function(da){return a(y,da)}),G&&Ka(y,D),z}function X(y,v,s,g){if(typeof s=="object"&&s!==null&&s.type===vt&&s.key===null&&(s=s.props.children),typeof s=="object"&&s!==null){switch(s.$$typeof){case Iu:l:{for(var z=s.key;v!==null;){if(v.key===z){if(z=s.type,z===vt){if(v.tag===7){t(y,v.sibling),g=e(v,s.props.children),g.return=y,y=g;break l}}else if(v.elementType===z||typeof z=="object"&&z!==null&&z.$$typeof===Sa&&qi(z)===v.type){t(y,v.sibling),g=e(v,s.props),kt(g,s),g.return=y,y=g;break l}t(y,v);break}else a(y,v);v=v.sibling}s.type===vt?(g=La(s.props.children,y.mode,g,s.key),g.return=y,y=g):(g=be(s.type,s.key,s.props,null,y.mode,g),kt(g,s),g.return=y,y=g)}return f(y);case lu:l:{for(z=s.key;v!==null;){if(v.key===z)if(v.tag===4&&v.stateNode.containerInfo===s.containerInfo&&v.stateNode.implementation===s.implementation){t(y,v.sibling),g=e(v,s.children||[]),g.return=y,y=g;break l}else{t(y,v);break}else a(y,v);v=v.sibling}g=Yn(s,y.mode,g),g.return=y,y=g}return f(y);case Sa:return z=s._init,s=z(s._payload),X(y,v,s,g)}if(au(s))return M(y,v,s,g);if(rt(s)){if(z=rt(s),typeof z!="function")throw Error(o(150));return s=z.call(s),E(y,v,s,g)}if(typeof s.then=="function")return X(y,v,ne(s),g);if(s.$$typeof===la)return X(y,v,ue(y,s),g);fe(y,s)}return typeof s=="string"&&s!==""||typeof s=="number"||typeof s=="bigint"?(s=""+s,v!==null&&v.tag===6?(t(y,v.sibling),g=e(v,s),g.return=y,y=g):(t(y,v),g=Bn(s,y.mode,g),g.return=y,y=g),f(y)):t(y,v)}return function(y,v,s,g){try{Du=0;var z=X(y,v,s,g);return Ht=null,z}catch(T){if(T===Ku||T===vn)throw T;var U=Ml(29,T,null,y.mode);return U.lanes=g,U.return=y,U}finally{}}}var Gt=C1(!0),p1=C1(!1),Zl=Wl(null),wl=null;function oa(l){var a=l.alternate;J(tl,tl.current&1),J(Zl,l),wl===null&&(a===null||Yt.current!==null||a.memoizedState!==null)&&(wl=l)}function L1(l){if(l.tag===22){if(J(tl,tl.current),J(Zl,l),wl===null){var a=l.alternate;a!==null&&a.memoizedState!==null&&(wl=l)}}else za()}function za(){J(tl,tl.current),J(Zl,Zl.current)}function ea(l){il(Zl),wl===l&&(wl=null),il(tl)}var tl=Wl(0);function je(l){for(var a=l;a!==null;){if(a.tag===13){var t=a.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||Jf(t)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break;for(;a.sibling===null;){if(a.return===null||a.return===l)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Qn(l,a,t,u){a=l.memoizedState,t=t(u,a),t=t==null?a:p({},a,t),l.memoizedState=t,l.lanes===0&&(l.updateQueue.baseState=t)}var Nf={enqueueSetState:function(l,a,t){l=l._reactInternals;var u=Ul(),e=Ua(u);e.payload=a,t!=null&&(e.callback=t),a=Ha(l,e,u),a!==null&&(Hl(a,l,u),vu(a,l,u))},enqueueReplaceState:function(l,a,t){l=l._reactInternals;var u=Ul(),e=Ua(u);e.tag=1,e.payload=a,t!=null&&(e.callback=t),a=Ha(l,e,u),a!==null&&(Hl(a,l,u),vu(a,l,u))},enqueueForceUpdate:function(l,a){l=l._reactInternals;var t=Ul(),u=Ua(t);u.tag=2,a!=null&&(u.callback=a),a=Ha(l,u,t),a!==null&&(Hl(a,l,t),vu(a,l,t))}};function Ri(l,a,t,u,e,n,f){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(u,n,f):a.prototype&&a.prototype.isPureReactComponent?!Tu(t,u)||!Tu(e,n):!0}function Bi(l,a,t,u){l=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(t,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(t,u),a.state!==l&&Nf.enqueueReplaceState(a,a.state,null)}function Pa(l,a){var t=a;if("ref"in a){t={};for(var u in a)u!=="ref"&&(t[u]=a[u])}if(l=l.defaultProps){t===a&&(t=p({},t));for(var e in l)t[e]===void 0&&(t[e]=l[e])}return t}var Ve=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function J1(l){Ve(l)}function r1(l){console.error(l)}function w1(l){Ve(l)}function Ke(l,a){try{var t=l.onUncaughtError;t(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function Yi(l,a,t){try{var u=l.onCaughtError;u(t.value,{componentStack:t.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function qf(l,a,t){return t=Ua(t),t.tag=3,t.payload={element:null},t.callback=function(){Ke(l,a)},t}function W1(l){return l=Ua(l),l.tag=3,l}function $1(l,a,t,u){var e=t.type.getDerivedStateFromError;if(typeof e=="function"){var n=u.value;l.payload=function(){return e(n)},l.callback=function(){Yi(a,t,u)}}var f=t.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(l.callback=function(){Yi(a,t,u),typeof e!="function"&&(_a===null?_a=new Set([this]):_a.add(this));var c=u.stack;this.componentDidCatch(u.value,{componentStack:c!==null?c:""})})}function Xh(l,a,t,u,e){if(t.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=t.alternate,a!==null&&ju(a,t,e,!0),t=Zl.current,t!==null){switch(t.tag){case 13:return wl===null?xf():t.alternate===null&&W===0&&(W=3),t.flags&=-257,t.flags|=65536,t.lanes=e,u===Ef?t.flags|=16384:(a=t.updateQueue,a===null?t.updateQueue=new Set([u]):a.add(u),wn(l,u,e)),!1;case 22:return t.flags|=65536,u===Ef?t.flags|=16384:(a=t.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},t.updateQueue=a):(t=a.retryQueue,t===null?a.retryQueue=new Set([u]):t.add(u)),wn(l,u,e)),!1}throw Error(o(435,t.tag))}return wn(l,u,e),xf(),!1}if(G)return a=Zl.current,a!==null?(!(a.flags&65536)&&(a.flags|=256),a.flags|=65536,a.lanes=e,u!==gf&&(l=Error(o(422),{cause:u}),Eu(Gl(l,t)))):(u!==gf&&(a=Error(o(423),{cause:u}),Eu(Gl(a,t))),l=l.current.alternate,l.flags|=65536,e&=-e,l.lanes|=e,u=Gl(u,t),e=qf(l.stateNode,u,e),Xn(l,e),W!==4&&(W=2)),!1;var n=Error(o(520),{cause:u});if(n=Gl(n,t),Su===null?Su=[n]:Su.push(n),W!==4&&(W=2),a===null)return!0;u=Gl(u,t),t=a;do{switch(t.tag){case 3:return t.flags|=65536,l=e&-e,t.lanes|=l,l=qf(t.stateNode,u,l),Xn(t,l),!1;case 1:if(a=t.type,n=t.stateNode,(t.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(_a===null||!_a.has(n))))return t.flags|=65536,e&=-e,t.lanes|=e,e=W1(e),$1(e,l,t,u),Xn(t,e),!1}t=t.return}while(t!==null);return!1}var k1=Error(o(461)),cl=!1;function vl(l,a,t,u){a.child=l===null?p1(a,null,t,u):Gt(a,l.child,t,u)}function Xi(l,a,t,u,e){t=t.render;var n=a.ref;if("ref"in u){var f={};for(var c in u)c!=="ref"&&(f[c]=u[c])}else f=u;return Fa(a),u=oc(l,a,t,f,n,e),c=zc(),l!==null&&!cl?(Ac(l,a,e),va(l,a,e)):(G&&c&&hc(a),a.flags|=1,vl(l,a,u,e),a.child)}function Gi(l,a,t,u,e){if(l===null){var n=t.type;return typeof n=="function"&&!yc(n)&&n.defaultProps===void 0&&t.compare===null?(a.tag=15,a.type=n,F1(l,a,n,u,e)):(l=be(t.type,null,u,a,a.mode,e),l.ref=a.ref,l.return=a,a.child=l)}if(n=l.child,!Nc(l,e)){var f=n.memoizedProps;if(t=t.compare,t=t!==null?t:Tu,t(f,u)&&l.ref===a.ref)return va(l,a,e)}return a.flags|=1,l=na(n,u),l.ref=a.ref,l.return=a,a.child=l}function F1(l,a,t,u,e){if(l!==null){var n=l.memoizedProps;if(Tu(n,u)&&l.ref===a.ref)if(cl=!1,a.pendingProps=u=n,Nc(l,e))l.flags&131072&&(cl=!0);else return a.lanes=l.lanes,va(l,a,e)}return Rf(l,a,t,u,e)}function I1(l,a,t){var u=a.pendingProps,e=u.children,n=l!==null?l.memoizedState:null;if(u.mode==="hidden"){if(a.flags&128){if(u=n!==null?n.baseLanes|t:t,l!==null){for(e=a.child=l.child,n=0;e!==null;)n=n|e.lanes|e.childLanes,e=e.sibling;a.childLanes=n&~u}else a.childLanes=0,a.child=null;return Qi(l,a,u,t)}if(t&536870912)a.memoizedState={baseLanes:0,cachePool:null},l!==null&&ge(a,n!==null?n.cachePool:null),n!==null?Mi(a,n):Of(),L1(a);else return a.lanes=a.childLanes=536870912,Qi(l,a,n!==null?n.baseLanes|t:t,t)}else n!==null?(ge(a,n.cachePool),Mi(a,n),za(),a.memoizedState=null):(l!==null&&ge(a,null),Of(),za());return vl(l,a,e,t),a.child}function Qi(l,a,t,u){var e=mc();return e=e===null?null:{parent:al._currentValue,pool:e},a.memoizedState={baseLanes:t,cachePool:e},l!==null&&ge(a,null),Of(),L1(a),l!==null&&ju(l,a,u,!0),null}function Ae(l,a){var t=a.ref;if(t===null)l!==null&&l.ref!==null&&(a.flags|=4194816);else{if(typeof t!="function"&&typeof t!="object")throw Error(o(284));(l===null||l.ref!==t)&&(a.flags|=4194816)}}function Rf(l,a,t,u,e){return Fa(a),t=oc(l,a,t,u,void 0,e),u=zc(),l!==null&&!cl?(Ac(l,a,e),va(l,a,e)):(G&&u&&hc(a),a.flags|=1,vl(l,a,t,e),a.child)}function Zi(l,a,t,u,e,n){return Fa(a),a.updateQueue=null,t=h1(a,u,t,e),y1(l),u=zc(),l!==null&&!cl?(Ac(l,a,n),va(l,a,n)):(G&&u&&hc(a),a.flags|=1,vl(l,a,t,n),a.child)}function xi(l,a,t,u,e){if(Fa(a),a.stateNode===null){var n=gt,f=t.contextType;typeof f=="object"&&f!==null&&(n=sl(f)),n=new t(u,n),a.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Nf,a.stateNode=n,n._reactInternals=a,n=a.stateNode,n.props=u,n.state=a.memoizedState,n.refs={},Sc(a),f=t.contextType,n.context=typeof f=="object"&&f!==null?sl(f):gt,n.state=a.memoizedState,f=t.getDerivedStateFromProps,typeof f=="function"&&(Qn(a,t,f,u),n.state=a.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(f=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),f!==n.state&&Nf.enqueueReplaceState(n,n.state,null),hu(a,u,n,e),yu(),n.state=a.memoizedState),typeof n.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(l===null){n=a.stateNode;var c=a.memoizedProps,i=Pa(t,c);n.props=i;var h=n.context,b=t.contextType;f=gt,typeof b=="object"&&b!==null&&(f=sl(b));var S=t.getDerivedStateFromProps;b=typeof S=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=a.pendingProps!==c,b||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||h!==f)&&Bi(a,n,u,f),ba=!1;var d=a.memoizedState;n.state=d,hu(a,u,n,e),yu(),h=a.memoizedState,c||d!==h||ba?(typeof S=="function"&&(Qn(a,t,S,u),h=a.memoizedState),(i=ba||Ri(a,t,i,u,d,h,f))?(b||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(a.flags|=4194308)):(typeof n.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=h),n.props=u,n.state=h,n.context=f,u=i):(typeof n.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{n=a.stateNode,Mf(l,a),f=a.memoizedProps,b=Pa(t,f),n.props=b,S=a.pendingProps,d=n.context,h=t.contextType,i=gt,typeof h=="object"&&h!==null&&(i=sl(h)),c=t.getDerivedStateFromProps,(h=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(f!==S||d!==i)&&Bi(a,n,u,i),ba=!1,d=a.memoizedState,n.state=d,hu(a,u,n,e),yu();var m=a.memoizedState;f!==S||d!==m||ba||l!==null&&l.dependencies!==null&&Xe(l.dependencies)?(typeof c=="function"&&(Qn(a,t,c,u),m=a.memoizedState),(b=ba||Ri(a,t,b,u,d,m,i)||l!==null&&l.dependencies!==null&&Xe(l.dependencies))?(h||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(u,m,i),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(u,m,i)),typeof n.componentDidUpdate=="function"&&(a.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&d===l.memoizedState||(a.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&d===l.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=m),n.props=u,n.state=m,n.context=i,u=b):(typeof n.componentDidUpdate!="function"||f===l.memoizedProps&&d===l.memoizedState||(a.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||f===l.memoizedProps&&d===l.memoizedState||(a.flags|=1024),u=!1)}return n=u,Ae(l,a),u=(a.flags&128)!==0,n||u?(n=a.stateNode,t=u&&typeof t.getDerivedStateFromError!="function"?null:n.render(),a.flags|=1,l!==null&&u?(a.child=Gt(a,l.child,null,e),a.child=Gt(a,null,t,e)):vl(l,a,t,e),a.memoizedState=n.state,l=a.child):l=va(l,a,e),l}function ji(l,a,t,u){return xu(),a.flags|=256,vl(l,a,t,u),a.child}var Zn={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xn(l){return{baseLanes:l,cachePool:n1()}}function jn(l,a,t){return l=l!==null?l.childLanes&~t:0,a&&(l|=Ql),l}function P1(l,a,t){var u=a.pendingProps,e=!1,n=(a.flags&128)!==0,f;if((f=n)||(f=l!==null&&l.memoizedState===null?!1:(tl.current&2)!==0),f&&(e=!0,a.flags&=-129),f=(a.flags&32)!==0,a.flags&=-33,l===null){if(G){if(e?oa(a):za(),G){var c=w,i;if(i=c){l:{for(i=c,c=pl;i.nodeType!==8;){if(!c){c=null;break l}if(i=Vl(i.nextSibling),i===null){c=null;break l}}c=i}c!==null?(a.memoizedState={dehydrated:c,treeContext:Ja!==null?{id:aa,overflow:ta}:null,retryLane:536870912,hydrationErrors:null},i=Ml(18,null,null,0),i.stateNode=c,i.return=a,a.child=i,ml=a,w=null,i=!0):i=!1}i||ka(a)}if(c=a.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return Jf(c)?a.lanes=32:a.lanes=536870912,null;ea(a)}return c=u.children,u=u.fallback,e?(za(),e=a.mode,c=Ce({mode:"hidden",children:c},e),u=La(u,e,t,null),c.return=a,u.return=a,c.sibling=u,a.child=c,e=a.child,e.memoizedState=xn(t),e.childLanes=jn(l,f,t),a.memoizedState=Zn,u):(oa(a),Bf(a,c))}if(i=l.memoizedState,i!==null&&(c=i.dehydrated,c!==null)){if(n)a.flags&256?(oa(a),a.flags&=-257,a=Vn(l,a,t)):a.memoizedState!==null?(za(),a.child=l.child,a.flags|=128,a=null):(za(),e=u.fallback,c=a.mode,u=Ce({mode:"visible",children:u.children},c),e=La(e,c,t,null),e.flags|=2,u.return=a,e.return=a,u.sibling=e,a.child=u,Gt(a,l.child,null,t),u=a.child,u.memoizedState=xn(t),u.childLanes=jn(l,f,t),a.memoizedState=Zn,a=e);else if(oa(a),Jf(c)){if(f=c.nextSibling&&c.nextSibling.dataset,f)var h=f.dgst;f=h,u=Error(o(419)),u.stack="",u.digest=f,Eu({value:u,source:null,stack:null}),a=Vn(l,a,t)}else if(cl||ju(l,a,t,!1),f=(t&l.childLanes)!==0,cl||f){if(f=C,f!==null&&(u=t&-t,u=u&42?1:Pf(u),u=u&(f.suspendedLanes|t)?0:u,u!==0&&u!==i.retryLane))throw i.retryLane=u,Ct(l,u),Hl(f,l,u),k1;c.data==="$?"||xf(),a=Vn(l,a,t)}else c.data==="$?"?(a.flags|=192,a.child=l.child,a=null):(l=i.treeContext,w=Vl(c.nextSibling),ml=a,G=!0,ra=null,pl=!1,l!==null&&(Bl[Yl++]=aa,Bl[Yl++]=ta,Bl[Yl++]=Ja,aa=l.id,ta=l.overflow,Ja=a),a=Bf(a,u.children),a.flags|=4096);return a}return e?(za(),e=u.fallback,c=a.mode,i=l.child,h=i.sibling,u=na(i,{mode:"hidden",children:u.children}),u.subtreeFlags=i.subtreeFlags&65011712,h!==null?e=na(h,e):(e=La(e,c,t,null),e.flags|=2),e.return=a,u.return=a,u.sibling=e,a.child=u,u=e,e=a.child,c=l.child.memoizedState,c===null?c=xn(t):(i=c.cachePool,i!==null?(h=al._currentValue,i=i.parent!==h?{parent:h,pool:h}:i):i=n1(),c={baseLanes:c.baseLanes|t,cachePool:i}),e.memoizedState=c,e.childLanes=jn(l,f,t),a.memoizedState=Zn,u):(oa(a),t=l.child,l=t.sibling,t=na(t,{mode:"visible",children:u.children}),t.return=a,t.sibling=null,l!==null&&(f=a.deletions,f===null?(a.deletions=[l],a.flags|=16):f.push(l)),a.child=t,a.memoizedState=null,t)}function Bf(l,a){return a=Ce({mode:"visible",children:a},l.mode),a.return=l,l.child=a}function Ce(l,a){return l=Ml(22,l,null,a),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function Vn(l,a,t){return Gt(a,l.child,null,t),l=Bf(a,a.pendingProps.children),l.flags|=2,a.memoizedState=null,l}function Vi(l,a,t){l.lanes|=a;var u=l.alternate;u!==null&&(u.lanes|=a),zf(l.return,a,t)}function Kn(l,a,t,u,e){var n=l.memoizedState;n===null?l.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:t,tailMode:e}:(n.isBackwards=a,n.rendering=null,n.renderingStartTime=0,n.last=u,n.tail=t,n.tailMode=e)}function lv(l,a,t){var u=a.pendingProps,e=u.revealOrder,n=u.tail;if(vl(l,a,u.children,t),u=tl.current,u&2)u=u&1|2,a.flags|=128;else{if(l!==null&&l.flags&128)l:for(l=a.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Vi(l,t,a);else if(l.tag===19)Vi(l,t,a);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break l;for(;l.sibling===null;){if(l.return===null||l.return===a)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}u&=1}switch(J(tl,u),e){case"forwards":for(t=a.child,e=null;t!==null;)l=t.alternate,l!==null&&je(l)===null&&(e=t),t=t.sibling;t=e,t===null?(e=a.child,a.child=null):(e=t.sibling,t.sibling=null),Kn(a,!1,e,t,n);break;case"backwards":for(t=null,e=a.child,a.child=null;e!==null;){if(l=e.alternate,l!==null&&je(l)===null){a.child=e;break}l=e.sibling,e.sibling=t,t=e,e=l}Kn(a,!0,t,null,n);break;case"together":Kn(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function va(l,a,t){if(l!==null&&(a.dependencies=l.dependencies),Ga|=a.lanes,!(t&a.childLanes))if(l!==null){if(ju(l,a,t,!1),(t&a.childLanes)===0)return null}else return null;if(l!==null&&a.child!==l.child)throw Error(o(153));if(a.child!==null){for(l=a.child,t=na(l,l.pendingProps),a.child=t,t.return=a;l.sibling!==null;)l=l.sibling,t=t.sibling=na(l,l.pendingProps),t.return=a;t.sibling=null}return a.child}function Nc(l,a){return l.lanes&a?!0:(l=l.dependencies,!!(l!==null&&Xe(l)))}function Gh(l,a,t){switch(a.tag){case 3:Ue(a,a.stateNode.containerInfo),ga(a,al,l.memoizedState.cache),xu();break;case 27:case 5:ff(a);break;case 4:Ue(a,a.stateNode.containerInfo);break;case 10:ga(a,a.type,a.memoizedProps.value);break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(oa(a),a.flags|=128,null):t&a.child.childLanes?P1(l,a,t):(oa(a),l=va(l,a,t),l!==null?l.sibling:null);oa(a);break;case 19:var e=(l.flags&128)!==0;if(u=(t&a.childLanes)!==0,u||(ju(l,a,t,!1),u=(t&a.childLanes)!==0),e){if(u)return lv(l,a,t);a.flags|=128}if(e=a.memoizedState,e!==null&&(e.rendering=null,e.tail=null,e.lastEffect=null),J(tl,tl.current),u)break;return null;case 22:case 23:return a.lanes=0,I1(l,a,t);case 24:ga(a,al,l.memoizedState.cache)}return va(l,a,t)}function av(l,a,t){if(l!==null)if(l.memoizedProps!==a.pendingProps)cl=!0;else{if(!Nc(l,t)&&!(a.flags&128))return cl=!1,Gh(l,a,t);cl=!!(l.flags&131072)}else cl=!1,G&&a.flags&1048576&&u1(a,Ye,a.index);switch(a.lanes=0,a.tag){case 16:l:{l=a.pendingProps;var u=a.elementType,e=u._init;if(u=e(u._payload),a.type=u,typeof u=="function")yc(u)?(l=Pa(u,l),a.tag=1,a=xi(null,a,u,l,t)):(a.tag=0,a=Rf(null,a,u,l,t));else{if(u!=null){if(e=u.$$typeof,e===kf){a.tag=11,a=Xi(null,a,u,l,t);break l}else if(e===Ff){a.tag=14,a=Gi(null,a,u,l,t);break l}}throw a=ef(u)||u,Error(o(306,a,""))}}return a;case 0:return Rf(l,a,a.type,a.pendingProps,t);case 1:return u=a.type,e=Pa(u,a.pendingProps),xi(l,a,u,e,t);case 3:l:{if(Ue(a,a.stateNode.containerInfo),l===null)throw Error(o(387));u=a.pendingProps;var n=a.memoizedState;e=n.element,Mf(l,a),hu(a,u,null,t);var f=a.memoizedState;if(u=f.cache,ga(a,al,u),u!==n.cache&&Af(a,[al],t,!0),yu(),u=f.element,n.isDehydrated)if(n={element:u,isDehydrated:!1,cache:f.cache},a.updateQueue.baseState=n,a.memoizedState=n,a.flags&256){a=ji(l,a,u,t);break l}else if(u!==e){e=Gl(Error(o(424)),a),Eu(e),a=ji(l,a,u,t);break l}else{switch(l=a.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(w=Vl(l.firstChild),ml=a,G=!0,ra=null,pl=!0,t=p1(a,null,u,t),a.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling}else{if(xu(),u===e){a=va(l,a,t);break l}vl(l,a,u,t)}a=a.child}return a;case 26:return Ae(l,a),l===null?(t=u0(a.type,null,a.pendingProps,null))?a.memoizedState=t:G||(t=a.type,l=a.pendingProps,u=$e(Oa.current).createElement(t),u[dl]=a,u[ol]=l,hl(u,t,l),fl(u),a.stateNode=u):a.memoizedState=u0(a.type,l.memoizedProps,a.pendingProps,l.memoizedState),null;case 27:return ff(a),l===null&&G&&(u=a.stateNode=Kv(a.type,a.pendingProps,Oa.current),ml=a,pl=!0,e=w,Za(a.type)?(rf=e,w=Vl(u.firstChild)):w=e),vl(l,a,a.pendingProps.children,t),Ae(l,a),l===null&&(a.flags|=4194304),a.child;case 5:return l===null&&G&&((e=u=w)&&(u=vd(u,a.type,a.pendingProps,pl),u!==null?(a.stateNode=u,ml=a,w=Vl(u.firstChild),pl=!1,e=!0):e=!1),e||ka(a)),ff(a),e=a.type,n=a.pendingProps,f=l!==null?l.memoizedProps:null,u=n.children,pf(e,n)?u=null:f!==null&&pf(e,f)&&(a.flags|=32),a.memoizedState!==null&&(e=oc(l,a,Hh,null,null,t),_u._currentValue=e),Ae(l,a),vl(l,a,u,t),a.child;case 6:return l===null&&G&&((l=t=w)&&(t=yd(t,a.pendingProps,pl),t!==null?(a.stateNode=t,ml=a,w=null,l=!0):l=!1),l||ka(a)),null;case 13:return P1(l,a,t);case 4:return Ue(a,a.stateNode.containerInfo),u=a.pendingProps,l===null?a.child=Gt(a,null,u,t):vl(l,a,u,t),a.child;case 11:return Xi(l,a,a.type,a.pendingProps,t);case 7:return vl(l,a,a.pendingProps,t),a.child;case 8:return vl(l,a,a.pendingProps.children,t),a.child;case 12:return vl(l,a,a.pendingProps.children,t),a.child;case 10:return u=a.pendingProps,ga(a,a.type,u.value),vl(l,a,u.children,t),a.child;case 9:return e=a.type._context,u=a.pendingProps.children,Fa(a),e=sl(e),u=u(e),a.flags|=1,vl(l,a,u,t),a.child;case 14:return Gi(l,a,a.type,a.pendingProps,t);case 15:return F1(l,a,a.type,a.pendingProps,t);case 19:return lv(l,a,t);case 31:return u=a.pendingProps,t=a.mode,u={mode:u.mode,children:u.children},l===null?(t=Ce(u,t),t.ref=a.ref,a.child=t,t.return=a,a=t):(t=na(l.child,u),t.ref=a.ref,a.child=t,t.return=a,a=t),a;case 22:return I1(l,a,t);case 24:return Fa(a),u=sl(al),l===null?(e=mc(),e===null&&(e=C,n=sc(),e.pooledCache=n,n.refCount++,n!==null&&(e.pooledCacheLanes|=t),e=n),a.memoizedState={parent:u,cache:e},Sc(a),ga(a,al,e)):(l.lanes&t&&(Mf(l,a),hu(a,null,null,t),yu()),e=l.memoizedState,n=a.memoizedState,e.parent!==u?(e={parent:u,cache:u},a.memoizedState=e,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=e),ga(a,al,u)):(u=n.cache,ga(a,al,u),u!==e.cache&&Af(a,[al],t,!0))),vl(l,a,a.pendingProps.children,t),a.child;case 29:throw a.pendingProps}throw Error(o(156,a.tag))}function Fl(l){l.flags|=4}function Ki(l,a){if(a.type!=="stylesheet"||a.state.loading&4)l.flags&=-16777217;else if(l.flags|=16777216,!Lv(a)){if(a=Zl.current,a!==null&&((Y&4194048)===Y?wl!==null:(Y&62914560)!==Y&&!(Y&536870912)||a!==wl))throw iu=Ef,f1;l.flags|=8192}}function ce(l,a){a!==null&&(l.flags|=4),l.flags&16384&&(a=l.tag!==22?H0():536870912,l.lanes|=a,Qt|=a)}function Ft(l,a){if(!G)switch(l.tailMode){case"hidden":a=l.tail;for(var t=null;a!==null;)a.alternate!==null&&(t=a),a=a.sibling;t===null?l.tail=null:t.sibling=null;break;case"collapsed":t=l.tail;for(var u=null;t!==null;)t.alternate!==null&&(u=t),t=t.sibling;u===null?a||l.tail===null?l.tail=null:l.tail.sibling=null:u.sibling=null}}function r(l){var a=l.alternate!==null&&l.alternate.child===l.child,t=0,u=0;if(a)for(var e=l.child;e!==null;)t|=e.lanes|e.childLanes,u|=e.subtreeFlags&65011712,u|=e.flags&65011712,e.return=l,e=e.sibling;else for(e=l.child;e!==null;)t|=e.lanes|e.childLanes,u|=e.subtreeFlags,u|=e.flags,e.return=l,e=e.sibling;return l.subtreeFlags|=u,l.childLanes=t,a}function Qh(l,a,t){var u=a.pendingProps;switch(dc(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return r(a),null;case 1:return r(a),null;case 3:return t=a.stateNode,u=null,l!==null&&(u=l.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),fa(al),Nt(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(l===null||l.child===null)&&($t(a)?Fl(a):l===null||l.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,gi())),r(a),null;case 26:return t=a.memoizedState,l===null?(Fl(a),t!==null?(r(a),Ki(a,t)):(r(a),a.flags&=-16777217)):t?t!==l.memoizedState?(Fl(a),r(a),Ki(a,t)):(r(a),a.flags&=-16777217):(l.memoizedProps!==u&&Fl(a),r(a),a.flags&=-16777217),null;case 27:He(a),t=Oa.current;var e=a.type;if(l!==null&&a.stateNode!=null)l.memoizedProps!==u&&Fl(a);else{if(!u){if(a.stateNode===null)throw Error(o(166));return r(a),null}l=Jl.current,$t(a)?Si(a):(l=Kv(e,u,t),a.stateNode=l,Fl(a))}return r(a),null;case 5:if(He(a),t=a.type,l!==null&&a.stateNode!=null)l.memoizedProps!==u&&Fl(a);else{if(!u){if(a.stateNode===null)throw Error(o(166));return r(a),null}if(l=Jl.current,$t(a))Si(a);else{switch(e=$e(Oa.current),l){case 1:l=e.createElementNS("http://www.w3.org/2000/svg",t);break;case 2:l=e.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;default:switch(t){case"svg":l=e.createElementNS("http://www.w3.org/2000/svg",t);break;case"math":l=e.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;case"script":l=e.createElement("div"),l.innerHTML="