From d7d86a7fc33a30daf8c69814efed212362e37a0a Mon Sep 17 00:00:00 2001 From: Ferdinand Date: Mon, 24 Jun 2024 11:15:44 +0800 Subject: [PATCH 1/7] bugfix: fix readonly branch commit errors in Oracle XA transactions. --- .../src/pages/TransactionInfo/TransactionInfo.tsx | 6 ++++++ console/src/main/resources/static/js/main.js | 2 +- .../java/org/apache/seata/core/model/BranchStatus.java | 9 ++++++++- .../apache/seata/rm/datasource/xa/ConnectionProxyXA.java | 7 ++++++- .../apache/seata/protocol/transcation/branchStatus.proto | 5 +++++ .../org/apache/seata/server/coordinator/DefaultCore.java | 8 ++++++++ 6 files changed, 34 insertions(+), 3 deletions(-) diff --git a/console/src/main/resources/static/console-fe/src/pages/TransactionInfo/TransactionInfo.tsx b/console/src/main/resources/static/console-fe/src/pages/TransactionInfo/TransactionInfo.tsx index 0cbdb2f9643..f6ae8c26ea4 100644 --- a/console/src/main/resources/static/console-fe/src/pages/TransactionInfo/TransactionInfo.tsx +++ b/console/src/main/resources/static/console-fe/src/pages/TransactionInfo/TransactionInfo.tsx @@ -224,6 +224,12 @@ const branchSessionStatusList:Array = [ iconType: 'error', iconColor: '#FF3333', }, + { + label: 'PhaseOne_RDONLY', + value: 13, + iconType: 'ellipsis', + iconColor: 'rgb(3, 193, 253)', + }, ]; class TransactionInfo extends React.Component { diff --git a/console/src/main/resources/static/js/main.js b/console/src/main/resources/static/js/main.js index 73a295da754..cc6fc7d1c47 100644 --- a/console/src/main/resources/static/js/main.js +++ b/console/src/main/resources/static/js/main.js @@ -386,4 +386,4 @@ The error may be correlated with this previous error: ${c.current.stack} `),e}we(()=>{c.current=void 0,b.current=void 0,_.current=x});const L=D.useMemo(()=>D.createElement(S,Object(ie.a)({},x,{ref:t})),[t,S,x]);return D.useMemo(()=>E?D.createElement(a.Provider,{value:u},L):L,[a,L,u])}const r=D.memo(n);return r.WrappedComponent=S,r.displayName=n.displayName=t,l?((e=D.forwardRef(function(e,t){return D.createElement(r,Object(ie.a)({},e,{reactReduxForwardedRef:t}))})).displayName=t,e.WrappedComponent=S,ue()(e,S)):ue()(r,S)}};function Ce({store:t,context:e,children:n,serverState:r,stabilityCheck:a="once",noopCheck:o="once"}){const i=D.useMemo(()=>{var e=be(t);return{store:t,subscription:e,getServerState:r?()=>r:void 0,stabilityCheck:a,noopCheck:o}},[t,r,a,o]),s=D.useMemo(()=>t.getState(),[t]);return we(()=>{const e=i["subscription"];return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,s]),e=e||ae,D.createElement(e.Provider,{value:i},n)}function Ee(n){return function(e){var t=n===Fe?Fe:Ie;localStorage.setItem(Ye,t),e({type:Oe,language:t,locale:t===Ie?Re:He})}}function De(){return localStorage.getItem(Ye)||Ie}f=p.useSyncExternalStoreWithSelector,oe=f,p=X.useSyncExternalStore,Le=p,f=m.unstable_batchedUpdates,ee=f;var Ye="docsite_language",Oe="LANGUAGE_SWITCH",X="__REDUX_DEVTOOLS_EXTENSION__",Pe="SET_OVERVIEW",Ne="SET_LOGIN",je="Authorization",p=n(238),f=n.n(p),p=n(239),p=n.n(p),Ae={enUS:{MenuRouter:{overview:"Overview",transactionInfo:"TransactionInfo",globalLockInfo:"GlobalLockInfo",sagaStatemachineDesigner:"SagaStatemachineDesigner"},Header:{home:"HOME",docs:"DOCS",blog:"BLOG",community:"COMMUNITY",download:"DOWNLOAD",languageSwitchButton:"中",logout:"logout",passwordRequired:"password should not be empty",usernameRequired:"username should not be empty"},Login:{login:"Login",submit:"Submit",pleaseInputUsername:"Please input username",pleaseInputPassword:"Please input password",invalidUsernameOrPassword:"invalid username or password",desc:"Seata is an open source distributed transaction solution that delivers high performance and easy to use distributed transaction services under a microservices architecture."},Overview:{title:"Overview",subTitle:"list",search:"search"},TransactionInfo:{title:"TransactionInfo",subTitle:"list",createTimeLabel:"CreateTime",selectFilerPlaceholder:"Please select filter criteria",inputFilterPlaceholder:"Please enter filter criteria",branchSessionSwitchLabel:"Whether to include branch sessions",resetButtonLabel:"Reset",searchButtonLabel:"Search",operateTitle:"operate",showBranchSessionTitle:"View branch session",showGlobalLockTitle:"View global lock",branchSessionDialogTitle:"Branch session info"},GlobalLockInfo:{title:"GlobalLockInfo",subTitle:"list",createTimeLabel:"CreateTime",inputFilterPlaceholder:"Please enter filter criteria",resetButtonLabel:"Reset",searchButtonLabel:"Search"}},zhCN:{MenuRouter:{overview:"概览",transactionInfo:"事务信息",globalLockInfo:"全局锁信息",sagaStatemachineDesigner:"Saga状态机设计器"},Header:{home:"首页",docs:"文档",blog:"博客",community:"社区",download:"下载",languageSwitchButton:"En",logout:"登出"},Login:{login:"登录",submit:"提交",pleaseInputUsername:"请输入用户名",pleaseInputPassword:"请输入密码",invalidUsernameOrPassword:"用户名或密码错误",passwordRequired:"密码不能为空",usernameRequired:"用户名不能为空",desc:"Seata 是一款开源的分布式事务解决方案,致力于在微服务架构下提供高性能和简单易用的分布式事务服务。"},Overview:{title:"概览",subTitle:"基础列表页",search:"搜索"},TransactionInfo:{title:"事务信息",subTitle:"基础列表页",createTimeLabel:"创建时间",selectFilerPlaceholder:"请选择筛选条件",inputFilterPlaceholder:"请输入筛选条件",branchSessionSwitchLabel:"是否包含分支事务",resetButtonLabel:"重置",searchButtonLabel:"搜索",operateTitle:"操作",showBranchSessionTitle:"查看分支信息",showGlobalLockTitle:"查看全局锁",branchSessionDialogTitle:"分支事务信息"},GlobalLockInfo:{title:"全局锁信息",subTitle:"基础列表页",createTimeLabel:"创建时间",inputFilterPlaceholder:"请输入筛选条件",resetButtonLabel:"重置",searchButtonLabel:"搜索"}}},Re=Object.assign({},f.a,Ae.enUS),He=Object.assign({},p.a,Ae.zhCN),Ie="en-US",Fe="zh-CN",ze={language:Ie,locale:Re};function We(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ -We=function(){return i};var l,i={},e=Object.prototype,u=e.hasOwnProperty,c=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",a=t.toStringTag||"@@toStringTag";function o(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(l){o=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a,o,i,s,t=t&&t.prototype instanceof g?t:g,t=Object.create(t.prototype),r=new S(r||[]);return c(t,"_invoke",{value:(a=e,o=n,i=r,s=p,function(e,t){if(s===h)throw new Error("Generator is already running");if(s===m){if("throw"===e)throw t;return{value:l,done:!0}}for(i.method=e,i.arg=t;;){var n=i.delegate;if(n){n=function e(t,n){var r=n.method,a=t.iterator[r];if(a===l)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=l,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;r=d(a,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,y;a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=l),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}(n,i);if(n){if(n===y)continue;return n}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===p)throw s=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=h;n=d(a,o,i);if("normal"===n.type){if(s=i.done?m:f,n.arg===y)continue;return{value:n.arg,done:i.done}}"throw"===n.type&&(s=m,i.method="throw",i.arg=n.arg)}})}),t}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}i.wrap=s;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",y={};function g(){}function _(){}function v(){}var t={},b=(o(t,r,function(){return this}),Object.getPrototypeOf),b=b&&b(b(T([]))),w=(b&&b!==e&&u.call(b,r)&&(t=b),v.prototype=g.prototype=Object.create(t));function M(e){["next","throw","return"].forEach(function(t){o(e,t,function(e){return this._invoke(t,e)})})}function k(i,s){var t;c(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,a){var o,e=d(i[e],i,n);if("throw"!==e.type)return(n=(o=e.arg).value)&&"object"==Y(n)&&u.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,a)},function(e){t("throw",e,r,a)}):s.resolve(n).then(function(e){o.value=e,r(o)},function(e){return t("throw",e,r,a)});a(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(t){if(t||""===t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++n=e.length,i=!i&&h.a.isArray(n)?n.length:i,o?h.a.hasOwnProp(n,i)?n[i]=[n[i],t]:n[i]=t:(n[i]&&h.a.isObject(n[i])||(n[i]=[]),s(e,t,n[i],r)&&h.a.isArray(n[i])&&(n[i]=function(e){var t={},n=Object.keys(e);let r;var a,o=n.length;for(r=0;r{s(h.a.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),t,n,0)}),n}return null};const it={transitional:et,adapter:["xhr","http"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",a=-1{it.headers[e]={}});var st=it;const lt=h.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const ut=Symbol("internals");function ct(e){return e&&String(e).trim().toLowerCase()}function dt(e){return!1===e||null==e?e:h.a.isArray(e)?e.map(dt):String(e)}function pt(e,t,n,r,a){return h.a.isFunction(r)?r.call(this,t,n):h.a.isString(t=a?n:t)&&(h.a.isString(r)?-1!==t.indexOf(r):h.a.isRegExp(r)&&r.test(t))}class ft{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function r(e,t,n){var r=ct(t);if(!r)throw new Error("header name must be a non-empty string");r=h.a.findKey(a,r);r&&void 0!==a[r]&&!0!==n&&(void 0!==n||!1===a[r])||(a[r||t]=dt(e))}var o=(e,n)=>h.a.forEach(e,(e,t)=>r(e,t,n));return h.a.isPlainObject(e)||e instanceof this.constructor?o(e,t):h.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&<[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=ct(e)){e=h.a.findKey(this,e);if(e){var n=this[e];if(!t)return n;if(!0===t){for(var r,a=n,o=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;r=i.exec(a);)o[r[1]]=r[2];return o}if(h.a.isFunction(t))return t.call(this,n,e);if(h.a.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){return!!(e=ct(e))&&!(!(e=h.a.findKey(this,e))||void 0===this[e]||t&&!pt(0,this[e],e,t))}delete(e,t){const n=this;let r=!1;function a(e){(e=ct(e))&&(e=h.a.findKey(n,e))&&(!t||pt(n,n[e],e,t))&&(delete n[e],r=!0)}return h.a.isArray(e)?e.forEach(a):a(e),r}clear(e){var t=Object.keys(this);let n=t.length,r=!1;for(;n--;){var a=t[n];e&&!pt(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(r){const a=this,o={};return h.a.forEach(this,(e,t)=>{var n=h.a.findKey(o,t);n?(a[n]=dt(e),delete a[t]):((n=r?t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(t).trim())!==t&&delete a[t],a[n]=dt(e),o[n]=!0)}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(n){const r=Object.create(null);return h.a.forEach(this,(e,t)=>{null!=e&&!1!==e&&(r[t]=n&&h.a.isArray(e)?e.join(", "):e)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const r=(this[ut]=this[ut]={accessors:{}}).accessors,i=this.prototype;function t(e){var t=ct(e);if(!r[t]){{var n=i;var a=e;const o=h.a.toCamelCase(" "+a);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+o,{value:function(e,t,n){return this[r].call(this,a,e,t,n)},configurable:!0})})}r[t]=!0}}return h.a.isArray(e)?e.forEach(t):t(e),this}}ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.a.reduceDescriptors(ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),h.a.freezeMethods(ft);var ht=ft;function mt(e,t){const n=this||st;var r=t||n;const a=ht.from(r.headers);let o=r.data;return h.a.forEach(e,function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function yt(e){return!(!e||!e.__CANCEL__)}function gt(e,t,n){Xe.a.call(this,null==e?"canceled":e,Xe.a.ERR_CANCELED,t,n),this.name="CanceledError"}h.a.inherits(gt,Xe.a,{__CANCEL__:!0});var _t=gt,f=n(54);var vt=at.hasStandardBrowserEnv?{write(e,t,n,r,a,o){e=[e+"="+encodeURIComponent(t)];h.a.isNumber(n)&&e.push("expires="+new Date(n).toGMTString()),h.a.isString(r)&&e.push("path="+r),h.a.isString(a)&&e.push("domain="+a),!0===o&&e.push("secure"),document.cookie=e.join("; ")},read(e){e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bt(e,t){var n;return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?(e=e,(n=t)?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e):t}var wt=at.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let t;function a(e){let t=e;return n&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=a(window.location.href),function(e){e=h.a.isString(e)?a(e):e;return e.protocol===t.protocol&&e.host===t.host}}():function(){return!0};var Mt=function(o,i){o=o||10;const s=new Array(o),l=new Array(o);let u=0,c=0,d;return i=void 0!==i?i:1e3,function(e){var t=Date.now(),n=l[c];d=d||t,s[u]=e,l[u]=t;let r=c,a=0;for(;r!==u;)a+=s[r++],r%=o;return(u=(u+1)%o)===c&&(c=(c+1)%o),!(t-d{var t=e.loaded,n=e.lengthComputable?e.total:void 0,r=t-l,a=u(r),o=t<=n,r={loaded:l=t,total:n,progress:n?t/n:void 0,bytes:r,rate:a||void 0,estimated:a&&n&&o?(n-t)/a:void 0,event:e};r[s?"download":"upload"]=!0,i(r)}}Ae="undefined"!=typeof XMLHttpRequest;const xt={http:f.a,xhr:Ae&&function(p){return new Promise(function(a,o){var e=p.data,t=ht.from(p.headers).normalize();let{responseType:i,withXSRFToken:n}=p,r;function s(){p.cancelToken&&p.cancelToken.unsubscribe(r),p.signal&&p.signal.removeEventListener("abort",r)}h.a.isFormData(e)&&(at.hasStandardBrowserEnv||at.hasStandardBrowserWebWorkerEnv?t.setContentType(!1):!1!==(u=t.getContentType())&&([u,...d]=u?u.split(";").map(e=>e.trim()).filter(Boolean):[],t.setContentType([u||"multipart/form-data",...d].join("; "))));let l=new XMLHttpRequest;p.auth&&(u=p.auth.username||"",d=p.auth.password?unescape(encodeURIComponent(p.auth.password)):"",t.set("Authorization","Basic "+btoa(u+":"+d)));var u=bt(p.baseURL,p.url);function c(){var e,t,n,r;l&&(n=ht.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),n={data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:p,request:l},e=function(e){a(e),s()},t=function(e){o(e),s()},r=(n=n).config.validateStatus,n.status&&r&&!r(n.status)?t(new Xe.a("Request failed with status code "+n.status,[Xe.a.ERR_BAD_REQUEST,Xe.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n),l=null)}l.open(p.method.toUpperCase(),Qe(u,p.params,p.paramsSerializer),!0),l.timeout=p.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(c)},l.onabort=function(){l&&(o(new Xe.a("Request aborted",Xe.a.ECONNABORTED,p,l)),l=null)},l.onerror=function(){o(new Xe.a("Network Error",Xe.a.ERR_NETWORK,p,l)),l=null},l.ontimeout=function(){let e=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded";var t=p.transitional||et;p.timeoutErrorMessage&&(e=p.timeoutErrorMessage),o(new Xe.a(e,t.clarifyTimeoutError?Xe.a.ETIMEDOUT:Xe.a.ECONNABORTED,p,l)),l=null},at.hasStandardBrowserEnv&&((n=n&&h.a.isFunction(n)?n(p):n)||!1!==n&&wt(u))&&(d=p.xsrfHeaderName&&p.xsrfCookieName&&vt.read(p.xsrfCookieName))&&t.set(p.xsrfHeaderName,d),void 0===e&&t.setContentType(null),"setRequestHeader"in l&&h.a.forEach(t.toJSON(),function(e,t){l.setRequestHeader(t,e)}),h.a.isUndefined(p.withCredentials)||(l.withCredentials=!!p.withCredentials),i&&"json"!==i&&(l.responseType=p.responseType),"function"==typeof p.onDownloadProgress&&l.addEventListener("progress",kt(p.onDownloadProgress,!0)),"function"==typeof p.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",kt(p.onUploadProgress)),(p.cancelToken||p.signal)&&(r=e=>{l&&(o(!e||e.type?new _t(null,p,l):e),l.abort(),l=null)},p.cancelToken&&p.cancelToken.subscribe(r),p.signal)&&(p.signal.aborted?r():p.signal.addEventListener("abort",r));var d,t=(d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d=u))&&d[1]||"";t&&-1===at.protocols.indexOf(t)?o(new Xe.a("Unsupported protocol "+t+":",Xe.a.ERR_BAD_REQUEST,p)):l.send(e||null)})}},Lt=(h.a.forEach(xt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}),e=>"- "+e);var St=n=>{var r,e=(n=h.a.isArray(n)?n:[n])["length"];let a;var o,t,i={};for(let t=0;t`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=e?1e instanceof ht?e.toJSON():e;function Dt(r,a){a=a||{};const o={};function i(e,t,n){return h.a.isPlainObject(e)&&h.a.isPlainObject(t)?h.a.merge.call({caseless:n},e,t):h.a.isPlainObject(t)?h.a.merge({},t):h.a.isArray(t)?t.slice():t}function s(e,t,n){return h.a.isUndefined(t)?h.a.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function e(e,t){if(!h.a.isUndefined(t))return i(void 0,t)}function t(e,t){return h.a.isUndefined(t)?h.a.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function l(e,t,n){return n in a?i(e,t):n in r?i(void 0,e):void 0}const u={url:e,method:e,data:e,baseURL:t,transformRequest:t,transformResponse:t,paramsSerializer:t,timeout:t,timeoutMessage:t,withCredentials:t,withXSRFToken:t,adapter:t,responseType:t,xsrfCookieName:t,xsrfHeaderName:t,onUploadProgress:t,onDownloadProgress:t,decompress:t,maxContentLength:t,maxBodyLength:t,beforeRedirect:t,transport:t,httpAgent:t,httpsAgent:t,cancelToken:t,socketPath:t,responseEncoding:t,validateStatus:l,headers:(e,t)=>s(Et(e),Et(t),!0)};return h.a.forEach(Object.keys(Object.assign({},r,a)),function(e){var t=u[e]||s,n=t(r[e],a[e],e);h.a.isUndefined(n)&&t!==l||(o[e]=n)}),o}const Yt={},Ot=(["object","boolean","number","function","string","symbol"].forEach((t,n)=>{Yt[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}}),{});Yt.transitional=function(r,a,n){function o(e,t){return"[Axios v1.6.6] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(e,t,n)=>{if(!1===r)throw new Xe.a(o(t," has been removed"+(a?" in "+a:"")),Xe.a.ERR_DEPRECATED);return a&&!Ot[t]&&(Ot[t]=!0,console.warn(o(t," has been deprecated since v"+a+" and will be removed in the near future"))),!r||r(e,t,n)}};var Pt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Xe.a("options must be an object",Xe.a.ERR_BAD_OPTION_VALUE);var r=Object.keys(e);let a=r.length;for(;0{delete a[e]}),t.headers=ht.concat(e,a);const o=[];let i=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const s=[];this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let l,u=0,c;if(i){c=o.length;let e=t;for(u=0;u{if(a._listeners){let e=a._listeners.length;for(;0{let t;return(e=new Promise(e=>{a.subscribe(e),t=e}).then(e)).cancel=function(){a.unsubscribe(t)},e},e(function(e,t,n){a.reason||(a.reason=new _t(e,t,n),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){this._listeners&&-1!==(e=this._listeners.indexOf(e))&&this._listeners.splice(e,1)}static source(){let t;return{token:new Xg(function(e){t=e}),cancel:t}}};const Rt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rt).forEach(([e,t])=>{Rt[t]=e});p=Rt;var f=function t(n){var e=new At(n),r=Object(Ue.a)(At.prototype.request,e);return h.a.extend(r,At.prototype,e,{allOwnKeys:!0}),h.a.extend(r,e,null,{allOwnKeys:!0}),r.create=function(e){return t(Dt(n,e))},r}(st),Ae=(f.Axios=At,f.CanceledError=_t,f.CancelToken=e,f.isCancel=yt,f.VERSION="1.6.6",f.toFormData=Ke.a,f.AxiosError=Xe.a,f.Cancel=f.CanceledError,f.all=function(e){return Promise.all(e)},f.spread=function(t){return function(e){return t.apply(null,e)}},f.isAxiosError=function(e){return h.a.isObject(e)&&!0===e.isAxiosError},f.mergeConfig=Dt,f.AxiosHeaders=ht,f.formToJSON=e=>ot(h.a.isHTMLForm(e)?new FormData(e):e),f.getAdapter=St,f.HttpStatusCode=p,f.default=f),e=n(12),Ht=n.n(e),p=n(7),$=n.n(p),f=n(2),G=n.n(f),e=n(4),y=n.n(e),p=n(3),g=n.n(p),f=n(5),_=n.n(f),e=n(0),w=n.n(e),It=n(11),p=n(6),q=n.n(p),Ft={momentLocale:"zh-cn",Timeline:{expand:"展开",fold:"收起"},Balloon:{close:"关闭"},Card:{expand:"展开",fold:"收起"},Calendar:{today:"今天",now:"此刻",ok:"确定",clear:"清除",month:"月",year:"年",prevYear:"上一年",nextYear:"下一年",prevMonth:"上个月",nextMonth:"下个月",prevDecade:"上十年",nextDecade:"后十年",yearSelectAriaLabel:"选择年份",monthSelectAriaLabel:"选择月份"},DatePicker:{placeholder:"请选择日期",datetimePlaceholder:"请选择日期和时间",monthPlaceholder:"请选择月",yearPlaceholder:"请选择年",weekPlaceholder:"请选择周",now:"此刻",selectTime:"选择时间",selectDate:"选择日期",ok:"确定",clear:"清除",startPlaceholder:"起始日期",endPlaceholder:"结束日期",hour:"时",minute:"分",second:"秒"},Dialog:{close:"关闭",ok:"确认",cancel:"取消"},Drawer:{close:"关闭"},Message:{closeAriaLabel:"关闭"},Pagination:{prev:"上一页",next:"下一页",goTo:"到第",page:"页",go:"确定",total:"第{current}页,共{total}页",labelPrev:"上一页,当前第{current}页",labelNext:"下一页,当前第{current}页",inputAriaLabel:"请输入跳转到第几页",selectAriaLabel:"请选择每页显示几条",pageSize:"每页显示:"},Input:{clear:"清除"},List:{empty:"没有数据"},Select:{selectPlaceholder:"请选择",autoCompletePlaceholder:"请输入",notFoundContent:"无选项",maxTagPlaceholder:"已选择 {selected}/{total} 项",selectAll:"全选"},Table:{empty:"没有数据",ok:"确认",reset:"重置",asc:"升序",desc:"降序",expanded:"已展开",folded:"已折叠",filter:"筛选",selectAll:"全选"},TimePicker:{placeholder:"请选择时间",clear:"清除",hour:"时",minute:"分",second:"秒"},Transfer:{items:"项",item:"项",moveAll:"移动全部",searchPlaceholder:"请输入",moveToLeft:"撤销选中元素",moveToRight:"提交选中元素"},Upload:{card:{cancel:"取消",addPhoto:"上传图片",download:"下载",delete:"删除"},drag:{text:"点击或者拖动文件到虚线框内上传",hint:"支持 docx, xls, PDF, rar, zip, PNG, JPG 等类型的文件"},upload:{delete:"删除"}},Search:{buttonText:"搜索"},Tag:{delete:"删除"},Rating:{description:"评分选项"},Switch:{on:"已打开",off:"已关闭"},Tab:{closeAriaLabel:"关闭"},Form:{Validate:{default:"%s 校验失败",required:"%s 是必填字段",format:{number:"%s 不是合法的数字",email:"%s 不是合法的 email 地址",url:"%s 不是合法的 URL 地址",tel:"%s 不是合法的电话号码"},number:{length:"%s 长度必须是 %s",min:"%s 不得小于 %s",max:"%s 不得大于 %s",minLength:"%s 字段字符长度不得少于 %s",maxLength:"%s 字段字符长度不得超过 %s"},string:{length:"%s 长度必须是 %s",min:"%s 不得小于 %s",max:"%s 不得大于 %s",minLength:"%s 长度不得少于 %s",maxLength:"%s 长度不得超过 %s"},array:{length:"%s 个数必须是 %s",minLength:"%s 个数不得少于 %s",maxLength:"%s 个数不得超过 %s"},pattern:"%s 数值 %s 不匹配正则 %s"}}},zt="undefined"!=typeof document?document.documentMode:void 0,Wt=function(){var e=!1;try{e=!0}catch(e){}return e},Vt={ieVersion:zt,isProduction:Wt};function Bt(e,t,n){if(!Wt()&&"undefined"!=typeof console&&console.error)return console.error("Warning: [ "+e+" ] is deprecated at [ "+n+" ], use [ "+t+" ] instead of it.")}function Ut(e){if(!Wt()&&"undefined"!=typeof console&&console.error)return console.error("Warning: "+e)}function Kt(e){return Object.prototype.toString.call(e).replace(/\[object\s|]/g,"")}function $t(e){var t=!!e&&"length"in e&&e.length;return"Array"===Kt(e)||0===t||"number"==typeof t&&0