!(function(){var ss=Object.defineProperty,us=Object.defineProperties;var ls=Object.getOwnPropertyDescriptors;var wo=Object.getOwnPropertySymbols;var Qo=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable;var Jo=Math.pow,Yo=(c,i,t)=>i in c?ss(c,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[i]=t,ga=(c,i)=>{for(var t in i||(i={}))Qo.call(i,t)&&Yo(c,t,i[t]);if(wo)for(var t of wo(i))Xo.call(i,t)&&Yo(c,t,i[t]);return c},eo=(c,i)=>us(c,ls(i));var qo=(c,i)=>{var t={};for(var n in c)Qo.call(c,n)&&i.indexOf(n)<0&&(t[n]=c[n]);if(c!=null&&wo)for(var n of wo(c))i.indexOf(n)<0&&Xo.call(c,n)&&(t[n]=c[n]);return t};var $o=(c,i,t)=>new Promise((n,s)=>{var p=f=>{try{A(t.next(f))}catch(E){s(E)}},l=f=>{try{A(t.throw(f))}catch(E){s(E)}},A=f=>f.done?n(f.value):Promise.resolve(f.value).then(p,l);A((t=t.apply(c,i)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[8870],{60580:function(c,i,t){"use strict";t.d(i,{Z:function(){return V}});var n=t(85804),s=t(67294),p=Object.defineProperty,l=Object.defineProperties,A=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,S=(ee,H,w)=>H in ee?p(ee,H,{enumerable:!0,configurable:!0,writable:!0,value:w}):ee[H]=w,D=(ee,H)=>{for(var w in H||(H={}))E.call(H,w)&&S(ee,w,H[w]);if(f)for(var w of f(H))R.call(H,w)&&S(ee,w,H[w]);return ee},G=(ee,H)=>l(ee,A(H)),b=(ee,H)=>{var w={};for(var U in ee)E.call(ee,U)&&H.indexOf(U)<0&&(w[U]=ee[U]);if(ee!=null&&f)for(var U of f(ee))H.indexOf(U)<0&&R.call(ee,U)&&(w[U]=ee[U]);return w},re=(ee,H,w)=>new Promise((U,k)=>{var O=x=>{try{g(w.next(x))}catch(z){k(z)}},T=x=>{try{g(w.throw(x))}catch(z){k(z)}},g=x=>x.done?U(x.value):Promise.resolve(x.value).then(O,T);g((w=w.apply(ee,H)).next())});const V=ee=>{var H=ee,{children:w}=H,U=b(H,["children"]);const[k,O]=(0,s.useState)(!1);return s.createElement(n.ZP,G(D({},U),{loading:k,onClick:T=>re(void 0,null,function*(){try{O(!0),yield U.onClick(T),O(!1)}catch(g){console.error(g),O(!1)}})}),w)}},56243:function(c,i,t){"use strict";var n=t(17187),s=t.n(n),p=Object.defineProperty,l=(R,S,D)=>S in R?p(R,S,{enumerable:!0,configurable:!0,writable:!0,value:D}):R[S]=D,A=(R,S,D)=>l(R,typeof S!="symbol"?S+"":S,D),f=(R,S,D)=>new Promise((G,b)=>{var re=H=>{try{ee(D.next(H))}catch(w){b(w)}},V=H=>{try{ee(D.throw(H))}catch(w){b(w)}},ee=H=>H.done?G(H.value):Promise.resolve(H.value).then(re,V);ee((D=D.apply(R,S)).next())});class E extends n.EventEmitter{constructor(S,D){super(),A(this,"url"),A(this,"body"),A(this,"fullContent",""),A(this,"controller",null),A(this,"buffer",""),this.url=S,this.body=D}startStream(){return f(this,null,function*(){this.controller=new AbortController;const{signal:S}=this.controller;try{const D=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:S});if(!D.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${D.status}`);const G=D.headers.get("content-type");if(!G)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(G.includes("application/json")){const V=yield D.json();this.emit("error",V);return}if(!G.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const b=D.body.getReader(),re=new TextDecoder("utf-8");for(;;){const{done:V,value:ee}=yield b.read();if(V)break;const H=re.decode(ee,{stream:!0});this.buffer+=H;const w=this.buffer.split(` `);this.buffer=w.pop()||"";for(const U of w)if(U.startsWith("data:")){const k=U.slice(5).trim();if(k==="[DONE]")break;try{const O=JSON.parse(k);O.data&&this.handleData(O.data)}catch(O){this.buffer=U+` `+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",O)}}}this.emit("done",this.fullContent)}catch(D){D.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",D.message)}})}handleData(S){S.content&&(this.fullContent+=S.content,this.emit("data",{chunk:S,full:this.fullContent}))}cancelRequest(){var S;(S=this.controller)==null||S.abort()}}i.Z=E},64250:function(c,i,t){"use strict";t.d(i,{Z:function(){return re}});var n=t(67294),s=t(95012),p=t(71230),l=t(15746),A={smartWrp:"smartWrp___NjRcB"},f=t(36295),E=t(30001),R=t(60580),S=t(67294),D=(V,ee,H)=>new Promise((w,U)=>{var k=g=>{try{T(H.next(g))}catch(x){U(x)}},O=g=>{try{T(H.throw(g))}catch(x){U(x)}},T=g=>g.done?w(g.value):Promise.resolve(g.value).then(k,O);T((H=H.apply(V,ee)).next())});const G=` \u5FEB\u901F\u6392\u5E8F\u6F14\u793A

\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A