@midscene/computer-playground 1.17.8-beta-20261106101231.0 → 1.17.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,314 @@
1
+ /*! For license information please see 208.3403aeba.js.LICENSE.txt */
2
+ (self.webpackChunkcomputer_playground=self.webpackChunkcomputer_playground||[]).push([["208"],{57660(e,t,r){"use strict";r.d(t,{uy:()=>g,UA:()=>M,bK:()=>w,z1:()=>S,cM:()=>m});var n=r(98494),i=2,o=.16,a=.05,s=.05,l=.15,c=5,u=4,f=[{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 d(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-i*t:Math.round(e.h)+i*t:r?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?n+=360:n>=360&&(n-=360),n}function h(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-o*t:t===u?e.s+o:e.s+a*t)>1&&(n=1),r&&t===c&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100)}function p(e,t,r){var n;return Math.round(100*(n=Math.max(0,Math.min(1,n=r?e.v+s*t:e.v-l*t))))/100}function m(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],i=new n.Y(e),o=i.toHsv(),a=c;a>0;a-=1){var s=new n.Y({h:d(o,a,!0),s:h(o,a,!0),v:p(o,a,!0)});r.push(s)}r.push(i);for(var l=1;l<=u;l+=1){var m=new n.Y({h:d(o,l),s:h(o,l),v:p(o,l)});r.push(m)}return"dark"===t.theme?f.map(function(e){var i=e.index,o=e.amount;return new n.Y(t.backgroundColor||"#141414").mix(r[i],o).toHexString()}):r.map(function(e){return e.toHexString()})}var g={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"},b=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];b.primary=b[5];var v=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];v.primary=v[5];var y=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];y.primary=y[5];var w=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];w.primary=w[5];var x=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];x.primary=x[5];var A=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];A.primary=A[5];var E=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];E.primary=E[5];var _=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_.primary=_[5];var S=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];S.primary=S[5];var $=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];$.primary=$[5];var k=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];k.primary=k[5];var C=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];C.primary=C[5];var O=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];O.primary=O[5];var M={red:b,volcano:v,orange:y,gold:w,yellow:x,lime:A,green:E,cyan:_,blue:S,geekblue:$,purple:k,magenta:C,grey:O},I=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];I.primary=I[5];var R=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];R.primary=R[5];var j=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];j.primary=j[5];var T=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];T.primary=T[5];var N=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];N.primary=N[5];var P=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];P.primary=P[5];var B=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];B.primary=B[5];var z=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];z.primary=z[5];var L=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];L.primary=L[5];var D=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];D.primary=D[5];var F=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];F.primary=F[5];var H=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];H.primary=H[5];var U=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];U.primary=U[5]},63930(e,t,r){"use strict";r.d(t,{oX:()=>S,L_:()=>N});var n=r(24366),i=r(70486),o=r(19841),a=r(39317),s=r(22155),l=r(59296),c=r(11947),u=r(96591),f=r(18663),d=r(93619),h=r(51232);let p=(0,u.A)(function e(){(0,c.A)(this,e)});var m="CALC_UNIT",g=RegExp(m,"g");function b(e){return"number"==typeof e?"".concat(e).concat(m):e}var v=function(e){(0,d.A)(r,e);var t=(0,h.A)(r);function r(e,i){(0,c.A)(this,r),a=t.call(this),(0,o.A)((0,f.A)(a),"result",""),(0,o.A)((0,f.A)(a),"unitlessCssVar",void 0),(0,o.A)((0,f.A)(a),"lowPriority",void 0);var a,s=(0,n.A)(e);return a.unitlessCssVar=i,e instanceof r?a.result="(".concat(e.result,")"):"number"===s?a.result=b(e):"string"===s&&(a.result=e),a}return(0,u.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(b(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(b(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return("boolean"==typeof r?n=r:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(n=!1),this.result=this.result.replace(g,n?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),r}(p);let y=function(e){(0,d.A)(r,e);var t=(0,h.A)(r);function r(e){var n;return(0,c.A)(this,r),n=t.call(this),(0,o.A)((0,f.A)(n),"result",0),e instanceof r?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,u.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(p),w=function(e,t){var r="css"===e?v:y;return function(e){return new r(e,t)}},x=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(74757);let A=function(e,t,r,n){var o=(0,a.A)({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach(function(e){var t,r=(0,i.A)(e,2),n=r[0],a=r[1];(null!=o&&o[n]||null!=o&&o[a])&&(null!=(t=o[a])||(o[a]=null==o?void 0:o[n]))});var s=(0,a.A)((0,a.A)({},r),o);return Object.keys(s).forEach(function(e){s[e]===t[e]&&delete s[e]}),s};var E="u">typeof CSSINJS_STATISTIC,_=!0;function S(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!E)return Object.assign.apply(Object,[{}].concat(t));_=!1;var i={};return t.forEach(function(e){if("object"===(0,n.A)(e)){var t=Object.keys(e);t.forEach(function(t){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}}),_=!0,i}var $={};function k(){}let C=function(e){var t,r=e,n=k;return E&&"u">typeof Proxy&&(t=new Set,r=new Proxy(e,{get:function(e,r){if(_){var n;null==(n=t)||n.add(r)}return e[r]}}),n=function(e,r){var n;$[e]={global:Array.from(t),component:(0,a.A)((0,a.A)({},null==(n=$[e])?void 0:n.component),r)}}),{token:r,keys:t,flush:n}},O=function(e,t,r){if("function"==typeof r){var n;return r(S(t,null!=(n=t[e])?n:{}))}return null!=r?r:{}},M=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map(function(e){return(0,l.zA)(e)}).join(","),")")}}};var I=6e5,R=new(function(){function e(){(0,c.A)(this,e),(0,o.A)(this,"map",new Map),(0,o.A)(this,"objectIDMap",new WeakMap),(0,o.A)(this,"nextID",0),(0,o.A)(this,"lastAccessBeat",new Map),(0,o.A)(this,"accessBeat",0)}return(0,u.A)(e,[{key:"set",value:function(e,t){this.clear();var r=this.getCompositeKey(e);this.map.set(r,t),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),r=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,n.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,n.A)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(r,n){t-r>I&&(e.map.delete(n),e.lastAccessBeat.delete(n))}),this.accessBeat=0}}}]),e}());let j=function(e,t){return s.useMemo(function(){var r=R.get(t);if(r)return r;var n=e();return R.set(t,n),n},t)},T=function(){return{}},N=function(e){var t=e.useCSP,r=void 0===t?T:t,c=e.useToken,u=e.usePrefix,f=e.getResetStyles,d=e.getCommonStyle,h=e.getCompUnitless;function p(e,t,r){var n=r.unitless,i=r.injectStyle,o=void 0===i||i,a=r.prefixToken,u=r.ignore,f=function(i){var o=i.rootCls,s=i.cssVar,f=void 0===s?{}:s,d=c().realToken;return(0,l.RC)({path:[e],prefix:f.prefix,key:f.key,unitless:n,ignore:u,token:d,scope:o},function(){var n=O(e,d,t),i=A(e,d,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(n).forEach(function(e){i[a(e)]=i[e],delete i[e]}),i}),null};return function(t){var r=c().cssVar;return[function(n){return o&&r?s.createElement(s.Fragment,null,s.createElement(f,{rootCls:t,cssVar:r,component:e}),n):n},null==r?void 0:r.key]}}function m(t,o,s){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],m=(0,i.A)(p,1)[0],g=p.join("-"),b=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=c(),p=i.theme,v=i.realToken,y=i.hashId,E=i.token,_=i.cssVar,$=u(),k=$.rootPrefixCls,I=$.iconPrefixCls,R=r(),T=_?"css":"js",N=j(function(){var e=new Set;return _&&Object.keys(h.unitless||{}).forEach(function(t){e.add((0,l.Ki)(t,_.prefix)),e.add((0,l.Ki)(t,x(m,_.prefix)))}),w(T,e)},[T,m,null==_?void 0:_.prefix]),P=M(T),B=P.max,z=P.min,L={theme:p,token:E,hashId:y,nonce:function(){return R.nonce},clientOnly:h.clientOnly,layer:b,order:h.order||-999};return"function"==typeof f&&(0,l.IV)((0,a.A)((0,a.A)({},L),{},{clientOnly:!1,path:["Shared",k]}),function(){return f(E,{prefix:{rootPrefixCls:k,iconPrefixCls:I},csp:R})}),[(0,l.IV)((0,a.A)((0,a.A)({},L),{},{path:[g,e,I]}),function(){if(!1===h.injectStyle)return[];var r=C(E),i=r.token,a=r.flush,c=O(m,v,s),u=".".concat(e),f=A(m,v,c,{deprecatedTokens:h.deprecatedTokens});_&&c&&"object"===(0,n.A)(c)&&Object.keys(c).forEach(function(e){c[e]="var(".concat((0,l.Ki)(e,x(m,_.prefix)),")")});var p=S(i,{componentCls:u,prefixCls:e,iconCls:".".concat(I),antCls:".".concat(k),calc:N,max:B,min:z},_?c:f),g=o(p,{hashId:y,prefixCls:e,rootPrefixCls:k,iconPrefixCls:I});a(m,f);var b="function"==typeof d?d(p,e,t,h.resetFont):null;return[!1===h.resetStyle?null:b,g]}),y]}}return{genStyleHooks:function(e,t,r,n){var s=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(s)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var c=(null==n?void 0:n.unitless)||{},u="function"==typeof h?h(e):{},f=(0,a.A)((0,a.A)({},u),{},(0,o.A)({},l("zIndexPopup"),!0));Object.keys(c).forEach(function(e){f[l(e)]=c[e]});var d=(0,a.A)((0,a.A)({},n),{},{unitless:f,prefixToken:l}),g=m(e,t,r,d),b=p(s,r,d);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=g(e,t),n=(0,i.A)(r,2)[1],o=b(t),a=(0,i.A)(o,2);return[a[0],n,a[1]]}},genSubStyleComponent:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=m(e,t,r,(0,a.A)({resetStyle:!1,order:-998},n));return function(e){var t=e.prefixCls,r=e.rootCls,n=void 0===r?t:r;return i(t,n),null}},genComponentStyleHook:m}}},59296(e,t,r){"use strict";r.d(t,{hV:()=>el,IV:()=>tl,Mo:()=>th,zA:()=>z,an:()=>M,Ki:()=>D,J:()=>x,RC:()=>td});var n,i=r(19841),o=r(70486),a=r(78944),s=r(39317);let l=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)};var c=r(1056),u=r(22155),f=r.t(u,2);r(96271),r(91585);var d=r(11947),h=r(96591),p="%";function m(e){return e.join(p)}let g=function(){function e(t){(0,d.A)(this,e),(0,i.A)(this,"instanceId",void 0),(0,i.A)(this,"cache",new Map),(0,i.A)(this,"extracted",new Set),this.instanceId=t}return(0,h.A)(e,[{key:"get",value:function(e){return this.opGet(m(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(m(e),t)}},{key:"opUpdate",value:function(e,t){var r=t(this.cache.get(e));null===r?this.cache.delete(e):this.cache.set(e,r)}}]),e}();var b="data-token-hash",v="data-css-hash",y="__cssinjs_instance__";function w(){var e=Math.random().toString(12).slice(2);if("u">typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var r,i=t.getAttribute(v);n[i]?t[y]===e&&(null==(r=t.parentNode)||r.removeChild(t)):n[i]=!0})}return new g(e)}let x=u.createContext({hashPriority:"low",cache:w(),defaultCache:!0});var A=r(24366),E=r(8929);function _(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var S=function(){function e(){(0,d.A)(this,e),(0,i.A)(this,"cache",void 0),(0,i.A)(this,"keys",void 0),(0,i.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,h.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach(function(e){if(i){var t;i=null==(t=i)||null==(t=t.map)?void 0:t.get(e)}else i=void 0}),null!=(t=i)&&t.value&&n&&(i.value[1]=this.cacheCallTimes++),null==(r=i)?void 0:r.value}},{key:"get",value:function(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(e,t){var r=(0,o.A)(e,2)[1];return n.internalGet(t)[1]<r?[t,n.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),a=(0,o.A)(i,1)[0];this.delete(a)}this.keys.push(t)}var s=this.cache;t.forEach(function(e,i){if(i===t.length-1)s.set(e,{value:[r,n.cacheCallTimes++]});else{var o=s.get(e);o?o.map||(o.map=new Map):s.set(e,{map:new Map}),s=s.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var r,n=e.get(t[0]);if(1===t.length)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),null==(r=n.value)?void 0:r[0];var i=this.deleteByPath(n.map,t.slice(1));return n.map&&0!==n.map.size||n.value||e.delete(t[0]),i}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!_(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,i.A)(S,"MAX_CACHE_SIZE",20),(0,i.A)(S,"MAX_CACHE_OFFSET",5);var $=r(47773),k=0,C=function(){function e(t){(0,d.A)(this,e),(0,i.A)(this,"derivatives",void 0),(0,i.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=k,0===t.length&&(0,$.$e)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,h.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),O=new S;function M(e){var t=Array.isArray(e)?e:[e];return O.has(t)||O.set(t,new C(t)),O.get(t)}var I=new WeakMap,R={};function j(e,t){for(var r=I,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(R)||r.set(R,e()),r.get(R)}var T=new WeakMap;function N(e){var t=T.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof C?t+=n.id:n&&"object"===(0,A.A)(n)?t+=N(n):t+=n}),t=l(t),T.set(e,t)),t}function P(e,t){return l("".concat(t,"_").concat(N(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var B=(0,E.A)();function z(e){return"number"==typeof e?"".concat(e,"px"):e}function L(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o)return e;var a=(0,s.A)((0,s.A)({},n),{},(0,i.A)((0,i.A)({},b,t),v,r)),l=Object.keys(a).map(function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).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()},F=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,o.A)(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(n,";")}).join(""),"}"):""},H=function(e,t,r){var n={},i={};return Object.entries(e).forEach(function(e){var t=(0,o.A)(e,2),a=t[0],s=t[1];if(null!=r&&null!=(l=r.preserve)&&l[a])i[a]=s;else if(("string"==typeof s||"number"==typeof s)&&!(null!=r&&null!=(c=r.ignore)&&c[a])){var l,c,u,f=D(a,null==r?void 0:r.prefix);n[f]="number"!=typeof s||null!=r&&null!=(u=r.unitless)&&u[a]?String(s):"".concat(s,"px"),i[a]="var(".concat(f,")")}}),[i,F(n,t,{scope:null==r?void 0:r.scope})]},U=r(94030),q=(0,s.A)({},f).useInsertionEffect,W=function(e,t,r){u.useMemo(e,r),(0,U.A)(function(){return t(!0)},r)};let V=q?function(e,t,r){return q(function(){return e(),t()},r)}:W;var K=(0,s.A)({},f).useInsertionEffect,G=function(e){var t=[],r=!1;function n(e){r||t.push(e)}return u.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),n},X=function(){return function(e){e()}};let Z=void 0!==K?G:X,Y=function(){return!1};function J(e,t,r,n,i){var s=u.useContext(x).cache,l=m([e].concat((0,a.A)(t))),c=Z([l]);Y();var f=function(e){s.opUpdate(l,function(t){var n=t||[void 0,void 0],i=(0,o.A)(n,2),a=i[0],s=[void 0===a?0:a,i[1]||r()];return e?e(s):s})};u.useMemo(function(){f()},[l]);var d=s.opGet(l)[1];return V(function(){null==i||i(d)},function(e){return f(function(t){var r=(0,o.A)(t,2),n=r[0],a=r[1];return e&&0===n&&(null==i||i(d)),[n+1,a]}),function(){s.opUpdate(l,function(t){var r=t||[],i=(0,o.A)(r,2),a=i[0],u=void 0===a?0:a,f=i[1];return 0==u-1?(c(function(){(e||!s.opGet(l))&&(null==n||n(f,!1))}),null):[u-1,f]})}},[l]),d}var Q={},ee="css",et=new Map;function er(e){et.set(e,(et.get(e)||0)+1)}function en(e,t){"u">typeof document&&document.querySelectorAll("style[".concat(b,'="').concat(e,'"]')).forEach(function(e){if(e[y]===t){var r;null==(r=e.parentNode)||r.removeChild(e)}})}var ei=0;function eo(e,t){et.set(e,(et.get(e)||0)-1);var r=new Set;et.forEach(function(e,t){e<=0&&r.add(t)}),et.size-r.size>ei&&r.forEach(function(e){en(e,t),et.delete(e)})}var ea=function(e,t,r,n){var i=r.getDerivativeToken(e),o=(0,s.A)((0,s.A)({},i),t);return n&&(o=n(o)),o},es="token";function el(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,u.useContext)(x),i=n.cache.instanceId,f=n.container,d=r.salt,h=void 0===d?"":d,p=r.override,m=void 0===p?Q:p,g=r.formatToken,w=r.getComputedToken,A=r.cssVar,E=j(function(){return Object.assign.apply(Object,[{}].concat((0,a.A)(t)))},t),_=N(E),S=N(m),$=A?N(A):"";return J(es,[h,e.id,_,S,$],function(){var t,r=w?w(E,m,e):ea(E,m,e,g),n=(0,s.A)({},r),i="";if(A){var a=H(r,A.key,{prefix:A.prefix,ignore:A.ignore,unitless:A.unitless,preserve:A.preserve}),c=(0,o.A)(a,2);r=c[0],i=c[1]}var u=P(r,h);r._tokenKey=u,n._tokenKey=P(n,h);var f=null!=(t=null==A?void 0:A.key)?t:u;r._themeKey=f,er(f);var d="".concat(ee,"-").concat(l(u));return r._hashId=d,[r,d,n,i,(null==A?void 0:A.key)||""]},function(e){eo(e[0]._themeKey,i)},function(e){var t=(0,o.A)(e,4),r=t[0],n=t[3];if(A&&n){var a=(0,c.BD)(n,l("css-variables-".concat(r._themeKey)),{mark:v,prepend:"queue",attachTo:f,priority:-999});a[y]=i,a.setAttribute(b,r._themeKey)}})}var ec=function(e,t,r){var n=(0,o.A)(e,5),i=n[2],a=n[3],s=n[4],l=(r||{}).plain;if(!a)return null;var c=i._tokenKey,u=-999,f=L(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},l);return[u,c,f]},eu=r(76878);let ef={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};var ed="comm",eh="rule",ep="decl",em="@import",eg="@namespace",eb="@keyframes",ev="@layer",ey=Math.abs,ew=String.fromCharCode;function ex(e){return e.trim()}function eA(e,t,r){return e.replace(t,r)}function eE(e,t){return 0|e.charCodeAt(t)}function e_(e,t,r){return e.slice(t,r)}function eS(e){return e.length}function e$(e){return e.length}function ek(e,t){return t.push(e),e}function eC(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function eO(e,t,r,n){switch(e.type){case ev:if(e.children.length)break;case em:case eg:case ep:return e.return=e.return||e.value;case ed:return"";case eb:return e.return=e.value+"{"+eC(e.children,n)+"}";case eh:if(!eS(e.value=e.props.join(",")))return""}return eS(r=eC(e.children,n))?e.return=e.value+"{"+r+"}":""}var eM=1,eI=1,eR=0,ej=0,eT=0,eN="";function eP(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:eM,column:eI,length:a,return:"",siblings:s}}function eB(){return eT}function ez(){return eT=ej>0?eE(eN,--ej):0,eI--,10===eT&&(eI=1,eM--),eT}function eL(){return eT=ej<eR?eE(eN,ej++):0,eI++,10===eT&&(eI=1,eM++),eT}function eD(){return eE(eN,ej)}function eF(){return ej}function eH(e,t){return e_(eN,e,t)}function eU(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 eq(e){return eM=eI=1,eR=eS(eN=e),ej=0,[]}function eW(e){return eN="",e}function eV(e){return ex(eH(ej-1,eX(91===e?e+2:40===e?e+1:e)))}function eK(e){for(;eT=eD();)if(eT<33)eL();else break;return eU(e)>2||eU(eT)>3?"":" "}function eG(e,t){for(;--t&&eL()&&!(eT<48)&&!(eT>102)&&(!(eT>57)||!(eT<65))&&(!(eT>70)||!(eT<97)););return eH(e,eF()+(t<6&&32==eD()&&32==eL()))}function eX(e){for(;eL();)switch(eT){case e:return ej;case 34:case 39:34!==e&&39!==e&&eX(eT);break;case 40:41===e&&eX(e);break;case 92:eL()}return ej}function eZ(e,t){for(;eL();)if(e+eT===57)break;else if(e+eT===84&&47===eD())break;return"/*"+eH(t,ej-1)+"*"+ew(47===e?e:eL())}function eY(e){for(;!eU(eD());)eL();return eH(e,ej)}function eJ(e){return eW(eQ("",null,null,null,[""],e=eq(e),0,[0],e))}function eQ(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,f=a,d=0,h=0,p=0,m=1,g=1,b=1,v=0,y=0,w="",x=i,A=o,E=n,_=w;g;)switch(p=y,y=eL()){case 40:108!=p&&58==eE(_,f-1)?(v++,_+="("):_+=eV(y);break;case 41:v--,_+=")";break;case 34:case 39:case 91:_+=eV(y);break;case 9:case 10:case 13:case 32:if(v>0){_+=ew(y);break}_+=eK(p);break;case 92:_+=eG(eF()-1,7);continue;case 47:switch(eD()){case 42:case 47:ek(e1(eZ(eL(),eF()),t,r,l),l),(5==eU(p||1)||5==eU(eD()||1))&&eS(_)&&" "!==e_(_,-1,void 0)&&(_+=" ");break;default:_+="/"}break;case 123*m:s[c++]=eS(_)*b;case 125*m:case 59:case 0:if(v>0&&y){_+=ew(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(_=eA(_,/\f/g,"")),h>0&&(eS(_)-f||0===m)&&ek(h>32?e2(_+";",n,r,f-1,l):e2(eA(_," ","")+";",n,r,f-2,l),l);break;case 59:_+=";";default:if(ek(E=e0(_,t,r,c,u,i,s,w,x=[],A=[],f,o),o),123===y)if(0===u)eQ(_,t,E,E,x,o,f,s,A);else{switch(d){case 99:if(110===eE(_,3))break;case 108:if(97===eE(_,2))break;default:u=0;case 100:case 109:case 115:}u?eQ(e,E,E,n&&ek(e0(e,E,E,0,0,i,s,w,i,x=[],f,A),A),i,A,f,s,n?x:A):eQ(_,E,E,E,[""],A,0,s,A)}}c=u=h=0,m=b=1,w=_="",f=a;break;case 58:f=1+eS(_),h=p;default:if(m<1){if(123==y)--m;else if(125==y&&0==m++&&125==ez())continue}switch(_+=ew(y),y*m){case 38:b=u>0?1:(_+="\f",-1);break;case 44:if(v>0)break;s[c++]=(eS(_)-1)*b,b=1;break;case 64:45===eD()&&(_+=eV(eL())),d=eD(),u=f=eS(w=_+=eY(eF())),y++;break;case 45:45===p&&2==eS(_)&&(m=0)}}return o}function e0(e,t,r,n,i,o,a,s,l,c,u,f){for(var d=i-1,h=0===i?o:[""],p=e$(h),m=0,g=0,b=0;m<n;++m)for(var v=0,y=e_(e,d+1,d=ey(g=a[m])),w=e;v<p;++v)(w=ex(g>0?h[v]+" "+y:eA(y,/&\f/g,h[v])))&&(l[b++]=w);return eP(e,t,r,0===i?eh:s,l,c,u,f)}function e1(e,t,r,n){return eP(e,t,r,ed,ew(eB()),e_(e,2,-2),0,n)}function e2(e,t,r,n,i){return eP(e,t,r,ep,e_(e,0,n),e_(e,n+1,-1),n,i)}var e6="data-ant-cssinjs-cache-path",e3="_FILE_STYLE__",e5=!0;function e4(){if(!n&&(n={},(0,E.A)())){var e,t=document.createElement("div");t.className=e6,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,o.A)(t,2),i=r[0],a=r[1];n[i]=a});var i=document.querySelector("style[".concat(e6,"]"));i&&(e5=!1,null==(e=i.parentNode)||e.removeChild(i)),document.body.removeChild(t)}}function e8(e){return e4(),!!n[e]}function e9(e){var t=n[e],r=null;if(t&&(0,E.A)())if(e5)r=e3;else{var i=document.querySelector("style[".concat(v,'="').concat(n[e],'"]'));i?r=i.innerHTML:delete n[e]}return[r,t]}var e7="_skip_check_",te="_multi_value_";function tt(e){return eC(eJ(e),eO).replace(/\{%%%\:[^;];}/g,";")}function tr(e){return"object"===(0,A.A)(e)&&e&&(e7 in e||te in e)}function tn(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",o=(null==(t=n.match(/^\w+/))?void 0:t[0])||"";return[n="".concat(o).concat(i).concat(n.slice(o.length))].concat((0,a.A)(r.slice(1))).join(" ")}).join(",")}var ti=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,l=n.injectHash,c=n.parentSelectors,u=r.hashId,f=r.layer,d=(r.path,r.hashPriority),h=r.transformers,p=void 0===h?[]:h,m=(r.linters,""),g={};function b(t){var n=t.getName(u);if(!g[n]){var i=e(t.style,r,{root:!1,parentSelectors:c}),a=(0,o.A)(i,1)[0];g[n]="@keyframes ".concat(t.getName(u)).concat(a)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(function(e){Array.isArray(e)?v(e,t):e&&t.push(e)}),t}return v(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||i?t:{};if("string"==typeof n)m+="".concat(n,"\n");else if(n._keyframe)b(n);else{var f=p.reduce(function(e,t){var r;return(null==t||null==(r=t.visit)?void 0:r.call(t,e))||e},n);Object.keys(f).forEach(function(t){var n=f[t];if("object"!==(0,A.A)(n)||!n||"animationName"===t&&n._keyframe||tr(n)){function h(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;ef[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(b(t),n=t.getName(u)),m+="".concat(r,":").concat(n,";")}var p,v=null!=(p=null==n?void 0:n.value)?p:n;"object"===(0,A.A)(n)&&null!=n&&n[te]&&Array.isArray(v)?v.forEach(function(e){h(t,e)}):h(t,v)}else{var y=!1,w=t.trim(),x=!1;(i||l)&&u?w.startsWith("@")?y=!0:w="&"===w?tn("",u,d):tn(t,u,d):i&&!u&&("&"===w||""===w)&&(w="",x=!0);var E=e(n,r,{root:x,injectHash:y,parentSelectors:[].concat((0,a.A)(c),[w])}),_=(0,o.A)(E,2),S=_[0],$=_[1];g=(0,s.A)((0,s.A)({},g),$),m+="".concat(w).concat(S)}})}}),i?f&&(m&&(m="@layer ".concat(f.name," {").concat(m,"}")),f.dependencies&&(g["@layer ".concat(f.name)]=f.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(f.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function to(e,t){return l("".concat(e.join("%")).concat(t))}function ta(){return null}var ts="style";function tl(e,t){var r=e.token,n=e.path,l=e.hashId,f=e.layer,d=e.nonce,h=e.clientOnly,p=e.order,m=void 0===p?0:p,g=u.useContext(x),w=g.autoClear,A=(g.mock,g.defaultCache),E=g.hashPriority,_=g.container,S=g.ssrInline,$=g.transformers,k=g.linters,C=g.cache,O=g.layer,M=r._tokenKey,I=[M];O&&I.push("layer"),I.push.apply(I,(0,a.A)(n));var R=B,j=J(ts,I,function(){var e=I.join("|");if(e8(e)){var r=e9(e),i=(0,o.A)(r,2),a=i[0],s=i[1];if(a)return[a,M,s,{},h,m]}var c=ti(t(),{hashId:l,hashPriority:E,layer:O?f:void 0,path:n.join("-"),transformers:$,linters:k}),u=(0,o.A)(c,2),d=u[0],p=u[1],g=tt(d),b=to(I,g);return[g,M,b,p,h,m]},function(e,t){var r=(0,o.A)(e,3)[2];(t||w)&&B&&(0,c.m6)(r,{mark:v,attachTo:_})},function(e){var t=(0,o.A)(e,4),r=t[0],n=(t[1],t[2]),i=t[3];if(R&&r!==e3){var a={mark:v,prepend:!O&&"queue",attachTo:_,priority:m},l="function"==typeof d?d():d;l&&(a.csp={nonce:l});var u=[],f=[];Object.keys(i).forEach(function(e){e.startsWith("@layer")?u.push(e):f.push(e)}),u.forEach(function(e){(0,c.BD)(tt(i[e]),"_layer-".concat(e),(0,s.A)((0,s.A)({},a),{},{prepend:!0}))});var h=(0,c.BD)(r,n,a);h[y]=C.instanceId,h.setAttribute(b,M),f.forEach(function(e){(0,c.BD)(tt(i[e]),"_effect-".concat(e),a)})}}),T=(0,o.A)(j,3),N=T[0],P=T[1],z=T[2];return function(e){var t;return t=S&&!R&&A?u.createElement("style",(0,eu.A)({},(0,i.A)((0,i.A)({},b,P),v,z),{dangerouslySetInnerHTML:{__html:N}})):u.createElement(ta,null),u.createElement(u.Fragment,null,t,e)}}var tc=function(e,t,r){var n=(0,o.A)(e,6),i=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],f=(r||{}).plain;if(c)return null;var d=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return d=L(i,a,s,h,f),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var r=L(tt(l[e]),a,"_effect-".concat(e),h,f);e.startsWith("@layer")?d=r+d:d+=r}}),[u,s,d]},tu="cssVar",tf=function(e,t,r){var n=(0,o.A)(e,4),i=n[1],a=n[2],s=n[3],l=(r||{}).plain;if(!i)return null;var c=-999,u=L(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},l);return[c,a,u]};let td=function(e,t){var r=e.key,n=e.prefix,i=e.unitless,s=e.ignore,l=e.token,f=e.scope,d=void 0===f?"":f,h=(0,u.useContext)(x),p=h.cache.instanceId,m=h.container,g=l._tokenKey,w=[].concat((0,a.A)(e.path),[r,d,g]);return J(tu,w,function(){var e=H(t(),r,{prefix:n,unitless:i,ignore:s,scope:d}),a=(0,o.A)(e,2),l=a[0],c=a[1],u=to(w,c);return[l,c,u,r]},function(e){var t=(0,o.A)(e,3)[2];B&&(0,c.m6)(t,{mark:v,attachTo:m})},function(e){var t=(0,o.A)(e,3),n=t[1],i=t[2];if(n){var a=(0,c.BD)(n,i,{mark:v,prepend:"queue",attachTo:m,priority:-999});a[y]=p,a.setAttribute(b,r)}})};(0,i.A)((0,i.A)((0,i.A)({},ts,tc),es,ec),tu,tf);let th=function(){function e(t,r){(0,d.A)(this,e),(0,i.A)(this,"name",void 0),(0,i.A)(this,"style",void 0),(0,i.A)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,h.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function tp(e){return e.notSplit=!0,e}tp(["borderTop","borderBottom"]),tp(["borderTop"]),tp(["borderBottom"]),tp(["borderLeft","borderRight"]),tp(["borderLeft"]),tp(["borderRight"])},98494(e,t,r){"use strict";r.d(t,{Y:()=>l});var n=r(19841);let i=Math.round;function o(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)n[e]=t(n[e]||0,r[e]||"",e);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}let a=(e,t,r)=>0===r?e:e/100;function s(e,t){let r=t||255;return e>r?r:e<0?0:e}class l{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,n.A)(this,"isValid",!0),(0,n.A)(this,"r",0),(0,n.A)(this,"g",0),(0,n.A)(this,"b",0),(0,n.A)(this,"a",1),(0,n.A)(this,"_h",void 0),(0,n.A)(this,"_s",void 0),(0,n.A)(this,"_l",void 0),(0,n.A)(this,"_v",void 0),(0,n.A)(this,"_max",void 0),(0,n.A)(this,"_min",void 0),(0,n.A)(this,"_brightness",void 0),e)if("string"==typeof e){const t=e.trim();function r(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):r("rgb")?this.fromRgbString(t):r("hsl")?this.fromHslString(t):(r("hsv")||r("hsb"))&&this.fromHsvString(t)}else if(e instanceof l)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=s(e.r),this.g=s(e.g),this.b=s(e.b),this.a="number"==typeof e.a?s(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return .2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=i(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g<this.b):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){let e=this.getMax()-this.getMin();0===e?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){let t=this.getHue(),r=this.getSaturation(),n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){let r=this._c(e),n=t/100,o=e=>(r[e]-this[e])*n+this[e],a={r:i(o("r")),g:i(o("g")),b:i(o("b")),a:i(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>i((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;let n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=i(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=i(100*this.getSaturation()),r=i(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}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 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){let n=this.clone();return n[e]=s(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){if(this._h=e%360,this._s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){let e=i(255*r);this.r=e,this.g=e,this.b=e}let o=0,a=0,s=0,l=e/60,c=(1-Math.abs(2*r-1))*t,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);let f=r-c/2;this.r=i((o+f)*255),this.g=i((a+f)*255),this.b=i((s+f)*255)}fromHsv({h:e,s:t,v:r,a:n}){this._h=e%360,this._s=t,this._v=r,this.a="number"==typeof n?n:1;let o=i(255*r);if(this.r=o,this.g=o,this.b=o,t<=0)return;let a=e/60,s=Math.floor(a),l=a-s,c=i(r*(1-t)*255),u=i(r*(1-t*l)*255),f=i(r*(1-t*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){let t=o(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=o(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=o(e,(e,t)=>t.includes("%")?i(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},52372(e,t,r){"use strict";r.d(t,{A:()=>_});var n=r(76878),i=r(70486),o=r(19841),a=r(56284),s=r(22155),l=r(30395),c=r.n(l),u=r(57660),f=r(84994),d=r(39317),h=r(51037),p=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function g(e){var t=e.primaryColor,r=e.secondaryColor;m.primaryColor=t,m.secondaryColor=r||(0,h.Em)(t),m.calculated=!!r}function b(){return(0,d.A)({},m)}var v=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,l=e.secondaryColor,c=(0,a.A)(e,p),u=s.useRef(),f=m;if(o&&(f={primaryColor:o,secondaryColor:l||(0,h.Em)(o)}),(0,h.lf)(u),(0,h.$e)((0,h.P3)(t),"icon should be icon definiton, but got ".concat(t)),!(0,h.P3)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,d.A)((0,d.A)({},g),{},{icon:g.icon(f.primaryColor,f.secondaryColor)})),(0,h.cM)(g.icon,"svg-".concat(g.name),(0,d.A)((0,d.A)({className:r,onClick:n,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};v.displayName="IconReact",v.getTwoToneColors=b,v.setTwoToneColors=g;let y=v;function w(e){var t=(0,h.al)(e),r=(0,i.A)(t,2),n=r[0],o=r[1];return y.setTwoToneColors({primaryColor:n,secondaryColor:o})}function x(){var e=y.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var A=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];w(u.z1.primary);var E=s.forwardRef(function(e,t){var r=e.className,l=e.icon,u=e.spin,d=e.rotate,p=e.tabIndex,m=e.onClick,g=e.twoToneColor,b=(0,a.A)(e,A),v=s.useContext(f.A),w=v.prefixCls,x=void 0===w?"anticon":w,E=v.rootClassName,_=c()(E,x,(0,o.A)((0,o.A)({},"".concat(x,"-").concat(l.name),!!l.name),"".concat(x,"-spin"),!!u||"loading"===l.name),r),S=p;void 0===S&&m&&(S=-1);var $=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,k=(0,h.al)(g),C=(0,i.A)(k,2),O=C[0],M=C[1];return s.createElement("span",(0,n.A)({role:"img","aria-label":l.name},b,{ref:t,tabIndex:S,onClick:m,className:_}),s.createElement(y,{icon:l,primaryColor:O,secondaryColor:M,style:$}))});E.displayName="AntdIcon",E.getTwoToneColor=x,E.setTwoToneColor=w;let _=E},84994(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(22155).createContext)({})},11728(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(76878),i=r(39317),o=r(19841),a=r(56284),s=r(22155),l=r(30395),c=r.n(l),u=r(75252),f=r(84994),d=r(51037),h=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],p=s.forwardRef(function(e,t){var r=e.className,l=e.component,p=e.viewBox,m=e.spin,g=e.rotate,b=e.tabIndex,v=e.onClick,y=e.children,w=(0,a.A)(e,h),x=s.useRef(),A=(0,u.xK)(x,t);(0,d.$e)(!!(l||y),"Should have `component` prop or `children`."),(0,d.lf)(x);var E=s.useContext(f.A),_=E.prefixCls,S=void 0===_?"anticon":_,$=E.rootClassName,k=c()($,S,(0,o.A)({},"".concat(S,"-spin"),!!m&&!!l),r),C=c()((0,o.A)({},"".concat(S,"-spin"),!!m)),O=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,M=(0,i.A)((0,i.A)({},d.yf),{},{className:C,style:O,viewBox:p});p||delete M.viewBox;var I=function(){return l?s.createElement(l,M,y):y?((0,d.$e)(!!p||1===s.Children.count(y)&&s.isValidElement(y)&&"use"===s.Children.only(y).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),s.createElement("svg",(0,n.A)({},M,{viewBox:p}),y)):null},R=b;return void 0===R&&v&&(R=-1),s.createElement("span",(0,n.A)({role:"img"},w,{ref:A,tabIndex:R,onClick:v,className:k}),I())});p.displayName="AntdIcon";let m=p},51303(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},3915(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},24671(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},43253(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},35261(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},85387(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},3449(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},89625(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},42254(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},32416(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},6868(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},3762(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},41353(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},42964(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},61636(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M342 88H120c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V168h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm578 576h-48c-8.8 0-16 7.2-16 16v176H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V680c0-8.8-7.2-16-16-16zM342 856H168V680c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM904 88H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V120c0-17.7-14.3-32-32-32z"}}]},name:"expand",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},2398(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},39502(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z"}}]},name:"font-size",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},66308(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},91664(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},49688(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},93512(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},60004(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},83698(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},78118(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},48048(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},25062(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},89275(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},32983(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},1836(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},76399(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},55451(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},62127(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},16262(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},64283(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76878),i=r(22155);let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};var a=r(52372),s=function(e,t){return i.createElement(a.A,(0,n.A)({},e,{ref:t,icon:o}))};let l=i.forwardRef(s)},51037(e,t,r){"use strict";r.d(t,{$e:()=>d,Em:()=>g,P3:()=>h,al:()=>b,cM:()=>m,lf:()=>w,yf:()=>v});var n=r(39317),i=r(24366),o=r(57660),a=r(1056),s=r(95612),l=r(47773),c=r(22155),u=r(84994);function f(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function d(e,t){(0,l.Ay)(e,"[@ant-design/icons] ".concat(t))}function h(e){return"object"===(0,i.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.A)(e.icon)||"function"==typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[f(r)]=n),t},{})}function m(e,t,r){return r?c.createElement(e.tag,(0,n.A)((0,n.A)({key:t},p(e.attrs)),r),(e.children||[]).map(function(r,n){return m(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})):c.createElement(e.tag,(0,n.A)({key:t},p(e.attrs)),(e.children||[]).map(function(r,n){return m(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))}function g(e){return(0,o.cM)(e)[0]}function b(e){return e?Array.isArray(e)?e:[e]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},y="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",w=function(e){var t=(0,c.useContext)(u.A),r=t.csp,n=t.prefixCls,i=t.layer,o=y;n&&(o=o.replace(/anticon/g,n)),i&&(o="@layer ".concat(i," {\n").concat(o,"\n}")),(0,c.useEffect)(function(){var t=e.current,n=(0,s.j)(t);(0,a.BD)(o,"@ant-design-icons",{prepend:!i,csp:r,attachTo:n})},[])}},13480(e,t,r){"use strict";r.d(t,{Q1:()=>m}),r(22155);var n=r(11947),i=r(96591),o=r(93619),a=r(51232),s=r(39317),l=r(56284),c=r(24366),u=r(98494),f=["b"],d=["v"],h=function(e){return Math.round(Number(e||0))},p=function(e){if(e instanceof u.Y)return e;if(e&&"object"===(0,c.A)(e)&&"h"in e&&"b"in e){var t=e,r=t.b,n=(0,l.A)(t,f);return(0,s.A)((0,s.A)({},n),{},{v:r})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},m=function(e){(0,o.A)(r,e);var t=(0,a.A)(r);function r(e){return(0,n.A)(this,r),t.call(this,p(e))}return(0,i.A)(r,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=h(100*e.s),r=h(100*e.b),n=h(e.h),i=e.a,o="hsb(".concat(n,", ").concat(t,"%, ").concat(r,"%)"),a="hsba(".concat(n,", ").concat(t,"%, ").concat(r,"%, ").concat(i.toFixed(2*(0!==i)),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,r=(0,l.A)(e,d);return(0,s.A)((0,s.A)({},r),{},{b:t,a:this.a})}}]),r}(u.Y);(function(e){e instanceof m||new m(e)})("#1677ff"),r(30395),r(74757)},76395(e,t,r){"use strict";r.d(t,{A:()=>E});var n=r(70486),i=r(22155),o=r(70316),a=r(8929);r(47773);var s=r(75252);let l=i.createContext(null);var c=r(78944),u=r(94030),f=[];function d(e,t){var r=i.useState(function(){return(0,a.A)()?document.createElement("div"):null}),o=(0,n.A)(r,1)[0],s=i.useRef(!1),d=i.useContext(l),h=i.useState(f),p=(0,n.A)(h,2),m=p[0],g=p[1],b=d||(s.current?void 0:function(e){g(function(t){return[e].concat((0,c.A)(t))})});function v(){o.parentElement||document.body.appendChild(o),s.current=!0}function y(){var e;null==(e=o.parentElement)||e.removeChild(o),s.current=!1}return(0,u.A)(function(){return e?d?d(v):v():y(),y},[e]),(0,u.A)(function(){m.length&&(m.forEach(function(e){return e()}),g(f))},[m]),[o,b]}var h=r(1056);function p(e){var t,r,n="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");i.id=n;var o=i.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){var a=getComputedStyle(e);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";(0,h.BD)("\n#".concat(n,"::-webkit-scrollbar {\n").concat(u,"\n").concat(f,"\n}"),n)}catch(e){console.error(e),t=l,r=c}}document.body.appendChild(i);var d=e&&t&&!isNaN(t)?t:i.offsetWidth-i.clientWidth,p=e&&r&&!isNaN(r)?r:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),(0,h.m6)(n),{width:d,height:p}}function m(e){return!("u"<typeof document)&&e&&e instanceof Element?p(e):{width:0,height:0}}function g(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var b="rc-util-locker-".concat(Date.now()),v=0;function y(e){var t=!!e,r=i.useState(function(){return v+=1,"".concat(b,"_").concat(v)}),o=(0,n.A)(r,1)[0];(0,u.A)(function(){if(t){var e=m(document.body).width,r=g();(0,h.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,h.m6)(o);return function(){(0,h.m6)(o)}},[t,o])}var w=!1;function x(e){return"boolean"==typeof e&&(w=e),w}var A=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};let E=i.forwardRef(function(e,t){var r=e.open,c=e.autoLock,u=e.getContainer,f=e.debug,h=e.autoDestroy,p=void 0===h||h,m=e.children,g=i.useState(r),b=(0,n.A)(g,2),v=b[0],w=b[1],E=v||r;i.useEffect(function(){(p||r)&&w(r)},[r,p]);var _=i.useState(function(){return A(u)}),S=(0,n.A)(_,2),$=S[0],k=S[1];i.useEffect(function(){var e=A(u);k(null!=e?e:null)});var C=d(E&&!$,f),O=(0,n.A)(C,2),M=O[0],I=O[1],R=null!=$?$:M;y(c&&r&&(0,a.A)()&&(R===M||R===document.body));var j=null;m&&(0,s.f3)(m)&&t&&(j=m.ref);var T=(0,s.xK)(j,t);if(!E||!(0,a.A)()||void 0===$)return null;var N=!1===R||x(),P=m;return t&&(P=i.cloneElement(m,{ref:T})),i.createElement(l.Provider,{value:I},N?P:(0,o.createPortal)(P,R))})},78387(e,t,r){"use strict";r.d(t,{A:()=>K});var n=r(39317),i=r(70486),o=r(56284),a=r(76395),s=r(30395),l=r.n(s),c=r(44965),u=r(73003),f=r(95612),d=r(44649),h=r(65556),p=r(94030),m=r(22075),g=r(22155),b=r(76878),v=r(8890),y=r(75252);function w(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{},a=o.className,s=o.content,c=i.x,u=void 0===c?0:c,f=i.y,d=void 0===f?0:f,h=g.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(!1!==r.autoArrow){var m=r.points[0],b=r.points[1],v=m[0],y=m[1],w=b[0],x=b[1];v!==w&&["t","b"].includes(v)?"t"===v?p.top=0:p.bottom=0:p.top=d,y!==x&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=u}return g.createElement("div",{ref:h,className:l()("".concat(t,"-arrow"),a),style:p},s)}function x(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?g.createElement(v.Ay,(0,b.A)({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(e){var r=e.className;return g.createElement("div",{style:{zIndex:n},className:l()("".concat(t,"-mask"),r)})}):null}let A=g.memo(function(e){return e.children},function(e,t){return t.cache}),E=g.forwardRef(function(e,t){var r=e.popup,o=e.className,a=e.prefixCls,s=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,h=e.keepDom,m=e.fresh,E=e.onClick,_=e.mask,S=e.arrow,$=e.arrowPos,k=e.align,C=e.motion,O=e.maskMotion,M=e.forceRender,I=e.getPopupContainer,R=e.autoDestroy,j=e.portal,T=e.zIndex,N=e.onMouseEnter,P=e.onMouseLeave,B=e.onPointerEnter,z=e.onPointerDownCapture,L=e.ready,D=e.offsetX,F=e.offsetY,H=e.offsetR,U=e.offsetB,q=e.onAlign,W=e.onPrepare,V=e.stretch,K=e.targetWidth,G=e.targetHeight,X="function"==typeof r?r():r,Z=d||h,Y=(null==I?void 0:I.length)>0,J=g.useState(!I||!Y),Q=(0,i.A)(J,2),ee=Q[0],et=Q[1];if((0,p.A)(function(){!ee&&Y&&u&&et(!0)},[ee,Y,u]),!ee)return null;var er="auto",en={left:"-1000vw",top:"-1000vh",right:er,bottom:er};if(L||!d){var ei,eo=k.points,ea=k.dynamicInset||(null==(ei=k._experimental)?void 0:ei.dynamicInset),es=ea&&"r"===eo[0][1],el=ea&&"b"===eo[0][0];es?(en.right=H,en.left=er):(en.left=D,en.right=er),el?(en.bottom=U,en.top=er):(en.top=F,en.bottom=er)}var ec={};return V&&(V.includes("height")&&G?ec.height=G:V.includes("minHeight")&&G&&(ec.minHeight=G),V.includes("width")&&K?ec.width=K:V.includes("minWidth")&&K&&(ec.minWidth=K)),d||(ec.pointerEvents="none"),g.createElement(j,{open:M||Z,getContainer:I&&function(){return I(u)},autoDestroy:R},g.createElement(x,{prefixCls:a,open:d,zIndex:T,mask:_,motion:O}),g.createElement(c.A,{onResize:q,disabled:!d},function(e){return g.createElement(v.Ay,(0,b.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:M,leavedClassName:"".concat(a,"-hidden")},C,{onAppearPrepare:W,onEnterPrepare:W,visible:d,onVisibleChanged:function(e){var t;null==C||null==(t=C.onVisibleChanged)||t.call(C,e),f(e)}}),function(r,i){var c=r.className,u=r.style,f=l()(a,c,o);return g.createElement("div",{ref:(0,y.K4)(e,t,i),className:f,style:(0,n.A)((0,n.A)((0,n.A)((0,n.A)({"--arrow-x":"".concat($.x||0,"px"),"--arrow-y":"".concat($.y||0,"px")},en),ec),u),{},{boxSizing:"border-box",zIndex:T},s),onMouseEnter:N,onMouseLeave:P,onPointerEnter:B,onClick:E,onPointerDownCapture:z},S&&g.createElement(w,{prefixCls:a,arrow:S,arrowPos:$,align:k}),g.createElement(A,{cache:!d&&!m},X))})}))}),_=g.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=(0,y.f3)(r),o=g.useCallback(function(e){(0,y.Xf)(t,n?n(e):e)},[n]),a=(0,y.xK)(o,(0,y.A9)(r));return i?g.cloneElement(r,{ref:a}):r}),S=g.createContext(null);function $(e){return e?Array.isArray(e)?e:[e]:[]}function k(e,t,r,n){return g.useMemo(function(){var i=$(null!=r?r:t),o=$(null!=n?n:t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}var C=r(65460);function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function M(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(O(null==(s=e[l])?void 0:s.points,i,n))return"".concat(t,"-placement-").concat(l)}return""}function I(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function R(e){return e.ownerDocument.defaultView}function j(e){for(var t=[],r=null==e?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=R(r).getComputedStyle(r);[i.overflowX,i.overflowY,i.overflow].some(function(e){return n.includes(e)})&&t.push(r),r=r.parentElement}return t}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function N(e){return T(parseFloat(e),0)}function P(e,t){var r=(0,n.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=R(e).getComputedStyle(e),n=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,h=e.clientWidth,p=N(o),m=N(a),g=N(s),b=N(l),v=T(Math.round(c.width/d*1e3)/1e3),y=T(Math.round(c.height/u*1e3)/1e3),w=(d-h-g-b)*v,x=(u-f-p-m)*y,A=p*y,E=m*y,_=g*v,S=b*v,$=0,k=0;if("clip"===n){var C=N(i);$=C*v,k=C*y}var O=c.x+_-$,M=c.y+A-k,I=O+c.width+2*$-_-S-w,j=M+c.height+2*k-A-E-x;r.left=Math.max(r.left,O),r.top=Math.max(r.top,M),r.right=Math.min(r.right,I),r.bottom=Math.min(r.bottom,j)}}),r}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function z(e,t){var r=t||[],n=(0,i.A)(r,2),o=n[0],a=n[1];return[B(e.width,o),B(e.height,a)]}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function D(e,t){var r,n,i=t[0],o=t[1];return n="t"===i?e.y:"b"===i?e.y+e.height:e.y+e.height/2,{x:r="l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function F(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,n){return n===t?r[e]||"c":e}).join("")}function H(e,t,r,o,a,s,l){var c=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),f=(0,i.A)(c,2),h=f[0],m=f[1],b=g.useRef(0),v=g.useMemo(function(){return t?j(t):[]},[t]),y=g.useRef({}),w=function(){y.current={}};e||w();var x=(0,d.A)(function(){if(t&&r&&e){var c,f,d,h,p=t,g=p.ownerDocument,b=R(p),w=b.getComputedStyle(p).position,x=p.style.left,A=p.style.top,E=p.style.right,_=p.style.bottom,S=p.style.overflow,$=(0,n.A)((0,n.A)({},a[o]),s),k=g.createElement("div");if(null==(O=p.parentElement)||O.appendChild(k),k.style.left="".concat(p.offsetLeft,"px"),k.style.top="".concat(p.offsetTop,"px"),k.style.position=w,k.style.height="".concat(p.offsetHeight,"px"),k.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",Array.isArray(r))N={x:r[0],y:r[1],width:0,height:0};else{var O,M,I,j,N,B,H,U=r.getBoundingClientRect();U.x=null!=(B=U.x)?B:U.left,U.y=null!=(H=U.y)?H:U.top,N={x:U.x,y:U.y,width:U.width,height:U.height}}var q=p.getBoundingClientRect(),W=b.getComputedStyle(p),V=W.height,K=W.width;q.x=null!=(M=q.x)?M:q.left,q.y=null!=(I=q.y)?I:q.top;var G=g.documentElement,X=G.clientWidth,Z=G.clientHeight,Y=G.scrollWidth,J=G.scrollHeight,Q=G.scrollTop,ee=G.scrollLeft,et=q.height,er=q.width,en=N.height,ei=N.width,eo={left:0,top:0,right:X,bottom:Z},ea={left:-ee,top:-Q,right:Y-ee,bottom:J-Q},es=$.htmlRegion,el="visible",ec="visibleFirst";"scroll"!==es&&es!==ec&&(es=el);var eu=es===ec,ef=P(ea,v),ed=P(eo,v),eh=es===el?ed:ef,ep=eu?ed:eh;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var em=p.getBoundingClientRect();p.style.left=x,p.style.top=A,p.style.right=E,p.style.bottom=_,p.style.overflow=S,null==(j=p.parentElement)||j.removeChild(k);var eg=T(Math.round(er/parseFloat(K)*1e3)/1e3),eb=T(Math.round(et/parseFloat(V)*1e3)/1e3);if(!(0===eg||0===eb||(0,u.fk)(r)&&!(0,C.A)(r))){var ev=$.offset,ey=$.targetOffset,ew=z(q,ev),ex=(0,i.A)(ew,2),eA=ex[0],eE=ex[1],e_=z(N,ey),eS=(0,i.A)(e_,2),e$=eS[0],ek=eS[1];N.x-=e$,N.y-=ek;var eC=$.points||[],eO=(0,i.A)(eC,2),eM=eO[0],eI=eO[1],eR=L(eI),ej=L(eM),eT=D(N,eR),eN=D(q,ej),eP=(0,n.A)({},$),eB=eT.x-eN.x+eA,ez=eT.y-eN.y+eE,eL=t_(eB,ez),eD=t_(eB,ez,ed),eF=D(N,["t","l"]),eH=D(q,["t","l"]),eU=D(N,["b","r"]),eq=D(q,["b","r"]),eW=$.overflow||{},eV=eW.adjustX,eK=eW.adjustY,eG=eW.shiftX,eX=eW.shiftY,eZ=function(e){return"boolean"==typeof e?e:e>=0};tS();var eY=eZ(eK),eJ=ej[0]===eR[0];if(eY&&"t"===ej[0]&&(f>ep.bottom||y.current.bt)){var eQ=ez;eJ?eQ-=et-en:eQ=eF.y-eq.y-eE;var e0=t_(eB,eQ),e1=t_(eB,eQ,ed);e0>eL||e0===eL&&(!eu||e1>=eD)?(y.current.bt=!0,ez=eQ,eE=-eE,eP.points=[F(ej,0),F(eR,0)]):y.current.bt=!1}if(eY&&"b"===ej[0]&&(c<ep.top||y.current.tb)){var e2=ez;eJ?e2+=et-en:e2=eU.y-eH.y-eE;var e6=t_(eB,e2),e3=t_(eB,e2,ed);e6>eL||e6===eL&&(!eu||e3>=eD)?(y.current.tb=!0,ez=e2,eE=-eE,eP.points=[F(ej,0),F(eR,0)]):y.current.tb=!1}var e5=eZ(eV),e4=ej[1]===eR[1];if(e5&&"l"===ej[1]&&(h>ep.right||y.current.rl)){var e8=eB;e4?e8-=er-ei:e8=eF.x-eq.x-eA;var e9=t_(e8,ez),e7=t_(e8,ez,ed);e9>eL||e9===eL&&(!eu||e7>=eD)?(y.current.rl=!0,eB=e8,eA=-eA,eP.points=[F(ej,1),F(eR,1)]):y.current.rl=!1}if(e5&&"r"===ej[1]&&(d<ep.left||y.current.lr)){var te=eB;e4?te+=er-ei:te=eU.x-eH.x-eA;var tt=t_(te,ez),tr=t_(te,ez,ed);tt>eL||tt===eL&&(!eu||tr>=eD)?(y.current.lr=!0,eB=te,eA=-eA,eP.points=[F(ej,1),F(eR,1)]):y.current.lr=!1}tS();var tn=!0===eG?0:eG;"number"==typeof tn&&(d<ed.left&&(eB-=d-ed.left-eA,N.x+ei<ed.left+tn&&(eB+=N.x-ed.left+ei-tn)),h>ed.right&&(eB-=h-ed.right-eA,N.x>ed.right-tn&&(eB+=N.x-ed.right+tn)));var ti=!0===eX?0:eX;"number"==typeof ti&&(c<ed.top&&(ez-=c-ed.top-eE,N.y+en<ed.top+ti&&(ez+=N.y-ed.top+en-ti)),f>ed.bottom&&(ez-=f-ed.bottom-eE,N.y>ed.bottom-ti&&(ez+=N.y-ed.bottom+ti)));var to=q.x+eB,ta=to+er,ts=q.y+ez,tl=ts+et,tc=N.x,tu=tc+ei,tf=N.y,td=tf+en,th=Math.max(to,tc),tp=Math.min(ta,tu),tm=(th+tp)/2,tg=tm-to,tb=Math.max(ts,tf),tv=Math.min(tl,td),ty=(tb+tv)/2,tw=ty-ts;null==l||l(t,eP);var tx=em.right-q.x-(eB+q.width),tA=em.bottom-q.y-(ez+q.height);1===eg&&(eB=Math.floor(eB),tx=Math.floor(tx)),1===eb&&(ez=Math.floor(ez),tA=Math.floor(tA));var tE={ready:!0,offsetX:eB/eg,offsetY:ez/eb,offsetR:tx/eg,offsetB:tA/eb,arrowX:tg/eg,arrowY:tw/eb,scaleX:eg,scaleY:eb,align:eP};m(tE)}function t_(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eh,n=q.x+e,i=q.y+t,o=n+er,a=i+et,s=Math.max(n,r.left),l=Math.max(i,r.top);return Math.max(0,(Math.min(o,r.right)-s)*(Math.min(a,r.bottom)-l))}function tS(){f=(c=q.y+ez)+et,h=(d=q.x+eB)+er}}}),A=function(){b.current+=1;var e=b.current;Promise.resolve().then(function(){b.current===e&&x()})},E=function(){m(function(e){return(0,n.A)((0,n.A)({},e),{},{ready:!1})})};return(0,p.A)(E,[o]),(0,p.A)(function(){e||E()},[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,A]}var U=r(78944);function q(e,t,r,n,i){(0,p.A)(function(){if(e&&t&&r){var o=r,a=j(t),s=j(o),l=R(o),c=new Set([l].concat((0,U.A)(a),(0,U.A)(s)));function u(){n(),i()}return c.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),l.addEventListener("resize",u,{passive:!0}),n(),function(){c.forEach(function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)})}}},[e,t,r])}function W(e,t,r,n,i,o,a,s){var l=g.useRef(e);l.current=e;var c=g.useRef(!1);return g.useEffect(function(){if(t&&n&&(!i||o)){var e=function(){c.current=!1},u=function(e){var t;!l.current||a((null==(t=e.composedPath)||null==(t=t.call(e))?void 0:t[0])||e.target)||c.current||s(!1)},d=R(n);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var h=(0,f.j)(r);return h&&(h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),h&&(h.removeEventListener("mousedown",u,!0),h.removeEventListener("contextmenu",u,!0))}}},[t,r,n,i,o]),function(){c.current=!0}}r(47773);var V=["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"];let K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A;return g.forwardRef(function(t,r){var a,s,b=t.prefixCls,v=void 0===b?"rc-trigger-popup":b,y=t.children,w=t.action,x=void 0===w?"hover":w,A=t.showAction,$=t.hideAction,C=t.popupVisible,O=t.defaultPopupVisible,R=t.onPopupVisibleChange,j=t.afterPopupVisibleChange,T=t.mouseEnterDelay,N=t.mouseLeaveDelay,P=void 0===N?.1:N,B=t.focusDelay,z=t.blurDelay,L=t.mask,D=t.maskClosable,F=void 0===D||D,U=t.getPopupContainer,K=t.forceRender,G=t.autoDestroy,X=t.destroyPopupOnHide,Z=t.popup,Y=t.popupClassName,J=t.popupStyle,Q=t.popupPlacement,ee=t.builtinPlacements,et=void 0===ee?{}:ee,er=t.popupAlign,en=t.zIndex,ei=t.stretch,eo=t.getPopupClassNameFromAlign,ea=t.fresh,es=t.alignPoint,el=t.onPopupClick,ec=t.onPopupAlign,eu=t.arrow,ef=t.popupMotion,ed=t.maskMotion,eh=t.popupTransitionName,ep=t.popupAnimation,em=t.maskTransitionName,eg=t.maskAnimation,eb=t.className,ev=t.getTriggerDOMNode,ey=(0,o.A)(t,V),ew=G||X||!1,ex=g.useState(!1),eA=(0,i.A)(ex,2),eE=eA[0],e_=eA[1];(0,p.A)(function(){e_((0,m.A)())},[]);var eS=g.useRef({}),e$=g.useContext(S),ek=g.useMemo(function(){return{registerSubPopup:function(e,t){eS.current[e]=t,null==e$||e$.registerSubPopup(e,t)}}},[e$]),eC=(0,h.A)(),eO=g.useState(null),eM=(0,i.A)(eO,2),eI=eM[0],eR=eM[1],ej=g.useRef(null),eT=(0,d.A)(function(e){ej.current=e,(0,u.fk)(e)&&eI!==e&&eR(e),null==e$||e$.registerSubPopup(eC,e)}),eN=g.useState(null),eP=(0,i.A)(eN,2),eB=eP[0],ez=eP[1],eL=g.useRef(null),eD=(0,d.A)(function(e){(0,u.fk)(e)&&eB!==e&&(ez(e),eL.current=e)}),eF=g.Children.only(y),eH=(null==eF?void 0:eF.props)||{},eU={},eq=(0,d.A)(function(e){var t,r,n=eB;return(null==n?void 0:n.contains(e))||(null==(t=(0,f.j)(n))?void 0:t.host)===e||e===n||(null==eI?void 0:eI.contains(e))||(null==(r=(0,f.j)(eI))?void 0:r.host)===e||e===eI||Object.values(eS.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),eW=I(v,ef,ep,eh),eV=I(v,ed,eg,em),eK=g.useState(O||!1),eG=(0,i.A)(eK,2),eX=eG[0],eZ=eG[1],eY=null!=C?C:eX,eJ=(0,d.A)(function(e){void 0===C&&eZ(e)});(0,p.A)(function(){eZ(C||!1)},[C]);var eQ=g.useRef(eY);eQ.current=eY;var e0=g.useRef([]);e0.current=[];var e1=(0,d.A)(function(e){var t;eJ(e),(null!=(t=e0.current[e0.current.length-1])?t:eY)!==e&&(e0.current.push(e),null==R||R(e))}),e2=g.useRef(),e6=function(){clearTimeout(e2.current)},e3=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e6(),0===t?e1(e):e2.current=setTimeout(function(){e1(e)},1e3*t)};g.useEffect(function(){return e6},[]);var e5=g.useState(!1),e4=(0,i.A)(e5,2),e8=e4[0],e9=e4[1];(0,p.A)(function(e){(!e||eY)&&e9(!0)},[eY]);var e7=g.useState(null),te=(0,i.A)(e7,2),tt=te[0],tr=te[1],tn=g.useState(null),ti=(0,i.A)(tn,2),to=ti[0],ta=ti[1],ts=function(e){ta([e.clientX,e.clientY])},tl=H(eY,eI,es&&null!==to?to:eB,Q,et,er,ec),tc=(0,i.A)(tl,11),tu=tc[0],tf=tc[1],td=tc[2],th=tc[3],tp=tc[4],tm=tc[5],tg=tc[6],tb=tc[7],tv=tc[8],ty=tc[9],tw=tc[10],tx=k(eE,x,A,$),tA=(0,i.A)(tx,2),tE=tA[0],t_=tA[1],tS=tE.has("click"),t$=t_.has("click")||t_.has("contextMenu"),tk=(0,d.A)(function(){e8||tw()});q(eY,eB,eI,tk,function(){eQ.current&&es&&t$&&e3(!1)}),(0,p.A)(function(){tk()},[to,Q]),(0,p.A)(function(){eY&&!(null!=et&&et[Q])&&tk()},[JSON.stringify(er)]);var tC=g.useMemo(function(){var e=M(et,v,ty,es);return l()(e,null==eo?void 0:eo(ty))},[ty,eo,et,v,es]);g.useImperativeHandle(r,function(){return{nativeElement:eL.current,popupElement:ej.current,forceAlign:tk}});var tO=g.useState(0),tM=(0,i.A)(tO,2),tI=tM[0],tR=tM[1],tj=g.useState(0),tT=(0,i.A)(tj,2),tN=tT[0],tP=tT[1],tB=function(){if(ei&&eB){var e=eB.getBoundingClientRect();tR(e.width),tP(e.height)}},tz=function(){tB(),tk()},tL=function(e){e9(!1),tw(),null==j||j(e)},tD=function(){return new Promise(function(e){tB(),tr(function(){return e})})};function tF(e,t,r,n){eU[e]=function(i){var o;null==n||n(i),e3(t,r);for(var a=arguments.length,s=Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null==(o=eH[e])||o.call.apply(o,[eH,i].concat(s))}}(0,p.A)(function(){tt&&(tw(),tt(),tr(null))},[tt]),(tS||t$)&&(eU.onClick=function(e){var t;eQ.current&&t$?e3(!1):!eQ.current&&tS&&(ts(e),e3(!0));for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eH.onClick)||t.call.apply(t,[eH,e].concat(n))});var tH=W(eY,t$,eB,eI,L,F,eq,e3),tU=tE.has("hover"),tq=t_.has("hover");tU&&(tF("onMouseEnter",!0,T,function(e){ts(e)}),tF("onPointerEnter",!0,T,function(e){ts(e)}),a=function(e){(eY||e8)&&null!=eI&&eI.contains(e.target)&&e3(!0,T)},es&&(eU.onMouseMove=function(e){var t;null==(t=eH.onMouseMove)||t.call(eH,e)})),tq&&(tF("onMouseLeave",!1,P),tF("onPointerLeave",!1,P),s=function(){e3(!1,P)}),tE.has("focus")&&tF("onFocus",!0,B),t_.has("focus")&&tF("onBlur",!1,z),tE.has("contextMenu")&&(eU.onContextMenu=function(e){var t;eQ.current&&t_.has("contextMenu")?e3(!1):(ts(e),e3(!0)),e.preventDefault();for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];null==(t=eH.onContextMenu)||t.call.apply(t,[eH,e].concat(n))}),eb&&(eU.className=l()(eH.className,eb));var tW=g.useRef(!1);tW.current||(tW.current=K||eY||e8);var tV=(0,n.A)((0,n.A)({},eH),eU),tK={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){ey[e]&&(tK[e]=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];null==(t=tV[e])||t.call.apply(t,[tV].concat(n)),ey[e].apply(ey,n)})});var tG=g.cloneElement(eF,(0,n.A)((0,n.A)({},tV),tK)),tX={x:tm,y:tg},tZ=eu?(0,n.A)({},!0!==eu?eu:{}):null;return g.createElement(g.Fragment,null,g.createElement(c.A,{disabled:!eY,ref:eD,onResize:tz},g.createElement(_,{getTriggerDOMNode:ev},tG)),tW.current&&g.createElement(S.Provider,{value:ek},g.createElement(E,{portal:e,ref:eT,prefixCls:v,popup:Z,className:l()(Y,tC),style:J,target:eB,onMouseEnter:a,onMouseLeave:s,onPointerEnter:a,zIndex:en,open:eY,keepDom:e8,fresh:ea,onClick:el,onPointerDownCapture:tH,mask:L,motion:eW,maskMotion:eV,onVisibleChanged:tL,onPrepare:tD,forceRender:K,autoDestroy:ew,getPopupContainer:U,align:ty,arrow:tZ,arrowPos:tX,ready:tu,offsetX:tf,offsetY:td,offsetR:th,offsetB:tp,onAlign:tk,stretch:ei,targetWidth:tI/tb,targetHeight:tN/tv})))})}(a.A)},643(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(22155),i=r(42767),o=r(47495);let a=e=>{let{space:t,form:r,children:a}=e;if(null==a)return null;let s=a;return r&&(s=n.createElement(i.XB,{override:!0,status:!0},s)),t&&(s=n.createElement(o.K6,null,s)),s}},37007(e,t,r){"use strict";r.d(t,{A:()=>l,U:()=>s});var n=r(22155),i=r(3604),o=r(64324),a=r(65289);function s(e){return t=>n.createElement(o.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,Object.assign({},t)))}let l=(e,t,r,o,l)=>s(s=>{let{prefixCls:c,style:u}=s,f=n.useRef(null),[d,h]=n.useState(0),[p,m]=n.useState(0),[g,b]=(0,i.A)(!1,{value:s.open}),{getPrefixCls:v}=n.useContext(a.QO),y=v(o||"select",c);n.useEffect(()=>{if(b(!0),"u">typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;h(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var r;let n=l?`.${l(y)}`:`.${y}-dropdown`,i=null==(r=f.current)?void 0:r.querySelector(n);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[y]);let w=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},u),{margin:0}),open:g,visible:g,getPopupContainer:()=>f.current});r&&(w=r(w)),t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});let x={paddingBottom:d,position:"relative",minWidth:p};return n.createElement("div",{ref:f,style:x},n.createElement(e,Object.assign({},w)))})},58501(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{void 0!==e[r]&&(t[r]=e[r])})}),t}},25281(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(22155),i=r(42254);let o=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:n.createElement(i.A,null)}),t}},47201(e,t,r){"use strict";r.d(t,{YK:()=>u,jH:()=>a});var n=r(22155),i=r(57873),o=r(80690);let a=1e3,s={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100,FloatButton:100},l={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function c(e){return e in s}let u=(e,t)=>{let r,[,a]=(0,i.Ay)(),u=n.useContext(o.A),f=c(e);if(void 0!==t)r=[t,t];else{let n=null!=u?u:0;f?n+=(u?0:a.zIndexPopupBase)+s[e]:n+=l[e],r=[void 0===u?t:n,n]}return r}},20007(e,t,r){"use strict";r.d(t,{e:()=>n,p:()=>i});let n=(e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)},i=(e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)}},18697(e,t,r){"use strict";r.d(t,{A:()=>c,b:()=>l});var n=r(65289);let i=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),s=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,r)=>void 0!==r?r:`${e}-${t}`,c=(e=n.yH)=>({motionName:`${e}-motion-collapse`,onAppearStart:i,onEnterStart:i,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:i,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500})},55831(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(771);function i(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};let i=n&&"object"==typeof n?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+r,o.shiftX=!0,o.adjustX=!0}let a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}let o={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"]}},a={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"]}},s=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:l,offset:c,borderRadius:u,visibleFirst:f}=e,d=t/2,h={},p=(0,n.Ke)({contentRadius:u,limitVerticalRadius:!0});return Object.keys(o).forEach(e=>{let n=Object.assign(Object.assign({},l&&a[e]||o[e]),{offset:[0,0],dynamicInset:!0});switch(h[e]=n,s.has(e)&&(n.autoArrow=!1),e){case"top":case"topLeft":case"topRight":n.offset[1]=-d-c;break;case"bottom":case"bottomLeft":case"bottomRight":n.offset[1]=d+c;break;case"left":case"leftTop":case"leftBottom":n.offset[0]=-d-c;break;case"right":case"rightTop":case"rightBottom":n.offset[0]=d+c}if(l)switch(e){case"topLeft":case"bottomLeft":n.offset[0]=-p.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":n.offset[0]=p.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":n.offset[1]=-(2*p.arrowOffsetHorizontal)+d;break;case"leftBottom":case"rightBottom":n.offset[1]=2*p.arrowOffsetHorizontal-d}n.overflow=i(e,p,t,r),f&&(n.htmlRegion="visibleFirst")}),h}},21968(e,t,r){"use strict";r.d(t,{Ob:()=>a,fx:()=>o,zv:()=>i});var n=r(22155);function i(e){return e&&n.isValidElement(e)&&e.type===n.Fragment}let o=(e,t,r)=>n.isValidElement(e)?n.cloneElement(e,"function"==typeof r?r(e.props||{}):r):t;function a(e,t){return o(e,e,t)}},9355(e,t,r){"use strict";r.d(t,{Ay:()=>c,ye:()=>a});var n=r(22155),i=r(57873),o=r(20007);let a=["xxl","xl","lg","md","sm","xs"],s=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),l=e=>{let t=e,r=[].concat(a).reverse();return r.forEach((e,n)=>{let i=e.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(t[o]<=t[a]))throw Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(n<r.length-1){let e=`screen${i}Max`;if(!(t[a]<=t[e]))throw Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);let o=r[n+1].toUpperCase(),s=`screen${o}Min`;if(!(t[e]<=t[s]))throw Error(`${e}<=${s} fails : !(${t[e]}<=${t[s]})`)}}),e},c=()=>{let[,e]=(0,i.Ay)(),t=s(l(e));return n.useMemo(()=>{let e=new Map,r=-1,n={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>e(n)),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let r=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},n),{[e]:t}))},i=window.matchMedia(t);(0,o.e)(i,r),this.matchHandlers[t]={mql:i,listener:r},r(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];(0,o.p)(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[t])}},46320(e,t,r){"use strict";r.d(t,{L:()=>o,v:()=>a});var n=r(30395),i=r.n(n);function o(e,t,r){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let a=(e,t)=>t||e},53575(e,t,r){"use strict";r.d(t,{_n:()=>o,rJ:()=>a});var n=r(22155);function i(){}r(47773);let o=n.createContext({}),a=()=>{let e=()=>{};return e.deprecated=i,e}},30565(e,t,r){"use strict";r.d(t,{A:()=>S});var n=r(22155),i=r(30395),o=r.n(i),a=r(65460),s=r(75252),l=r(65289),c=r(21968),u=r(72056);let f=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut},opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}}}},d=(0,u.Or)("Wave",f);var h=r(44649),p=r(23504),m=r(57873),g=r(61966),b=r(8890),v=r(33960);function y(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function w(e){var t;let{borderTopColor:r,borderColor:n,backgroundColor:i}=getComputedStyle(e);return null!=(t=[r,n,i].find(y))?t:null}function x(e){return Number.isNaN(e)?0:e}let A=e=>{let{className:t,target:r,component:i,registerUnmount:a}=e,l=n.useRef(null),c=n.useRef(null);n.useEffect(()=>{c.current=a()},[]);let[u,f]=n.useState(null),[d,h]=n.useState([]),[m,v]=n.useState(0),[y,A]=n.useState(0),[E,_]=n.useState(0),[S,$]=n.useState(0),[k,C]=n.useState(!1),O={left:m,top:y,width:E,height:S,borderRadius:d.map(e=>`${e}px`).join(" ")};function M(){let e=getComputedStyle(r);f(w(r));let t="static"===e.position,{borderLeftWidth:n,borderTopWidth:i}=e;v(t?r.offsetLeft:x(-Number.parseFloat(n))),A(t?r.offsetTop:x(-Number.parseFloat(i))),_(r.offsetWidth),$(r.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;h([o,a,l,s].map(e=>x(Number.parseFloat(e))))}if(u&&(O["--wave-color"]=u),n.useEffect(()=>{if(r){let e,t=(0,p.A)(()=>{M(),C(!0)});return"u">typeof ResizeObserver&&(e=new ResizeObserver(M)).observe(r),()=>{p.A.cancel(t),null==e||e.disconnect()}}},[r]),!k)return null;let I=("Checkbox"===i||"Radio"===i)&&(null==r?void 0:r.classList.contains(g.D));return n.createElement(b.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var r,n;if(t.deadline||"opacity"===t.propertyName){let e=null==(r=l.current)?void 0:r.parentElement;null==(n=c.current)||n.call(c).then(()=>{null==e||e.remove()})}return!1}},({className:e},r)=>n.createElement("div",{ref:(0,s.K4)(l,r),className:o()(t,e,{"wave-quick":I}),style:O}))},E=(e,t)=>{var r;let{component:i}=t;if("Checkbox"===i&&!(null==(r=e.querySelector("input"))?void 0:r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild);let a=(0,v.L)(),s=null;function l(){return s}s=a(n.createElement(A,Object.assign({},t,{target:e,registerUnmount:l})),o)},_=(e,t,r)=>{let{wave:i}=n.useContext(l.QO),[,o,a]=(0,m.Ay)(),s=(0,h.A)(n=>{let s=e.current;if((null==i?void 0:i.disabled)||!s)return;let l=s.querySelector(`.${g.D}`)||s,{showEffect:c}=i||{};(c||E)(l,{className:t,token:o,component:r,event:n,hashId:a})}),c=n.useRef(null);return e=>{p.A.cancel(c.current),c.current=(0,p.A)(()=>{s(e)})}},S=e=>{let{children:t,disabled:r,component:i}=e,{getPrefixCls:u}=(0,n.useContext)(l.QO),f=(0,n.useRef)(null),h=u("wave"),[,p]=d(h),m=_(f,o()(h,p),i);if(n.useEffect(()=>{let e=f.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||r)return;let t=t=>{!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||m(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!n.isValidElement(t))return null!=t?t:null;let g=(0,s.f3)(t)?(0,s.K4)((0,s.A9)(t),f):f;return(0,c.Ob)(t,{ref:g})}},61966(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(65289);let i=`${n.yH}-wave-target`},80690(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(22155).createContext(void 0)},32306(e,t,r){"use strict";r.d(t,{A:()=>L});var n=r(22155),i=r(35261),o=r(42254),a=r(32416),s=r(42964),l=r(91664),c=r(30395),u=r.n(c),f=r(8890),d=r(21634),h=r(75252),p=r(21968),m=r(65289),g=r(59296),b=r(96619),v=r(72056);let y=(e,t,r,n,i)=>({background:e,border:`${(0,g.zA)(n.lineWidth)} ${n.lineType} ${t}`,[`${i}-icon`]:{color:r}}),w=e=>{let{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:d,withDescriptionPadding:h,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},(0,b.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${c}, opacity ${r} ${c},
3
+ padding-top ${r} ${c}, padding-bottom ${r} ${c},
4
+ margin-bottom ${r} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:n,color:d,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},x=e=>{let{componentCls:t,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:d,colorInfoBg:h}=e;return{[t]:{"&-success":y(i,n,r,e,t),"&-info":y(h,d,f,e,t),"&-warning":y(s,a,o,e,t),"&-error":Object.assign(Object.assign({},y(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},A=e=>{let{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:(0,g.zA)(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:a,transition:`color ${n}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${n}`,"&:hover":{color:s}}}}},E=e=>{let t=12;return{withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px ${t}px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}},_=(0,v.OF)("Alert",e=>[w(e),x(e),A(e)],E);var S=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let $={success:i.A,info:l.A,error:o.A,warning:s.A},k=e=>{let{icon:t,prefixCls:r,type:i}=e,o=$[i]||null;return t?(0,p.fx)(t,n.createElement("span",{className:`${r}-icon`},t),()=>({className:u()(`${r}-icon`,t.props.className)})):n.createElement(o,{className:`${r}-icon`})},C=e=>{let{isClosable:t,prefixCls:r,closeIcon:i,handleClose:o,ariaProps:s}=e,l=!0===i||void 0===i?n.createElement(a.A,null):i;return t?n.createElement("button",Object.assign({type:"button",onClick:o,className:`${r}-close-icon`,tabIndex:0},s),l):null},O=n.forwardRef((e,t)=>{let{description:r,prefixCls:i,message:o,banner:a,className:s,rootClassName:l,style:c,onMouseEnter:p,onMouseLeave:g,onClick:b,afterClose:v,showIcon:y,closable:w,closeText:x,closeIcon:A,action:E,id:$}=e,O=S(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[M,I]=n.useState(!1),R=n.useRef(null);n.useImperativeHandle(t,()=>({nativeElement:R.current}));let{getPrefixCls:j,direction:T,closable:N,closeIcon:P,className:B,style:z}=(0,m.TP)("alert"),L=j("alert",i),[D,F,H]=_(L),U=t=>{var r;I(!0),null==(r=e.onClose)||r.call(e,t)},q=n.useMemo(()=>void 0!==e.type?e.type:a?"warning":"info",[e.type,a]),W=n.useMemo(()=>"object"==typeof w&&!!w.closeIcon||!!x||("boolean"==typeof w?w:!1!==A&&null!=A||!!N),[x,A,w,N]),V=!!a&&void 0===y||y,K=u()(L,`${L}-${q}`,{[`${L}-with-description`]:!!r,[`${L}-no-icon`]:!V,[`${L}-banner`]:!!a,[`${L}-rtl`]:"rtl"===T},B,s,l,H,F),G=(0,d.A)(O,{aria:!0,data:!0}),X=n.useMemo(()=>"object"==typeof w&&w.closeIcon?w.closeIcon:x||(void 0!==A?A:"object"==typeof N&&N.closeIcon?N.closeIcon:P),[A,w,N,x,P]),Z=n.useMemo(()=>{let e=null!=w?w:N;if("object"==typeof e){let{closeIcon:t}=e;return S(e,["closeIcon"])}return{}},[w,N]);return D(n.createElement(f.Ay,{visible:!M,motionName:`${L}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:v},({className:t,style:i},a)=>n.createElement("div",Object.assign({id:$,ref:(0,h.K4)(R,a),"data-show":!M,className:u()(K,t),style:Object.assign(Object.assign(Object.assign({},z),c),i),onMouseEnter:p,onMouseLeave:g,onClick:b,role:"alert"},G),V?n.createElement(k,{description:r,icon:e.icon,prefixCls:L,type:q}):null,n.createElement("div",{className:`${L}-content`},o?n.createElement("div",{className:`${L}-message`},o):null,r?n.createElement("div",{className:`${L}-description`},r):null),E?n.createElement("div",{className:`${L}-action`},E):null,n.createElement(C,{isClosable:W,prefixCls:L,closeIcon:X,handleClose:U,ariaProps:Z}))))});var M=r(11947),I=r(96591),R=r(67236),j=r(3906),T=r(76664);function N(e,t,r){return t=(0,R.A)(t),(0,T.A)(e,(0,j.A)()?Reflect.construct(t,r||[],(0,R.A)(e).constructor):t.apply(e,r))}var P=r(93619);let B=function(e){function t(){var e;return(0,M.A)(this,t),e=N(this,t,arguments),e.state={error:void 0,info:{componentStack:""}},e}return(0,P.A)(t,e),(0,I.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,id:r,children:i}=this.props,{error:o,info:a}=this.state,s=(null==a?void 0:a.componentStack)||null,l=void 0===e?(o||"").toString():e,c=void 0===t?s:t;return o?n.createElement(O,{id:r,type:"error",message:l,description:n.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):i}}])}(n.Component),z=O;z.ErrorBoundary=B;let L=z},99454(e,t,r){"use strict";r.d(t,{A:()=>o,B:()=>i});var n=r(22155);let i=n.createContext({}),o=n.createContext({message:{},notification:{},modal:{}})},24815(e,t,r){"use strict";r.d(t,{A:()=>q});var n=r(22155),i=r(30395),o=r.n(i),a=r(53575),s=r(65289),l=r(32416),c=r(38851),u=r(75932),f=r(35261),d=r(42254),h=r(42964),p=r(91664),m=r(60004);let g={info:n.createElement(p.A,null),success:n.createElement(f.A,null),error:n.createElement(d.A,null),warning:n.createElement(h.A,null),loading:n.createElement(m.A,null)},b=({prefixCls:e,type:t,icon:r,children:i})=>n.createElement("div",{className:o()(`${e}-custom-content`,`${e}-${t}`)},r||g[t],n.createElement("span",null,i));var v=r(59296),y=r(47201),w=r(96619),x=r(72056),A=r(63930);let E=e=>{let{componentCls:t,iconCls:r,boxShadow:n,colorText:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:h,borderRadiusLG:p,zIndexPopup:m,contentPadding:g,contentBg:b}=e,y=`${t}-notice`,x=new v.Mo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),A=new v.Mo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${r}`]:{marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:p,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:o},[`${t}-error > ${r}`]:{color:a},[`${t}-warning > ${r}`]:{color:s},[`${t}-info > ${r},
5
+ ${t}-loading > ${r}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},(0,w.dF)(e)),{color:i,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
6
+ ${t}-move-up-appear,
7
+ ${t}-move-up-enter
8
+ `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
9
+ ${t}-move-up-appear${t}-move-up-appear-active,
10
+ ${t}-move-up-enter${t}-move-up-enter-active
11
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:A,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]},_=e=>({zIndexPopup:e.zIndexPopupBase+y.jH+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),S=(0,x.OF)("Message",e=>E((0,A.oX)(e,{height:150})),_);function $(e,t){return{motionName:null!=t?t:`${e}-move-up`}}function k(e){let t,r=new Promise(r=>{t=e(()=>{r(!0)})}),n=()=>{null==t||t()};return n.then=(e,t)=>r.then(e,t),n.promise=r,n}var C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let O=8,M=3,I=({children:e,prefixCls:t})=>{let r=(0,u.A)(t),[i,a,s]=S(t,r);return i(n.createElement(c.ph,{classNames:{list:o()(a,s,r)}},e))},R=(e,{prefixCls:t,key:r})=>n.createElement(I,{prefixCls:t,key:r},e),j=n.forwardRef((e,t)=>{let{top:r,prefixCls:i,getContainer:a,maxCount:u,duration:f=M,rtl:d,transitionName:h,onAllRemoved:p}=e,{getPrefixCls:m,getPopupContainer:g,message:b,direction:v}=n.useContext(s.QO),y=i||m("message"),w=()=>({left:"50%",transform:"translateX(-50%)",top:null!=r?r:O}),x=()=>o()({[`${y}-rtl`]:null!=d?d:"rtl"===v}),A=()=>$(y,h),E=n.createElement("span",{className:`${y}-close-x`},n.createElement(l.A,{className:`${y}-close-icon`})),[_,S]=(0,c.hN)({prefixCls:y,style:w,className:x,motion:A,closable:!1,closeIcon:E,duration:f,getContainer:()=>(null==a?void 0:a())||(null==g?void 0:g())||document.body,maxCount:u,onAllRemoved:p,renderNotifications:R});return n.useImperativeHandle(t,()=>Object.assign(Object.assign({},_),{prefixCls:y,message:b})),S}),T=0;function N(e){let t=n.useRef(null);return(0,a.rJ)("Message"),[n.useMemo(()=>{let e=e=>{var r;null==(r=t.current)||r.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:s}=t.current,l=`${a}-notice`,{content:c,icon:u,type:f,key:d,className:h,style:p,onClose:m}=r,g=C(r,["content","icon","type","key","className","style","onClose"]),v=d;return null==v&&(T+=1,v=`antd-message-${T}`),k(t=>(i(Object.assign(Object.assign({},g),{key:v,content:n.createElement(b,{prefixCls:a,type:f,icon:u},c),placement:"top",className:o()(f&&`${l}-${f}`,h,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),p),onClose:()=>{null==m||m(),t()}})),()=>{e(v)}))},i={open:r,destroy:r=>{var n;void 0!==r?e(r):null==(n=t.current)||n.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{let t=(t,n,i)=>{let o,a,s;return o=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?s=n:(a=n,s=i),r(Object.assign(Object.assign({onClose:s,duration:a},o),{type:e}))};i[e]=t}),i},[]),n.createElement(j,Object.assign({key:"message-holder"},e,{ref:t}))]}function P(e){return N(e)}var B=r(3608),z=r(23602),L=r(99454);let D=e=>{let{componentCls:t,colorText:r,fontSize:n,lineHeight:i,fontFamily:o}=e;return{[t]:{color:r,fontSize:n,lineHeight:i,fontFamily:o,[`&${t}-rtl`]:{direction:"rtl"}}}},F=()=>({}),H=(0,x.OF)("App",D,F),U=e=>{let{prefixCls:t,children:r,className:i,rootClassName:l,message:c,notification:u,style:f,component:d="div"}=e,{direction:h,getPrefixCls:p}=(0,n.useContext)(s.QO),m=p("app",t),[g,b,v]=H(m),y=o()(b,m,i,l,v,{[`${m}-rtl`]:"rtl"===h}),w=(0,n.useContext)(L.B),x=n.useMemo(()=>({message:Object.assign(Object.assign({},w.message),c),notification:Object.assign(Object.assign({},w.notification),u)}),[c,u,w.message,w.notification]),[A,E]=P(x.message),[_,S]=(0,z.A)(x.notification),[$,k]=(0,B.A)(),C=n.useMemo(()=>({message:A,notification:_,modal:$}),[A,_,$]);(0,a.rJ)("App")(!(v&&!1===d),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let O=!1===d?n.Fragment:d,M={className:y,style:f};return g(n.createElement(L.A.Provider,{value:C},n.createElement(L.B.Provider,{value:x},n.createElement(O,Object.assign({},!1===d?void 0:M),k,E,S,r))))};U.useApp=()=>n.useContext(L.A);let q=U},26455(e,t,r){"use strict";r.d(t,{Ap:()=>l,DU:()=>c,u1:()=>f,uR:()=>h});var n=r(78944),i=r(22155),o=r(21968),a=r(97684);let s=/^[\u4E00-\u9FA5]{2}$/,l=s.test.bind(s);function c(e){return"danger"===e?{danger:!0}:{type:e}}function u(e){return"string"==typeof e}function f(e){return"text"===e||"link"===e}function d(e,t){if(null==e)return;let r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&u(e.type)&&l(e.props.children)?(0,o.Ob)(e,{children:e.props.children.split("").join(r)}):u(e)?l(e)?i.createElement("span",null,e.split("").join(r)):i.createElement("span",null,e):(0,o.zv)(e)?i.createElement("span",null,e):e}function h(e,t){let r=!1,n=[];return i.Children.forEach(e,e=>{let t=typeof e,i="string"===t||"number"===t;if(r&&i){let t=n.length-1,r=n[t];n[t]=`${r}${e}`}else n.push(e);r=i}),i.Children.map(n,e=>d(e,t))}["default","primary","danger"].concat((0,n.A)(a.s))},76822(e,t,r){"use strict";r.d(t,{Ay:()=>eA});var n=r(22155),i=r(30395),o=r.n(i),a=r(94030),s=r(46604),l=r(75252),c=r(30565),u=r(65289),f=r(87673),d=r(27147),h=r(47495),p=r(57873),m=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let g=n.createContext(void 0),b=e=>{let{getPrefixCls:t,direction:r}=n.useContext(u.QO),{prefixCls:i,size:a,className:s}=e,l=m(e,["prefixCls","size","className"]),c=t("btn-group",i),[,,f]=(0,p.Ay)(),d=n.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),h=o()(c,{[`${c}-${d}`]:d,[`${c}-rtl`]:"rtl"===r},s,f);return n.createElement(g.Provider,{value:a},n.createElement("div",Object.assign({},l,{className:h})))};var v=r(26455),y=r(60004),w=r(8890);let x=(0,n.forwardRef)((e,t)=>{let{className:r,style:i,children:a,prefixCls:s}=e,l=o()(`${s}-icon`,r);return n.createElement("span",{ref:t,className:l,style:i},a)}),A=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,className:i,style:a,iconClassName:s}=e,l=o()(`${r}-loading-icon`,i);return n.createElement(x,{prefixCls:r,className:l,style:a,ref:t},n.createElement(y.A,{className:s}))}),E=()=>({width:0,opacity:0,transform:"scale(0)"}),_=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),S=e=>{let{prefixCls:t,loading:r,existIcon:i,className:a,style:s,mount:l}=e,c=!!r;return i?n.createElement(A,{prefixCls:t,className:a,style:s}):n.createElement(w.Ay,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:E,onAppearActive:_,onEnterStart:E,onEnterActive:_,onLeaveStart:_,onLeaveActive:E},({className:e,style:r},i)=>{let l=Object.assign(Object.assign({},s),r);return n.createElement(A,{prefixCls:t,className:o()(a,e),style:l,ref:i})})};var $=r(59296),k=r(96619),C=r(97684),O=r(63930),M=r(72056);let I=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),R=e=>{let{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},I(`${t}-primary`,i),I(`${t}-danger`,o)]}};var j=r(20705),T=r(13480);r(3604);let N=(e,t)=>{let{r,g:n,b:i,a:o}=e.toRgb(),a=new T.Q1(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:.299*r+.587*n+.114*i>192};var P=r(19111),B=r(69827);let z=e=>{let{paddingInline:t,onlyIconSize:r}=e;return(0,O.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},L=e=>{var t,r,n,i,o,a;let s=null!=(t=e.contentFontSize)?t:e.fontSize,l=null!=(r=e.contentFontSizeSM)?r:e.fontSize,c=null!=(n=e.contentFontSizeLG)?n:e.fontSizeLG,u=null!=(i=e.contentLineHeight)?i:(0,P.k)(s),f=null!=(o=e.contentLineHeightSM)?o:(0,P.k)(l),d=null!=(a=e.contentLineHeightLG)?a:(0,P.k)(c),h=N(new j.kf(e.colorBgSolid),"#fff")?"#000":"#fff";return Object.assign(Object.assign({},C.s.reduce((t,r)=>Object.assign(Object.assign({},t),{[`${r}ShadowColor`]:`0 ${(0,$.zA)(e.controlOutlineWidth)} 0 ${(0,B.A)(e[`${r}1`],e.colorBgContainer)}`}),{})),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)})},D=e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,$.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,k.Nk)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,k.K8)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},F=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),H=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),U=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),q=(e,t,r,n,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},F(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),W=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},U(e))}),V=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),K=(e,t,r,n)=>Object.assign(Object.assign({},(n&&["link","text"].includes(n)?V:W)(e)),F(e.componentCls,t,r)),G=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},K(e,n,i))}),X=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},K(e,n,i))}),Z=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Y=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},K(e,r,n))}),J=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},K(e,n,i,r))}),Q=e=>{let{componentCls:t}=e;return C.s.reduce((r,n)=>{let i=e[`${n}6`],o=e[`${n}1`],a=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:e[`${n}ShadowColor`]},G(e,e.colorTextLightSolid,i,{background:a},{background:c})),X(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Z(e)),Y(e,o,{color:i,background:s},{color:i,background:l})),J(e,i,"link",{color:a},{color:c})),J(e,i,"text",{color:a,background:o},{color:c,background:l}))})},{})},ee=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},G(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Z(e)),Y(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),q(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),J(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),et=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},X(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Z(e)),Y(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),J(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),J(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),q(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),er=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},G(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),X(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Z(e)),Y(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),J(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),J(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),q(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),en=e=>Object.assign(Object.assign({},J(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),q(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),ei=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:ee(e),[`${t}-color-primary`]:et(e),[`${t}-color-dangerous`]:er(e),[`${t}-color-link`]:en(e)},Q(e))},eo=e=>Object.assign(Object.assign(Object.assign(Object.assign({},X(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),J(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),G(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),J(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ea=(e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:n,padding:`${(0,$.zA)(l)} ${(0,$.zA)(a)}`,borderRadius:o,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:H(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},es=e=>ea((0,O.oX)(e,{fontSize:e.contentFontSize}),e.componentCls),el=e=>ea((0,O.oX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),ec=e=>ea((0,O.oX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),eu=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},ef=(0,M.OF)("Button",e=>{let t=z(e);return[D(t),es(t),el(t),ec(t),eu(t),ei(t),eo(t),R(t)]},L,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var ed=r(67172);function eh(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function ep(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function em(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},eh(e,t,e.componentCls)),ep(e.componentCls,t))}}let eg=e=>{let{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:i}=e,o=i(n).mul(-1).equal(),a=e=>{let i=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${i} + ${i}::before`]:{position:"absolute",top:e?o:0,insetInlineStart:e?0:o,backgroundColor:r,content:'""',width:e?"100%":n,height:e?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},eb=(0,M.bf)(["Button","compact"],e=>{let t=z(e);return[(0,ed.G)(t),em(t),eg(t)]},L);var ev=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function ey(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}}let ew={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},ex=n.forwardRef((e,t)=>{var r,i;let p,{loading:m=!1,prefixCls:b,color:y,variant:w,type:A,danger:E=!1,shape:_,size:$,styles:k,disabled:C,className:O,rootClassName:M,children:I,icon:R,iconPosition:j="start",ghost:T=!1,block:N=!1,htmlType:P="button",classNames:B,style:z={},autoInsertSpace:L,autoFocus:D}=e,F=ev(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),H=A||"default",{button:U}=n.useContext(u.QO),q=_||(null==U?void 0:U.shape)||"default",[W,V]=(0,n.useMemo)(()=>{if(y&&w)return[y,w];if(A||E){let e=ew[H]||[];return E?["danger",e[1]]:e}return(null==U?void 0:U.color)&&(null==U?void 0:U.variant)?[U.color,U.variant]:["default","outlined"]},[y,w,A,E,null==U?void 0:U.color,null==U?void 0:U.variant,H]),K="danger"===W?"dangerous":W,{getPrefixCls:G,direction:X,autoInsertSpace:Z,className:Y,style:J,classNames:Q,styles:ee}=(0,u.TP)("button"),et=null==(r=null!=L?L:Z)||r,er=G("btn",b),[en,ei,eo]=ef(er),ea=(0,n.useContext)(f.A),es=null!=C?C:ea,el=(0,n.useContext)(g),ec=(0,n.useMemo)(()=>ey(m),[m]),[eu,ed]=(0,n.useState)(ec.loading),[eh,ep]=(0,n.useState)(!1),em=(0,n.useRef)(null),eg=(0,l.xK)(t,em),ex=1===n.Children.count(I)&&!R&&!(0,v.u1)(V),eA=(0,n.useRef)(!0);n.useEffect(()=>(eA.current=!1,()=>{eA.current=!0}),[]),(0,a.A)(()=>{let e=null;return ec.delay>0?e=setTimeout(()=>{e=null,ed(!0)},ec.delay):ed(ec.loading),function(){e&&(clearTimeout(e),e=null)}},[ec.delay,ec.loading]),(0,n.useEffect)(()=>{if(!em.current||!et)return;let e=em.current.textContent||"";ex&&(0,v.Ap)(e)?eh||ep(!0):eh&&ep(!1)}),(0,n.useEffect)(()=>{D&&em.current&&em.current.focus()},[]);let eE=n.useCallback(t=>{var r;eu||es?t.preventDefault():null==(r=e.onClick)||r.call(e,("href"in e,t))},[e.onClick,eu,es]),{compactSize:e_,compactItemClassnames:eS}=(0,h.RQ)(er,X),e$={large:"lg",small:"sm",middle:void 0},ek=(0,d.A)(e=>{var t,r;return null!=(r=null!=(t=null!=$?$:e_)?t:el)?r:e}),eC=ek&&null!=(i=e$[ek])?i:"",eO=eu?"loading":R,eM=(0,s.A)(F,["navigate"]),eI=o()(er,ei,eo,{[`${er}-${q}`]:"default"!==q&&q,[`${er}-${H}`]:H,[`${er}-dangerous`]:E,[`${er}-color-${K}`]:K,[`${er}-variant-${V}`]:V,[`${er}-${eC}`]:eC,[`${er}-icon-only`]:!I&&0!==I&&!!eO,[`${er}-background-ghost`]:T&&!(0,v.u1)(V),[`${er}-loading`]:eu,[`${er}-two-chinese-chars`]:eh&&et&&!eu,[`${er}-block`]:N,[`${er}-rtl`]:"rtl"===X,[`${er}-icon-end`]:"end"===j},eS,O,M,Y),eR=Object.assign(Object.assign({},J),z),ej=o()(null==B?void 0:B.icon,Q.icon),eT=Object.assign(Object.assign({},(null==k?void 0:k.icon)||{}),ee.icon||{}),eN=e=>n.createElement(x,{prefixCls:er,className:ej,style:eT},e),eP=()=>n.createElement(S,{existIcon:!!R,prefixCls:er,loading:eu,mount:eA.current});p=R&&!eu?eN(R):m&&"object"==typeof m&&m.icon?eN(m.icon):eP();let eB=I||0===I?(0,v.uR)(I,ex&&et):null;if(void 0!==eM.href)return en(n.createElement("a",Object.assign({},eM,{className:o()(eI,{[`${er}-disabled`]:es}),href:es?void 0:eM.href,style:eR,onClick:eE,ref:eg,tabIndex:es?-1:0,"aria-disabled":es}),p,eB));let ez=n.createElement("button",Object.assign({},F,{type:P,className:eI,style:eR,onClick:eE,disabled:es,ref:eg}),p,eB,eS&&n.createElement(eb,{prefixCls:er}));return(0,v.u1)(V)||(ez=n.createElement(c.A,{component:"Button",disabled:eu},ez)),en(ez)});ex.Group=b,ex.__ANT_BUTTON=!0;let eA=ex},98626(e,t,r){"use strict";r.d(t,{A:()=>I});var n=r(22155),i=r(30395),o=r.n(i),a=r(43e3),s=r(75252),l=r(30565),c=r(61966),u=r(65289),f=r(87673),d=r(75932),h=r(42767);let p=n.createContext(null);var m=r(59296),g=r(96619),b=r(63930),v=r(72056);let y=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,g.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},(0,g.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,g.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:(0,g.jk)(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,m.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
12
+ ${r}:not(${r}-disabled),
13
+ ${t}:not(${t}-disabled)
14
+ `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
15
+ ${r}-checked:not(${r}-disabled),
16
+ ${t}-checked:not(${t}-disabled)
17
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function w(e,t){return y((0,b.oX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}let x=(0,v.OF)("Checkbox",(e,{prefixCls:t})=>[w(t,e)]);var A=r(65817),E=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let _=(e,t)=>{var r;let{prefixCls:i,className:m,rootClassName:g,children:b,indeterminate:v=!1,style:y,onMouseEnter:w,onMouseLeave:_,skipGroup:S=!1,disabled:$}=e,k=E(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:C,direction:O,checkbox:M}=n.useContext(u.QO),I=n.useContext(p),{isFormItemInput:R}=n.useContext(h.$W),j=n.useContext(f.A),T=null!=(r=(null==I?void 0:I.disabled)||$)?r:j,N=n.useRef(k.value),P=n.useRef(null),B=(0,s.K4)(t,P);n.useEffect(()=>{null==I||I.registerValue(k.value)},[]),n.useEffect(()=>{if(!S)return k.value!==N.current&&(null==I||I.cancelValue(N.current),null==I||I.registerValue(k.value),N.current=k.value),()=>null==I?void 0:I.cancelValue(k.value)},[k.value]),n.useEffect(()=>{var e;(null==(e=P.current)?void 0:e.input)&&(P.current.input.indeterminate=v)},[v]);let z=C("checkbox",i),L=(0,d.A)(z),[D,F,H]=x(z,L),U=Object.assign({},k);I&&!S&&(U.onChange=(...e)=>{k.onChange&&k.onChange.apply(k,e),I.toggleOption&&I.toggleOption({label:b,value:k.value})},U.name=I.name,U.checked=I.value.includes(k.value));let q=o()(`${z}-wrapper`,{[`${z}-rtl`]:"rtl"===O,[`${z}-wrapper-checked`]:U.checked,[`${z}-wrapper-disabled`]:T,[`${z}-wrapper-in-form-item`]:R},null==M?void 0:M.className,m,g,H,L,F),W=o()({[`${z}-indeterminate`]:v},c.D,F),[V,K]=(0,A.A)(U.onClick);return D(n.createElement(l.A,{component:"Checkbox",disabled:T},n.createElement("label",{className:q,style:Object.assign(Object.assign({},null==M?void 0:M.style),y),onMouseEnter:w,onMouseLeave:_,onClick:V},n.createElement(a.A,Object.assign({},U,{onClick:K,prefixCls:z,className:W,disabled:T,ref:B})),null!=b&&n.createElement("span",{className:`${z}-label`},b))))},S=n.forwardRef(_);var $=r(78944),k=r(46604),C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let O=n.forwardRef((e,t)=>{let{defaultValue:r,children:i,options:a=[],prefixCls:s,className:l,rootClassName:c,style:f,onChange:h}=e,m=C(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:b}=n.useContext(u.QO),[v,y]=n.useState(m.value||r||[]),[w,A]=n.useState([]);n.useEffect(()=>{"value"in m&&y(m.value||[])},[m.value]);let E=n.useMemo(()=>a.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[a]),_=e=>{A(t=>t.filter(t=>t!==e))},O=e=>{A(t=>[].concat((0,$.A)(t),[e]))},M=e=>{let t=v.indexOf(e.value),r=(0,$.A)(v);-1===t?r.push(e.value):r.splice(t,1),"value"in m||y(r),null==h||h(r.filter(e=>w.includes(e)).sort((e,t)=>E.findIndex(t=>t.value===e)-E.findIndex(e=>e.value===t)))},I=g("checkbox",s),R=`${I}-group`,j=(0,d.A)(I),[T,N,P]=x(I,j),B=(0,k.A)(m,["value","disabled"]),z=a.length?E.map(e=>n.createElement(S,{prefixCls:I,key:e.value.toString(),disabled:"disabled"in e?e.disabled:m.disabled,value:e.value,checked:v.includes(e.value),onChange:e.onChange,className:o()(`${R}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):i,L=n.useMemo(()=>({toggleOption:M,value:v,disabled:m.disabled,name:m.name,registerValue:O,cancelValue:_}),[M,v,m.disabled,m.name,O,_]),D=o()(R,{[`${R}-rtl`]:"rtl"===b},l,c,P,j,N);return T(n.createElement("div",Object.assign({className:D,style:f},B,{ref:t}),n.createElement(p.Provider,{value:L},z)))}),M=S;M.Group=O,M.__ANT_CHECKBOX=!0;let I=M},65817(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(22155),i=r(23504);function o(e){let t=n.useRef(null),r=()=>{i.A.cancel(t.current),t.current=null};return[()=>{r(),t.current=(0,i.A)(()=>{t.current=null})},n=>{t.current&&(n.stopPropagation(),r()),null==e||e(n)}]}},20705(e,t,r){"use strict";r.d(t,{kf:()=>l});var n=r(11947),i=r(96591),o=r(13480);let a=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",s=(e,t)=>e?a(e,t):"",l=function(){function e(t){var r;if((0,n.A)(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=null==(r=t.colors)?void 0:r.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let i=Array.isArray(t);i&&t.length?(this.colors=t.map(({color:t,percent:r})=>({color:new e(t),percent:r})),this.metaColor=new o.Q1(this.colors[0].color.metaColor)):this.metaColor=new o.Q1(i?"":t),t&&(!i||this.colors)||(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return(0,i.A)(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return s(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:e}=this;if(e){let t=e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ");return`linear-gradient(90deg, ${t})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!!e&&this.isGradient()===e.isGradient()&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,r)=>{let n=e.colors[r];return t.percent===n.percent&&t.color.equals(n.color)}):this.toHexString()===e.toHexString())}}])}()},87673(e,t,r){"use strict";r.d(t,{A:()=>a,X:()=>o});var n=r(22155);let i=n.createContext(!1),o=({children:e,disabled:t})=>{let r=n.useContext(i);return n.createElement(i.Provider,{value:null!=t?t:r},e)},a=i},82666(e,t,r){"use strict";r.d(t,{A:()=>a,c:()=>o});var n=r(22155);let i=n.createContext(void 0),o=({children:e,size:t})=>{let r=n.useContext(i);return n.createElement(i.Provider,{value:t||r},e)},a=i},33960(e,t,r){"use strict";r.d(t,{L:()=>_}),r(22155);var n,i=r(70316),o=r.t(i,2),a=r(11369),s=r(95065),l=r(24366),c=(0,r(39317).A)({},o),u=c.version,f=c.render,d=c.unmountComponentAtNode;try{Number((u||"").split(".")[0])>=18&&(n=c.createRoot)}catch(e){}function h(e){var t=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.A)(t)&&(t.usingClientEntryPoint=e)}var p="__rc_react_root__";function m(e,t){h(!0);var r=t[p]||n(t);h(!1),r.render(e),t[p]=r}function g(e,t){null==f||f(e,t)}function b(e,t){n?m(e,t):g(e,t)}function v(e){return y.apply(this,arguments)}function y(){return(y=(0,s.A)((0,a.A)().mark(function e(t){return(0,a.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null==(e=t[p])||e.unmount(),delete t[p]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function w(e){d(e)}function x(e){return A.apply(this,arguments)}function A(){return(A=(0,s.A)((0,a.A)().mark(function e(t){return(0,a.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n){e.next=2;break}return e.abrupt("return",v(t));case 2:w(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let E=(e,t)=>(b(e,t),()=>x(t));function _(e){return e&&(E=e),E}},65289(e,t,r){"use strict";r.d(t,{QO:()=>l,TP:()=>f,lJ:()=>a,pM:()=>o,yH:()=>i});var n=r(22155);let i="ant",o="anticon",a=["outlined","borderless","filled","underlined"],s=(e,t)=>t||(e?`${i}-${e}`:i),l=n.createContext({getPrefixCls:s,iconPrefixCls:o}),{Consumer:c}=l,u={};function f(e){let t=n.useContext(l),{getPrefixCls:r,direction:i,getPopupContainer:o}=t;return Object.assign(Object.assign({classNames:u,styles:u},t[e]),{getPrefixCls:r,direction:i,getPopupContainer:o})}},36416(e,t,r){"use strict";r.d(t,{A:()=>x});var n=r(22155),i=r(65289),o=r(30395),a=r.n(o),s=r(92733),l=r(98494),c=r(57873);let u=()=>{let[,e]=(0,c.Ay)(),[t]=(0,s.A)("Empty"),r=new l.Y(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return n.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null==t?void 0:t.description)||"Empty"),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.67)"},n.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),n.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),n.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),n.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),n.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),n.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),n.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},n.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),n.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},f=()=>{let[,e]=(0,c.Ay)(),[t]=(0,s.A)("Empty"),{colorFill:r,colorFillTertiary:i,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:u,shadowColor:f,contentColor:d}=(0,n.useMemo)(()=>({borderColor:new l.Y(r).onBackground(a).toHexString(),shadowColor:new l.Y(i).onBackground(a).toHexString(),contentColor:new l.Y(o).onBackground(a).toHexString()}),[r,i,o,a]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,(null==t?void 0:t.description)||"Empty"),n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:f,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:u},n.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),n.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))};var d=r(72056),h=r(63930);let p=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},m=(0,d.OF)("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e;return p((0,h.oX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()}))});var g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let b=n.createElement(u,null),v=n.createElement(f,null),y=e=>{var t;let{className:r,rootClassName:o,prefixCls:l,image:c,description:u,children:f,imageStyle:d,style:h,classNames:p,styles:y}=e,w=g(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:x,direction:A,className:E,style:_,classNames:S,styles:$,image:k}=(0,i.TP)("empty"),C=x("empty",l),[O,M,I]=m(C),[R]=(0,s.A)("Empty"),j=void 0!==u?u:null==R?void 0:R.description,T="string"==typeof j?j:"empty",N=null!=(t=null!=c?c:k)?t:b,P=null;return P="string"==typeof N?n.createElement("img",{draggable:!1,alt:T,src:N}):N,O(n.createElement("div",Object.assign({className:a()(M,I,C,E,{[`${C}-normal`]:N===v,[`${C}-rtl`]:"rtl"===A},r,o,S.root,null==p?void 0:p.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),_),null==y?void 0:y.root),h)},w),n.createElement("div",{className:a()(`${C}-image`,S.image,null==p?void 0:p.image),style:Object.assign(Object.assign(Object.assign({},d),$.image),null==y?void 0:y.image)},P),j&&n.createElement("div",{className:a()(`${C}-description`,S.description,null==p?void 0:p.description),style:Object.assign(Object.assign({},$.description),null==y?void 0:y.description)},j),f&&n.createElement("div",{className:a()(`${C}-footer`,S.footer,null==p?void 0:p.footer),style:Object.assign(Object.assign({},$.footer),null==y?void 0:y.footer)},f)))};y.PRESENTED_IMAGE_DEFAULT=b,y.PRESENTED_IMAGE_SIMPLE=v;let w=y,x=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,n.useContext)(i.QO),o=r("empty");switch(t){case"Table":case"List":return n.createElement(w,{image:w.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return n.createElement(w,{image:w.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return n.createElement(w,null)}}},75932(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(57873);let i=e=>{let[,,,,t]=(0,n.Ay)();return t?`${e}-css-var`:""}},27147(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(22155),i=r(82666);let o=e=>{let t=n.useContext(i.A);return n.useMemo(()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t,[e,t])}},64324(e,t,r){"use strict";let n,i,o,a;r.d(t,{cr:()=>J,Ay:()=>et});var s=r(22155),l=r.t(s,2),c=r(59296),u=r(84994),f=r(96271),d=r(43011),h=r(53575),p=r(91657),m=r(23753),g=r(76999);let b="internalMark",v=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;s.useEffect(()=>(0,m.L)(null==t?void 0:t.Modal),[t]);let i=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(g.A.Provider,{value:i},r)};var y=r(56156),w=r(92007),x=r(24940),A=r(6801),E=r(65289),_=r(57660),S=r(98494),$=r(8929),k=r(1056);let C=`-ant-${Date.now()}-${Math.random()}`;function O(e,t){let r={},n=(e,t)=>{let r=e.clone();return(r=(null==t?void 0:t(r))||r).toRgbString()},i=(e,t)=>{let i=new S.Y(e),o=(0,_.cM)(i.toRgbString());r[`${t}-color`]=n(i),r[`${t}-color-disabled`]=o[1],r[`${t}-color-hover`]=o[4],r[`${t}-color-active`]=o[6],r[`${t}-color-outline`]=i.clone().setA(.2).toRgbString(),r[`${t}-color-deprecated-bg`]=o[0],r[`${t}-color-deprecated-border`]=o[2]};if(t.primaryColor){i(t.primaryColor,"primary");let e=new S.Y(t.primaryColor),o=(0,_.cM)(e.toRgbString());o.forEach((e,t)=>{r[`primary-${t+1}`]=e}),r["primary-color-deprecated-l-35"]=n(e,e=>e.lighten(35)),r["primary-color-deprecated-l-20"]=n(e,e=>e.lighten(20)),r["primary-color-deprecated-t-20"]=n(e,e=>e.tint(20)),r["primary-color-deprecated-t-50"]=n(e,e=>e.tint(50)),r["primary-color-deprecated-f-12"]=n(e,e=>e.setA(.12*e.a));let a=new S.Y(o[0]);r["primary-color-active-deprecated-f-30"]=n(a,e=>e.setA(.3*e.a)),r["primary-color-active-deprecated-d-02"]=n(a,e=>e.darken(2))}t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info");let o=Object.keys(r).map(t=>`--${e}-${t}: ${r[t]};`);return`
18
+ :root {
19
+ ${o.join("\n")}
20
+ }
21
+ `.trim()}function M(e,t){let r=O(e,t);(0,$.A)()&&(0,k.BD)(r,`${C}-dynamic-theme`)}var I=r(87673),R=r(82666);let j=function(){return{componentDisabled:(0,s.useContext)(I.A),componentSize:(0,s.useContext)(R.A)}};var T=r(91585);let{useId:N}=Object.assign({},l),P=()=>"",B=void 0===N?P:N;function z(e,t,r){var n;(0,h.rJ)("ConfigProvider");let i=e||{},o=!1!==i.inherit&&t?t:Object.assign(Object.assign({},x.sb),{hashed:null!=(n=null==t?void 0:t.hashed)?n:x.sb.hashed,cssVar:null==t?void 0:t.cssVar}),a=B();return(0,f.A)(()=>{var n,s;if(!e)return t;let l=Object.assign({},o.components);Object.keys(e.components||{}).forEach(t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])});let c=`css-var-${a.replace(/:/g,"")}`,u=(null!=(n=i.cssVar)?n:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==r?void 0:r.prefixCls},"object"==typeof o.cssVar?o.cssVar:{}),"object"==typeof i.cssVar?i.cssVar:{}),{key:"object"==typeof i.cssVar&&(null==(s=i.cssVar)?void 0:s.key)||c});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:l,cssVar:u})},[i,o],(e,t)=>e.some((e,r)=>{let n=t[r];return!(0,T.A)(e,n,!0)}))}var L=r(8890),D=r(57873);let F=s.createContext(!0);function H(e){let t=s.useContext(F),{children:r}=e,[,n]=(0,D.Ay)(),{motion:i}=n,o=s.useRef(!1);return(o.current||(o.current=t!==i),o.current)?s.createElement(F.Provider,{value:i},s.createElement(L.Kq,{motion:i},r)):r}let U=()=>null;var q=r(96619);let W=(e,t)=>{let[r,n]=(0,D.Ay)();return(0,c.IV)({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>(0,q.jz)(e))};var V=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let K=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];function G(){return n||E.yH}function X(){return i||E.pM}function Z(e){return Object.keys(e).some(e=>e.endsWith("Color"))}let Y=e=>{let{prefixCls:t,iconPrefixCls:r,theme:s,holderRender:l}=e;void 0!==t&&(n=t),void 0!==r&&(i=r),"holderRender"in e&&(a=l),s&&(Z(s)?M(G(),s):o=s)},J=()=>({getPrefixCls:(e,t)=>t||(e?`${G()}-${e}`:G()),getIconPrefixCls:X,getRootPrefixCls:()=>n||G(),getTheme:()=>o,holderRender:a}),Q=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,anchor:o,form:a,locale:l,componentSize:m,direction:g,space:_,splitter:S,virtual:$,dropdownMatchSelectWidth:k,popupMatchSelectWidth:C,popupOverflow:O,legacyLocale:M,parentContext:j,iconPrefixCls:T,theme:N,componentDisabled:P,segmented:B,statistic:L,spin:D,calendar:F,carousel:q,cascader:G,collapse:X,typography:Z,checkbox:Y,descriptions:J,divider:Q,drawer:ee,skeleton:et,steps:er,image:en,layout:ei,list:eo,mentions:ea,modal:es,progress:el,result:ec,slider:eu,breadcrumb:ef,menu:ed,pagination:eh,input:ep,textArea:em,empty:eg,badge:eb,radio:ev,rate:ey,switch:ew,transfer:ex,avatar:eA,message:eE,tag:e_,table:eS,card:e$,tabs:ek,timeline:eC,timePicker:eO,upload:eM,notification:eI,tree:eR,colorPicker:ej,datePicker:eT,rangePicker:eN,flex:eP,wave:eB,dropdown:ez,warning:eL,tour:eD,tooltip:eF,popover:eH,popconfirm:eU,floatButton:eq,floatButtonGroup:eW,variant:eV,inputNumber:eK,treeSelect:eG}=e,eX=s.useCallback((t,r)=>{let{prefixCls:n}=e;if(r)return r;let i=n||j.getPrefixCls("");return t?`${i}-${t}`:i},[j.getPrefixCls,e.prefixCls]),eZ=T||j.iconPrefixCls||E.pM,eY=r||j.csp;W(eZ,eY);let eJ=z(N,j.theme,{prefixCls:eX("")}),eQ={csp:eY,autoInsertSpaceInButton:n,alert:i,anchor:o,locale:l||M,direction:g,space:_,splitter:S,virtual:$,popupMatchSelectWidth:null!=C?C:k,popupOverflow:O,getPrefixCls:eX,iconPrefixCls:eZ,theme:eJ,segmented:B,statistic:L,spin:D,calendar:F,carousel:q,cascader:G,collapse:X,typography:Z,checkbox:Y,descriptions:J,divider:Q,drawer:ee,skeleton:et,steps:er,image:en,input:ep,textArea:em,layout:ei,list:eo,mentions:ea,modal:es,progress:el,result:ec,slider:eu,breadcrumb:ef,menu:ed,pagination:eh,empty:eg,badge:eb,radio:ev,rate:ey,switch:ew,transfer:ex,avatar:eA,message:eE,tag:e_,table:eS,card:e$,tabs:ek,timeline:eC,timePicker:eO,upload:eM,notification:eI,tree:eR,colorPicker:ej,datePicker:eT,rangePicker:eN,flex:eP,wave:eB,dropdown:ez,warning:eL,tour:eD,tooltip:eF,popover:eH,popconfirm:eU,floatButton:eq,floatButtonGroup:eW,variant:eV,inputNumber:eK,treeSelect:eG},e0=Object.assign({},j);Object.keys(eQ).forEach(e=>{void 0!==eQ[e]&&(e0[e]=eQ[e])}),K.forEach(t=>{let r=e[t];r&&(e0[t]=r)}),void 0!==n&&(e0.button=Object.assign({autoInsertSpace:n},e0.button));let e1=(0,f.A)(()=>e0,e0,(e,t)=>{let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some(r=>e[r]!==t[r])}),{layer:e2}=s.useContext(c.J),e6=s.useMemo(()=>({prefixCls:eZ,csp:eY,layer:e2?"antd":void 0}),[eZ,eY,e2]),e3=s.createElement(s.Fragment,null,s.createElement(U,{dropdownMatchSelectWidth:k}),t),e5=s.useMemo(()=>{var e,t,r,n;return(0,d.h)((null==(e=y.A.Form)?void 0:e.defaultValidateMessages)||{},(null==(r=null==(t=e1.locale)?void 0:t.Form)?void 0:r.defaultValidateMessages)||{},(null==(n=e1.form)?void 0:n.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})},[e1,null==a?void 0:a.validateMessages]);Object.keys(e5).length>0&&(e3=s.createElement(p.A.Provider,{value:e5},e3)),l&&(e3=s.createElement(v,{locale:l,_ANT_MARK__:b},e3)),(eZ||eY)&&(e3=s.createElement(u.A.Provider,{value:e6},e3)),m&&(e3=s.createElement(R.c,{size:m},e3)),e3=s.createElement(H,null,e3);let e4=s.useMemo(()=>{let e=eJ||{},{algorithm:t,token:r,components:n,cssVar:i}=e,o=V(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?(0,c.an)(t):w.A,s={};Object.entries(n||{}).forEach(([e,t])=>{let r=Object.assign({},t);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,c.an)(r.algorithm)),delete r.algorithm),s[e]=r});let l=Object.assign(Object.assign({},A.A),r);return Object.assign(Object.assign({},o),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:i})},[eJ]);return N&&(e3=s.createElement(x.vG.Provider,{value:e4},e3)),e1.warning&&(e3=s.createElement(h._n.Provider,{value:e1.warning},e3)),void 0!==P&&(e3=s.createElement(I.X,{disabled:P},e3)),s.createElement(E.QO.Provider,{value:e1},e3)},ee=e=>{let t=s.useContext(E.QO),r=s.useContext(g.A);return s.createElement(Q,Object.assign({parentContext:t,legacyLocale:r},e))};ee.ConfigContext=E.QO,ee.SizeContext=R.A,ee.config=Y,ee.useConfig=j,Object.defineProperty(ee,"SizeContext",{get:()=>R.A});let et=ee},20241(e,t,r){"use strict";r.d(t,{A:()=>v});var n=r(22155),i=r(30395),o=r.n(i),a=r(65289),s=r(27147),l=r(59296),c=r(96619),u=r(72056),f=r(63930);let d=e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},h=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,c.dF)(e)),{borderBlockStart:`${(0,l.zA)(i)} solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,l.zA)(i)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,l.zA)(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,l.zA)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,l.zA)(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${(0,l.zA)(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:n,borderStyle:"dotted",borderWidth:`${(0,l.zA)(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}},p=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),m=(0,u.OF)("Divider",e=>{let t=(0,f.oX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[h(t),d(t)]},p,{unitless:{orientationMargin:!0}});var g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let b={small:"sm",middle:"md"},v=e=>{let{getPrefixCls:t,direction:r,className:i,style:l}=(0,a.TP)("divider"),{prefixCls:c,type:u="horizontal",orientation:f="center",orientationMargin:d,className:h,rootClassName:p,children:v,dashed:y,variant:w="solid",plain:x,style:A,size:E}=e,_=g(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),S=t("divider",c),[$,k,C]=m(S),O=b[(0,s.A)(E)],M=!!v,I=n.useMemo(()=>"left"===f?"rtl"===r?"end":"start":"right"===f?"rtl"===r?"start":"end":f,[r,f]),R="start"===I&&null!=d,j="end"===I&&null!=d,T=o()(S,i,k,C,`${S}-${u}`,{[`${S}-with-text`]:M,[`${S}-with-text-${I}`]:M,[`${S}-dashed`]:!!y,[`${S}-${w}`]:"solid"!==w,[`${S}-plain`]:!!x,[`${S}-rtl`]:"rtl"===r,[`${S}-no-default-orientation-margin-start`]:R,[`${S}-no-default-orientation-margin-end`]:j,[`${S}-${O}`]:!!O},h,p),N=n.useMemo(()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d,[d]),P={marginInlineStart:R?N:void 0,marginInlineEnd:j?N:void 0};return $(n.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},l),A)},_,{role:"separator"}),v&&"vertical"!==u&&n.createElement("span",{className:`${S}-inner-text`,style:P},v)))}},984(e,t,r){"use strict";r.d(t,{A:()=>r$});var n=r(22155),i=r(93512),o=r(32983),a=r(30395),s=r.n(a),l=r(76878),c=r(19841),u=r(70486),f=r(56284),d=r(78387),h=r(75252),p=r(19187),m=r(23504),g=p.A.ESC,b=p.A.TAB;function v(e){var t=e.visible,r=e.triggerRef,i=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,s=n.useRef(!1),l=function(){if(t){var e,n;null==(e=r.current)||null==(n=e.focus)||n.call(e),null==i||i(!1)}},c=function(){var e;return null!=(e=a.current)&&!!e.focus&&(a.current.focus(),s.current=!0,!0)},u=function(e){switch(e.keyCode){case g:l();break;case b:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};n.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&(0,m.A)(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}},[t])}let y=(0,n.forwardRef)(function(e,t){var r=e.overlay,i=e.arrow,o=e.prefixCls,a=(0,n.useMemo)(function(){return"function"==typeof r?r():r},[r]),s=(0,h.K4)(t,(0,h.A9)(a));return n.createElement(n.Fragment,null,i&&n.createElement("div",{className:"".concat(o,"-arrow")}),n.cloneElement(a,{ref:(0,h.f3)(a)?s:void 0}))});var w={adjustX:1,adjustY:1},x=[0,0];let A={topLeft:{points:["bl","tl"],overflow:w,offset:[0,-4],targetOffset:x},top:{points:["bc","tc"],overflow:w,offset:[0,-4],targetOffset:x},topRight:{points:["br","tr"],overflow:w,offset:[0,-4],targetOffset:x},bottomLeft:{points:["tl","bl"],overflow:w,offset:[0,4],targetOffset:x},bottom:{points:["tc","bc"],overflow:w,offset:[0,4],targetOffset:x},bottomRight:{points:["tr","br"],overflow:w,offset:[0,4],targetOffset:x}};var E=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function _(e,t){var r,i=e.arrow,o=void 0!==i&&i,a=e.prefixCls,p=void 0===a?"rc-dropdown":a,m=e.transitionName,g=e.animation,b=e.align,w=e.placement,x=void 0===w?"bottomLeft":w,_=e.placements,S=void 0===_?A:_,$=e.getPopupContainer,k=e.showAction,C=e.hideAction,O=e.overlayClassName,M=e.overlayStyle,I=e.visible,R=e.trigger,j=void 0===R?["hover"]:R,T=e.autoFocus,N=e.overlay,P=e.children,B=e.onVisibleChange,z=(0,f.A)(e,E),L=n.useState(),D=(0,u.A)(L,2),F=D[0],H=D[1],U="visible"in e?I:F,q=n.useRef(null),W=n.useRef(null),V=n.useRef(null);n.useImperativeHandle(t,function(){return q.current});var K=function(e){H(e),null==B||B(e)};v({visible:U,triggerRef:V,onVisibleChange:K,autoFocus:T,overlayRef:W});var G=function(t){var r=e.onOverlayClick;H(!1),r&&r(t)},X=function(){return n.createElement(y,{ref:W,overlay:N,prefixCls:p,arrow:o})},Z=function(){return"function"==typeof N?X:X()},Y=function(){var t=e.minOverlayWidthMatchTrigger,r=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!r},J=function(){var t=e.openClassName;return void 0!==t?t:"".concat(p,"-open")},Q=n.cloneElement(P,{className:s()(null==(r=P.props)?void 0:r.className,U&&J()),ref:(0,h.f3)(P)?(0,h.K4)(V,(0,h.A9)(P)):void 0}),ee=C;return ee||-1===j.indexOf("contextMenu")||(ee=["click"]),n.createElement(d.A,(0,l.A)({builtinPlacements:S},z,{prefixCls:p,ref:q,popupClassName:s()(O,(0,c.A)({},"".concat(p,"-show-arrow"),o)),popupStyle:M,action:j,showAction:k,hideAction:ee,popupPlacement:x,popupAlign:b,popupTransitionName:m,popupAnimation:g,popupVisible:U,stretch:Y()?"minWidth":"",popup:Z(),onPopupVisibleChange:K,onPopupClick:G,getPopupContainer:$}),Q)}let S=n.forwardRef(_);var $=r(44649),k=r(3604),C=r(46604),O=r(47201);let M=e=>"object"!=typeof e&&"function"!=typeof e||null===e;var I=r(55831),R=r(37007),j=r(21968),T=r(53575),N=r(80690),P=r(65289),B=r(75932),z=r(39317),L=r(78944),D=r(53455),F=r(91585),H=r(47773),U=r(70316),q=n.createContext(null);function W(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function V(e){return W(n.useContext(q),e)}var K=r(96271),G=["children","locked"],X=n.createContext(null);function Z(e,t){var r=(0,z.A)({},e);return Object.keys(t).forEach(function(e){var n=t[e];void 0!==n&&(r[e]=n)}),r}function Y(e){var t=e.children,r=e.locked,i=(0,f.A)(e,G),o=n.useContext(X),a=(0,K.A)(function(){return Z(o,i)},[o,i],function(e,t){return!r&&(e[0]!==t[0]||!(0,F.A)(e[1],t[1],!0))});return n.createElement(X.Provider,{value:a},t)}var J=[],Q=n.createContext(null);function ee(){return n.useContext(Q)}var et=n.createContext(J);function er(e){var t=n.useContext(et);return n.useMemo(function(){return void 0!==e?[].concat((0,L.A)(t),[e]):t},[t,e])}var en=n.createContext(null);let ei=n.createContext({});var eo=r(65460);function ea(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,eo.A)(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||"a"===r&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:n&&null===a&&(a=0),n&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function es(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,L.A)(e.querySelectorAll("*")).filter(function(e){return ea(e,t)});return ea(e,t)&&r.unshift(e),r}var el=p.A.LEFT,ec=p.A.RIGHT,eu=p.A.UP,ef=p.A.DOWN,ed=p.A.ENTER,eh=p.A.ESC,ep=p.A.HOME,em=p.A.END,eg=[eu,ef,el,ec];function eb(e,t,r,n){var i,o="prev",a="next",s="children",l="parent";if("inline"===e&&n===ed)return{inlineTrigger:!0};var u=(0,c.A)((0,c.A)({},eu,o),ef,a),f=(0,c.A)((0,c.A)((0,c.A)((0,c.A)({},el,r?a:o),ec,r?o:a),ef,s),ed,s),d=(0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)({},eu,o),ef,a),ed,s),eh,l),el,r?s:l),ec,r?l:s);switch(null==(i=({inline:u,horizontal:f,vertical:d,inlineSub:u,horizontalSub:d,verticalSub:d})["".concat(e).concat(t?"":"Sub")])?void 0:i[n]){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function ev(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function ey(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function ew(e,t){return es(e,!0).filter(function(e){return t.has(e)})}function ex(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=ew(e,t),o=i.length,a=i.findIndex(function(e){return r===e});return n<0?-1===a?a=o-1:a-=1:n>0&&(a+=1),i[a=(a+o)%o]}var eA=function(e,t){var r=new Set,n=new Map,i=new Map;return e.forEach(function(e){var o=document.querySelector("[data-menu-id='".concat(W(t,e),"']"));o&&(r.add(o),i.set(o,e),n.set(e,o))}),{elements:r,key2element:n,element2key:i}};function eE(e,t,r,i,o,a,s,l,c,u){var f=n.useRef(),d=n.useRef();d.current=t;var h=function(){m.A.cancel(f.current)};return n.useEffect(function(){return function(){h()}},[]),function(n){var p=n.which;if([].concat(eg,[ed,eh,ep,em]).includes(p)){var g=a(),b=eA(g,i),v=b,y=v.elements,w=v.key2element,x=v.element2key,A=ey(w.get(t),y),E=x.get(A),_=eb(e,1===s(E,!0).length,r,p);if(!_&&p!==ep&&p!==em)return;(eg.includes(p)||[ep,em].includes(p))&&n.preventDefault();var S=function(e){if(e){var t=e,r=e.querySelector("a");null!=r&&r.getAttribute("href")&&(t=r);var n=x.get(e);l(n),h(),f.current=(0,m.A)(function(){d.current===n&&t.focus()})}};if([ep,em].includes(p)||_.sibling||!A){var $,k=A&&"inline"!==e?ev(A):o.current,C=ew(k,y);S($=p===ep?C[0]:p===em?C[C.length-1]:ex(k,y,A,_.offset))}else if(_.inlineTrigger)c(E);else if(_.offset>0)c(E,!0),h(),f.current=(0,m.A)(function(){b=eA(g,i);var e=A.getAttribute("aria-controls");S(ex(document.getElementById(e),b.elements))},5);else if(_.offset<0){var O=s(E,!0),M=O[O.length-2],I=w.get(M);c(M,!1),S(I)}}null==u||u(n)}}function e_(e){Promise.resolve().then(e)}var eS="__RC_UTIL_PATH_SPLIT__",e$=function(e){return e.join(eS)},ek=function(e){return e.split(eS)},eC="rc-menu-more";function eO(){var e=n.useState({}),t=(0,u.A)(e,2)[1],r=(0,n.useRef)(new Map),i=(0,n.useRef)(new Map),o=n.useState([]),a=(0,u.A)(o,2),s=a[0],l=a[1],c=(0,n.useRef)(0),f=(0,n.useRef)(!1),d=function(){f.current||t({})},h=(0,n.useCallback)(function(e,t){var n=e$(t);i.current.set(n,e),r.current.set(e,n),c.current+=1;var o=c.current;e_(function(){o===c.current&&d()})},[]),p=(0,n.useCallback)(function(e,t){var n=e$(t);i.current.delete(n),r.current.delete(e)},[]),m=(0,n.useCallback)(function(e){l(e)},[]),g=(0,n.useCallback)(function(e,t){var n=ek(r.current.get(e)||"");return t&&s.includes(n[0])&&n.unshift(eC),n},[s]),b=(0,n.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return g(e,!0).includes(t)})},[g]),v=function(){var e=(0,L.A)(r.current.keys());return s.length&&e.push(eC),e},y=(0,n.useCallback)(function(e){var t="".concat(r.current.get(e)).concat(eS),n=new Set;return(0,L.A)(i.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(i.current.get(e))}),n},[]);return n.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:h,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:b,getKeyPath:g,getKeys:v,getSubPathKeys:y}}function eM(e){var t=n.useRef(e);t.current=e;var r=n.useCallback(function(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(n))},[]);return e?r:void 0}var eI=Math.random().toFixed(5).toString().slice(2),eR=0;function ej(e){var t=(0,k.A)(e,{value:e}),r=(0,u.A)(t,2),i=r[0],o=r[1];return n.useEffect(function(){eR+=1;var e="".concat(eI,"-").concat(eR);o("rc-menu-uuid-".concat(e))},[]),i}var eT=r(11947),eN=r(96591),eP=r(93619),eB=r(51232);function ez(e,t,r,i){var o=n.useContext(X),a=o.activeKey,s=o.onActive,l=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(t){null==r||r({key:e,domEvent:t}),s(e)},c.onMouseLeave=function(t){null==i||i({key:e,domEvent:t}),l(e)}),c}function eL(e){var t=n.useContext(X),r=t.mode,i=t.rtl,o=t.inlineIndent;if("inline"!==r)return null;var a=e;return i?{paddingRight:a*o}:{paddingLeft:a*o}}function eD(e){var t,r=e.icon,i=e.props,o=e.children;return null===r||!1===r?null:("function"==typeof r?t=n.createElement(r,(0,z.A)({},i)):"boolean"!=typeof r&&(t=r),t||o||null)}var eF=["item"];function eH(e){var t=e.item,r=(0,f.A)(e,eF);return Object.defineProperty(r,"item",{get:function(){return(0,H.Ay)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var eU=["title","attribute","elementRef"],eq=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],eW=["active"],eV=function(e){(0,eP.A)(r,e);var t=(0,eB.A)(r);function r(){return(0,eT.A)(this,r),t.apply(this,arguments)}return(0,eN.A)(r,[{key:"render",value:function(){var e=this.props,t=e.title,r=e.attribute,i=e.elementRef,o=(0,f.A)(e,eU),a=(0,C.A)(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,H.Ay)(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),n.createElement(D.A.Item,(0,l.A)({},r,{title:"string"==typeof t?t:void 0},a,{ref:i}))}}]),r}(n.Component),eK=n.forwardRef(function(e,t){var r=e.style,i=e.className,o=e.eventKey,a=(e.warnKey,e.disabled),u=e.itemIcon,d=e.children,m=e.role,g=e.onMouseEnter,b=e.onMouseLeave,v=e.onClick,y=e.onKeyDown,w=e.onFocus,x=(0,f.A)(e,eq),A=V(o),E=n.useContext(X),_=E.prefixCls,S=E.onItemClick,$=E.disabled,k=E.overflowDisabled,O=E.itemIcon,M=E.selectedKeys,I=E.onActive,R=n.useContext(ei)._internalRenderMenuItem,j="".concat(_,"-item"),T=n.useRef(),N=n.useRef(),P=$||a,B=(0,h.xK)(t,N),D=er(o),F=function(e){return{key:o,keyPath:(0,L.A)(D).reverse(),item:T.current,domEvent:e}},H=u||O,U=ez(o,P,g,b),q=U.active,W=(0,f.A)(U,eW),K=M.includes(o),G=eL(D.length),Z=function(e){if(!P){var t=F(e);null==v||v(eH(t)),S(t)}},Y=function(e){if(null==y||y(e),e.which===p.A.ENTER){var t=F(e);null==v||v(eH(t)),S(t)}},J=function(e){I(o),null==w||w(e)},Q={};"option"===e.role&&(Q["aria-selected"]=K);var ee=n.createElement(eV,(0,l.A)({ref:T,elementRef:B,role:null===m?"none":m||"menuitem",tabIndex:a?null:-1,"data-menu-id":k&&A?null:A},(0,C.A)(x,["extra"]),W,Q,{component:"li","aria-disabled":a,style:(0,z.A)((0,z.A)({},G),r),className:s()(j,(0,c.A)((0,c.A)((0,c.A)({},"".concat(j,"-active"),q),"".concat(j,"-selected"),K),"".concat(j,"-disabled"),P),i),onClick:Z,onKeyDown:Y,onFocus:J}),d,n.createElement(eD,{props:(0,z.A)((0,z.A)({},e),{},{isSelected:K}),icon:H}));return R&&(ee=R(ee,e,{selected:K})),ee});function eG(e,t){var r=e.eventKey,i=ee(),o=er(r);return(n.useEffect(function(){if(i)return i.registerPath(r,o),function(){i.unregisterPath(r,o)}},[o]),i)?null:n.createElement(eK,(0,l.A)({},e,{ref:t}))}let eX=n.forwardRef(eG);var eZ=["className","children"],eY=function(e,t){var r=e.className,i=e.children,o=(0,f.A)(e,eZ),a=n.useContext(X),c=a.prefixCls,u=a.mode,d=a.rtl;return n.createElement("ul",(0,l.A)({className:s()(c,d&&"".concat(c,"-rtl"),"".concat(c,"-sub"),"".concat(c,"-").concat("inline"===u?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:t}),i)},eJ=n.forwardRef(eY);eJ.displayName="SubMenuList";let eQ=eJ;var e0=r(54355);function e1(e,t){return(0,e0.A)(e).map(function(e,r){if(n.isValidElement(e)){var i,o,a=e.key,s=null!=(i=null==(o=e.props)?void 0:o.eventKey)?i:a;null==s&&(s="tmp_key-".concat([].concat((0,L.A)(t),[r]).join("-")));var l={key:s,eventKey:s};return n.cloneElement(e,l)}return e})}var e2={adjustX:1,adjustY:1},e6={topLeft:{points:["bl","tl"],overflow:e2},topRight:{points:["br","tr"],overflow:e2},bottomLeft:{points:["tl","bl"],overflow:e2},bottomRight:{points:["tr","br"],overflow:e2},leftTop:{points:["tr","tl"],overflow:e2},leftBottom:{points:["br","bl"],overflow:e2},rightTop:{points:["tl","tr"],overflow:e2},rightBottom:{points:["bl","br"],overflow:e2}},e3={topLeft:{points:["bl","tl"],overflow:e2},topRight:{points:["br","tr"],overflow:e2},bottomLeft:{points:["tl","bl"],overflow:e2},bottomRight:{points:["tr","br"],overflow:e2},rightTop:{points:["tr","tl"],overflow:e2},rightBottom:{points:["br","bl"],overflow:e2},leftTop:{points:["tl","tr"],overflow:e2},leftBottom:{points:["bl","br"],overflow:e2}};function e5(e,t,r){return t||(r?r[e]||r.other:void 0)}var e4={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function e8(e){var t=e.prefixCls,r=e.visible,i=e.children,o=e.popup,a=e.popupStyle,l=e.popupClassName,f=e.popupOffset,h=e.disabled,p=e.mode,g=e.onVisibleChange,b=n.useContext(X),v=b.getPopupContainer,y=b.rtl,w=b.subMenuOpenDelay,x=b.subMenuCloseDelay,A=b.builtinPlacements,E=b.triggerSubMenuAction,_=b.forceSubMenuRender,S=b.rootClassName,$=b.motion,k=b.defaultMotions,C=n.useState(!1),O=(0,u.A)(C,2),M=O[0],I=O[1],R=y?(0,z.A)((0,z.A)({},e3),A):(0,z.A)((0,z.A)({},e6),A),j=e4[p],T=e5(p,$,k),N=n.useRef(T);"inline"!==p&&(N.current=T);var P=(0,z.A)((0,z.A)({},N.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),B=n.useRef();return n.useEffect(function(){return B.current=(0,m.A)(function(){I(r)}),function(){m.A.cancel(B.current)}},[r]),n.createElement(d.A,{prefixCls:t,popupClassName:s()("".concat(t,"-popup"),(0,c.A)({},"".concat(t,"-rtl"),y),l,S),stretch:"horizontal"===p?"minWidth":null,getPopupContainer:v,builtinPlacements:R,popupPlacement:j,popupVisible:M,popup:o,popupStyle:a,popupAlign:f&&{offset:f},action:h?[]:[E],mouseEnterDelay:w,mouseLeaveDelay:x,onPopupVisibleChange:g,forceRender:_,popupMotion:P,fresh:!0},i)}var e9=r(8890);function e7(e){var t=e.id,r=e.open,i=e.keyPath,o=e.children,a="inline",s=n.useContext(X),c=s.prefixCls,f=s.forceSubMenuRender,d=s.motion,h=s.defaultMotions,p=s.mode,m=n.useRef(!1);m.current=p===a;var g=n.useState(!m.current),b=(0,u.A)(g,2),v=b[0],y=b[1],w=!!m.current&&r;n.useEffect(function(){m.current&&y(!1)},[p]);var x=(0,z.A)({},e5(a,d,h));i.length>1&&(x.motionAppear=!1);var A=x.onVisibleChanged;return(x.onVisibleChanged=function(e){return m.current||e||y(!0),null==A?void 0:A(e)},v)?null:n.createElement(Y,{mode:a,locked:!m.current},n.createElement(e9.Ay,(0,l.A)({visible:w},x,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(e){var r=e.className,i=e.style;return n.createElement(eQ,{id:t,className:r,style:i},o)}))}var te=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tt=["active"],tr=n.forwardRef(function(e,t){var r=e.style,i=e.className,o=e.title,a=e.eventKey,d=(e.warnKey,e.disabled),h=e.internalPopupClose,p=e.children,m=e.itemIcon,g=e.expandIcon,b=e.popupClassName,v=e.popupOffset,y=e.popupStyle,w=e.onClick,x=e.onMouseEnter,A=e.onMouseLeave,E=e.onTitleClick,_=e.onTitleMouseEnter,S=e.onTitleMouseLeave,$=(0,f.A)(e,te),k=V(a),C=n.useContext(X),O=C.prefixCls,M=C.mode,I=C.openKeys,R=C.disabled,j=C.overflowDisabled,T=C.activeKey,N=C.selectedKeys,P=C.itemIcon,B=C.expandIcon,L=C.onItemClick,F=C.onOpenChange,H=C.onActive,U=n.useContext(ei)._internalRenderSubMenuItem,q=n.useContext(en).isSubPathKey,W=er(),K="".concat(O,"-submenu"),G=R||d,Z=n.useRef(),J=n.useRef(),Q=null!=m?m:P,ee=null!=g?g:B,et=I.includes(a),eo=!j&&et,ea=q(N,a),es=ez(a,G,_,S),el=es.active,ec=(0,f.A)(es,tt),eu=n.useState(!1),ef=(0,u.A)(eu,2),ed=ef[0],eh=ef[1],ep=function(e){G||eh(e)},em=function(e){ep(!0),null==x||x({key:a,domEvent:e})},eg=function(e){ep(!1),null==A||A({key:a,domEvent:e})},eb=n.useMemo(function(){return el||"inline"!==M&&(ed||q([T],a))},[M,el,T,ed,a,q]),ev=eL(W.length),ey=function(e){G||(null==E||E({key:a,domEvent:e}),"inline"===M&&F(a,!et))},ew=eM(function(e){null==w||w(eH(e)),L(e)}),ex=function(e){"inline"!==M&&F(a,e)},eA=function(){H(a)},eE=k&&"".concat(k,"-popup"),e_=n.useMemo(function(){return n.createElement(eD,{icon:"horizontal"!==M?ee:void 0,props:(0,z.A)((0,z.A)({},e),{},{isOpen:eo,isSubMenu:!0})},n.createElement("i",{className:"".concat(K,"-arrow")}))},[M,ee,e,eo,K]),eS=n.createElement("div",(0,l.A)({role:"menuitem",style:ev,className:"".concat(K,"-title"),tabIndex:G?null:-1,ref:Z,title:"string"==typeof o?o:null,"data-menu-id":j&&k?null:k,"aria-expanded":eo,"aria-haspopup":!0,"aria-controls":eE,"aria-disabled":G,onClick:ey,onFocus:eA},ec),o,e_),e$=n.useRef(M);if("inline"!==M&&W.length>1?e$.current="vertical":e$.current=M,!j){var ek=e$.current;eS=n.createElement(e8,{mode:ek,prefixCls:K,visible:!h&&eo&&"inline"!==M,popupClassName:b,popupOffset:v,popupStyle:y,popup:n.createElement(Y,{mode:"horizontal"===ek?"vertical":ek},n.createElement(eQ,{id:eE,ref:J},p)),disabled:G,onVisibleChange:ex},eS)}var eC=n.createElement(D.A.Item,(0,l.A)({ref:t,role:"none"},$,{component:"li",style:r,className:s()(K,"".concat(K,"-").concat(M),i,(0,c.A)((0,c.A)((0,c.A)((0,c.A)({},"".concat(K,"-open"),eo),"".concat(K,"-active"),eb),"".concat(K,"-selected"),ea),"".concat(K,"-disabled"),G)),onMouseEnter:em,onMouseLeave:eg}),eS,!j&&n.createElement(e7,{id:eE,open:eo,keyPath:W},p));return U&&(eC=U(eC,e,{selected:ea,active:eb,open:eo,disabled:G})),n.createElement(Y,{onItemClick:ew,mode:"horizontal"===M?"vertical":M,itemIcon:Q,expandIcon:ee},eC)});let tn=n.forwardRef(function(e,t){var r,i=e.eventKey,o=e.children,a=er(i),s=e1(o,a),c=ee();return n.useEffect(function(){if(c)return c.registerPath(i,a),function(){c.unregisterPath(i,a)}},[a]),r=c?s:n.createElement(tr,(0,l.A)({ref:t},e),s),n.createElement(et.Provider,{value:a},r)});var ti=r(24366);function to(e){var t=e.className,r=e.style,i=n.useContext(X).prefixCls;return ee()?null:n.createElement("li",{role:"separator",className:s()("".concat(i,"-item-divider"),t),style:r})}var ta=["className","title","eventKey","children"],ts=n.forwardRef(function(e,t){var r=e.className,i=e.title,o=(e.eventKey,e.children),a=(0,f.A)(e,ta),c=n.useContext(X).prefixCls,u="".concat(c,"-item-group");return n.createElement("li",(0,l.A)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:s()(u,r)}),n.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"==typeof i?i:void 0},i),n.createElement("ul",{role:"group",className:"".concat(u,"-list")},o))});let tl=n.forwardRef(function(e,t){var r=e.eventKey,i=e1(e.children,er(r));return ee()?i:n.createElement(ts,(0,l.A)({ref:t},(0,C.A)(e,["warnKey"])),i)});var tc=["label","children","key","type","extra"];function tu(e,t,r){var i=t.item,o=t.group,a=t.submenu,s=t.divider;return(e||[]).map(function(e,c){if(e&&"object"===(0,ti.A)(e)){var u=e,d=u.label,h=u.children,p=u.key,m=u.type,g=u.extra,b=(0,f.A)(u,tc),v=null!=p?p:"tmp-".concat(c);return h||"group"===m?"group"===m?n.createElement(o,(0,l.A)({key:v},b,{title:d}),tu(h,t,r)):n.createElement(a,(0,l.A)({key:v},b,{title:d}),tu(h,t,r)):"divider"===m?n.createElement(s,(0,l.A)({key:v},b)):n.createElement(i,(0,l.A)({key:v},b,{extra:g}),d,(!!g||0===g)&&n.createElement("span",{className:"".concat(r,"-item-extra")},g))}return null}).filter(function(e){return e})}function tf(e,t,r,n,i){var o=e,a=(0,z.A)({divider:to,item:eX,group:tl,submenu:tn},n);return t&&(o=tu(t,a,i)),e1(o,r)}var td=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],th=[],tp=n.forwardRef(function(e,t){var r,i=e,o=i.prefixCls,a=void 0===o?"rc-menu":o,d=i.rootClassName,h=i.style,p=i.className,m=i.tabIndex,g=void 0===m?0:m,b=i.items,v=i.children,y=i.direction,w=i.id,x=i.mode,A=void 0===x?"vertical":x,E=i.inlineCollapsed,_=i.disabled,S=i.disabledOverflow,$=i.subMenuOpenDelay,C=void 0===$?.1:$,O=i.subMenuCloseDelay,M=void 0===O?.1:O,I=i.forceSubMenuRender,R=i.defaultOpenKeys,j=i.openKeys,T=i.activeKey,N=i.defaultActiveFirst,P=i.selectable,B=void 0===P||P,H=i.multiple,W=void 0!==H&&H,V=i.defaultSelectedKeys,K=i.selectedKeys,G=i.onSelect,X=i.onDeselect,Z=i.inlineIndent,J=void 0===Z?24:Z,ee=i.motion,et=i.defaultMotions,er=i.triggerSubMenuAction,eo=void 0===er?"hover":er,ea=i.builtinPlacements,es=i.itemIcon,el=i.expandIcon,ec=i.overflowedIndicator,eu=void 0===ec?"...":ec,ef=i.overflowedIndicatorPopupClassName,ed=i.getPopupContainer,eh=i.onClick,ep=i.onOpenChange,em=i.onKeyDown,eg=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),eb=i._internalRenderSubMenuItem,ev=i._internalComponents,ey=(0,f.A)(i,td),ex=n.useMemo(function(){return[tf(v,b,th,ev,a),tf(v,b,th,{},a)]},[v,b,ev]),e_=(0,u.A)(ex,2),eS=e_[0],e$=e_[1],ek=n.useState(!1),eI=(0,u.A)(ek,2),eR=eI[0],eT=eI[1],eN=n.useRef(),eP=ej(w),eB="rtl"===y,ez=(0,k.A)(R,{value:j,postState:function(e){return e||th}}),eL=(0,u.A)(ez,2),eD=eL[0],eF=eL[1],eU=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(){eF(e),null==ep||ep(e)}t?(0,U.flushSync)(r):r()},eq=n.useState(eD),eW=(0,u.A)(eq,2),eV=eW[0],eK=eW[1],eG=n.useRef(!1),eZ=n.useMemo(function(){return("inline"===A||"vertical"===A)&&E?["vertical",E]:[A,!1]},[A,E]),eY=(0,u.A)(eZ,2),eJ=eY[0],eQ=eY[1],e0="inline"===eJ,e1=n.useState(eJ),e2=(0,u.A)(e1,2),e6=e2[0],e3=e2[1],e5=n.useState(eQ),e4=(0,u.A)(e5,2),e8=e4[0],e9=e4[1];n.useEffect(function(){e3(eJ),e9(eQ),eG.current&&(e0?eF(eV):eU(th))},[eJ,eQ]);var e7=n.useState(0),te=(0,u.A)(e7,2),tt=te[0],tr=te[1],ti=tt>=eS.length-1||"horizontal"!==e6||S;n.useEffect(function(){e0&&eK(eD)},[eD]),n.useEffect(function(){return eG.current=!0,function(){eG.current=!1}},[]);var to=eO(),ta=to.registerPath,ts=to.unregisterPath,tl=to.refreshOverflowKeys,tc=to.isSubPathKey,tu=to.getKeyPath,tp=to.getKeys,tm=to.getSubPathKeys,tg=n.useMemo(function(){return{registerPath:ta,unregisterPath:ts}},[ta,ts]),tb=n.useMemo(function(){return{isSubPathKey:tc}},[tc]);n.useEffect(function(){tl(ti?th:eS.slice(tt+1).map(function(e){return e.key}))},[tt,ti]);var tv=(0,k.A)(T||N&&(null==(r=eS[0])?void 0:r.key),{value:T}),ty=(0,u.A)(tv,2),tw=ty[0],tx=ty[1],tA=eM(function(e){tx(e)}),tE=eM(function(){tx(void 0)});(0,n.useImperativeHandle)(t,function(){return{list:eN.current,focus:function(e){var t,r,n=eA(tp(),eP),i=n.elements,o=n.key2element,a=n.element2key,s=ew(eN.current,i),l=null!=tw?tw:s[0]?a.get(s[0]):null==(t=eS.find(function(e){return!e.props.disabled}))?void 0:t.key,c=o.get(l);l&&c&&(null==c||null==(r=c.focus)||r.call(c,e))}}});var t_=(0,k.A)(V||[],{value:K,postState:function(e){return Array.isArray(e)?e:null==e?th:[e]}}),tS=(0,u.A)(t_,2),t$=tS[0],tk=tS[1],tC=function(e){if(B){var t,r=e.key,n=t$.includes(r);tk(t=W?n?t$.filter(function(e){return e!==r}):[].concat((0,L.A)(t$),[r]):[r]);var i=(0,z.A)((0,z.A)({},e),{},{selectedKeys:t});n?null==X||X(i):null==G||G(i)}!W&&eD.length&&"inline"!==e6&&eU(th)},tO=eM(function(e){null==eh||eh(eH(e)),tC(e)}),tM=eM(function(e,t){var r=eD.filter(function(t){return t!==e});if(t)r.push(e);else if("inline"!==e6){var n=tm(e);r=r.filter(function(e){return!n.has(e)})}(0,F.A)(eD,r,!0)||eU(r,!0)}),tI=eE(e6,tw,eB,eP,eN,tp,tu,tx,function(e,t){var r=null!=t?t:!eD.includes(e);tM(e,r)},em);n.useEffect(function(){eT(!0)},[]);var tR=n.useMemo(function(){return{_internalRenderMenuItem:eg,_internalRenderSubMenuItem:eb}},[eg,eb]),tj="horizontal"!==e6||S?eS:eS.map(function(e,t){return n.createElement(Y,{key:e.key,overflowDisabled:t>tt},e)}),tT=n.createElement(D.A,(0,l.A)({id:w,ref:eN,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:eX,className:s()(a,"".concat(a,"-root"),"".concat(a,"-").concat(e6),p,(0,c.A)((0,c.A)({},"".concat(a,"-inline-collapsed"),e8),"".concat(a,"-rtl"),eB),d),dir:y,style:h,role:"menu",tabIndex:g,data:tj,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,r=t?eS.slice(-t):null;return n.createElement(tn,{eventKey:eC,title:eu,disabled:ti,internalPopupClose:0===t,popupClassName:ef},r)},maxCount:"horizontal"!==e6||S?D.A.INVALIDATE:D.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tr(e)},onKeyDown:tI},ey));return n.createElement(ei.Provider,{value:tR},n.createElement(q.Provider,{value:eP},n.createElement(Y,{prefixCls:a,rootClassName:d,mode:e6,openKeys:eD,rtl:eB,disabled:_,motion:eR?ee:null,defaultMotions:eR?et:null,activeKey:tw,onActive:tA,onInactive:tE,selectedKeys:t$,inlineIndent:J,subMenuOpenDelay:C,subMenuCloseDelay:M,forceSubMenuRender:I,builtinPlacements:ea,triggerSubMenuAction:eo,getPopupContainer:ed,itemIcon:es,expandIcon:el,onItemClick:tO,onOpenChange:tM},n.createElement(en.Provider,{value:tb},tT),n.createElement("div",{style:{display:"none"},"aria-hidden":!0},n.createElement(Q.Provider,{value:tg},e$)))))});tp.Item=eX,tp.SubMenu=tn,tp.ItemGroup=tl,tp.Divider=to;let tm=tp;var tg=r(4751);let tb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var tv=r(52372),ty=function(e,t){return n.createElement(tv.A,(0,l.A)({},e,{ref:t,icon:tb}))};let tw=n.forwardRef(ty);var tx=r(18697);let tA=(0,n.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var tE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let t_=e=>{let{prefixCls:t,className:r,dashed:i}=e,o=tE(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=n.useContext(P.QO),l=a("menu",t),c=s()({[`${l}-item-divider-dashed`]:!!i},r);return n.createElement(to,Object.assign({className:c},o))};var tS=r(52646);let t$=e=>{var t;let{className:r,children:i,icon:o,title:a,danger:l,extra:c}=e,{prefixCls:u,firstLevel:f,direction:d,disableMenuItemTitleTooltip:h,inlineCollapsed:p}=n.useContext(tA),m=e=>{let t=null==i?void 0:i[0],r=n.createElement("span",{className:s()(`${u}-title-content`,{[`${u}-title-content-with-extra`]:!!c||0===c})},i);return(!o||n.isValidElement(i)&&"span"===i.type)&&i&&e&&f&&"string"==typeof t?n.createElement("div",{className:`${u}-inline-collapsed-noicon`},t.charAt(0)):r},{siderCollapsed:g}=n.useContext(tg.P),b=a;void 0===a?b=f?i:"":!1===a&&(b="");let v={title:b};g||p||(v.title=null,v.open=!1);let y=(0,e0.A)(i).length,w=n.createElement(eX,Object.assign({},(0,C.A)(e,["title","icon","danger"]),{className:s()({[`${u}-item-danger`]:l,[`${u}-item-only-child`]:(o?y+1:y)===1},r),title:"string"==typeof a?a:void 0}),(0,j.Ob)(o,{className:s()(n.isValidElement(o)?null==(t=o.props)?void 0:t.className:void 0,`${u}-item-icon`)}),m(p));return h||(w=n.createElement(tS.A,Object.assign({},v,{placement:"rtl"===d?"left":"right",classNames:{root:`${u}-inline-collapsed-tooltip`}}),w)),w};var tk=r(643),tC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let tO=n.createContext(null),tM=n.forwardRef((e,t)=>{let{children:r}=e,i=tC(e,["children"]),o=n.useContext(tO),a=n.useMemo(()=>Object.assign(Object.assign({},o),i),[o,i.prefixCls,i.mode,i.selectable,i.rootClassName]),s=(0,h.H3)(r),l=(0,h.xK)(t,s?(0,h.A9)(r):null);return n.createElement(tO.Provider,{value:a},n.createElement(tk.A,{space:!0},s?n.cloneElement(r,{ref:l}):r))}),tI=tO;var tR=r(59296),tj=r(98494),tT=r(96619),tN=r(93683),tP=r(4551),tB=r(64671),tz=r(72056),tL=r(63930);let tD=e=>{let{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${(0,tR.zA)(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
22
+ > ${t}-item-active,
23
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:`border-color ${r},background ${r}`},[`${t}-submenu-arrow`]:{display:"none"}}}},tF=({componentCls:e,menuArrowOffset:t,calc:r})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
24
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,tR.zA)(r(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,tR.zA)(t)})`}}}}),tH=e=>(0,tT.jk)(e),tU=(e,t)=>{let{componentCls:r,itemColor:n,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:d,motionDurationSlow:h,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:b,itemHoverColor:v,lineType:y,colorSplit:w,itemDisabledColor:x,dangerItemColor:A,dangerItemHoverColor:E,dangerItemSelectedColor:_,dangerItemActiveBg:S,dangerItemSelectedBg:$,popupBg:k,itemHoverBg:C,itemActiveBg:O,menuSubMenuBg:M,horizontalItemSelectedColor:I,horizontalItemSelectedBg:R,horizontalItemBorderRadius:j,horizontalItemHoverBg:T}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:s,[`&${r}-root:focus-visible`]:Object.assign({},tH(e)),[`${r}-item`]:{"&-group-title, &-extra":{color:a}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:o},[`${r}-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},tH(e))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${x} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:v}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:C},"&:active":{backgroundColor:O}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:C},"&:active":{backgroundColor:O}}},[`${r}-item-danger`]:{color:A,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:E}},[`&${r}-item:active`]:{background:S}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:i,[`&${r}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:c,[`&${r}-item-danger`]:{backgroundColor:$}},[`&${r}-submenu > ${r}`]:{backgroundColor:M},[`&${r}-popup > ${r}`]:{backgroundColor:k},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:k},[`&${r}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${(0,tR.zA)(u)} solid transparent`,transition:`border-color ${h} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${(0,tR.zA)(d)} ${y} ${w}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:l},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,tR.zA)(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:`transform ${b} ${m},opacity ${b} ${m}`,content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:`transform ${b} ${p},opacity ${b} ${p}`}}}}}},tq=e=>{let{componentCls:t,itemHeight:r,itemMarginInline:n,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:(0,tR.zA)(r),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:s,width:l},[`> ${t}-item,
25
+ > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:(0,tR.zA)(r)},[`${t}-item-group-list ${t}-submenu-title,
26
+ ${t}-submenu-title`]:{paddingInlineEnd:u}}},tW=e=>{let{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:d,paddingXS:h,boxShadowSecondary:p,collapsedWidth:m,collapsedIconSize:g}=e,b={height:n,lineHeight:(0,tR.zA)(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},tq(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},tq(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${(0,tR.zA)(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:`border-color ${d},background ${d},padding ${f} ${s}`,[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,
27
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
28
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
29
+ > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,tR.zA)(e.calc(g).div(2).equal())} - ${(0,tR.zA)(c)})`,textOverflow:"clip",[`
30
+ ${t}-submenu-arrow,
31
+ ${t}-submenu-expand-icon
32
+ `]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:g,lineHeight:(0,tR.zA)(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},tT.L9),{paddingInline:h})}}]},tV=e=>{let{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:`border-color ${r},background ${r},padding calc(${r} + 0.1s) ${i}`,[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:`font-size ${n} ${o},margin ${r} ${i},color ${r}`,"+ span":{marginInlineStart:l,opacity:1,transition:`opacity ${r} ${i},margin ${r},color ${r}`}},[`${t}-item-icon`]:Object.assign({},(0,tT.Nk)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tK=e=>{let{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${n}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:`background ${r} ${n},transform ${r} ${n},top ${r} ${n},color ${r} ${n}`,content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,tR.zA)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,tR.zA)(a)})`}}}}},tG=e=>{let{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:d,subMenuItemBorderRadius:h,menuArrowSize:p,menuArrowOffset:m,lineType:g,groupTitleLineHeight:b,groupTitleFontSize:v}=e;return[{"":{[r]:Object.assign(Object.assign({},(0,tT.t6)()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,tT.dF)(e)),(0,tT.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${(0,tR.zA)(s)} ${(0,tR.zA)(l)}`,fontSize:v,lineHeight:b,transition:`all ${i}`},[`&-horizontal ${r}-submenu`]:{transition:`border-color ${i} ${a},background ${i} ${a}`},[`${r}-submenu, ${r}-submenu-inline`]:{transition:`border-color ${i} ${a},background ${i} ${a},padding ${o} ${a}`},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:`background ${i} ${a},padding ${i} ${a}`},[`${r}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tV(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${(0,tR.zA)(e.calc(n).mul(2).equal())} ${(0,tR.zA)(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:d},tV(e)),tK(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:h},[`${r}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},[`
33
+ &-placement-leftTop,
34
+ &-placement-bottomRight,
35
+ `]:{transformOrigin:"100% 0"},[`
36
+ &-placement-leftBottom,
37
+ &-placement-topRight,
38
+ `]:{transformOrigin:"100% 100%"},[`
39
+ &-placement-rightBottom,
40
+ &-placement-topLeft,
41
+ `]:{transformOrigin:"0 100%"},[`
42
+ &-placement-bottomLeft,
43
+ &-placement-rightTop,
44
+ `]:{transformOrigin:"0 0"},[`
45
+ &-placement-leftTop,
46
+ &-placement-leftBottom
47
+ `]:{paddingInlineEnd:e.paddingXS},[`
48
+ &-placement-rightTop,
49
+ &-placement-rightBottom
50
+ `]:{paddingInlineStart:e.paddingXS},[`
51
+ &-placement-topRight,
52
+ &-placement-topLeft
53
+ `]:{paddingBottom:e.paddingXS},[`
54
+ &-placement-bottomRight,
55
+ &-placement-bottomLeft
56
+ `]:{paddingTop:e.paddingXS}}}),tK(e)),{[`&-inline-collapsed ${r}-submenu-arrow,
57
+ &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,tR.zA)(m)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,tR.zA)(e.calc(m).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${(0,tR.zA)(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,tR.zA)(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,tR.zA)(m)})`}}})},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},tX=e=>{var t,r,n;let{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:d,lineWidth:h,lineWidthBold:p,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:w,padding:x,fontSize:A,controlHeightSM:E,fontSizeLG:_,colorTextLightSolid:S,colorErrorHover:$}=e,k=null!=(t=e.activeBarWidth)?t:0,C=null!=(r=e.activeBarBorderWidth)?r:h,O=null!=(n=e.itemMarginInline)?n:e.marginXXS,M=new tj.Y(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:d,itemActiveBg:m,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:k,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:h,activeBarBorderWidth:C,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:O,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:`${1.15*b}px`,iconSize:A,iconMarginInlineEnd:E-A,collapsedIconSize:_,groupTitleFontSize:A,darkItemDisabledColor:new tj.Y(S).setA(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:S,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:o,itemWidth:k?`calc(100% + ${C}px)`:`calc(100% - ${2*O}px)`}},tZ=(e,t=e,r=!0)=>(0,tz.OF)("Menu",e=>{let{colorBgElevated:t,controlHeightLG:r,fontSize:n,darkItemColor:i,darkDangerItemColor:o,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:f,darkGroupTitleColor:d,darkItemHoverColor:h,darkItemDisabledColor:p,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:b,popupBg:v,darkPopupBg:y}=e,w=e.calc(n).div(7).mul(5).equal(),x=(0,tL.oX)(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(r).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),A=(0,tL.oX)(x,{itemColor:i,itemHoverColor:h,groupTitleColor:d,itemSelectedColor:l,subMenuItemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:f,itemDisabledColor:p,dangerItemColor:o,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:b,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[tG(x),tD(x),tW(x),tU(x,"light"),tU(A,"dark"),tF(x),(0,tN.A)(x),(0,tP._j)(x,"slide-up"),(0,tP._j)(x,"slide-down"),(0,tB.aB)(x,"zoom-big")]},tX,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,t),tY=e=>{var t;let r,{popupClassName:i,icon:o,title:a,theme:l}=e,c=n.useContext(tA),{prefixCls:u,inlineCollapsed:f,theme:d}=c,h=er();if(o){let e=n.isValidElement(a)&&"span"===a.type;r=n.createElement(n.Fragment,null,(0,j.Ob)(o,{className:s()(n.isValidElement(o)?null==(t=o.props)?void 0:t.className:void 0,`${u}-item-icon`)}),e?a:n.createElement("span",{className:`${u}-title-content`},a))}else r=f&&!h.length&&a&&"string"==typeof a?n.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):n.createElement("span",{className:`${u}-title-content`},a);let p=n.useMemo(()=>Object.assign(Object.assign({},c),{firstLevel:!1}),[c]),[m]=(0,O.YK)("Menu");return n.createElement(tA.Provider,{value:p},n.createElement(tn,Object.assign({},(0,C.A)(e,["icon"]),{title:r,popupClassName:s()(u,i,`${u}-${l||d}`),popupStyle:Object.assign({zIndex:m},e.popupStyle)})))};var tJ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function tQ(e){return null===e||!1===e}let t0={item:t$,submenu:tY,divider:t_},t1=(0,n.forwardRef)((e,t)=>{var r;let i=n.useContext(tI),o=i||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:u}=n.useContext(P.QO),f=a(),{prefixCls:d,className:h,style:p,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:v,siderCollapsed:y,rootClassName:w,mode:x,selectable:A,onClick:E,overflowedIndicatorPopupClassName:_}=e,S=tJ(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=(0,C.A)(S,["collapsedWidth"]);null==(r=o.validator)||r.call(o,{mode:x});let O=(0,$.A)((...e)=>{var t;null==E||E.apply(void 0,e),null==(t=o.onClick)||t.call(o)}),M=o.mode||x,I=null!=A?A:o.selectable,R=null!=v?v:y,T={horizontal:{motionName:`${f}-slide-up`},inline:(0,tx.A)(f),other:{motionName:`${f}-zoom-big`}},N=a("menu",d||o.prefixCls),z=(0,B.A)(N),[L,D,F]=tZ(N,z,!i),H=s()(`${N}-${m}`,null==u?void 0:u.className,h),U=n.useMemo(()=>{var e,t;if("function"==typeof g||tQ(g))return g||null;if("function"==typeof o.expandIcon||tQ(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==u?void 0:u.expandIcon)||tQ(null==u?void 0:u.expandIcon))return(null==u?void 0:u.expandIcon)||null;let r=null!=(e=null!=g?g:null==o?void 0:o.expandIcon)?e:null==u?void 0:u.expandIcon;return(0,j.Ob)(r,{className:s()(`${N}-submenu-expand-icon`,n.isValidElement(r)?null==(t=r.props)?void 0:t.className:void 0)})},[g,null==o?void 0:o.expandIcon,null==u?void 0:u.expandIcon,N]),q=n.useMemo(()=>({prefixCls:N,inlineCollapsed:R||!1,direction:c,firstLevel:!0,theme:m,mode:M,disableMenuItemTitleTooltip:b}),[N,R,c,b,m]);return L(n.createElement(tI.Provider,{value:null},n.createElement(tA.Provider,{value:q},n.createElement(tm,Object.assign({getPopupContainer:l,overflowedIndicator:n.createElement(tw,null),overflowedIndicatorPopupClassName:s()(N,`${N}-${m}`,_),mode:M,selectable:I,onClick:O},k,{inlineCollapsed:R,style:Object.assign(Object.assign({},null==u?void 0:u.style),p),className:H,prefixCls:N,direction:c,defaultMotions:T,expandIcon:U,ref:t,rootClassName:s()(w,D,o.rootClassName,F,z),_internalComponents:t0})))))}),t2=(0,n.forwardRef)((e,t)=>{let r=(0,n.useRef)(null),i=n.useContext(tg.P);return(0,n.useImperativeHandle)(t,()=>({menu:r.current,focus:e=>{var t;null==(t=r.current)||t.focus(e)}})),n.createElement(t1,Object.assign({ref:r},e,i))});t2.Item=t$,t2.SubMenu=tY,t2.Divider=t_,t2.ItemGroup=tl;let t6=t2;var t3=r(57873),t5=r(34521),t4=r(771),t8=r(5005);let t9=e=>{let{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:i}=e,o=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:n,"&:hover":{color:i,backgroundColor:n}}}}}},t7=e=>{let{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:i,sizePopupArrow:o,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:d,fontSizeIcon:h,controlPaddingHorizontal:p,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},[`
58
+ &-hidden,
59
+ &-menu-hidden,
60
+ &-menu-submenu-hidden
61
+ `]:{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
62
+ &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
63
+ &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
64
+ &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
65
+ &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
66
+ &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:tP.ox},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
67
+ &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
68
+ &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
69
+ &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
70
+ &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
71
+ &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:tP.nP},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
72
+ &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
73
+ &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:tP.vR},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
74
+ &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
75
+ &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:tP.YU}}},(0,t4.Ay)(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,tT.dF)(e)),{[r]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,tT.K8)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${(0,tR.zA)(c)} ${(0,tR.zA)(p)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,tR.zA)(c)} ${(0,tR.zA)(p)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,tT.K8)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,tR.zA)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:h,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${(0,tR.zA)(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:m,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[(0,tP._j)(e,"slide-up"),(0,tP._j)(e,"slide-down"),(0,t5.Mh)(e,"move-up"),(0,t5.Mh)(e,"move-down"),(0,tB.aB)(e,"zoom-big")]]},re=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,t4.Ke)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,t8.n)(e)),rt=(0,tz.OF)("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:i}=e,o=(0,tL.oX)(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[t7(o),t9(o)]},re,{resetStyle:!1}),rr=e=>{var t;let{menu:r,arrow:a,prefixCls:l,children:c,trigger:u,disabled:f,dropdownRender:d,popupRender:h,getPopupContainer:p,overlayClassName:m,rootClassName:g,overlayStyle:b,open:v,onOpenChange:y,visible:w,onVisibleChange:x,mouseEnterDelay:A=.15,mouseLeaveDelay:E=.1,autoAdjustOverflow:_=!0,placement:R="",overlay:z,transitionName:L,destroyOnHidden:D,destroyPopupOnHide:F}=e,{getPopupContainer:H,getPrefixCls:U,direction:q,dropdown:W}=n.useContext(P.QO),V=h||d;(0,T.rJ)("Dropdown");let K=n.useMemo(()=>{let e=U();return void 0!==L?L:R.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[U,R,L]),G=n.useMemo(()=>R?R.includes("Center")?R.slice(0,R.indexOf("Center")):R:"rtl"===q?"bottomRight":"bottomLeft",[R,q]),X=U("dropdown",l),Z=(0,B.A)(X),[Y,J,Q]=rt(X,Z),[,ee]=(0,t3.Ay)(),et=n.Children.only(M(c)?n.createElement("span",null,c):c),er=(0,j.Ob)(et,{className:s()(`${X}-trigger`,{[`${X}-rtl`]:"rtl"===q},et.props.className),disabled:null!=(t=et.props.disabled)?t:f}),en=f?[]:u,ei=!!(null==en?void 0:en.includes("contextMenu")),[eo,ea]=(0,k.A)(!1,{value:null!=v?v:w}),es=(0,$.A)(e=>{null==y||y(e,{source:"trigger"}),null==x||x(e),ea(e)}),el=s()(m,g,J,Q,Z,null==W?void 0:W.className,{[`${X}-rtl`]:"rtl"===q}),ec=(0,I.A)({arrowPointAtCenter:"object"==typeof a&&a.pointAtCenter,autoAdjustOverflow:_,offset:ee.marginXXS,arrowWidth:a?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),eu=(0,$.A)(()=>{null!=r&&r.selectable&&null!=r&&r.multiple||(null==y||y(!1,{source:"menu"}),ea(!1))}),ef=()=>{let e;return e=(null==r?void 0:r.items)?n.createElement(t6,Object.assign({},r)):"function"==typeof z?z():z,V&&(e=V(e)),e=n.Children.only("string"==typeof e?n.createElement("span",null,e):e),n.createElement(tM,{prefixCls:`${X}-menu`,rootClassName:s()(Q,Z),expandIcon:n.createElement("span",{className:`${X}-menu-submenu-arrow`},"rtl"===q?n.createElement(i.A,{className:`${X}-menu-submenu-arrow-icon`}):n.createElement(o.A,{className:`${X}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:eu,validator:({mode:e})=>{}},e)},[ed,eh]=(0,O.YK)("Dropdown",null==b?void 0:b.zIndex),ep=n.createElement(S,Object.assign({alignPoint:ei},(0,C.A)(e,["rootClassName"]),{mouseEnterDelay:A,mouseLeaveDelay:E,visible:eo,builtinPlacements:ec,arrow:!!a,overlayClassName:el,prefixCls:X,getPopupContainer:p||H,transitionName:K,trigger:en,overlay:ef,placement:G,onVisibleChange:es,overlayStyle:Object.assign(Object.assign(Object.assign({},null==W?void 0:W.style),b),{zIndex:ed}),autoDestroy:null!=D?D:F}),er);return ed&&(ep=n.createElement(N.A.Provider,{value:eh},ep)),Y(ep)},rn=(0,R.A)(rr,"align",void 0,"dropdown",e=>e);rr._InternalPanelDoNotUseOrYouWillBeFired=e=>n.createElement(rn,Object.assign({},e),n.createElement("span",null));let ri=rr;var ro=r(76822);function ra(e){return["small","middle","large"].includes(e)}function rs(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}var rl=r(47495),rc=r(67172);let ru=e=>{let{componentCls:t,borderRadius:r,paddingSM:n,colorBorder:i,paddingXS:o,fontSizeLG:a,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:n,margin:0,background:u,borderWidth:f,borderStyle:"solid",borderColor:i,borderRadius:r,"&-large":{fontSize:a,borderRadius:l},"&-small":{paddingInline:o,borderRadius:c,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},(0,rc.G)(e,{focus:!1})]}},rf=(0,tz.OF)(["Space","Addon"],e=>[ru(e)]);var rd=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let rh=n.forwardRef((e,t)=>{let{className:r,children:i,style:o,prefixCls:a}=e,l=rd(e,["className","children","style","prefixCls"]),{getPrefixCls:c,direction:u}=n.useContext(P.QO),f=c("space-addon",a),[d,h,p]=rf(f),{compactItemClassnames:m,compactSize:g}=(0,rl.RQ)(f,u),b=s()(f,h,m,p,{[`${f}-${g}`]:g},r);return d(n.createElement("div",Object.assign({ref:t,className:b,style:o},l),i))}),rp=n.createContext({latestIndex:0}),rm=rp.Provider,rg=({className:e,index:t,children:r,split:i,style:o})=>{let{latestIndex:a}=n.useContext(rp);return null==r?null:n.createElement(n.Fragment,null,n.createElement("div",{className:e,style:o},r),t<a&&i&&n.createElement("span",{className:`${e}-split`},i))},rb=e=>{let{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},rv=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},ry=(0,tz.OF)("Space",e=>{let t=(0,tL.oX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[rb(t),rv(t)]},()=>({}),{resetStyle:!1});var rw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let rx=n.forwardRef((e,t)=>{var r;let{getPrefixCls:i,direction:o,size:a,className:l,style:c,classNames:u,styles:f}=(0,P.TP)("space"),{size:d=null!=a?a:"small",align:h,className:p,rootClassName:m,children:g,direction:b="horizontal",prefixCls:v,split:y,style:w,wrap:x=!1,classNames:A,styles:E}=e,_=rw(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,$]=Array.isArray(d)?d:[d,d],k=ra($),C=ra(S),O=rs($),M=rs(S),I=(0,e0.A)(g,{keepEmpty:!0}),R=void 0===h&&"horizontal"===b?"center":h,j=i("space",v),[T,N,B]=ry(j),z=s()(j,l,N,`${j}-${b}`,{[`${j}-rtl`]:"rtl"===o,[`${j}-align-${R}`]:R,[`${j}-gap-row-${$}`]:k,[`${j}-gap-col-${S}`]:C},p,m,B),L=s()(`${j}-item`,null!=(r=null==A?void 0:A.item)?r:u.item),D=Object.assign(Object.assign({},f.item),null==E?void 0:E.item),F=I.map((e,t)=>{let r=(null==e?void 0:e.key)||`${L}-${t}`;return n.createElement(rg,{className:L,key:r,index:t,split:y,style:D},e)}),H=n.useMemo(()=>({latestIndex:I.reduce((e,t,r)=>null!=t?r:e,0)}),[I]);if(0===I.length)return null;let U={};return x&&(U.flexWrap="wrap"),!C&&M&&(U.columnGap=S),!k&&O&&(U.rowGap=$),T(n.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},U),c),w)},_),n.createElement(rm,{value:H},F)))});rx.Compact=rl.Ay,rx.Addon=rh;let rA=rx;var rE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let r_=e=>{let{getPopupContainer:t,getPrefixCls:r,direction:i}=n.useContext(P.QO),{prefixCls:o,type:a="default",danger:l,disabled:c,loading:u,onClick:f,htmlType:d,children:h,className:p,menu:m,arrow:g,autoFocus:b,overlay:v,trigger:y,align:w,open:x,onOpenChange:A,placement:E,getPopupContainer:_,href:S,icon:$=n.createElement(tw,null),title:k,buttonsRender:C=e=>e,mouseEnterDelay:O,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:R,destroyOnHidden:j,destroyPopupOnHide:T,dropdownRender:N,popupRender:B}=e,z=rE(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),L=r("dropdown",o),D=`${L}-button`,F={menu:m,arrow:g,autoFocus:b,align:w,disabled:c,trigger:c?[]:y,onOpenChange:A,getPopupContainer:_||t,mouseEnterDelay:O,mouseLeaveDelay:M,overlayClassName:I,overlayStyle:R,destroyOnHidden:j,popupRender:B||N},{compactSize:H,compactItemClassnames:U}=(0,rl.RQ)(L,i),q=s()(D,U,p);"destroyPopupOnHide"in e&&(F.destroyPopupOnHide=T),"overlay"in e&&(F.overlay=v),"open"in e&&(F.open=x),"placement"in e?F.placement=E:F.placement="rtl"===i?"bottomLeft":"bottomRight";let[W,V]=C([n.createElement(ro.Ay,{type:a,danger:l,disabled:c,loading:u,onClick:f,htmlType:d,href:S,title:k},h),n.createElement(ro.Ay,{type:a,danger:l,icon:$})]);return n.createElement(rA.Compact,Object.assign({className:q,size:H,block:!0},z),W,n.createElement(ri,Object.assign({},F),V))};r_.__ANT_BUTTON=!0;let rS=ri;rS.Button=r_;let r$=rS},42767(e,t,r){"use strict";r.d(t,{$W:()=>u,Op:()=>l,Pp:()=>d,XB:()=>f,cK:()=>a,hb:()=>c,jC:()=>s});var n=r(22155),i=r(49859),o=r(46604);let a=n.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),s=n.createContext(null),l=e=>{let t=(0,o.A)(e,["prefixCls"]);return n.createElement(i.Op,Object.assign({},t))},c=n.createContext({prefixCls:""}),u=n.createContext({}),f=({children:e,status:t,override:r})=>{let i=n.useContext(u),o=n.useMemo(()=>{let e=Object.assign({},i);return r&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,r,i]);return n.createElement(u.Provider,{value:o},e)},d=n.createContext(void 0)},79584(e,t,r){"use strict";r.d(t,{A:()=>v,H:()=>g});var n=r(22155),i=r(49859),o=r(73003);let a=e=>"object"==typeof e&&null!=e&&1===e.nodeType,s=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,l=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r=getComputedStyle(e,null);return s(r.overflowY,t)||s(r.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},c=(e,t,r,n,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=r||a>=t&&s>=r?o-e-n:a>t&&s<r||o<e&&s>r?a-t+i:0,u=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},f=(e,t)=>{var r,n,i,o;if("u"<typeof document)return[];let{scrollMode:s,block:f,inline:d,boundary:h,skipOverflowHiddenElements:p}=t,m="function"==typeof h?h:e=>e!==h;if(!a(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,b=[],v=e;for(;a(v)&&m(v);){if((v=u(v))===g){b.push(v);break}null!=v&&v===document.body&&l(v)&&!l(document.documentElement)||null!=v&&l(v,p)&&b.push(v)}let y=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,w=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:x,scrollY:A}=window,{height:E,width:_,top:S,right:$,bottom:k,left:C}=e.getBoundingClientRect(),{top:O,right:M,bottom:I,left:R}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),j="start"===f||"nearest"===f?S-O:"end"===f?k+I:S+E/2-O+I,T="center"===d?C+_/2-R+M:"end"===d?$+M:C-R,N=[];for(let e=0;e<b.length;e++){let t=b[e],{height:r,width:n,top:i,right:o,bottom:a,left:u}=t.getBoundingClientRect();if("if-needed"===s&&S>=0&&C>=0&&k<=w&&$<=y&&(t===g&&!l(t)||S>=i&&k<=a&&C>=u&&$<=o))break;let h=getComputedStyle(t),p=parseInt(h.borderLeftWidth,10),m=parseInt(h.borderTopWidth,10),v=parseInt(h.borderRightWidth,10),O=parseInt(h.borderBottomWidth,10),M=0,I=0,R="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-v:0,P="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-O:0,B="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,z="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(g===t)M="start"===f?j:"end"===f?j-w:"nearest"===f?c(A,A+w,w,m,O,A+j,A+j+E,E):j-w/2,I="start"===d?T:"center"===d?T-y/2:"end"===d?T-y:c(x,x+y,y,p,v,x+T,x+T+_,_),M=Math.max(0,M+A),I=Math.max(0,I+x);else{M="start"===f?j-i-m:"end"===f?j-a+O+P:"nearest"===f?c(i,a,r,m,O+P,j,j+E,E):j-(i+r/2)+P/2,I="start"===d?T-u-p:"center"===d?T-(u+n/2)+R/2:"end"===d?T-o+v+R:c(u,o,n,p,v+R,T,T+_,_);let{scrollLeft:e,scrollTop:s}=t;M=0===z?0:Math.max(0,Math.min(s+M/z,t.scrollHeight-r/z+P)),I=0===B?0:Math.max(0,Math.min(e+I/B,t.scrollWidth-n/B+R)),j+=s-M,T+=e-I}N.push({el:t,top:M,left:I})}return N},d=e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"};function h(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(f(e,t));let i="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:o,left:a}of f(e,d(t))){let e=o-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:i})}}var p=r(40174),m=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function g(e){return(0,p.$r)(e).join("_")}function b(e,t){let r=t.getFieldInstance(e),n=(0,o.rb)(r);if(n)return n;let i=(0,p.kV)((0,p.$r)(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function v(e){let[t]=(0,i.mN)(),r=n.useRef({}),o=n.useMemo(()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{let n=g(e);t?r.current[n]=t:delete r.current[n]}},scrollToField:(e,t={})=>{let{focus:r}=t,n=m(t,["focus"]),i=b(e,o);i&&(h(i,Object.assign({scrollMode:"if-needed",block:"nearest"},n)),r&&o.focusField(e))},focusField:e=>{var t,r;let n=o.getFieldInstance(e);"function"==typeof(null==n?void 0:n.focus)?n.focus():null==(r=null==(t=b(e,o))?void 0:t.focus)||r.call(t)},getFieldInstance:e=>{let t=g(e);return r.current[t]}}),[e,t]);return[o]}},75254(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(22155),i=r(65289),o=r(42767);let a=(e,t,r)=>{var a,s;let l,{variant:c,[e]:u}=n.useContext(i.QO),f=n.useContext(o.Pp),d=null==u?void 0:u.variant;l=void 0!==t?t:!1===r?"borderless":null!=(s=null!=(a=null!=f?f:d)?a:c)?s:"outlined";let h=i.lJ.includes(l);return[l,h]}},79164(e,t,r){"use strict";r.d(t,{A:()=>eB});var n=r(42767),i=r(78944),o=r(22155),a=r(30395),s=r.n(a),l=r(8890),c=r(18697),u=r(75932);function f(e){let[t,r]=o.useState(e);return o.useEffect(()=>{let t=setTimeout(()=>{r(e)},10*!e.length);return()=>{clearTimeout(t)}},[e]),t}var d=r(59296),h=r(96619),p=r(64671),m=r(93683),g=r(63930),b=r(72056);let v=e=>{let{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
76
+ opacity ${e.motionDurationFast} ${e.motionEaseInOut},
77
+ transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},y=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,d.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus,
78
+ input[type='radio']:focus,
79
+ input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${(0,d.zA)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),w=(e,t)=>{let{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},x=e=>{let{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,h.dF)(e)),y(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},w(e,e.controlHeightSM)),"&-large":Object.assign({},w(e,e.controlHeightLG))})}},A=e=>{let{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:i,labelRequiredMarkColor:o,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},(0,h.dF)(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
80
+ &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:p.nF,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},E=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),_=e=>{let{antCls:t,formItemCls:r}=e;return{[`${r}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`${t}-col-24${r}-label,
81
+ ${t}-col-xl-24${r}-label`]:E(e)}}},S=e=>{let{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
82
+ > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},$=e=>{let{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:E(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},k=e=>{let{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,
83
+ ${n}-col-24${r}-label,
84
+ ${n}-col-xl-24${r}-label`]:E(e)},[`@media (max-width: ${(0,d.zA)(e.screenXSMax)})`]:[$(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:E(e)}}}],[`@media (max-width: ${(0,d.zA)(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:E(e)}}},[`@media (max-width: ${(0,d.zA)(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:E(e)}}},[`@media (max-width: ${(0,d.zA)(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:E(e)}}}}},C=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),O=(e,t)=>(0,g.oX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),M=(0,b.OF)("Form",(e,{rootPrefixCls:t})=>{let r=O(e,t);return[x(r),A(r),v(r),_(r),S(r),k(r),(0,m.A)(r),p.nF]},C,{order:-1e3}),I=[];function R(e,t,r,n=0){return{key:"string"==typeof e?e:`${t}-${n}`,error:e,errorStatus:r}}let j=({help:e,helpStatus:t,errors:r=I,warnings:a=I,className:d,fieldId:h,onVisibleChanged:p})=>{let{prefixCls:m}=o.useContext(n.hb),g=`${m}-item-explain`,b=(0,u.A)(m),[v,y,w]=M(m,b),x=o.useMemo(()=>(0,c.A)(m),[m]),A=f(r),E=f(a),_=o.useMemo(()=>null!=e?[R(e,"help",t)]:[].concat((0,i.A)(A.map((e,t)=>R(e,"error","error",t))),(0,i.A)(E.map((e,t)=>R(e,"warning","warning",t)))),[e,t,A,E]),S=o.useMemo(()=>{let e={};return _.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),_.map((t,r)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${r}`:t.key}))},[_]),$={};return h&&($.id=`${h}_help`),v(o.createElement(l.Ay,{motionDeadline:x.motionDeadline,motionName:`${m}-show-help`,visible:!!S.length,onVisibleChanged:p},e=>{let{className:t,style:r}=e;return o.createElement("div",Object.assign({},$,{className:s()(g,t,w,b,d,y),style:r}),o.createElement(l.aF,Object.assign({keys:S},(0,c.A)(m),{motionName:`${m}-show-help-item`,component:!1}),e=>{let{key:t,error:r,errorStatus:n,className:i,style:a}=e;return o.createElement("div",{key:t,className:s()(i,{[`${g}-${n}`]:n}),style:a},r)}))}))};var T=r(49859),N=r(65289),P=r(87673),B=r(27147),z=r(82666),L=r(79584),D=r(91657),F=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let H=(e,t)=>{let r=o.useContext(P.A),{getPrefixCls:i,direction:a,requiredMark:l,colon:c,scrollToFirstError:f,className:d,style:h}=(0,N.TP)("form"),{prefixCls:p,className:m,rootClassName:g,size:b,disabled:v=r,form:y,colon:w,labelAlign:x,labelWrap:A,labelCol:E,wrapperCol:_,hideRequiredMark:S,layout:$="horizontal",scrollToFirstError:k,requiredMark:C,onFinishFailed:O,name:I,style:R,feedbackIcons:j,variant:H}=e,U=F(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),q=(0,B.A)(b),W=o.useContext(D.A),V=o.useMemo(()=>void 0!==C?C:!S&&(void 0===l||l),[S,C,l]),K=null!=w?w:c,G=i("form",p),X=(0,u.A)(G),[Z,Y,J]=M(G,X),Q=s()(G,`${G}-${$}`,{[`${G}-hide-required-mark`]:!1===V,[`${G}-rtl`]:"rtl"===a,[`${G}-${q}`]:q},J,X,Y,d,m,g),[ee]=(0,L.A)(y),{__INTERNAL__:et}=ee;et.name=I;let er=o.useMemo(()=>({name:I,labelAlign:x,labelCol:E,labelWrap:A,wrapperCol:_,layout:$,colon:K,requiredMark:V,itemRef:et.itemRef,form:ee,feedbackIcons:j}),[I,x,E,_,$,K,V,ee,j]),en=o.useRef(null);o.useImperativeHandle(t,()=>{var e;return Object.assign(Object.assign({},ee),{nativeElement:null==(e=en.current)?void 0:e.nativeElement})});let ei=(e,t)=>{if(e){let r={block:"nearest"};"object"==typeof e&&(r=Object.assign(Object.assign({},r),e)),ee.scrollToField(t,r)}},eo=e=>{if(null==O||O(e),e.errorFields.length){let t=e.errorFields[0].name;if(void 0!==k)return void ei(k,t);void 0!==f&&ei(f,t)}};return Z(o.createElement(n.Pp.Provider,{value:H},o.createElement(P.X,{disabled:v},o.createElement(z.A.Provider,{value:q},o.createElement(n.Op,{validateMessages:W},o.createElement(n.cK.Provider,{value:er},o.createElement(n.XB,{status:!0},o.createElement(T.Ay,Object.assign({id:I},U,{name:I,onFinishFailed:eo,form:ee,ref:en,style:Object.assign(Object.assign({},h),R),className:Q})))))))))},U=o.forwardRef(H);var q=r(74548),W=r(75252),V=r(21968),K=r(53575),G=r(54355);function X(e){if("function"==typeof e)return e;let t=(0,G.A)(e);return t.length<=1?t[0]:t}let Z=()=>{let{status:e,errors:t=[],warnings:r=[]}=o.useContext(n.$W);return{status:e,errors:t,warnings:r}};Z.Context=n.$W;let Y=Z;var J=r(23504);function Q(e){let[t,r]=o.useState(e),n=o.useRef(null),i=o.useRef([]),a=o.useRef(!1);return o.useEffect(()=>(a.current=!1,()=>{a.current=!0,J.A.cancel(n.current),n.current=null}),[]),[t,function(e){a.current||(null===n.current&&(i.current=[],n.current=(0,J.A)(()=>{n.current=null,r(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}]}function ee(){let{itemRef:e}=o.useContext(n.cK),t=o.useRef({});return function(r,n){let i=n&&"object"==typeof n&&(0,W.A9)(n),o=r.join("_");return(t.current.name!==o||t.current.originRef!==i)&&(t.current.name=o,t.current.originRef=i,t.current.ref=(0,W.K4)(e(r),i)),t.current.ref}}var et=r(40174),er=r(65460),en=r(94030),ei=r(46604),eo=r(89031),ea=r(74757),es=r(20956);let el=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},ec=(0,b.bf)(["Form","item-item"],(e,{rootPrefixCls:t})=>el(O(e,t)));var eu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let ef=24,ed=e=>{let{prefixCls:t,status:r,labelCol:i,wrapperCol:a,children:l,errors:c,warnings:u,_internalItemRender:f,extra:d,help:h,fieldId:p,marginBottom:m,onErrorVisibleChanged:g,label:b}=e,v=`${t}-item`,y=o.useContext(n.cK),w=o.useMemo(()=>{let e=Object.assign({},a||y.wrapperCol||{});return null!==b||i||a||!y.labelCol||[void 0,"xs","sm","md","lg","xl","xxl"].forEach(t=>{let r=t?[t]:[],n=(0,ea.Jt)(y.labelCol,r),i="object"==typeof n?n:{},o=(0,ea.Jt)(e,r),a="object"==typeof o?o:{};"span"in i&&!("offset"in a)&&i.span<ef&&(e=(0,ea.hZ)(e,[].concat(r,["offset"]),i.span))}),e},[a,y.wrapperCol,y.labelCol,b,i]),x=s()(`${v}-control`,w.className),A=o.useMemo(()=>{let{labelCol:e,wrapperCol:t}=y;return eu(y,["labelCol","wrapperCol"])},[y]),E=o.useRef(null),[_,S]=o.useState(0);(0,en.A)(()=>{d&&E.current?S(E.current.clientHeight):S(0)},[d]);let $=o.createElement("div",{className:`${v}-control-input`},o.createElement("div",{className:`${v}-control-input-content`},l)),k=o.useMemo(()=>({prefixCls:t,status:r}),[t,r]),C=null!==m||c.length||u.length?o.createElement(n.hb.Provider,{value:k},o.createElement(j,{fieldId:p,errors:c,warnings:u,help:h,helpStatus:r,className:`${v}-explain-connected`,onVisibleChanged:g})):null,O={};p&&(O.id=`${p}_extra`);let M=d?o.createElement("div",Object.assign({},O,{className:`${v}-extra`,ref:E}),d):null,I=C||M?o.createElement("div",{className:`${v}-additional`,style:m?{minHeight:m+_}:{}},C,M):null,R=f&&"pro_table_render"===f.mark&&f.render?f.render(e,{input:$,errorList:C,extra:M}):o.createElement(o.Fragment,null,$,I);return o.createElement(n.cK.Provider,{value:A},o.createElement(es.A,Object.assign({},w,{className:x}),R),o.createElement(ec,{prefixCls:t}))};var eh=r(25062);let ep=function(e){return null==e?null:"object"!=typeof e||(0,o.isValidElement)(e)?{title:e}:e};var em=r(92733),eg=r(56156),eb=r(52646),ev=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let ey=({prefixCls:e,label:t,htmlFor:r,labelCol:i,labelAlign:a,colon:l,required:c,requiredMark:u,tooltip:f,vertical:d})=>{var h;let p,[m]=(0,em.A)("Form"),{labelAlign:g,labelCol:b,labelWrap:v,colon:y}=o.useContext(n.cK);if(!t)return null;let w=i||b||{},x=a||g,A=`${e}-item-label`,E=s()(A,"left"===x&&`${A}-left`,w.className,{[`${A}-wrap`]:!!v}),_=t,S=!0===l||!1!==y&&!1!==l;S&&!d&&"string"==typeof t&&t.trim()&&(_=t.replace(/[:|:]\s*$/,""));let $=ep(f);if($){let{icon:t=o.createElement(eh.A,null)}=$,r=ev($,["icon"]),n=o.createElement(eb.A,Object.assign({},r),o.cloneElement(t,{className:`${e}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));_=o.createElement(o.Fragment,null,_,n)}let k="optional"===u,C="function"==typeof u,O=!1===u;C?_=u(_,{required:!!c}):k&&!c&&(_=o.createElement(o.Fragment,null,_,o.createElement("span",{className:`${e}-item-optional`,title:""},(null==m?void 0:m.optional)||(null==(h=eg.A.Form)?void 0:h.optional)))),O?p="hidden":(k||C)&&(p="optional");let M=s()({[`${e}-item-required`]:c,[`${e}-item-required-mark-${p}`]:p,[`${e}-item-no-colon`]:!S});return o.createElement(es.A,Object.assign({},w,{className:E}),o.createElement("label",{htmlFor:r,className:M,title:"string"==typeof t?t:""},_))};var ew=r(35261),ex=r(42254),eA=r(42964),eE=r(60004);let e_={success:ew.A,warning:eA.A,error:ex.A,validating:eE.A};function eS({children:e,errors:t,warnings:r,hasFeedback:i,validateStatus:a,prefixCls:l,meta:c,noStyle:u,name:f}){let d=`${l}-item`,{feedbackIcons:h}=o.useContext(n.cK),p=(0,et.BS)(t,r,c,null,!!i,a),{isFormItemInput:m,status:g,hasFeedback:b,feedbackIcon:v,name:y}=o.useContext(n.$W),w=o.useMemo(()=>{var e;let n;if(i){let a=!0!==i&&i.icons||h,l=p&&(null==(e=null==a?void 0:a({status:p,errors:t,warnings:r}))?void 0:e[p]),c=p?e_[p]:null;n=!1!==l&&c?o.createElement("span",{className:s()(`${d}-feedback-icon`,`${d}-feedback-icon-${p}`)},l||o.createElement(c,null)):null}let a={status:p||"",errors:t,warnings:r,hasFeedback:!!i,feedbackIcon:n,isFormItemInput:!0,name:f};return u&&(a.status=(null!=p?p:g)||"",a.isFormItemInput=m,a.hasFeedback=!!(null!=i?i:b),a.feedbackIcon=void 0!==i?a.feedbackIcon:v,a.name=null!=f?f:y),a},[p,i,u,m,g]);return o.createElement(n.$W.Provider,{value:w},e)}var e$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function ek(e){let{prefixCls:t,className:r,rootClassName:i,style:a,help:l,errors:c,warnings:u,validateStatus:d,meta:h,hasFeedback:p,hidden:m,children:g,fieldId:b,required:v,isRequired:y,onSubItemMetaChange:w,layout:x,name:A}=e,E=e$(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),_=`${t}-item`,{requiredMark:S,layout:$}=o.useContext(n.cK),k=x||$,C="vertical"===k,O=o.useRef(null),M=f(c),I=f(u),R=null!=l,j=!!(R||c.length||u.length),T=!!O.current&&(0,er.A)(O.current),[N,P]=o.useState(null);(0,en.A)(()=>{j&&O.current&&P(Number.parseInt(getComputedStyle(O.current).marginBottom,10))},[j,T]);let B=e=>{e||P(null)},z=((e=!1)=>{let t=e?M:h.errors,r=e?I:h.warnings;return(0,et.BS)(t,r,h,"",!!p,d)})(),L=s()(_,r,i,{[`${_}-with-help`]:R||M.length||I.length,[`${_}-has-feedback`]:z&&p,[`${_}-has-success`]:"success"===z,[`${_}-has-warning`]:"warning"===z,[`${_}-has-error`]:"error"===z,[`${_}-is-validating`]:"validating"===z,[`${_}-hidden`]:m,[`${_}-${k}`]:k});return o.createElement("div",{className:L,style:a,ref:O},o.createElement(eo.A,Object.assign({className:`${_}-row`},(0,ei.A)(E,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(ey,Object.assign({htmlFor:b},e,{requiredMark:S,required:null!=v?v:y,prefixCls:t,vertical:C})),o.createElement(ed,Object.assign({},e,h,{errors:M,warnings:I,prefixCls:t,status:z,help:l,marginBottom:N,onErrorVisibleChanged:B}),o.createElement(n.jC.Provider,{value:w},o.createElement(eS,{prefixCls:t,meta:h,errors:h.errors,warnings:h.warnings,hasFeedback:p,validateStatus:z,name:A},g)))),!!N&&o.createElement("div",{className:`${_}-margin-offset`,style:{marginBottom:-N}}))}let eC="__SPLIT__";function eO(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(r=>{let n=e[r],i=t[r];return n===i||"function"==typeof n||"function"==typeof i})}let eM=o.memo(({children:e})=>e,(e,t)=>eO(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,r)=>e===t.childProps[r]));function eI(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}let eR=function(e){let{name:t,noStyle:r,className:a,dependencies:l,prefixCls:c,shouldUpdate:f,rules:d,children:h,required:p,label:m,messageVariables:g,trigger:b="onChange",validateTrigger:v,hidden:y,help:w,layout:x}=e,{getPrefixCls:A}=o.useContext(N.QO),{name:E}=o.useContext(n.cK),_=X(h),S="function"==typeof _,$=o.useContext(n.jC),{validateTrigger:k}=o.useContext(T._z),C=void 0!==v?v:k,O=null!=t,I=A("form",c),R=(0,u.A)(I),[j,P,B]=M(I,R);(0,K.rJ)("Form.Item");let z=o.useContext(T.EF),L=o.useRef(null),[D,F]=Q({}),[H,U]=(0,q.A)(()=>eI()),G=e=>{let t=null==z?void 0:z.getKey(e.name);if(U(e.destroy?eI():e,!0),r&&!1!==w&&$){let r=e.name;if(e.destroy)r=L.current||r;else if(void 0!==t){let[e,n]=t;L.current=r=[e].concat((0,i.A)(n))}$(e,r)}},Z=(e,t)=>{F(r=>{let n=Object.assign({},r),o=[].concat((0,i.A)(e.name.slice(0,-1)),(0,i.A)(t)).join(eC);return e.destroy?delete n[o]:n[o]=e,n})},[Y,J]=o.useMemo(()=>{let e=(0,i.A)(H.errors),t=(0,i.A)(H.warnings);return Object.values(D).forEach(r=>{e.push.apply(e,(0,i.A)(r.errors||[])),t.push.apply(t,(0,i.A)(r.warnings||[]))}),[e,t]},[D,H.errors,H.warnings]),er=ee();function en(n,i,l){return r&&!y?o.createElement(eS,{prefixCls:I,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:H,errors:Y,warnings:J,noStyle:!0,name:t},n):o.createElement(ek,Object.assign({key:"row"},e,{className:s()(a,B,R,P),prefixCls:I,fieldId:i,isRequired:l,errors:Y,warnings:J,meta:H,onSubItemMetaChange:Z,layout:x,name:t}),n)}if(!O&&!S&&!l)return j(en(_));let ei={};return"string"==typeof m?ei.label=m:t&&(ei.label=String(t)),g&&(ei=Object.assign(Object.assign({},ei),g)),j(o.createElement(T.D0,Object.assign({},e,{messageVariables:ei,trigger:b,validateTrigger:C,onMetaChange:G}),(r,n,a)=>{let s=(0,et.$r)(t).length&&n?n.name:[],c=(0,et.kV)(s,E),u=void 0!==p?p:!!(null==d?void 0:d.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){let t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1})),h=Object.assign({},r),m=null;if(Array.isArray(_)&&O)m=_;else if(S&&(!(f||l)||O));else if(!l||S||O)if(o.isValidElement(_)){let t=Object.assign(Object.assign({},_.props),h);if(t.id||(t.id=c),w||Y.length>0||J.length>0||e.extra){let r=[];(w||Y.length>0)&&r.push(`${c}_help`),e.extra&&r.push(`${c}_extra`),t["aria-describedby"]=r.join(" ")}Y.length>0&&(t["aria-invalid"]="true"),u&&(t["aria-required"]="true"),(0,W.f3)(_)&&(t.ref=er(s,_)),new Set([].concat((0,i.A)((0,et.$r)(b)),(0,i.A)((0,et.$r)(C)))).forEach(e=>{t[e]=(...t)=>{var r,n,i,o,a;null==(i=h[e])||(r=i).call.apply(r,[h].concat(t)),null==(a=(o=_.props)[e])||(n=a).call.apply(n,[o].concat(t))}});let r=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];m=o.createElement(eM,{control:h,update:_,childProps:r},(0,V.Ob)(_,t))}else m=S&&(f||l)&&!O?_(a):_;return en(m,c,u)}))};eR.useStatus=Y;var ej=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let eT=e=>{var{prefixCls:t,children:r}=e,i=ej(e,["prefixCls","children"]);let{getPrefixCls:a}=o.useContext(N.QO),s=a("form",t),l=o.useMemo(()=>({prefixCls:s,status:"error"}),[s]);return o.createElement(T.B8,Object.assign({},i),(e,t,i)=>o.createElement(n.hb.Provider,{value:l},r(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:i.errors,warnings:i.warnings})))};function eN(){let{form:e}=o.useContext(n.cK);return e}let eP=U;eP.Item=eR,eP.List=eT,eP.ErrorList=j,eP.useForm=L.A,eP.useFormInstance=eN,eP.useWatch=T.FH,eP.Provider=n.Op,eP.create=()=>{};let eB=eP},40174(e,t,r){"use strict";r.d(t,{$r:()=>o,BS:()=>s,kV:()=>a});let n=["parentNode"],i="form_item";function o(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function a(e,t){if(!e.length)return;let r=e.join("_");return t?`${t}_${r}`:n.includes(r)?`${i}_${r}`:r}function s(e,t,r,n,i,o){let a=n;return void 0!==o?a=o:r.validating?a="validating":e.length?a="error":t.length?a="warning":(r.touched||i&&r.validated)&&(a="success"),a}},91657(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(22155).createContext)(void 0)},17811(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(22155).createContext)({})},20956(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(22155),i=r(30395),o=r.n(i),a=r(65289),s=r(17811),l=r(35512),c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function u(e){return"auto"===e?"1 1 auto":"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}let f=["xs","sm","md","lg","xl","xxl"],d=n.forwardRef((e,t)=>{let{getPrefixCls:r,direction:i}=n.useContext(a.QO),{gutter:d,wrap:h}=n.useContext(s.A),{prefixCls:p,span:m,order:g,offset:b,push:v,pull:y,className:w,children:x,flex:A,style:E}=e,_=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=r("col",p),[$,k,C]=(0,l.xV)(S),O={},M={};f.forEach(t=>{let r={},n=e[t];"number"==typeof n?r.span=n:"object"==typeof n&&(r=n||{}),delete _[t],M=Object.assign(Object.assign({},M),{[`${S}-${t}-${r.span}`]:void 0!==r.span,[`${S}-${t}-order-${r.order}`]:r.order||0===r.order,[`${S}-${t}-offset-${r.offset}`]:r.offset||0===r.offset,[`${S}-${t}-push-${r.push}`]:r.push||0===r.push,[`${S}-${t}-pull-${r.pull}`]:r.pull||0===r.pull,[`${S}-rtl`]:"rtl"===i}),r.flex&&(M[`${S}-${t}-flex`]=!0,O[`--${S}-${t}-flex`]=u(r.flex))});let I=o()(S,{[`${S}-${m}`]:void 0!==m,[`${S}-order-${g}`]:g,[`${S}-offset-${b}`]:b,[`${S}-push-${v}`]:v,[`${S}-pull-${y}`]:y},w,M,k,C),R={};if(null==d?void 0:d[0]){let e="number"==typeof d[0]?`${d[0]/2}px`:`calc(${d[0]} / 2)`;R.paddingLeft=e,R.paddingRight=e}return A&&(R.flex=u(A),!1!==h||R.minWidth||(R.minWidth=0)),$(n.createElement("div",Object.assign({},_,{style:Object.assign(Object.assign(Object.assign({},R),E),O),className:I,ref:t}),x))})},16849(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(22155),i=r(94030);let o=()=>n.useReducer(e=>e+1,0);var a=r(9355);let s=function(e=!0,t={}){let r=(0,n.useRef)(t),[,s]=o(),l=(0,a.Ay)();return(0,i.A)(()=>{let t=l.subscribe(t=>{r.current=t,e&&s()});return()=>l.unsubscribe(t)},[]),r.current}},89031(e,t,r){"use strict";r.d(t,{A:()=>p});var n=r(22155),i=r(30395),o=r.n(i),a=r(9355),s=r(65289),l=r(16849);function c(e,t){let r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return n.forEach((e,t)=>{if("object"==typeof e&&null!==e)for(let n=0;n<a.ye.length;n++){let o=a.ye[n];if(i[o]&&void 0!==e[o]){r[t]=e[o];break}}else r[t]=e}),r}var u=r(17811),f=r(35512),d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function h(e,t){let[r,i]=n.useState("string"==typeof e?e:""),o=()=>{if("string"==typeof e&&i(e),"object"==typeof e)for(let r=0;r<a.ye.length;r++){let n=a.ye[r];if(!t||!t[n])continue;let o=e[n];if(void 0!==o)return void i(o)}};return n.useEffect(()=>{o()},[JSON.stringify(e),t]),r}let p=n.forwardRef((e,t)=>{let{prefixCls:r,justify:i,align:a,className:p,style:m,children:g,gutter:b=0,wrap:v}=e,y=d(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:w,direction:x}=n.useContext(s.QO),A=(0,l.A)(!0,null),E=h(a,A),_=h(i,A),S=w("row",r),[$,k,C]=(0,f.L3)(S),O=c(b,A),M=o()(S,{[`${S}-no-wrap`]:!1===v,[`${S}-${_}`]:_,[`${S}-${E}`]:E,[`${S}-rtl`]:"rtl"===x},p,k,C),I={};if(null==O?void 0:O[0]){let e="number"==typeof O[0]?`${-(O[0]/2)}px`:`calc(${O[0]} / -2)`;I.marginLeft=e,I.marginRight=e}let[R,j]=O;I.rowGap=j;let T=n.useMemo(()=>({gutter:[R,j],wrap:v}),[R,j,v]);return $(n.createElement(u.A.Provider,{value:T},n.createElement("div",Object.assign({},y,{className:M,style:Object.assign(Object.assign({},I),m),ref:t}),g)))})},35512(e,t,r){"use strict";r.d(t,{L3:()=>h,i4:()=>p,xV:()=>m});var n=r(59296),i=r(72056),o=r(63930);let a=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},s=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>{let{prefixCls:r,componentCls:n,gridColumns:i}=e,o={};for(let e=i;e>=0;e--)0===e?(o[`${n}${t}-${e}`]={display:"none"},o[`${n}-push-${e}`]={insetInlineStart:"auto"},o[`${n}-pull-${e}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${e}`]={marginInlineStart:0},o[`${n}${t}-order-${e}`]={order:0}):(o[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/i*100}%`,maxWidth:`${e/i*100}%`}],o[`${n}${t}-push-${e}`]={insetInlineStart:`${e/i*100}%`},o[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/i*100}%`},o[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/i*100}%`},o[`${n}${t}-order-${e}`]={order:e});return o[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},o},c=(e,t)=>l(e,t),u=(e,t,r)=>({[`@media (min-width: ${(0,n.zA)(t)})`]:Object.assign({},c(e,r))}),f=()=>({}),d=()=>({}),h=(0,i.OF)("Grid",a,f),p=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),m=(0,i.OF)("Grid",e=>{let t=(0,o.oX)(e,{gridColumns:24}),r=p(t);return delete r.xs,[s(t),c(t,""),c(t,"-xs"),Object.keys(r).map(e=>u(t,r[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},d)},75365(e,t,r){"use strict";r.d(t,{A:()=>e_});var n=r(22155),i=r(3762),o=r(16262),a=r(30395),s=r.n(a),l=r(76878),c=r(19841),u=r(24366),f=r(70486),d=r(56284),h=r(11947),p=r(96591);function m(){return"function"==typeof BigInt}function g(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function b(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var n=t||"0",i=n.split("."),o=i[0]||"0",a=i[1]||"0";"0"===o&&"0"===a&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(n)}}function v(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function y(e){var t=e.toLowerCase().split("e"),r=(0,f.A)(t,2),n=r[0],i=r[1],o=void 0===i?"0":i,a=n.startsWith("-"),s=(a?n.slice(1):n).split("."),l=(0,f.A)(s,2),c=l[0],u=void 0===c?"0":c,d=l[1],h=void 0===d?"":d,p="".concat(u).concat(h).replace(/^0+/,"")||"0";return{decimal:h,digits:p,exponent:Number(o),integer:u,negative:a}}function w(e){var t=e.decimal,r=e.digits,n=e.exponent,i=e.integer,o=e.negative;if("0"===r)return"0";var a=i.replace(/^0+/,"").length,s=(t.match(/^0*/)||[""])[0].length,l=(a||-s)+n,c="";return c=l<=0?"0.".concat("0".repeat(-l)).concat(r):l>=r.length?"".concat(r).concat("0".repeat(l-r.length)):"".concat(r.slice(0,l),".").concat(r.slice(l)),"".concat(o?"-":"").concat(c)}function x(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function A(e){var t=String(e);return v(e)?x(y(t)):t.includes(".")&&_(t)?t.length-t.indexOf(".")-1:0}function E(e){var t=String(e);if(v(e)){if(e>Number.MAX_SAFE_INTEGER)return String(m()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(m()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var r=y(t),n=x(r);t=n>100?w(r):e.toFixed(n)}return b(t).fullStr}function _(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var S=function(){function e(t){if((0,h.A)(this,e),(0,c.A)(this,"origin",""),(0,c.A)(this,"negative",void 0),(0,c.A)(this,"integer",void 0),(0,c.A)(this,"decimal",void 0),(0,c.A)(this,"decimalLen",void 0),(0,c.A)(this,"empty",void 0),(0,c.A)(this,"nan",void 0),g(t)){this.empty=!0;return}if(this.origin=String(t),"-"===t||Number.isNaN(t)){this.nan=!0;return}var r=t;if(v(r)&&(r=Number(r)),_(r="string"==typeof r?r:E(r))){var n=b(r);this.negative=n.negative;var i=n.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return(0,p.A)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){return BigInt("".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0")))}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,r,n){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),o=r(this.alignDecimal(i),t.alignDecimal(i)).toString(),a=n(i),s=b(o),l=s.negativeStr,c=s.trimStr,u="".concat(l).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=new e(t);return r.isInvalidate()?this:this.cal(r,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var r=new e(t);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return 0>=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":b("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),$=function(){function e(t){if((0,h.A)(this,e),(0,c.A)(this,"origin",""),(0,c.A)(this,"number",void 0),(0,c.A)(this,"empty",void 0),g(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return(0,p.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=Number(t);if(Number.isNaN(r))return this;var n=this.number+r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(A(this.number),A(r));return new e(n.toFixed(i))}},{key:"multi",value:function(t){var r=Number(t);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var n=this.number*r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(A(this.number),A(r));return new e(n.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return 0>=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":v(this.number)&&A(this.number)>100?String(this.number):E(this.number):this.origin}}]),e}();function k(e){return m()?new S(e):new $(e)}function C(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var i=b(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(r>=0){var u=Number(s[r]);return u>=5&&!n?C(k(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-u)).toString(),t,r,n):0===r?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return".0"===l?c:"".concat(c).concat(l)}let O=k;var M=r(95007),I=r(94030);function R(e,t){return"u">typeof Proxy&&e?new Proxy(e,{get:function(e,r){if(t[r])return t[r];var n=e[r];return"function"==typeof n?n.bind(e):n}}):e}var j=r(75252),T=r(47773);function N(e,t){var r=(0,n.useRef)(null);return[function(){try{var t=e.selectionStart,n=e.selectionEnd,i=e.value,o=i.substring(0,t),a=i.substring(n);r.current={start:t,end:n,value:i,beforeTxt:o,afterTxt:a}}catch(e){}},function(){if(e&&r.current&&t)try{var n=e.value,i=r.current,o=i.beforeTxt,a=i.afterTxt,s=i.start,l=n.length;if(n.startsWith(o))l=o.length;else if(n.endsWith(a))l=n.length-r.current.afterTxt.length;else{var c=o[s-1],u=n.indexOf(c,s-1);-1!==u&&(l=u+1)}e.setSelectionRange(l,l)}catch(e){(0,T.Ay)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}var P=r(22075);let B=function(){var e=(0,n.useState)(!1),t=(0,f.A)(e,2),r=t[0],i=t[1];return(0,I.A)(function(){i((0,P.A)())},[]),r};var z=r(23504),L=200,D=600;function F(e){var t=e.prefixCls,r=e.upNode,i=e.downNode,o=e.upDisabled,a=e.downDisabled,u=e.onStep,f=n.useRef(),d=n.useRef([]),h=n.useRef();h.current=u;var p=function(){clearTimeout(f.current)},m=function(e,t){function r(){h.current(t),f.current=setTimeout(r,L)}e.preventDefault(),p(),h.current(t),f.current=setTimeout(r,D)};if(n.useEffect(function(){return function(){p(),d.current.forEach(function(e){return z.A.cancel(e)})}},[]),B())return null;var g="".concat(t,"-handler"),b=s()(g,"".concat(g,"-up"),(0,c.A)({},"".concat(g,"-up-disabled"),o)),v=s()(g,"".concat(g,"-down"),(0,c.A)({},"".concat(g,"-down-disabled"),a)),y=function(){return d.current.push((0,z.A)(p))},w={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return n.createElement("div",{className:"".concat(g,"-wrap")},n.createElement("span",(0,l.A)({},w,{onMouseDown:function(e){m(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:b}),r||n.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),n.createElement("span",(0,l.A)({},w,{onMouseDown:function(e){m(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),i||n.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function H(e){var t="number"==typeof e?E(e):b(e).fullStr;return t.includes(".")?b(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var U=r(97539);let q=function(){var e=(0,n.useRef)(0),t=function(){z.A.cancel(e.current)};return(0,n.useEffect)(function(){return t},[]),function(r){t(),e.current=(0,z.A)(function(){r()})}};var W=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],V=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],K=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},G=function(e){var t=O(e);return t.isInvalidate()?null:t},X=n.forwardRef(function(e,t){var r=e.prefixCls,i=e.className,o=e.style,a=e.min,h=e.max,p=e.step,m=void 0===p?1:p,g=e.defaultValue,b=e.value,v=e.disabled,y=e.readOnly,w=e.upHandler,x=e.downHandler,S=e.keyboard,$=e.changeOnWheel,k=void 0!==$&&$,M=e.controls,R=void 0===M||M,T=(e.classNames,e.stringMode),P=e.parser,B=e.formatter,z=e.precision,L=e.decimalSeparator,D=e.onChange,U=e.onInput,V=e.onPressEnter,X=e.onStep,Z=e.changeOnBlur,Y=void 0===Z||Z,J=e.domRef,Q=(0,d.A)(e,W),ee="".concat(r,"-input"),et=n.useRef(null),er=n.useState(!1),en=(0,f.A)(er,2),ei=en[0],eo=en[1],ea=n.useRef(!1),es=n.useRef(!1),el=n.useRef(!1),ec=n.useState(function(){return O(null!=b?b:g)}),eu=(0,f.A)(ec,2),ef=eu[0],ed=eu[1];function eh(e){void 0===b&&ed(e)}var ep=n.useCallback(function(e,t){if(!t)return z>=0?z:Math.max(A(e),A(m))},[z,m]),em=n.useCallback(function(e){var t=String(e);if(P)return P(t);var r=t;return L&&(r=r.replace(L,".")),r.replace(/[^\w.-]+/g,"")},[P,L]),eg=n.useRef(""),eb=n.useCallback(function(e,t){if(B)return B(e,{userTyping:t,input:String(eg.current)});var r="number"==typeof e?E(e):e;if(!t){var n=ep(r,t);_(r)&&(L||n>=0)&&(r=C(r,L||".",n))}return r},[B,ep,L]),ev=n.useState(function(){var e=null!=g?g:b;return ef.isInvalidate()&&["string","number"].includes((0,u.A)(e))?Number.isNaN(e)?"":e:eb(ef.toString(),!1)}),ey=(0,f.A)(ev,2),ew=ey[0],ex=ey[1];function eA(e,t){ex(eb(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}eg.current=ew;var eE=n.useMemo(function(){return G(h)},[h,z]),e_=n.useMemo(function(){return G(a)},[a,z]),eS=n.useMemo(function(){return!(!eE||!ef||ef.isInvalidate())&&eE.lessEquals(ef)},[eE,ef]),e$=n.useMemo(function(){return!(!e_||!ef||ef.isInvalidate())&&ef.lessEquals(e_)},[e_,ef]),ek=N(et.current,ei),eC=(0,f.A)(ek,2),eO=eC[0],eM=eC[1],eI=function(e){return eE&&!e.lessEquals(eE)?eE:e_&&!e_.lessEquals(e)?e_:null},eR=function(e){return!eI(e)},ej=function(e,t){var r=e,n=eR(r)||r.isEmpty();if(r.isEmpty()||t||(r=eI(r)||r,n=!0),!y&&!v&&n){var i=r.toString(),o=ep(i,t);return o>=0&&(eR(r=O(C(i,".",o)))||(r=O(C(i,".",o,!0)))),r.equals(ef)||(eh(r),null==D||D(r.isEmpty()?null:K(T,r)),void 0===b&&eA(r,t)),r}return ef},eT=q(),eN=function e(t){if(eO(),eg.current=t,ex(t),!es.current){var r=O(em(t));r.isNaN()||ej(r,!0)}null==U||U(t),eT(function(){var r=t;P||(r=t.replace(/。/g,".")),r!==t&&e(r)})},eP=function(){es.current=!0},eB=function(){es.current=!1,eN(et.current.value)},ez=function(e){eN(e.target.value)},eL=function(e){if((!e||!eS)&&(e||!e$)){ea.current=!1;var t,r=O(el.current?H(m):m);e||(r=r.negate());var n=(ef||O(0)).add(r.toString()),i=ej(n,!1);null==X||X(K(T,i),{offset:el.current?H(m):m,type:e?"up":"down"}),null==(t=et.current)||t.focus()}},eD=function(e){var t,r=O(em(ew));t=r.isNaN()?ej(ef,e):ej(r,e),void 0!==b?eA(ef,!1):t.isNaN()||eA(t,!1)},eF=function(){ea.current=!0},eH=function(e){var t=e.key,r=e.shiftKey;ea.current=!0,el.current=r,"Enter"===t&&(es.current||(ea.current=!1),eD(!1),null==V||V(e)),!1!==S&&!es.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(eL("Up"===t||"ArrowUp"===t),e.preventDefault())},eU=function(){ea.current=!1,el.current=!1};n.useEffect(function(){if(k&&ei){var e=function(e){eL(e.deltaY<0),e.preventDefault()},t=et.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}});var eq=function(){Y&&eD(!1),eo(!1),ea.current=!1};return(0,I.o)(function(){ef.isInvalidate()||eA(ef,!1)},[z,B]),(0,I.o)(function(){var e=O(b);ed(e);var t=O(em(ew));e.equals(t)&&ea.current&&!B||eA(e,ea.current)},[b]),(0,I.o)(function(){B&&eM()},[ew]),n.createElement("div",{ref:J,className:s()(r,i,(0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)({},"".concat(r,"-focused"),ei),"".concat(r,"-disabled"),v),"".concat(r,"-readonly"),y),"".concat(r,"-not-a-number"),ef.isNaN()),"".concat(r,"-out-of-range"),!ef.isInvalidate()&&!eR(ef))),style:o,onFocus:function(){eo(!0)},onBlur:eq,onKeyDown:eH,onKeyUp:eU,onCompositionStart:eP,onCompositionEnd:eB,onBeforeInput:eF},R&&n.createElement(F,{prefixCls:r,upNode:w,downNode:x,upDisabled:eS,downDisabled:e$,onStep:eL}),n.createElement("div",{className:"".concat(ee,"-wrap")},n.createElement("input",(0,l.A)({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":h,"aria-valuenow":ef.isInvalidate()?null:ef.toString(),step:m},Q,{ref:(0,j.K4)(et,t),className:ee,value:ew,onChange:ez,disabled:v,readOnly:y}))))});let Z=n.forwardRef(function(e,t){var r=e.disabled,i=e.style,o=e.prefixCls,a=void 0===o?"rc-input-number":o,s=e.value,c=e.prefix,u=e.suffix,f=e.addonBefore,h=e.addonAfter,p=e.className,m=e.classNames,g=(0,d.A)(e,V),b=n.useRef(null),v=n.useRef(null),y=n.useRef(null),w=function(e){y.current&&(0,U.F4)(y.current,e)};return n.useImperativeHandle(t,function(){return R(y.current,{focus:w,nativeElement:b.current.nativeElement||v.current})}),n.createElement(M.a,{className:p,triggerFocus:w,prefixCls:a,value:s,disabled:r,style:i,prefix:c,suffix:u,addonAfter:h,addonBefore:f,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:b},n.createElement(X,(0,l.A)({prefixCls:a,disabled:r,ref:y,domRef:v,className:null==m?void 0:m.input},g)))});var Y=r(643),J=r(46320),Q=r(65289),ee=r(64324),et=r(87673),er=r(75932),en=r(27147),ei=r(42767),eo=r(75254),ea=r(47495),es=r(59296),el=r(76364),ec=r(69377),eu=r(97208),ef=r(96619),ed=r(67172),eh=r(72056),ep=r(63930),em=r(98494);let eg=e=>{var t;let r=null!=(t=e.handleVisible)?t:"auto",n=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},(0,ec.b)(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new em.Y(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(!0===r),handleVisibleWidth:!0===r?n:0})},eb=({componentCls:e,borderRadiusSM:t,borderRadiusLG:r},n)=>{let i="lg"===n?r:t;return{[`&-${n}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${e}-handler-up`]:{borderStartEndRadius:i},[`${e}-handler-down`]:{borderEndEndRadius:i}}}},ev=e=>{let{componentCls:t,lineWidth:r,lineType:n,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:h,colorIcon:p,motionDurationMid:m,handleHoverColor:g,handleOpacity:b,paddingInline:v,paddingBlock:y,handleBg:w,handleActiveBg:x,colorTextDisabled:A,borderRadiusSM:E,borderRadiusLG:_,controlWidth:S,handleBorderColor:$,filledHandleBg:k,lineHeightLG:C,calc:O}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ef.dF)(e)),(0,el.wj)(e)),{display:"inline-block",width:S,margin:0,padding:0,borderRadius:i}),(0,eu.Eb)(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${(0,es.zA)(r)} ${n} ${$}`}}})),(0,eu.sA)(e,{[`${t}-handler-wrap`]:{background:k,[`${t}-handler-down`]:{borderBlockStart:`${(0,es.zA)(r)} ${n} ${$}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),(0,eu.aP)(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${(0,es.zA)(r)} ${n} ${$}`}}})),(0,eu.lB)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:C,borderRadius:_,[`input${t}-input`]:{height:O(s).sub(O(r).mul(2)).equal(),padding:`${(0,es.zA)(d)} ${(0,es.zA)(h)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:O(l).sub(O(r).mul(2)).equal(),padding:`${(0,es.zA)(f)} ${(0,es.zA)(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ef.dF)(e)),(0,el.XM)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},(0,eu.nm)(e)),(0,eu.Vy)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ef.dF)(e)),{width:"100%",padding:`${(0,es.zA)(y)} ${(0,es.zA)(v)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),(0,el.j_)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
85
+ ${t}-handler-up-inner,
86
+ ${t}-handler-down-inner
87
+ `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,es.zA)(r)} ${n} ${$}`,transition:`all ${m} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`
88
+ ${t}-handler-up-inner,
89
+ ${t}-handler-down-inner
90
+ `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ef.Nk)()),{color:p,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},eb(e,"lg")),eb(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
91
+ ${t}-handler-up-disabled,
92
+ ${t}-handler-down-disabled
93
+ `]:{cursor:"not-allowed"},[`
94
+ ${t}-handler-up-disabled:hover &-handler-up-inner,
95
+ ${t}-handler-down-disabled:hover &-handler-down-inner
96
+ `]:{color:A}})}]},ey=e=>{let{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,es.zA)(r)} 0`}},(0,el.wj)(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${(0,es.zA)(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${(0,es.zA)(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:i,transition:`margin ${d}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(n).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},ew=(0,eh.OF)("InputNumber",e=>{let t=(0,ep.oX)(e,(0,ec.C)(e));return[ev(t),ey(t),(0,ed.G)(t)]},eg,{unitless:{handleOpacity:!0},resetFont:!1});var ex=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let eA=n.forwardRef((e,t)=>{let{getPrefixCls:r,direction:a}=n.useContext(Q.QO),l=n.useRef(null);n.useImperativeHandle(t,()=>l.current);let{className:c,rootClassName:u,size:f,disabled:d,prefixCls:h,addonBefore:p,addonAfter:m,prefix:g,suffix:b,bordered:v,readOnly:y,status:w,controls:x,variant:A}=e,E=ex(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),_=r("input-number",h),S=(0,er.A)(_),[$,k,C]=ew(_,S),{compactSize:O,compactItemClassnames:M}=(0,ea.RQ)(_,a),I=n.createElement(o.A,{className:`${_}-handler-up-inner`}),R=n.createElement(i.A,{className:`${_}-handler-down-inner`}),j="boolean"==typeof x?x:void 0;"object"==typeof x&&(I=void 0===x.upIcon?I:n.createElement("span",{className:`${_}-handler-up-inner`},x.upIcon),R=void 0===x.downIcon?R:n.createElement("span",{className:`${_}-handler-down-inner`},x.downIcon));let{hasFeedback:T,status:N,isFormItemInput:P,feedbackIcon:B}=n.useContext(ei.$W),z=(0,J.v)(N,w),L=(0,en.A)(e=>{var t;return null!=(t=null!=f?f:O)?t:e}),D=n.useContext(et.A),F=null!=d?d:D,[H,U]=(0,eo.A)("inputNumber",A,v),q=T&&n.createElement(n.Fragment,null,B),W=s()({[`${_}-lg`]:"large"===L,[`${_}-sm`]:"small"===L,[`${_}-rtl`]:"rtl"===a,[`${_}-in-form-item`]:P},k),V=`${_}-group`;return $(n.createElement(Z,Object.assign({ref:l,disabled:F,className:s()(C,S,c,u,M),upHandler:I,downHandler:R,prefixCls:_,readOnly:y,controls:j,prefix:g,suffix:q||b,addonBefore:p&&n.createElement(Y.A,{form:!0,space:!0},p),addonAfter:m&&n.createElement(Y.A,{form:!0,space:!0},m),classNames:{input:W,variant:s()({[`${_}-${H}`]:U},(0,J.L)(_,z,T)),affixWrapper:s()({[`${_}-affix-wrapper-sm`]:"small"===L,[`${_}-affix-wrapper-lg`]:"large"===L,[`${_}-affix-wrapper-rtl`]:"rtl"===a,[`${_}-affix-wrapper-without-controls`]:!1===x||F||y},k),wrapper:s()({[`${V}-rtl`]:"rtl"===a},k),groupWrapper:s()({[`${_}-group-wrapper-sm`]:"small"===L,[`${_}-group-wrapper-lg`]:"large"===L,[`${_}-group-wrapper-rtl`]:"rtl"===a,[`${_}-group-wrapper-${H}`]:U},(0,J.L)(`${_}-group-wrapper`,z,T),k)}},E)))}),eE=eA;eE._InternalPanelDoNotUseOrYouWillBeFired=e=>n.createElement(ee.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},n.createElement(eA,Object.assign({},e)));let e_=eE},21295(e,t,r){"use strict";r.d(t,{A:()=>X});var n,i=r(22155),o=r(30395),a=r.n(o),s=r(76878),l=r(19841),c=r(39317),u=r(78944),f=r(70486),d=r(56284),h=r(95007),p=r(54520),m=r(97539),g=r(3604),b=r(24366),v=r(44965),y=r(94030),w=r(23504),x="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",A=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],E={};function _(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&E[r])return E[r];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s={sizingStyle:A.map(function(e){return"".concat(e,":").concat(n.getPropertyValue(e))}).join(";"),paddingSize:o,borderSize:a,boxSizing:i};return t&&r&&(E[r]=s),s}function S(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n||((n=document.createElement("textarea")).setAttribute("tab-index","-1"),n.setAttribute("aria-hidden","true"),n.setAttribute("name","hiddenTextarea"),document.body.appendChild(n)),e.getAttribute("wrap")?n.setAttribute("wrap",e.getAttribute("wrap")):n.removeAttribute("wrap");var a=_(e,r),s=a.paddingSize,l=a.borderSize,c=a.boxSizing,u=a.sizingStyle;n.setAttribute("style","".concat(u,";").concat(x)),n.value=e.value||e.placeholder||"";var f=void 0,d=void 0,h=n.scrollHeight;if("border-box"===c?h+=l:"content-box"===c&&(h-=s),null!==i||null!==o){n.value=" ";var p=n.scrollHeight-s;null!==i&&(f=p*i,"border-box"===c&&(f=f+s+l),h=Math.max(f,h)),null!==o&&(d=p*o,"border-box"===c&&(d=d+s+l),t=h>d?"":"hidden",h=Math.min(d,h))}var m={height:h,overflowY:t,resize:"none"};return f&&(m.minHeight=f),d&&(m.maxHeight=d),m}var $=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],k=0,C=1,O=2;let M=i.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,u=r.value,h=r.autoSize,p=r.onResize,m=r.className,x=r.style,A=r.disabled,E=r.onChange,_=(r.onInternalAutoSize,(0,d.A)(r,$)),M=(0,g.A)(o,{value:u,postState:function(e){return null!=e?e:""}}),I=(0,f.A)(M,2),R=I[0],j=I[1],T=function(e){j(e.target.value),null==E||E(e)},N=i.useRef();i.useImperativeHandle(t,function(){return{textArea:N.current}});var P=i.useMemo(function(){return h&&"object"===(0,b.A)(h)?[h.minRows,h.maxRows]:[]},[h]),B=(0,f.A)(P,2),z=B[0],L=B[1],D=!!h,F=i.useState(O),H=(0,f.A)(F,2),U=H[0],q=H[1],W=i.useState(),V=(0,f.A)(W,2),K=V[0],G=V[1],X=function(){q(k)};(0,y.A)(function(){D&&X()},[u,z,L,D]),(0,y.A)(function(){if(U===k)q(C);else if(U===C){var e=S(N.current,!1,z,L);q(O),G(e)}},[U]);var Z=i.useRef(),Y=function(){w.A.cancel(Z.current)},J=function(e){U===O&&(null==p||p(e),h&&(Y(),Z.current=(0,w.A)(function(){X()})))};i.useEffect(function(){return Y},[]);var Q=D?K:null,ee=(0,c.A)((0,c.A)({},x),Q);return(U===k||U===C)&&(ee.overflowY="hidden",ee.overflowX="hidden"),i.createElement(v.A,{onResize:J,disabled:!(h||p)},i.createElement("textarea",(0,s.A)({},_,{ref:N,style:ee,className:a()(n,m,(0,l.A)({},"".concat(n,"-disabled"),A)),disabled:A,value:R,onChange:T})))});var I=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"];let R=i.forwardRef(function(e,t){var r,n,o=e.defaultValue,b=e.value,v=e.onFocus,y=e.onBlur,w=e.onChange,x=e.allowClear,A=e.maxLength,E=e.onCompositionStart,_=e.onCompositionEnd,S=e.suffix,$=e.prefixCls,k=void 0===$?"rc-textarea":$,C=e.showCount,O=e.count,R=e.className,j=e.style,T=e.disabled,N=e.hidden,P=e.classNames,B=e.styles,z=e.onResize,L=e.onClear,D=e.onPressEnter,F=e.readOnly,H=e.autoSize,U=e.onKeyDown,q=(0,d.A)(e,I),W=(0,g.A)(o,{value:b,defaultValue:o}),V=(0,f.A)(W,2),K=V[0],G=V[1],X=null==K?"":String(K),Z=i.useState(!1),Y=(0,f.A)(Z,2),J=Y[0],Q=Y[1],ee=i.useRef(!1),et=i.useState(null),er=(0,f.A)(et,2),en=er[0],ei=er[1],eo=(0,i.useRef)(null),ea=(0,i.useRef)(null),es=function(){var e;return null==(e=ea.current)?void 0:e.textArea},el=function(){es().focus()};(0,i.useImperativeHandle)(t,function(){var e;return{resizableTextArea:ea.current,focus:el,blur:function(){es().blur()},nativeElement:(null==(e=eo.current)?void 0:e.nativeElement)||es()}}),(0,i.useEffect)(function(){Q(function(e){return!T&&e})},[T]);var ec=i.useState(null),eu=(0,f.A)(ec,2),ef=eu[0],ed=eu[1];i.useEffect(function(){if(ef){var e;(e=es()).setSelectionRange.apply(e,(0,u.A)(ef))}},[ef]);var eh=(0,p.A)(O,C),ep=null!=(r=eh.max)?r:A,em=Number(ep)>0,eg=eh.strategy(X),eb=!!ep&&eg>ep,ev=function(e,t){var r=t;!ee.current&&eh.exceedFormatter&&eh.max&&eh.strategy(t)>eh.max&&(r=eh.exceedFormatter(t,{max:eh.max}),t!==r&&ed([es().selectionStart||0,es().selectionEnd||0])),G(r),(0,m.gS)(e.currentTarget,e,w,r)},ey=function(e){ee.current=!0,null==E||E(e)},ew=function(e){ee.current=!1,ev(e,e.currentTarget.value),null==_||_(e)},ex=function(e){ev(e,e.target.value)},eA=function(e){"Enter"===e.key&&D&&D(e),null==U||U(e)},eE=function(e){Q(!0),null==v||v(e)},e_=function(e){Q(!1),null==y||y(e)},eS=function(e){G(""),el(),(0,m.gS)(es(),e,w)},e$=S;eh.show&&(n=eh.showFormatter?eh.showFormatter({value:X,count:eg,maxLength:ep}):"".concat(eg).concat(em?" / ".concat(ep):""),e$=i.createElement(i.Fragment,null,e$,i.createElement("span",{className:a()("".concat(k,"-data-count"),null==P?void 0:P.count),style:null==B?void 0:B.count},n)));var ek=function(e){var t;null==z||z(e),null!=(t=es())&&t.style.height&&ei(!0)},eC=!H&&!C&&!x;return i.createElement(h.a,{ref:eo,value:X,allowClear:x,handleReset:eS,suffix:e$,prefixCls:k,classNames:(0,c.A)((0,c.A)({},P),{},{affixWrapper:a()(null==P?void 0:P.affixWrapper,(0,l.A)((0,l.A)({},"".concat(k,"-show-count"),C),"".concat(k,"-textarea-allow-clear"),x))}),disabled:T,focused:J,className:a()(R,eb&&"".concat(k,"-out-of-range")),style:(0,c.A)((0,c.A)({},j),en&&!eC?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof n?n:void 0}},hidden:N,readOnly:F,onClear:L},i.createElement(M,(0,s.A)({},q,{autoSize:H,maxLength:A,onKeyDown:eA,onChange:ex,onFocus:eE,onBlur:e_,onCompositionStart:ey,onCompositionEnd:ew,className:a()(null==P?void 0:P.textarea),style:(0,c.A)((0,c.A)({},null==B?void 0:B.textarea),{},{resize:null==j?void 0:j.resize}),disabled:T,prefixCls:k,onResize:ek,ref:ea,readOnly:F})))});var j=r(25281),T=r(46320),N=r(65289),P=r(87673),B=r(75932),z=r(27147),L=r(42767),D=r(75254),F=r(47495),H=r(76364),U=r(72056),q=r(63930),W=r(69377);let V=e=>{let{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
97
+ &-allow-clear > ${t},
98
+ &-affix-wrapper${n}-has-feedback ${t}
99
+ `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},K=(0,U.OF)(["Input","TextArea"],e=>V((0,q.oX)(e,(0,W.C)(e))),W.b,{resetFont:!1});var G=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let X=(0,i.forwardRef)((e,t)=>{var r;let{prefixCls:n,bordered:o=!0,size:s,disabled:l,status:c,allowClear:u,classNames:f,rootClassName:d,className:h,style:p,styles:g,variant:b,showCount:v,onMouseDown:y,onResize:w}=e,x=G(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:A,direction:E,allowClear:_,autoComplete:S,className:$,style:k,classNames:C,styles:O}=(0,N.TP)("textArea"),M=i.useContext(P.A),I=null!=l?l:M,{status:U,hasFeedback:q,feedbackIcon:W}=i.useContext(L.$W),V=(0,T.v)(U,c),X=i.useRef(null);i.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null==(e=X.current)?void 0:e.resizableTextArea,focus:e=>{var t,r;(0,m.F4)(null==(r=null==(t=X.current)?void 0:t.resizableTextArea)?void 0:r.textArea,e)},blur:()=>{var e;return null==(e=X.current)?void 0:e.blur()}}});let Z=A("input",n),Y=(0,B.A)(Z),[J,Q,ee]=(0,H.MG)(Z,d),[et]=K(Z,Y),{compactSize:er,compactItemClassnames:en}=(0,F.RQ)(Z,E),ei=(0,z.A)(e=>{var t;return null!=(t=null!=s?s:er)?t:e}),[eo,ea]=(0,D.A)("textArea",b,o),es=(0,j.A)(null!=u?u:_),[el,ec]=i.useState(!1),[eu,ef]=i.useState(!1),ed=e=>{ec(!0),null==y||y(e);let t=()=>{ec(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)},eh=e=>{var t,r;if(null==w||w(e),el&&"function"==typeof getComputedStyle){let e=null==(r=null==(t=X.current)?void 0:t.nativeElement)?void 0:r.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&ef(!0)}};return J(et(i.createElement(R,Object.assign({autoComplete:S},x,{style:Object.assign(Object.assign({},k),p),styles:Object.assign(Object.assign({},O),g),disabled:I,allowClear:es,className:a()(ee,Y,h,d,en,$,eu&&`${Z}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},f),C),{textarea:a()({[`${Z}-sm`]:"small"===ei,[`${Z}-lg`]:"large"===ei},Q,null==f?void 0:f.textarea,C.textarea,el&&`${Z}-mouse-active`),variant:a()({[`${Z}-${eo}`]:ea},(0,T.L)(Z,V)),affixWrapper:a()(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:"rtl"===E,[`${Z}-affix-wrapper-sm`]:"small"===ei,[`${Z}-affix-wrapper-lg`]:"large"===ei,[`${Z}-textarea-show-count`]:v||(null==(r=e.count)?void 0:r.show)},Q)}),prefixCls:Z,suffix:q&&i.createElement("span",{className:`${Z}-textarea-suffix`},W),showCount:v,ref:X,onResize:eh,onMouseDown:ed}))))})},31361(e,t,r){"use strict";r.d(t,{A:()=>eo});var n=r(22155),i=r(30395),o=r.n(i),a=r(65289),s=r(42767),l=r(76364);let c=e=>{let{getPrefixCls:t,direction:r}=(0,n.useContext)(a.QO),{prefixCls:i,className:c}=e,u=t("input-group",i),f=t("input"),[d,h,p]=(0,l.Ay)(f),m=o()(u,p,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===r},h,c),g=(0,n.useContext)(s.$W),b=(0,n.useMemo)(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return d(n.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},n.createElement(s.$W.Provider,{value:b},e.children)))};var u=r(95007),f=r(75252),d=r(643),h=r(25281),p=r(46320),m=r(87673),g=r(75932),b=r(27147),v=r(75254),y=r(47495);function w(e,t){let r=(0,n.useRef)([]),i=()=>{r.current.push(setTimeout(()=>{var t,r,n,i;(null==(t=e.current)?void 0:t.input)&&(null==(r=e.current)?void 0:r.input.getAttribute("type"))==="password"&&(null==(n=e.current)?void 0:n.input.hasAttribute("value"))&&(null==(i=e.current)||i.input.removeAttribute("value"))}))};return(0,n.useEffect)(()=>(t&&i(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[]),i}function x(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var A=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let E=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,bordered:i=!0,status:c,size:E,disabled:_,onBlur:S,onFocus:$,suffix:k,allowClear:C,addonAfter:O,addonBefore:M,className:I,style:R,styles:j,rootClassName:T,onChange:N,classNames:P,variant:B,_skipAddonWarning:z}=e,L=A(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:D,direction:F,allowClear:H,autoComplete:U,className:q,style:W,classNames:V,styles:K}=(0,a.TP)("input"),G=D("input",r),X=(0,n.useRef)(null),Z=(0,g.A)(G),[Y,J,Q]=(0,l.MG)(G,T),[ee]=(0,l.Ay)(G,Z),{compactSize:et,compactItemClassnames:er}=(0,y.RQ)(G,F),en=(0,b.A)(e=>{var t;return null!=(t=null!=E?E:et)?t:e}),ei=n.useContext(m.A),eo=null!=_?_:ei,{status:ea,hasFeedback:es,feedbackIcon:el}=(0,n.useContext)(s.$W),ec=(0,p.v)(ea,c),eu=x(e)||!!es;(0,n.useRef)(eu);let ef=w(X,!0),ed=e=>{ef(),null==S||S(e)},eh=e=>{ef(),null==$||$(e)},ep=e=>{ef(),null==N||N(e)},em=(es||k)&&n.createElement(n.Fragment,null,k,es&&el),eg=(0,h.A)(null!=C?C:H),[eb,ev]=(0,v.A)("input",B,i);return Y(ee(n.createElement(u.A,Object.assign({ref:(0,f.K4)(t,X),prefixCls:G,autoComplete:U},L,{disabled:eo,onBlur:ed,onFocus:eh,style:Object.assign(Object.assign({},W),R),styles:Object.assign(Object.assign({},K),j),suffix:em,allowClear:eg,className:o()(I,T,Q,Z,er,q),onChange:ep,addonBefore:M&&n.createElement(d.A,{form:!0,space:!0},M),addonAfter:O&&n.createElement(d.A,{form:!0,space:!0},O),classNames:Object.assign(Object.assign(Object.assign({},P),V),{input:o()({[`${G}-sm`]:"small"===en,[`${G}-lg`]:"large"===en,[`${G}-rtl`]:"rtl"===F},null==P?void 0:P.input,V.input,J),variant:o()({[`${G}-${eb}`]:ev},(0,p.L)(G,ec)),affixWrapper:o()({[`${G}-affix-wrapper-sm`]:"small"===en,[`${G}-affix-wrapper-lg`]:"large"===en,[`${G}-affix-wrapper-rtl`]:"rtl"===F},J),wrapper:o()({[`${G}-group-rtl`]:"rtl"===F},J),groupWrapper:o()({[`${G}-group-wrapper-sm`]:"small"===en,[`${G}-group-wrapper-lg`]:"large"===en,[`${G}-group-wrapper-rtl`]:"rtl"===F,[`${G}-group-wrapper-${eb}`]:ev},(0,p.L)(`${G}-group-wrapper`,ec,es),J)})}))))});var _=r(78944),S=r(44649),$=r(21634),k=r(72056),C=r(63930),O=r(69377);let M=e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},I=(0,k.OF)(["Input","OTP"],e=>M((0,C.oX)(e,(0,O.C)(e))),O.b);var R=r(23504),j=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let T=n.forwardRef((e,t)=>{let{className:r,value:i,onChange:s,onActiveChange:l,index:c,mask:u}=e,f=j(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:d}=n.useContext(a.QO),h=d("otp"),p="string"==typeof u?u:i,m=n.useRef(null);n.useImperativeHandle(t,()=>m.current);let g=e=>{s(c,e.target.value)},b=()=>{(0,R.A)(()=>{var e;let t=null==(e=m.current)?void 0:e.input;document.activeElement===t&&t&&t.select()})},v=e=>{let{key:t,ctrlKey:r,metaKey:n}=e;"ArrowLeft"===t?l(c-1):"ArrowRight"===t?l(c+1):"z"===t&&(r||n)?e.preventDefault():"Backspace"!==t||i||l(c-1),b()};return n.createElement("span",{className:`${h}-input-wrapper`,role:"presentation"},u&&""!==i&&void 0!==i&&n.createElement("span",{className:`${h}-mask-icon`,"aria-hidden":"true"},p),n.createElement(E,Object.assign({"aria-label":`OTP Input ${c+1}`,type:!0===u?"password":"text"},f,{ref:m,value:i,onInput:g,onFocus:b,onKeyDown:v,onMouseDown:b,onMouseUp:b,className:o()(r,{[`${h}-mask-input`]:u})})))});var N=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function P(e){return(e||"").split("")}let B=e=>{let{index:t,prefixCls:r,separator:i}=e,o="function"==typeof i?i(t):i;return o?n.createElement("span",{className:`${r}-separator`},o):null},z=n.forwardRef((e,t)=>{let{prefixCls:r,length:i=6,size:l,defaultValue:c,value:u,onChange:f,formatter:d,separator:h,variant:m,disabled:g,status:v,autoFocus:y,mask:w,type:x,onInput:A,inputMode:E}=e,k=N(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:O}=n.useContext(a.QO),M=C("otp",r),R=(0,$.A)(k,{aria:!0,data:!0,attr:!0}),[j,z,L]=I(M),D=(0,b.A)(e=>null!=l?l:e),F=n.useContext(s.$W),H=(0,p.v)(F.status,v),U=n.useMemo(()=>Object.assign(Object.assign({},F),{status:H,hasFeedback:!1,feedbackIcon:null}),[F,H]),q=n.useRef(null),W=n.useRef({});n.useImperativeHandle(t,()=>({focus:()=>{var e;null==(e=W.current[0])||e.focus()},blur:()=>{var e;for(let t=0;t<i;t+=1)null==(e=W.current[t])||e.blur()},nativeElement:q.current}));let V=e=>d?d(e):e,[K,G]=n.useState(()=>P(V(c||"")));n.useEffect(()=>{void 0!==u&&G(P(u))},[u]);let X=(0,S.A)(e=>{G(e),A&&A(e),f&&e.length===i&&e.every(e=>e)&&e.some((e,t)=>K[t]!==e)&&f(e.join(""))}),Z=(0,S.A)((e,t)=>{let r=(0,_.A)(K);for(let t=0;t<e;t+=1)r[t]||(r[t]="");t.length<=1?r[e]=t:r=r.slice(0,e).concat(P(t)),r=r.slice(0,i);for(let e=r.length-1;e>=0&&!r[e];e-=1)r.pop();return r=P(V(r.map(e=>e||" ").join(""))).map((e,t)=>" "!==e||r[t]?e:r[t])}),Y=(e,t)=>{var r;let n=Z(e,t),o=Math.min(e+t.length,i-1);o!==e&&void 0!==n[e]&&(null==(r=W.current[o])||r.focus()),X(n)},J=e=>{var t;null==(t=W.current[e])||t.focus()},Q={variant:m,disabled:g,status:H,mask:w,type:x,inputMode:E};return j(n.createElement("div",Object.assign({},R,{ref:q,className:o()(M,{[`${M}-sm`]:"small"===D,[`${M}-lg`]:"large"===D,[`${M}-rtl`]:"rtl"===O},L,z),role:"group"}),n.createElement(s.$W.Provider,{value:U},Array.from({length:i}).map((e,t)=>{let r=`otp-${t}`,o=K[t]||"";return n.createElement(n.Fragment,{key:r},n.createElement(T,Object.assign({ref:e=>{W.current[t]=e},index:t,size:D,htmlSize:1,className:`${M}-input`,onChange:Y,value:o,onActiveChange:J,autoFocus:0===t&&y},Q)),t<i-1&&n.createElement(B,{separator:h,index:t,prefixCls:M}))}))))});var L=r(76878);let D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var F=r(52372),H=function(e,t){return n.createElement(F.A,(0,L.A)({},e,{ref:t,icon:D}))};let U=n.forwardRef(H),q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var W=function(e,t){return n.createElement(F.A,(0,L.A)({},e,{ref:t,icon:q}))};let V=n.forwardRef(W);var K=r(46604),G=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let X=e=>e?n.createElement(V,null):n.createElement(U,null),Z={click:"onClick",hover:"onMouseOver"},Y=n.forwardRef((e,t)=>{let{disabled:r,action:i="click",visibilityToggle:s=!0,iconRender:l=X,suffix:c}=e,u=n.useContext(m.A),d=null!=r?r:u,h="object"==typeof s&&void 0!==s.visible,[p,g]=(0,n.useState)(()=>!!h&&s.visible),b=(0,n.useRef)(null);n.useEffect(()=>{h&&g(s.visible)},[h,s]);let v=w(b),y=()=>{var e;if(d)return;p&&v();let t=!p;g(t),"object"==typeof s&&(null==(e=s.onVisibleChange)||e.call(s,t))},x=e=>{let t=Z[i]||"",r=l(p),o={[t]:y,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return n.cloneElement(n.isValidElement(r)?r:n.createElement("span",null,r),o)},{className:A,prefixCls:_,inputPrefixCls:S,size:$}=e,k=G(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=n.useContext(a.QO),O=C("input",S),M=C("input-password",_),I=s&&x(M),R=o()(M,A,{[`${M}-${$}`]:!!$}),j=Object.assign(Object.assign({},(0,K.A)(k,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:R,prefixCls:O,suffix:n.createElement(n.Fragment,null,I,c)});return $&&(j.size=$),n.createElement(E,Object.assign({ref:(0,f.K4)(t,b)},j))});var J=r(1836),Q=r(21968),ee=r(76822),et=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let er=n.forwardRef((e,t)=>{let r,{prefixCls:i,inputPrefixCls:s,className:l,size:c,suffix:u,enterButton:d=!1,addonAfter:h,loading:p,disabled:m,onSearch:g,onChange:v,onCompositionStart:w,onCompositionEnd:x,variant:A,onPressEnter:_}=e,S=et(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:$,direction:k}=n.useContext(a.QO),C=n.useRef(!1),O=$("input-search",i),M=$("input",s),{compactSize:I}=(0,y.RQ)(O,k),R=(0,b.A)(e=>{var t;return null!=(t=null!=c?c:I)?t:e}),j=n.useRef(null),T=e=>{(null==e?void 0:e.target)&&"click"===e.type&&g&&g(e.target.value,e,{source:"clear"}),null==v||v(e)},N=e=>{var t;document.activeElement===(null==(t=j.current)?void 0:t.input)&&e.preventDefault()},P=e=>{var t,r;g&&g(null==(r=null==(t=j.current)?void 0:t.input)?void 0:r.value,e,{source:"input"})},B=e=>{C.current||p||(null==_||_(e),P(e))},z="boolean"==typeof d?n.createElement(J.A,null):null,L=`${O}-button`,D=d||{},F=D.type&&!0===D.type.__ANT_BUTTON;r=F||"button"===D.type?(0,Q.Ob)(D,Object.assign({onMouseDown:N,onClick:e=>{var t,r;null==(r=null==(t=null==D?void 0:D.props)?void 0:t.onClick)||r.call(t,e),P(e)},key:"enterButton"},F?{className:L,size:R}:{})):n.createElement(ee.Ay,{className:L,color:d?"primary":"default",size:R,disabled:m,key:"enterButton",onMouseDown:N,onClick:P,loading:p,icon:z,variant:"borderless"===A||"filled"===A||"underlined"===A?"text":d?"solid":void 0},d),h&&(r=[r,(0,Q.Ob)(h,{key:"addonAfter"})]);let H=o()(O,{[`${O}-rtl`]:"rtl"===k,[`${O}-${R}`]:!!R,[`${O}-with-button`]:!!d},l),U=e=>{C.current=!0,null==w||w(e)},q=e=>{C.current=!1,null==x||x(e)},W=Object.assign(Object.assign({},S),{className:H,prefixCls:M,type:"search",size:R,variant:A,onPressEnter:B,onCompositionStart:U,onCompositionEnd:q,addonAfter:r,suffix:u,onChange:T,disabled:m,_skipAddonWarning:!0});return n.createElement(E,Object.assign({ref:(0,f.K4)(j,t)},W))});var en=r(21295);let ei=E;ei.Group=c,ei.Search=er,ei.TextArea=en.A,ei.Password=Y,ei.OTP=z;let eo=ei},76364(e,t,r){"use strict";r.d(t,{Ay:()=>A,BZ:()=>d,MG:()=>x,XM:()=>p,j_:()=>u,wj:()=>h});var n=r(59296),i=r(96619),o=r(67172),a=r(72056),s=r(63930),l=r(69377),c=r(97208);let u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),f=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:i,paddingInlineLG:o}=e;return{padding:`${(0,n.zA)(t)} ${(0,n.zA)(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:i}},d=e=>({padding:`${(0,n.zA)(e.paddingBlockSM)} ${(0,n.zA)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),h=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,n.zA)(e.paddingBlock)} ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},u(e.colorTextPlaceholder)),{"&-lg":Object.assign({},f(e)),"&-sm":Object.assign({},d(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),p=e=>{let{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},f(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},d(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${(0,n.zA)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,i.t6)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
100
+ & > ${t}-affix-wrapper,
101
+ & > ${t}-number-affix-wrapper,
102
+ & > ${r}-picker-range
103
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
104
+ & > ${r}-select-auto-complete ${t},
105
+ & > ${r}-cascader-picker ${t},
106
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
107
+ & > ${r}-select:first-child > ${r}-select-selector,
108
+ & > ${r}-select-auto-complete:first-child ${t},
109
+ & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
110
+ & > ${r}-select:last-child > ${r}-select-selector,
111
+ & > ${r}-cascader-picker:last-child ${t},
112
+ & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},m=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=16,s=o(r).sub(o(n).mul(2)).sub(a).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,i.dF)(e)),h(e)),(0,c.Eb)(e)),(0,c.sA)(e)),(0,c.lB)(e)),(0,c.aP)(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},g=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,n.zA)(e.inputAffixPadding)}`}}}},b=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},h(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),g(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},v=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,i.dF)(e)),p(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},(0,c.nm)(e)),(0,c.Vy)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},y=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
113
+ > ${t},
114
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},w=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},x=(0,a.OF)(["Input","Shared"],e=>{let t=(0,s.oX)(e,(0,l.C)(e));return[m(t),b(t)]},l.b,{resetFont:!1}),A=(0,a.OF)(["Input","Component"],e=>{let t=(0,s.oX)(e,(0,l.C)(e));return[v(t),y(t),w(t),(0,o.G)(t)]},l.b,{resetFont:!1})},69377(e,t,r){"use strict";r.d(t,{C:()=>i,b:()=>o});var n=r(63930);function i(e){return(0,n.oX)(e,{inputAffixPadding:e.paddingXXS})}let o=e=>{let{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y,inputFontSize:w,inputFontSizeLG:x,inputFontSizeSM:A}=e,E=w||r,_=A||E,S=x||s;return{paddingBlock:Math.max(Math.round((t-E*n)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-_*n)/2*10)/10-i,0),paddingBlockLG:Math.max(Math.ceil((a-S*l)/2*10)/10-i,0),paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:d,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${b}`,warningActiveShadow:`0 0 0 ${m}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:E,inputFontSizeLG:S,inputFontSizeSM:_}}},97208(e,t,r){"use strict";r.d(t,{Eb:()=>c,Vy:()=>b,aP:()=>w,eT:()=>a,lB:()=>d,nI:()=>s,nm:()=>f,sA:()=>m});var n=r(59296),i=r(63930);let o=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),a=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},o((0,i.oX)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),s=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),l=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},s(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),l(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),l(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),u=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),f=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},u(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),u(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},a(e))}})}),d=(e,t)=>{let{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},h=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!=(r=null==t?void 0:t.inputColor)?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},p=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},h(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),m=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},h(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),p(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),p(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),g=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),b=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},g(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),g(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),v=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,n.zA)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),y=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},v(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),w=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),y(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),y(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)})},4751(e,t,r){"use strict";r.d(t,{P:()=>S,A:()=>k});var n=r(22155),i=r(76878);let o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var a=r(52372),s=function(e,t){return n.createElement(a.A,(0,i.A)({},e,{ref:t,icon:o}))};let l=n.forwardRef(s);var c=r(93512),u=r(32983),f=r(30395),d=r.n(f),h=r(46604),p=r(20007),m=r(65289),g=r(28015),b=r(59296),v=r(62294),y=r(72056);let w=e=>{let{componentCls:t,siderBg:r,motionDurationMid:n,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:d,lightSiderBg:h,lightTriggerColor:p,lightTriggerBg:m,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:r,transition:`all ${n}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,b.zA)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${n}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${(0,b.zA)(d)} ${(0,b.zA)(d)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,b.zA)(d)} 0 0 ${(0,b.zA)(d)}`}},"&-light":{background:h,[`${t}-trigger`]:{color:p,background:m},[`${t}-zero-width-trigger`]:{color:p,background:m,border:`1px solid ${g}`,borderInlineStart:0}}}}},x=(0,y.OF)(["Layout","Sider"],w,v.cH,{deprecatedTokens:v.lB});var A=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},_=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),S=n.createContext({}),$=(()=>{let e=0;return (t="")=>(e+=1,`${t}${e}`)})(),k=n.forwardRef((e,t)=>{let{prefixCls:r,className:i,trigger:o,children:a,defaultCollapsed:s=!1,theme:f="dark",style:b={},collapsible:v=!1,reverseArrow:y=!1,width:w=200,collapsedWidth:k=80,zeroWidthTriggerStyle:C,breakpoint:O,onCollapse:M,onBreakpoint:I}=e,R=A(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:j}=(0,n.useContext)(g.M),[T,N]=(0,n.useState)("collapsed"in e?e.collapsed:s),[P,B]=(0,n.useState)(!1);(0,n.useEffect)(()=>{"collapsed"in e&&N(e.collapsed)},[e.collapsed]);let z=(t,r)=>{"collapsed"in e||N(t),null==M||M(t,r)},{getPrefixCls:L,direction:D}=(0,n.useContext)(m.QO),F=L("layout-sider",r),[H,U,q]=x(F),W=(0,n.useRef)(null);W.current=e=>{B(e.matches),null==I||I(e.matches),T!==e.matches&&z(e.matches,"responsive")},(0,n.useEffect)(()=>{let e;function t(e){var t;return null==(t=W.current)?void 0:t.call(W,e)}return void 0!==(null==window?void 0:window.matchMedia)&&O&&O in E&&(e=window.matchMedia(`screen and (max-width: ${E[O]})`),(0,p.e)(e,t),t(e)),()=>{(0,p.p)(e,t)}},[O]),(0,n.useEffect)(()=>{let e=$("ant-sider-");return j.addSider(e),()=>j.removeSider(e)},[]);let V=()=>{z(!T,"clickTrigger")},K=(0,h.A)(R,["collapsed"]),G=T?k:w,X=_(G)?`${G}px`:String(G),Z=0===Number.parseFloat(String(k||0))?n.createElement("span",{onClick:V,className:d()(`${F}-zero-width-trigger`,`${F}-zero-width-trigger-${y?"right":"left"}`),style:C},o||n.createElement(l,null)):null,Y="rtl"===D==!y,J={expanded:Y?n.createElement(u.A,null):n.createElement(c.A,null),collapsed:Y?n.createElement(c.A,null):n.createElement(u.A,null)}[T?"collapsed":"expanded"],Q=null!==o?Z||n.createElement("div",{className:`${F}-trigger`,onClick:V,style:{width:X}},o||J):null,ee=Object.assign(Object.assign({},b),{flex:`0 0 ${X}`,maxWidth:X,minWidth:X,width:X}),et=d()(F,`${F}-${f}`,{[`${F}-collapsed`]:!!T,[`${F}-has-trigger`]:v&&null!==o&&!Z,[`${F}-below`]:!!P,[`${F}-zero-width`]:0===Number.parseFloat(X)},i,U,q),er=n.useMemo(()=>({siderCollapsed:T}),[T]);return H(n.createElement(S.Provider,{value:er},n.createElement("aside",Object.assign({className:et},K,{style:ee,ref:t}),n.createElement("div",{className:`${F}-children`},a),v||P&&Z?Q:null)))})},28015(e,t,r){"use strict";r.d(t,{M:()=>n});let n=r(22155).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},99341(e,t,r){"use strict";r.d(t,{A:()=>E});var n=r(78944),i=r(22155),o=r(30395),a=r.n(o),s=r(46604),l=r(65289),c=r(28015),u=r(54355),f=r(4751);function d(e,t,r){return"boolean"==typeof r?r:!!e.length||(0,u.A)(t).some(e=>e.type===f.A)}var h=r(62294),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function m({suffixCls:e,tagName:t,displayName:r}){return r=>i.forwardRef((n,o)=>i.createElement(r,Object.assign({ref:o,suffixCls:e,tagName:t},n)))}let g=i.forwardRef((e,t)=>{let{prefixCls:r,suffixCls:n,className:o,tagName:s}=e,c=p(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=i.useContext(l.QO),f=u("layout",r),[d,m,g]=(0,h.Ay)(f),b=n?`${f}-${n}`:f;return d(i.createElement(s,Object.assign({className:a()(r||b,o,m,g),ref:t},c)))}),b=i.forwardRef((e,t)=>{let{direction:r}=i.useContext(l.QO),[o,u]=i.useState([]),{prefixCls:f,className:m,rootClassName:g,children:b,hasSider:v,tagName:y,style:w}=e,x=p(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),A=(0,s.A)(x,["suffixCls"]),{getPrefixCls:E,className:_,style:S}=(0,l.TP)("layout"),$=E("layout",f),k=d(o,b,v),[C,O,M]=(0,h.Ay)($),I=a()($,{[`${$}-has-sider`]:k,[`${$}-rtl`]:"rtl"===r},_,m,g,O,M),R=i.useMemo(()=>({siderHook:{addSider:e=>{u(t=>[].concat((0,n.A)(t),[e]))},removeSider:e=>{u(t=>t.filter(t=>t!==e))}}}),[]);return C(i.createElement(c.M.Provider,{value:R},i.createElement(y,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},S),w)},A),b)))}),v=m({tagName:"div",displayName:"Layout"})(b),y=m({suffixCls:"header",tagName:"header",displayName:"Header"})(g),w=m({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(g),x=m({suffixCls:"content",tagName:"main",displayName:"Content"})(g),A=v;A.Header=y,A.Footer=w,A.Content=x,A.Sider=f.A,A._InternalSiderContext=f.P;let E=A},62294(e,t,r){"use strict";r.d(t,{Ay:()=>l,cH:()=>a,lB:()=>s});var n=r(59296),i=r(72056);let o=e=>{let{antCls:t,componentCls:r,colorText:i,footerBg:o,headerHeight:a,headerPadding:s,headerColor:l,footerPadding:c,fontSize:u,bodyBg:f,headerBg:d}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:f,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:a,padding:s,color:l,lineHeight:(0,n.zA)(a),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:c,color:i,fontSize:u,background:o},[`${r}-content`]:{flex:"auto",color:i,minHeight:0}}},a=e=>{let{colorBgLayout:t,controlHeight:r,controlHeightLG:n,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*n;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*r,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:n+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:n,zeroTriggerHeight:n,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},s=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],l=(0,i.OF)("Layout",o,a,{deprecatedTokens:s})},86145(e,t,r){"use strict";r.d(t,{A:()=>eC});var n=r(78944),i=r(22155),o=r(30395),a=r.n(o),s=r(58501),l=r(9355),c=r(65289),u=r(36416),f=r(27147),d=r(89031),h=r(16849),p=r(76878);let m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var g=r(52372),b=function(e,t){return i.createElement(g.A,(0,p.A)({},e,{ref:t,icon:m}))};let v=i.forwardRef(b),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var w=function(e,t){return i.createElement(g.A,(0,p.A)({},e,{ref:t,icon:y}))};let x=i.forwardRef(w);var A=r(93512),E=r(32983),_=r(19841),S=r(24366),$=r(39317),k=r(70486),C=r(3604),O=r(19187),M=r(21634);r(47773);let I={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var R=[10,20,50,100];let j=function(e){var t=e.pageSizeOptions,r=void 0===t?R:t,n=e.locale,o=e.changeSize,a=e.pageSize,s=e.goButton,l=e.quickGo,c=e.rootPrefixCls,u=e.disabled,f=e.buildOptionText,d=e.showSizeChanger,h=e.sizeChangerRender,p=i.useState(""),m=(0,k.A)(p,2),g=m[0],b=m[1],v=function(){return!g||Number.isNaN(g)?void 0:Number(g)},y="function"==typeof f?f:function(e){return"".concat(e," ").concat(n.items_per_page)},w=function(e){b(e.target.value)},x=function(e){s||""===g||(b(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==l||l(v()))},A=function(e){""!==g&&(e.keyCode===O.A.ENTER||"click"===e.type)&&(b(""),null==l||l(v()))},E=function(){return r.some(function(e){return e.toString()===a.toString()})?r:r.concat([a]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})},_="".concat(c,"-options");if(!d&&!l)return null;var S=null,$=null,C=null;return d&&h&&(S=h({disabled:u,size:a,onSizeChange:function(e){null==o||o(Number(e))},"aria-label":n.page_size,className:"".concat(_,"-size-changer"),options:E().map(function(e){return{label:y(e),value:e}})})),l&&(s&&(C="boolean"==typeof s?i.createElement("button",{type:"button",onClick:A,onKeyUp:A,disabled:u,className:"".concat(_,"-quick-jumper-button")},n.jump_to_confirm):i.createElement("span",{onClick:A,onKeyUp:A},s)),$=i.createElement("div",{className:"".concat(_,"-quick-jumper")},n.jump_to,i.createElement("input",{disabled:u,type:"text",value:g,onChange:w,onKeyUp:A,onBlur:x,"aria-label":n.page}),n.page,C)),i.createElement("li",{className:_},S,$)},T=function(e){var t=e.rootPrefixCls,r=e.page,n=e.active,o=e.className,s=e.showTitle,l=e.onClick,c=e.onKeyPress,u=e.itemRender,f="".concat(t,"-item"),d=a()(f,"".concat(f,"-").concat(r),(0,_.A)((0,_.A)({},"".concat(f,"-active"),n),"".concat(f,"-disabled"),!r),o),h=function(){l(r)},p=function(e){c(e,l,r)},m=u(r,"page",i.createElement("a",{rel:"nofollow"},r));return m?i.createElement("li",{title:s?String(r):null,className:d,onClick:h,onKeyDown:p,tabIndex:0},m):null};var N=function(e,t,r){return r};function P(){}function B(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function z(e,t,r){return Math.floor((r-1)/(void 0===e?t:e))+1}let L=function(e){var t,r,n=e.prefixCls,o=void 0===n?"rc-pagination":n,s=e.selectPrefixCls,l=void 0===s?"rc-select":s,c=e.className,u=e.current,f=e.defaultCurrent,d=void 0===f?1:f,h=e.total,m=void 0===h?0:h,g=e.pageSize,b=e.defaultPageSize,v=void 0===b?10:b,y=e.onChange,w=void 0===y?P:y,x=e.hideOnSinglePage,A=e.align,E=e.showPrevNextJumpers,R=void 0===E||E,L=e.showQuickJumper,D=e.showLessItems,F=e.showTitle,H=void 0===F||F,U=e.onShowSizeChange,q=void 0===U?P:U,W=e.locale,V=void 0===W?I:W,K=e.style,G=e.totalBoundaryShowSizeChanger,X=void 0===G?50:G,Z=e.disabled,Y=e.simple,J=e.showTotal,Q=e.showSizeChanger,ee=void 0===Q?m>X:Q,et=e.sizeChangerRender,er=e.pageSizeOptions,en=e.itemRender,ei=void 0===en?N:en,eo=e.jumpPrevIcon,ea=e.jumpNextIcon,es=e.prevIcon,el=e.nextIcon,ec=i.useRef(null),eu=(0,C.A)(10,{value:g,defaultValue:v}),ef=(0,k.A)(eu,2),ed=ef[0],eh=ef[1],ep=(0,C.A)(1,{value:u,defaultValue:d,postState:function(e){return Math.max(1,Math.min(e,z(void 0,ed,m)))}}),em=(0,k.A)(ep,2),eg=em[0],eb=em[1],ev=i.useState(eg),ey=(0,k.A)(ev,2),ew=ey[0],ex=ey[1];(0,i.useEffect)(function(){ex(eg)},[eg]);var eA=Math.max(1,eg-(D?3:5)),eE=Math.min(z(void 0,ed,m),eg+(D?3:5));function e_(t,r){var n=t||i.createElement("button",{type:"button","aria-label":r,className:"".concat(o,"-item-link")});return"function"==typeof t&&(n=i.createElement(t,(0,$.A)({},e))),n}function eS(e){var t=e.target.value,r=z(void 0,ed,m);return""===t?t:Number.isNaN(Number(t))?ew:t>=r?r:Number(t)}function e$(e){return B(e)&&e!==eg&&B(m)&&m>0}var ek=m>ed&&L;function eC(e){(e.keyCode===O.A.UP||e.keyCode===O.A.DOWN)&&e.preventDefault()}function eO(e){var t=eS(e);switch(t!==ew&&ex(t),e.keyCode){case O.A.ENTER:eR(t);break;case O.A.UP:eR(t-1);break;case O.A.DOWN:eR(t+1)}}function eM(e){eR(eS(e))}function eI(e){var t=z(e,ed,m),r=eg>t&&0!==t?t:eg;eh(e),ex(r),null==q||q(eg,e),eb(r),null==w||w(r,e)}function eR(e){if(e$(e)&&!Z){var t=z(void 0,ed,m),r=e;return e>t?r=t:e<1&&(r=1),r!==ew&&ex(r),eb(r),null==w||w(r,ed),r}return eg}var ej=eg>1,eT=eg<z(void 0,ed,m);function eN(){ej&&eR(eg-1)}function eP(){eT&&eR(eg+1)}function eB(){eR(eA)}function ez(){eR(eE)}function eL(e,t){if("Enter"===e.key||e.charCode===O.A.ENTER||e.keyCode===O.A.ENTER){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];t.apply(void 0,n)}}function eD(e){eL(e,eN)}function eF(e){eL(e,eP)}function eH(e){eL(e,eB)}function eU(e){eL(e,ez)}function eq(e){var t=ei(e,"prev",e_(es,"prev page"));return i.isValidElement(t)?i.cloneElement(t,{disabled:!ej}):t}function eW(e){var t=ei(e,"next",e_(el,"next page"));return i.isValidElement(t)?i.cloneElement(t,{disabled:!eT}):t}function eV(e){("click"===e.type||e.keyCode===O.A.ENTER)&&eR(ew)}var eK=null,eG=(0,M.A)(e,{aria:!0,data:!0}),eX=J&&i.createElement("li",{className:"".concat(o,"-total-text")},J(m,[0===m?0:(eg-1)*ed+1,eg*ed>m?m:eg*ed])),eZ=null,eY=z(void 0,ed,m);if(x&&m<=ed)return null;var eJ=[],eQ={rootPrefixCls:o,onClick:eR,onKeyPress:eL,showTitle:H,itemRender:ei,page:-1},e0=eg-1>0?eg-1:0,e1=eg+1<eY?eg+1:eY,e2=L&&L.goButton,e6="object"===(0,S.A)(Y)?Y.readOnly:!Y,e3=e2,e5=null;Y&&(e2&&(e3="boolean"==typeof e2?i.createElement("button",{type:"button",onClick:eV,onKeyUp:eV},V.jump_to_confirm):i.createElement("span",{onClick:eV,onKeyUp:eV},e2),e3=i.createElement("li",{title:H?"".concat(V.jump_to).concat(eg,"/").concat(eY):null,className:"".concat(o,"-simple-pager")},e3)),e5=i.createElement("li",{title:H?"".concat(eg,"/").concat(eY):null,className:"".concat(o,"-simple-pager")},e6?ew:i.createElement("input",{type:"text","aria-label":V.jump_to,value:ew,disabled:Z,onKeyDown:eC,onKeyUp:eO,onChange:eO,onBlur:eM,size:3}),i.createElement("span",{className:"".concat(o,"-slash")},"/"),eY));var e4=D?1:2;if(eY<=3+2*e4){eY||eJ.push(i.createElement(T,(0,p.A)({},eQ,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var e8=1;e8<=eY;e8+=1)eJ.push(i.createElement(T,(0,p.A)({},eQ,{key:e8,page:e8,active:eg===e8})))}else{var e9=D?V.prev_3:V.prev_5,e7=D?V.next_3:V.next_5,te=ei(eA,"jump-prev",e_(eo,"prev page")),tt=ei(eE,"jump-next",e_(ea,"next page"));R&&(eK=te?i.createElement("li",{title:H?e9:null,key:"prev",onClick:eB,tabIndex:0,onKeyDown:eH,className:a()("".concat(o,"-jump-prev"),(0,_.A)({},"".concat(o,"-jump-prev-custom-icon"),!!eo))},te):null,eZ=tt?i.createElement("li",{title:H?e7:null,key:"next",onClick:ez,tabIndex:0,onKeyDown:eU,className:a()("".concat(o,"-jump-next"),(0,_.A)({},"".concat(o,"-jump-next-custom-icon"),!!ea))},tt):null);var tr=Math.max(1,eg-e4),tn=Math.min(eg+e4,eY);eg-1<=e4&&(tn=1+2*e4),eY-eg<=e4&&(tr=eY-2*e4);for(var ti=tr;ti<=tn;ti+=1)eJ.push(i.createElement(T,(0,p.A)({},eQ,{key:ti,page:ti,active:eg===ti})));if(eg-1>=2*e4&&3!==eg&&(eJ[0]=i.cloneElement(eJ[0],{className:a()("".concat(o,"-item-after-jump-prev"),eJ[0].props.className)}),eJ.unshift(eK)),eY-eg>=2*e4&&eg!==eY-2){var to=eJ[eJ.length-1];eJ[eJ.length-1]=i.cloneElement(to,{className:a()("".concat(o,"-item-before-jump-next"),to.props.className)}),eJ.push(eZ)}1!==tr&&eJ.unshift(i.createElement(T,(0,p.A)({},eQ,{key:1,page:1}))),tn!==eY&&eJ.push(i.createElement(T,(0,p.A)({},eQ,{key:eY,page:eY})))}var ta=eq(e0);if(ta){var ts=!ej||!eY;ta=i.createElement("li",{title:H?V.prev_page:null,onClick:eN,tabIndex:ts?null:0,onKeyDown:eD,className:a()("".concat(o,"-prev"),(0,_.A)({},"".concat(o,"-disabled"),ts)),"aria-disabled":ts},ta)}var tl=eW(e1);tl&&(Y?(t=!eT,r=ej?0:null):r=(t=!eT||!eY)?null:0,tl=i.createElement("li",{title:H?V.next_page:null,onClick:eP,tabIndex:r,onKeyDown:eF,className:a()("".concat(o,"-next"),(0,_.A)({},"".concat(o,"-disabled"),t)),"aria-disabled":t},tl));var tc=a()(o,c,(0,_.A)((0,_.A)((0,_.A)((0,_.A)((0,_.A)({},"".concat(o,"-start"),"start"===A),"".concat(o,"-center"),"center"===A),"".concat(o,"-end"),"end"===A),"".concat(o,"-simple"),Y),"".concat(o,"-disabled"),Z));return i.createElement("ul",(0,p.A)({className:tc,style:K,ref:ec},eG),eX,ta,Y?e5:eJ,tl,i.createElement(j,{locale:V,rootPrefixCls:o,disabled:Z,selectPrefixCls:l,changeSize:eI,pageSize:ed,pageSizeOptions:er,quickGo:ek?eR:null,goButton:e3,showSizeChanger:ee,sizeChangerRender:et}))};var D=r(14835),F=r(92733),H=r(14510),U=r(57873),q=r(59296),W=r(76364),V=r(69377),K=r(97208),G=r(96619),X=r(63930),Z=r(72056);let Y=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},J=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,q.zA)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,q.zA)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,q.zA)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
115
+ &${t}-mini ${t}-prev ${t}-item-link,
116
+ &${t}-mini ${t}-next ${t}-item-link
117
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,q.zA)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,q.zA)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,q.zA)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,W.BZ)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Q=e=>{let{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:(0,q.zA)(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:(0,q.zA)(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${(0,q.zA)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,q.zA)(e.inputOutlineOffset)} 0 ${(0,q.zA)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:(0,q.zA)(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:(0,q.zA)(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},ee=e=>{let{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
118
+ ${t}-prev,
119
+ ${t}-jump-prev,
120
+ ${t}-jump-next
121
+ `]:{marginInlineEnd:e.marginXS},[`
122
+ ${t}-prev,
123
+ ${t}-next,
124
+ ${t}-jump-prev,
125
+ ${t}-jump-next
126
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,q.zA)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,q.zA)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,q.zA)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,W.wj)(e)),(0,K.nI)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,K.eT)(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},et=e=>{let{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,q.zA)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,q.zA)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,q.zA)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},er=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,G.dF)(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,q.zA)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),et(e)),ee(e)),Q(e)),J(e)),Y(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},en=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,G.K8)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,G.jk)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:(0,G.jk)(e)}}}},ei=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,V.b)(e)),eo=e=>(0,X.oX)(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,V.C)(e)),ea=(0,Z.OF)("Pagination",e=>{let t=eo(e);return[er(t),en(t)]},ei),es=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},el=(0,Z.bf)(["Pagination","bordered"],e=>es(eo(e)),ei);function ec(e){return(0,i.useMemo)(()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0],[e])}var eu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let ef=e=>{let{align:t,prefixCls:r,selectPrefixCls:n,className:o,rootClassName:s,style:l,size:u,locale:d,responsive:p,showSizeChanger:m,selectComponentClass:g,pageSizeOptions:b}=e,y=eu(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:w}=(0,h.A)(p),[,_]=(0,U.Ay)(),{getPrefixCls:S,direction:$,showSizeChanger:k,className:C,style:O}=(0,c.TP)("pagination"),M=S("pagination",r),[I,R,j]=ea(M),T=(0,f.A)(u),N="small"===T||!!(w&&!T&&p),[P]=(0,F.A)("Pagination",D.A),B=Object.assign(Object.assign({},P),d),[z,q]=ec(m),[W,V]=ec(k),K=null!=z?z:W,G=null!=q?q:V,X=g||H.A,Z=i.useMemo(()=>b?b.map(e=>Number(e)):void 0,[b]),Y=e=>{var t;let{disabled:r,size:n,onSizeChange:o,"aria-label":s,className:l,options:c}=e,{className:u,onChange:f}=G||{},d=null==(t=c.find(e=>String(e.value)===String(n)))?void 0:t.value;return i.createElement(X,Object.assign({disabled:r,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":s,options:c},G,{value:d,onChange:(e,t)=>{null==o||o(e),null==f||f(e,t)},size:N?"small":"middle",className:a()(l,u)}))},J=i.useMemo(()=>{let e=i.createElement("span",{className:`${M}-item-ellipsis`},"•••"),t=i.createElement("button",{className:`${M}-item-link`,type:"button",tabIndex:-1},"rtl"===$?i.createElement(E.A,null):i.createElement(A.A,null)),r=i.createElement("button",{className:`${M}-item-link`,type:"button",tabIndex:-1},"rtl"===$?i.createElement(A.A,null):i.createElement(E.A,null));return{prevIcon:t,nextIcon:r,jumpPrevIcon:i.createElement("a",{className:`${M}-item-link`},i.createElement("div",{className:`${M}-item-container`},"rtl"===$?i.createElement(x,{className:`${M}-item-link-icon`}):i.createElement(v,{className:`${M}-item-link-icon`}),e)),jumpNextIcon:i.createElement("a",{className:`${M}-item-link`},i.createElement("div",{className:`${M}-item-container`},"rtl"===$?i.createElement(v,{className:`${M}-item-link-icon`}):i.createElement(x,{className:`${M}-item-link-icon`}),e))}},[$,M]),Q=S("select",n),ee=a()({[`${M}-${t}`]:!!t,[`${M}-mini`]:N,[`${M}-rtl`]:"rtl"===$,[`${M}-bordered`]:_.wireframe},C,o,s,R,j),et=Object.assign(Object.assign({},O),l);return I(i.createElement(i.Fragment,null,_.wireframe&&i.createElement(el,{prefixCls:M}),i.createElement(L,Object.assign({},J,y,{style:et,prefixCls:M,selectPrefixCls:Q,className:ee,locale:B,pageSizeOptions:Z,showSizeChanger:K,sizeChangerRender:Y}))))};var ed=r(3072);let eh=i.createContext({});eh.Consumer;var ep=r(21968),em=r(20956),eg=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let eb=e=>{var{prefixCls:t,className:r,avatar:n,title:o,description:s}=e,l=eg(e,["prefixCls","className","avatar","title","description"]);let{getPrefixCls:u}=(0,i.useContext)(c.QO),f=u("list",t),d=a()(`${f}-item-meta`,r),h=i.createElement("div",{className:`${f}-item-meta-content`},o&&i.createElement("h4",{className:`${f}-item-meta-title`},o),s&&i.createElement("div",{className:`${f}-item-meta-description`},s));return i.createElement("div",Object.assign({},l,{className:d}),n&&i.createElement("div",{className:`${f}-item-meta-avatar`},n),(o||s)&&h)},ev=i.forwardRef((e,t)=>{let{prefixCls:r,children:n,actions:o,extra:s,styles:l,className:u,classNames:f,colStyle:d}=e,h=eg(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:p,itemLayout:m}=(0,i.useContext)(eh),{getPrefixCls:g,list:b}=(0,i.useContext)(c.QO),v=e=>{var t,r;return a()(null==(r=null==(t=null==b?void 0:b.item)?void 0:t.classNames)?void 0:r[e],null==f?void 0:f[e])},y=e=>{var t,r;return Object.assign(Object.assign({},null==(r=null==(t=null==b?void 0:b.item)?void 0:t.styles)?void 0:r[e]),null==l?void 0:l[e])},w=()=>{let e=!1;return i.Children.forEach(n,t=>{"string"==typeof t&&(e=!0)}),e&&i.Children.count(n)>1},x=()=>"vertical"===m?!!s:!w(),A=g("list",r),E=o&&o.length>0&&i.createElement("ul",{className:a()(`${A}-item-action`,v("actions")),key:"actions",style:y("actions")},o.map((e,t)=>i.createElement("li",{key:`${A}-item-action-${t}`},e,t!==o.length-1&&i.createElement("em",{className:`${A}-item-action-split`})))),_=p?"div":"li",S=i.createElement(_,Object.assign({},h,p?{}:{ref:t},{className:a()(`${A}-item`,{[`${A}-item-no-flex`]:!x()},u)}),"vertical"===m&&s?[i.createElement("div",{className:`${A}-item-main`,key:"content"},n,E),i.createElement("div",{className:a()(`${A}-item-extra`,v("extra")),key:"extra",style:y("extra")},s)]:[n,E,(0,ep.Ob)(s,{key:"extra"})]);return p?i.createElement(em.A,{ref:t,flex:1,style:d},S):S});ev.Meta=eb;let ey=ev,ew=e=>{let{listBorderedCls:t,componentCls:r,paddingLG:n,margin:i,itemPaddingSM:o,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e,c=(0,q.zA)(e.calc(l).sub(e.lineWidth).equal());return{[t]:{border:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${r}-header`]:{borderRadius:`${c} ${c} 0 0`},[`${r}-footer`]:{borderRadius:`0 0 ${c} ${c}`},[`${r}-header,${r}-footer,${r}-item`]:{paddingInline:n},[`${r}-pagination`]:{margin:`${(0,q.zA)(i)} ${(0,q.zA)(s)}`}},[`${t}${r}-sm`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:o}},[`${t}${r}-lg`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:a}}}},ex=e=>{let{componentCls:t,screenSM:r,screenMD:n,marginLG:i,marginSM:o,margin:a}=e;return{[`@media screen and (max-width:${n}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${r}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${(0,q.zA)(a)}`}}}}}},eA=e=>{let{componentCls:t,antCls:r,controlHeight:n,minHeight:i,paddingSM:o,marginLG:a,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:f,paddingXS:d,margin:h,colorText:p,colorTextDescription:m,motionDurationSlow:g,lineWidth:b,headerBg:v,footerBg:y,emptyTextPadding:w,metaMarginBottom:x,avatarMarginRight:A,titleMarginBottom:E,descriptionFontSize:_}=e;return{[t]:Object.assign(Object.assign({},(0,G.dF)(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:a,[`${r}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:p,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:A},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:p},[`${t}-item-meta-title`]:{margin:`0 0 ${(0,q.zA)(e.marginXXS)} 0`,color:p,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:p,transition:`all ${g}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:m,fontSize:_,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${(0,q.zA)(d)}`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:b,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${(0,q.zA)(s)} 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:w,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${r}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:E,color:p,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${(0,q.zA)(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:n},[`${t}-split${t}-something-after-last-item ${r}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${(0,q.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},eE=e=>({contentWidth:220,itemPadding:`${(0,q.zA)(e.paddingContentVertical)} 0`,itemPaddingSM:`${(0,q.zA)(e.paddingContentVerticalSM)} ${(0,q.zA)(e.paddingContentHorizontal)}`,itemPaddingLG:`${(0,q.zA)(e.paddingContentVerticalLG)} ${(0,q.zA)(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),e_=(0,Z.OF)("List",e=>{let t=(0,X.oX)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[eA(t),ew(t),ex(t)]},eE);var eS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function e$(e,t){let{pagination:r=!1,prefixCls:o,bordered:p=!1,split:m=!0,className:g,rootClassName:b,style:v,children:y,itemLayout:w,loadMore:x,grid:A,dataSource:E=[],size:_,header:S,footer:$,loading:k=!1,rowKey:C,renderItem:O,locale:M}=e,I=eS(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),R=r&&"object"==typeof r?r:{},[j,T]=i.useState(R.defaultCurrent||1),[N,P]=i.useState(R.defaultPageSize||10),{getPrefixCls:B,direction:z,className:L,style:D}=(0,c.TP)("list"),{renderEmpty:F}=i.useContext(c.QO),H={current:1,total:0,position:"bottom"},U=e=>(t,n)=>{var i;T(t),P(n),r&&(null==(i=null==r?void 0:r[e])||i.call(r,t,n))},q=U("onChange"),W=U("onShowSizeChange"),V=(e,t)=>{let r;return O?((r="function"==typeof C?C(e):C?e[C]:e.key)||(r=`list-item-${t}`),i.createElement(i.Fragment,{key:r},O(e,t))):null},K=!!(x||r||$),G=B("list",o),[X,Z,Y]=e_(G),J=k;"boolean"==typeof J&&(J={spinning:J});let Q=!!(null==J?void 0:J.spinning),ee=(0,f.A)(_),et="";switch(ee){case"large":et="lg";break;case"small":et="sm"}let er=a()(G,{[`${G}-vertical`]:"vertical"===w,[`${G}-${et}`]:et,[`${G}-split`]:m,[`${G}-bordered`]:p,[`${G}-loading`]:Q,[`${G}-grid`]:!!A,[`${G}-something-after-last-item`]:K,[`${G}-rtl`]:"rtl"===z},L,g,b,Z,Y),en=(0,s.A)(H,{total:E.length,current:j,pageSize:N},r||{}),ei=Math.ceil(en.total/en.pageSize);en.current=Math.min(en.current,ei);let eo=r&&i.createElement("div",{className:a()(`${G}-pagination`)},i.createElement(ef,Object.assign({align:"end"},en,{onChange:q,onShowSizeChange:W}))),ea=(0,n.A)(E);r&&E.length>(en.current-1)*en.pageSize&&(ea=(0,n.A)(E).splice((en.current-1)*en.pageSize,en.pageSize));let es=Object.keys(A||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),el=(0,h.A)(es),ec=i.useMemo(()=>{for(let e=0;e<l.ye.length;e+=1){let t=l.ye[e];if(el[t])return t}},[el]),eu=i.useMemo(()=>{if(!A)return;let e=ec&&A[ec]?A[ec]:A.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(A),ec]),ep=Q&&i.createElement("div",{style:{minHeight:53}});if(ea.length>0){let e=ea.map(V);ep=A?i.createElement(d.A,{gutter:A.gutter},i.Children.map(e,e=>i.createElement("div",{key:null==e?void 0:e.key,style:eu},e))):i.createElement("ul",{className:`${G}-items`},e)}else y||Q||(ep=i.createElement("div",{className:`${G}-empty-text`},(null==M?void 0:M.emptyText)||(null==F?void 0:F("List"))||i.createElement(u.A,{componentName:"List"})));let em=en.position,eg=i.useMemo(()=>({grid:A,itemLayout:w}),[JSON.stringify(A),w]);return X(i.createElement(eh.Provider,{value:eg},i.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},D),v),className:er},I),("top"===em||"both"===em)&&eo,S&&i.createElement("div",{className:`${G}-header`},S),i.createElement(ed.A,Object.assign({},J),ep,y),$&&i.createElement("div",{className:`${G}-footer`},$),x||("bottom"===em||"both"===em)&&eo)))}let ek=i.forwardRef(e$);ek.Item=ey;let eC=ek},76999(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(22155).createContext)(void 0)},56156(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(14835),i=r(39317),o={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};let a=(0,i.A)((0,i.A)({},o),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),s={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},l={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},a),timePickerLocale:Object.assign({},s)},c=l,u="${label} is not a valid ${type}",f={locale:"en",Pagination:n.A,DatePicker:l,TimePicker:s,Calendar:c,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},92733(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(22155),i=r(76999),o=r(56156);let a=(e,t)=>{let r=n.useContext(i.A);return[n.useMemo(()=>{var n;let i=t||o.A[e],a=null!=(n=null==r?void 0:r[e])?n:{};return Object.assign(Object.assign({},"function"==typeof i?i():i),a||{})},[e,t,r]),n.useMemo(()=>{let e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?o.A.locale:e},[r])]}},89164(e,t,r){"use strict";r.d(t,{A:()=>j,k:()=>I});var n=r(22155),i=r(35261),o=r(42254),a=r(42964),s=r(91664),l=r(30395),c=r.n(l),u=r(47201),f=r(18697),d=r(64324),h=r(92733),p=r(57873),m=r(74548),g=r(76822),b=r(26455);let v=e=>"function"==typeof(null==e?void 0:e.then),y=e=>{let{type:t,children:r,prefixCls:i,buttonProps:o,close:a,autoFocus:s,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:f}=e,d=n.useRef(!1),h=n.useRef(null),[p,y]=(0,m.A)(!1),w=(...e)=>{null==a||a.apply(void 0,e)};n.useEffect(()=>{let e=null;return s&&(e=setTimeout(()=>{var e;null==(e=h.current)||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[s]);let x=e=>{v(e)&&(y(!0),e.then((...e)=>{y(!1,!0),w.apply(void 0,e),d.current=!1},e=>{if(y(!1,!0),d.current=!1,null==c||!c())return Promise.reject(e)}))},A=e=>{let t;if(!d.current){if(d.current=!0,!f)return void w();if(l){if(t=f(e),u&&!v(t)){d.current=!1,w(e);return}}else if(f.length)t=f(a),d.current=!1;else if(!v(t=f()))return void w();x(t)}};return n.createElement(g.Ay,Object.assign({},(0,b.DU)(t),{onClick:A,loading:p,prefixCls:i},o,{ref:h}),r)};var w=r(93236);let x=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:i,mergedOkCancel:o,rootPrefixCls:a,close:s,onCancel:l,onConfirm:c}=(0,n.useContext)(w.V);return o?n.createElement(y,{isSilent:i,actionFn:l,close:(...e)=>{null==s||s.apply(void 0,e),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},r):null},A=()=>{let{autoFocusButton:e,close:t,isSilent:r,okButtonProps:i,rootPrefixCls:o,okTextLocale:a,okType:s,onConfirm:l,onOk:c}=(0,n.useContext)(w.V);return n.createElement(y,{isSilent:r,type:s||"primary",actionFn:c,close:(...e)=>{null==t||t.apply(void 0,e),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:i,prefixCls:`${o}-btn`},a)};var E=r(22308),_=r(59296),S=r(80385),$=r(96619),k=r(72056);let C=e=>{let{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:i,fontSize:o,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},(0,$.t6)()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,_.zA)(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${(0,_.zA)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[`${u}-content`]:{color:e.colorText,fontSize:o,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
127
+ ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},O=(0,k.bf)(["Modal","confirm"],e=>C((0,S.FY)(e)),S.cH,{order:-1e3});var M=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let I=e=>{let{prefixCls:t,icon:r,okText:l,cancelText:u,confirmPrefixCls:f,type:d,okCancel:p,footer:m,locale:g}=e,b=M(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),v=r;if(!r&&null!==r)switch(d){case"info":v=n.createElement(s.A,null);break;case"success":v=n.createElement(i.A,null);break;case"error":v=n.createElement(o.A,null);break;default:v=n.createElement(a.A,null)}let y=null!=p?p:"confirm"===d,E=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[_]=(0,h.A)("Modal"),S=g||_,$=l||(y?null==S?void 0:S.okText:null==S?void 0:S.justOkText),k=u||(null==S?void 0:S.cancelText),C=n.useMemo(()=>Object.assign({autoFocusButton:E,cancelTextLocale:k,okTextLocale:$,mergedOkCancel:y},b),[E,k,$,y,b]),I=n.createElement(n.Fragment,null,n.createElement(x,null),n.createElement(A,null)),R=void 0!==e.title&&null!==e.title,j=`${f}-body`;return n.createElement("div",{className:`${f}-body-wrapper`},n.createElement("div",{className:c()(j,{[`${j}-has-title`]:R})},v,n.createElement("div",{className:`${f}-paragraph`},R&&n.createElement("span",{className:`${f}-title`},e.title),n.createElement("div",{className:`${f}-content`},e.content))),void 0===m||"function"==typeof m?n.createElement(w.i,{value:C},n.createElement("div",{className:`${f}-btns`},"function"==typeof m?m(I,{OkBtn:A,CancelBtn:x}):I)):m,n.createElement(O,{prefixCls:t}))},R=e=>{let{close:t,zIndex:r,maskStyle:i,direction:o,prefixCls:a,wrapClassName:s,rootPrefixCls:l,bodyStyle:d,closable:h=!1,onConfirm:m,styles:g,title:b}=e,v=`${a}-confirm`,y=e.width||416,w=e.style||{},x=void 0===e.mask||e.mask,A=void 0!==e.maskClosable&&e.maskClosable,_=c()(v,`${v}-${e.type}`,{[`${v}-rtl`]:"rtl"===o},e.className),[,S]=(0,p.Ay)(),$=n.useMemo(()=>void 0!==r?r:S.zIndexPopupBase+u.jH,[r,S]);return n.createElement(E.A,Object.assign({},e,{className:_,wrapClassName:c()({[`${v}-centered`]:!!e.centered},s),onCancel:()=>{null==t||t({triggerCancel:!0}),null==m||m(!1)},title:b,footer:null,transitionName:(0,f.b)(l||"","zoom",e.transitionName),maskTransitionName:(0,f.b)(l||"","fade",e.maskTransitionName),mask:x,maskClosable:A,style:w,styles:Object.assign({body:d,mask:i},g),width:y,zIndex:$,closable:h}),n.createElement(I,Object.assign({},e,{confirmPrefixCls:v})))},j=e=>{let{rootPrefixCls:t,iconPrefixCls:r,direction:i,theme:o}=e;return n.createElement(d.Ay,{prefixCls:t,iconPrefixCls:r,direction:i,theme:o},n.createElement(R,Object.assign({},e)))}},22308(e,t,r){"use strict";let n;r.d(t,{A:()=>ep});var i=r(22155),o=r(32416),a=r(30395),s=r.n(a),l=r(73115),c=r(75252),u=r(643),f=r(21634),d=r(92733),h=r(56156),p=r(58501);function m(e){if(!e)return;let{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}}function g(e){let{closable:t,closeIcon:r}=e||{};return i.useMemo(()=>{if(!t&&(!1===t||!1===r||null===r))return!1;if(void 0===t&&void 0===r)return null;let e={closeIcon:"boolean"!=typeof r&&null!==r?r:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,r])}let b={},v=(e,t,r=b)=>{let n=g(e),a=g(t),[s]=(0,d.A)("global",h.A.global),l="boolean"!=typeof n&&!!(null==n?void 0:n.disabled),c=i.useMemo(()=>Object.assign({closeIcon:i.createElement(o.A,null)},r),[r]),u=i.useMemo(()=>!1!==n&&(n?(0,p.A)(c,a,n):!1!==a&&(a?(0,p.A)(c,a):!!c.closable&&c)),[n,a,c]);return i.useMemo(()=>{var e,t;if(!1===u)return[!1,null,l,{}];let{closeIconRender:r}=c,{closeIcon:n}=u,o=n,a=(0,f.A)(u,!0);return null!=o&&(r&&(o=r(n)),o=i.isValidElement(o)?i.cloneElement(o,Object.assign(Object.assign(Object.assign({},o.props),{"aria-label":null!=(t=null==(e=o.props)?void 0:e["aria-label"])?t:s.close}),a)):i.createElement("span",Object.assign({"aria-label":s.close},a),o)),[!0,o,l,a]},[l,s.close,u,c])};var y=r(47201),w=r(18697),x=r(8929);let A=()=>(0,x.A)()&&window.document.documentElement;var E=r(80690),_=r(65289),S=r(75932),$=r(46604);let k=e=>{let{prefixCls:t,className:r,style:n,size:o,shape:a}=e,l=s()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),c=s()({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),u=i.useMemo(()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return i.createElement("span",{className:s()(t,l,c,r),style:Object.assign(Object.assign({},u),n)})};var C=r(59296),O=r(72056),M=r(63930);let I=new C.Mo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),R=e=>({height:e,lineHeight:(0,C.zA)(e)}),j=e=>Object.assign({width:e},R(e)),T=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:I,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),N=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},R(e)),P=e=>{let{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},j(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},j(i)),[`${t}${t}-sm`]:Object.assign({},j(o))}},B=e=>{let{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:r},N(t,s)),[`${n}-lg`]:Object.assign({},N(i,s)),[`${n}-sm`]:Object.assign({},N(o,s))}},z=e=>Object.assign({width:e},R(e)),L=e=>{let{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:i},z(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},z(r)),{maxWidth:o(r).mul(4).equal(),maxHeight:o(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},D=(e,t,r)=>{let{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},F=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},R(e)),H=e=>{let{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},F(n,s))},D(e,n,r)),{[`${r}-lg`]:Object.assign({},F(i,s))}),D(e,i,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},F(o,s))}),D(e,o,`${r}-sm`))},U=e=>{let{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:d,marginSM:h,borderRadius:p,titleHeight:m,blockRadius:g,paragraphLiHeight:b,controlHeightXS:v,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},j(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},j(c)),[`${r}-sm`]:Object.assign({},j(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:m,background:f,borderRadius:g,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:v}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${i} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},H(e)),P(e)),B(e)),L(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
128
+ ${n},
129
+ ${i} > li,
130
+ ${r},
131
+ ${o},
132
+ ${a},
133
+ ${s}
134
+ `]:Object.assign({},T(e))}}},q=e=>{let{colorFillContent:t,colorFill:r}=e,n=t,i=r;return{color:n,colorGradientEnd:i,gradientFromColor:n,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},W=(0,O.OF)("Skeleton",e=>{let{componentCls:t,calc:r}=e;return U((0,M.oX)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:r(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},q,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),V=e=>{let{prefixCls:t,className:r,rootClassName:n,active:o,shape:a="circle",size:l="default"}=e,{getPrefixCls:c}=i.useContext(_.QO),u=c("skeleton",t),[f,d,h]=W(u),p=(0,$.A)(e,["prefixCls","className"]),m=s()(u,`${u}-element`,{[`${u}-active`]:o},r,n,d,h);return f(i.createElement("div",{className:m},i.createElement(k,Object.assign({prefixCls:`${u}-avatar`,shape:a,size:l},p))))},K="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",G=e=>{let{prefixCls:t,className:r,rootClassName:n,style:o,active:a}=e,{getPrefixCls:l}=i.useContext(_.QO),c=l("skeleton",t),[u,f,d]=W(c),h=s()(c,`${c}-element`,{[`${c}-active`]:a},r,n,f,d);return u(i.createElement("div",{className:h},i.createElement("div",{className:s()(`${c}-image`,r),style:o},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},i.createElement("title",null,"Image placeholder"),i.createElement("path",{d:K,className:`${c}-image-path`})))))},X=e=>{let{prefixCls:t,className:r,rootClassName:n,active:o,block:a,size:l="default"}=e,{getPrefixCls:c}=i.useContext(_.QO),u=c("skeleton",t),[f,d,h]=W(u),p=(0,$.A)(e,["prefixCls"]),m=s()(u,`${u}-element`,{[`${u}-active`]:o,[`${u}-block`]:a},r,n,d,h);return f(i.createElement("div",{className:m},i.createElement(k,Object.assign({prefixCls:`${u}-input`,size:l},p))))},Z=e=>{let{prefixCls:t,className:r,rootClassName:n,style:o,active:a,children:l}=e,{getPrefixCls:c}=i.useContext(_.QO),u=c("skeleton",t),[f,d,h]=W(u),p=s()(u,`${u}-element`,{[`${u}-active`]:a},d,r,n,h);return f(i.createElement("div",{className:p},i.createElement("div",{className:s()(`${u}-image`,r),style:o},l)))},Y=(e,t)=>{let{width:r,rows:n=2}=t;return Array.isArray(r)?r[e]:n-1===e?r:void 0},J=e=>{let{prefixCls:t,className:r,style:n,rows:o=0}=e,a=Array.from({length:o}).map((t,r)=>i.createElement("li",{key:r,style:{width:Y(r,e)}}));return i.createElement("ul",{className:s()(t,r),style:n},a)},Q=({prefixCls:e,className:t,width:r,style:n})=>i.createElement("h3",{className:s()(e,t),style:Object.assign({width:r},n)});function ee(e){return e&&"object"==typeof e?e:{}}function et(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function er(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function en(e,t){let r={};return e&&t||(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}let ei=e=>{let{prefixCls:t,loading:r,className:n,rootClassName:o,style:a,children:l,avatar:c=!1,title:u=!0,paragraph:f=!0,active:d,round:h}=e,{getPrefixCls:p,direction:m,className:g,style:b}=(0,_.TP)("skeleton"),v=p("skeleton",t),[y,w,x]=W(v);if(r||!("loading"in e)){let e,t,r=!!c,l=!!u,p=!!f;if(r){let t=Object.assign(Object.assign({prefixCls:`${v}-avatar`},et(l,p)),ee(c));e=i.createElement("div",{className:`${v}-header`},i.createElement(k,Object.assign({},t)))}if(l||p){let e,n;if(l){let t=Object.assign(Object.assign({prefixCls:`${v}-title`},er(r,p)),ee(u));e=i.createElement(Q,Object.assign({},t))}if(p){let e=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},en(r,l)),ee(f));n=i.createElement(J,Object.assign({},e))}t=i.createElement("div",{className:`${v}-content`},e,n)}let A=s()(v,{[`${v}-with-avatar`]:r,[`${v}-active`]:d,[`${v}-rtl`]:"rtl"===m,[`${v}-round`]:h},g,n,o,w,x);return y(i.createElement("div",{className:A,style:Object.assign(Object.assign({},b),a)},e,t))}return null!=l?l:null};ei.Button=e=>{let{prefixCls:t,className:r,rootClassName:n,active:o,block:a=!1,size:l="default"}=e,{getPrefixCls:c}=i.useContext(_.QO),u=c("skeleton",t),[f,d,h]=W(u),p=(0,$.A)(e,["prefixCls"]),m=s()(u,`${u}-element`,{[`${u}-active`]:o,[`${u}-block`]:a},r,n,d,h);return f(i.createElement("div",{className:m},i.createElement(k,Object.assign({prefixCls:`${u}-button`,size:l},p))))},ei.Avatar=V,ei.Input=X,ei.Image=G,ei.Node=Z;let eo=ei;var ea=r(44649);function es(){}let el=i.createContext({add:es,remove:es});function ec(e){let t=i.useContext(el),r=i.useRef(null);return(0,ea.A)(n=>{if(n){let i=e?n.querySelector(e):n;i&&(t.add(i),r.current=i)}else t.remove(r.current)})}var eu=r(4589),ef=r(80385),ed=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let eh=e=>{n={x:e.pageX,y:e.pageY},setTimeout(()=>{n=null},100)};A()&&document.documentElement.addEventListener("click",eh,!0);let ep=e=>{let{prefixCls:t,className:r,rootClassName:a,open:f,wrapClassName:d,centered:h,getContainer:p,focusTriggerAfterClose:g=!0,style:b,visible:x,width:A=520,footer:$,classNames:k,styles:C,children:O,loading:M,confirmLoading:I,zIndex:R,mousePosition:j,onOk:T,onCancel:N,destroyOnHidden:P,destroyOnClose:B,panelRef:z=null,modalRender:L}=e,D=ed(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:F,getPrefixCls:H,direction:U,modal:q}=i.useContext(_.QO),W=e=>{I||null==N||N(e)},V=e=>{null==T||T(e)},K=H("modal",t),G=H(),X=(0,S.A)(K),[Z,Y,J]=(0,ef.Ay)(K,X),Q=s()(d,{[`${K}-centered`]:null!=h?h:null==q?void 0:q.centered,[`${K}-wrap-rtl`]:"rtl"===U}),ee=null===$||M?null:i.createElement(eu.w,Object.assign({},e,{onOk:V,onCancel:W})),[et,er,en,ei]=v(m(e),m(q),{closable:!0,closeIcon:i.createElement(o.A,{className:`${K}-close-icon`}),closeIconRender:e=>(0,eu.O)(K,e)}),ea=L?e=>i.createElement("div",{className:`${K}-render`},L(e)):void 0,es=ec(`.${K}-${L?"render":"content"}`),el=(0,c.K4)(z,es),[eh,ep]=(0,y.YK)("Modal",R),[em,eg]=i.useMemo(()=>A&&"object"==typeof A?[void 0,A]:[A,void 0],[A]),eb=i.useMemo(()=>{let e={};return eg&&Object.keys(eg).forEach(t=>{let r=eg[t];void 0!==r&&(e[`--${K}-${t}-width`]="number"==typeof r?`${r}px`:r)}),e},[K,eg]);return Z(i.createElement(u.A,{form:!0,space:!0},i.createElement(E.A.Provider,{value:ep},i.createElement(l.A,Object.assign({width:em},D,{zIndex:eh,getContainer:void 0===p?F:p,prefixCls:K,rootClassName:s()(Y,a,J,X),footer:ee,visible:null!=f?f:x,mousePosition:null!=j?j:n,onClose:W,closable:et?Object.assign({disabled:en,closeIcon:er},ei):et,closeIcon:er,focusTriggerAfterClose:g,transitionName:(0,w.b)(G,"zoom",e.transitionName),maskTransitionName:(0,w.b)(G,"fade",e.maskTransitionName),className:s()(Y,r,null==q?void 0:q.className),style:Object.assign(Object.assign(Object.assign({},null==q?void 0:q.style),b),eb),classNames:Object.assign(Object.assign(Object.assign({},null==q?void 0:q.classNames),k),{wrapper:s()(Q,null==k?void 0:k.wrapper)}),styles:Object.assign(Object.assign({},null==q?void 0:q.styles),C),panelRef:el,destroyOnClose:null!=P?P:B,modalRender:ea}),M?i.createElement(eo,{active:!0,title:!1,paragraph:{rows:4},className:`${K}-body-skeleton`}):O))))}},67787(e,t,r){"use strict";r.d(t,{$D:()=>g,Ay:()=>p,Ej:()=>b,FB:()=>w,fp:()=>m,jT:()=>v,lr:()=>y});var n=r(78944),i=r(22155),o=r(65289),a=r(64324),s=r(33960),l=r(89164),c=r(49072),u=r(23753);let f="";function d(){return f}let h=e=>{var t,r;let{prefixCls:n,getContainer:a,direction:s}=e,c=(0,u.l)(),f=(0,i.useContext)(o.QO),h=d()||f.getPrefixCls(),p=n||`${h}-modal`,m=a;return!1===m&&(m=void 0),i.createElement(l.A,Object.assign({},e,{rootPrefixCls:h,prefixCls:p,iconPrefixCls:f.iconPrefixCls,theme:f.theme,direction:null!=s?s:f.direction,locale:null!=(r=null==(t=f.locale)?void 0:t.Modal)?r:c,getContainer:m}))};function p(e){let t,r,o=(0,a.cr)(),l=document.createDocumentFragment(),u=Object.assign(Object.assign({},e),{close:m,open:!0});function f(...t){var i,o;t.some(e=>null==e?void 0:e.triggerCancel)&&(null==(i=e.onCancel)||(o=i).call.apply(o,[e,()=>{}].concat((0,n.A)(t.slice(1)))));for(let e=0;e<c.A.length;e++)if(c.A[e]===m){c.A.splice(e,1);break}r()}let p=e=>{clearTimeout(t),t=setTimeout(()=>{let t=o.getPrefixCls(void 0,d()),n=o.getIconPrefixCls(),c=o.getTheme(),u=i.createElement(h,Object.assign({},e));r=(0,s.L)()(i.createElement(a.Ay,{prefixCls:t,iconPrefixCls:n,theme:c},"function"==typeof o.holderRender?o.holderRender(u):u),l)})};function m(...t){(u=Object.assign(Object.assign({},u),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),f.apply(this,t)}})).visible&&delete u.visible,p(u)}function g(e){p(u="function"==typeof e?e(u):Object.assign(Object.assign({},u),e))}return p(u),c.A.push(m),{destroy:m,update:g}}function m(e){return Object.assign(Object.assign({},e),{type:"warning"})}function g(e){return Object.assign(Object.assign({},e),{type:"info"})}function b(e){return Object.assign(Object.assign({},e),{type:"success"})}function v(e){return Object.assign(Object.assign({},e),{type:"error"})}function y(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function w({rootPrefixCls:e}){f=e}},93236(e,t,r){"use strict";r.d(t,{V:()=>n,i:()=>i});let n=r(22155).createContext({}),{Provider:i}=n},49072(e,t,r){"use strict";r.d(t,{A:()=>n});let n=[]},2429(e,t,r){"use strict";r.d(t,{A:()=>A});var n=r(67787),i=r(49072),o=r(22308),a=r(22155),s=r(30395),l=r.n(s),c=r(73115),u=r(37007),f=r(65289),d=r(75932),h=r(89164),p=r(4589),m=r(80385),g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let b=e=>{let{prefixCls:t,className:r,closeIcon:n,closable:i,type:o,title:s,children:u,footer:b}=e,v=g(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:y}=a.useContext(f.QO),w=y(),x=t||y("modal"),A=(0,d.A)(w),[E,_,S]=(0,m.Ay)(x,A),$=`${x}-confirm`,k={};return k=o?{closable:null!=i&&i,title:"",footer:"",children:a.createElement(h.k,Object.assign({},e,{prefixCls:x,confirmPrefixCls:$,rootPrefixCls:w,content:u}))}:{closable:null==i||i,title:s,footer:null!==b&&a.createElement(p.w,Object.assign({},e)),children:u},E(a.createElement(c.Z,Object.assign({prefixCls:x,className:l()(_,`${x}-pure-panel`,o&&$,o&&`${$}-${o}`,r,S,A)},v,{closeIcon:(0,p.O)(x,n),closable:i},k)))},v=(0,u.U)(b);var y=r(3608);function w(e){return(0,n.Ay)((0,n.fp)(e))}let x=o.A;x.useModal=y.A,x.info=function(e){return(0,n.Ay)((0,n.$D)(e))},x.success=function(e){return(0,n.Ay)((0,n.Ej)(e))},x.error=function(e){return(0,n.Ay)((0,n.jT)(e))},x.warning=w,x.warn=w,x.confirm=function(e){return(0,n.Ay)((0,n.lr)(e))},x.destroyAll=function(){for(;i.A.length;){let e=i.A.pop();e&&e()}},x.config=n.FB,x._InternalPanelDoNotUseOrYouWillBeFired=v;let A=x},23753(e,t,r){"use strict";r.d(t,{L:()=>s,l:()=>l});var n=r(56156);let i=Object.assign({},n.A.Modal),o=[],a=()=>o.reduce((e,t)=>Object.assign(Object.assign({},e),t),n.A.Modal);function s(e){if(e){let t=Object.assign({},e);return o.push(t),i=a(),()=>{o=o.filter(e=>e!==t),i=a()}}i=Object.assign({},n.A.Modal)}function l(){return i}},4589(e,t,r){"use strict";r.d(t,{w:()=>p,O:()=>h});var n=r(22155),i=r(32416),o=r(87673),a=r(92733),s=r(76822),l=r(93236);let c=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=(0,n.useContext)(l.V);return n.createElement(s.Ay,Object.assign({onClick:r},e),t)};var u=r(26455);let f=()=>{let{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:i,onOk:o}=(0,n.useContext)(l.V);return n.createElement(s.Ay,Object.assign({},(0,u.DU)(r),{loading:e,onClick:o},t),i)};var d=r(23753);function h(e,t){return n.createElement("span",{className:`${e}-close-x`},t||n.createElement(i.A,{className:`${e}-close-icon`}))}let p=e=>{let t,{okText:r,okType:i="primary",cancelText:s,confirmLoading:u,onOk:h,onCancel:p,okButtonProps:m,cancelButtonProps:g,footer:b}=e,[v]=(0,a.A)("Modal",(0,d.l)()),y=r||(null==v?void 0:v.okText),w=s||(null==v?void 0:v.cancelText),x=n.useMemo(()=>({confirmLoading:u,okButtonProps:m,cancelButtonProps:g,okTextLocale:y,cancelTextLocale:w,okType:i,onOk:h,onCancel:p}),[u,m,g,y,w,i,h,p]);return"function"==typeof b||void 0===b?(t=n.createElement(n.Fragment,null,n.createElement(c,null),n.createElement(f,null)),"function"==typeof b&&(t=b(t,{OkBtn:f,CancelBtn:c})),t=n.createElement(l.i,{value:x},t)):t=b,n.createElement(o.X,{disabled:!1},t)}},80385(e,t,r){"use strict";r.d(t,{FY:()=>y,Ay:()=>x,cH:()=>w});var n=r(78944),i=r(59296),o=r(35512),a=r(96619),s=r(49782);let l=new i.Mo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),c=new i.Mo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),u=(e,t=!1)=>{let{antCls:r}=e,n=`${r}-fade`,i=t?"&":"";return[(0,s.b)(n,l,c,e.motionDurationMid,t),{[`
135
+ ${i}${n}-enter,
136
+ ${i}${n}-appear
137
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${n}-leave`]:{animationTimingFunction:"linear"}}]};var f=r(64671),d=r(63930),h=r(72056);function p(e){return{position:e,inset:0}}let m=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},p("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},p("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:u(e)}]},g=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,i.zA)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,a.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,i.zA)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,i.zA)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,a.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,i.zA)(e.borderRadiusLG)} ${(0,i.zA)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,i.zA)(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
138
+ ${t}-body,
139
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},b=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},v=e=>{let{componentCls:t}=e,r=(0,o.i4)(e),a=Object.assign({},r);delete a.xs;let s=`--${t.replace(".","")}-`,l=Object.keys(a).map(e=>({[`@media (min-width: ${(0,i.zA)(a[e])})`]:{width:`var(${s}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat((0,n.A)(Object.keys(r).map((e,t)=>{let n=Object.keys(r)[t-1];return n?{[`${s}${e}-width`]:`var(${s}${n}-width)`}:null})),[{width:`var(${s}xs-width)`}],(0,n.A)(l))}}},y=e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return(0,d.oX)(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},w=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,i.zA)(e.paddingMD)} ${(0,i.zA)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,i.zA)(e.padding)} ${(0,i.zA)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,i.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,i.zA)(e.paddingXS)} ${(0,i.zA)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,i.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,i.zA)(e.borderRadiusLG)} ${(0,i.zA)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,i.zA)(2*e.padding)} ${(0,i.zA)(2*e.padding)} ${(0,i.zA)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),x=(0,h.OF)("Modal",e=>{let t=y(e);return[g(t),b(t),m(t),(0,f.aB)(t,"zoom"),v(t)]},w,{unitless:{titleLineHeight:!0}})},3608(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(78944),i=r(22155);let o=()=>{let[e,t]=i.useState([]);return[e,i.useCallback(e=>(t(t=>[].concat((0,n.A)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var a=r(67787),s=r(49072),l=r(65289),c=r(56156),u=r(92733),f=r(89164),d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let h=(e,t)=>{var r,{afterClose:o,config:a}=e,s=d(e,["afterClose","config"]);let[h,p]=i.useState(!0),[m,g]=i.useState(a),{direction:b,getPrefixCls:v}=i.useContext(l.QO),y=v("modal"),w=v(),x=()=>{var e;o(),null==(e=m.afterClose)||e.call(m)},A=(...e)=>{var t,r;p(!1),e.some(e=>null==e?void 0:e.triggerCancel)&&(null==(t=m.onCancel)||(r=t).call.apply(r,[m,()=>{}].concat((0,n.A)(e.slice(1)))))};i.useImperativeHandle(t,()=>({destroy:A,update:e=>{g(t=>{let r="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),r)})}}));let E=null!=(r=m.okCancel)?r:"confirm"===m.type,[_]=(0,u.A)("Modal",c.A.Modal);return i.createElement(f.A,Object.assign({prefixCls:y,rootPrefixCls:w},m,{close:A,open:h,afterClose:x,okText:m.okText||(E?null==_?void 0:_.okText:null==_?void 0:_.justOkText),direction:m.direction||b,cancelText:m.cancelText||(null==_?void 0:_.cancelText)},s))},p=i.forwardRef(h),m=0,g=i.memo(i.forwardRef((e,t)=>{let[r,n]=o();return i.useImperativeHandle(t,()=>({patchElement:n}),[n]),i.createElement(i.Fragment,null,r)})),b=function(){let e=i.useRef(null),[t,r]=i.useState([]);i.useEffect(()=>{t.length&&((0,n.A)(t).forEach(e=>{e()}),r([]))},[t]);let o=i.useCallback(t=>function(o){var a;let l,c;m+=1;let u=i.createRef(),f=new Promise(e=>{l=e}),d=!1,h=i.createElement(p,{key:`modal-${m}`,config:t(o),ref:u,afterClose:()=>{null==c||c()},isSilent:()=>d,onConfirm:e=>{l(e)}});return(c=null==(a=e.current)?void 0:a.patchElement(h))&&s.A.push(c),{destroy:()=>{function e(){var e;null==(e=u.current)||e.destroy()}u.current?e():r(t=>[].concat((0,n.A)(t),[e]))},update:e=>{function t(){var t;null==(t=u.current)||t.update(e)}u.current?t():r(e=>[].concat((0,n.A)(e),[t]))},then:e=>(d=!0,f.then(e))}},[]);return[i.useMemo(()=>({info:o(a.$D),success:o(a.Ej),error:o(a.jT),warning:o(a.fp),confirm:o(a.lr)}),[o]),i.createElement(g,{key:"modal-holder",ref:e})]}},87063(e,t,r){"use strict";r.d(t,{aC:()=>y,Ay:()=>A,Mb:()=>x});var n=r(22155),i=r(35261),o=r(42254),a=r(32416),s=r(42964),l=r(91664),c=r(60004),u=r(30395),f=r.n(u),d=r(38851),h=r(65289),p=r(75932),m=r(46645),g=r(59296);let b=(0,r(72056).bf)(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,r=(0,m.G4)(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},(0,m.mp)(r)),{width:r.width,maxWidth:`calc(100vw - ${(0,g.zA)(e.calc(r.notificationMarginEdge).mul(2).equal())})`,margin:0})}},m.cH);var v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function y(e,t){return null===t||!1===t?null:t||n.createElement(a.A,{className:`${e}-close-icon`})}l.A,i.A,o.A,s.A,c.A;let w={success:i.A,info:l.A,error:o.A,warning:s.A},x=e=>{let{prefixCls:t,icon:r,type:i,message:o,description:a,actions:s,role:l="alert"}=e,c=null;return r?c=n.createElement("span",{className:`${t}-icon`},r):i&&(c=n.createElement(w[i]||null,{className:f()(`${t}-icon`,`${t}-icon-${i}`)})),n.createElement("div",{className:f()({[`${t}-with-icon`]:c}),role:l},c,n.createElement("div",{className:`${t}-message`},o),a&&n.createElement("div",{className:`${t}-description`},a),s&&n.createElement("div",{className:`${t}-actions`},s))},A=e=>{let{prefixCls:t,className:r,icon:i,type:o,message:a,description:s,btn:l,actions:c,closable:u=!0,closeIcon:g,className:w}=e,A=v(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:E}=n.useContext(h.QO),_=null!=c?c:l,S=t||E("notification"),$=`${S}-notice`,k=(0,p.A)(S),[C,O,M]=(0,m.Ay)(S,k);return C(n.createElement("div",{className:f()(`${$}-pure-panel`,O,r,M,k)},n.createElement(b,{prefixCls:S}),n.createElement(d.$T,Object.assign({},A,{prefixCls:S,eventKey:"pure",duration:null,closable:u,className:f()({notificationClassName:w}),closeIcon:y(S,g),content:n.createElement(x,{prefixCls:$,icon:i,type:o,message:a,description:s,actions:_})}))))}},39233(e,t,r){"use strict";r.d(t,{Ay:()=>x});var n=r(22155),i=r(99454),o=r(65289),a=r(64324),s=r(33960),l=r(87063),c=r(23602);let u=null,f=e=>e(),d=[],h={};function p(){let{getContainer:e,rtl:t,maxCount:r,top:n,bottom:i,showProgress:o,pauseOnHover:a}=h,s=(null==e?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:r,top:n,bottom:i,showProgress:o,pauseOnHover:a}}let m=n.forwardRef((e,t)=>{let{notificationConfig:r,sync:a}=e,{getPrefixCls:s}=(0,n.useContext)(o.QO),l=h.prefixCls||s("notification"),u=(0,n.useContext)(i.B),[f,d]=(0,c.G)(Object.assign(Object.assign(Object.assign({},r),{prefixCls:l}),u.notification));return n.useEffect(a,[]),n.useImperativeHandle(t,()=>{let e=Object.assign({},f);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(a(),f[t].apply(f,e))}),{instance:e,sync:a}}),d}),g=n.forwardRef((e,t)=>{let[r,i]=n.useState(p),o=()=>{i(p)};n.useEffect(o,[]);let s=(0,a.cr)(),l=s.getRootPrefixCls(),c=s.getIconPrefixCls(),u=s.getTheme(),f=n.createElement(m,{ref:t,sync:o,notificationConfig:r});return n.createElement(a.Ay,{prefixCls:l,iconPrefixCls:c,theme:u},s.holderRender?s.holderRender(f):f)}),b=()=>{if(!u){let e=document.createDocumentFragment(),t={fragment:e};u=t,f(()=>{(0,s.L)()(n.createElement(g,{ref:e=>{let{instance:r,sync:n}=e||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=n,b())})}}),e)});return}u.instance&&(d.forEach(e=>{switch(e.type){case"open":f(()=>{u.instance.open(Object.assign(Object.assign({},h),e.config))});break;case"destroy":f(()=>{var t;null==(t=null==u?void 0:u.instance)||t.destroy(e.key)})}}),d=[])};function v(e){(0,a.cr)(),d.push({type:"open",config:e}),b()}let y=["success","info","warning","error"],w={open:v,destroy:e=>{d.push({type:"destroy",key:e}),b()},config:function(e){h=Object.assign(Object.assign({},h),e),f(()=>{var e;null==(e=null==u?void 0:u.sync)||e.call(u)})},useNotification:c.A,_InternalPanelDoNotUseOrYouWillBeFired:l.Ay};y.forEach(e=>{w[e]=t=>v(Object.assign(Object.assign({},t),{type:e}))});let x=w},46645(e,t,r){"use strict";r.d(t,{Ay:()=>y,mp:()=>m,G4:()=>v,cH:()=>b});var n=r(59296),i=r(47201),o=r(96619),a=r(63930),s=r(72056);let l=e=>{let{componentCls:t,notificationMarginEdge:r,animationMaxHeight:i}=e,o=`${t}-notice`,a=new n.Mo("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new n.Mo("antNotificationTopFadeIn",{"0%":{top:-i,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new n.Mo("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(i).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:r,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new n.Mo("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},c=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],u={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},f=(e,t)=>{let{componentCls:r}=e;return{[`${r}-${t}`]:{[`&${r}-stack > ${r}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[u[t]]:{value:0,_skip_check_:!0}}}}},d=e=>{let t={};for(let r=1;r<e.notificationStackLayer;r++)t[`&:nth-last-child(${r+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},h=e=>{let t={};for(let r=1;r<e.notificationStackLayer;r++)t[`&:nth-last-child(${r+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},p=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},d(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},h(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},c.map(t=>f(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))},m=e=>{let{iconCls:t,componentCls:r,boxShadow:i,fontSizeLG:a,notificationMarginBottom:s,borderRadiusLG:l,colorSuccess:c,colorInfo:u,colorWarning:f,colorError:d,colorTextHeading:h,notificationBg:p,notificationPadding:m,notificationMarginEdge:g,notificationProgressBg:b,notificationProgressHeight:v,fontSize:y,lineHeight:w,width:x,notificationIconSize:A,colorText:E,colorSuccessBg:_,colorErrorBg:S,colorInfoBg:$,colorWarningBg:k}=e,C=`${r}-notice`;return{position:"relative",marginBottom:s,marginInlineStart:"auto",background:p,borderRadius:l,boxShadow:i,[C]:{padding:m,width:x,maxWidth:`calc(100vw - ${(0,n.zA)(e.calc(g).mul(2).equal())})`,lineHeight:w,wordWrap:"break-word",borderRadius:l,overflow:"hidden","&-success":_?{background:_}:{},"&-error":S?{background:S}:{},"&-info":$?{background:$}:{},"&-warning":k?{background:k}:{}},[`${C}-message`]:{color:h,fontSize:a,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:y,color:E,marginTop:e.marginXS},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginInlineStart:e.calc(e.marginSM).add(A).equal(),fontSize:a},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(A).equal(),fontSize:y},[`${C}-icon`]:{position:"absolute",fontSize:A,lineHeight:1,[`&-success${t}`]:{color:c},[`&-info${t}`]:{color:u},[`&-warning${t}`]:{color:f},[`&-error${t}`]:{color:d}},[`${C}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},(0,o.K8)(e)),[`${C}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,n.zA)(l)} * 2)`,left:{_skip_check_:!0,value:l},right:{_skip_check_:!0,value:l},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:l,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:b},"&::-webkit-progress-value":{borderRadius:l,background:b}},[`${C}-actions`]:{float:"right",marginTop:e.marginSM}}},g=e=>{let{componentCls:t,notificationMarginBottom:r,notificationMarginEdge:i,motionDurationMid:a,motionEaseInOut:s}=e,l=`${t}-notice`,c=new n.Mo("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:r},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,o.dF)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:i,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:s,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:s,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:c,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${l}-actions`]:{float:"left"}}})},{[t]:{[`${l}-wrapper`]:m(e)}}]},b=e=>({zIndexPopup:e.zIndexPopupBase+i.jH+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),v=e=>{let t=e.paddingMD,r=e.paddingLG;return(0,a.oX)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:r,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,n.zA)(e.paddingMD)} ${(0,n.zA)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},y=(0,s.OF)("Notification",e=>{let t=v(e);return[g(t),l(t),p(t)]},b)},23602(e,t,r){"use strict";r.d(t,{A:()=>_,G:()=>E});var n=r(22155),i=r(30395),o=r.n(i),a=r(38851),s=r(53575),l=r(65289),c=r(75932),u=r(57873),f=r(87063),d=r(46645);function h(e,t,r){let n;switch(e){case"top":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":n={left:0,top:t,bottom:"auto"};break;case"topRight":n={right:0,top:t,bottom:"auto"};break;case"bottom":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":n={left:0,top:"auto",bottom:r};break;default:n={right:0,top:"auto",bottom:r}}return n}function p(e){return{motionName:`${e}-fade`}}function m(e,t,r){return void 0!==e?e:void 0!==(null==t?void 0:t.closeIcon)?t.closeIcon:null==r?void 0:r.closeIcon}var g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let b=24,v=4.5,y="topRight",w=({children:e,prefixCls:t})=>{let r=(0,c.A)(t),[i,s,l]=(0,d.Ay)(t,r);return i(n.createElement(a.ph,{classNames:{list:o()(s,l,r)}},e))},x=(e,{prefixCls:t,key:r})=>n.createElement(w,{prefixCls:t,key:r},e),A=n.forwardRef((e,t)=>{let{top:r,bottom:i,prefixCls:s,getContainer:c,maxCount:d,rtl:m,onAllRemoved:g,stack:y,duration:w,pauseOnHover:A=!0,showProgress:E}=e,{getPrefixCls:_,getPopupContainer:S,notification:$,direction:k}=(0,n.useContext)(l.QO),[,C]=(0,u.Ay)(),O=s||_("notification"),M=e=>h(e,null!=r?r:b,null!=i?i:b),I=()=>o()({[`${O}-rtl`]:null!=m?m:"rtl"===k}),R=()=>p(O),[j,T]=(0,a.hN)({prefixCls:O,style:M,className:I,motion:R,closable:!0,closeIcon:(0,f.aC)(O),duration:null!=w?w:v,getContainer:()=>(null==c?void 0:c())||(null==S?void 0:S())||document.body,maxCount:d,pauseOnHover:A,showProgress:E,onAllRemoved:g,renderNotifications:x,stack:!1!==y&&{threshold:"object"==typeof y?null==y?void 0:y.threshold:void 0,offset:8,gap:C.margin}});return n.useImperativeHandle(t,()=>Object.assign(Object.assign({},j),{prefixCls:O,notification:$})),T});function E(e){let t=n.useRef(null);return(0,s.rJ)("Notification"),[n.useMemo(()=>{let r=r=>{var i;if(!t.current)return;let{open:a,prefixCls:s,notification:l}=t.current,c=`${s}-notice`,{message:u,description:d,icon:h,type:p,btn:b,actions:v,className:w,style:x,role:A="alert",closeIcon:E,closable:_}=r,S=g(r,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),$=null!=v?v:b,k=(0,f.aC)(c,m(E,e,l));return a(Object.assign(Object.assign({placement:null!=(i=null==e?void 0:e.placement)?i:y},S),{content:n.createElement(f.Mb,{prefixCls:c,icon:h,type:p,message:u,description:d,actions:$,role:A}),className:o()(p&&`${c}-${p}`,w,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),x),closeIcon:k,closable:null!=_?_:!!k}))},i={open:r,destroy:e=>{var r,n;void 0!==e?null==(r=t.current)||r.close(e):null==(n=t.current)||n.destroy()}};return["success","info","warning","error"].forEach(e=>{i[e]=t=>r(Object.assign(Object.assign({},t),{type:e}))}),i},[]),n.createElement(A,Object.assign({key:"notification-holder"},e,{ref:t}))]}function _(e){return E(e)}},55369(e,t,r){"use strict";r.d(t,{A:()=>I});var n=r(22155),i=r(30395),o=r.n(i),a=r(3604),s=r(19187);let l=e=>e?"function"==typeof e?e():e:null;var c=r(18697),u=r(21968),f=r(65289),d=r(52646),h=r(71303),p=r(96619),m=r(64671),g=r(771),b=r(5005),v=r(97684),y=r(72056),w=r(63930);let x=e=>{let{componentCls:t,popoverColor:r,titleMinWidth:n,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:h,innerContentPadding:m,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},(0,p.dF)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:o},[`${t}-title`]:{minWidth:n,marginBottom:u,color:s,fontWeight:i,borderBottom:h,padding:b},[`${t}-inner-content`]:{color:r,padding:m}})},(0,g.Ay)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},A=e=>{let{componentCls:t}=e;return{[t]:v.s.map(r=>{let n=e[`${r}6`];return{[`&${t}-${r}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}},E=e=>{let{lineWidth:t,controlHeight:r,fontHeight:n,padding:i,wireframe:o,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,d=r-n,h=d/2,p=d/2-t,m=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},(0,b.n)(e)),(0,g.Ke)({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:12*!o,titleMarginBottom:o?0:l,titlePadding:o?`${h}px ${m}px ${p}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${f}px ${m}px`:0})},_=(0,y.OF)("Popover",e=>{let{colorBgElevated:t,colorText:r}=e,n=(0,w.oX)(e,{popoverBg:t,popoverColor:r});return[x(n),A(n),(0,m.aB)(n,"zoom-big")]},E,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var S=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let $=({title:e,content:t,prefixCls:r})=>e||t?n.createElement(n.Fragment,null,e&&n.createElement("div",{className:`${r}-title`},e),t&&n.createElement("div",{className:`${r}-inner-content`},t)):null,k=e=>{let{hashId:t,prefixCls:r,className:i,style:a,placement:s="top",title:c,content:u,children:f}=e,d=l(c),p=l(u),m=o()(t,r,`${r}-pure`,`${r}-placement-${s}`,i);return n.createElement("div",{className:m,style:a},n.createElement("div",{className:`${r}-arrow`}),n.createElement(h.z,Object.assign({},e,{className:t,prefixCls:r}),f||n.createElement($,{prefixCls:r,title:d,content:p})))},C=e=>{let{prefixCls:t,className:r}=e,i=S(e,["prefixCls","className"]),{getPrefixCls:a}=n.useContext(f.QO),s=a("popover",t),[l,c,u]=_(s);return l(n.createElement(k,Object.assign({},i,{prefixCls:s,hashId:c,className:o()(r,u)})))};var O=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let M=n.forwardRef((e,t)=>{var r,i;let{prefixCls:h,title:p,content:m,overlayClassName:g,placement:b="top",trigger:v="hover",children:y,mouseEnterDelay:w=.1,mouseLeaveDelay:x=.1,onOpenChange:A,overlayStyle:E={},styles:S,classNames:k}=e,C=O(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:M,className:I,style:R,classNames:j,styles:T}=(0,f.TP)("popover"),N=M("popover",h),[P,B,z]=_(N),L=M(),D=o()(g,B,z,I,j.root,null==k?void 0:k.root),F=o()(j.body,null==k?void 0:k.body),[H,U]=(0,a.A)(!1,{value:null!=(r=e.open)?r:e.visible,defaultValue:null!=(i=e.defaultOpen)?i:e.defaultVisible}),q=(e,t)=>{U(e,!0),null==A||A(e,t)},W=e=>{e.keyCode===s.A.ESC&&q(!1,e)},V=e=>{q(e)},K=l(p),G=l(m);return P(n.createElement(d.A,Object.assign({placement:b,trigger:v,mouseEnterDelay:w,mouseLeaveDelay:x},C,{prefixCls:N,classNames:{root:D,body:F},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},T.root),R),E),null==S?void 0:S.root),body:Object.assign(Object.assign({},T.body),null==S?void 0:S.body)},ref:t,open:H,onOpenChange:V,overlay:K||G?n.createElement($,{prefixCls:N,title:K,content:G}):null,transitionName:(0,c.b)(L,"zoom-big",C.transitionName),"data-popover-inject":!0}),(0,u.Ob)(y,{onKeyDown:e=>{var t,r;(0,n.isValidElement)(y)&&(null==(r=null==y?void 0:(t=y.props).onKeyDown)||r.call(t,e)),W(e)}})))});M._InternalPanelDoNotUseOrYouWillBeFired=C;let I=M},67281(e,t,r){"use strict";r.d(t,{A:()=>ec});var n=r(22155),i=r(98494),o=r(35261),a=r(85387),s=r(42254),l=r(32416),c=r(30395),u=r.n(c),f=r(46604),d=r(65289),h={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},p=function(){var e=(0,n.useRef)([]),t=(0,n.useRef)(null);return(0,n.useEffect)(function(){var r=Date.now(),n=!1;e.current.forEach(function(e){if(e){n=!0;var i=e.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(i.transitionDuration="0s, 0s")}}),n&&(t.current=Date.now())}),e.current},m=r(76878),g=r(24366),b=r(39317),v=r(56284),y=r(70486),w=r(8929),x=0,A=(0,w.A)();function E(){var e;return A?(e=x,x+=1):e="TEST_OR_SSR",e}let _=function(e){var t=n.useState(),r=(0,y.A)(t,2),i=r[0],o=r[1];return n.useEffect(function(){o("rc_progress_".concat(E()))},[]),e||i};var S=function(e){var t=e.bg,r=e.children;return n.createElement("div",{style:{width:"100%",height:"100%",background:t}},r)};function $(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),i="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(i)})}let k=n.forwardRef(function(e,t){var r=e.prefixCls,i=e.color,o=e.gradientId,a=e.radius,s=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,f=e.size,d=e.gapDegree,h=i&&"object"===(0,g.A)(i),p=h?"#FFF":void 0,m=f/2,b=n.createElement("circle",{className:"".concat(r,"-circle-path"),r:a,cx:m,cy:m,stroke:p,strokeLinecap:c,strokeWidth:u,opacity:+(0!==l),style:s,ref:t});if(!h)return b;var v="".concat(o,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",w=$(i,(360-d)/360),x=$(i,1),A="conic-gradient(from ".concat(y,", ").concat(w.join(", "),")"),E="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(x.join(", "),")");return n.createElement(n.Fragment,null,n.createElement("mask",{id:v},b),n.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:"url(#".concat(v,")")},n.createElement(S,{bg:E},n.createElement(S,{bg:A}))))});var C=100,O=function(e,t,r,n,i,o,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,f=r/100*360*((360-o)/360),d=0===o?0:({bottom:0,top:180,left:90,right:-90})[a],h=(100-n)/100*t;"round"===l&&100!==n&&(h+=c/2)>=t&&(h=t-.01);var p=C/2;return{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:h+u,transform:"rotate(".concat(i+f+d,"deg)"),transformOrigin:"".concat(p,"px ").concat(p,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},M=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function I(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}let R=function(e){var t=(0,b.A)((0,b.A)({},h),e),r=t.id,i=t.prefixCls,o=t.steps,a=t.strokeWidth,s=t.trailWidth,l=t.gapDegree,c=void 0===l?0:l,f=t.gapPosition,d=t.trailColor,y=t.strokeLinecap,w=t.style,x=t.className,A=t.strokeColor,E=t.percent,S=(0,v.A)(t,M),$=C/2,R=_(r),j="".concat(R,"-gradient"),T=$-a/2,N=2*Math.PI*T,P=c>0?90+c/2:-90,B=(360-c)/360*N,z="object"===(0,g.A)(o)?o:{count:o,gap:2},L=z.count,D=z.gap,F=I(E),H=I(A),U=H.find(function(e){return e&&"object"===(0,g.A)(e)}),q=U&&"object"===(0,g.A)(U)?"butt":y,W=O(N,B,0,100,P,c,f,d,q,a),V=p(),K=function(){var e=0;return F.map(function(t,r){var o=H[r]||H[H.length-1],s=O(N,B,e,t,P,c,f,o,q,a);return e+=t,n.createElement(k,{key:r,color:o,ptg:t,radius:T,prefixCls:i,gradientId:j,style:s,strokeLinecap:q,strokeWidth:a,gapDegree:c,ref:function(e){V[r]=e},size:C})}).reverse()},G=function(){var e=Math.round(L*(F[0]/100)),t=100/L,r=0;return Array(L).fill(null).map(function(o,s){var l=s<=e-1?H[0]:d,u=l&&"object"===(0,g.A)(l)?"url(#".concat(j,")"):void 0,h=O(N,B,r,t,P,c,f,l,"butt",a,D);return r+=(B-h.strokeDashoffset+D)*100/B,n.createElement("circle",{key:s,className:"".concat(i,"-circle-path"),r:T,cx:$,cy:$,stroke:u,strokeWidth:a,opacity:1,style:h,ref:function(e){V[s]=e}})})};return n.createElement("svg",(0,m.A)({className:u()("".concat(i,"-circle"),x),viewBox:"0 0 ".concat(C," ").concat(C),style:w,id:r,role:"presentation"},S),!L&&n.createElement("circle",{className:"".concat(i,"-circle-trail"),r:T,cx:$,cy:$,stroke:d,strokeLinecap:q,strokeWidth:s||a,style:W}),L?G():K())};var j=r(52646),T=r(57660);function N(e){return!e||e<0?0:e>100?100:e}function P({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}let B=({percent:e,success:t,successPercent:r})=>{let n=N(P({success:t,successPercent:r}));return[n,N(N(e)-n)]},z=({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||T.uy.green,t||null]},L=(e,t,r)=>{var n,i,o,a;let s=-1,l=-1;if("step"===t){let t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=n?n:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=t}else if("line"===t){let t=null==r?void 0:r.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:Array.isArray(e)&&(s=null!=(i=null!=(n=e[0])?n:e[1])?i:120,l=null!=(a=null!=(o=e[0])?o:e[1])?a:120));return[s,l]},D=3,F=e=>D/e*100,H=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:i="round",gapPosition:o,gapDegree:a,width:s=120,type:l,children:c,success:f,size:d=s,steps:h}=e,[p,m]=L(d,"circle"),{strokeWidth:g}=e;void 0===g&&(g=Math.max(F(p),6));let b={width:p,height:m,fontSize:.15*p+6},v=n.useMemo(()=>a||0===a?a:"dashboard"===l?75:void 0,[a,l]),y=B(e),w=o||"dashboard"===l&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(e.strokeColor),A=z({success:f,strokeColor:e.strokeColor}),E=u()(`${t}-inner`,{[`${t}-circle-gradient`]:x}),_=n.createElement(R,{steps:h,percent:h?y[1]:y,strokeWidth:g,trailWidth:g,strokeColor:h?A[1]:A,strokeLinecap:i,trailColor:r,prefixCls:t,gapDegree:v,gapPosition:w}),S=p<=20,$=n.createElement("div",{className:E,style:b},_,!S&&c);return S?n.createElement(j.A,{title:c},$):$};var U=r(59296),q=r(96619),W=r(72056),V=r(63930);let K="--progress-line-stroke-color",G="--progress-percent",X=e=>{let t=e?"100%":"-100%";return new U.Mo(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Z=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,q.dF)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${K})`]},height:"100%",width:`calc(1 / var(${G}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,U.zA)(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:X(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:X(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Y=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},J=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Q=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},ee=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),et=(0,W.OF)("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=(0,V.oX)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Z(r),Y(r),J(r),Q(r)]},ee);var er=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let en=e=>{let t=[];return Object.keys(e).forEach(r=>{let n=Number.parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),(t=t.sort((e,t)=>e.key-t.key)).map(({key:e,value:t})=>`${t} ${e}%`).join(", ")},ei=(e,t)=>{let{from:r=T.uy.blue,to:n=T.uy.blue,direction:i="rtl"===t?"to left":"to right"}=e,o=er(e,["from","to","direction"]);if(0!==Object.keys(o).length){let e=en(o),t=`linear-gradient(${i}, ${e})`;return{background:t,[K]:t}}let a=`linear-gradient(${i}, ${r}, ${n})`;return{background:a,[K]:a}},eo=e=>{let{prefixCls:t,direction:r,percent:i,size:o,strokeWidth:a,strokeColor:s,strokeLinecap:l="round",children:c,trailColor:f=null,percentPosition:d,success:h}=e,{align:p,type:m}=d,g=s&&"string"!=typeof s?ei(s,r):{[K]:s,background:s},b="square"===l||"butt"===l?0:void 0,[v,y]=L(null!=o?o:[-1,a||("small"===o?6:8)],"line",{strokeWidth:a}),w={backgroundColor:f||void 0,borderRadius:b},x=Object.assign(Object.assign({width:`${N(i)}%`,height:y,borderRadius:b},g),{[G]:N(i)/100}),A=P(e),E={width:`${N(A)}%`,height:y,borderRadius:b,backgroundColor:null==h?void 0:h.strokeColor},_={width:v<0?"100%":v},S=n.createElement("div",{className:`${t}-inner`,style:w},n.createElement("div",{className:u()(`${t}-bg`,`${t}-bg-${m}`),style:x},"inner"===m&&c),void 0!==A&&n.createElement("div",{className:`${t}-success-bg`,style:E})),$="outer"===m&&"start"===p,k="outer"===m&&"end"===p;return"outer"===m&&"center"===p?n.createElement("div",{className:`${t}-layout-bottom`},S,c):n.createElement("div",{className:`${t}-outer`,style:_},$&&c,S,k&&c)},ea=e=>{let{size:t,steps:r,rounding:i=Math.round,percent:o=0,strokeWidth:a=8,strokeColor:s,trailColor:l=null,prefixCls:c,children:f}=e,d=i(o/100*r),h="small"===t?2:14,[p,m]=L(null!=t?t:[h,a],"step",{steps:r,strokeWidth:a}),g=p/r,b=Array.from({length:r});for(let e=0;e<r;e++){let t=Array.isArray(s)?s[e]:s;b[e]=n.createElement("div",{key:e,className:u()(`${c}-steps-item`,{[`${c}-steps-item-active`]:e<=d-1}),style:{backgroundColor:e<=d-1?t:l,width:g,height:m}})}return n.createElement("div",{className:`${c}-steps-outer`},b,f)};var es=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let el=["normal","exception","active","success"],ec=n.forwardRef((e,t)=>{let r,{prefixCls:c,className:h,rootClassName:p,steps:m,strokeColor:g,percent:b=0,size:v="default",showInfo:y=!0,type:w="line",status:x,format:A,style:E,percentPosition:_={}}=e,S=es(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:$="end",type:k="outer"}=_,C=Array.isArray(g)?g[0]:g,O="string"==typeof g||Array.isArray(g)?g:void 0,M=n.useMemo(()=>{if(C){let e="string"==typeof C?C:Object.values(C)[0];return new i.Y(e).isLight()}return!1},[g]),I=n.useMemo(()=>{var t,r;let n=P(e);return Number.parseInt(void 0!==n?null==(t=null!=n?n:0)?void 0:t.toString():null==(r=null!=b?b:0)?void 0:r.toString(),10)},[b,e.success,e.successPercent]),R=n.useMemo(()=>!el.includes(x)&&I>=100?"success":x||"normal",[x,I]),{getPrefixCls:j,direction:T,progress:B}=n.useContext(d.QO),z=j("progress",c),[D,F,U]=et(z),q="line"===w,W=q&&!m,V=n.useMemo(()=>{let t;if(!y)return null;let r=P(e),i=A||(e=>`${e}%`),c=q&&M&&"inner"===k;return"inner"===k||A||"exception"!==R&&"success"!==R?t=i(N(b),N(r)):"exception"===R?t=q?n.createElement(s.A,null):n.createElement(l.A,null):"success"===R&&(t=q?n.createElement(o.A,null):n.createElement(a.A,null)),n.createElement("span",{className:u()(`${z}-text`,{[`${z}-text-bright`]:c,[`${z}-text-${$}`]:W,[`${z}-text-${k}`]:W}),title:"string"==typeof t?t:void 0},t)},[y,b,I,R,w,z,A]);"line"===w?r=m?n.createElement(ea,Object.assign({},e,{strokeColor:O,prefixCls:z,steps:"object"==typeof m?m.count:m}),V):n.createElement(eo,Object.assign({},e,{strokeColor:C,prefixCls:z,direction:T,percentPosition:{align:$,type:k}}),V):("circle"===w||"dashboard"===w)&&(r=n.createElement(H,Object.assign({},e,{strokeColor:C,prefixCls:z,progressStatus:R}),V));let K=u()(z,`${z}-status-${R}`,{[`${z}-${"dashboard"===w&&"circle"||w}`]:"line"!==w,[`${z}-inline-circle`]:"circle"===w&&L(v,"circle")[0]<=20,[`${z}-line`]:W,[`${z}-line-align-${$}`]:W,[`${z}-line-position-${k}`]:W,[`${z}-steps`]:m,[`${z}-show-info`]:y,[`${z}-${v}`]:"string"==typeof v,[`${z}-rtl`]:"rtl"===T},null==B?void 0:B.className,h,p,F,U);return D(n.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==B?void 0:B.style),E),className:K,role:"progressbar","aria-valuenow":I,"aria-valuemin":0,"aria-valuemax":100},(0,f.A)(S,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))})},22337(e,t,r){"use strict";r.d(t,{A:()=>U});var n=r(22155),i=r(30395),o=r.n(i),a=r(65556),s=r(3604),l=r(21634),c=r(65289),u=r(75932),f=r(27147);let d=n.createContext(null),h=d.Provider,p=d,m=n.createContext(null),g=m.Provider;var b=r(43e3),v=r(75252),y=r(30565),w=r(61966),x=r(65817),A=r(87673),E=r(42767),_=r(59296),S=r(96619),$=r(72056),k=r(63930);let C=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},(0,S.dF)(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`&${n}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},O=e=>{let{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:d,paddingXS:h,dotColorDisabled:p,lineType:m,radioColor:g,radioBgColor:b,calc:v}=e,y=`${t}-inner`,w=4,x=v(i).sub(v(w).mul(2)),A=v(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,S.dF)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,_.zA)(u)} ${m} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,S.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
140
+ &:hover ${y}`]:{borderColor:n},[`${t}-input:focus-visible + ${y}`]:(0,S.jk)(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:A,height:A,marginBlockStart:v(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:A,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:A,height:A,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:n,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:d,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${v(x).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},M=e=>{let{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:i,lineType:o,colorBorder:a,motionDurationMid:s,buttonPaddingInline:l,fontSize:c,buttonBg:u,fontSizeLG:f,controlHeightLG:d,controlHeightSM:h,paddingXS:p,borderRadius:m,borderRadiusSM:g,borderRadiusLG:b,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:w,colorBgContainerDisabled:x,buttonCheckedBgDisabled:A,buttonCheckedColorDisabled:E,colorPrimary:$,colorPrimaryHover:k,colorPrimaryActive:C,buttonSolidCheckedBg:O,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:I,calc:R}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:(0,_.zA)(R(r).sub(R(i).mul(2)).equal()),background:u,border:`${(0,_.zA)(i)} ${o} ${a}`,borderBlockStartWidth:R(i).add(.02).equal(),borderInlineEndWidth:i,cursor:"pointer",transition:`color ${s},background ${s},box-shadow ${s}`,a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:R(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${(0,_.zA)(i)} ${o} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${n}-group-large &`]:{height:d,fontSize:f,lineHeight:(0,_.zA)(R(d).sub(R(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${n}-group-small &`]:{height:h,paddingInline:R(p).sub(i).equal(),paddingBlock:0,lineHeight:(0,_.zA)(R(h).sub(R(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":(0,S.jk)(e),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:v,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:C,borderColor:C,"&::before":{backgroundColor:C}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:y,background:O,borderColor:O,"&:hover":{color:y,background:M,borderColor:M},"&:active":{color:y,background:I,borderColor:I}},"&-disabled":{color:w,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:x,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:E,backgroundColor:A,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},I=e=>{let{wireframe:t,padding:r,marginXS:n,lineWidth:i,fontSizeLG:o,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:d,colorPrimaryActive:h,colorWhite:p}=e,m=4,g=o,b=t?g-2*m:g-(m+i)*2;return{radioSize:g,dotSize:b,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:r-i,wrapperMarginInlineEnd:n,radioColor:t?f:p,radioBgColor:t?s:f}},R=(0,$.OF)("Radio",e=>{let{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${(0,_.zA)(r)} ${t}`,i=n,o=(0,k.oX)(e,{radioFocusShadow:n,radioButtonFocusShadow:i});return[C(o),O(o),M(o)]},I,{unitless:{radioSize:!0,dotSize:!0}});var j=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let T=(e,t)=>{var r,i;let a=n.useContext(p),s=n.useContext(m),{getPrefixCls:l,direction:f,radio:d}=n.useContext(c.QO),h=n.useRef(null),g=(0,v.K4)(t,h),{isFormItemInput:_}=n.useContext(E.$W),S=t=>{var r,n;null==(r=e.onChange)||r.call(e,t),null==(n=null==a?void 0:a.onChange)||n.call(a,t)},{prefixCls:$,className:k,rootClassName:C,children:O,style:M,title:I}=e,T=j(e,["prefixCls","className","rootClassName","children","style","title"]),N=l("radio",$),P="button"===((null==a?void 0:a.optionType)||s),B=P?`${N}-button`:N,z=(0,u.A)(N),[L,D,F]=R(N,z),H=Object.assign({},T),U=n.useContext(A.A);a&&(H.name=a.name,H.onChange=S,H.checked=e.value===a.value,H.disabled=null!=(r=H.disabled)?r:a.disabled),H.disabled=null!=(i=H.disabled)?i:U;let q=o()(`${B}-wrapper`,{[`${B}-wrapper-checked`]:H.checked,[`${B}-wrapper-disabled`]:H.disabled,[`${B}-wrapper-rtl`]:"rtl"===f,[`${B}-wrapper-in-form-item`]:_,[`${B}-wrapper-block`]:!!(null==a?void 0:a.block)},null==d?void 0:d.className,k,C,D,F,z),[W,V]=(0,x.A)(H.onClick);return L(n.createElement(y.A,{component:"Radio",disabled:H.disabled},n.createElement("label",{className:q,style:Object.assign(Object.assign({},null==d?void 0:d.style),M),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:I,onClick:W},n.createElement(b.A,Object.assign({},H,{className:o()(H.className,{[w.D]:!P}),type:"radio",prefixCls:B,ref:g,onClick:V})),void 0!==O?n.createElement("span",{className:`${B}-label`},O):null)))},N=n.forwardRef(T);var P=r(79584);let B=n.forwardRef((e,t)=>{let{getPrefixCls:r,direction:i}=n.useContext(c.QO),{name:d}=n.useContext(E.$W),p=(0,a.A)((0,P.H)(d)),{prefixCls:m,className:g,rootClassName:b,options:v,buttonStyle:y="outline",disabled:w,children:x,size:A,style:_,id:S,optionType:$,name:k=p,defaultValue:C,value:O,block:M=!1,onChange:I,onMouseEnter:j,onMouseLeave:T,onFocus:B,onBlur:z}=e,[L,D]=(0,s.A)(C,{value:O}),F=n.useCallback(t=>{let r=L,n=t.target.value;"value"in e||D(n),n!==r&&(null==I||I(t))},[L,D,I]),H=r("radio",m),U=`${H}-group`,q=(0,u.A)(H),[W,V,K]=R(H,q),G=x;v&&v.length>0&&(G=v.map(e=>"string"==typeof e||"number"==typeof e?n.createElement(N,{key:e.toString(),prefixCls:H,disabled:w,value:e,checked:L===e},e):n.createElement(N,{key:`radio-group-value-options-${e.value}`,prefixCls:H,disabled:e.disabled||w,value:e.value,checked:L===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let X=(0,f.A)(A),Z=o()(U,`${U}-${y}`,{[`${U}-${X}`]:X,[`${U}-rtl`]:"rtl"===i,[`${U}-block`]:M},g,b,V,K,q),Y=n.useMemo(()=>({onChange:F,value:L,disabled:w,name:k,optionType:$,block:M}),[F,L,w,k,$,M]);return W(n.createElement("div",Object.assign({},(0,l.A)(e,{aria:!0,data:!0}),{className:Z,style:_,onMouseEnter:j,onMouseLeave:T,onFocus:B,onBlur:z,id:S,ref:t}),n.createElement(h,{value:Y},G)))}),z=n.memo(B);var L=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let D=(e,t)=>{let{getPrefixCls:r}=n.useContext(c.QO),{prefixCls:i}=e,o=L(e,["prefixCls"]),a=r("radio",i);return n.createElement(g,{value:"button"},n.createElement(N,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},F=n.forwardRef(D),H=N;H.Button=F,H.Group=z,H.__ANT_RADIO=!0;let U=H},14510(e,t,r){"use strict";r.d(t,{A:()=>rd});var n=r(22155),i=r(30395),o=r.n(i),a=r(76878),s=r(78944),l=r(19841),c=r(39317),u=r(70486),f=r(56284),d=r(24366),h=r(3604),p=r(47773),m=r(94030),g=r(22075),b=r(75252);let v=function(e){var t=e.className,r=e.customizeIcon,i=e.customizeIconProps,a=e.children,s=e.onMouseDown,l=e.onClick,c="function"==typeof r?r(i):r;return n.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==s||s(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==c?c:n.createElement("span",{className:o()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},a))};var y=function(e,t,r,i,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=n.useMemo(function(){return"object"===(0,d.A)(i)?i.clearIcon:o||void 0},[i,o]);return{allowClear:n.useMemo(function(){return!a&&!!i&&(!!r.length||!!s)&&("combobox"!==l||""!==s)},[i,a,r.length,s,l]),clearIcon:n.createElement(v,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"\xd7")}},w=n.createContext(null);function x(){return n.useContext(w)}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=n.useState(!1),r=(0,u.A)(t,2),i=r[0],o=r[1],a=n.useRef(null),s=function(){window.clearTimeout(a.current)};return n.useEffect(function(){return s},[]),[i,function(t,r){s(),a.current=window.setTimeout(function(){o(t),r&&r()},e)},s]}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=n.useRef(null),r=n.useRef(null);return n.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]),[function(){return t.current},function(n){(n||null===t.current)&&(t.current=n),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}]}function _(e,t,r,i){var o=n.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:i},n.useEffect(function(){function t(t){if(null==(r=o.current)||!r.customizedTrigger){var r,n=t.target;n.shadowRoot&&t.composed&&(n=t.composedPath()[0]||n),o.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(n)&&e!==n})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}},[])}var S=r(19187);function $(e){return e&&![S.A.ESC,S.A.SHIFT,S.A.BACKSPACE,S.A.TAB,S.A.WIN_KEY,S.A.ALT,S.A.META,S.A.WIN_KEY_RIGHT,S.A.CTRL,S.A.SEMICOLON,S.A.EQUALS,S.A.CAPS_LOCK,S.A.CONTEXT_MENU,S.A.F1,S.A.F2,S.A.F3,S.A.F4,S.A.F5,S.A.F6,S.A.F7,S.A.F8,S.A.F9,S.A.F10,S.A.F11,S.A.F12].includes(e)}var k=r(21634),C=r(53455);let O=function(e,t,r){var n=(0,c.A)((0,c.A)({},e),r?t:{});return Object.keys(t).forEach(function(r){var i=t[r];"function"==typeof i&&(n[r]=function(){for(var t,n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return i.apply(void 0,o),null==(t=e[r])?void 0:t.call.apply(t,[e].concat(o))})}),n};var M=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],I=function(e,t){var r=e.prefixCls,i=e.id,a=e.inputElement,s=e.autoFocus,l=e.autoComplete,u=e.editable,d=e.activeDescendantId,h=e.value,m=e.open,g=e.attrs,v=(0,f.A)(e,M),y=a||n.createElement("input",null),w=y,x=w.ref,A=w.props;return(0,p.$e)(!("maxLength"in y.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),y=n.cloneElement(y,(0,c.A)((0,c.A)((0,c.A)({type:"search"},O(v,A,!0)),{},{id:i,ref:(0,b.K4)(t,x),autoComplete:l||"off",autoFocus:s,className:o()("".concat(r,"-selection-search-input"),null==A?void 0:A.className),role:"combobox","aria-expanded":m||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":m?d:void 0},g),{},{value:u?h:"",readOnly:!u,unselectable:u?null:"on",style:(0,c.A)((0,c.A)({},A.style),{},{opacity:u?null:0})}))};let R=n.forwardRef(I);function j(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var T="u">typeof window&&window.document&&window.document.documentElement;function N(e){return null!=e}function P(e){return!e&&0!==e}function B(e){return["string","number"].includes((0,d.A)(e))}function z(e){var t=void 0;return e&&(B(e.title)?t=e.title.toString():B(e.label)&&(t=e.label.toString())),t}function L(e,t){T?n.useLayoutEffect(e,t):n.useEffect(e,t)}function D(e){var t;return null!=(t=e.key)?t:e.value}var F=function(e){e.preventDefault(),e.stopPropagation()};let H=function(e){var t=e.id,r=e.prefixCls,i=e.values,a=e.open,s=e.searchValue,c=e.autoClearSearchValue,f=e.inputRef,d=e.placeholder,h=e.disabled,p=e.mode,m=e.showSearch,g=e.autoFocus,b=e.autoComplete,y=e.activeDescendantId,w=e.tabIndex,x=e.removeIcon,A=e.maxTagCount,E=e.maxTagTextLength,_=e.maxTagPlaceholder,S=void 0===_?function(e){return"+ ".concat(e.length," ...")}:_,$=e.tagRender,O=e.onToggleOpen,M=e.onRemove,I=e.onInputChange,j=e.onInputPaste,T=e.onInputKeyDown,N=e.onInputMouseDown,P=e.onInputCompositionStart,B=e.onInputCompositionEnd,H=e.onInputBlur,U=n.useRef(null),q=(0,n.useState)(0),W=(0,u.A)(q,2),V=W[0],K=W[1],G=(0,n.useState)(!1),X=(0,u.A)(G,2),Z=X[0],Y=X[1],J="".concat(r,"-selection"),Q=a||"multiple"===p&&!1===c||"tags"===p?s:"",ee="tags"===p||"multiple"===p&&!1===c||m&&(a||Z);L(function(){K(U.current.scrollWidth)},[Q]);var et=function(e,t,r,i,a){return n.createElement("span",{title:z(e),className:o()("".concat(J,"-item"),(0,l.A)({},"".concat(J,"-item-disabled"),r))},n.createElement("span",{className:"".concat(J,"-item-content")},t),i&&n.createElement(v,{className:"".concat(J,"-item-remove"),onMouseDown:F,onClick:a,customizeIcon:x},"\xd7"))},er=function(e,t,r,i,o,s){var l=function(e){F(e),O(!a)};return n.createElement("span",{onMouseDown:l},$({label:t,value:e,disabled:r,closable:i,onClose:o,isMaxTag:!!s}))},en=function(e){var t=e.disabled,r=e.label,n=e.value,i=!h&&!t,o=r;if("number"==typeof E&&("string"==typeof r||"number"==typeof r)){var a=String(o);a.length>E&&(o="".concat(a.slice(0,E),"..."))}var s=function(t){t&&t.stopPropagation(),M(e)};return"function"==typeof $?er(n,o,t,i,s):et(e,o,t,i,s)},ei=function(e){if(!i.length)return null;var t="function"==typeof S?S(e):S;return"function"==typeof $?er(void 0,t,!1,!1,void 0,!0):et({title:t},t,!1)},eo=n.createElement("div",{className:"".concat(J,"-search"),style:{width:V},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},n.createElement(R,{ref:f,open:a,prefixCls:r,id:t,inputElement:null,disabled:h,autoFocus:g,autoComplete:b,editable:ee,activeDescendantId:y,value:Q,onKeyDown:T,onMouseDown:N,onChange:I,onPaste:j,onCompositionStart:P,onCompositionEnd:B,onBlur:H,tabIndex:w,attrs:(0,k.A)(e,!0)}),n.createElement("span",{ref:U,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},Q,"\xa0")),ea=n.createElement(C.A,{prefixCls:"".concat(J,"-overflow"),data:i,renderItem:en,renderRest:ei,suffix:eo,itemKey:D,maxCount:A});return n.createElement("span",{className:"".concat(J,"-wrap")},ea,!i.length&&!Q&&n.createElement("span",{className:"".concat(J,"-placeholder")},d))},U=function(e){var t=e.inputElement,r=e.prefixCls,i=e.id,o=e.inputRef,a=e.disabled,s=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,f=e.mode,d=e.open,h=e.values,p=e.placeholder,m=e.tabIndex,g=e.showSearch,b=e.searchValue,v=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,x=e.onInputMouseDown,A=e.onInputChange,E=e.onInputPaste,_=e.onInputCompositionStart,S=e.onInputCompositionEnd,$=e.onInputBlur,C=e.title,O=n.useState(!1),M=(0,u.A)(O,2),I=M[0],j=M[1],T="combobox"===f,N=T||g,P=h[0],B=b||"";T&&v&&!I&&(B=v),n.useEffect(function(){T&&j(!1)},[T,v]);var L=("combobox"===f||!!d||!!g)&&!!B,D=void 0===C?z(P):C,F=n.useMemo(function(){return P?null:n.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},p)},[P,L,p,r]);return n.createElement("span",{className:"".concat(r,"-selection-wrap")},n.createElement("span",{className:"".concat(r,"-selection-search")},n.createElement(R,{ref:o,prefixCls:r,id:i,open:d,inputElement:t,disabled:a,autoFocus:s,autoComplete:l,editable:N,activeDescendantId:c,value:B,onKeyDown:w,onMouseDown:x,onChange:function(e){j(!0),A(e)},onPaste:E,onCompositionStart:_,onCompositionEnd:S,onBlur:$,tabIndex:m,attrs:(0,k.A)(e,!0),maxLength:T?y:void 0})),!T&&P?n.createElement("span",{className:"".concat(r,"-selection-item"),title:D,style:L?{visibility:"hidden"}:void 0},P.label):null,F)};var q=function(e,t){var r=(0,n.useRef)(null),i=(0,n.useRef)(!1),o=e.prefixCls,s=e.open,l=e.mode,c=e.showSearch,f=e.tokenWithEnter,d=e.disabled,h=e.prefix,p=e.autoClearSearchValue,m=e.onSearch,g=e.onSearchSubmit,b=e.onToggleOpen,v=e.onInputKeyDown,y=e.onInputBlur,w=e.domRef;n.useImperativeHandle(t,function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}});var x=E(0),A=(0,u.A)(x,2),_=A[0],k=A[1],C=function(e){var t=e.which,n=r.current instanceof HTMLTextAreaElement;!n&&s&&(t===S.A.UP||t===S.A.DOWN)&&e.preventDefault(),v&&v(e),t!==S.A.ENTER||"tags"!==l||i.current||s||null==g||g(e.target.value),!(n&&!s&&~[S.A.UP,S.A.DOWN,S.A.LEFT,S.A.RIGHT].indexOf(t))&&$(t)&&b(!0)},O=function(){k(!0)},M=(0,n.useRef)(null),I=function(e){!1!==m(e,!0,i.current)&&b(!0)},R=function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){r.current.focus()}):r.current.focus())},j=function(e){var t=_();e.target===r.current||t||"combobox"===l&&d||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&!1!==p&&m("",!0,!1),b())},T={inputRef:r,onInputKeyDown:C,onInputMouseDown:O,onInputChange:function(e){var t=e.target.value;if(f&&M.current&&/[\r\n]/.test(M.current)){var r=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(r,M.current)}M.current=null,I(t)},onInputPaste:function(e){var t=e.clipboardData;M.current=(null==t?void 0:t.getData("text"))||""},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(e){i.current=!1,"combobox"!==l&&I(e.target.value)},onInputBlur:y},N="multiple"===l||"tags"===l?n.createElement(H,(0,a.A)({},e,T)):n.createElement(U,(0,a.A)({},e,T));return n.createElement("div",{ref:w,className:"".concat(o,"-selector"),onClick:R,onMouseDown:j},h&&n.createElement("div",{className:"".concat(o,"-prefix")},h),N)};let W=n.forwardRef(q);var V=r(78387),K=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],G=function(e){var t=+(!0!==e);return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},X=function(e,t){var r=e.prefixCls,i=(e.disabled,e.visible),s=e.children,u=e.popupElement,d=e.animation,h=e.transitionName,p=e.dropdownStyle,m=e.dropdownClassName,g=e.direction,b=void 0===g?"ltr":g,v=e.placement,y=e.builtinPlacements,w=e.dropdownMatchSelectWidth,x=e.dropdownRender,A=e.dropdownAlign,E=e.getPopupContainer,_=e.empty,S=e.getTriggerDOMNode,$=e.onPopupVisibleChange,k=e.onPopupMouseEnter,C=(0,f.A)(e,K),O="".concat(r,"-dropdown"),M=u;x&&(M=x(u));var I=n.useMemo(function(){return y||G(w)},[y,w]),R=d?"".concat(O,"-").concat(d):h,j="number"==typeof w,T=n.useMemo(function(){return j?null:!1===w?"minWidth":"width"},[w,j]),N=p;j&&(N=(0,c.A)((0,c.A)({},N),{},{width:w}));var P=n.useRef(null);return n.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null==(e=P.current)?void 0:e.popupElement}}}),n.createElement(V.A,(0,a.A)({},C,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:v||("rtl"===b?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:O,popupTransitionName:R,popup:n.createElement("div",{onMouseEnter:k},M),ref:P,stretch:T,popupAlign:A,popupVisible:i,getPopupContainer:E,popupClassName:o()(m,(0,l.A)({},"".concat(O,"-empty"),_)),popupStyle:N,getTriggerDOMNode:S,onPopupVisibleChange:$}),s)};let Z=n.forwardRef(X);var Y=r(82033);function J(e,t){var r,n=e.key;return("value"in e&&(r=e.value),null!=n)?n:void 0!==r?r:"rc-index-key-".concat(t)}function Q(e){return void 0!==e&&!Number.isNaN(e)}function ee(e,t){var r=e||{},n=r.label,i=r.value,o=r.options,a=r.groupLabel,s=n||(t?"children":"label");return{label:s,value:i||"value",options:o||"options",groupLabel:a||s}}function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,i=[],o=ee(r,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;function u(e,t){Array.isArray(e)&&e.forEach(function(e){if(!t&&l in e){var r=e[c];void 0===r&&n&&(r=e.label),i.push({key:J(e,i.length),group:!0,data:e,label:r}),u(e[l],!0)}else{var o=e[s];i.push({key:J(e,i.length),groupOption:t,data:e,label:e[a],value:o})}})}return u(e,!1),i}function er(e){var t=(0,c.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,p.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var en=function(e,t,r){if(!t||!t.length)return null;var n=!1,i=function e(t,r){var i=(0,Y.A)(r),o=i[0],a=i.slice(1);if(!o)return[t];var l=t.split(o);return n=n||l.length>1,l.reduce(function(t,r){return[].concat((0,s.A)(t),(0,s.A)(e(r,a)))},[]).filter(Boolean)}(e,t);return n?void 0!==r?i.slice(0,r):i:null};let ei=n.createContext(null);function eo(e){var t=e.visible,r=e.values;if(!t)return null;var i=50;return n.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,i).map(function(e){var t=e.label,r=e.value;return["number","string"].includes((0,d.A)(t))?t:r}).join(", ")),r.length>i?", ...":null)}var ea=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],es=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],el=function(e){return"tags"===e||"multiple"===e};let ec=n.forwardRef(function(e,t){var r,i,d,p,x=e.id,S=e.prefixCls,$=e.className,k=e.showSearch,C=e.tagRender,O=e.direction,M=e.omitDomProps,I=e.displayValues,R=e.onDisplayValuesChange,j=e.emptyOptions,T=e.notFoundContent,N=void 0===T?"Not Found":T,P=e.onClear,B=e.mode,z=e.disabled,L=e.loading,D=e.getInputElement,F=e.getRawInputElement,H=e.open,U=e.defaultOpen,q=e.onDropdownVisibleChange,V=e.activeValue,K=e.onActiveValueChange,G=e.activeDescendantId,X=e.searchValue,Y=e.autoClearSearchValue,J=e.onSearch,ee=e.onSearchSplit,et=e.tokenSeparators,er=e.allowClear,ec=e.prefix,eu=e.suffixIcon,ef=e.clearIcon,ed=e.OptionList,eh=e.animation,ep=e.transitionName,em=e.dropdownStyle,eg=e.dropdownClassName,eb=e.dropdownMatchSelectWidth,ev=e.dropdownRender,ey=e.dropdownAlign,ew=e.placement,ex=e.builtinPlacements,eA=e.getPopupContainer,eE=e.showAction,e_=void 0===eE?[]:eE,eS=e.onFocus,e$=e.onBlur,ek=e.onKeyUp,eC=e.onKeyDown,eO=e.onMouseDown,eM=(0,f.A)(e,ea),eI=el(B),eR=(void 0!==k?k:eI)||"combobox"===B,ej=(0,c.A)({},eM);es.forEach(function(e){delete ej[e]}),null==M||M.forEach(function(e){delete ej[e]});var eT=n.useState(!1),eN=(0,u.A)(eT,2),eP=eN[0],eB=eN[1];n.useEffect(function(){eB((0,g.A)())},[]);var ez=n.useRef(null),eL=n.useRef(null),eD=n.useRef(null),eF=n.useRef(null),eH=n.useRef(null),eU=n.useRef(!1),eq=A(),eW=(0,u.A)(eq,3),eV=eW[0],eK=eW[1],eG=eW[2];n.useImperativeHandle(t,function(){var e,t;return{focus:null==(e=eF.current)?void 0:e.focus,blur:null==(t=eF.current)?void 0:t.blur,scrollTo:function(e){var t;return null==(t=eH.current)?void 0:t.scrollTo(e)},nativeElement:ez.current||eL.current}});var eX=n.useMemo(function(){if("combobox"!==B)return X;var e,t=null==(e=I[0])?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[X,B,I]),eZ="combobox"===B&&"function"==typeof D&&D()||null,eY="function"==typeof F&&F(),eJ=(0,b.xK)(eL,null==eY||null==(r=eY.props)?void 0:r.ref),eQ=n.useState(!1),e0=(0,u.A)(eQ,2),e1=e0[0],e2=e0[1];(0,m.A)(function(){e2(!0)},[]);var e6=(0,h.A)(!1,{defaultValue:U,value:H}),e3=(0,u.A)(e6,2),e5=e3[0],e4=e3[1],e8=!!e1&&e5,e9=!N&&j;(z||e9&&e8&&"combobox"===B)&&(e8=!1);var e7=!e9&&e8,te=n.useCallback(function(e){var t=void 0!==e?e:!e8;z||(e4(t),e8!==t&&(null==q||q(t)))},[z,e8,e4,q]),tt=n.useMemo(function(){return(et||[]).some(function(e){return["\n","\r\n"].includes(e)})},[et]),tr=n.useContext(ei)||{},tn=tr.maxCount,ti=tr.rawValues,to=function(e,t,r){if(!(eI&&Q(tn))||!((null==ti?void 0:ti.size)>=tn)){var n=!0,i=e;null==K||K(null);var o=en(e,et,Q(tn)?tn-ti.size:void 0),a=r?null:o;return"combobox"!==B&&a&&(i="",null==ee||ee(a),te(!1),n=!1),J&&eX!==i&&J(i,{source:t?"typing":"effect"}),n}},ta=function(e){e&&e.trim()&&J(e,{source:"submit"})};n.useEffect(function(){e8||eI||"combobox"===B||to("",!1,!1)},[e8]),n.useEffect(function(){e5&&z&&e4(!1),z&&!eU.current&&eK(!1)},[z]);var ts=E(),tl=(0,u.A)(ts,2),tc=tl[0],tu=tl[1],tf=n.useRef(!1),td=function(e){var t,r=tc(),n=e.key,i="Enter"===n;if(i&&("combobox"!==B&&e.preventDefault(),e8||te(!0)),tu(!!eX),"Backspace"===n&&!r&&eI&&!eX&&I.length){for(var o=(0,s.A)(I),a=null,l=o.length-1;l>=0;l-=1){var c=o[l];if(!c.disabled){o.splice(l,1),a=c;break}}a&&R(o,{type:"remove",values:[a]})}for(var u=arguments.length,f=Array(u>1?u-1:0),d=1;d<u;d++)f[d-1]=arguments[d];!e8||i&&tf.current||(i&&(tf.current=!0),null==(t=eH.current)||t.onKeyDown.apply(t,[e].concat(f))),null==eC||eC.apply(void 0,[e].concat(f))},th=function(e){for(var t,r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e8&&(null==(t=eH.current)||t.onKeyUp.apply(t,[e].concat(n))),"Enter"===e.key&&(tf.current=!1),null==ek||ek.apply(void 0,[e].concat(n))},tp=function(e){R(I.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tm=function(){tf.current=!1},tg=n.useRef(!1),tb=function(){eK(!0),!z&&(eS&&!tg.current&&eS.apply(void 0,arguments),e_.includes("focus")&&te(!0)),tg.current=!0},tv=function(){eU.current=!0,eK(!1,function(){tg.current=!1,eU.current=!1,te(!1)}),!z&&(eX&&("tags"===B?J(eX,{source:"submit"}):"multiple"===B&&J("",{source:"blur"})),e$&&e$.apply(void 0,arguments))},ty=[];n.useEffect(function(){return function(){ty.forEach(function(e){return clearTimeout(e)}),ty.splice(0,ty.length)}},[]);var tw=function(e){var t,r=e.target,n=null==(t=eD.current)?void 0:t.getPopupElement();if(n&&n.contains(r)){var i=setTimeout(function(){var e,t=ty.indexOf(i);-1!==t&&ty.splice(t,1),eG(),eP||n.contains(document.activeElement)||null==(e=eF.current)||e.focus()});ty.push(i)}for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];null==eO||eO.apply(void 0,[e].concat(a))},tx=n.useState({}),tA=(0,u.A)(tx,2)[1];function tE(){tA({})}eY&&(i=function(e){te(e)}),_(function(){var e;return[ez.current,null==(e=eD.current)?void 0:e.getPopupElement()]},e7,te,!!eY);var t_=n.useMemo(function(){return(0,c.A)((0,c.A)({},e),{},{notFoundContent:N,open:e8,triggerOpen:e7,id:x,showSearch:eR,multiple:eI,toggleOpen:te})},[e,N,e7,e8,x,eR,eI,te]),tS=!!eu||L;tS&&(d=n.createElement(v,{className:o()("".concat(S,"-arrow"),(0,l.A)({},"".concat(S,"-arrow-loading"),L)),customizeIcon:eu,customizeIconProps:{loading:L,searchValue:eX,open:e8,focused:eV,showSearch:eR}}));var t$=y(S,function(){var e;null==P||P(),null==(e=eF.current)||e.focus(),R([],{type:"clear",values:I}),to("",!1,!1)},I,er,ef,z,eX,B),tk=t$.allowClear,tC=t$.clearIcon,tO=n.createElement(ed,{ref:eH}),tM=o()(S,$,(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)({},"".concat(S,"-focused"),eV),"".concat(S,"-multiple"),eI),"".concat(S,"-single"),!eI),"".concat(S,"-allow-clear"),er),"".concat(S,"-show-arrow"),tS),"".concat(S,"-disabled"),z),"".concat(S,"-loading"),L),"".concat(S,"-open"),e8),"".concat(S,"-customize-input"),eZ),"".concat(S,"-show-search"),eR)),tI=n.createElement(Z,{ref:eD,disabled:z,prefixCls:S,visible:e7,popupElement:tO,animation:eh,transitionName:ep,dropdownStyle:em,dropdownClassName:eg,direction:O,dropdownMatchSelectWidth:eb,dropdownRender:ev,dropdownAlign:ey,placement:ew,builtinPlacements:ex,getPopupContainer:eA,empty:j,getTriggerDOMNode:function(e){return eL.current||e},onPopupVisibleChange:i,onPopupMouseEnter:tE},eY?n.cloneElement(eY,{ref:eJ}):n.createElement(W,(0,a.A)({},e,{domRef:eL,prefixCls:S,inputElement:eZ,ref:eF,id:x,prefix:ec,showSearch:eR,autoClearSearchValue:Y,mode:B,activeDescendantId:G,tagRender:C,values:I,open:e8,onToggleOpen:te,activeValue:V,searchValue:eX,onSearch:to,onSearchSubmit:ta,onRemove:tp,tokenWithEnter:tt,onInputBlur:tm})));return p=eY?tI:n.createElement("div",(0,a.A)({className:tM},ej,{ref:ez,onMouseDown:tw,onKeyDown:td,onKeyUp:th,onFocus:tb,onBlur:tv}),n.createElement(eo,{visible:eV&&!e8,values:I}),tI,d,tk&&tC),n.createElement(w.Provider,{value:t_},p)});var eu=function(){return null};eu.isSelectOptGroup=!0;let ef=eu;var ed=function(){return null};ed.isSelectOption=!0;let eh=ed;var ep=r(96271),em=r(46604),eg=r(44965),eb=r(74757),ev=r(70316),ey=n.forwardRef(function(e,t){var r=e.height,i=e.offsetY,s=e.offsetX,u=e.children,f=e.prefixCls,d=e.onInnerResize,h=e.innerProps,p=e.rtl,m=e.extra,g={},b={display:"flex",flexDirection:"column"};return void 0!==i&&(g={height:r,position:"relative",overflow:"hidden"},b=(0,c.A)((0,c.A)({},b),{},(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)({transform:"translateY(".concat(i,"px)")},p?"marginRight":"marginLeft",-s),"position","absolute"),"left",0),"right",0),"top",0))),n.createElement("div",{style:g},n.createElement(eg.A,{onResize:function(e){e.offsetHeight&&d&&d()}},n.createElement("div",(0,a.A)({style:b,className:o()((0,l.A)({},"".concat(f,"-holder-inner"),f)),ref:t},h),u,m)))});ey.displayName="Filler";let ew=ey;function ex(e){var t=e.children,r=e.setRef,i=n.useCallback(function(e){r(e)},[]);return n.cloneElement(t,{ref:i})}function eA(e,t,r,i,o,a,s,l){var c=l.getKey;return e.slice(t,r+1).map(function(e,r){var l=s(e,t+r,{style:{width:i},offsetX:o}),u=c(e);return n.createElement(ex,{key:u,setRef:function(t){return a(e,t)}},l)})}function eE(e,t,r){var n,i,o=e.length,a=t.length;if(0===o&&0===a)return null;o<a?(n=e,i=t):(n=t,i=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?r(e):s}for(var c=null,u=1!==Math.abs(o-a),f=0;f<i.length;f+=1){var d=l(n[f]);if(d!==l(i[f])){c=f,u=u||d!==l(i[f+1]);break}}return null===c?null:{index:c,multiple:u}}function e_(e,t,r){var i=n.useState(e),o=(0,u.A)(i,2),a=o[0],s=o[1],l=n.useState(null),c=(0,u.A)(l,2),f=c[0],d=c[1];return n.useEffect(function(){var n=eE(a||[],e||[],t);(null==n?void 0:n.index)!==void 0&&(null==r||r(n.index),d(e[n.index])),s(e)},[e]),[f]}var eS=r(23504);let e$=("u"<typeof navigator?"undefined":(0,d.A)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ek=function(e,t,r,i){var o=(0,n.useRef)(!1),a=(0,n.useRef)(null);function s(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var l=(0,n.useRef)({top:e,bottom:t,left:r,right:i});return l.current.top=e,l.current.bottom=t,l.current.left=r,l.current.right=i,function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return r&&n?(clearTimeout(a.current),o.current=!1):(!n||o.current)&&s(),!o.current&&n}};function eC(e,t,r,i,o,a,s){var l=(0,n.useRef)(0),c=(0,n.useRef)(null),u=(0,n.useRef)(null),f=(0,n.useRef)(!1),d=ek(t,r,i,o);function h(e,t){if(eS.A.cancel(c.current),!d(!1,t)){var r=e;r._virtualHandled||(r._virtualHandled=!0,l.current+=t,u.current=t,e$||r.preventDefault(),c.current=(0,eS.A)(function(){var e=f.current?10:1;s(l.current*e,!1),l.current=0}))}}function p(e,t){s(t,!0),e$||e.preventDefault()}var m=(0,n.useRef)(null),g=(0,n.useRef)(null);return[function(t){if(e){eS.A.cancel(g.current),g.current=(0,eS.A)(function(){m.current=null},2);var r=t.deltaX,n=t.deltaY,i=t.shiftKey,o=r,s=n;("sx"===m.current||!m.current&&i&&n&&!r)&&(o=n,s=0,m.current="sx");var l=Math.abs(o),c=Math.abs(s);null===m.current&&(m.current=a&&l>c?"x":"y"),"y"===m.current?h(t,s):p(t,o)}},function(t){e&&(f.current=t.detail===u.current)}]}function eO(e,t,r,i){var o=n.useMemo(function(){return[new Map,[]]},[e,r.id,i]),a=(0,u.A)(o,2),s=a[0],l=a[1];return function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,a=s.get(n),c=s.get(o);if(void 0===a||void 0===c)for(var u=e.length,f=l.length;f<u;f+=1){var d,h=t(e[f]);s.set(h,f);var p=null!=(d=r.get(h))?d:i;if(l[f]=(l[f-1]||0)+p,h===n&&(a=f),h===o&&(c=f),void 0!==a&&void 0!==c)break}return{top:l[a-1]||0,bottom:l[c]}}}var eM=r(11947),eI=r(96591);let eR=function(){function e(){(0,eM.A)(this,e),(0,l.A)(this,"maps",void 0),(0,l.A)(this,"id",0),(0,l.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,eI.A)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function ej(e){var t=parseFloat(e);return isNaN(t)?0:t}function eT(e,t,r){var i=n.useState(0),o=(0,u.A)(i,2),a=o[0],s=o[1],l=(0,n.useRef)(new Map),c=(0,n.useRef)(new eR),f=(0,n.useRef)(0);function d(){f.current+=1}function h(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;l.current.forEach(function(t,r){if(t&&t.offsetParent){var n=t.offsetHeight,i=getComputedStyle(t),o=i.marginTop,a=i.marginBottom,s=n+ej(o)+ej(a);c.current.get(r)!==s&&(c.current.set(r,s),e=!0)}}),e&&s(function(e){return e+1})};if(e)t();else{f.current+=1;var r=f.current;Promise.resolve().then(function(){r===f.current&&t()})}}function p(n,i){var o=e(n),a=l.current.get(o);i?(l.current.set(o,i),h()):l.current.delete(o),!a!=!i&&(i?null==t||t(n):null==r||r(n))}return(0,n.useEffect)(function(){return d},[]),[p,h,c.current,a]}var eN=14/15;function eP(e,t,r){var i,o=(0,n.useRef)(!1),a=(0,n.useRef)(0),s=(0,n.useRef)(0),l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),i=a.current-t,l=s.current-n,u=Math.abs(i)>Math.abs(l);u?a.current=t:s.current=n;var f=r(u,u?i:l,!1,e);f&&e.preventDefault(),clearInterval(c.current),f&&(c.current=setInterval(function(){u?i*=eN:l*=eN;var e=Math.floor(u?i:l);(!r(u,e,!0)||.1>=Math.abs(e))&&clearInterval(c.current)},16))}},f=function(){o.current=!1,i()},d=function(e){i(),1!==e.touches.length||o.current||(o.current=!0,a.current=Math.ceil(e.touches[0].pageX),s.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",f,{passive:!0}))};i=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",f))},(0,m.A)(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null==(e=t.current)||e.removeEventListener("touchstart",d),i(),clearInterval(c.current)}},[e])}function eB(e){return Math.floor(Math.pow(e,.5))}function ez(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function eL(e,t,r){n.useEffect(function(){var n=t.current;if(e&&n){var i,o,a=!1,s=function(){eS.A.cancel(i)},l=function e(){s(),i=(0,eS.A)(function(){r(o),e()})},c=function(){a=!1,s()},u=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},f=function(e){if(a){var t=ez(e,!1),r=n.getBoundingClientRect(),i=r.top,c=r.bottom;t<=i?(o=-eB(i-t),l()):t>=c?(o=eB(t-c),l()):s()}};return n.addEventListener("mousedown",u),n.ownerDocument.addEventListener("mouseup",c),n.ownerDocument.addEventListener("mousemove",f),n.ownerDocument.addEventListener("dragend",c),function(){n.removeEventListener("mousedown",u),n.ownerDocument.removeEventListener("mouseup",c),n.ownerDocument.removeEventListener("mousemove",f),n.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}var eD=10;function eF(e,t,r,i,o,a,s,l){var f=n.useRef(),h=n.useState(null),p=(0,u.A)(h,2),g=p[0],b=p[1];return(0,m.A)(function(){if(g&&g.times<eD){if(!e.current)return void b(function(e){return(0,c.A)({},e)});a();var n=g.targetAlign,l=g.originAlign,u=g.index,f=g.offset,d=e.current.clientHeight,h=!1,p=n,m=null;if(d){for(var v=n||l,y=0,w=0,x=0,A=Math.min(t.length-1,u),E=0;E<=A;E+=1){var _=o(t[E]);w=y;var S=r.get(_);y=x=w+(void 0===S?i:S)}for(var $="top"===v?f:d-f,k=A;k>=0;k-=1){var C=o(t[k]),O=r.get(C);if(void 0===O){h=!0;break}if(($-=O)<=0)break}switch(v){case"top":m=w-f;break;case"bottom":m=x-d+f;break;default:var M=e.current.scrollTop,I=M+d;w<M?p="top":x>I&&(p="bottom")}null!==m&&s(m),m!==g.lastTop&&(h=!0)}h&&b((0,c.A)((0,c.A)({},g),{},{times:g.times+1,targetAlign:p,lastTop:m}))}},[g,e.current]),function(e){if(null==e)return void l();if(eS.A.cancel(f.current),"number"==typeof e)s(e);else if(e&&"object"===(0,d.A)(e)){var r,n=e.align;r="index"in e?e.index:t.findIndex(function(t){return o(t)===e.key});var i=e.offset;b({times:0,index:r,offset:void 0===i?0:i,originAlign:n})}}}let eH=n.forwardRef(function(e,t){var r=e.prefixCls,i=e.rtl,a=e.scrollOffset,s=e.scrollRange,f=e.onStartMove,d=e.onStopMove,h=e.onScroll,p=e.horizontal,m=e.spinSize,g=e.containerSize,b=e.style,v=e.thumbStyle,y=e.showScrollBar,w=n.useState(!1),x=(0,u.A)(w,2),A=x[0],E=x[1],_=n.useState(null),S=(0,u.A)(_,2),$=S[0],k=S[1],C=n.useState(null),O=(0,u.A)(C,2),M=O[0],I=O[1],R=!i,j=n.useRef(),T=n.useRef(),N=n.useState(y),P=(0,u.A)(N,2),B=P[0],z=P[1],L=n.useRef(),D=function(){!0!==y&&!1!==y&&(clearTimeout(L.current),z(!0),L.current=setTimeout(function(){z(!1)},3e3))},F=s-g||0,H=g-m||0,U=n.useMemo(function(){return 0===a||0===F?0:a/F*H},[a,F,H]),q=function(e){e.stopPropagation(),e.preventDefault()},W=n.useRef({top:U,dragging:A,pageY:$,startTop:M});W.current={top:U,dragging:A,pageY:$,startTop:M};var V=function(e){E(!0),k(ez(e,p)),I(W.current.top),f(),e.stopPropagation(),e.preventDefault()};n.useEffect(function(){var e=function(e){e.preventDefault()},t=j.current,r=T.current;return t.addEventListener("touchstart",e,{passive:!1}),r.addEventListener("touchstart",V,{passive:!1}),function(){t.removeEventListener("touchstart",e),r.removeEventListener("touchstart",V)}},[]);var K=n.useRef();K.current=F;var G=n.useRef();G.current=H,n.useEffect(function(){if(A){var e,t=function(t){var r=W.current,n=r.dragging,i=r.pageY,o=r.startTop;eS.A.cancel(e);var a=j.current.getBoundingClientRect(),s=g/(p?a.width:a.height);if(n){var l=(ez(t,p)-i)*s,c=o;!R&&p?c-=l:c+=l;var u=K.current,f=G.current,d=Math.ceil((f?c/f:0)*u);d=Math.min(d=Math.max(d,0),u),e=(0,eS.A)(function(){h(d,p)})}},r=function(){E(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",r,{passive:!0}),window.addEventListener("touchend",r,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",r),window.removeEventListener("touchend",r),eS.A.cancel(e)}}},[A]),n.useEffect(function(){return D(),function(){clearTimeout(L.current)}},[a]),n.useImperativeHandle(t,function(){return{delayHidden:D}});var X="".concat(r,"-scrollbar"),Z={position:"absolute",visibility:B?null:"hidden"},Y={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(Z,{height:8,left:0,right:0,bottom:0}),Object.assign(Y,(0,l.A)({height:"100%",width:m},R?"left":"right",U))):(Object.assign(Z,(0,l.A)({width:8,top:0,bottom:0},R?"right":"left",0)),Object.assign(Y,{width:"100%",height:m,top:U})),n.createElement("div",{ref:j,className:o()(X,(0,l.A)((0,l.A)((0,l.A)({},"".concat(X,"-horizontal"),p),"".concat(X,"-vertical"),!p),"".concat(X,"-visible"),B)),style:(0,c.A)((0,c.A)({},Z),b),onMouseDown:q,onMouseMove:D},n.createElement("div",{ref:T,className:o()("".concat(X,"-thumb"),(0,l.A)({},"".concat(X,"-thumb-moving"),A)),style:(0,c.A)((0,c.A)({},Y),v),onMouseDown:V}))});var eU=20;function eq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),Math.floor(r=Math.max(r,eU))}var eW=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],eV=[],eK={overflowY:"auto",overflowAnchor:"none"};function eG(e,t){var r=e.prefixCls,i=void 0===r?"rc-virtual-list":r,s=e.className,h=e.height,p=e.itemHeight,g=e.fullHeight,b=void 0===g||g,v=e.style,y=e.data,w=e.children,x=e.itemKey,A=e.virtual,E=e.direction,_=e.scrollWidth,S=e.component,$=void 0===S?"div":S,k=e.onScroll,C=e.onVirtualScroll,O=e.onVisibleChange,M=e.innerProps,I=e.extraRender,R=e.styles,j=e.showScrollBar,T=void 0===j?"optional":j,N=(0,f.A)(e,eW),P=n.useCallback(function(e){return"function"==typeof x?x(e):null==e?void 0:e[x]},[x]),B=eT(P,null,null),z=(0,u.A)(B,4),L=z[0],D=z[1],F=z[2],H=z[3],U=!!(!1!==A&&h&&p),q=n.useMemo(function(){return Object.values(F.maps).reduce(function(e,t){return e+t},0)},[F.id,F.maps]),W=U&&y&&(Math.max(p*y.length,q)>h||!!_),V="rtl"===E,K=o()(i,(0,l.A)({},"".concat(i,"-rtl"),V),s),G=y||eV,X=(0,n.useRef)(),Z=(0,n.useRef)(),Y=(0,n.useRef)(),J=(0,n.useState)(0),Q=(0,u.A)(J,2),ee=Q[0],et=Q[1],er=(0,n.useState)(0),en=(0,u.A)(er,2),ei=en[0],eo=en[1],ea=(0,n.useState)(!1),es=(0,u.A)(ea,2),el=es[0],ec=es[1],eu=function(){ec(!0)},ef=function(){ec(!1)},ed={getKey:P};function eh(e){et(function(t){var r=eY("function"==typeof e?e(t):e);return X.current.scrollTop=r,r})}var ep=(0,n.useRef)({start:0,end:G.length}),em=(0,n.useRef)(),ey=e_(G,P);em.current=(0,u.A)(ey,1)[0];var ex=n.useMemo(function(){if(!U)return{scrollHeight:void 0,start:0,end:G.length-1,offset:void 0};if(!W)return{scrollHeight:(null==(e=Z.current)?void 0:e.offsetHeight)||0,start:0,end:G.length-1,offset:void 0};for(var e,t,r,n,i=0,o=G.length,a=0;a<o;a+=1){var s=P(G[a]),l=F.get(s),c=i+(void 0===l?p:l);c>=ee&&void 0===t&&(t=a,r=i),c>ee+h&&void 0===n&&(n=a),i=c}return void 0===t&&(t=0,r=0,n=Math.ceil(h/p)),void 0===n&&(n=G.length-1),{scrollHeight:i,start:t,end:n=Math.min(n+1,G.length-1),offset:r}},[W,U,ee,G,H,h]),eE=ex.scrollHeight,eS=ex.start,e$=ex.end,eM=ex.offset;ep.current.start=eS,ep.current.end=e$,n.useLayoutEffect(function(){var e=F.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],r=e.get(t),n=G[eS];if(n&&void 0===r&&P(n)===t){var i=F.get(t)-p;eh(function(e){return e+i})}}F.resetRecord()},[eE]);var eI=n.useState({width:0,height:h}),eR=(0,u.A)(eI,2),ej=eR[0],eN=eR[1],eB=function(e){eN({width:e.offsetWidth,height:e.offsetHeight})},ez=(0,n.useRef)(),eD=(0,n.useRef)(),eU=n.useMemo(function(){return eq(ej.width,_)},[ej.width,_]),eG=n.useMemo(function(){return eq(ej.height,eE)},[ej.height,eE]),eX=eE-h,eZ=(0,n.useRef)(eX);function eY(e){var t=e;return Number.isNaN(eZ.current)||(t=Math.min(t,eZ.current)),t=Math.max(t,0)}eZ.current=eX;var eJ=ee<=0,eQ=ee>=eX,e0=ei<=0,e1=ei>=_,e2=ek(eJ,eQ,e0,e1),e6=function(){return{x:V?-ei:ei,y:ee}},e3=(0,n.useRef)(e6()),e5=(0,eb._q)(function(e){if(C){var t=(0,c.A)((0,c.A)({},e6()),e);(e3.current.x!==t.x||e3.current.y!==t.y)&&(C(t),e3.current=t)}});function e4(e,t){var r=e;t?((0,ev.flushSync)(function(){eo(r)}),e5()):eh(r)}function e8(e){var t=e.currentTarget.scrollTop;t!==ee&&eh(t),null==k||k(e),e5()}var e9=function(e){var t=e,r=_?_-ej.width:0;return Math.min(t=Math.max(t,0),r)},e7=eC(U,eJ,eQ,e0,e1,!!_,(0,eb._q)(function(e,t){t?((0,ev.flushSync)(function(){eo(function(t){return e9(t+(V?-e:e))})}),e5()):eh(function(t){return t+e})})),te=(0,u.A)(e7,2),tt=te[0],tr=te[1];eP(U,X,function(e,t,r,n){var i=n;return!e2(e,t,r)&&(!i||!i._virtualHandled)&&(i&&(i._virtualHandled=!0),tt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)}),eL(W,X,function(e){eh(function(t){return t+e})}),(0,m.A)(function(){function e(e){var t=eJ&&e.detail<0,r=eQ&&e.detail>0;!U||t||r||e.preventDefault()}var t=X.current;return t.addEventListener("wheel",tt,{passive:!1}),t.addEventListener("DOMMouseScroll",tr,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",tt),t.removeEventListener("DOMMouseScroll",tr),t.removeEventListener("MozMousePixelScroll",e)}},[U,eJ,eQ]),(0,m.A)(function(){if(_){var e=e9(ei);eo(e),e5({x:e})}},[ej.width,_]);var tn=function(){var e,t;null==(e=ez.current)||e.delayHidden(),null==(t=eD.current)||t.delayHidden()},ti=eF(X,G,F,p,P,function(){return D(!0)},eh,tn);n.useImperativeHandle(t,function(){return{nativeElement:Y.current,getScrollInfo:e6,scrollTo:function(e){!function(e){return e&&"object"===(0,d.A)(e)&&("left"in e||"top"in e)}(e)?ti(e):(void 0!==e.left&&eo(e9(e.left)),ti(e.top))}}}),(0,m.A)(function(){O&&O(G.slice(eS,e$+1),G)},[eS,e$,G]);var to=eO(G,P,F,p),ta=null==I?void 0:I({start:eS,end:e$,virtual:W,offsetX:ei,offsetY:eM,rtl:V,getSize:to}),ts=eA(G,eS,e$,_,ei,L,w,ed),tl=null;h&&(tl=(0,c.A)((0,l.A)({},b?"height":"maxHeight",h),eK),U&&(tl.overflowY="hidden",_&&(tl.overflowX="hidden"),el&&(tl.pointerEvents="none")));var tc={};return V&&(tc.dir="rtl"),n.createElement("div",(0,a.A)({ref:Y,style:(0,c.A)((0,c.A)({},v),{},{position:"relative"}),className:K},tc,N),n.createElement(eg.A,{onResize:eB},n.createElement($,{className:"".concat(i,"-holder"),style:tl,ref:X,onScroll:e8,onMouseEnter:tn},n.createElement(ew,{prefixCls:i,height:eE,offsetX:ei,offsetY:eM,scrollWidth:_,onInnerResize:D,ref:Z,innerProps:M,rtl:V,extra:ta},ts))),W&&eE>h&&n.createElement(eH,{ref:ez,prefixCls:i,scrollOffset:ee,scrollRange:eE,rtl:V,onScroll:e4,onStartMove:eu,onStopMove:ef,spinSize:eG,containerSize:ej.height,style:null==R?void 0:R.verticalScrollBar,thumbStyle:null==R?void 0:R.verticalScrollBarThumb,showScrollBar:T}),W&&_>ej.width&&n.createElement(eH,{ref:eD,prefixCls:i,scrollOffset:ei,scrollRange:_,rtl:V,onScroll:e4,onStartMove:eu,onStopMove:ef,spinSize:eU,containerSize:ej.width,horizontal:!0,style:null==R?void 0:R.horizontalScrollBar,thumbStyle:null==R?void 0:R.horizontalScrollBarThumb,showScrollBar:T}))}var eX=n.forwardRef(eG);eX.displayName="List";let eZ=eX;function eY(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var eJ=["disabled","title","children","style","className"];function eQ(e){return"string"==typeof e||"number"==typeof e}var e0=function(e,t){var r=x(),i=r.prefixCls,c=r.id,d=r.open,h=r.multiple,p=r.mode,m=r.searchValue,g=r.toggleOpen,b=r.notFoundContent,y=r.onPopupScroll,w=n.useContext(ei),A=w.maxCount,E=w.flattenOptions,_=w.onActiveValue,$=w.defaultActiveFirstOption,C=w.onSelect,O=w.menuItemSelectedIcon,M=w.rawValues,I=w.fieldNames,R=w.virtual,j=w.direction,T=w.listHeight,N=w.listItemHeight,P=w.optionRender,B="".concat(i,"-item"),z=(0,ep.A)(function(){return E},[d,E],function(e,t){return t[0]&&e[1]!==t[1]}),L=n.useRef(null),D=n.useMemo(function(){return h&&Q(A)&&(null==M?void 0:M.size)>=A},[h,A,null==M?void 0:M.size]),F=function(e){e.preventDefault()},H=function(e){var t;null==(t=L.current)||t.scrollTo("number"==typeof e?{index:e}:e)},U=n.useCallback(function(e){return"combobox"!==p&&M.has(e)},[p,(0,s.A)(M).toString(),M.size]),q=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=z.length,n=0;n<r;n+=1){var i=(e+n*t+r)%r,o=z[i]||{},a=o.group,s=o.data;if(!a&&!(null!=s&&s.disabled)&&(U(s.value)||!D))return i}return -1},W=n.useState(function(){return q(0)}),V=(0,u.A)(W,2),K=V[0],G=V[1],X=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];G(e);var r={source:t?"keyboard":"mouse"},n=z[e];n?_(n.value,e,r):_(null,-1,r)};(0,n.useEffect)(function(){X(!1!==$?q(0):-1)},[z.length,m]);var Z=n.useCallback(function(e){return"combobox"===p?String(e).toLowerCase()===m.toLowerCase():M.has(e)},[p,m,(0,s.A)(M).toString(),M.size]);(0,n.useEffect)(function(){var e,t=setTimeout(function(){if(!h&&d&&1===M.size){var e=Array.from(M)[0],t=z.findIndex(function(t){var r=t.data;return m?String(r.value).startsWith(m):r.value===e});-1!==t&&(X(t),H(t))}});return d&&(null==(e=L.current)||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[d,m]);var Y=function(e){void 0!==e&&C(e,{selected:!M.has(e)}),h||g(!1)};if(n.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,r=e.ctrlKey;switch(t){case S.A.N:case S.A.P:case S.A.UP:case S.A.DOWN:var n=0;if(t===S.A.UP?n=-1:t===S.A.DOWN?n=1:eY()&&r&&(t===S.A.N?n=1:t===S.A.P&&(n=-1)),0!==n){var i=q(K+n,n);H(i),X(i,!0)}break;case S.A.TAB:case S.A.ENTER:var o,a=z[K];!a||null!=a&&null!=(o=a.data)&&o.disabled||D?Y(void 0):Y(a.value),d&&e.preventDefault();break;case S.A.ESC:g(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){H(e)}}}),0===z.length)return n.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(B,"-empty"),onMouseDown:F},b);var J=Object.keys(I).map(function(e){return I[e]}),ee=function(e){return e.label};function et(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var er=function(e){var t=z[e];if(!t)return null;var r=t.data||{},i=r.value,o=t.group,s=(0,k.A)(r,!0),l=ee(t);return t?n.createElement("div",(0,a.A)({"aria-label":"string"!=typeof l||o?null:l},s,{key:e},et(t,e),{"aria-selected":Z(i)}),i):null},en={role:"listbox",id:"".concat(c,"_list")};return n.createElement(n.Fragment,null,R&&n.createElement("div",(0,a.A)({},en,{style:{height:0,width:0,overflow:"hidden"}}),er(K-1),er(K),er(K+1)),n.createElement(eZ,{itemKey:"key",ref:L,data:z,height:T,itemHeight:N,fullHeight:!1,onMouseDown:F,onScroll:y,virtual:R,direction:j,innerProps:R?null:en},function(e,t){var r=e.group,i=e.groupOption,s=e.data,c=e.label,u=e.value,d=s.key;if(r){var h,p=null!=(h=s.title)?h:eQ(c)?c.toString():void 0;return n.createElement("div",{className:o()(B,"".concat(B,"-group"),s.className),title:p},void 0!==c?c:d)}var m=s.disabled,g=s.title,b=(s.children,s.style),y=s.className,w=(0,f.A)(s,eJ),x=(0,em.A)(w,J),A=U(u),E=m||!A&&D,_="".concat(B,"-option"),S=o()(B,_,y,(0,l.A)((0,l.A)((0,l.A)((0,l.A)({},"".concat(_,"-grouped"),i),"".concat(_,"-active"),K===t&&!E),"".concat(_,"-disabled"),E),"".concat(_,"-selected"),A)),$=ee(e),C=!O||"function"==typeof O||A,M="number"==typeof $?$:$||u,I=eQ(M)?M.toString():void 0;return void 0!==g&&(I=g),n.createElement("div",(0,a.A)({},(0,k.A)(x),R?{}:et(e,t),{"aria-selected":Z(u),className:S,title:I,onMouseMove:function(){K===t||E||X(t)},onClick:function(){E||Y(u)},style:b}),n.createElement("div",{className:"".concat(_,"-content")},"function"==typeof P?P(e,{index:t}):M),n.isValidElement(O)||A,C&&n.createElement(v,{className:"".concat(B,"-option-state"),customizeIcon:O,customizeIconProps:{value:u,disabled:E,isSelected:A}},A?"✓":null))}))};let e1=n.forwardRef(e0),e2=function(e,t){var r=n.useRef({values:new Map,options:new Map});return[n.useMemo(function(){var n=r.current,i=n.values,o=n.options,a=e.map(function(e){if(void 0===e.label){var t;return(0,c.A)((0,c.A)({},e),{},{label:null==(t=i.get(e.value))?void 0:t.label})}return e}),s=new Map,l=new Map;return a.forEach(function(e){s.set(e.value,e),l.set(e.value,t.get(e.value)||o.get(e.value))}),r.current.values=s,r.current.options=l,a},[e,t]),n.useCallback(function(e){return t.get(e)||r.current.options.get(e)},[t])]};function e6(e,t){return j(e).join("").toUpperCase().includes(t)}let e3=function(e,t,r,i,o){return n.useMemo(function(){if(!r||!1===i)return e;var n=t.options,a=t.label,s=t.value,u=[],f="function"==typeof i,d=r.toUpperCase(),h=f?i:function(e,t){return o?e6(t[o],d):t[n]?e6(t["children"!==a?a:"label"],d):e6(t[s],d)},p=f?function(e){return er(e)}:function(e){return e};return e.forEach(function(e){if(e[n]){if(h(r,p(e)))u.push(e);else{var t=e[n].filter(function(e){return h(r,p(e))});t.length&&u.push((0,c.A)((0,c.A)({},e),{},(0,l.A)({},n,t)))}return}h(r,p(e))&&u.push(e)}),u},[e,i,o,r,t])};var e5=r(8929),e4=0,e8=(0,e5.A)();function e9(){var e;return e8?(e=e4,e4+=1):e="TEST_OR_SSR",e}function e7(e){var t=n.useState(),r=(0,u.A)(t,2),i=r[0],o=r[1];return n.useEffect(function(){o("rc_select_".concat(e9()))},[]),e||i}var te=r(54355),tt=["children","value"],tr=["children"];function tn(e){var t=e,r=t.key,n=t.props,i=n.children,o=n.value,a=(0,f.A)(n,tt);return(0,c.A)({key:r,value:void 0!==o?o:r,children:i},a)}function ti(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,te.A)(e).map(function(e,r){if(!n.isValidElement(e)||!e.type)return null;var i=e,o=i.type.isSelectOptGroup,a=i.key,s=i.props,l=s.children,u=(0,f.A)(s,tr);return t||!o?tn(e):(0,c.A)((0,c.A)({key:"__RC_SELECT_GRP__".concat(null===a?r:a,"__"),label:a},u),{},{options:ti(l)})}).filter(function(e){return e})}let to=function(e,t,r,i,o){return n.useMemo(function(){var n=e;e||(n=ti(t));var a=new Map,s=new Map,l=function(e,t,r){r&&"string"==typeof r&&e.set(t[r],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[r.options]||n?(a.set(u[r.value],u),l(s,u,r.label),l(s,u,i),l(s,u,o)):e(u[r.options],!0)}}(n),{options:n,valueOptions:a,labelOptions:s}},[e,t,r,i,o])};function ta(e){var t=n.useRef();return t.current=e,n.useCallback(function(){return t.current.apply(t,arguments)},[])}var ts=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],tl=["inputValue"];function tc(e){return!e||"object"!==(0,d.A)(e)}var tu=n.forwardRef(function(e,t){var r=e.id,i=e.mode,o=e.prefixCls,d=void 0===o?"rc-select":o,p=e.backfill,m=e.fieldNames,g=e.inputValue,b=e.searchValue,v=e.onSearch,y=e.autoClearSearchValue,w=void 0===y||y,x=e.onSelect,A=e.onDeselect,E=e.dropdownMatchSelectWidth,_=void 0===E||E,S=e.filterOption,$=e.filterSort,k=e.optionFilterProp,C=e.optionLabelProp,O=e.options,M=e.optionRender,I=e.children,R=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,B=e.virtual,z=e.direction,L=e.listHeight,D=void 0===L?200:L,F=e.listItemHeight,H=void 0===F?20:F,U=e.labelRender,q=e.value,W=e.defaultValue,V=e.labelInValue,K=e.onChange,G=e.maxCount,X=(0,f.A)(e,ts),Z=e7(r),Y=el(i),J=!!(!O&&I),Q=n.useMemo(function(){return(void 0!==S||"combobox"!==i)&&S},[S,i]),en=n.useMemo(function(){return ee(m,J)},[JSON.stringify(m),J]),eo=(0,h.A)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),ea=(0,u.A)(eo,2),es=ea[0],eu=ea[1],ef=to(O,I,en,k,C),ed=ef.valueOptions,eh=ef.labelOptions,ep=ef.options,em=n.useCallback(function(e){return j(e).map(function(e){tc(e)?t=e:(n=e.key,r=e.label,t=null!=(a=e.value)?a:n);var t,r,n,i,o,a,s,l=ed.get(t);return l&&(void 0===r&&(r=null==l?void 0:l[C||en.label]),void 0===n&&(n=null!=(s=null==l?void 0:l.key)?s:t),i=null==l?void 0:l.disabled,o=null==l?void 0:l.title),{label:r,value:t,key:n,disabled:i,title:o}})},[en,C,ed]),eg=(0,h.A)(W,{value:q}),eb=(0,u.A)(eg,2),ev=eb[0],ey=eb[1],ew=e2(n.useMemo(function(){var e,t=em(Y&&null===ev?[]:ev);return"combobox"===i&&P(null==(e=t[0])?void 0:e.value)?[]:t},[ev,em,i,Y]),ed),ex=(0,u.A)(ew,2),eA=ex[0],eE=ex[1],e_=n.useMemo(function(){if(!i&&1===eA.length){var e=eA[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return eA.map(function(e){var t;return(0,c.A)((0,c.A)({},e),{},{label:null!=(t="function"==typeof U?U(e):e.label)?t:e.value})})},[i,eA,U]),eS=n.useMemo(function(){return new Set(eA.map(function(e){return e.value}))},[eA]);n.useEffect(function(){if("combobox"===i){var e,t=null==(e=eA[0])?void 0:e.value;eu(N(t)?String(t):"")}},[eA]);var e$=ta(function(e,t){var r=null!=t?t:e;return(0,l.A)((0,l.A)({},en.value,e),en.label,r)}),ek=e3(n.useMemo(function(){if("tags"!==i)return ep;var e=(0,s.A)(ep),t=function(e){return ed.has(e)};return(0,s.A)(eA).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(r){var n=r.value;t(n)||e.push(e$(n,r.label))}),e},[e$,ep,ed,eA,i]),en,es,Q,k),eC=n.useMemo(function(){return"tags"!==i||!es||ek.some(function(e){return e[k||"value"]===es})||ek.some(function(e){return e[en.value]===es})?ek:[e$(es)].concat((0,s.A)(ek))},[e$,k,i,ek,es,en]),eO=function e(t){return(0,s.A)(t).sort(function(e,t){return $(e,t,{searchValue:es})}).map(function(t){return Array.isArray(t.options)?(0,c.A)((0,c.A)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})},eM=n.useMemo(function(){return $?eO(eC):eC},[eC,$,es]),eI=n.useMemo(function(){return et(eM,{fieldNames:en,childrenAsData:J})},[eM,en,J]),eR=function(e){var t=em(e);if(ey(t),K&&(t.length!==eA.length||t.some(function(e,t){var r;return(null==(r=eA[t])?void 0:r.value)!==(null==e?void 0:e.value)}))){var r=V?t:t.map(function(e){return e.value}),n=t.map(function(e){return er(eE(e.value))});K(Y?r:r[0],Y?n:n[0])}},ej=n.useState(null),eT=(0,u.A)(ej,2),eN=eT[0],eP=eT[1],eB=n.useState(0),ez=(0,u.A)(eB,2),eL=ez[0],eD=ez[1],eF=void 0!==R?R:"combobox"!==i,eH=n.useCallback(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.source,o=void 0===n?"keyboard":n;eD(t),p&&"combobox"===i&&null!==e&&"keyboard"===o&&eP(String(e))},[p,i]),eU=function(e,t,r){var n=function(){var t,r=eE(e);return[V?{label:null==r?void 0:r[en.label],value:e,key:null!=(t=null==r?void 0:r.key)?t:e}:e,er(r)]};if(t&&x){var i=n(),o=(0,u.A)(i,2);x(o[0],o[1])}else if(!t&&A&&"clear"!==r){var a=n(),s=(0,u.A)(a,2);A(s[0],s[1])}},eq=ta(function(e,t){var r,n=!Y||t.selected;eR(r=n?Y?[].concat((0,s.A)(eA),[e]):[e]:eA.filter(function(t){return t.value!==e})),eU(e,n),"combobox"===i?eP(""):(!el||w)&&(eu(""),eP(""))}),eW=function(e,t){eR(e);var r=t.type,n=t.values;("remove"===r||"clear"===r)&&n.forEach(function(e){eU(e.value,!1,r)})},eV=function(e,t){if(eu(e),eP(null),"submit"===t.source){var r=(e||"").trim();r&&(eR(Array.from(new Set([].concat((0,s.A)(eS),[r])))),eU(r,!0),eu(""));return}"blur"!==t.source&&("combobox"===i&&eR(e),null==v||v(e))},eK=function(e){var t=e;"tags"!==i&&(t=e.map(function(e){var t=eh.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var r=Array.from(new Set([].concat((0,s.A)(eS),(0,s.A)(t))));eR(r),r.forEach(function(e){eU(e,!0)})},eG=n.useMemo(function(){var e=!1!==B&&!1!==_;return(0,c.A)((0,c.A)({},ef),{},{flattenOptions:eI,onActiveValue:eH,defaultActiveFirstOption:eF,onSelect:eq,menuItemSelectedIcon:T,rawValues:eS,fieldNames:en,virtual:e,direction:z,listHeight:D,listItemHeight:H,childrenAsData:J,maxCount:G,optionRender:M})},[G,ef,eI,eH,eF,eq,T,eS,en,B,_,z,D,H,J,M]);return n.createElement(ei.Provider,{value:eG},n.createElement(ec,(0,a.A)({},X,{id:Z,prefixCls:d,ref:t,omitDomProps:tl,mode:i,displayValues:e_,onDisplayValuesChange:eW,direction:z,searchValue:es,onSearch:eV,autoClearSearchValue:w,onSearchSplit:eK,dropdownMatchSelectWidth:_,OptionList:e1,emptyOptions:!eI.length,activeValue:eN,activeDescendantId:"".concat(Z,"_list_").concat(eL)})))});tu.Option=eh,tu.OptGroup=ef;let tf=tu;var td=r(47201),th=r(18697),tp=r(37007),tm=r(46320),tg=r(65289),tb=r(36416),tv=r(87673),ty=r(75932),tw=r(27147),tx=r(42767),tA=r(75254),tE=r(47495),t_=r(57873);let tS=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}},t$=function(e,t){return e||tS(t)};var tk=r(96619),tC=r(67172),tO=r(72056),tM=r(63930),tI=r(4551),tR=r(34521);let tj=e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},tT=e=>{let{antCls:t,componentCls:r}=e,n=`${r}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},(0,tk.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
141
+ ${i}${s}bottomLeft,
142
+ ${o}${s}bottomLeft
143
+ `]:{animationName:tI.ox},[`
144
+ ${i}${s}topLeft,
145
+ ${o}${s}topLeft,
146
+ ${i}${s}topRight,
147
+ ${o}${s}topRight
148
+ `]:{animationName:tI.nP},[`${a}${s}bottomLeft`]:{animationName:tI.vR},[`
149
+ ${a}${s}topLeft,
150
+ ${a}${s}topRight
151
+ `]:{animationName:tI.YU},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},tj(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},tk.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},tj(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,tI._j)(e,"slide-up"),(0,tI._j)(e,"slide-down"),(0,tR.Mh)(e,"move-up"),(0,tR.Mh)(e,"move-down")]};var tN=r(59296);let tP=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(r).sub(n).equal(),0),a=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:(0,tN.zA)(t),itemLineHeight:(0,tN.zA)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},tB=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},tz=e=>{let{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:n,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,tk.Nk)()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},tL=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,i=`${r}-selection-overflow`,o=e.multipleSelectItemHeight,a=tB(e),s=t?`${r}-${t}`:"",l=tP(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},tz(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,tN.zA)(n)} 0`,lineHeight:(0,tN.zA)(o),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:(0,tN.zA)(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,tN.zA)(o),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item,
152
+ ${r}-prefix + ${r}-selection-wrap
153
+ `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:n},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),[`
154
+ &-input,
155
+ &-mirror
156
+ `]:{height:o,fontFamily:e.fontFamily,lineHeight:(0,tN.zA)(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function tD(e,t){let{componentCls:r}=e,n=t?`${r}-${t}`:"",i={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[`
157
+ &${r}-show-arrow ${r}-selector,
158
+ &${r}-allow-clear ${r}-selector
159
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[tL(e,t),i]}let tF=e=>{let{componentCls:t}=e,r=(0,tM.oX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=(0,tM.oX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tD(e),tD(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},tD(n,"lg")]};function tH(e,t){let{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${r}-${t}`:"";return{[`${r}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},(0,tk.dF)(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:(0,tN.zA)(o)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
160
+ ${r}-selection-item,
161
+ ${r}-selection-placeholder
162
+ `]:{display:"block",padding:0,lineHeight:(0,tN.zA)(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[`&:after,${r}-selection-item:empty:after,${r}-selection-placeholder:empty:after`]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
163
+ &${r}-show-arrow ${r}-selection-item,
164
+ &${r}-show-arrow ${r}-selection-search,
165
+ &${r}-show-arrow ${r}-selection-placeholder
166
+ `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,tN.zA)(n)}`,[`${r}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:(0,tN.zA)(o)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,tN.zA)(n)}`,"&:after":{display:"none"}}}}}}}function tU(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[tH(e),tH((0,tM.oX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,tN.zA)(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
167
+ &${t}-show-arrow ${t}-selection-item,
168
+ &${t}-show-arrow ${t}-selection-placeholder
169
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},tH((0,tM.oX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}let tq=e=>{let{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:d,controlItemBgHover:h,colorBgContainer:p,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:v,colorPrimary:y,controlOutline:w}=e,x=2*s,A=2*n,E=Math.min(i-x,i-A),_=Math.min(o-x,o-A),S=Math.min(a-x,a-A);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:h,optionPadding:`${(i-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:_,multipleItemHeightLG:S,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:w,selectAffixPadding:s}},tW=(e,t)=>{let{componentCls:r,antCls:n,controlOutlineWidth:i}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${(0,tN.zA)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,tN.zA)(i)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},tV=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tW(e,t))}),tK=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},tW(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),tV(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),tV(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,tN.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),tG=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${(0,tN.zA)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},tX=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tG(e,t))}),tZ=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tG(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),tX(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),tX(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,tN.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),tY=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,tN.zA)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,tN.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),tJ=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`${(0,tN.zA)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${r}-focused& ${r}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${r}-prefix`]:{color:t.color}}}},tQ=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tJ(e,t))}),t0=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},tJ(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),tQ(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),tQ(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,tN.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),t1=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},tK(e)),tZ(e)),tY(e)),t0(e))}),t2=e=>{let{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},t6=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},t3=e=>{let{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:i}=e,o={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},(0,tk.dF)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},t2(e)),t6(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},tk.L9),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},tk.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},(0,tk.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":o,"&:hover":o}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},t5=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},t3(e),tU(e),tF(e),tT(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,tC.G)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},t4=(0,tO.OF)("Select",(e,{rootPrefixCls:t})=>{let r=(0,tM.oX)(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[t5(r),t1(r)]},tq,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var t8=r(85387),t9=r(42254),t7=r(32416),re=r(3762),rt=r(60004),rr=r(1836);function rn({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:d}){let h=null!=t?t:n.createElement(t9.A,null),p=t=>null!==e||s||f?n.createElement(n.Fragment,null,!1!==c&&t,s&&u):null,m=null;if(void 0!==e)m=p(e);else if(o)m=p(n.createElement(rt.A,{spin:!0}));else{let e=`${l}-suffix`;m=({open:t,showSearch:r})=>t&&r?p(n.createElement(rr.A,{className:e})):p(n.createElement(re.A,{className:e}))}let g=null;g=void 0!==r?r:a?n.createElement(t8.A,null):null;let b=null;return{clearIcon:h,suffixIcon:m,itemIcon:g,removeIcon:b=void 0!==i?i:n.createElement(t7.A,null)}}var ri=r(643);let ro=function(e){return n.useMemo(()=>{if(e)return(...t)=>n.createElement(ri.A,{space:!0},e.apply(void 0,t))},[e])};function ra(e,t){return void 0!==t?t:null!==e}var rs=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let rl="SECRET_COMBOBOX_MODE_DO_NOT_USE",rc=(e,t)=>{var r,i,a,s,l;let c,{prefixCls:u,bordered:f,className:d,rootClassName:h,getPopupContainer:p,popupClassName:m,dropdownClassName:g,listHeight:b=256,placement:v,listItemHeight:y,size:w,disabled:x,notFoundContent:A,status:E,builtinPlacements:_,dropdownMatchSelectWidth:S,popupMatchSelectWidth:$,direction:k,style:C,allowClear:O,variant:M,dropdownStyle:I,transitionName:R,tagRender:j,maxCount:T,prefix:N,dropdownRender:P,popupRender:B,onDropdownVisibleChange:z,onOpenChange:L,styles:D,classNames:F}=e,H=rs(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:U,getPrefixCls:q,renderEmpty:W,direction:V,virtual:K,popupMatchSelectWidth:G,popupOverflow:X}=n.useContext(tg.QO),{showSearch:Z,style:Y,styles:J,className:Q,classNames:ee}=(0,tg.TP)("select"),[,et]=(0,t_.Ay)(),er=null!=y?y:null==et?void 0:et.controlHeight,en=q("select",u),ei=q(),eo=null!=k?k:V,{compactSize:ea,compactItemClassnames:es}=(0,tE.RQ)(en,eo),[el,ec]=(0,tA.A)("select",M,f),eu=(0,ty.A)(en),[ef,ed,eh]=t4(en,eu),ep=n.useMemo(()=>{let{mode:t}=e;if("combobox"!==t)return t===rl?"combobox":t},[e.mode]),eg="multiple"===ep||"tags"===ep,eb=ra(e.suffixIcon,e.showArrow),ev=null!=(r=null!=$?$:S)?r:G,ey=(null==(i=null==D?void 0:D.popup)?void 0:i.root)||(null==(a=J.popup)?void 0:a.root)||I,ew=ro(B||P),ex=L||z,{status:eA,hasFeedback:eE,isFormItemInput:e_,feedbackIcon:eS}=n.useContext(tx.$W),e$=(0,tm.v)(eA,E);c=void 0!==A?A:"combobox"===ep?null:(null==W?void 0:W("Select"))||n.createElement(tb.A,{componentName:"Select"});let{suffixIcon:ek,itemIcon:eC,removeIcon:eO,clearIcon:eM}=rn(Object.assign(Object.assign({},H),{multiple:eg,hasFeedback:eE,feedbackIcon:eS,showSuffixIcon:eb,prefixCls:en,componentName:"Select"})),eI=!0===O?{clearIcon:eM}:O,eR=(0,em.A)(H,["suffixIcon","itemIcon"]),ej=o()((null==(s=null==F?void 0:F.popup)?void 0:s.root)||(null==(l=null==ee?void 0:ee.popup)?void 0:l.root)||m||g,{[`${en}-dropdown-${eo}`]:"rtl"===eo},h,ee.root,null==F?void 0:F.root,eh,eu,ed),eT=(0,tw.A)(e=>{var t;return null!=(t=null!=w?w:ea)?t:e}),eN=n.useContext(tv.A),eP=null!=x?x:eN,eB=o()({[`${en}-lg`]:"large"===eT,[`${en}-sm`]:"small"===eT,[`${en}-rtl`]:"rtl"===eo,[`${en}-${el}`]:ec,[`${en}-in-form-item`]:e_},(0,tm.L)(en,e$,eE),es,Q,d,ee.root,null==F?void 0:F.root,h,eh,eu,ed),ez=n.useMemo(()=>void 0!==v?v:"rtl"===eo?"bottomRight":"bottomLeft",[v,eo]),[eL]=(0,td.YK)("SelectLike",null==ey?void 0:ey.zIndex);return ef(n.createElement(tf,Object.assign({ref:t,virtual:K,showSearch:Z},eR,{style:Object.assign(Object.assign(Object.assign(Object.assign({},J.root),null==D?void 0:D.root),Y),C),dropdownMatchSelectWidth:ev,transitionName:(0,th.b)(ei,"slide-up",R),builtinPlacements:t$(_,X),listHeight:b,listItemHeight:er,mode:ep,prefixCls:en,placement:ez,direction:eo,prefix:N,suffixIcon:ek,menuItemSelectedIcon:eC,removeIcon:eO,allowClear:eI,notFoundContent:c,className:eB,getPopupContainer:p||U,dropdownClassName:ej,disabled:eP,dropdownStyle:Object.assign(Object.assign({},ey),{zIndex:eL}),maxCount:eg?T:void 0,tagRender:eg?j:void 0,dropdownRender:ew,onDropdownVisibleChange:ex})))},ru=n.forwardRef(rc),rf=(0,tp.A)(ru,"dropdownAlign");ru.SECRET_COMBOBOX_MODE_DO_NOT_USE=rl,ru.Option=eh,ru.OptGroup=ef,ru._InternalPanelDoNotUseOrYouWillBeFired=rf;let rd=ru},47495(e,t,r){"use strict";r.d(t,{RQ:()=>p,K6:()=>m,Ay:()=>b});var n=r(22155),i=r(30395),o=r.n(i),a=r(54355),s=r(65289),l=r(27147),c=r(72056);let u=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},f=(0,c.OF)(["Space","Compact"],e=>[u(e)],()=>({}),{resetStyle:!1});var d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let h=n.createContext(null),p=(e,t)=>{let r=n.useContext(h),i=n.useMemo(()=>{if(!r)return"";let{compactDirection:n,isFirstItem:i,isLastItem:a}=r,s="vertical"===n?"-vertical-":"-";return o()(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:"rtl"===t})},[e,t,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:i}},m=e=>{let{children:t}=e;return n.createElement(h.Provider,{value:null},t)},g=e=>{let{children:t}=e,r=d(e,["children"]);return n.createElement(h.Provider,{value:n.useMemo(()=>r,[r])},t)},b=e=>{let{getPrefixCls:t,direction:r}=n.useContext(s.QO),{size:i,direction:c,block:u,prefixCls:p,className:m,rootClassName:b,children:v}=e,y=d(e,["size","direction","block","prefixCls","className","rootClassName","children"]),w=(0,l.A)(e=>null!=i?i:e),x=t("space-compact",p),[A,E]=f(x),_=o()(x,E,{[`${x}-rtl`]:"rtl"===r,[`${x}-block`]:u,[`${x}-vertical`]:"vertical"===c},m,b),S=n.useContext(h),$=(0,a.A)(v),k=n.useMemo(()=>$.map((e,t)=>{let r=(null==e?void 0:e.key)||`${x}-item-${t}`;return n.createElement(g,{key:r,compactSize:w,compactDirection:c,isFirstItem:0===t&&(!S||(null==S?void 0:S.isFirstItem)),isLastItem:t===$.length-1&&(!S||(null==S?void 0:S.isLastItem))},e)}),[$,S,c,w,x]);return 0===$.length?null:A(n.createElement("div",Object.assign({className:_},y),k))}},3072(e,t,r){"use strict";let n;r.d(t,{A:()=>P});var i=r(22155),o=r(30395),a=r.n(o);function s(e,t,r){var n,i=r||{},o=i.noTrailing,a=void 0!==o&&o,s=i.noLeading,l=void 0!==s&&s,c=i.debounceMode,u=void 0===c?void 0:c,f=!1,d=0;function h(){n&&clearTimeout(n)}function p(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=this,c=Date.now()-d;function p(){d=Date.now(),t.apply(s,i)}function m(){n=void 0}!f&&(l||!u||n||p(),h(),void 0===u&&c>e?l?(d=Date.now(),a||(n=setTimeout(u?m:p,e))):p():!0!==a&&(n=setTimeout(u?m:p,void 0===u?e-c:e)))}return p.cancel=function(e){var t=(e||{}).upcomingOnly,r=void 0!==t&&t;h(),f=!r},p}function l(e,t,r){var n=(r||{}).atBegin;return s(e,t,{debounceMode:!1!==(void 0!==n&&n)})}var c=r(65289),u=r(21968),f=r(94030);let d=100,h=20,p=40,m=80*Math.PI,g=50,b=e=>{let{dotClassName:t,style:r,hasCircleCls:n}=e;return i.createElement("circle",{className:a()(`${t}-circle`,{[`${t}-circle-bg`]:n}),r:p,cx:g,cy:g,strokeWidth:h,style:r})},v=({percent:e,prefixCls:t})=>{let r=`${t}-dot`,n=`${r}-holder`,o=`${n}-hidden`,[s,l]=i.useState(!1);(0,f.A)(()=>{0!==e&&l(!0)},[0!==e]);let c=Math.max(Math.min(e,100),0);if(!s)return null;let u={strokeDashoffset:`${m/4}`,strokeDasharray:`${m*c/100} ${m*(100-c)/100}`};return i.createElement("span",{className:a()(n,`${r}-progress`,c<=0&&o)},i.createElement("svg",{viewBox:`0 0 ${d} ${d}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},i.createElement(b,{dotClassName:r,hasCircleCls:!0}),i.createElement(b,{dotClassName:r,style:u})))};function y(e){let{prefixCls:t,percent:r=0}=e,n=`${t}-dot`,o=`${n}-holder`,s=`${o}-hidden`;return i.createElement(i.Fragment,null,i.createElement("span",{className:a()(o,r>0&&s)},i.createElement("span",{className:a()(n,`${t}-dot-spin`)},[1,2,3,4].map(e=>i.createElement("i",{className:`${t}-dot-item`,key:e})))),i.createElement(v,{prefixCls:t,percent:r}))}function w(e){var t;let{prefixCls:r,indicator:n,percent:o}=e,s=`${r}-dot`;return n&&i.isValidElement(n)?(0,u.Ob)(n,{className:a()(null==(t=n.props)?void 0:t.className,s),percent:o}):i.createElement(y,{prefixCls:r,percent:o})}var x=r(59296),A=r(96619),E=r(72056),_=r(63930);let S=new x.Mo("antSpinMove",{to:{opacity:1}}),$=new x.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),k=e=>{let{componentCls:t,calc:r}=e;return{[t]:Object.assign(Object.assign({},(0,A.dF)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:r(r(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:r(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:r(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:r(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),height:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:S,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:$,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal(),height:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},C=e=>{let{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:r}},O=(0,E.OF)("Spin",e=>k((0,_.oX)(e,{spinDotDefault:e.colorTextDescription})),C),M=200,I=[[30,.05],[70,.03],[96,.01]];function R(e,t){let[r,n]=i.useState(0),o=i.useRef(null),a="auto"===t;return i.useEffect(()=>(a&&e&&(n(0),o.current=setInterval(()=>{n(e=>{let t=100-e;for(let r=0;r<I.length;r+=1){let[n,i]=I[r];if(e<=n)return e+t*i}return e})},M)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[a,e]),a?r:t}var j=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function T(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}let N=e=>{var t;let{prefixCls:r,spinning:o=!0,delay:s=0,className:u,rootClassName:f,size:d="default",tip:h,wrapperClassName:p,style:m,children:g,fullscreen:b=!1,indicator:v,percent:y}=e,x=j(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:A,direction:E,className:_,style:S,indicator:$}=(0,c.TP)("spin"),k=A("spin",r),[C,M,I]=O(k),[N,P]=i.useState(()=>o&&!T(o,s)),B=R(N,y);i.useEffect(()=>{if(o){let e=l(s,()=>{P(!0)});return e(),()=>{var t;null==(t=null==e?void 0:e.cancel)||t.call(e)}}P(!1)},[s,o]);let z=i.useMemo(()=>void 0!==g&&!b,[g,b]),L=a()(k,_,{[`${k}-sm`]:"small"===d,[`${k}-lg`]:"large"===d,[`${k}-spinning`]:N,[`${k}-show-text`]:!!h,[`${k}-rtl`]:"rtl"===E},u,!b&&f,M,I),D=a()(`${k}-container`,{[`${k}-blur`]:N}),F=null!=(t=null!=v?v:$)?t:n,H=Object.assign(Object.assign({},S),m),U=i.createElement("div",Object.assign({},x,{style:H,className:L,"aria-live":"polite","aria-busy":N}),i.createElement(w,{prefixCls:k,indicator:F,percent:B}),h&&(z||b)?i.createElement("div",{className:`${k}-text`},h):null);return C(z?i.createElement("div",Object.assign({},x,{className:a()(`${k}-nested-loading`,p,M,I)}),N&&i.createElement("div",{key:"loading"},U),i.createElement("div",{className:D,key:"container"},g)):b?i.createElement("div",{className:a()(`${k}-fullscreen`,{[`${k}-fullscreen-show`]:N},f,M,I)},U):U)};N.setDefaultIndicator=e=>{n=e};let P=N},67172(e,t,r){"use strict";function n(e,t,r,n){let{focusElCls:i,focus:o,borderElCls:a}=r,s=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function i(e,t,r){let{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function o(e,t={focus:!0}){let{componentCls:r}=e,{componentCls:a}=t,s=a||r,l=`${s}-compact`;return{[l]:Object.assign(Object.assign({},n(e,l,t,s)),i(s,l,t))}}r.d(t,{G:()=>o})},96619(e,t,r){"use strict";r.d(t,{K8:()=>f,L9:()=>i,Nk:()=>a,Y1:()=>h,av:()=>l,dF:()=>o,jk:()=>u,jz:()=>d,t6:()=>s,vj:()=>c});var n=r(59296);let i={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),a=()=>({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"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=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"}}}),c=(e,t,r,n)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return!1!==n&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},u=(e,t)=>({outline:`${(0,n.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),f=(e,t)=>({"&:focus-visible":u(e,t)}),d=e=>({[`.${e}`]:Object.assign(Object.assign({},a()),{[`.${e} .${e}-icon`]:{display:"block"}})}),h=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},f(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}})},93683(e,t,r){"use strict";r.d(t,{A:()=>n});let n=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
170
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
171
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},49782(e,t,r){"use strict";r.d(t,{b:()=>o});let n=e=>({animationDuration:e,animationFillMode:"both"}),i=e=>({animationDuration:e,animationFillMode:"both"}),o=(e,t,r,o,a=!1)=>{let s=a?"&":"";return{[`
172
+ ${s}${e}-enter,
173
+ ${s}${e}-appear
174
+ `]:Object.assign(Object.assign({},n(o)),{animationPlayState:"paused"}),[`${s}${e}-leave`]:Object.assign(Object.assign({},i(o)),{animationPlayState:"paused"}),[`
175
+ ${s}${e}-enter${e}-enter-active,
176
+ ${s}${e}-appear${e}-appear-active
177
+ `]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}}},34521(e,t,r){"use strict";r.d(t,{Mh:()=>d});var n=r(59296),i=r(49782);let o=new n.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new n.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),s=new n.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new n.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new n.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new n.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),f={"move-up":{inKeyframes:new n.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new n.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:o,outKeyframes:a},"move-left":{inKeyframes:s,outKeyframes:l},"move-right":{inKeyframes:c,outKeyframes:u}},d=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=f[t];return[(0,i.b)(n,o,a,e.motionDurationMid),{[`
178
+ ${n}-enter,
179
+ ${n}-appear
180
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},4551(e,t,r){"use strict";r.d(t,{YU:()=>l,_j:()=>u,nP:()=>s,ox:()=>o,vR:()=>a});var n=r(59296),i=r(49782);let o=new n.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new n.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new n.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new n.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c={"slide-up":{inKeyframes:o,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:new n.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new n.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new n.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new n.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},u=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=c[t];return[(0,i.b)(n,o,a,e.motionDurationMid),{[`
181
+ ${n}-enter,
182
+ ${n}-appear
183
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},64671(e,t,r){"use strict";r.d(t,{aB:()=>d,nF:()=>o});var n=r(59296),i=r(49782);let o=new n.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new n.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),s=new n.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l=new n.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new n.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new n.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),f={zoom:{inKeyframes:o,outKeyframes:a},"zoom-big":{inKeyframes:s,outKeyframes:l},"zoom-big-fast":{inKeyframes:s,outKeyframes:l},"zoom-left":{inKeyframes:new n.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new n.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new n.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new n.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:new n.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new n.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},d=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=f[t];return[(0,i.b)(n,o,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`
184
+ ${n}-enter,
185
+ ${n}-appear
186
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},771(e,t,r){"use strict";r.d(t,{Ay:()=>l,Ke:()=>a,Zs:()=>o});var n=r(59296),i=r(5005);let o=8;function a(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12,i=r?o:n;return{arrowOffsetHorizontal:n,arrowOffsetVertical:i}}function s(e,t){return e?t:{}}function l(e,t,r){let{componentCls:o,boxShadowPopoverArrow:a,arrowOffsetVertical:l,arrowOffsetHorizontal:c}=e,{arrowDistance:u=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,i.j)(e,t,a)),{"&:before":{background:t}})]},s(!!f.top,{[`&-placement-top > ${o}-arrow,&-placement-topLeft > ${o}-arrow,&-placement-topRight > ${o}-arrow`]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,n.zA)(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),s(!!f.bottom,{[`&-placement-bottom > ${o}-arrow,&-placement-bottomLeft > ${o}-arrow,&-placement-bottomRight > ${o}-arrow`]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,n.zA)(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),s(!!f.left,{[`&-placement-left > ${o}-arrow,&-placement-leftTop > ${o}-arrow,&-placement-leftBottom > ${o}-arrow`]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:l},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:l}})),s(!!f.right,{[`&-placement-right > ${o}-arrow,&-placement-rightTop > ${o}-arrow,&-placement-rightBottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:l},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:l}}))}}},5005(e,t,r){"use strict";r.d(t,{j:()=>o,n:()=>i});var n=r(59296);function i(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,o=0,a=i,s=n/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*r,u=n*(Math.sqrt(2)-1)+1/Math.sqrt(2)*r,f=2*i-c,d=u,h=2*i-s,p=l,m=2*i-0,g=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),v=n*(Math.sqrt(2)-1);return{arrowShadowWidth:b,arrowPath:`path('M ${o} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${d} L ${h} ${p} A ${n} ${n} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*i-v}px 100%, ${v}px 100%)`}}let o=(e,t,r)=>{let{sizePopupArrow:i,arrowPolygon:o,arrowPath:a,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:i,height:i,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:i,height:c(i).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,n.zA)(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}}},18796(e,t,r){"use strict";r.d(t,{A:()=>T});var n=r(22155),i=r(60004),o=r(30395),a=r.n(o),s=r(76878),l=r(19841),c=r(70486),u=r(56284),f=r(3604),d=r(19187),h=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],p=n.forwardRef(function(e,t){var r,i=e.prefixCls,o=void 0===i?"rc-switch":i,p=e.className,m=e.checked,g=e.defaultChecked,b=e.disabled,v=e.loadingIcon,y=e.checkedChildren,w=e.unCheckedChildren,x=e.onClick,A=e.onChange,E=e.onKeyDown,_=(0,u.A)(e,h),S=(0,f.A)(!1,{value:m,defaultValue:g}),$=(0,c.A)(S,2),k=$[0],C=$[1];function O(e,t){var r=k;return b||(C(r=e),null==A||A(r,t)),r}function M(e){e.which===d.A.LEFT?O(!1,e):e.which===d.A.RIGHT&&O(!0,e),null==E||E(e)}function I(e){var t=O(!k,e);null==x||x(t,e)}var R=a()(o,p,(r={},(0,l.A)(r,"".concat(o,"-checked"),k),(0,l.A)(r,"".concat(o,"-disabled"),b),r));return n.createElement("button",(0,s.A)({},_,{type:"button",role:"switch","aria-checked":k,disabled:b,className:R,ref:t,onKeyDown:M,onClick:I}),v,n.createElement("span",{className:"".concat(o,"-inner")},n.createElement("span",{className:"".concat(o,"-inner-checked")},y),n.createElement("span",{className:"".concat(o,"-inner-unchecked")},w)))});p.displayName="Switch";let m=p;var g=r(30565),b=r(65289),v=r(87673),y=r(27147),w=r(59296),x=r(98494),A=r(96619),E=r(72056),_=r(63930);let S=e=>{let{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=(0,w.zA)(l(s).add(l(n).mul(2)).equal()),f=(0,w.zA)(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:r,lineHeight:(0,w.zA)(r),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${(0,w.zA)(l(s).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},$=e=>{let{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},k=e=>{let{componentCls:t,trackPadding:r,handleBg:n,handleShadow:i,handleSize:o,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${(0,w.zA)(a(o).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},C=e=>{let{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:s}=e,l=`${t}-inner`,c=(0,w.zA)(s(a).add(s(n).mul(2)).equal()),u=(0,w.zA)(s(o).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:r},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}},O=e=>{let{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.dF)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:(0,w.zA)(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,A.K8)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},M=e=>{let{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:i}=e,o=t*r,a=n/2,s=2,l=o-4,c=a-4;return{trackHeight:o,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new x.Y("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+2*s,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+2*s}},I=(0,E.OF)("Switch",e=>{let t=(0,_.oX)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[O(t),C(t),k(t),$(t),S(t)]},M);var R=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let j=n.forwardRef((e,t)=>{let{prefixCls:r,size:o,disabled:s,loading:l,className:c,rootClassName:u,style:d,checked:h,value:p,defaultChecked:w,defaultValue:x,onChange:A}=e,E=R(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[_,S]=(0,f.A)(!1,{value:null!=h?h:p,defaultValue:null!=w?w:x}),{getPrefixCls:$,direction:k,switch:C}=n.useContext(b.QO),O=n.useContext(v.A),M=(null!=s?s:O)||l,j=$("switch",r),T=n.createElement("div",{className:`${j}-handle`},l&&n.createElement(i.A,{className:`${j}-loading-icon`})),[N,P,B]=I(j),z=(0,y.A)(o),L=a()(null==C?void 0:C.className,{[`${j}-small`]:"small"===z,[`${j}-loading`]:l,[`${j}-rtl`]:"rtl"===k},c,u,P,B),D=Object.assign(Object.assign({},null==C?void 0:C.style),d),F=(...e)=>{S(e[0]),null==A||A.apply(void 0,e)};return N(n.createElement(g.A,{component:"Switch",disabled:M},n.createElement(m,Object.assign({},E,{checked:_,onChange:F,prefixCls:j,className:L,style:D,disabled:M,ref:t,loadingIcon:T}))))});j.__ANT_SWITCH=!0;let T=j},24940(e,t,r){"use strict";r.d(t,{sb:()=>o,vG:()=>a});var n=r(22155),i=r(6801);let o={token:i.A,override:{override:i.A},hashed:!0},a=n.createContext(o)},97684(e,t,r){"use strict";r.d(t,{s:()=>n});let n=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},92007(e,t,r){"use strict";r.d(t,{A:()=>y});var n=r(59296),i=r(57660),o=r(6801),a=r(98494);function s(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:i,colorError:o,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:f}=e,d=t(c),h=t(n),p=t(i),m=t(o),g=t(l),b=r(u,f),v=t(e.colorLink||e.colorInfo),y=new a.Y(m[1]).mix(new a.Y(m[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[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:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new a.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}let l=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=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:r,borderRadiusLG:t,borderRadiusOuter:i}};function c(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+2*t).toFixed(1)}s`,motionDurationSlow:`${(r+3*t).toFixed(1)}s`,lineWidthBold:i+1},l(n))}let u=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var f=r(19111);let d=e=>{let t=(0,f.A)(e),r=t.map(e=>e.size),n=t.map(e=>e.lineHeight),i=r[1],o=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function h(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}let p=(e,t)=>new a.Y(e).setA(t).toRgbString(),m=(e,t)=>new a.Y(e).darken(t).toHexString(),g=e=>{let t=(0,i.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},b=(e,t)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:p(n,.88),colorTextSecondary:p(n,.65),colorTextTertiary:p(n,.45),colorTextQuaternary:p(n,.25),colorFill:p(n,.15),colorFillSecondary:p(n,.06),colorFillTertiary:p(n,.04),colorFillQuaternary:p(n,.02),colorBgSolid:p(n,1),colorBgSolidHover:p(n,.75),colorBgSolidActive:p(n,.95),colorBgLayout:m(r,4),colorBgContainer:m(r,0),colorBgElevated:m(r,0),colorBgSpotlight:p(n,.85),colorBgBlur:"transparent",colorBorder:m(r,15),colorBorderSecondary:m(r,6)}};function v(e){i.uy.pink=i.uy.magenta,i.UA.pink=i.UA.magenta;let t=Object.keys(o.r).map(t=>{let r=e[t]===i.uy[t]?i.UA[t]:(0,i.cM)(e[t]);return Array.from({length:10},()=>1).reduce((e,n,i)=>(e[`${t}-${i+1}`]=r[i],e[`${t}${i+1}`]=r[i],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),s(e,{generateColorPalettes:g,generateNeutralColorPalettes:b})),d(e.fontSize)),h(e)),u(e)),c(e))}let y=(0,n.an)(v)},6801(e,t,r){"use strict";r.d(t,{A:()=>i,r:()=>n});let n={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"},i=Object.assign(Object.assign({},n),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
187
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
188
+ '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})},19111(e,t,r){"use strict";function n(e){return(e+8)/e}function i(e){let t=Array.from({length:10}).map((t,r)=>{let n=e*Math.pow(Math.E,(r-1)/5);return 2*Math.floor((r>1?Math.floor(n):Math.ceil(n))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:n(e)}))}r.d(t,{A:()=>i,k:()=>n})},57873(e,t,r){"use strict";r.d(t,{Ay:()=>v,Is:()=>p});var n=r(22155),i=r(59296);let o="5.29.3";var a=r(24940),s=r(92007),l=r(6801),c=r(98494),u=r(69827),f=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function d(e){let{override:t}=e,r=f(e,["override"]),n=Object.assign({},t);Object.keys(l.A).forEach(e=>{delete n[e]});let i=Object.assign(Object.assign({},r),n),o=480,a=576,s=768,d=992,h=1200,p=1600;if(!1===i.motion){let e="0s";i.motionDurationFast=e,i.motionDurationMid=e,i.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,u.A)(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:(0,u.A)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,u.A)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:3*i.lineWidth,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,u.A)(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:`
189
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
190
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
191
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
192
+ `,boxShadowSecondary:`
193
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
194
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
195
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
196
+ `,boxShadowTertiary:`
197
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
198
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
199
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
200
+ `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:h-1,screenXL:h,screenXLMin:h,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
201
+ 0 1px 2px -2px ${new c.Y("rgba(0, 0, 0, 0.16)").toRgbString()},
202
+ 0 3px 6px 0 ${new c.Y("rgba(0, 0, 0, 0.12)").toRgbString()},
203
+ 0 5px 12px 4px ${new c.Y("rgba(0, 0, 0, 0.09)").toRgbString()}
204
+ `,boxShadowDrawerRight:`
205
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
206
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
207
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
208
+ `,boxShadowDrawerLeft:`
209
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
210
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
211
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
212
+ `,boxShadowDrawerUp:`
213
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
214
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
215
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
216
+ `,boxShadowDrawerDown:`
217
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
218
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
219
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
220
+ `,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 h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let p={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},m={motionBase:!0,motionUnit:!0},g={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},b=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:i}=t,o=h(t,["override"]),a=Object.assign(Object.assign({},n),{override:i});return a=d(a),o&&Object.entries(o).forEach(([e,t])=>{let{theme:r}=t,n=h(t,["theme"]),i=n;r&&(i=b(Object.assign(Object.assign({},a),n),{override:n},r)),a[e]=i}),a};function v(){let{token:e,hashed:t,theme:r,override:c,cssVar:u}=n.useContext(a.vG),f=`${o}-${t||""}`,h=r||s.A,[v,y,w]=(0,i.hV)(h,[l.A,e],{salt:f,override:c,getComputedToken:b,formatToken:d,cssVar:u&&{prefix:u.prefix,key:u.key,unitless:p,ignore:m,preserve:g}});return[h,w,t?y:"",v,u]}},72056(e,t,r){"use strict";r.d(t,{OF:()=>l,Or:()=>c,bf:()=>u});var n=r(22155),i=r(63930),o=r(65289),a=r(96619),s=r(57873);let{genStyleHooks:l,genComponentStyleHook:c,genSubStyleComponent:u}=(0,i.L_)({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,n.useContext)(o.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,i]=(0,s.Ay)();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i}},useCSP:()=>{let{csp:e}=(0,n.useContext)(o.QO);return null!=e?e:{}},getResetStyles:(e,t)=>{var r;let n=(0,a.av)(e);return[n,{"&":n},(0,a.jz)(null!=(r=null==t?void 0:t.prefix.iconPrefixCls)?r:o.pM)]},getCommonStyle:a.vj,getCompUnitless:()=>s.Is})},69827(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(98494);function i(e){return e>=0&&e<=255}let o=function(e,t){let{r:r,g:o,b:a,a:s}=new n.Y(e).toRgb();if(s<1)return e;let{r:l,g:c,b:u}=new n.Y(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e),f=Math.round((a-u*(1-e))/e);if(i(t)&&i(s)&&i(f))return new n.Y({r:t,g:s,b:f,a:Math.round(100*e)/100}).toRgbString()}return new n.Y({r:r,g:o,b:a,a:1}).toRgbString()}},52646(e,t,r){"use strict";r.d(t,{A:()=>z});var n=r(22155),i=r(30395),o=r.n(i),a=r(71303),s=r(3604),l=r(643),c=r(47201),u=r(18697),f=r(55831),d=r(21968),h=r(53575),p=r(80690),m=r(65289),g=r(57873),b=r(59296),v=r(96619),y=r(64671),w=r(771),x=r(5005),A=r(97684);function E(e,t){return A.s.reduce((r,n)=>{let i=e[`${n}1`],o=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}var _=r(63930),S=r(72056);let $=e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:h}=e,p=t(a).add(h).add(d).equal(),m=t(a).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.dF)(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%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${r}-inner`]:{minWidth:m,minHeight:l,padding:`${(0,b.zA)(e.calc(u).div(2).equal())} ${(0,b.zA)(f)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},"&-placement-topLeft,&-placement-topRight,&-placement-bottomLeft,&-placement-bottomRight":{minWidth:p},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${r}-inner`]:{borderRadius:e.min(a,w.Zs)}},[`${r}-content`]:{position:"relative"}}),E(e,(e,{darkColor:t})=>({[`&${r}-${e}`]:{[`${r}-inner`]:{backgroundColor:t},[`${r}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:"rtl"}})},(0,w.Ay)(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},k=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,w.Ke)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,x.n)((0,_.oX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),C=(e,t=!0)=>(0,S.OF)("Tooltip",e=>{let{borderRadius:t,colorTextLightSolid:r,colorBgSpotlight:n}=e;return[$((0,_.oX)(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:t,tooltipBg:n})),(0,y.aB)(e,"zoom-big-fast")]},k,{resetStyle:!1,injectStyle:t})(e);var O=r(78944);let M=A.s.map(e=>`${e}-inverse`);function I(e,t=!0){return t?[].concat((0,O.A)(M),(0,O.A)(A.s)).includes(e):A.s.includes(e)}r(13480);var R=r(20705);let j=e=>e instanceof R.kf?e:new R.kf(e);function T(e,t){let r=I(t),n=o()({[`${e}-${t}`]:t&&r}),i={},a={},s=j(t).toRgb(),l=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return t&&!r&&(i.background=t,i["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:a}}let N=e=>{let{prefixCls:t,className:r,placement:i="top",title:s,color:l,overlayInnerStyle:c}=e,{getPrefixCls:u}=n.useContext(m.QO),f=u("tooltip",t),[d,h,p]=C(f),g=T(f,l),b=g.arrowStyle,v=Object.assign(Object.assign({},c),g.overlayStyle),y=o()(h,p,f,`${f}-pure`,`${f}-placement-${i}`,r,g.className);return d(n.createElement("div",{className:y,style:b},n.createElement("div",{className:`${f}-arrow`}),n.createElement(a.z,Object.assign({},e,{className:h,prefixCls:f,overlayInnerStyle:v}),s)))};var P=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let B=n.forwardRef((e,t)=>{var r,i;let{prefixCls:b,openClassName:v,getTooltipContainer:y,color:w,overlayInnerStyle:x,children:A,afterOpenChange:E,afterVisibleChange:_,destroyTooltipOnHide:S,destroyOnHidden:$,arrow:k=!0,title:O,overlay:M,builtinPlacements:I,arrowPointAtCenter:R=!1,autoAdjustOverflow:j=!0,motion:N,getPopupContainer:B,placement:z="top",mouseEnterDelay:L=.1,mouseLeaveDelay:D=.1,overlayStyle:F,rootClassName:H,overlayClassName:U,styles:q,classNames:W}=e,V=P(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"]),K=!!k,[,G]=(0,g.Ay)(),{getPopupContainer:X,getPrefixCls:Z,direction:Y,className:J,style:Q,classNames:ee,styles:et}=(0,m.TP)("tooltip"),er=(0,h.rJ)("Tooltip"),en=n.useRef(null),ei=()=>{var e;null==(e=en.current)||e.forceAlign()};n.useImperativeHandle(t,()=>{var e,t;return{forceAlign:ei,forcePopupAlign:()=>{er.deprecated(!1,"forcePopupAlign","forceAlign"),ei()},nativeElement:null==(e=en.current)?void 0:e.nativeElement,popupElement:null==(t=en.current)?void 0:t.popupElement}});let[eo,ea]=(0,s.A)(!1,{value:null!=(r=e.open)?r:e.visible,defaultValue:null!=(i=e.defaultOpen)?i:e.defaultVisible}),es=!O&&!M&&0!==O,el=t=>{var r,n;ea(!es&&t),es||(null==(r=e.onOpenChange)||r.call(e,t),null==(n=e.onVisibleChange)||n.call(e,t))},ec=n.useMemo(()=>{var e,t;let r=R;return"object"==typeof k&&(r=null!=(t=null!=(e=k.pointAtCenter)?e:k.arrowPointAtCenter)?t:R),I||(0,f.A)({arrowPointAtCenter:r,autoAdjustOverflow:j,arrowWidth:K?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0})},[R,k,I,G]),eu=n.useMemo(()=>0===O?O:M||O||"",[M,O]),ef=n.createElement(l.A,{space:!0},"function"==typeof eu?eu():eu),ed=Z("tooltip",b),eh=Z(),ep=e["data-popover-inject"],em=eo;"open"in e||"visible"in e||!es||(em=!1);let eg=n.isValidElement(A)&&!(0,d.zv)(A)?A:n.createElement("span",null,A),eb=eg.props,ev=eb.className&&"string"!=typeof eb.className?eb.className:o()(eb.className,v||`${ed}-open`),[ey,ew,ex]=C(ed,!ep),eA=T(ed,w),eE=eA.arrowStyle,e_=o()(U,{[`${ed}-rtl`]:"rtl"===Y},eA.className,H,ew,ex,J,ee.root,null==W?void 0:W.root),eS=o()(ee.body,null==W?void 0:W.body),[e$,ek]=(0,c.YK)("Tooltip",V.zIndex),eC=n.createElement(a.A,Object.assign({},V,{zIndex:e$,showArrow:K,placement:z,mouseEnterDelay:L,mouseLeaveDelay:D,prefixCls:ed,classNames:{root:e_,body:eS},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eE),et.root),Q),F),null==q?void 0:q.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},et.body),x),null==q?void 0:q.body),eA.overlayStyle)},getTooltipContainer:B||y||X,ref:en,builtinPlacements:ec,overlay:ef,visible:em,onVisibleChange:el,afterVisibleChange:null!=E?E:_,arrowContent:n.createElement("span",{className:`${ed}-arrow-content`}),motion:{motionName:(0,u.b)(eh,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=$?$:!!S}),em?(0,d.Ob)(eg,{className:ev}):eg);return ey(n.createElement(p.A.Provider,{value:ek},eC))});B._InternalPanelDoNotUseOrYouWillBeFired=N;let z=B},63839(e,t,r){"use strict";r.d(t,{A:()=>eL});var n=r(22155),i=r(78944),o=r(76878);let a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var s=r(52372),l=function(e,t){return n.createElement(s.A,(0,o.A)({},e,{ref:t,icon:a}))};let c=n.forwardRef(l);var u=r(30395),f=r.n(u),d=r(44965),h=r(54355),p=r(94030),m=r(3604),g=r(46604),b=r(75252),v=r(8929),y=function(e){if((0,v.A)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],r=window.document.documentElement;return t.some(function(e){return e in r.style})}return!1},w=function(e,t){if(!y(e))return!1;var r=document.createElement("div"),n=r.style[e];return r.style[e]=t,r.style[e]!==n};function x(e,t){return Array.isArray(e)||void 0===t?y(e):w(e,t)}var A=r(65289),E=r(92733),_=r(52646);let S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var $=function(e,t){return n.createElement(s.A,(0,o.A)({},e,{ref:t,icon:S}))};let k=n.forwardRef($);var C=r(19187),O=r(21968),M=r(21295),I=r(96619),R=r(72056),j=r(57660);let T=(e,t,r,n)=>{let{titleMarginBottom:i,fontWeightStrong:o}=n;return{marginBottom:i,color:r,fontWeight:o,fontSize:e,lineHeight:t}},N=e=>{let t={};return[1,2,3,4,5].forEach(r=>{t[`
221
+ h${r}&,
222
+ div&-h${r},
223
+ div&-h${r} > textarea,
224
+ h${r}
225
+ `]=T(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),t},P=e=>{let{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,I.Y1)(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},B=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:j.bK["2"]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),z=e=>{let{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},L=e=>({[`${e.componentCls}-copy-success`]:{[`
226
+ &,
227
+ &:hover,
228
+ &:focus`]:{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),D=()=>({[`
229
+ a&-ellipsis,
230
+ span&-ellipsis
231
+ `]:{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),F=e=>{let{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
232
+ div&,
233
+ p
234
+ `]:{marginBottom:"1em"}},N(e)),{[`
235
+ & + h1${t},
236
+ & + h2${t},
237
+ & + h3${t},
238
+ & + h4${t},
239
+ & + h5${t}
240
+ `]:{marginTop:r},[`
241
+ div,
242
+ ul,
243
+ li,
244
+ p,
245
+ h1,
246
+ h2,
247
+ h3,
248
+ h4,
249
+ h5`]:{[`
250
+ + h1,
251
+ + h2,
252
+ + h3,
253
+ + h4,
254
+ + h5
255
+ `]:{marginTop:r}}}),B(e)),P(e)),{[`
256
+ ${t}-expand,
257
+ ${t}-collapse,
258
+ ${t}-edit,
259
+ ${t}-copy
260
+ `]:Object.assign(Object.assign({},(0,I.Y1)(e)),{marginInlineStart:e.marginXXS})}),z(e)),L(e)),D()),{"&-rtl":{direction:"rtl"}})}},H=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),U=(0,R.OF)("Typography",F,H),q=e=>{let{prefixCls:t,"aria-label":r,className:i,style:o,direction:a,maxLength:s,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:h,component:p,enterIcon:m=n.createElement(k,null)}=e,g=n.useRef(null),b=n.useRef(!1),v=n.useRef(null),[y,w]=n.useState(c);n.useEffect(()=>{w(c)},[c]),n.useEffect(()=>{var e;if(null==(e=g.current)?void 0:e.resizableTextArea){let{textArea:e}=g.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let x=({target:e})=>{w(e.value.replace(/[\n\r]/g,""))},A=()=>{b.current=!0},E=()=>{b.current=!1},_=({keyCode:e})=>{b.current||(v.current=e)},S=()=>{u(y.trim())},$=({keyCode:e,ctrlKey:t,altKey:r,metaKey:n,shiftKey:i})=>{v.current!==e||b.current||t||r||n||i||(e===C.A.ENTER?(S(),null==h||h()):e===C.A.ESC&&d())},I=()=>{S()},[R,j,T]=U(t),N=f()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===a,[`${t}-${p}`]:!!p},i,j,T);return R(n.createElement("div",{className:N,style:o},n.createElement(M.A,{ref:g,maxLength:s,value:y,onChange:x,onKeyDown:_,onKeyUp:$,onCompositionStart:A,onCompositionEnd:E,onBlur:I,"aria-label":r,rows:1,autoSize:l}),null!==m?(0,O.Ob)(m,{className:`${t}-edit-content-confirm`}):null))};var W=r(59585),V=r.n(W),K=r(44649);let G=(e,t=!1)=>t&&null==e?[]:Array.isArray(e)?e:[e];var X=function(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):i(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})};let Z=({copyConfig:e,children:t})=>{let[r,i]=n.useState(!1),[o,a]=n.useState(!1),s=n.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};e.format&&(c.format=e.format),n.useEffect(()=>l,[]);let u=(0,K.A)(r=>X(void 0,void 0,void 0,function*(){var n;null==r||r.preventDefault(),null==r||r.stopPropagation(),a(!0);try{let o="function"==typeof e.text?yield e.text():e.text;V()(o||G(t,!0).join("")||"",c),a(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),null==(n=e.onCopy)||n.call(e,r)}catch(e){throw a(!1),e}}));return{copied:r,copyLoading:o,onClick:u}};function Y(e,t){return n.useMemo(()=>{let r=!!e;return[r,Object.assign(Object.assign({},t),r&&"object"==typeof e?e:null)]},[e])}let J=e=>{let t=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{t.current=e}),t.current},Q=(e,t,r)=>(0,n.useMemo)(()=>!0===e?{title:null!=t?t:r}:(0,n.isValidElement)(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:r},e):{title:e},[e,t,r]);var ee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let et=n.forwardRef((e,t)=>{let{prefixCls:r,component:i="article",className:o,rootClassName:a,setContentRef:s,children:l,direction:c,style:u}=e,d=ee(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:h,direction:p,className:m,style:g}=(0,A.TP)("typography"),v=null!=c?c:p,y=s?(0,b.K4)(t,s):t,w=h("typography",r),[x,E,_]=U(w),S=f()(w,m,{[`${w}-rtl`]:"rtl"===v},o,a,E,_),$=Object.assign(Object.assign({},g),u);return x(n.createElement(i,Object.assign({className:S,style:$,ref:y},d),l))});var er=r(85387);let en={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var ei=function(e,t){return n.createElement(s.A,(0,o.A)({},e,{ref:t,icon:en}))};let eo=n.forwardRef(ei);var ea=r(60004);function es(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function el(e,t,r){return!0===e||void 0===e?t:e||r&&t}function ec(e){let t=document.createElement("em");e.appendChild(t);let r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}let eu=e=>["string","number"].includes(typeof e),ef=({prefixCls:e,copied:t,locale:r,iconOnly:i,tooltips:o,icon:a,tabIndex:s,onCopy:l,loading:c})=>{let u=es(o),d=es(a),{copied:h,copy:p}=null!=r?r:{},m=t?h:p,g=el(u[+!!t],m),b="string"==typeof g?g:m;return n.createElement(_.A,{title:g},n.createElement("button",{type:"button",className:f()(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:i}),onClick:l,"aria-label":b,tabIndex:s},t?el(d[1],n.createElement(er.A,null),!0):el(d[0],c?n.createElement(ea.A,null):n.createElement(eo,null),!0)))},ed=n.forwardRef(({style:e,children:t},r)=>{let i=n.useRef(null);return n.useImperativeHandle(r,()=>({isExceed:()=>{let e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight})),n.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),eh=e=>e.reduce((e,t)=>e+(eu(t)?String(t).length:1),0);function ep(e,t){let r=0,n=[];for(let i=0;i<e.length;i+=1){if(r===t)return n;let o=e[i],a=r+(eu(o)?String(o).length:1);if(a>t){let e=t-r;return n.push(String(o).slice(0,e)),n}n.push(o),r=a}return e}let em=0,eg=1,eb=2,ev=3,ey=4,ew={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ex(e){let{enableMeasure:t,width:r,text:o,children:a,rows:s,expanded:l,miscDeps:c,onEllipsis:u}=e,f=n.useMemo(()=>(0,h.A)(o),[o]),d=n.useMemo(()=>eh(f),[o]),m=n.useMemo(()=>a(f,!1),[o]),[g,b]=n.useState(null),v=n.useRef(null),y=n.useRef(null),w=n.useRef(null),x=n.useRef(null),A=n.useRef(null),[E,_]=n.useState(!1),[S,$]=n.useState(em),[k,C]=n.useState(0),[O,M]=n.useState(null);(0,p.A)(()=>{t&&r&&d?$(eg):$(em)},[r,o,s,t,f]),(0,p.A)(()=>{var e,t,r,n;if(S===eg)$(eb),M(y.current&&getComputedStyle(y.current).whiteSpace);else if(S===eb){let i=!!(null==(e=w.current)?void 0:e.isExceed());$(i?ev:ey),b(i?[0,d]:null),_(i),C(Math.max((null==(t=w.current)?void 0:t.getHeight())||0,(1===s?0:(null==(r=x.current)?void 0:r.getHeight())||0)+((null==(n=A.current)?void 0:n.getHeight())||0))+1),u(i)}},[S]);let I=g?Math.ceil((g[0]+g[1])/2):0;(0,p.A)(()=>{var e;let[t,r]=g||[0,0];if(t!==r){let n=((null==(e=v.current)?void 0:e.getHeight())||0)>k,i=I;r-t==1&&(i=n?t:r),b(n?[t,i]:[i,r])}},[g,I]);let R=n.useMemo(()=>{if(!t)return a(f,!1);if(S!==ev||!g||g[0]!==g[1]){let e=a(f,!1);return[ey,em].includes(S)?e:n.createElement("span",{style:Object.assign(Object.assign({},ew),{WebkitLineClamp:s})},e)}return a(l?f:ep(f,g[0]),E)},[l,S,g,f].concat((0,i.A)(c))),j={width:r,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return n.createElement(n.Fragment,null,R,S===eb&&n.createElement(n.Fragment,null,n.createElement(ed,{style:Object.assign(Object.assign(Object.assign({},j),ew),{WebkitLineClamp:s}),ref:w},m),n.createElement(ed,{style:Object.assign(Object.assign(Object.assign({},j),ew),{WebkitLineClamp:s-1}),ref:x},m),n.createElement(ed,{style:Object.assign(Object.assign(Object.assign({},j),ew),{WebkitLineClamp:1}),ref:A},a([],!0))),S===ev&&g&&g[0]!==g[1]&&n.createElement(ed,{style:Object.assign(Object.assign({},j),{top:400}),ref:v},a(ep(f,I),!0)),S===eg&&n.createElement("span",{style:{whiteSpace:"inherit"},ref:y}))}let eA=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:i})=>(null==i?void 0:i.title)&&e?n.createElement(_.A,Object.assign({open:!!t&&void 0},i),r):r;var eE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function e_({mark:e,code:t,underline:r,delete:i,strong:o,keyboard:a,italic:s},l){let c=l;function u(e,t){t&&(c=n.createElement(e,{},c))}return u("strong",o),u("u",r),u("del",i),u("code",t),u("mark",e),u("kbd",a),u("i",s),c}let eS="...",e$=["delete","mark","code","underline","strong","keyboard","italic"],ek=n.forwardRef((e,t)=>{var r;let{prefixCls:o,className:a,style:s,type:l,disabled:u,children:v,ellipsis:y,editable:w,copyable:S,component:$,title:k}=e,C=eE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:O,direction:M}=n.useContext(A.QO),[I]=(0,E.A)("Text"),R=n.useRef(null),j=n.useRef(null),T=O("typography",o),N=(0,g.A)(C,e$),[P,B]=Y(w),[z,L]=(0,m.A)(!1,{value:B.editing}),{triggerType:D=["icon"]}=B,F=e=>{var t;e&&(null==(t=B.onStart)||t.call(B)),L(e)},H=J(z);(0,p.A)(()=>{var e;!z&&H&&(null==(e=j.current)||e.focus())},[z]);let U=e=>{null==e||e.preventDefault(),F(!0)},W=e=>{var t;null==(t=B.onChange)||t.call(B,e),F(!1)},V=()=>{var e;null==(e=B.onCancel)||e.call(B),F(!1)},[K,G]=Y(S),{copied:X,copyLoading:ee,onClick:er}=Z({copyConfig:G,children:v}),[en,ei]=n.useState(!1),[eo,ea]=n.useState(!1),[es,el]=n.useState(!1),[ed,eh]=n.useState(!1),[ep,em]=n.useState(!0),[eg,eb]=Y(y,{expandable:!1,symbol:e=>e?null==I?void 0:I.collapse:null==I?void 0:I.expand}),[ev,ey]=(0,m.A)(eb.defaultExpanded||!1,{value:eb.expanded}),ew=eg&&(!ev||"collapsible"===eb.expandable),{rows:ek=1}=eb,eC=n.useMemo(()=>ew&&(void 0!==eb.suffix||eb.onEllipsis||eb.expandable||P||K),[ew,eb,P,K]);(0,p.A)(()=>{eg&&!eC&&(ei(x("webkitLineClamp")),ea(x("textOverflow")))},[eC,eg]);let[eO,eM]=n.useState(ew),eI=n.useMemo(()=>!eC&&(1===ek?eo:en),[eC,eo,en]);(0,p.A)(()=>{eM(eI&&ew)},[eI,ew]);let eR=ew&&(eO?ed:es),ej=ew&&1===ek&&eO,eT=ew&&ek>1&&eO,eN=(e,t)=>{var r;ey(t.expanded),null==(r=eb.onExpand)||r.call(eb,e,t)},[eP,eB]=n.useState(0),ez=({offsetWidth:e})=>{eB(e)},eL=e=>{var t;el(e),es!==e&&(null==(t=eb.onEllipsis)||t.call(eb,e))};n.useEffect(()=>{let e=R.current;if(eg&&eO&&e){let t=ec(e);ed!==t&&eh(t)}},[eg,eO,v,eT,ep,eP]),n.useEffect(()=>{let e=R.current;if("u"<typeof IntersectionObserver||!e||!eO||!ew)return;let t=new IntersectionObserver(()=>{em(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[eO,ew]);let eD=Q(eb.tooltip,B.text,v),eF=n.useMemo(()=>{if(eg&&!eO)return[B.text,v,k,eD.title].find(eu)},[eg,eO,k,eD.title,eR]);if(z)return n.createElement(q,{value:null!=(r=B.text)?r:"string"==typeof v?v:"",onSave:W,onCancel:V,onEnd:B.onEnd,prefixCls:T,className:a,style:s,direction:M,component:$,maxLength:B.maxLength,autoSize:B.autoSize,enterIcon:B.enterIcon});let eH=()=>{let{expandable:e,symbol:t}=eb;return e?n.createElement("button",{type:"button",key:"expand",className:`${T}-${ev?"collapse":"expand"}`,onClick:e=>eN(e,{expanded:!ev}),"aria-label":ev?I.collapse:null==I?void 0:I.expand},"function"==typeof t?t(ev):t):null},eU=()=>{if(!P)return;let{icon:e,tooltip:t,tabIndex:r}=B,i=(0,h.A)(t)[0]||(null==I?void 0:I.edit),o="string"==typeof i?i:"";return D.includes("icon")?n.createElement(_.A,{key:"edit",title:!1===t?"":i},n.createElement("button",{type:"button",ref:j,className:`${T}-edit`,onClick:U,"aria-label":o,tabIndex:r},e||n.createElement(c,{role:"button"}))):null},eq=()=>K?n.createElement(ef,Object.assign({key:"copy"},G,{prefixCls:T,copied:X,locale:I,onCopy:er,loading:ee,iconOnly:null==v})):null,eW=e=>[e&&eH(),eU(),eq()],eV=e=>[e&&!ev&&n.createElement("span",{"aria-hidden":!0,key:"ellipsis"},eS),eb.suffix,eW(e)];return n.createElement(d.A,{onResize:ez,disabled:!ew},r=>n.createElement(eA,{tooltipProps:eD,enableEllipsis:ew,isEllipsis:eR},n.createElement(et,Object.assign({className:f()({[`${T}-${l}`]:l,[`${T}-disabled`]:u,[`${T}-ellipsis`]:eg,[`${T}-ellipsis-single-line`]:ej,[`${T}-ellipsis-multiple-line`]:eT},a),prefixCls:o,style:Object.assign(Object.assign({},s),{WebkitLineClamp:eT?ek:void 0}),component:$,ref:(0,b.K4)(r,R,t),direction:M,onClick:D.includes("text")?U:void 0,"aria-label":null==eF?void 0:eF.toString(),title:k},N),n.createElement(ex,{enableMeasure:ew&&!eO,text:v,rows:ek,width:eP,onEllipsis:eL,expanded:ev,miscDeps:[X,ev,ee,P,K,I].concat((0,i.A)(e$.map(t=>e[t])))},(t,r)=>e_(e,n.createElement(n.Fragment,null,t.length>0&&r&&!ev&&eF?n.createElement("span",{key:"show-content","aria-hidden":!0},t):t,eV(r)))))))});var eC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let eO=n.forwardRef((e,t)=>{let{ellipsis:r,rel:i,children:o,navigate:a}=e,s=eC(e,["ellipsis","rel","children","navigate"]),l=Object.assign(Object.assign({},s),{rel:void 0===i&&"_blank"===s.target?"noopener noreferrer":i});return n.createElement(ek,Object.assign({},l,{ref:t,ellipsis:!!r,component:"a"}),o)});var eM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let eI=n.forwardRef((e,t)=>{let{children:r}=e,i=eM(e,["children"]);return n.createElement(ek,Object.assign({ref:t},i,{component:"div"}),r)});var eR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let ej=(e,t)=>{let{ellipsis:r,children:i}=e,o=eR(e,["ellipsis","children"]),a=n.useMemo(()=>r&&"object"==typeof r?(0,g.A)(r,["expandable","rows"]):r,[r]);return n.createElement(ek,Object.assign({ref:t},o,{ellipsis:a,component:"span"}),i)},eT=n.forwardRef(ej);var eN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let eP=[1,2,3,4,5],eB=n.forwardRef((e,t)=>{let{level:r=1,children:i}=e,o=eN(e,["level","children"]),a=eP.includes(r)?`h${r}`:"h1";return n.createElement(ek,Object.assign({ref:t},o,{component:a}),i)}),ez=et;ez.Text=eT,ez.Link=eO,ez.Title=eB,ez.Paragraph=eI;let eL=ez},78071(e,t,r){var n=t;n.bignum=r(46944),n.define=r(92300).define,n.base=r(73160),n.constants=r(36622),n.decoders=r(81300),n.encoders=r(36028)},92300(e,t,r){var n=r(78071),i=r(91193);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(20168).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},86216(e,t,r){var n=r(91193),i=r(73160).Reporter,o=r(36533).Buffer;function a(e,t){(i.call(this,t),o.isBuffer(e))?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.DecoderBuffer=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},73160(e,t,r){var n=t;n.Reporter=r(18031).Reporter,n.DecoderBuffer=r(86216).DecoderBuffer,n.EncoderBuffer=r(86216).EncoderBuffer,n.Node=r(13558)},13558(e,t,r){var n=r(73160).Reporter,i=r(73160).EncoderBuffer,o=r(73160).DecoderBuffer,a=r(35578),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),c=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function u(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=u;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};f.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},u.prototype._wrap=function(){var e=this._baseState;l.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},u.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))},c.forEach(function(e){u.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){u.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),u.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(a=this._peekTag(e,l,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}var f=e.offset;if(null===n.use&&null===n.choice){if(n.any)var c=e.save();var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?i=e.raw(c):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===a)?e.leaveKey(s,n.key,i):null!==s&&e.exitKey(s),i},u.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);else if("null_"===e)return this._decodeNull(t,r);else if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},u.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var l=s._decode(e,t);if(e.isError(l))return!1;n={type:o,value:l},i=!0}catch(t){return e.restore(a),!1}return!0},this),i)?n:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},u.prototype._encodeValue=function(e,t,r){var i,o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);var i=null;if(this.reporter=t,o.optional&&void 0===e)if(null===o.default)return;else e=o.default;var a=null,s=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,r)._encode(e,t),s=!0;else if(o.children)a=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!(o.args&&1===o.args.length))return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},l))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){var c=null!==o.implicit?o.implicit:o.tag,u=null===o.implicit?"universal":"context";null===c?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(c,s,u,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i)),i},u.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();else if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);else if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},18031(e,t,r){var n=r(91193);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},4029(e,t,r){var n=r(36622);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},36622(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},n.der=r(4029)},87779(e,t,r){var n=r(91193),i=r(78071),o=i.base,a=i.bignum,s=i.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function u(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=(32&r)==0;if((31&r)==31){var o=r;for(r=0;(128&o)==128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var a=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}e.exports=l,l.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(c,o.Node),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=f(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r,n=u(e,t);if(e.isError(n))return n;var i=f(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();else if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}else if(/str$/.test(t))return e.raw().toString();else return e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,(128&a)==0&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,l=i[0]%40;if(n=r?i:[s,l].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),l=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),l=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,l,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=new a(e.raw());return t&&(r=t[r.toString(10)]||r),r},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},81300(e,t,r){var n=t;n.der=r(87779),n.pem=r(71222)},71222(e,t,r){var n=r(91193),i=r(36533).Buffer,o=r(87779);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,c=0;c<r.length;c++){var u=r[c].match(a);if(null!==u&&u[2]===n)if(-1===s){if("BEGIN"!==u[1])break;s=c}else{if("END"!==u[1])break;l=c;break}}if(-1===s||-1===l)throw Error("PEM section not found for: "+n);var f=r.slice(s+1,l).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(f,"base64");return o.prototype.decode.call(this,d,t)}},99291(e,t,r){var n=r(91193),i=r(36533).Buffer,o=r(78071),a=o.base,s=o.constants.der;function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}function f(e,t,r,n){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}e.exports=l,l.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,a.Node),c.prototype._encodeComposite=function(e,t,r,n){var o=f(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,l=n.length;l>=256;l>>=8)s++;var a=new i(2+s);a[0]=o,a[1]=128|s;for(var l=1+s,c=n.length;c>0;l--,c>>=8)a[l]=255&c;return this._createEncoderBuffer([a,n])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}if("numstr"===t)return this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space");if("printstr"===t)return this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");if(/str$/.test(t))return this._createEncoderBuffer(e);else if("objDesc"===t)return this._createEncoderBuffer(e);else return this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,n=0;n<e.length;n++){var a=e[n];for(o++;a>=128;a>>=7)o++}for(var s=new i(o),l=s.length-1,n=e.length-1;n>=0;n--){var a=e[n];for(s[l--]=127&a;(a>>=7)>0;)s[l--]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[u(n.getFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[u(n.getFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var o=Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(255*!!e)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},36028(e,t,r){var n=t;n.der=r(99291),n.pem=r(59678)},59678(e,t,r){var n=r(91193),i=r(99291);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},46732(e,t,r){"use strict";var n,i,o=r(85409);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"===a(t)?t:String(t)}function u(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function f(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var d=r(35349).codes,h=d.ERR_AMBIGUOUS_ARGUMENT,p=d.ERR_INVALID_ARG_TYPE,m=d.ERR_INVALID_ARG_VALUE,g=d.ERR_INVALID_RETURN_VALUE,b=d.ERR_MISSING_ARGS,v=r(96342),y=r(1344).inspect,w=r(1344).types,x=w.isPromise,A=w.isRegExp,E=r(43921)(),_=r(12197)(),S=r(27926)("RegExp.prototype.test");function $(){var e=r(31235);n=e.isDeepEqual,i=e.isDeepStrictEqual}var k=!1,C=e.exports=j,O={};function M(e){if(e.message instanceof Error)throw e.message;throw new v(e)}function I(e,t,r,n,i){var a,s=arguments.length;if(0===s?a="Failed":1===s?(r=e,e=void 0):(!1===k&&(k=!0,(o.emitWarning?o.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===s&&(n="!=")),r instanceof Error)throw r;var l={actual:e,expected:t,operator:void 0===n?"fail":n,stackStartFn:i||I};void 0!==r&&(l.message=r);var c=new v(l);throw a&&(c.message=a,c.generatedMessage=!0),c}function R(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new v({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function j(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];R.apply(void 0,[j,t.length].concat(t))}function T(e,t,r){if(arguments.length<2)throw new b("actual","expected");void 0===n&&$(),i(e,t)&&M({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:T})}C.fail=I,C.AssertionError=v,C.ok=j,C.equal=function e(t,r,n){if(arguments.length<2)throw new b("actual","expected");t!=r&&M({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},C.notEqual=function e(t,r,n){if(arguments.length<2)throw new b("actual","expected");t==r&&M({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},C.deepEqual=function e(t,r,i){if(arguments.length<2)throw new b("actual","expected");void 0===n&&$(),n(t,r)||M({actual:t,expected:r,message:i,operator:"deepEqual",stackStartFn:e})},C.notDeepEqual=function e(t,r,i){if(arguments.length<2)throw new b("actual","expected");void 0===n&&$(),n(t,r)&&M({actual:t,expected:r,message:i,operator:"notDeepEqual",stackStartFn:e})},C.deepStrictEqual=function e(t,r,o){if(arguments.length<2)throw new b("actual","expected");void 0===n&&$(),i(t,r)||M({actual:t,expected:r,message:o,operator:"deepStrictEqual",stackStartFn:e})},C.notDeepStrictEqual=T,C.strictEqual=function e(t,r,n){if(arguments.length<2)throw new b("actual","expected");_(t,r)||M({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},C.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new b("actual","expected");_(t,r)&&M({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var N=l(function e(t,r,n){var i=this;f(this,e),r.forEach(function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&A(t[e])&&S(t[e],n[e])?i[e]=n[e]:i[e]=t[e])})});function P(e,t,r,n,o,a){if(!(r in e)||!i(e[r],t[r])){if(!n){var s=new v({actual:new N(e,o),expected:new N(t,o,e),operator:"deepStrictEqual",stackStartFn:a});throw s.actual=e,s.expected=t,s.operator=a.name,s}M({actual:e,expected:t,message:n,operator:a.name,stackStartFn:a})}}function B(e,t,r,i){if("function"!=typeof t){if(A(t))return S(t,e);if(2==arguments.length)throw new p("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var o=new v({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw o.operator=i.name,o}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new m("error",t,"may not be an empty object");return void 0===n&&$(),s.forEach(function(n){"string"==typeof e[n]&&A(t[n])&&S(t[n],e[n])||P(e,t,n,r,s,i)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function z(e){if("function"!=typeof e)throw new p("fn","Function",e);try{e()}catch(e){return e}return O}function L(e){return x(e)||null!==e&&"object"===a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!L(t=e()))throw new g("instance of Promise","promiseFn",t)}else if(L(e))t=e;else throw new p("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return O}).catch(function(e){return e})})}function F(e,t,r,n){if("string"==typeof r){if(4==arguments.length)throw new p("error",["Object","Error","Function","RegExp"],r);if("object"===a(t)&&null!==t){if(t.message===r)throw new h("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new h("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==a(r)&&"function"!=typeof r)throw new p("error",["Object","Error","Function","RegExp"],r);if(t===O){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var o="rejects"===e.name?"rejection":"exception";M({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(r&&!B(t,r,n,e))throw t}function H(e,t,r,n){if(t!==O){if("string"==typeof r&&(n=r,r=void 0),!r||B(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";M({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function U(e,t,r,n,i){if(!A(t))throw new p("regexp","RegExp",t);var o="match"===i;if("string"!=typeof e||S(t,e)!==o){if(r instanceof Error)throw r;var s=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(a(e)," (").concat(y(e),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(t),". Input:\n\n").concat(y(e),"\n"));var l=new v({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw l.generatedMessage=s,l}}function q(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];R.apply(void 0,[q,t.length].concat(t))}C.throws=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];F.apply(void 0,[e,z(t)].concat(n))},C.rejects=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return D(t).then(function(t){return F.apply(void 0,[e,t].concat(n))})},C.doesNotThrow=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];H.apply(void 0,[e,z(t)].concat(n))},C.doesNotReject=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return D(t).then(function(t){return H.apply(void 0,[e,t].concat(n))})},C.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===a(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=y(t);var n=new v({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var s=n.stack.split("\n"),l=0;l<o.length;l++){var c=s.indexOf(o[l]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw n}},C.match=function e(t,r,n){U(t,r,n,e,"match")},C.doesNotMatch=function e(t,r,n){U(t,r,n,e,"doesNotMatch")},C.strict=E(q,C,{equal:C.strictEqual,deepEqual:C.deepStrictEqual,notEqual:C.notStrictEqual,notDeepEqual:C.notDeepStrictEqual}),C.strict.strict=C.strict},96342(e,t,r){"use strict";var n=r(85409);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function c(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=f(e,"string");return"symbol"===A(t)?t:String(t)}function f(e,t){if("object"!==A(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==A(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function d(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}function h(e){var t=v();return function(){var r,n=x(e);return r=t?Reflect.construct(n,arguments,x(this).constructor):n.apply(this,arguments),p(this,r)}}function p(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){var t="function"==typeof Map?new Map:void 0;return(g=function(e){if(null===e||!y(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return b(e,arguments,x(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),w(r,e)})(e)}function b(e,t,r){return(b=v()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&w(i,r.prototype),i}).apply(null,arguments)}function v(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function y(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function w(e,t){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=r(1344).inspect,_=r(35349).codes.ERR_INVALID_ARG_TYPE;function S(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function $(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}var k="",C="",O="",M="",I={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},R=10;function j(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function T(e){return E(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function N(e,t,r){var i="",o="",a=0,s="",l=!1,c=T(e),u=c.split("\n"),f=T(t).split("\n"),d=0,h="";if("strictEqual"===r&&"object"===A(e)&&"object"===A(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===f.length&&u[0]!==f[0]){var p=u[0].length+f[0].length;if(p<=R){if(("object"!==A(e)||null===e)&&("object"!==A(t)||null===t)&&(0!==e||0!==t))return"".concat(I[r],"\n\n")+"".concat(u[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&p<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;u[0][d]===f[0][d];)d++;d>2&&(h="\n ".concat($(" ",d),"^"),d=0)}}for(var m=u[u.length-1],g=f[f.length-1];m===g&&(d++<2?s="\n ".concat(m).concat(s):i=m,u.pop(),f.pop(),0!==u.length&&0!==f.length);)m=u[u.length-1],g=f[f.length-1];var b=Math.max(u.length,f.length);if(0===b){var v=c.split("\n");if(v.length>30)for(v[26]="".concat(k,"...").concat(M);v.length>27;)v.pop();return"".concat(I.notIdentical,"\n\n").concat(v.join("\n"),"\n")}d>3&&(s="\n".concat(k,"...").concat(M).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var y=0,w=I[r]+"\n".concat(C,"+ actual").concat(M," ").concat(O,"- expected").concat(M),x=" ".concat(k,"...").concat(M," Lines skipped");for(d=0;d<b;d++){var E=d-a;if(u.length<d+1)E>1&&d>2&&(E>4?(o+="\n".concat(k,"...").concat(M),l=!0):E>3&&(o+="\n ".concat(f[d-2]),y++),o+="\n ".concat(f[d-1]),y++),a=d,i+="\n".concat(O,"-").concat(M," ").concat(f[d]),y++;else if(f.length<d+1)E>1&&d>2&&(E>4?(o+="\n".concat(k,"...").concat(M),l=!0):E>3&&(o+="\n ".concat(u[d-2]),y++),o+="\n ".concat(u[d-1]),y++),a=d,o+="\n".concat(C,"+").concat(M," ").concat(u[d]),y++;else{var _=f[d],j=u[d],N=j!==_&&(!S(j,",")||j.slice(0,-1)!==_);N&&S(_,",")&&_.slice(0,-1)===j&&(N=!1,j+=","),N?(E>1&&d>2&&(E>4?(o+="\n".concat(k,"...").concat(M),l=!0):E>3&&(o+="\n ".concat(u[d-2]),y++),o+="\n ".concat(u[d-1]),y++),a=d,o+="\n".concat(C,"+").concat(M," ").concat(j),i+="\n".concat(O,"-").concat(M," ").concat(_),y+=2):(o+=i,i="",(1===E||0===d)&&(o+="\n ".concat(j),y++))}if(y>20&&d<b-2)return"".concat(w).concat(x,"\n").concat(o,"\n").concat(k,"...").concat(M).concat(i,"\n")+"".concat(k,"...").concat(M)}return"".concat(w).concat(l?x:"","\n").concat(o).concat(i).concat(s).concat(h)}e.exports=function(e,t){d(i,e);var r=h(i);function i(e){if(s(this,i),"object"!==A(e)||null===e)throw new _("options","Object",e);var t,o=e.message,a=e.operator,l=e.stackStartFn,c=e.actual,u=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)t=r.call(this,String(o));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(k="\x1b[34m",C="\x1b[32m",M="\x1b[39m",O="\x1b[31m"):(k="",C="",M="",O="")),"object"===A(c)&&null!==c&&"object"===A(u)&&null!==u&&"stack"in c&&c instanceof Error&&"stack"in u&&u instanceof Error&&(c=j(c),u=j(u)),"deepStrictEqual"===a||"strictEqual"===a)t=r.call(this,N(c,u,a));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var d=I[a],h=T(c).split("\n");if("notStrictEqual"===a&&"object"===A(c)&&null!==c&&(d=I.notStrictEqualObject),h.length>30)for(h[26]="".concat(k,"...").concat(M);h.length>27;)h.pop();t=1===h.length?r.call(this,"".concat(d," ").concat(h[0])):r.call(this,"".concat(d,"\n\n").concat(h.join("\n"),"\n"))}else{var g=T(c),b="",v=I[a];"notDeepEqual"===a||"notEqual"===a?(g="".concat(I[a],"\n\n").concat(g)).length>1024&&(g="".concat(g.slice(0,1021),"...")):(b="".concat(T(u)),g.length>512&&(g="".concat(g.slice(0,509),"...")),b.length>512&&(b="".concat(b.slice(0,509),"...")),"deepEqual"===a||"equal"===a?g="".concat(v,"\n\n").concat(g,"\n\nshould equal\n\n"):b=" ".concat(a," ").concat(b)),t=r.call(this,"".concat(g).concat(b))}return Error.stackTraceLimit=f,t.generatedMessage=!o,Object.defineProperty(m(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=c,t.expected=u,t.operator=a,Error.captureStackTrace&&Error.captureStackTrace(m(t),l),t.stack,t.name="AssertionError",p(t)}return c(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return E(this,o(o({},t),{},{customInspect:!1,depth:0}))}}]),i}(g(Error),E.custom)},35349(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=s(e,"string");return"symbol"===n(t)?t:String(t)}function s(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=p();return function(){var r,n=m(e);return r=t?Reflect.construct(n,arguments,m(this).constructor):n.apply(this,arguments),d(this,r)}}function d(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g,b,v={};function y(e,t,r){function n(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var i=function(t){c(i,t);var r=f(i);function i(t,o,a){var s;return l(this,i),(s=r.call(this,n(t,o,a))).code=e,s}return o(i)}(r);v[e]=i}function w(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function x(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function A(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function E(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}y("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),y("ERR_INVALID_ARG_TYPE",function(e,t,i){if(void 0===g&&(g=r(46732)),g("string"==typeof e,"'name' must be a string"),"string"==typeof t&&x(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",A(e," argument"))a="The ".concat(e," ").concat(o," ").concat(w(t,"type"));else{var o,a,s=E(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(w(t,"type"))}return a+". Received type ".concat(n(i))},TypeError),y("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===b&&(b=r(1344));var i=b.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),y("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),y("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===g&&(g=r(46732)),g(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=v},31235(e,t,r){"use strict";function n(e,t){return l(e)||s(e,t)||o(e,t)||i()}function i(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function l(e){if(Array.isArray(e))return e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=void 0!==/a/g.flags,f=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},d=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},h=Object.is?Object.is:r(19068),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:r(14954);function g(e){return e.call.bind(e)}var b=g(Object.prototype.hasOwnProperty),v=g(Object.prototype.propertyIsEnumerable),y=g(Object.prototype.toString),w=r(1344).types,x=w.isAnyArrayBuffer,A=w.isArrayBufferView,E=w.isDate,_=w.isMap,S=w.isRegExp,$=w.isSet,k=w.isNativeError,C=w.isBoxedPrimitive,O=w.isNumberObject,M=w.isStringObject,I=w.isBooleanObject,R=w.isBigIntObject,j=w.isSymbolObject,T=w.isFloat32Array,N=w.isFloat64Array;function P(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=0x100000000}function B(e){return Object.keys(e).filter(P).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function z(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)}var L=void 0,D=!0,F=!1,H=0,U=1,q=2,W=3;function V(e,t){return u?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function K(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function G(e,t){return e.byteLength===t.byteLength&&0===z(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function X(e,t){return e.byteLength===t.byteLength&&0===z(new Uint8Array(e),new Uint8Array(t))}function Z(e,t){return O(e)?O(t)&&h(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):M(e)?M(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):I(e)?I(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):R(e)?R(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):j(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function Y(e,t,r,n){if(e===t)return 0!==e||!r||h(e,t);if(r){if("object"!==c(e))return"number"==typeof e&&m(e)&&m(t);if("object"!==c(t)||null===e||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==c(e))return(null===t||"object"!==c(t))&&e==t;if(null===t||"object"!==c(t))return!1}var i=y(e);if(i!==y(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=B(e,L),a=B(t,L);return o.length===a.length&&Q(e,t,r,n,U,o)}if("[object Object]"===i&&(!_(e)&&_(t)||!$(e)&&$(t)))return!1;if(E(e)){if(!E(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(S(e)){if(!S(t)||!V(e,t))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(A(e)){if(!r&&(T(e)||N(e))){if(!K(e,t))return!1}else if(!G(e,t))return!1;var s=B(e,L),l=B(t,L);return s.length===l.length&&Q(e,t,r,n,H,s)}else if($(e))return!!$(t)&&e.size===t.size&&Q(e,t,r,n,q);else if(_(e))return!!_(t)&&e.size===t.size&&Q(e,t,r,n,W);else if(x(e)){if(!X(e,t))return!1}else if(C(e)&&!Z(e,t))return!1;return Q(e,t,r,n,H)}function J(e,t){return t.filter(function(t){return v(e,t)})}function Q(e,t,r,n,i,o){if(5==arguments.length){o=Object.keys(e);var a=Object.keys(t);if(o.length!==a.length)return!1}for(var s=0;s<o.length;s++)if(!b(t,o[s]))return!1;if(r&&5==arguments.length){var l=p(e);if(0!==l.length){var c=0;for(s=0;s<l.length;s++){var u=l[s];if(v(e,u)){if(!v(t,u))return!1;o.push(u),c++}else if(v(t,u))return!1}var f=p(t);if(l.length!==f.length&&J(t,f).length!==c)return!1}else{var d=p(t);if(0!==d.length&&0!==J(t,d).length)return!1}}if(0===o.length&&(i===H||i===U&&0===e.length||0===e.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var h=n.val1.get(e);if(void 0!==h){var m=n.val2.get(t);if(void 0!==m)return h===m}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var g=es(e,t,r,o,n,i);return n.val1.delete(e),n.val2.delete(t),g}function ee(e,t,r,n){for(var i=f(e),o=0;o<i.length;o++){var a=i[o];if(Y(t,a,r,n))return e.delete(a),!0}return!1}function et(e){switch(c(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e*=1;case"number":if(m(e))return!1}return!0}function er(e,t,r){var n=et(r);return null!=n?n:t.has(n)&&!e.has(n)}function en(e,t,r,n,i){var o=et(r);if(null!=o)return o;var a=t.get(o);return(void 0!==a||!!t.has(o))&&!!Y(n,a,!1,i)&&!e.has(o)&&Y(n,a,!1,i)}function ei(e,t,r,n){for(var i=null,o=f(e),a=0;a<o.length;a++){var s=o[a];if("object"===c(s)&&null!==s)null===i&&(i=new Set),i.add(s);else if(!t.has(s)){if(r||!er(e,t,s))return!1;null===i&&(i=new Set),i.add(s)}}if(null!==i){for(var l=f(t),u=0;u<l.length;u++){var d=l[u];if("object"===c(d)&&null!==d){if(!ee(i,d,r,n))return!1}else if(!r&&!e.has(d)&&!ee(i,d,r,n))return!1}return 0===i.size}return!0}function eo(e,t,r,n,i,o){for(var a=f(e),s=0;s<a.length;s++){var l=a[s];if(Y(r,l,i,o)&&Y(n,t.get(l),i,o))return e.delete(l),!0}return!1}function ea(e,t,r,i){for(var o=null,a=d(e),s=0;s<a.length;s++){var l=n(a[s],2),u=l[0],f=l[1];if("object"===c(u)&&null!==u)null===o&&(o=new Set),o.add(u);else{var h=t.get(u);if(void 0===h&&!t.has(u)||!Y(f,h,r,i)){if(r||!en(e,t,u,f,i))return!1;null===o&&(o=new Set),o.add(u)}}}if(null!==o){for(var p=d(t),m=0;m<p.length;m++){var g=n(p[m],2),b=g[0],v=g[1];if("object"===c(b)&&null!==b){if(!eo(o,e,b,v,r,i))return!1}else if(!r&&(!e.has(b)||!Y(e.get(b),v,!1,i))&&!eo(o,e,b,v,!1,i))return!1}return 0===o.size}return!0}function es(e,t,r,n,i,o){var a=0;if(o===q){if(!ei(e,t,r,i))return!1}else if(o===W){if(!ea(e,t,r,i))return!1}else if(o===U)for(;a<e.length;a++)if(b(e,a)){if(!b(t,a)||!Y(e[a],t[a],r,i))return!1}else{if(b(t,a))return!1;for(var s=Object.keys(e);a<s.length;a++){var l=s[a];if(!b(t,l)||!Y(e[l],t[l],r,i))return!1}if(s.length!==Object.keys(t).length)return!1;return!0}for(a=0;a<n.length;a++){var c=n[a];if(!Y(e[c],t[c],r,i))return!1}return!0}e.exports={isDeepEqual:function(e,t){return Y(e,t,F)},isDeepStrictEqual:function(e,t){return Y(e,t,D)}}},84933(e,t){"use strict";t.byteLength=c,t.toByteArray=f,t.fromByteArray=p;for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n}function u(e,t,r){return(t+r)*3/4-r}function f(e){var t,r,o=l(e),a=o[0],s=o[1],c=new i(u(e,a,s)),f=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n=[],i=t;i<r;i+=3)n.push(d((e[i]<<16&0xff0000)+(e[i+1]<<8&65280)+(255&e[i+2])));return n.join("")}function p(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(h(e,s,s+a>l?l:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n[45]=62,n[95]=63},46944(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{c="u">typeof window&&void 0!==window.Buffer?window.Buffer:r(20913).Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,s>=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,a=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,u=r;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(i),this.words[0]+c<0x4000000?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=l(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+c<0x4000000?this.words[0]+=c:this._iaddn(c)}this.strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function h(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,l=a/0x4000000|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,f=0x3ffffff&l,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/0x4000000|0,f=0x3ffffff&a}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=((s<<i|o)&0xffffff).toString(16);o=s>>>24-i&0xffffff,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?u[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=f[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var l="le"===t,c=new e(s),u=this.clone();if(l){for(o=0;!u.isZero();o++)i=u.andln(255),u.iushrn(8),c[o]=i;for(;o<s;o++)c[o]=0}else{for(o=0;o<s-a;o++)c[o]=0;for(o=0;!u.isZero();o++)i=u.andln(255),u.iushrn(8),c[s-o-1]=i}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];for(r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r,i++);i<this.length;i++)this.words[i]=0;return this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=0x3ffffff&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],f=8191&u,d=u>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],b=8191&g,v=g>>>13,y=0|a[3],w=8191&y,x=y>>>13,A=0|a[4],E=8191&A,_=A>>>13,S=0|a[5],$=8191&S,k=S>>>13,C=0|a[6],O=8191&C,M=C>>>13,I=0|a[7],R=8191&I,j=I>>>13,T=0|a[8],N=8191&T,P=T>>>13,B=0|a[9],z=8191&B,L=B>>>13,D=0|s[0],F=8191&D,H=D>>>13,U=0|s[1],q=8191&U,W=U>>>13,V=0|s[2],K=8191&V,G=V>>>13,X=0|s[3],Z=8191&X,Y=X>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,ec=es>>>13,eu=0|s[8],ef=8191&eu,ed=eu>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,F);var eg=(c+n|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(d,F)|0))<<13)|0;c=((o=Math.imul(d,H))+(i>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,F),i=(i=Math.imul(p,H))+Math.imul(m,F)|0,o=Math.imul(m,H),n=n+Math.imul(f,q)|0;var eb=(c+n|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(b,F),i=(i=Math.imul(b,H))+Math.imul(v,F)|0,o=Math.imul(v,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(f,K)|0;var ev=(c+n|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(w,F),i=(i=Math.imul(w,H))+Math.imul(x,F)|0,o=Math.imul(x,H),n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,W)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(f,Z)|0;var ey=(c+n|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Z)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(E,F),i=(i=Math.imul(E,H))+Math.imul(_,F)|0,o=Math.imul(_,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(b,K)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0,n=n+Math.imul(f,Q)|0;var ew=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul($,F),i=(i=Math.imul($,H))+Math.imul(k,F)|0,o=Math.imul(k,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(f,er)|0;var ex=(c+n|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(d,er)|0))<<13)|0;c=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(O,F),i=(i=Math.imul(O,H))+Math.imul(M,F)|0,o=Math.imul(M,H),n=n+Math.imul($,q)|0,i=(i=i+Math.imul($,W)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,Y)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0,n=n+Math.imul(f,eo)|0;var eA=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ea)|0)+Math.imul(d,eo)|0))<<13)|0;c=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(R,F),i=(i=Math.imul(R,H))+Math.imul(j,F)|0,o=Math.imul(j,H),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul($,K)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(b,er)|0,i=(i=i+Math.imul(b,en)|0)+Math.imul(v,er)|0,o=o+Math.imul(v,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0,n=n+Math.imul(f,el)|0;var eE=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ec)|0)+Math.imul(d,el)|0))<<13)|0;c=((o=o+Math.imul(d,ec)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(N,F),i=(i=Math.imul(N,H))+Math.imul(P,F)|0,o=Math.imul(P,H),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul($,Z)|0,i=(i=i+Math.imul($,Y)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(b,eo)|0,i=(i=i+Math.imul(b,ea)|0)+Math.imul(v,eo)|0,o=o+Math.imul(v,ea)|0,n=n+Math.imul(p,el)|0,i=(i=i+Math.imul(p,ec)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,ec)|0,n=n+Math.imul(f,ef)|0;var e_=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ed)|0)+Math.imul(d,ef)|0))<<13)|0;c=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(z,F),i=(i=Math.imul(z,H))+Math.imul(L,F)|0,o=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul($,Q)|0,i=(i=i+Math.imul($,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(b,el)|0,i=(i=i+Math.imul(b,ec)|0)+Math.imul(v,el)|0,o=o+Math.imul(v,ec)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,ed)|0,n=n+Math.imul(f,ep)|0;var eS=(c+n|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(d,ep)|0))<<13)|0;c=((o=o+Math.imul(d,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(z,q),i=(i=Math.imul(z,W))+Math.imul(L,q)|0,o=Math.imul(L,W),n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul($,er)|0,i=(i=i+Math.imul($,en)|0)+Math.imul(k,er)|0,o=o+Math.imul(k,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,ea)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,ec)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(b,ef)|0,i=(i=i+Math.imul(b,ed)|0)+Math.imul(v,ef)|0,o=o+Math.imul(v,ed)|0,n=n+Math.imul(p,ep)|0;var e$=(c+n|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;c=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(e$>>>26)|0,e$&=0x3ffffff,n=Math.imul(z,K),i=(i=Math.imul(z,G))+Math.imul(L,K)|0,o=Math.imul(L,G),n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(O,er)|0,i=(i=i+Math.imul(O,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul($,eo)|0,i=(i=i+Math.imul($,ea)|0)+Math.imul(k,eo)|0,o=o+Math.imul(k,ea)|0,n=n+Math.imul(E,el)|0,i=(i=i+Math.imul(E,ec)|0)+Math.imul(_,el)|0,o=o+Math.imul(_,ec)|0,n=n+Math.imul(w,ef)|0,i=(i=i+Math.imul(w,ed)|0)+Math.imul(x,ef)|0,o=o+Math.imul(x,ed)|0,n=n+Math.imul(b,ep)|0;var ek=(c+n|0)+((8191&(i=(i=i+Math.imul(b,em)|0)+Math.imul(v,ep)|0))<<13)|0;c=((o=o+Math.imul(v,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(z,Z),i=(i=Math.imul(z,Y))+Math.imul(L,Z)|0,o=Math.imul(L,Y),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(j,er)|0,o=o+Math.imul(j,en)|0,n=n+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul($,el)|0,i=(i=i+Math.imul($,ec)|0)+Math.imul(k,el)|0,o=o+Math.imul(k,ec)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,ed)|0)+Math.imul(_,ef)|0,o=o+Math.imul(_,ed)|0,n=n+Math.imul(w,ep)|0;var eC=(c+n|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(x,ep)|0))<<13)|0;c=((o=o+Math.imul(x,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(z,Q),i=(i=Math.imul(z,ee))+Math.imul(L,Q)|0,o=Math.imul(L,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(j,eo)|0,o=o+Math.imul(j,ea)|0,n=n+Math.imul(O,el)|0,i=(i=i+Math.imul(O,ec)|0)+Math.imul(M,el)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul($,ef)|0,i=(i=i+Math.imul($,ed)|0)+Math.imul(k,ef)|0,o=o+Math.imul(k,ed)|0,n=n+Math.imul(E,ep)|0;var eO=(c+n|0)+((8191&(i=(i=i+Math.imul(E,em)|0)+Math.imul(_,ep)|0))<<13)|0;c=((o=o+Math.imul(_,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(z,er),i=(i=Math.imul(z,en))+Math.imul(L,er)|0,o=Math.imul(L,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(R,el)|0,i=(i=i+Math.imul(R,ec)|0)+Math.imul(j,el)|0,o=o+Math.imul(j,ec)|0,n=n+Math.imul(O,ef)|0,i=(i=i+Math.imul(O,ed)|0)+Math.imul(M,ef)|0,o=o+Math.imul(M,ed)|0,n=n+Math.imul($,ep)|0;var eM=(c+n|0)+((8191&(i=(i=i+Math.imul($,em)|0)+Math.imul(k,ep)|0))<<13)|0;c=((o=o+Math.imul(k,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(z,eo),i=(i=Math.imul(z,ea))+Math.imul(L,eo)|0,o=Math.imul(L,ea),n=n+Math.imul(N,el)|0,i=(i=i+Math.imul(N,ec)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,ec)|0,n=n+Math.imul(R,ef)|0,i=(i=i+Math.imul(R,ed)|0)+Math.imul(j,ef)|0,o=o+Math.imul(j,ed)|0,n=n+Math.imul(O,ep)|0;var eI=(c+n|0)+((8191&(i=(i=i+Math.imul(O,em)|0)+Math.imul(M,ep)|0))<<13)|0;c=((o=o+Math.imul(M,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(z,el),i=(i=Math.imul(z,ec))+Math.imul(L,el)|0,o=Math.imul(L,ec),n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(P,ef)|0,o=o+Math.imul(P,ed)|0,n=n+Math.imul(R,ep)|0;var eR=(c+n|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(j,ep)|0))<<13)|0;c=((o=o+Math.imul(j,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(z,ef),i=(i=Math.imul(z,ed))+Math.imul(L,ef)|0,o=Math.imul(L,ed),n=n+Math.imul(N,ep)|0;var ej=(c+n|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(P,ep)|0))<<13)|0;c=((o=o+Math.imul(P,em)|0)+(i>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,n=Math.imul(z,ep);var eT=(c+n|0)+((8191&(i=(i=Math.imul(z,em))+Math.imul(L,ep)|0))<<13)|0;return c=((o=Math.imul(L,em))+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,l[0]=eg,l[1]=eb,l[2]=ev,l[3]=ey,l[4]=ew,l[5]=ex,l[6]=eA,l[7]=eE,l[8]=e_,l[9]=eS,l[10]=e$,l[11]=ek,l[12]=eC,l[13]=eO,l[14]=eM,l[15]=eI,l[16]=eR,l[17]=ej,l[18]=eT,0!==c&&(l[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=0x3ffffff&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,f=(0|e.words[u])*(0|t.words[c]),d=0x3ffffff&f;a=a+(f/0x4000000|0)|0,s=0x3ffffff&(d=d+s|0),i+=(a=a+(d>>>26)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function b(e,t,r){return new v().mulp(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=p),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?p(this,e,t):r<1024?g(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},v.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},v.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=l,d=c,h=0;h<a;h++){var p=r[u+h],m=n[u+h],g=r[u+h+a],b=n[u+h+a],v=f*g-d*b;b=f*b+d*g,g=v,r[u+h]=p+g,n[u+h]=m+b,r[u+h+a]=p-g,n[u+h+a]=m-b,h!==s&&(v=l*f-c*d,d=l*d+c*f,f=v)}},v.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},v.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},v.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},v.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},v.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),l=Array(n),c=Array(n),u=Array(n),f=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,l,n,i),this.transform(c,o,u,f,n,i);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*f[h];l[h]=s[h]*f[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<0x4000000);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(0x3ffffff&i)+(0x3ffffff&t);t>>=26,t+=(i/0x4000000|0)+(o>>>26),this.words[r]=0x3ffffff&o}return 0!==t&&(this.words[r]=t,this.length++),0===e&&(this.length=1,this._normSign()),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=h(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var f=0|this.words[c];this.words[c]=u<<26-o|f>>>o,u=f&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;o-=0x3ffffff&l,s=(o>>26)-(l/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var l=i.length-a.length;if("mod"!==t){(r=new o(null)).length=l+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var u=i.clone()._ishlnsubmul(a,1,l);0===u.negative&&(i=u,r&&(r.words[l]=1));for(var f=l-1;f>=0;f--){var d=(0|i.words[a.length+f])*0x4000000+(0|i.words[a.length+f-1]);for(d=Math.min(d/s|0,0x3ffffff),i._ishlnsubmul(a,d,f);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=d)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=t.mod.abs(),n=e.abs().iushrn(1),i=1&e.words[0],a=r.cmp(n);if(a<0||1===i&&0===a)return t.div;var s=new o(1);return s.negative=this.negative^e.negative,t.div.iadd(s)},o.prototype.modn=function(e){n(e<=0x3ffffff);for(var t=0x4000000%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+0x4000000*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),l=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;(r.words[0]&u)==0&&c<26;++c,u<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var f=0,d=1;(i.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function $(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(x,w),x.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(A,w),i(E,w),i(_,w),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(y[e])return y[e];if("k256"===e)t=new x;else if("p224"===e)t=new A;else if("p192"===e)t=new E;else if("p25519"===e)t=new _;else throw Error("Unknown prime "+e);return y[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var b=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(b),f=b.redSqr(),h=h.redMul(f),p=g}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,l=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var u=t.words[i],f=c-1;f>=0;f--){var d=u>>f&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){l=0;continue}s<<=1,s|=d,(++l===r||0===i&&0===f)&&(a=this.mul(a,n[s]),l=0,s=0)}c=26}return a},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new $(e)},i($,S),$.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},$.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},$.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},$.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},$.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},18232(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{f="u">typeof window&&void 0!==window.Buffer?window.Buffer:r(95277).Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function s(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),l=t;l<s;l++){var c=e.charCodeAt(l)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,a=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=s(e,t,i)<<o,this.words[a]|=0x3ffffff&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,u=r;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(i),this.words[0]+c<0x4000000?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=l(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+c<0x4000000?this.words[0]+=c:this._iaddn(c)}this._strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){c(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=((s<<i|o)&0xffffff).toString(16);o=s>>>24-i&0xffffff,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(u).toString(e);r=(f=f.idivn(u)).isZero()?m+r:d[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},f&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(f,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var m=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function g(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}function b(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,l=a/0x4000000|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,f=0x3ffffff&l,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/0x4000000|0,f=0x3ffffff&a}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=m(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];for(r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r,i++);i<this.length;i++)this.words[i]=0;return this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=0x3ffffff&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],f=8191&u,d=u>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],b=8191&g,v=g>>>13,y=0|a[3],w=8191&y,x=y>>>13,A=0|a[4],E=8191&A,_=A>>>13,S=0|a[5],$=8191&S,k=S>>>13,C=0|a[6],O=8191&C,M=C>>>13,I=0|a[7],R=8191&I,j=I>>>13,T=0|a[8],N=8191&T,P=T>>>13,B=0|a[9],z=8191&B,L=B>>>13,D=0|s[0],F=8191&D,H=D>>>13,U=0|s[1],q=8191&U,W=U>>>13,V=0|s[2],K=8191&V,G=V>>>13,X=0|s[3],Z=8191&X,Y=X>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,ec=es>>>13,eu=0|s[8],ef=8191&eu,ed=eu>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,F);var eg=(c+n|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(d,F)|0))<<13)|0;c=((o=Math.imul(d,H))+(i>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,F),i=(i=Math.imul(p,H))+Math.imul(m,F)|0,o=Math.imul(m,H),n=n+Math.imul(f,q)|0;var eb=(c+n|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(b,F),i=(i=Math.imul(b,H))+Math.imul(v,F)|0,o=Math.imul(v,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,W)|0,n=n+Math.imul(f,K)|0;var ev=(c+n|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(w,F),i=(i=Math.imul(w,H))+Math.imul(x,F)|0,o=Math.imul(x,H),n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,W)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,G)|0,n=n+Math.imul(f,Z)|0;var ey=(c+n|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Z)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(E,F),i=(i=Math.imul(E,H))+Math.imul(_,F)|0,o=Math.imul(_,H),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(b,K)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,G)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,Y)|0,n=n+Math.imul(f,Q)|0;var ew=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul($,F),i=(i=Math.imul($,H))+Math.imul(k,F)|0,o=Math.imul(k,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(f,er)|0;var ex=(c+n|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(d,er)|0))<<13)|0;c=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(O,F),i=(i=Math.imul(O,H))+Math.imul(M,F)|0,o=Math.imul(M,H),n=n+Math.imul($,q)|0,i=(i=i+Math.imul($,W)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,W)|0,n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,G)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,Y)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0,n=n+Math.imul(f,eo)|0;var eA=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ea)|0)+Math.imul(d,eo)|0))<<13)|0;c=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(R,F),i=(i=Math.imul(R,H))+Math.imul(j,F)|0,o=Math.imul(j,H),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul($,K)|0,i=(i=i+Math.imul($,G)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(b,er)|0,i=(i=i+Math.imul(b,en)|0)+Math.imul(v,er)|0,o=o+Math.imul(v,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0,n=n+Math.imul(f,el)|0;var eE=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ec)|0)+Math.imul(d,el)|0))<<13)|0;c=((o=o+Math.imul(d,ec)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(N,F),i=(i=Math.imul(N,H))+Math.imul(P,F)|0,o=Math.imul(P,H),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(j,q)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(M,K)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul($,Z)|0,i=(i=i+Math.imul($,Y)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(b,eo)|0,i=(i=i+Math.imul(b,ea)|0)+Math.imul(v,eo)|0,o=o+Math.imul(v,ea)|0,n=n+Math.imul(p,el)|0,i=(i=i+Math.imul(p,ec)|0)+Math.imul(m,el)|0,o=o+Math.imul(m,ec)|0,n=n+Math.imul(f,ef)|0;var e_=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ed)|0)+Math.imul(d,ef)|0))<<13)|0;c=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(z,F),i=(i=Math.imul(z,H))+Math.imul(L,F)|0,o=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(R,K)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,G)|0,n=n+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul($,Q)|0,i=(i=i+Math.imul($,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(b,el)|0,i=(i=i+Math.imul(b,ec)|0)+Math.imul(v,el)|0,o=o+Math.imul(v,ec)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,ed)|0,n=n+Math.imul(f,ep)|0;var eS=(c+n|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(d,ep)|0))<<13)|0;c=((o=o+Math.imul(d,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(z,q),i=(i=Math.imul(z,W))+Math.imul(L,q)|0,o=Math.imul(L,W),n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,G)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul($,er)|0,i=(i=i+Math.imul($,en)|0)+Math.imul(k,er)|0,o=o+Math.imul(k,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,ea)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,ec)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(b,ef)|0,i=(i=i+Math.imul(b,ed)|0)+Math.imul(v,ef)|0,o=o+Math.imul(v,ed)|0,n=n+Math.imul(p,ep)|0;var e$=(c+n|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;c=((o=o+Math.imul(m,em)|0)+(i>>>13)|0)+(e$>>>26)|0,e$&=0x3ffffff,n=Math.imul(z,K),i=(i=Math.imul(z,G))+Math.imul(L,K)|0,o=Math.imul(L,G),n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,Y)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(O,er)|0,i=(i=i+Math.imul(O,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul($,eo)|0,i=(i=i+Math.imul($,ea)|0)+Math.imul(k,eo)|0,o=o+Math.imul(k,ea)|0,n=n+Math.imul(E,el)|0,i=(i=i+Math.imul(E,ec)|0)+Math.imul(_,el)|0,o=o+Math.imul(_,ec)|0,n=n+Math.imul(w,ef)|0,i=(i=i+Math.imul(w,ed)|0)+Math.imul(x,ef)|0,o=o+Math.imul(x,ed)|0,n=n+Math.imul(b,ep)|0;var ek=(c+n|0)+((8191&(i=(i=i+Math.imul(b,em)|0)+Math.imul(v,ep)|0))<<13)|0;c=((o=o+Math.imul(v,em)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(z,Z),i=(i=Math.imul(z,Y))+Math.imul(L,Z)|0,o=Math.imul(L,Y),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(j,er)|0,o=o+Math.imul(j,en)|0,n=n+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul($,el)|0,i=(i=i+Math.imul($,ec)|0)+Math.imul(k,el)|0,o=o+Math.imul(k,ec)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,ed)|0)+Math.imul(_,ef)|0,o=o+Math.imul(_,ed)|0,n=n+Math.imul(w,ep)|0;var eC=(c+n|0)+((8191&(i=(i=i+Math.imul(w,em)|0)+Math.imul(x,ep)|0))<<13)|0;c=((o=o+Math.imul(x,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(z,Q),i=(i=Math.imul(z,ee))+Math.imul(L,Q)|0,o=Math.imul(L,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(j,eo)|0,o=o+Math.imul(j,ea)|0,n=n+Math.imul(O,el)|0,i=(i=i+Math.imul(O,ec)|0)+Math.imul(M,el)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul($,ef)|0,i=(i=i+Math.imul($,ed)|0)+Math.imul(k,ef)|0,o=o+Math.imul(k,ed)|0,n=n+Math.imul(E,ep)|0;var eO=(c+n|0)+((8191&(i=(i=i+Math.imul(E,em)|0)+Math.imul(_,ep)|0))<<13)|0;c=((o=o+Math.imul(_,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(z,er),i=(i=Math.imul(z,en))+Math.imul(L,er)|0,o=Math.imul(L,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(R,el)|0,i=(i=i+Math.imul(R,ec)|0)+Math.imul(j,el)|0,o=o+Math.imul(j,ec)|0,n=n+Math.imul(O,ef)|0,i=(i=i+Math.imul(O,ed)|0)+Math.imul(M,ef)|0,o=o+Math.imul(M,ed)|0,n=n+Math.imul($,ep)|0;var eM=(c+n|0)+((8191&(i=(i=i+Math.imul($,em)|0)+Math.imul(k,ep)|0))<<13)|0;c=((o=o+Math.imul(k,em)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(z,eo),i=(i=Math.imul(z,ea))+Math.imul(L,eo)|0,o=Math.imul(L,ea),n=n+Math.imul(N,el)|0,i=(i=i+Math.imul(N,ec)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,ec)|0,n=n+Math.imul(R,ef)|0,i=(i=i+Math.imul(R,ed)|0)+Math.imul(j,ef)|0,o=o+Math.imul(j,ed)|0,n=n+Math.imul(O,ep)|0;var eI=(c+n|0)+((8191&(i=(i=i+Math.imul(O,em)|0)+Math.imul(M,ep)|0))<<13)|0;c=((o=o+Math.imul(M,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(z,el),i=(i=Math.imul(z,ec))+Math.imul(L,el)|0,o=Math.imul(L,ec),n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(P,ef)|0,o=o+Math.imul(P,ed)|0,n=n+Math.imul(R,ep)|0;var eR=(c+n|0)+((8191&(i=(i=i+Math.imul(R,em)|0)+Math.imul(j,ep)|0))<<13)|0;c=((o=o+Math.imul(j,em)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(z,ef),i=(i=Math.imul(z,ed))+Math.imul(L,ef)|0,o=Math.imul(L,ed),n=n+Math.imul(N,ep)|0;var ej=(c+n|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(P,ep)|0))<<13)|0;c=((o=o+Math.imul(P,em)|0)+(i>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,n=Math.imul(z,ep);var eT=(c+n|0)+((8191&(i=(i=Math.imul(z,em))+Math.imul(L,ep)|0))<<13)|0;return c=((o=Math.imul(L,em))+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,l[0]=eg,l[1]=eb,l[2]=ev,l[3]=ey,l[4]=ew,l[5]=ex,l[6]=eA,l[7]=eE,l[8]=e_,l[9]=eS,l[10]=e$,l[11]=ek,l[12]=eC,l[13]=eO,l[14]=eM,l[15]=eI,l[16]=eR,l[17]=ej,l[18]=eT,0!==c&&(l[19]=c,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=0x3ffffff&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,f=(0|e.words[u])*(0|t.words[c]),d=0x3ffffff&f;a=a+(f/0x4000000|0)|0,s=0x3ffffff&(d=d+s|0),i+=(a=a+(d>>>26)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function w(e,t,r){return y(e,t,r)}function x(e,t){this.x=e,this.y=t}Math.imul||(v=b),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?v(this,e,t):r<63?b(this,e,t):r<1024?y(this,e,t):w(this,e,t)},x.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},x.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},x.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},x.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=l,d=c,h=0;h<a;h++){var p=r[u+h],m=n[u+h],g=r[u+h+a],b=n[u+h+a],v=f*g-d*b;b=f*b+d*g,g=v,r[u+h]=p+g,n[u+h]=m+b,r[u+h+a]=p-g,n[u+h+a]=m-b,h!==s&&(v=l*f-c*d,d=l*d+c*f,f=v)}},x.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},x.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},x.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},x.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},x.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},x.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),l=Array(n),c=Array(n),u=Array(n),f=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,l,n,i),this.transform(c,o,u,f,n,i);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*f[h];l[h]=s[h]*f[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),w(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<0x4000000);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(0x3ffffff&o)+(0x3ffffff&r);r>>=26,r+=(o/0x4000000|0)+(a>>>26),this.words[i]=0x3ffffff&a}return 0!==r&&(this.words[i]=r,this.length++),0===e&&(this.length=1,this._normSign()),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=g(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<<o,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var f=0|this.words[c];this.words[c]=u<<26-o|f>>>o,u=f&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;o-=0x3ffffff&l,s=(o>>26)-(l/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var l=i.length-a.length;if("mod"!==t){(r=new o(null)).length=l+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var u=i.clone()._ishlnsubmul(a,1,l);0===u.negative&&(i=u,r&&(r.words[l]=1));for(var f=l-1;f>=0;f--){var d=(0|i.words[a.length+f])*0x4000000+(0|i.words[a.length+f-1]);for(d=Math.min(d/s|0,0x3ffffff),i._ishlnsubmul(a,d,f);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=d)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=t.mod.abs(),n=e.abs().iushrn(1),i=1&e.words[0],a=r.cmp(n);if(a<0||1===i&&0===a)return t.div;var s=new o(1);return s.negative=this.negative^e.negative,t.div.iadd(s)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0x4000000%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+0x4000000*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),l=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;(r.words[0]&u)==0&&c<26;++c,u<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var f=0,d=1;(i.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new C(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function E(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function O(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},E.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(e,t){e.iushrn(this.n,0,t)},E.prototype.imulK=function(e){return e.imul(this.k)},i(_,E),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(S,E),i($,E),i(k,E),k.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(A[e])return A[e];if("k256"===e)t=new _;else if("p224"===e)t=new S;else if("p192"===e)t=new $;else if("p25519"===e)t=new k;else throw Error("Unknown prime "+e);return A[e]=t,t},C.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},C.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var b=this.pow(f,new o(1).iushln(p-g-1));d=d.redMul(b),f=b.redSqr(),h=h.redMul(f),p=g}return d},C.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,l=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var u=t.words[i],f=c-1;f>=0;f--){var d=u>>f&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){l=0;continue}s<<=1,s|=d,(++l===r||0===i&&0===f)&&(a=this.mul(a,n[s]),l=0,s=0)}c=26}return a},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new O(e)},i(O,C),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},O.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},65442(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(79476);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},87088(e,t,r){var n=r(56608).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(var t=0;t<e.length;e++)e[t]=0}function a(e,t,r,n,i){for(var o,a,s,l,c=r[0],u=r[1],f=r[2],d=r[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],b=4,v=1;v<i;v++)o=c[h>>>24]^u[p>>>16&255]^f[m>>>8&255]^d[255&g]^t[b++],a=c[p>>>24]^u[m>>>16&255]^f[g>>>8&255]^d[255&h]^t[b++],s=c[m>>>24]^u[g>>>16&255]^f[h>>>8&255]^d[255&p]^t[b++],l=c[g>>>24]^u[h>>>16&255]^f[p>>>8&255]^d[255&m]^t[b++],h=o,p=a,m=s,g=l;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[b++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&h])^t[b++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[b++],[o>>>=0,a>>>=0,s>>>=0,l=((n[g>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[b++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var u=e[a],f=e[u],d=e[f],h=257*e[c]^0x1010100*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=0x1010101*d^65537*f^257*u^0x1010100*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=s=1:(a=u^e[e[e[d^u]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=(l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a])^s[o/t|0]<<24):t>6&&o%t==4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],u=0;u<n;u++){var f=n-u,d=i[f-(u%4?0:4)];u<4||f<=4?c[u]=d:c[u]=l.INV_SUB_MIX[0][l.SBOX[d>>>24]]^l.INV_SUB_MIX[1][l.SBOX[d>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[d>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},78182(e,t,r){var n=r(87088),i=r(56608).Buffer,o=r(36334),a=r(91193),s=r(60050),l=r(10460),c=r(56696);function u(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}function f(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var l=8*o,u=i.alloc(8);u.writeUIntBE(l,0,8),n.update(u),e._finID=n.state;var f=i.from(e._finID);return c(f),f}function d(e,t,r,a){o.call(this);var l=i.alloc(4,0);this._cipher=new n.AES(t);var c=this._cipher.encryptBlock(l);this._ghash=new s(c),r=f(this,r,c),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(d,o),d.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&u(e,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=e},d.prototype.setAAD=function(e){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=d},15007(e,t,r){var n=r(85173),i=r(98733),o=r(3349);function a(){return Object.keys(o)}t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=a},98733(e,t,r){var n=r(78182),i=r(56608).Buffer,o=r(76200),a=r(58116),s=r(36334),l=r(87088),c=r(51804);function u(e,t,r){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new l.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function d(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function h(e,t,r){var s=o[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new u(s.module,t,r)}r(91193)(u,s),u.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,e));if(e)throw Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},t.createDecipheriv=h},85173(e,t,r){var n=r(76200),i=r(78182),o=r(56608).Buffer,a=r(58116),s=r(36334),l=r(87088),c=r(51804);function u(e,t,r){s.call(this),this._cache=new d,this._cipher=new l.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(91193)(u,s),u.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new u(s.module,t,r)}function p(e,t){var r=n[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);return h(e,i.key,i.iv)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=p},60050(e,t,r){var n=r(56608).Buffer,i=n.alloc(16,0);function o(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r=o(this.h),n=[0,0,0,0],i=-1;++i<128;){for((this.state[~~(i/8)]&1<<7-i%8)!=0&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),t=(1&r[3])!=0,e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-0x1f000000^r[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},56696(e){e.exports=function(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}},53506(e,t,r){var n=r(10460);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,n(e._cipher.decryptBlock(t),r)}},56149(e,t,r){var n=r(56608).Buffer,i=r(10460);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),e._cache.length<=t.length)i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i);else{a=n.concat([a,o(e,t,r)]);break}return a}},68394(e,t,r){var n=r(56608).Buffer;function i(e,t,r){for(var n,i,a,s=-1,l=8,c=0;++s<l;)n=e._cipher.encryptBlock(e._prev),i=t&1<<7-s?128:0,c+=(128&(a=n[0]^i))>>s%8,e._prev=o(e._prev,r?i:a);return c}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},20193(e,t,r){var n=r(56608).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},5527(e,t,r){var n=r(10460),i=r(56608).Buffer,o=r(56696);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var s=16;t.encrypt=function(e,t){var r=Math.ceil(t.length/s),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(r*s)]);for(var l=0;l<r;l++){var c=a(e),u=o+l*s;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var f=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,f)}},60882(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},76200(e,t,r){var n={ECB:r(60882),CBC:r(53506),CFB:r(56149),CFB8:r(20193),CFB1:r(68394),OFB:r(37481),CTR:r(5527),GCM:r(5527)},i=r(3349);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},37481(e,t,r){var n=r(8963).Buffer,i=r(10460);function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=n.concat([e._cache,o(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),i(t,r)}},58116(e,t,r){var n=r(87088),i=r(56608).Buffer,o=r(36334);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(91193)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},18350(e,t,r){var n=r(34487),i=r(15007),o=r(76200),a=r(13811),s=r(51804);function l(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return u(e,i.key,i.iv)}function c(e,t,r){if(o[e=e.toLowerCase()])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw TypeError("invalid suite type")}function u(e,t,r){if(o[e=e.toLowerCase()])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw TypeError("invalid suite type")}function f(){return Object.keys(a).concat(i.getCiphers())}t.createCipher=t.Cipher=function(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=l,t.createDecipheriv=t.Decipheriv=u,t.listCiphers=t.getCiphers=f},34487(e,t,r){var n=r(36334),i=r(88754),o=r(91193),a=r(56608).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),("des-ede"===r||"des-ede-cbc"===r)&&(o=a.concat([o,o.slice(0,8)]));var l=e.iv;a.isBuffer(l)||(l=a.from(l)),this._des=i.create({key:o,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=l,o(l,n),l.prototype._update=function(e){return a.from(this._des.update(e))},l.prototype._final=function(){return a.from(this._des.final())}},13811(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},38538(e,t,r){"use strict";var n=r(18232),i=r(82869),o=r(56608).Buffer;function a(e){var t,r=e.modulus.byteLength();do t=new n(i(r));while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function l(e,t){var r=s(t),i=t.modulus.byteLength(),a=new n(e).mul(r.blinder).umod(t.modulus),l=a.toRed(n.mont(t.prime1)),c=a.toRed(n.mont(t.prime2)),u=t.coefficient,f=t.prime1,d=t.prime2,h=l.redPow(t.exponent1).fromRed(),p=c.redPow(t.exponent2).fromRed(),m=h.isub(p).imul(u).umod(f).imul(d);return p.iadd(m).imul(r.unblinder).umod(t.modulus).toArrayLike(o,"be",i)}l.getr=a,e.exports=l},31485(e,t,r){"use strict";e.exports=r(64816)},65853(e,t,r){"use strict";var n=r(56608).Buffer,i=r(18955),o=r(9464),a=r(91193),s=r(14504),l=r(45900),c=r(64816);function u(e){o.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){o.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new u(e)}function h(e){return new f(e)}Object.keys(c).forEach(function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),a(u,o.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},u.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(f,o.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},f.prototype.verify=function(e,t,r){var i="string"==typeof t?n.from(t,r):t;return this.end(),l(i,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},14504(e,t,r){"use strict";var n=r(56608).Buffer,i=r(33053),o=r(38538),a=r(23071).ec,s=r(18232),l=r(36169),c=r(8906),u=1;function f(e,t){var r=c[t.curve.join(".")];if(!r)throw Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}function d(e,t,r){for(var n,i=t.params.priv_key,o=t.params.p,a=t.params.q,l=t.params.g,c=new s(0),u=m(e,a).mod(a),f=!1,d=p(i,a,e,r);!1===f;)c=v(l,n=b(a,d,r),o,a),0===(f=n.invm(a).imul(u.add(i.mul(c))).mod(a)).cmpn(0)&&(f=!1,c=new s(0));return h(c,f)}function h(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}function p(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,l=g(r,t),c=n.alloc(s);c.fill(1);var u=n.alloc(s);return u=i(o,u).update(c).update(n.from([0])).update(e).update(l).digest(),c=i(o,u).update(c).digest(),u=i(o,u).update(c).update(n.from([1])).update(e).update(l).digest(),c=i(o,u).update(c).digest(),{k:u,v:c}}function m(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function g(e,t){e=(e=m(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}function b(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=m(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function v(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,i,a){var s=l(t);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");return f(e,s)}if("dsa"===s.type){if("dsa"!==i)throw Error("wrong private key type");return d(e,s,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");if(void 0!==t.padding&&t.padding!==u)throw Error("illegal or unsupported padding mode");e=n.concat([a,e]);for(var c=s.modulus.byteLength(),h=[0,1];e.length+h.length+1<c;)h.push(255);h.push(0);for(var p=-1;++p<e.length;)h.push(e[p]);return o(h,s)},e.exports.getKey=p,e.exports.makeKey=b},45900(e,t,r){"use strict";var n=r(56608).Buffer,i=r(18232),o=r(23071).ec,a=r(36169),s=r(8906);function l(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}function c(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,l=r.data.pub_key,c=a.signature.decode(e,"der"),f=c.s,d=c.r;u(f,o),u(d,o);var h=i.mont(n),p=f.invm(o);return 0===s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(l.toRed(h).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(d)}function u(e,t){if(0>=e.cmpn(0)||e.cmp(t)>=0)throw Error("invalid sig")}e.exports=function(e,t,r,o,s){var u=a(r);if("ec"===u.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");return l(e,t,u)}if("dsa"===u.type){if("dsa"!==o)throw Error("wrong public key type");return c(e,t,u)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");t=n.concat([s,t]);for(var f=u.modulus.byteLength(),d=[1],h=0;t.length+d.length+2<f;)d.push(255),h+=1;d.push(0);for(var p=-1;++p<t.length;)d.push(t[p]);d=n.from(d);var m=i.mont(u.modulus);e=(e=new i(e).toRed(m)).redPow(new i(u.publicExponent));var g=+(h<8);for(f=Math.min((e=n.from(e.fromRed().toArray())).length,d.length),e.length!==d.length&&(g=1),p=-1;++p<f;)g|=e[p]^d[p];return 0===g}},10460(e,t,r){var n=r(8963).Buffer;e.exports=function(e,t){for(var r=Math.min(e.length,t.length),i=new n(r),o=0;o<r;++o)i[o]=e[o]^t[o];return i}},8963(e,t,r){"use strict";var n=r(84933),i=r(63328),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;var a=0x7fffffff;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function l(e){if(e>a)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return g(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return b(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);var i=v(e);if(i)return i;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e,t,r){return(f(e),e<=0)?l(e):void 0!==t?"string"==typeof r?l(e).fill(t,r):l(e).fill(t):l(e)}function h(e){return f(e),l(e<0?0:0|y(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!c.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|x(e,t),n=l(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function m(e){for(var t=e.length<0?0:0|y(e.length),r=l(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function g(e){if(Y(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function b(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),c.prototype),n}function v(e){if(c.isBuffer(e)){var t=0|y(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?l(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function y(e){if(e>=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),c.alloc(+e)}function x(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(i)return n?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function A(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return N(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function E(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function _(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),J(r*=1)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return S(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function S(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else -1!==u&&(o-=o-u),u=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return -1}function $(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(J(s))break;e[r+a]=s}return a}function k(e,t,r,n){return Z(V(t,e.length-r),e,r,n)}function C(e,t,r,n){return Z(K(t),e,r,n)}function O(e,t,r,n){return Z(X(t),e,r,n)}function M(e,t,r,n){return Z(G(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,l,c=e[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return T(n)}t.kMaxLength=0x7fffffff,c.TYPED_ARRAY_SUPPORT=s(),!c.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return d(e,t,r)},c.allocUnsafe=function(e){return h(e)},c.allocUnsafeSlow=function(e){return h(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(Y(o,Uint8Array))i+o.length>n.length?c.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(c.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},c.byteLength=x,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)E(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?R(this,0,e):A.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),l=this.slice(n,i),u=e.slice(t,r),f=0;f<s;++f)if(l[f]!==u[f]){o=l[f],a=u[f];break}return o<a?-1:+(a<o)},c.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return _(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return $(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return C(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function T(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j));return r}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function B(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=Q[e[o]];return i}function z(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function L(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function D(e,t,r,n,i,o){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function F(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function H(e,t,r,n,o){return t*=1,r>>>=0,o||F(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function U(e,t,r,n,o){return t*=1,r>>>=0,o||F(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return(e>>>=0,t||L(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;D(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;D(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=c.isBuffer(e)?e:c.from(e,n),s=a.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var q=/[^+/0-9A-Za-z-_]/g;function W(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function V(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function K(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function G(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}function X(e){return n.toByteArray(W(e))}function Z(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},36533(e,t,r){"use strict";let n=r(84933),i=r(63328),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;let a=0x7fffffff;function s(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function l(e){if(e>a)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return g(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ea(e,ArrayBuffer)||e&&ea(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(ea(e,SharedArrayBuffer)||e&&ea(e.buffer,SharedArrayBuffer)))return b(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);let i=v(e);if(i)return i;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e,t,r){return(f(e),e<=0)?l(e):void 0!==t?"string"==typeof r?l(e).fill(t,r):l(e).fill(t):l(e)}function h(e){return f(e),l(e<0?0:0|y(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!c.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|x(e,t),n=l(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function m(e){let t=e.length<0?0:0|y(e.length),r=l(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function g(e){if(ea(e,Uint8Array)){let t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function b(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),c.prototype),n}function v(e){if(c.isBuffer(e)){let t=0|y(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||es(e.length)?l(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function y(e){if(e>=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),c.alloc(+e)}function x(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ea(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return et(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ei(e).length;default:if(i)return n?-1:et(e).length;t=(""+t).toLowerCase(),i=!0}}function A(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return N(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function E(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function _(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),es(r*=1)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return S(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function S(e,t,r,n,i){let o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===l)return n*a}else -1!==n&&(o-=o-n),n=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;n<l;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return -1}function $(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(es(n))break;e[r+i]=n}return i}function k(e,t,r,n){return eo(et(t,e.length-r),e,r,n)}function C(e,t,r,n){return eo(er(t),e,r,n)}function O(e,t,r,n){return eo(ei(t),e,r,n)}function M(e,t,r,n){return eo(en(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(o=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return T(n)}t.kMaxLength=0x7fffffff,c.TYPED_ARRAY_SUPPORT=s(),!c.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return d(e,t,r)},c.allocUnsafe=function(e){return h(e)},c.allocUnsafeSlow=function(e){return h(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(ea(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),ea(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(ea(t,Uint8Array))i+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(c.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},c.byteLength=x,c.prototype._isBuffer=!0,c.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)E(this,t,t+1);return this},c.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},c.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},c.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?R(this,0,e):A.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(ea(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,s=Math.min(o,a),l=this.slice(n,i),u=e.slice(t,r);for(let e=0;e<s;++e)if(l[e]!==u[e]){o=l[e],a=u[e];break}return o<a?-1:+(a<o)},c.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return _(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return $(this,e,t,r);case"utf8":case"utf-8":return k(this,e,t,r);case"ascii":case"latin1":case"binary":return C(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let j=4096;function T(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j));return r}function N(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function P(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function B(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=el[e[n]];return i}function z(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function L(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function D(e,t,r,n,i,o){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function F(e,t,r,n,i){Z(t,n,i,e,r,7);let o=Number(t&BigInt(0xffffffff));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function H(e,t,r,n,i){Z(t,n,i,e,r,7);let o=Number(t&BigInt(0xffffffff));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function U(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function q(e,t,r,n,o){return t*=1,r>>>=0,o||U(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,o){return t*=1,r>>>=0,o||U(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=ec(function(e){Y(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&J(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=ec(function(e){Y(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&J(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return(e>>>=0,t||L(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=ec(function(e){Y(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&J(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),c.prototype.readBigInt64BE=ec(function(e){Y(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&J(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;D(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;D(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=ec(function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=ec(function(e,t=0){return H(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);D(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);D(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||D(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=ec(function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=ec(function(e,t=0){return H(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let o=c.isBuffer(e)?e:c.from(e,n),a=o.length;if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};let V={};function K(e,t,r){V[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function G(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function X(e,t,r){Y(t,"offset"),(void 0===e[t]||void 0===e[t+r])&&J(t,e.length-(r+1))}function Z(e,t,r,n,i,o){if(e>r||e<t){let n,i="bigint"==typeof t?"n":"";throw n=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new V.ERR_OUT_OF_RANGE("value",n,e)}X(n,i,o)}function Y(e,t){if("number"!=typeof e)throw new V.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,r){if(Math.floor(e)!==e)throw Y(e,r),new V.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new V.ERR_BUFFER_OUT_OF_BOUNDS;throw new V.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${t}`,e)}K("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),K("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),K("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=G(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=G(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let Q=/[^+/0-9A-Za-z-_]/g;function ee(e){if((e=(e=e.split("=")[0]).trim().replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function et(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function er(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function en(e,t){let r,n,i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}function ei(e){return n.toByteArray(ee(e))}function eo(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function ea(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function es(e){return e!=e}let el=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function ec(e){return"u"<typeof BigInt?eu:e}function eu(){throw Error("BigInt not supported")}},97785(e,t,r){"use strict";var n=r(79524),i=r(64811),o=r(46255);e.exports=r(12728)||n.call(o,i)},96440(e,t,r){"use strict";var n=r(79524),i=r(64811),o=r(97785);e.exports=function(){return o(n,i,arguments)}},64811(e){"use strict";e.exports=Function.prototype.apply},46255(e){"use strict";e.exports=Function.prototype.call},92427(e,t,r){"use strict";var n=r(79524),i=r(71102),o=r(46255),a=r(97785);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},12728(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},27926(e,t,r){"use strict";var n=r(49336),i=r(6902),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},6902(e,t,r){"use strict";var n=r(7755),i=r(39886),o=r(92427),a=r(96440);e.exports=function(e){var t=o(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},98801(e,t,r){"use strict";var n=r(49336),i=r(92427),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},36334(e,t,r){"use strict";var n=r(56608).Buffer,i=r(43803).Transform,o=r(86704).StringDecoder,a=r(91193),s=r(26919);function l(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}a(l,i),l.prototype.update=function(e,t,r){var n=s(e,t),i=this._update(n);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},l.prototype.setAutoPadding=function(){},l.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},l.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},l.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},l.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},l.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},l.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},l.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw Error("can’t switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=l},59585(e,t,r){"use strict";var n=r(39687),i={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function a(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}e.exports=function(e,t){var r,s,l,c,u,f,d=!1;t||(t={}),r=t.debug||!1;try{if(l=n(),c=document.createRange(),u=document.getSelection(),(f=document.createElement("span")).textContent=e,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(f),c.selectNodeContents(f),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");d=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),s=a("message"in t?t.message:o),window.prompt(s,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),f&&document.body.removeChild(f),l()}return d}},41166(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(36533).Buffer.isBuffer},29520(e,t,r){var n=r(8963).Buffer,i=r(23071),o=r(46944);e.exports=function(e){return new s(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function l(e,t,r){Array.isArray(e)||(e=e.toArray());var i=new n(e);if(r&&i.length<r){var o=new n(r-i.length);o.fill(0),i=n.concat([o,i])}return t?i.toString(t):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,r){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),l(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),l(r,e)},s.prototype.getPrivateKey=function(e){return l(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",n.isBuffer(e)||(e=new n(e,t));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},18955(e,t,r){"use strict";var n=r(91193),i=r(75035),o=r(47795),a=r(99041),s=r(36334);function l(e){s.call(this,"digest"),this._hash=e}n(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new l(a(e))}},46159(e,t,r){var n=r(75035);e.exports=function(e){return new n().update(e).digest()}},33053(e,t,r){"use strict";var n=r(91193),i=r(670),o=r(36334),a=r(56608).Buffer,s=r(46159),l=r(47795),c=r(99041),u=a.alloc(128);function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,u],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new l:c(e),this._hash.update(n)}n(f,o),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(s,t):new f(e,t)}},670(e,t,r){"use strict";var n=r(91193),i=r(56608).Buffer,o=r(36334),a=i.alloc(128),s=64;function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),l=0;l<s;l++)r[l]=54^t[l],n[l]=92^t[l];this._hash=[r]}n(l,o),l.prototype._update=function(e){this._hash.push(e)},l.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=l},24215(e,t,r){"use strict";n=n=n=r(82869),t.createHash=r(18955);var n=r(33053),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(r(31485)));n=function(){return i};var o=r(2645);n=o.pbkdf2,n=o.pbkdf2Sync;var a=r(18350);n=a.Cipher,n=a.createCipher,n=a.Cipheriv,n=a.createCipheriv,n=a.Decipher,n=a.createDecipher,n=a.Decipheriv,n=a.createDecipheriv,n=a.getCiphers,n=a.listCiphers;var s=r(58216);n=s.DiffieHellmanGroup,n=s.createDiffieHellmanGroup,n=s.getDiffieHellman,n=s.createDiffieHellman,n=s.DiffieHellman;var l=r(65853);n=l.createSign,n=l.Sign,n=l.createVerify,n=l.Verify,r(29520);var c=r(32211);n=c.publicEncrypt,n=c.privateEncrypt,n=c.publicDecrypt,n=c.privateDecrypt;var u=r(44925);n=u.randomFill,n=u.randomFillSync},817(e){!function(t){e.exports=t()}(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},b=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},v={s:b,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+b(n,2,"0")+":"+b(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,c),o=r-i<0,a=t.clone().add(n+(o?-1:1),c);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:c,y:f,w:l,d:s,D:d,h:a,m:o,s:i,ms:n,Q:u})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=g;var x="$isDayjsObject",A=function(e){return e instanceof $||!(!e||!e[x])},E=function e(t,r,n){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),r&&(w[o]=r,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!n&&i&&(y=i),i||!n&&y},_=function(e,t){if(A(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new $(r)},S=v;S.l=E,S.i=A,S.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function g(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var b=g.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return S},b.isValid=function(){return this.$d.toString()!==h},b.isSame=function(e,t){var r=_(e);return this.startOf(t)<=r&&r<=this.endOf(t)},b.isAfter=function(e,t){return _(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<_(e)},b.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var r=this,n=!!S.u(t)||t,u=S.p(e),h=function(e,t){var i=S.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?i:i.endOf(s)},p=function(e,t){return S.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,g=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case f:return n?h(1,0):h(31,11);case c:return n?h(1,g):h(0,g+1);case l:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(n?b-w:b+(6-w),g);case s:case d:return p(v+"Hours",0);case a:return p(v+"Minutes",1);case o:return p(v+"Seconds",2);case i:return p(v+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var r,l=S.p(e),u="set"+(this.$u?"UTC":""),h=((r={})[s]=u+"Date",r[d]=u+"Date",r[c]=u+"Month",r[f]=u+"FullYear",r[a]=u+"Hours",r[o]=u+"Minutes",r[i]=u+"Seconds",r[n]=u+"Milliseconds",r)[l],p=l===s?this.$D+(t-this.$W):t;if(l===c||l===f){var m=this.clone().set(d,1);m.$d[h](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[S.p(e)]()},b.add=function(n,u){var d,h=this;n=Number(n);var p=S.p(u),m=function(e){var t=_(h);return S.w(t.date(t.date()+Math.round(e*n)),h)};if(p===c)return this.set(c,this.$M+n);if(p===f)return this.set(f,this.$y+n);if(p===s)return m(1);if(p===l)return m(7);var g=((d={})[o]=t,d[a]=r,d[i]=e,d)[p]||1,b=this.$d.getTime()+n*g;return S.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,a=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,f=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].slice(0,o)},d=function(e){return S.s(o%12||12,e,"0")},p=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,l,2);case"ddd":return f(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(o,a,!0);case"A":return p(o,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},b.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},b.diff=function(n,d,h){var p,m=this,g=S.p(d),b=_(n),v=(b.utcOffset()-this.utcOffset())*t,y=this-b,w=function(){return S.m(m,b)};switch(g){case f:p=w()/12;break;case c:p=w();break;case u:p=w()/3;break;case l:p=(y-v)/6048e5;break;case s:p=(y-v)/864e5;break;case a:p=y/r;break;case o:p=y/t;break;case i:p=y/e;break;default:p=y}return h?p:S.a(p)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return w[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=E(e,t,!0);return n&&(r.$L=n),r},b.clone=function(){return S.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},g}(),k=$.prototype;return _.prototype=k,[["$ms",n],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",f],["$D",d]].forEach(function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),_.extend=function(e,t){return e.$i||(e(t,$,_),e.$i=!0),_},_.locale=E,_.isDayjs=A,_.unix=function(e){return _(1e3*e)},_.en=w[y],_.Ls=w,_.p={},_})},27617(e,t,r){var n=r(85409);function i(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function a(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}function s(){try{return localStorage}catch(e){}}t.formatArgs=function t(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=o,t.load=a,t.useColors=i,t.storage=s(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(34728)(t);let{formatters:l}=e.exports;l.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},34728(e,t,r){e.exports=function(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return n.colors[Math.abs(t)%n.colors.length]}function n(e){let t,r,o,a=null;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if("%%"===t)return"%";o++;let a=n.formatters[i];if("function"==typeof a){let n=e[o];t=a.call(r,n),e.splice(o,1),o--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=i,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(r!==n.namespaces&&(r=n.namespaces,o=n.enabled(e)),o),set:e=>{a=e}}),"function"==typeof n.init&&n.init(s),s}function i(e,t){let r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function o(e){for(let t of(n.save(e),n.namespaces=e,n.names=[],n.skips=[],("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean)))"-"===t[0]?n.skips.push(t.slice(1)):n.names.push(t)}function a(e,t){let r=0,n=0,i=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}function s(){let e=[...n.names,...n.skips.map(e=>"-"+e)].join(",");return n.enable(""),e}function l(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.debug=n,n.default=n,n.coerce=c,n.disable=s,n.enable=o,n.enabled=l,n.humanize=r(53866),n.destroy=u,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=t,n.enable(n.load()),n}},20022(e,t,r){"use strict";var n=r(39886),i=r(63429),o=r(71102),a=r(25667);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===l&&f?f.writable:!l});else if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},4938(e,t,r){"use strict";var n=r(5187),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(20022),l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)},c=r(491)(),u=function(e,t,r,n){if(t in e){if(!0===n){if(e[t]===r)return}else if(!l(n)||!n())return}c?s(e,t,r,!0):s(e,t,r)},f=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)u(e,o[s],t[o[s]],r[o[s]])};f.supportsDescriptors=!!c,e.exports=f},88754(e,t,r){"use strict";t.utils=r(26012),t.Cipher=r(96242),t.DES=r(7325),t.CBC=r(39015),t.EDE=r(62597)},39015(e,t,r){"use strict";var n=r(35578),i=r(91193),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(var s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(var s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(var s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},96242(e,t,r){"use strict";var n=r(35578);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=Array(((this.bufferOff+e.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},7325(e,t,r){"use strict";var n=r(35578),i=r(91193),o=r(26012),a=r(96242);function s(){this.tmp=[,,],this.keys=null}function l(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(l,a),e.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},l.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},l.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},l.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];o.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var f=o.substitute(c,u),d=o.permute(f),h=s;s=(a^d)>>>0,a=h}o.rip(s,a,n,i)},l.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];o.expand(a,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var f=o.substitute(c,u),d=o.permute(f),h=a;a=(s^d)>>>0,s=h}o.rip(a,s,n,i)}},62597(e,t,r){"use strict";var n=r(35578),i=r(91193),o=r(96242),a=r(7325);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);"encrypt"===e?this.ciphers=[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:this.ciphers=[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function l(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(l,o),e.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},l.prototype._pad=a.prototype._pad,l.prototype._unpad=a.prototype._unpad},26012(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&0xfffffff|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,l=0;l<s;l++)o<<=1,o|=e>>>r[l]&1;for(var l=s;l<r.length;l++)a<<=1,a|=t>>>r[l]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var o=e>>>18-6*i&63,a=n[64*i+o];r<<=4,r|=a}for(var i=0;i<4;i++){var o=t>>>18-6*i&63,a=n[256+64*i+o];r<<=4,r|=a}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},58216(e,t,r){var n=r(8963).Buffer,i=r(25122),o=r(37821),a=r(29242),s={binary:!0,hex:!0,base64:!0};function l(e,t,r,o){return n.isBuffer(t)||void 0===s[t]?l(e,"binary",t,r):(t=t||"binary",o=o||"binary",r=r||new n([2]),n.isBuffer(r)||(r=new n(r,o)),"number"==typeof e)?new a(i(e,r),r,!0):(n.isBuffer(e)||(e=new n(e,t)),new a(e,r,!0))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){return new a(new n(o[e].prime,"hex"),new n(o[e].gen,"hex"))},t.createDiffieHellman=t.DiffieHellman=l},29242(e,t,r){var n=r(8963).Buffer,i=r(46944),o=new(r(74442)),a=new i(24),s=new i(11),l=new i(10),c=new i(3),u=new i(7),f=r(25122),d=r(82869);function h(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new i(e),this}function p(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new i(e),this}e.exports=b;var m={};function g(e,t){var r,n=t.toString("hex"),i=[n,e.toString(16)].join("_");if(i in m)return m[i];var d=0;if(e.isEven()||!f.simpleSieve||!f.fermatTest(e)||!o.test(e))return d+=1,"02"===n||"05"===n?d+=8:d+=4,m[i]=d,d;switch(!o.test(e.shrn(1))&&(d+=2),n){case"02":e.mod(a).cmp(s)&&(d+=8);break;case"05":(r=e.mod(l)).cmp(c)&&r.cmp(u)&&(d+=8);break;default:d+=4}return m[i]=d,d}function b(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function v(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=g(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new i(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var t=new n((e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),r=this.getPrime();if(t.length<r.length){var o=new n(r.length-t.length);o.fill(0),t=n.concat([o,t])}return t},b.prototype.getPublicKey=function(e){return v(this._pub,e)},b.prototype.getPrivateKey=function(e){return v(this._priv,e)},b.prototype.getPrime=function(e){return v(this.__prime,e)},b.prototype.getGenerator=function(e){return v(this._gen,e)},b.prototype.setGenerator=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new i(e),this}},25122(e,t,r){var n=r(82869);e.exports=v,v.simpleSieve=g,v.fermatTest=b;var i=r(46944),o=new i(24),a=new(r(74442)),s=new i(1),l=new i(2),c=new i(5);new i(16),new i(8);var u=new i(10),f=new i(3);new i(7);var d=new i(11),h=new i(4);new i(12);var p=null;function m(){if(null!==p)return p;var e=1048576,t=[];t[0]=2;for(var r=1,n=3;n<e;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;o<r&&t[o]<=i&&n%t[o]!=0;o++);r!==o&&t[o]<=i||(t[r++]=n)}return p=t,t}function g(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r]))if(0!==e.cmpn(t[r]))return!1;else break;return!0}function b(e){var t=i.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function v(e,t){var r,p;if(e<16)if(2===t||5===t)return new i([140,123]);else return new i([140,39]);for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;r.mod(u).cmp(f);)r.iadd(h)}else for(;r.mod(o).cmp(d);)r.iadd(h);if(g(p=r.shrn(1))&&g(r)&&b(p)&&b(r)&&a.test(p)&&a.test(r))return r}}},57678(e,t,r){"use strict";var n,i=r(92427),o=r(25667);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},23071(e,t,r){"use strict";var n=t;n.version=r(23718).rE,n.utils=r(9185),n.rand=r(65442),n.curve=r(95228),n.curves=r(25366),n.ec=r(72961),n.eddsa=r(87808)},94499(e,t,r){"use strict";var n=r(46944),i=r(9185),o=i.getNAF,a=i.getJSF,s=i.assert;function l(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw Error("Not implemented")},l.prototype.validate=function(){throw Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r,n,i=e._getDoubles(),a=o(t,1,this._bitLength),l=(1<<i.step+1)-(i.step%2==0?2:1);l/=3;var c=[];for(r=0;r<a.length;r+=i.step){n=0;for(var u=r+i.step-1;u>=r;u--)n=(n<<1)+a[u];c.push(n)}for(var f=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=l;h>0;h--){for(r=0;r<c.length;r++)(n=c[r])===h?d=d.mixedAdd(i.points[r]):n===-h&&(d=d.mixedAdd(i.points[r].neg()));f=f.add(d)}return f.toP()},l.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),l=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var u=0;c>=0&&0===a[c];c--)u++;if(c>=0&&u++,l=l.dblp(u),c<0)break;var f=a[c];s(0!==f),l="affine"===e.type?f>0?l.mixedAdd(i[f-1>>1]):l.mixedAdd(i[-f-1>>1].neg()):f>0?l.add(i[f-1>>1]):l.add(i[-f-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,r,n,i){var s,l,c,u=this._wnafT1,f=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s<n;s++){var p=(c=t[s])._getNAFPoints(e);u[s]=p.wnd,f[s]=p.points}for(s=n-1;s>=1;s-=2){var m=s-1,g=s;if(1!==u[m]||1!==u[g]){d[m]=o(r[m],u[m],this._bitLength),d[g]=o(r[g],u[g],this._bitLength),h=Math.max(d[m].length,h),h=Math.max(d[g].length,h);continue}var b=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(b[1]=t[m].add(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].add(t[g].neg())):(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=a(r[m],r[g]);for(l=0,h=Math.max(y[0].length,h),d[m]=Array(h),d[g]=Array(h);l<h;l++){var w=0|y[0][l],x=0|y[1][l];d[m][l]=v[(w+1)*3+(x+1)],d[g][l]=0,f[m]=b}}var A=this.jpoint(null,null,null),E=this._wnafT4;for(s=h;s>=0;s--){for(var _=0;s>=0;){var S=!0;for(l=0;l<n;l++)E[l]=0|d[l][s],0!==E[l]&&(S=!1);if(!S)break;_++,s--}if(s>=0&&_++,A=A.dblp(_),s<0)break;for(l=0;l<n;l++){var $=E[l];0!==$&&($>0?c=f[l][$-1>>1]:$<0&&(c=f[l][-$-1>>1].neg()),A="affine"===c.type?A.mixedAdd(c):A.add(c))}}for(s=0;s<n;s++)f[s]=null;return i?A:A.toP()},l.BasePoint=c,c.prototype.eq=function(){throw Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},83544(e,t,r){"use strict";var n=r(9185),i=r(46944),o=r(91193),a=r(94499),s=n.assert;function l(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(l,a),e.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero))if(!t)return this.point(this.zero,e);else throw Error("invalid point");var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),l=i.redMul(a),c=o.redMul(s),u=i.redMul(s),f=a.redMul(o);return this.curve.point(l,c,f,u)},c.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(l);this.zOne?(e=a.redSub(s).redSub(l).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(l)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(l).redMul(o),t=c.redMul(n.redSub(l)),r=c.redMul(o))}else n=s.redAdd(l),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(l)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),l=r.redAdd(t),c=o.redMul(a),u=s.redMul(l),f=o.redMul(l),d=a.redMul(s);return this.curve.point(c,u,d,f)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),l=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=l.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(l).redMul(c)),this.curve.point(f,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},95228(e,t,r){"use strict";var n=t;n.base=r(94499),n.short=r(53970),n.mont=r(50536),n.edwards=r(83544)},50536(e,t,r){"use strict";var n=r(46944),i=r(91193),o=r(94499),a=r(9185);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(l,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},l.prototype.add=function(){throw Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),l=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},l.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},53970(e,t,r){"use strict";var n=r(9185),i=r(46944),o=r(91193),a=r(94499),s=n.assert;function l(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(l,a),e.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,l,c,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),b=new i(1),v=0;0!==d.cmpn(0);){var y=h.div(d);c=h.sub(y.mul(d)),u=g.sub(y.mul(p));var w=b.sub(y.mul(m));if(!n&&0>c.cmp(f))t=l.neg(),r=p,n=c.neg(),o=u;else if(n&&2==++v)break;l=c,h=d,d=c,g=p,p=u,b=m,m=w}a=c.neg(),s=u;var x=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(x)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),l=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),n[2*o]=s,n[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return c},o(c,a.BasePoint),l.prototype.point=function(e,t,r){return new c(this,e,t,r)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),l.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))if(0!==l.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var c=s.redSqr(),u=c.redMul(s),f=n.redMul(c),d=l.redSqr().redIAdd(u).redISub(f).redISub(f),h=l.redMul(f.redISub(d)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))if(0!==s.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var l=a.redSqr(),c=l.redMul(a),u=r.redMul(l),f=s.redSqr().redIAdd(c).redISub(u).redISub(u),d=s.redMul(u.redISub(f)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var u=o.redSqr(),f=c.redSqr(),d=f.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),p=o.redMul(f),m=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=h.redMul(g);b=b.redIAdd(b).redISub(d);var v=c.redMul(s);t+1<e&&(l=l.redMul(d)),o=m,s=v,c=b}return this.curve.jpoint(o,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(u).redISub(d);h=h.redIAdd(h);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(u).redMul(this.x.redAdd(u));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var g=f.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(u),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,h,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,d,h)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},25366(e,t,r){"use strict";var n,i=t,o=r(61631),a=r(95228),s=r(9185).assert;function l(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new l(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(67153)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},72961(e,t,r){"use strict";var n=r(46944),i=r(52519),o=r(9185),a=r(25366),s=r(65442),l=o.assert,c=r(5666),u=r(44375);function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(l(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=f,f.prototype.keyPair=function(e){return new c(this,e)},f.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t,r){if(n.isBN(e)||"number"==typeof e)i=(e=new n(e,16)).byteLength();else if("object"==typeof e)i=e.length,e=new n(e,16);else{var i,o=e.toString();i=o.length+1>>>1,e=new n(o,16)}"number"!=typeof r&&(r=8*i);var a=r-this.n.bitLength();return(a>0&&(e=e.ushrn(a)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof e&&"number"!=typeof e&&!n.isBN(e)){l("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),l(e.length>>>0===e.length);for(var a=0;a<e.length;a++)l((255&e[a])===e[a])}t=this.keyFromPrivate(t,r),l(!(e=this._truncateToN(e,!1,o.msgBitLength)).isNeg(),"Can not sign a negative message");var s=this.n.byteLength(),c=t.getPrivate().toArray("be",s),f=e.toArray("be",s);l(new n(f).eq(e),"Can not sign message");for(var d=new i({hash:this.hash,entropy:c,nonce:f,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),p=0;;p++){var m=o.k?o.k(p):new n(d.generate(this.n.byteLength()));if(0>=(m=this._truncateToN(m,!0)).cmpn(1)||m.cmp(h)>=0)continue;var g=this.g.mul(m);if(!g.isInfinity()){var b=g.getX(),v=b.umod(this.n);if(0!==v.cmpn(0)){var y=m.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var w=!!g.getY().isOdd()|2*(0!==b.cmp(v));return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),w^=1),new u({r:v,s:y,recoveryParam:w})}}}}},f.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o,a=(t=new u(t,"hex")).r,s=t.s;if(0>a.cmpn(1)||a.cmp(this.n)>=0||0>s.cmpn(1)||s.cmp(this.n)>=0)return!1;var l=s.invm(this.n),c=l.mul(e).umod(this.n),f=l.mul(a).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),f)).isInfinity()&&o.eqXToP(a):!(o=this.g.mulAdd(c,r.getPublic(),f)).isInfinity()&&0===o.getX().umod(this.n).cmp(a)},f.prototype.recoverPubKey=function(e,t,r,i){l((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,f=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),m=c.mul(h).umod(o);return this.g.mulAdd(p,s,m)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},5666(e,t,r){"use strict";var n=r(46944),i=r(9185).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},44375(e,t,r){"use strict";var n=r(46944),i=r(9185),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)return void e.push(t);var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=l(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=l(e,r);if(!1===a||(128&e[r.place])!=0)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var u=l(e,r);if(!1===u||e.length!==u+r.place||(128&e[r.place])!=0)return!1;var f=e.slice(r.place,u+r.place);if(0===c[0])if(!(128&c[1]))return!1;else c=c.slice(1);if(0===f[0])if(!(128&f[1]))return!1;else f=f.slice(1);return this.r=new n(c),this.s=new n(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var o=n.concat(r),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},87808(e,t,r){"use strict";var n=r(61631),i=r(25366),o=r(9185),a=o.assert,s=o.parseBytes,l=r(36419),c=r(95406);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),l=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:o})},u.prototype.verify=function(e,t,r){if(e=s(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=128*!!e.getX().isOdd(),t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},36419(e,t,r){"use strict";var n=r(9185),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},95406(e,t,r){"use strict";var n=r(46944),i=r(9185),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(o(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},67153(e){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},9185(e,t,r){"use strict";var n=t,i=r(46944),o=r(35578),a=r(94209);function s(e){return"string"==typeof e?n.toArray(e,"hex"):e}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(a=0;a<n.length;a+=1)n[a]=0;var i=1<<t+1,o=e.clone();for(a=0;a<n.length;a++){var a,s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s,l=e.andln(3)+n&3,c=t.andln(3)+i&3;3===l&&(l=-1),3===c&&(c=-1),a=(1&l)==0?0:(3==(o=e.andln(7)+n&7)||5===o)&&2===c?-l:l,r[0].push(a),s=(1&c)==0?0:(3==(o=t.andln(7)+i&7)||5===o)&&2===l?-c:c,r[1].push(s),2*n===a+1&&(n=1-n),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=s,n.intFromLE=function(e){return new i(e,"hex","le")}},39886(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},38004(e){"use strict";e.exports=EvalError},41488(e){"use strict";e.exports=Error},96469(e){"use strict";e.exports=RangeError},12557(e){"use strict";e.exports=ReferenceError},63429(e){"use strict";e.exports=SyntaxError},71102(e){"use strict";e.exports=TypeError},85966(e){"use strict";e.exports=URIError},33254(e){"use strict";e.exports=Object},80381(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=v,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(l(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,u=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,i(u)}return e}function f(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?b(i):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function b(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function v(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}w(e,t,o,{once:!0}),"error"!==t&&y(e,i,{once:!0})})}function y(e,t,r){"function"==typeof e.on&&w(e,"error",t,r)}function w(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var c=l.length,u=m(l,c),r=0;r<c;++r)n(u[r],this,t);return!0},a.prototype.addListener=function(e,t){return u(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return u(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,a;if(l(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():g(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},51804(e,t,r){var n=r(56608).Buffer,i=r(75035);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),l=n.alloc(o||0),c=n.alloc(0);a>0||o>0;){var u=new i;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,c.length),c.copy(s,d,0,f),a-=f}if(f<c.length&&o>0){var h=l.length-o,p=Math.min(o,c.length-f);c.copy(l,h,f,f+p),o-=p}}return c.fill(0),{key:s,iv:l}}},87196(e,t,r){"use strict";var n=r(22956),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},l=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};function c(e){return"[object Array]"===i.call(e)}e.exports=function(e,t,r){var i;if(!n(t))throw TypeError("iterator must be a function");arguments.length>=3&&(i=r),c(e)?a(e,t,i):"string"==typeof e?s(e,t,i):l(e,t,i)}},69992(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var l,c=this;if("function"!=typeof c||r.apply(c)!==i)throw TypeError(t+c);for(var u=a(arguments,1),f=function(){if(this instanceof l){var t=c.apply(this,o(u,arguments));return Object(t)===t?t:this}return c.apply(e,o(u,arguments))},d=n(0,c.length-u.length),h=[],p=0;p<d;p++)h[p]="$"+p;if(l=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(f),c.prototype){var m=function(){};m.prototype=c.prototype,l.prototype=new m,m.prototype=null}return l}},79524(e,t,r){"use strict";var n=r(69992);e.exports=Function.prototype.bind||n},34899(e){"use strict";let t=(function*(){}).constructor;e.exports=()=>t},49336(e,t,r){"use strict";var n,i=r(33254),o=r(41488),a=r(38004),s=r(96469),l=r(12557),c=r(63429),u=r(71102),f=r(85966),d=r(77412),h=r(52418),p=r(57958),m=r(47384),g=r(250),b=r(51844),v=r(47279),y=Function,w=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=r(25667),A=r(39886),E=function(){throw new u},_=x?function(){try{return arguments.callee,E}catch(e){try{return x(arguments,"callee").get}catch(e){return E}}}():E,S=r(21514)(),$=r(14252),k=r(23752),C=r(60248),O=r(64811),M=r(46255),I={},R="u">typeof Uint8Array&&$?$(Uint8Array):n,j={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&$?$([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":I,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&$?$($([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&S&&$?$(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&S&&$?$(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&$?$(""[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":_,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":O,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":k,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":b,"%Math.sign%":v,"%Reflect.getPrototypeOf%":C};if($)try{null.error}catch(e){var T=$($(e));j["%Error.prototype%"]=T}var N=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&$&&(r=$(i.prototype))}return j[t]=r,r},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=r(79524),z=r(72740),L=B.call(M,Array.prototype.concat),D=B.call(O,Array.prototype.splice),F=B.call(M,String.prototype.replace),H=B.call(M,String.prototype.slice),U=B.call(M,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(e){var t=H(e,0,1),r=H(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return F(e,q,function(e,t,r,i){n[n.length]=r?F(i,W,"$1"):t||e}),n},K=function(e,t){var r,n=e;if(z(P,n)&&(n="%"+(r=P[n])[0]+"%"),z(j,n)){var i=j[n];if(i===I&&(i=N(n)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===U(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=V(e),n=r.length>0?r[0]:"",i=K("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],D(r,L([0,1],l)));for(var f=1,d=!0;f<r.length;f+=1){var h=r[f],p=H(h,0,1),m=H(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(s=!0),n+="."+h,z(j,o="%"+n+"%"))a=j[o];else if(null!=a){if(!(h in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&f+1>=r.length){var g=x(a,h);a=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else d=z(a,h),a=a[h];d&&!s&&(j[o]=a)}}return a}},23752(e,t,r){"use strict";e.exports=r(33254).getPrototypeOf||null},60248(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},14252(e,t,r){"use strict";var n=r(60248),i=r(23752),o=r(57678);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},51333(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},25667(e,t,r){"use strict";var n=r(51333);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},491(e,t,r){"use strict";var n=r(39886),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},21514(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,i=r(9712);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},9712(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var i in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},77185(e,t,r){"use strict";var n=r(9712);e.exports=function(){return n()&&!!Symbol.toStringTag}},57824(e,t,r){"use strict";var n=r(56608).Buffer,i=r(43803).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(91193)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)};var a="u">typeof Uint8Array,s="u">typeof ArrayBuffer&&"u">typeof Uint8Array&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);function l(e,t){if(e instanceof n)return e;if("string"==typeof e)return n.from(e,t);if(s&&ArrayBuffer.isView(e)){if(0===e.byteLength)return n.alloc(0);var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}if(a&&e instanceof Uint8Array||n.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}o.prototype.update=function(e,t){if(this._finalized)throw Error("Digest already called");e=l(e,t);for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var o=0,a=8*e.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/0x100000000|0)>0&&(this._length[o]-=0x100000000*a);return this},o.prototype._update=function(){throw Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=o},41002(e,t,r){"use strict";var n=r(56608).Buffer,i=r(18836),o=r(9464).Transform;function a(e){o.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(91193)(a,o),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(this._finalized)throw Error("Digest already called");for(var r=i(e,t),n=this._block,o=0;this._blockOffset+r.length-o>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a]=r[o],a+=1,o+=1;this._update(),this._blockOffset=0}for(;o<r.length;)n[this._blockOffset]=r[o],this._blockOffset+=1,o+=1;for(var s=0,l=8*r.length;l>0;++s)this._length[s]+=l,(l=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*l);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=a},18836(e,t,r){"use strict";var n=r(56608).Buffer,i=r(26919),o="u">typeof Uint8Array,a=o&&"u">typeof ArrayBuffer&&ArrayBuffer.isView;e.exports=function(e,t){if("string"==typeof e||n.isBuffer(e)||o&&e instanceof Uint8Array||a&&a(e))return i(e,t);throw TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},61631(e,t,r){var n=t;n.utils=r(27905),n.common=r(14427),n.sha=r(61822),n.ripemd=r(47317),n.hmac=r(67309),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},14427(e,t,r){"use strict";var n=r(27905),i=r(35578);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},67309(e,t,r){"use strict";var n=r(27905),i=r(35578);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},47317(e,t,r){"use strict";var n=r(27905),i=r(14427),o=n.rotl32,a=n.sum32,s=n.sum32_3,l=n.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?0x5a827999:e<=47?0x6ed9eba1:e<=63?0x8f1bbcdc:0xa953fd4e}function h(e){return e<=15?0x50a28be6:e<=31?0x5c4dd124:e<=47?0x6d703ef3:0x7a6d76e9*!!(e<=63)}n.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],v=r,y=n,w=i,x=c,A=u,E=0;E<80;E++){var _=a(o(l(r,f(E,n,i,c),e[p[E]+t],d(E)),g[E]),u);r=u,u=c,c=o(i,10),i=n,n=_,_=a(o(l(v,f(79-E,y,w,x),e[m[E]+t],h(E)),b[E]),A),v=A,A=x,x=o(w,10),w=y,y=_}_=s(this.h[1],i,x),this.h[1]=s(this.h[2],c,A),this.h[2]=s(this.h[3],u,v),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],n,w),this.h[0]=_},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},61822(e,t,r){"use strict";t.sha1=r(12750),t.sha224=r(37485),t.sha256=r(77292),t.sha384=r(40696),t.sha512=r(58889)},12750(e,t,r){"use strict";var n=r(27905),i=r(14427),o=r(45660),a=n.rotl32,s=n.sum32,l=n.sum32_5,c=o.ft_1,u=i.BlockHash,f=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}n.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=l(a(i,5),c(p,o,u,d),h,r[n],f[p]);h=d,d=u,u=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},37485(e,t,r){"use strict";var n=r(27905),i=r(77292);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},77292(e,t,r){"use strict";var n=r(27905),i=r(14427),o=r(45660),a=r(35578),s=n.sum32,l=n.sum32_4,c=n.sum32_5,u=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,b=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=b,this.W=Array(64)}n.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],b=this.h[3],v=this.h[4],y=this.h[5],w=this.h[6],x=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var A=c(x,h(v),u(v,y,w),this.k[n],r[n]),E=s(d(i),f(i,o,g));x=w,w=y,y=v,v=s(b,A),b=g,g=o,o=i,i=s(A,E)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],b),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],x)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},40696(e,t,r){"use strict";var n=r(27905),i=r(58889);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},58889(e,t,r){"use strict";var n=r(27905),i=r(14427),o=r(35578),a=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,f=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,b=i.BlockHash,v=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function y(){if(!(this instanceof y))return new y;b.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=v,this.W=Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=0x100000000),o}function x(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=0x100000000),a}function A(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=0x100000000),o}function E(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=0x100000000),a}function _(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=0x100000000),r}function S(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}function $(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=0x100000000),r}function k(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}function C(e,t){var r=a(e,t,1)^a(e,t,8)^l(e,t,7);return r<0&&(r+=0x100000000),r}function O(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=0x100000000),r}function M(e,t){var r=a(e,t,19)^a(t,e,29)^l(e,t,6);return r<0&&(r+=0x100000000),r}function I(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=0x100000000),r}n.inherits(y,b),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=M(r[n-4],r[n-3]),o=I(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],l=C(r[n-30],r[n-29]),c=O(r[n-30],r[n-29]),u=r[n-32],f=r[n-31];r[n]=h(i,o,a,s,l,c,u,f),r[n+1]=p(i,o,a,s,l,c,u,f)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],b=this.h[8],v=this.h[9],y=this.h[10],C=this.h[11],O=this.h[12],M=this.h[13],I=this.h[14],R=this.h[15];o(this.k.length===r.length);for(var j=0;j<r.length;j+=2){var T=I,N=R,P=$(b,v),B=k(b,v),z=w(b,v,y,C,O,M),L=x(b,v,y,C,O,M),D=this.k[j],F=this.k[j+1],H=r[j],U=r[j+1],q=m(T,N,P,B,z,L,D,F,H,U),W=g(T,N,P,B,z,L,D,F,H,U);T=_(n,i),N=S(n,i);var V=f(T,N,P=A(n,i,a,s,l,c),B=E(n,i,a,s,l,c)),K=d(T,N,P,B);I=O,R=M,O=y,M=C,y=b,C=v,b=f(h,p,q,W),v=d(p,p,q,W),h=l,p=c,l=a,c=s,a=n,s=i,n=f(q,W,V,K),i=d(q,W,V,K)}u(this.h,0,n,i),u(this.h,2,a,s),u(this.h,4,l,c),u(this.h,6,h,p),u(this.h,8,b,v),u(this.h,10,y,C),u(this.h,12,O,M),u(this.h,14,I,R)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},45660(e,t,r){"use strict";var n=r(27905).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},27905(e,t,r){"use strict";var n=r(35578);function i(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function o(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(91193),t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:(i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=s(i.toString(16))}return r},t.zero2=a,t.zero8=s,t.join32=function(e,t,r,i){var o,a=r-t;n(a%4==0);for(var s=Array(a/4),l=0,c=t;l<s.length;l++,c+=4)o="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[l]=o>>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=+(o<n)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return+(t+n>>>0<t)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var l,c=t;return e+r+i+a+(l=0+ +((c=c+n>>>0)<t)+ +((c=c+o>>>0)<o)+ +((c=c+s>>>0)<s))>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,l,c){var u,f=t;return e+r+i+a+l+(u=0+ +((f=f+n>>>0)<t)+ +((f=f+o>>>0)<o)+ +((f=f+s>>>0)<s)+ +((f=f+c>>>0)<c))>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,l,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},72740(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(79524).call(n,i)},52519(e,t,r){"use strict";var n=r(61631),i=r(94209),o=r(35578);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=0x1000000000000},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},63328(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,f=u>>1,d=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?t+=d/l:t+=d*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}},91193(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},56531(e,t,r){"use strict";var n=r(77185)(),i=r(98801)("Object.prototype.toString"),o=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},22956(e){"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},l=Object.prototype.toString,c="[object Object]",u="[object Function]",f="[object GeneratorFunction]",d="[object HTMLAllCollection]",h="[object HTML document.all class]",p="[object HTMLCollection]",m="function"==typeof Symbol&&!!Symbol.toStringTag,g=!(0 in[,]),b=function(){return!1};if("object"==typeof document){var v=document.all;l.call(v)===l.call(document.all)&&(b=function(e){if((g||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return(t===d||t===h||t===p||t===c)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(b(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(b(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(m)return s(e);if(a(e))return!1;var t=l.call(e);return(t===u||t===f||!!/^\[object HTML/.test(t))&&s(e)}},51646(e,t,r){"use strict";var n=r(98801),i=r(43282)(/^\s*(?:function)?\*/),o=r(77185)(),a=r(14252),s=n("Object.prototype.toString"),l=n("Function.prototype.toString"),c=r(34899);e.exports=function(e){if("function"!=typeof e)return!1;if(i(l(e)))return!0;if(!o)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=c();return t&&a(e)===t.prototype}},84770(e){"use strict";e.exports=function(e){return e!=e}},14954(e,t,r){"use strict";var n=r(6902),i=r(4938),o=r(84770),a=r(2219),s=r(54445),l=n(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},2219(e,t,r){"use strict";var n=r(84770);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},54445(e,t,r){"use strict";var n=r(4938),i=r(2219);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},10092(e,t,r){"use strict";var n,i=r(98801),o=r(77185)(),a=r(72740),s=r(25667);if(o){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},f={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=u),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,f)}catch(e){return e===c}}}else{var d=i("Object.prototype.toString"),h="[object RegExp]";n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&d(e)===h}}e.exports=n},40006(e,t,r){"use strict";var n=r(52412);e.exports=function(e){return!!n(e)}},85101(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},16111(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},87086(e,t,r){var n=r(85409);!function(){"use strict";var t="input is invalid type",i="object"==typeof window,o=i?window:{};o.JS_SHA256_NO_WINDOW&&(i=!1);var a=!i&&"object"==typeof self,s=!o.JS_SHA256_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node;s?o=r.g:a&&(o=self);var l=!o.JS_SHA256_NO_COMMON_JS&&e.exports,c="function"==typeof define&&define.amd,u=!o.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,f="0123456789abcdef".split(""),d=[-0x80000000,8388608,32768,128],h=[24,16,8,0],p=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],m=["hex","array","digest","arrayBuffer"],g=[];(o.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),u&&(o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var b=function(e,t){return function(r){return new A(t,!0).update(r)[e]()}},v=function(e){var t=b("hex",e);s&&(t=y(t,e)),t.create=function(){return new A(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r<m.length;++r){var n=m[r];t[n]=b(n,e)}return t},y=function(e,n){var i,a=r(17407),s=r(26122).Buffer,l=n?"sha224":"sha256";return i=s.from&&!o.JS_SHA256_NO_BUFFER_FROM?s.from:function(e){return new s(e)},function(r){if("string"==typeof r)return a.createHash(l).update(r,"utf8").digest("hex");if(null==r)throw Error(t);return r.constructor===ArrayBuffer&&(r=new Uint8Array(r)),Array.isArray(r)||ArrayBuffer.isView(r)||r.constructor===s?a.createHash(l).update(i(r)).digest("hex"):e(r)}},w=function(e,t){return function(r,n){return new E(r,t,!0).update(n)[e]()}},x=function(e){var t=w("hex",e);t.create=function(t){return new E(t,e)},t.update=function(e,r){return t.create(e).update(r)};for(var r=0;r<m.length;++r){var n=m[r];t[n]=w(n,e)}return t};function A(e,t){t?(g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=0xc1059ed8,this.h1=0x367cd507,this.h2=0x3070dd17,this.h3=0xf70e5939,this.h4=0xffc00b31,this.h5=0x68581511,this.h6=0x64f98fa7,this.h7=0xbefa4fa4):(this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function E(e,r,n){var i,o=typeof e;if("string"===o){var a,s=[],l=e.length,c=0;for(i=0;i<l;++i)(a=e.charCodeAt(i))<128?s[c++]=a:(a<2048?s[c++]=192|a>>>6:(a<55296||a>=57344?s[c++]=224|a>>>12:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++i)),s[c++]=240|a>>>18,s[c++]=128|a>>>12&63),s[c++]=128|a>>>6&63),s[c++]=128|63&a);e=s}else if("object"===o){if(null===e)throw Error(t);else if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);e.length>64&&(e=new A(r,!0).update(e).array());var f=[],d=[];for(i=0;i<64;++i){var h=e[i]||0;f[i]=92^h,d[i]=54^h}A.call(this,r,n),this.update(d),this.oKeyPad=f,this.inner=!0,this.sharedMemory=n}A.prototype.update=function(e){if(!this.finalized){var r,n=typeof e;if("string"!==n){if("object"===n){if(null===e)throw Error(t);else if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw Error(t)}else throw Error(t);r=!0}for(var i,o,a=0,s=e.length,l=this.blocks;a<s;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,this.block=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),r)for(o=this.start;a<s&&o<64;++a)l[o>>>2]|=e[a]<<h[3&o++];else for(o=this.start;a<s&&o<64;++a)(i=e.charCodeAt(a))<128?l[o>>>2]|=i<<h[3&o++]:(i<2048?l[o>>>2]|=(192|i>>>6)<<h[3&o++]:(i<55296||i>=57344?l[o>>>2]|=(224|i>>>12)<<h[3&o++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++a)),l[o>>>2]|=(240|i>>>18)<<h[3&o++],l[o>>>2]|=(128|i>>>12&63)<<h[3&o++]),l[o>>>2]|=(128|i>>>6&63)<<h[3&o++]),l[o>>>2]|=(128|63&i)<<h[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=l[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=d[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},A.prototype.hash=function(){var e,t,r,n,i,o,a,s,l,c,u,f=this.h0,d=this.h1,h=this.h2,m=this.h3,g=this.h4,b=this.h5,v=this.h6,y=this.h7,w=this.blocks;for(e=16;e<64;++e)t=((i=w[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,r=((i=w[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,w[e]=w[e-16]+t+w[e-7]+r|0;for(e=0,u=d&h;e<64;e+=4)this.first?(this.is224?(s=300032,y=(i=w[0]-0x543c9a5b)-0x8f1a6c7|0,m=i+0x170e9b5|0):(s=0x2a01a605,y=(i=w[0]-0xc881298)-0x5ab00ac6|0,m=i+0x8909ae5|0),this.first=!1):(t=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=(s=f&d)^f&h^u,i=y+r+(a=g&b^~g&v)+p[e]+w[e],o=t+n,y=m+i|0,m=i+o|0),t=(m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10),r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),n=(l=m&f)^m&d^s,i=v+r+(a=y&g^~y&b)+p[e+1]+w[e+1],o=t+n,v=h+i|0,t=((h=i+o|0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),n=(c=h&m)^h&f^l,i=b+r+(a=v&y^~v&g)+p[e+2]+w[e+2],o=t+n,b=d+i|0,t=((d=i+o|0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),n=(u=d&h)^d&m^c,i=g+r+(a=b&v^~b&y)+p[e+3]+w[e+3],o=t+n,g=f+i|0,f=i+o|0,this.chromeBugWorkAround=!0;this.h0=this.h0+f|0,this.h1=this.h1+d|0,this.h2=this.h2+h|0,this.h3=this.h3+m|0,this.h4=this.h4+g|0,this.h5=this.h5+b|0,this.h6=this.h6+v|0,this.h7=this.h7+y|0},A.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=f[e>>>28&15]+f[e>>>24&15]+f[e>>>20&15]+f[e>>>16&15]+f[e>>>12&15]+f[e>>>8&15]+f[e>>>4&15]+f[15&e]+f[t>>>28&15]+f[t>>>24&15]+f[t>>>20&15]+f[t>>>16&15]+f[t>>>12&15]+f[t>>>8&15]+f[t>>>4&15]+f[15&t]+f[r>>>28&15]+f[r>>>24&15]+f[r>>>20&15]+f[r>>>16&15]+f[r>>>12&15]+f[r>>>8&15]+f[r>>>4&15]+f[15&r]+f[n>>>28&15]+f[n>>>24&15]+f[n>>>20&15]+f[n>>>16&15]+f[n>>>12&15]+f[n>>>8&15]+f[n>>>4&15]+f[15&n]+f[i>>>28&15]+f[i>>>24&15]+f[i>>>20&15]+f[i>>>16&15]+f[i>>>12&15]+f[i>>>8&15]+f[i>>>4&15]+f[15&i]+f[o>>>28&15]+f[o>>>24&15]+f[o>>>20&15]+f[o>>>16&15]+f[o>>>12&15]+f[o>>>8&15]+f[o>>>4&15]+f[15&o]+f[a>>>28&15]+f[a>>>24&15]+f[a>>>20&15]+f[a>>>16&15]+f[a>>>12&15]+f[a>>>8&15]+f[a>>>4&15]+f[15&a];return this.is224||(l+=f[s>>>28&15]+f[s>>>24&15]+f[s>>>20&15]+f[s>>>16&15]+f[s>>>12&15]+f[s>>>8&15]+f[s>>>4&15]+f[15&s]),l},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a];return this.is224||l.push(s>>>24&255,s>>>16&255,s>>>8&255,255&s),l},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},E.prototype=new A,E.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();A.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),A.prototype.finalize.call(this)}};var _=v();_.sha256=_,_.sha224=v(!0),_.sha256.hmac=x(),_.sha224.hmac=x(!0),l?e.exports=_:(o.sha256=_.sha256,o.sha224=_.sha224,c&&define(function(){return _}))}()},68094(e){var t="[object Number]",r=Object.prototype.toString;function n(e){return!!e&&"object"==typeof e}e.exports=function(e){return"number"==typeof e||n(e)&&r.call(e)==t}},77412(e){"use strict";e.exports=Math.abs},52418(e){"use strict";e.exports=Math.floor},19313(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},57958(e){"use strict";e.exports=Math.max},47384(e){"use strict";e.exports=Math.min},250(e){"use strict";e.exports=Math.pow},51844(e){"use strict";e.exports=Math.round},47279(e,t,r){"use strict";var n=r(19313);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},75035(e,t,r){"use strict";var n=r(91193),i=r(57824),o=r(56608).Buffer,a=Array(16);function s(){i.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function l(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return l(e+(t&r|~t&n)+i+o|0,a)+t|0}function u(e,t,r,n,i,o,a){return l(e+(t&n|r&~n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return l(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return l(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],0xd76aa478,7),o=c(o,r,n,i,e[1],0xe8c7b756,12),i=c(i,o,r,n,e[2],0x242070db,17),n=c(n,i,o,r,e[3],0xc1bdceee,22),r=c(r,n,i,o,e[4],0xf57c0faf,7),o=c(o,r,n,i,e[5],0x4787c62a,12),i=c(i,o,r,n,e[6],0xa8304613,17),n=c(n,i,o,r,e[7],0xfd469501,22),r=c(r,n,i,o,e[8],0x698098d8,7),o=c(o,r,n,i,e[9],0x8b44f7af,12),i=c(i,o,r,n,e[10],0xffff5bb1,17),n=c(n,i,o,r,e[11],0x895cd7be,22),r=c(r,n,i,o,e[12],0x6b901122,7),o=c(o,r,n,i,e[13],0xfd987193,12),i=c(i,o,r,n,e[14],0xa679438e,17),n=c(n,i,o,r,e[15],0x49b40821,22),r=u(r,n,i,o,e[1],0xf61e2562,5),o=u(o,r,n,i,e[6],0xc040b340,9),i=u(i,o,r,n,e[11],0x265e5a51,14),n=u(n,i,o,r,e[0],0xe9b6c7aa,20),r=u(r,n,i,o,e[5],0xd62f105d,5),o=u(o,r,n,i,e[10],0x2441453,9),i=u(i,o,r,n,e[15],0xd8a1e681,14),n=u(n,i,o,r,e[4],0xe7d3fbc8,20),r=u(r,n,i,o,e[9],0x21e1cde6,5),o=u(o,r,n,i,e[14],0xc33707d6,9),i=u(i,o,r,n,e[3],0xf4d50d87,14),n=u(n,i,o,r,e[8],0x455a14ed,20),r=u(r,n,i,o,e[13],0xa9e3e905,5),o=u(o,r,n,i,e[2],0xfcefa3f8,9),i=u(i,o,r,n,e[7],0x676f02d9,14),n=u(n,i,o,r,e[12],0x8d2a4c8a,20),r=f(r,n,i,o,e[5],0xfffa3942,4),o=f(o,r,n,i,e[8],0x8771f681,11),i=f(i,o,r,n,e[11],0x6d9d6122,16),n=f(n,i,o,r,e[14],0xfde5380c,23),r=f(r,n,i,o,e[1],0xa4beea44,4),o=f(o,r,n,i,e[4],0x4bdecfa9,11),i=f(i,o,r,n,e[7],0xf6bb4b60,16),n=f(n,i,o,r,e[10],0xbebfbc70,23),r=f(r,n,i,o,e[13],0x289b7ec6,4),o=f(o,r,n,i,e[0],0xeaa127fa,11),i=f(i,o,r,n,e[3],0xd4ef3085,16),n=f(n,i,o,r,e[6],0x4881d05,23),r=f(r,n,i,o,e[9],0xd9d4d039,4),o=f(o,r,n,i,e[12],0xe6db99e5,11),i=f(i,o,r,n,e[15],0x1fa27cf8,16),n=f(n,i,o,r,e[2],0xc4ac5665,23),r=d(r,n,i,o,e[0],0xf4292244,6),o=d(o,r,n,i,e[7],0x432aff97,10),i=d(i,o,r,n,e[14],0xab9423a7,15),n=d(n,i,o,r,e[5],0xfc93a039,21),r=d(r,n,i,o,e[12],0x655b59c3,6),o=d(o,r,n,i,e[3],0x8f0ccc92,10),i=d(i,o,r,n,e[10],0xffeff47d,15),n=d(n,i,o,r,e[1],0x85845dd1,21),r=d(r,n,i,o,e[8],0x6fa87e4f,6),o=d(o,r,n,i,e[15],0xfe2ce6e0,10),i=d(i,o,r,n,e[6],0xa3014314,15),n=d(n,i,o,r,e[13],0x4e0811a1,21),r=d(r,n,i,o,e[4],0xf7537e82,6),o=d(o,r,n,i,e[11],0xbd3af235,10),i=d(i,o,r,n,e[2],0x2ad7d2bb,15),n=d(n,i,o,r,e[9],0xeb86d391,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},74442(e,t,r){var n=r(46944),i=r(65442);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0);return r},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var c=e.shrn(l),u=s.toRed(o),f=!0;t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var h=d.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(u)){for(var p=1;p<l;p++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(u))break}if(p===l)return!1}}return f},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var l=e.shrn(s),c=a.toRed(i);t>0;t--){var u=this._randrange(new n(2),a),f=e.gcd(u);if(0!==f.cmpn(1))return f;var d=u.toRed(i).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var h=1;h<s;h++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(c))break}if(h===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},35578(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},94209(e,t){"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},53866(e){var t=1e3,r=6e4,n=36e5,i=864e5,o=6048e5,a=315576e5;function s(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var l=parseFloat(s[1]),c=(s[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function l(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}function c(e){var o=Math.abs(e);return o>=i?u(e,o,i,"day"):o>=n?u(e,o,n,"hour"):o>=r?u(e,o,r,"minute"):o>=t?u(e,o,t,"second"):e+" ms"}function u(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return s(e);if("number"===r&&isFinite(e))return t.long?c(e):l(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},30656(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:!!(e===r||t(e)&&t(r))}},19068(e,t,r){"use strict";var n=r(4938),i=r(6902),o=r(30656),a=r(12197),s=r(49235),l=i(a(),Object);n(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},12197(e,t,r){"use strict";var n=r(30656);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},49235(e,t,r){"use strict";var n=r(12197),i=r(4938);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},25717(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(14635),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("u"<typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("u"<typeof window||!h)return f(e);try{return f(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var d=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h<e.length;++h)f.push(String(h));if(n&&e.length>0)for(var m=0;m<e.length;++m)f.push(String(m));else for(var g in e)!(d&&"prototype"===g)&&i.call(e,g)&&f.push(String(g));if(l)for(var b=p(e),v=0;v<u.length;++v)!(b&&"constructor"===u[v])&&i.call(e,u[v])&&f.push(u[v]);return f}}e.exports=n},5187(e,t,r){"use strict";var n=Array.prototype.slice,i=r(14635),o=Object.keys,a=o?function(e){return o(e)}:r(25717),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},14635(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},1924(e,t,r){"use strict";var n=r(5187),i=r(9712)(),o=r(98801),a=r(33254),s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),c=i?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw TypeError("target must be an object");var r=a(e);if(1==arguments.length)return r;for(var o=1;o<arguments.length;++o){var u=a(arguments[o]),f=n(u),d=i&&(a.getOwnPropertySymbols||c);if(d)for(var h=d(u),p=0;p<h.length;++p){var m=h[p];l(u,m)&&s(f,m)}for(var g=0;g<f.length;++g){var b=f[g];if(l(u,b)){var v=u[b];r[b]=v}}}return r}},43921(e,t,r){"use strict";var n=r(1924),i=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var a in i)o+=a;return e!==o},o=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1};e.exports=function(){return!Object.assign||i()||o()?n:Object.assign}},35207(e,t){},28424(e,t,r){"use strict";var n=r(78071);t.certificate=r(93958),t.RSAPrivateKey=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),t.RSAPublicKey=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});var i=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});t.PublicKey=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())}),t.PrivateKey=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())}),t.EncryptedPrivateKey=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),t.DSAPrivateKey=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),t.DSAparam=n.define("DSAparam",function(){this.int()});var o=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.ECPrivateKey=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(o),this.key("publicKey").optional().explicit(1).bitstr())}),t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},93958(e,t,r){"use strict";var n=r(78071),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),l=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(l)}),u=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),f=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),d=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())});e.exports=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())})},19418(e,t,r){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(51804),s=r(15007),l=r(56608).Buffer;e.exports=function(e,t){var r,c=e.toString(),u=c.match(n);if(u){var f="aes"+u[1],d=l.from(u[2],"hex"),h=l.from(u[3].replace(/[\r\n]/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(u[1],10)).key,m=[],g=s.createDecipheriv(f,p,d);m.push(g.update(h)),m.push(g.final()),r=l.concat(m)}else{var b=c.match(o);r=l.from(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},36169(e,t,r){"use strict";var n=r(28424),i=r(1464),o=r(19418),a=r(15007),s=r(2645).pbkdf2Sync,l=r(56608).Buffer,c=1e7;function u(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10);if(n!=n||n<1||n>c)throw RangeError("iteration count must be an integer between 1 and "+c+", got: "+n);var o=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,d=s(t,r,n,parseInt(o.split("-")[1],10)/8,"sha1"),h=a.createDecipheriv(o,d,u),p=[];return p.push(h.update(f)),p.push(h.final()),l.concat(p)}function f(e){"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var t,r,i,a=o(e,t),s=a.tag,c=a.data;switch(s){case"CERTIFICATE":i=n.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!i&&(i=n.PublicKey.decode(c,"der")),r=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=n.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":c=u(c=n.EncryptedPrivateKey.decode(c,"der"),t);case"PRIVATE KEY":switch(r=(i=n.PrivateKey.decode(c,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:n.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=n.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return{curve:(c=n.ECPrivateKey.decode(c,"der")).parameters.value,privateKey:c.privateKey};default:throw Error("unknown key type "+s)}}f.signature=n.signature,e.exports=f},13078(e,t,r){"use strict";var n=r(85409);function i(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else if(47===r)break;else r=47;if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2)){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}function a(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}var s={resolve:function(){for(var e,t,r="",a=!1,s=arguments.length-1;s>=-1&&!a;s--)s>=0?t=arguments[s]:(void 0===e&&(e=n.cwd()),t=e),i(t),0!==t.length&&(r=t+"/"+r,a=47===t.charCodeAt(0));if(r=o(r,!a),a)if(r.length>0)return"/"+r;else return"/";return r.length>0?r:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return(0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t)?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];i(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t||(e=s.resolve(e))===(t=s.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,o=n-r,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,c=o<l?o:l,u=-1,f=0;f<=c;++f){if(f===c){if(l>c){if(47===t.charCodeAt(a+f))return t.slice(a+f+1);else if(0===f)return t.slice(a+f)}else o>c&&(47===e.charCodeAt(r+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(r+f);if(d!==t.charCodeAt(a+f))break;47===d&&(u=f)}var h="";for(f=r+u+1;f<=n;++f)(f===n||47===e.charCodeAt(f))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(a+u):(a+=u,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){n=a;break}}else o=!1;return -1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');i(e);var r,n=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){n=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return n===o?o=l:-1===o&&(o=e.length),e.slice(n,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(n,o)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===n&&(o=!1,n=s+1),46===l?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1)}return -1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return a("/",e)},parse:function(e){i(e);var t,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n=e.charCodeAt(0),o=47===n;o?(r.root="/",t=1):t=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,f=0;u>=t;--u){if(47===(n=e.charCodeAt(u))){if(!c){s=u+1;break}continue}-1===l&&(c=!1,l=u+1),46===n?-1===a?a=u:1!==f&&(f=1):-1!==a&&(f=-1)}return -1===a||-1===l||0===f||1===f&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,e.exports=s},2645(e,t,r){"use strict";t.pbkdf2=r(31741),t.pbkdf2Sync=r(77511)},31741(e,t,r){"use strict";var n,i,o=r(56608).Buffer,a=r(40447),s=r(28528),l=r(77511),c=r(10019),u=r.g.crypto&&r.g.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function p(e,t,r,n,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return o.from(e)})}function m(e){if(r.g.process&&!r.g.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var t=p(n=n||o.alloc(8),n,10,128,e).then(function(){return!0},function(){return!1});return d[e]=t,t}function g(e,t){e.then(function(e){h()(function(){t(null,e)})},function(e){h()(function(){t(e)})})}e.exports=function(e,t,n,i,o,u){if("function"==typeof o&&(u=o,o=void 0),i=a(n,i),e=c(e,s,"Password"),t=c(t,s,"Salt"),"function"!=typeof u)throw Error("No callback provided to pbkdf2");var d=f[(o=o||"sha1").toLowerCase()];d&&"function"==typeof r.g.Promise?g(m(d).then(function(r){return r?p(e,t,n,i,d):l(e,t,n,i,o)}),u):h()(function(){var r;try{r=l(e,t,n,i,o)}catch(e){u(e);return}u(null,r)})}},28528(e,t,r){"use strict";var n=r(85409);e.exports=r.g.process&&r.g.process.browser?"utf-8":r.g.process&&r.g.process.version?parseInt(n.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8"},40447(e){"use strict";var t=isFinite,r=0x3fffffff;e.exports=function(e,n){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0||!t(e))throw TypeError("Bad iterations");if("number"!=typeof n)throw TypeError("Key length not a number");if(n<0||n>r||n!=n)throw TypeError("Bad key length");return n+0}},77511(e,t,r){"use strict";var n=r(46159),i=r(47795),o=r(99041),a=r(56608).Buffer,s=r(40447),l=r(28528),c=r(10019),u=a.alloc(128),f={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},d={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function h(e){return new i().update(e).digest()}function p(e){function t(t){return o(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?h:"md5"===e?n:t}function m(e,t,r){var n=p(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=n(t):t.length<i&&(t=a.concat([t,u],i));for(var o=a.allocUnsafe(i+f[e]),s=a.allocUnsafe(i+f[e]),l=0;l<i;l++)o[l]=54^t[l],s[l]=92^t[l];var c=a.allocUnsafe(i+r+4);o.copy(c,0,0,i),this.ipad1=c,this.ipad2=o,this.opad=s,this.alg=e,this.blocksize=i,this.hash=n,this.size=f[e]}m.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){n=s(r,n),e=c(e,l,"Password"),t=c(t,l,"Salt");var o=(i||"sha1").toLowerCase(),u=d[o]||o,h=f[u];if("number"!=typeof h||!h)throw TypeError("Digest algorithm not supported: "+i);var p=new m(u,e,t.length),g=a.allocUnsafe(n),b=a.allocUnsafe(t.length+4);t.copy(b,0,0,t.length);for(var v=0,y=h,w=Math.ceil(n/y),x=1;x<=w;x++){b.writeUInt32BE(x,t.length);for(var A=p.run(b,p.ipad1),E=A,_=1;_<r;_++){E=p.run(E,p.ipad2);for(var S=0;S<y;S++)A[S]^=E[S]}A.copy(g,v),v+=y}return g}},10019(e,t,r){"use strict";var n=r(56608).Buffer,i=r(26919),o="u">typeof Uint8Array,a=o&&"u">typeof ArrayBuffer&&ArrayBuffer.isView;e.exports=function(e,t,r){if("string"==typeof e||n.isBuffer(e)||o&&e instanceof Uint8Array||a&&a(e))return i(e,t);throw TypeError(r+" must be a string, a Buffer, a Uint8Array, or a DataView")}},7274(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},9387(e,t,r){"use strict";var n=r(85409);function i(e,t,r,i){if("function"!=typeof e)throw TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return n.nextTick(e);case 2:return n.nextTick(function(){e.call(null,t)});case 3:return n.nextTick(function(){e.call(null,t,r)});case 4:return n.nextTick(function(){e.call(null,t,r,i)});default:for(o=Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return n.nextTick(function(){e.apply(null,o)})}}void 0!==n&&n.version&&0!==n.version.indexOf("v0.")&&(0!==n.version.indexOf("v1.")||0===n.version.indexOf("v1.8."))?e.exports=n:e.exports={nextTick:i}},85409(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function l(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c=[],u=!1,f=-1;function d(){u&&n&&(u=!1,n.length?c=n.concat(c):f=-1,c.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(n=c,c=[];++f<t;)n&&n[f].run();f=-1,t=c.length}n=null,u=!1,l(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},32211(e,t,r){t.publicEncrypt=r(3909),t.privateDecrypt=r(12399),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},28929(e,t,r){var n=r(18955),i=r(56608).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length<t;)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},12399(e,t,r){var n=r(36169),i=r(28929),o=r(67794),a=r(46944),s=r(38538),l=r(18955),c=r(47390),u=r(56608).Buffer;function f(e,t){var r=e.modulus.byteLength(),n=l("sha1").update(u.alloc(0)).digest(),a=n.length;if(0!==t[0])throw Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),f=o(s,i(c,a)),d=o(c,i(f,r-a-1));if(h(n,d.slice(0,a)))throw Error("decryption error");for(var p=a;0===d[p];)p++;if(1!==d[p++])throw Error("decryption error");return d.slice(p)}function d(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw Error("decryption error");return t.slice(i)}function h(e,t){e=u.from(e),t=u.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}e.exports=function(e,t,r){var i,o=e.padding?e.padding:r?1:4,l=n(e),h=l.modulus.byteLength();if(t.length>h||new a(t).cmp(l.modulus)>=0)throw Error("decryption error");i=r?c(new a(t),l):s(t,l);var p=u.alloc(h-i.length);if(i=u.concat([p,i],h),4===o)return f(l,i);if(1===o)return d(l,i,r);if(3===o)return i;throw Error("unknown padding")}},3909(e,t,r){var n=r(36169),i=r(82869),o=r(18955),a=r(28929),s=r(67794),l=r(46944),c=r(47390),u=r(38538),f=r(56608).Buffer;function d(e,t){var r=e.modulus.byteLength(),n=t.length,c=o("sha1").update(f.alloc(0)).digest(),u=c.length,d=2*u;if(n>r-d-2)throw Error("message too long");var h=f.alloc(r-n-d-2),p=r-u-1,m=i(u),g=s(f.concat([c,h,f.alloc(1,1),t],p),a(m,p)),b=s(m,a(g,u));return new l(f.concat([f.alloc(1),b,g],r))}function h(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return n=r?f.alloc(o-i-3,255):p(o-i-3),new l(f.concat([f.from([0,r?1:2]),n,f.alloc(1),t],o))}function p(e){for(var t,r=f.allocUnsafe(e),n=0,o=i(2*e),a=0;n<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(r[n++]=t);return r}e.exports=function(e,t,r){var i,o=e.padding?e.padding:r?1:4,a=n(e);if(4===o)i=d(a,t);else if(1===o)i=h(a,t,r);else if(3===o){if((i=new l(t)).cmp(a.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?u(i,a):c(i,a)}},47390(e,t,r){var n=r(46944),i=r(56608).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},67794(e){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},82869(e,t,r){"use strict";var n=r(85409),i=65536,o=0xffffffff;function a(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var s=r(56608).Buffer,l=r.g.crypto||r.g.msCrypto;function c(e,t){if(e>o)throw RangeError("requested too many random bytes");var r=s.allocUnsafe(e);if(e>0)if(e>i)for(var a=0;a<e;a+=i)l.getRandomValues(r.slice(a,a+i));else l.getRandomValues(r);return"function"==typeof t?n.nextTick(function(){t(null,r)}):r}l&&l.getRandomValues?e.exports=c:e.exports=a},44925(e,t,r){"use strict";var n=r(85409);function i(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(56608),a=r(82869),s=o.Buffer,l=o.kMaxLength,c=r.g.crypto||r.g.msCrypto,u=0xffffffff;function f(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>u||e<0)throw TypeError("offset must be a uint32");if(e>l||e>t)throw RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>u||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>l)throw RangeError("buffer too small")}function h(e,t,n,i){if(!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return f(t,e.length),d(n,t,e.length),p(e,t,n,i)}function p(e,t,r,i){if(n.browser){var o=new Uint8Array(e.buffer,t,r);return(c.getRandomValues(o),i)?void n.nextTick(function(){i(null,e)}):e}return i?void a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)}):(a(r).copy(e,t),e)}function m(e,t,n){if(void 0===t&&(t=0),!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return f(t,e.length),void 0===n&&(n=e.length-t),d(n,t,e.length),p(e,t,n)}c&&c.getRandomValues||!n.browser?(t.randomFill=h,t.randomFillSync=m):(t.randomFill=i,t.randomFillSync=i)},43e3(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(76878),i=r(39317),o=r(19841),a=r(70486),s=r(56284),l=r(30395),c=r.n(l),u=r(3604),f=r(22155),d=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"];let h=(0,f.forwardRef)(function(e,t){var r=e.prefixCls,l=void 0===r?"rc-checkbox":r,h=e.className,p=e.style,m=e.checked,g=e.disabled,b=e.defaultChecked,v=void 0!==b&&b,y=e.type,w=void 0===y?"checkbox":y,x=e.title,A=e.onChange,E=(0,s.A)(e,d),_=(0,f.useRef)(null),S=(0,f.useRef)(null),$=(0,u.A)(v,{value:m}),k=(0,a.A)($,2),C=k[0],O=k[1];(0,f.useImperativeHandle)(t,function(){return{focus:function(e){var t;null==(t=_.current)||t.focus(e)},blur:function(){var e;null==(e=_.current)||e.blur()},input:_.current,nativeElement:S.current}});var M=c()(l,h,(0,o.A)((0,o.A)({},"".concat(l,"-checked"),C),"".concat(l,"-disabled"),g)),I=function(t){g||("checked"in e||O(t.target.checked),null==A||A({target:(0,i.A)((0,i.A)({},e),{},{type:w,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))};return f.createElement("span",{className:M,title:x,style:p,ref:S},f.createElement("input",(0,n.A)({},E,{className:"".concat(l,"-input"),ref:_,onChange:I,disabled:g,checked:!!C,type:w})),f.createElement("span",{className:"".concat(l,"-inner")}))})},73115(e,t,r){"use strict";r.d(t,{A:()=>M,Z:()=>_});var n=r(76878),i=r(70486),o=r(76395),a=r(22155),s=a.createContext({}),l=r(39317),c=r(30395),u=r.n(c),f=r(50977),d=r(65556),h=r(19187),p=r(21634);function m(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function g(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var i=e.document;"number"!=typeof(r=i.documentElement[n])&&(r=i.body[n])}return r}function b(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,i=n.defaultView||n.parentWindow;return r.left+=g(i),r.top+=g(i,!0),r}var v=r(8890),y=r(24366),w=r(75252);let x=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var A={width:0,height:0,overflow:"hidden",outline:"none"},E={outline:"none"};let _=a.forwardRef(function(e,t){var r=e.prefixCls,i=e.className,o=e.style,c=e.title,f=e.ariaId,d=e.footer,h=e.closable,m=e.closeIcon,g=e.onClose,b=e.children,v=e.bodyStyle,_=e.bodyProps,S=e.modalRender,$=e.onMouseDown,k=e.onMouseUp,C=e.holderRef,O=e.visible,M=e.forceRender,I=e.width,R=e.height,j=e.classNames,T=e.styles,N=a.useContext(s).panel,P=(0,w.xK)(C,N),B=(0,a.useRef)(),z=(0,a.useRef)();a.useImperativeHandle(t,function(){return{focus:function(){var e;null==(e=B.current)||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===z.current?B.current.focus({preventScroll:!0}):e||t!==B.current||z.current.focus({preventScroll:!0})}}});var L={};void 0!==I&&(L.width=I),void 0!==R&&(L.height=R);var D=d?a.createElement("div",{className:u()("".concat(r,"-footer"),null==j?void 0:j.footer),style:(0,l.A)({},null==T?void 0:T.footer)},d):null,F=c?a.createElement("div",{className:u()("".concat(r,"-header"),null==j?void 0:j.header),style:(0,l.A)({},null==T?void 0:T.header)},a.createElement("div",{className:"".concat(r,"-title"),id:f},c)):null,H=(0,a.useMemo)(function(){return"object"===(0,y.A)(h)&&null!==h?h:h?{closeIcon:null!=m?m:a.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[h,m,r]),U=(0,p.A)(H,!0),q="object"===(0,y.A)(h)&&h.disabled,W=h?a.createElement("button",(0,n.A)({type:"button",onClick:g,"aria-label":"Close"},U,{className:"".concat(r,"-close"),disabled:q}),H.closeIcon):null,V=a.createElement("div",{className:u()("".concat(r,"-content"),null==j?void 0:j.content),style:null==T?void 0:T.content},W,F,a.createElement("div",(0,n.A)({className:u()("".concat(r,"-body"),null==j?void 0:j.body),style:(0,l.A)((0,l.A)({},v),null==T?void 0:T.body)},_),b),D);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?f:null,"aria-modal":"true",ref:P,style:(0,l.A)((0,l.A)({},o),L),className:u()(r,i),onMouseDown:$,onMouseUp:k},a.createElement("div",{ref:B,tabIndex:0,style:E},a.createElement(x,{shouldUpdate:O||M},S?S(V):V)),a.createElement("div",{tabIndex:0,ref:z,style:A}))});var S=a.forwardRef(function(e,t){var r=e.prefixCls,o=e.title,s=e.style,c=e.className,f=e.visible,d=e.forceRender,h=e.destroyOnClose,p=e.motionName,m=e.ariaId,g=e.onVisibleChanged,y=e.mousePosition,w=(0,a.useRef)(),x=a.useState(),A=(0,i.A)(x,2),E=A[0],S=A[1],$={};function k(){var e=b(w.current);S(y&&(y.x||y.y)?"".concat(y.x-e.left,"px ").concat(y.y-e.top,"px"):"")}return E&&($.transformOrigin=E),a.createElement(v.Ay,{visible:f,onVisibleChanged:g,onAppearPrepare:k,onEnterPrepare:k,forceRender:d,motionName:p,removeOnLeave:h,ref:w},function(i,f){var d=i.className,h=i.style;return a.createElement(_,(0,n.A)({},e,{ref:t,title:o,ariaId:m,prefixCls:r,holderRef:f,style:(0,l.A)((0,l.A)((0,l.A)({},h),s),$),className:u()(c,d)}))})});S.displayName="Content";let $=S,k=function(e){var t=e.prefixCls,r=e.style,i=e.visible,o=e.maskProps,s=e.motionName,c=e.className;return a.createElement(v.Ay,{key:"mask",visible:i,motionName:s,leavedClassName:"".concat(t,"-mask-hidden")},function(e,i){var s=e.className,f=e.style;return a.createElement("div",(0,n.A)({ref:i,style:(0,l.A)((0,l.A)({},f),r),className:u()("".concat(t,"-mask"),s,c)},o))})};r(47773);let C=function(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,o=e.zIndex,s=e.visible,c=void 0!==s&&s,g=e.keyboard,b=void 0===g||g,v=e.focusTriggerAfterClose,y=void 0===v||v,w=e.wrapStyle,x=e.wrapClassName,A=e.wrapProps,E=e.onClose,_=e.afterOpenChange,S=e.afterClose,C=e.transitionName,O=e.animation,M=e.closable,I=void 0===M||M,R=e.mask,j=void 0===R||R,T=e.maskTransitionName,N=e.maskAnimation,P=e.maskClosable,B=void 0===P||P,z=e.maskStyle,L=e.maskProps,D=e.rootClassName,F=e.classNames,H=e.styles,U=(0,a.useRef)(),q=(0,a.useRef)(),W=(0,a.useRef)(),V=a.useState(c),K=(0,i.A)(V,2),G=K[0],X=K[1],Z=(0,d.A)();function Y(){(0,f.A)(q.current,document.activeElement)||(U.current=document.activeElement)}function J(){if(!(0,f.A)(q.current,document.activeElement)){var e;null==(e=W.current)||e.focus()}}function Q(e){if(e)J();else{if(X(!1),j&&U.current&&y){try{U.current.focus({preventScroll:!0})}catch(e){}U.current=null}G&&(null==S||S())}null==_||_(e)}function ee(e){null==E||E(e)}var et=(0,a.useRef)(!1),er=(0,a.useRef)(),en=function(){clearTimeout(er.current),et.current=!0},ei=function(){er.current=setTimeout(function(){et.current=!1})},eo=null;function ea(e){if(b&&e.keyCode===h.A.ESC){e.stopPropagation(),ee(e);return}c&&e.keyCode===h.A.TAB&&W.current.changeActive(!e.shiftKey)}B&&(eo=function(e){et.current?et.current=!1:q.current===e.target&&ee(e)}),(0,a.useEffect)(function(){c&&(X(!0),Y())},[c]),(0,a.useEffect)(function(){return function(){clearTimeout(er.current)}},[]);var es=(0,l.A)((0,l.A)((0,l.A)({zIndex:o},w),null==H?void 0:H.wrapper),{},{display:G?null:"none"});return a.createElement("div",(0,n.A)({className:u()("".concat(r,"-root"),D)},(0,p.A)(e,{data:!0})),a.createElement(k,{prefixCls:r,visible:j&&c,motionName:m(r,T,N),style:(0,l.A)((0,l.A)({zIndex:o},z),null==H?void 0:H.mask),maskProps:L,className:null==F?void 0:F.mask}),a.createElement("div",(0,n.A)({tabIndex:-1,onKeyDown:ea,className:u()("".concat(r,"-wrap"),x,null==F?void 0:F.wrapper),ref:q,onClick:eo,style:es},A),a.createElement($,(0,n.A)({},e,{onMouseDown:en,onMouseUp:ei,ref:W,closable:I,ariaId:Z,prefixCls:r,visible:c&&G,onClose:ee,onVisibleChanged:Q,motionName:m(r,C,O)}))))};var O=function(e){var t=e.visible,r=e.getContainer,l=e.forceRender,c=e.destroyOnClose,u=void 0!==c&&c,f=e.afterClose,d=e.panelRef,h=a.useState(t),p=(0,i.A)(h,2),m=p[0],g=p[1],b=a.useMemo(function(){return{panel:d}},[d]);return(a.useEffect(function(){t&&g(!0)},[t]),l||!u||m)?a.createElement(s.Provider,{value:b},a.createElement(o.A,{open:t||l||m,autoDestroy:!1,getContainer:r,autoLock:t||m},a.createElement(C,(0,n.A)({},e,{destroyOnClose:u,afterClose:function(){null==f||f(),g(!1)}})))):null};O.displayName="Dialog";let M=O},49859(e,t,r){"use strict";r.d(t,{FH:()=>eQ,EF:()=>E,B8:()=>eB,_z:()=>A,Ay:()=>e1,D0:()=>eP,Op:()=>eK,mN:()=>eW});var n,i=r(22155),o=r(76878),a=r(56284),s=r(11369),l=r(95065),c=r(39317),u=r(78944),f=r(11947),d=r(96591),h=r(18663),p=r(93619),m=r(51232),g=r(19841),b=r(54355),v=r(91585),y=r(47773),w="RC_FORM_INTERNAL_HOOKS",x=function(){(0,y.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};let A=i.createContext({getFieldValue:x,getFieldsValue:x,getFieldError:x,getFieldWarning:x,getFieldsError:x,isFieldsTouched:x,isFieldTouched:x,isFieldValidating:x,isFieldsValidating:x,resetFields:x,setFields:x,setFieldValue:x,setFieldsValue:x,validateFields:x,submit:x,getInternalHooks:function(){return x(),{dispatch:x,initEntityValue:x,registerField:x,useSubscribe:x,setInitialValues:x,destroyForm:x,setCallbacks:x,registerWatch:x,getFields:x,setValidateMessages:x,setPreserve:x,getInitialValue:x}}}),E=i.createContext(null);function _(e){return null==e?[]:Array.isArray(e)?e:[e]}function S(e){return e&&!!e._init}var $=r(24366);function k(){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",tel:"%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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var C=k(),O=r(67236),M=r(19184);function I(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}var R=r(3906);function j(e,t,r){if((0,R.A)())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&(0,M.A)(i,r.prototype),i}function T(e){var t="function"==typeof Map?new Map:void 0;return(T=function(e){if(null===e||!I(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return j(e,arguments,(0,O.A)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,M.A)(r,e)})(e)}var N=r(85409),P=/%[sdj%]/g,B=function(){};function z(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var r=e.field;t[r]=t[r]||[],t[r].push(e)}),t}function L(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,o=r.length;return"function"==typeof e?e.apply(null,r):"string"==typeof e?e.replace(P,function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}default:return e}}):e}function D(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}function F(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length||D(t)&&"string"==typeof e&&!e)}function H(e,t,r){var n=[],i=0,o=e.length;function a(e){n.push.apply(n,(0,u.A)(e||[])),++i===o&&r(n)}e.forEach(function(e){t(e,a)})}function U(e,t,r){var n=0,i=e.length;function o(a){if(a&&a.length)return void r(a);var s=n;n+=1,s<i?t(e[s],o):r([])}o([])}function q(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,(0,u.A)(e[r]||[]))}),t}void 0!==N&&N.env;var W=function(e){(0,p.A)(r,e);var t=(0,m.A)(r);function r(e,n){var i;return(0,f.A)(this,r),i=t.call(this,"Async Validation Error"),(0,g.A)((0,h.A)(i),"errors",void 0),(0,g.A)((0,h.A)(i),"fields",void 0),i.errors=e,i.fields=n,i}return(0,d.A)(r)}(T(Error));function V(e,t,r,n,i){if(t.first){var o=new Promise(function(t,o){var a=function(e){return n(e),e.length?o(new W(e,z(e))):t(i)};U(q(e),r,a)});return o.catch(function(e){return e}),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],f=new Promise(function(t,o){var f=function(e){if(u.push.apply(u,e),++c===l)return n(u),u.length?o(new W(u,z(u))):t(i)};s.length||(n(u),t(i)),s.forEach(function(t){var n=e[t];-1!==a.indexOf(t)?U(n,r,f):H(n,r,f)})});return f.catch(function(e){return e}),f}function K(e){return!!(e&&void 0!==e.message)}function G(e,t){for(var r=e,n=0;n<t.length&&void 0!=r;n++)r=r[t[n]];return r}function X(e,t){return function(r){var n;return(n=e.fullFields?G(t,e.fullFields):t[r.field||e.fullField],K(r))?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:"function"==typeof r?r():r,fieldValue:n,field:r.field||e.fullField}}}function Z(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];"object"===(0,$.A)(n)&&"object"===(0,$.A)(e[r])?e[r]=(0,c.A)((0,c.A)({},e[r]),n):e[r]=n}}return e}var Y="enum";let J=function(e,t,r,n,i,o){e.required&&(!r.hasOwnProperty(e.field)||F(t,o||e.type))&&n.push(L(i.messages.required,e.fullField))},Q=function(){if(n)return n;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",i="[a-fA-F\\d]{1,4}",o=["(?:".concat(i,":){7}(?:").concat(i,"|:)"),"(?:".concat(i,":){6}(?:").concat(r,"|:").concat(i,"|:)"),"(?:".concat(i,":){5}(?::").concat(r,"|(?::").concat(i,"){1,2}|:)"),"(?:".concat(i,":){4}(?:(?::").concat(i,"){0,1}:").concat(r,"|(?::").concat(i,"){1,3}|:)"),"(?:".concat(i,":){3}(?:(?::").concat(i,"){0,2}:").concat(r,"|(?::").concat(i,"){1,4}|:)"),"(?:".concat(i,":){2}(?:(?::").concat(i,"){0,3}:").concat(r,"|(?::").concat(i,"){1,5}|:)"),"(?:".concat(i,":){1}(?:(?::").concat(i,"){0,4}:").concat(r,"|(?::").concat(i,"){1,6}|:)"),"(?::(?:(?::".concat(i,"){0,5}:").concat(r,"|(?::").concat(i,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(o.join("|"),")").concat(a),l=new RegExp("(?:^".concat(r,"$)|(?:^").concat(s,"$)")),c=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(s,"$")),f=function(e){return e&&e.exact?l:RegExp("(?:".concat(t(e)).concat(r).concat(t(e),")|(?:").concat(t(e)).concat(s).concat(t(e),")"),"g")};f.v4=function(e){return e&&e.exact?c:RegExp("".concat(t(e)).concat(r).concat(t(e)),"g")},f.v6=function(e){return e&&e.exact?u:RegExp("".concat(t(e)).concat(s).concat(t(e)),"g")};var d="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",p=f.v4().source,m=f.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',x="(?:".concat(d,"|www\\.)").concat(h,"(?:localhost|").concat(p,"|").concat(m,"|").concat(g).concat(b).concat(v,")").concat(y).concat(w);return n=RegExp("(?:^".concat(x,"$)"),"i")};var ee=/^(([^<>()\[\]\\.,;:\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,}))$/,et=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,er=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,en={integer:function(e){return en.number(e)&&parseInt(e,10)===e},float:function(e){return en.number(e)&&!en.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,$.A)(e)&&!en.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(ee)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(et)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(Q())},hex:function(e){return"string"==typeof e&&!!e.match(er)}};let ei=function(e,t,r,n,i){if(e.required&&void 0===t)return void J(e,t,r,n,i);var o=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?en[a](t)||n.push(L(i.messages.types[a],e.fullField,e.type)):a&&(0,$.A)(t)!==e.type&&n.push(L(i.messages.types[a],e.fullField,e.type))},eo={required:J,whitespace:function(e,t,r,n,i){(/^\s+$/.test(t)||""===t)&&n.push(L(i.messages.whitespace,e.fullField))},type:ei,range:function(e,t,r,n,i){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,f="number"==typeof t,d="string"==typeof t,h=Array.isArray(t);if(f?u="number":d?u="string":h&&(u="array"),!u)return!1;h&&(c=t.length),d&&(c=t.replace(l,"_").length),o?c!==e.len&&n.push(L(i.messages[u].len,e.fullField,e.len)):a&&!s&&c<e.min?n.push(L(i.messages[u].min,e.fullField,e.min)):s&&!a&&c>e.max?n.push(L(i.messages[u].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&n.push(L(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,r,n,i){e[Y]=Array.isArray(e[Y])?e[Y]:[],-1===e[Y].indexOf(t)&&n.push(L(i.messages[Y],e.fullField,e[Y].join(", ")))},pattern:function(e,t,r,n,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(L(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||n.push(L(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))}};var ea="enum";let es=function(e,t,r,n,i){var o=e.type,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t,o)&&!e.required)return r();eo.required(e,t,n,a,i,o),F(t,o)||eo.type(e,t,n,a,i)}r(a)},el={string:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t,"string")&&!e.required)return r();eo.required(e,t,n,o,i,"string"),F(t,"string")||(eo.type(e,t,n,o,i),eo.range(e,t,n,o,i),eo.pattern(e,t,n,o,i),!0===e.whitespace&&eo.whitespace(e,t,n,o,i))}r(o)},method:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();eo.required(e,t,n,o,i),void 0!==t&&eo.type(e,t,n,o,i)}r(o)},number:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),F(t)&&!e.required)return r();eo.required(e,t,n,o,i),void 0!==t&&(eo.type(e,t,n,o,i),eo.range(e,t,n,o,i))}r(o)},boolean:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();eo.required(e,t,n,o,i),void 0!==t&&eo.type(e,t,n,o,i)}r(o)},regexp:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();eo.required(e,t,n,o,i),F(t)||eo.type(e,t,n,o,i)}r(o)},integer:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();eo.required(e,t,n,o,i),void 0!==t&&(eo.type(e,t,n,o,i),eo.range(e,t,n,o,i))}r(o)},float:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();eo.required(e,t,n,o,i),void 0!==t&&(eo.type(e,t,n,o,i),eo.range(e,t,n,o,i))}r(o)},array:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();eo.required(e,t,n,o,i,"array"),null!=t&&(eo.type(e,t,n,o,i),eo.range(e,t,n,o,i))}r(o)},object:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();eo.required(e,t,n,o,i),void 0!==t&&eo.type(e,t,n,o,i)}r(o)},enum:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();eo.required(e,t,n,o,i),void 0!==t&&eo[ea](e,t,n,o,i)}r(o)},pattern:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t,"string")&&!e.required)return r();eo.required(e,t,n,o,i),F(t,"string")||eo.pattern(e,t,n,o,i)}r(o)},date:function(e,t,r,n,i){var o,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t,"date")&&!e.required)return r();eo.required(e,t,n,a,i),!F(t,"date")&&(o=t instanceof Date?t:new Date(t),eo.type(e,o,n,a,i),o&&eo.range(e,o.getTime(),n,a,i))}r(a)},url:es,hex:es,email:es,tel:es,required:function(e,t,r,n,i){var o=[],a=Array.isArray(t)?"array":(0,$.A)(t);eo.required(e,t,n,o,i,a),r(o)},any:function(e,t,r,n,i){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();eo.required(e,t,n,o,i)}r(o)}};var ec=function(){function e(t){(0,f.A)(this,e),(0,g.A)(this,"rules",null),(0,g.A)(this,"_messages",C),this.define(t)}return(0,d.A)(e,[{key:"define",value:function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!==(0,$.A)(e)||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(r){var n=e[r];t.rules[r]=Array.isArray(n)?n:[n]})}},{key:"messages",value:function(e){return e&&(this._messages=Z(k(),e)),this._messages}},{key:"validate",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=t,a=n,s=i;if("function"==typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,o),Promise.resolve(o);function l(e){var t=[],r={};function n(e){if(Array.isArray(e)){var r;t=(r=t).concat.apply(r,(0,u.A)(e))}else t.push(e)}for(var i=0;i<e.length;i++)n(e[i]);t.length?(r=z(t),s(t,r)):s(null,o)}if(a.messages){var f=this.messages();f===C&&(f=k()),Z(f,a.messages),a.messages=f}else a.messages=this.messages();var d={};(a.keys||Object.keys(this.rules)).forEach(function(e){var n=r.rules[e],i=o[e];n.forEach(function(n){var a=n;"function"==typeof a.transform&&(o===t&&(o=(0,c.A)({},o)),null!=(i=o[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":(0,$.A)(i)))),(a="function"==typeof a?{validator:a}:(0,c.A)({},a)).validator=r.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=r.getType(a),d[e]=d[e]||[],d[e].push({rule:a,value:i,source:o,field:e}))})});var h={};return V(d,a,function(t,r){var n,i,s,l=t.rule,f=("object"===l.type||"array"===l.type)&&("object"===(0,$.A)(l.fields)||"object"===(0,$.A)(l.defaultField));function d(e,t){return(0,c.A)((0,c.A)({},t),{},{fullField:"".concat(l.fullField,".").concat(e),fullFields:l.fullFields?[].concat((0,u.A)(l.fullFields),[e]):[e]})}function p(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=Array.isArray(n)?n:[n];!a.suppressWarning&&i.length&&e.warning("async-validator:",i),i.length&&void 0!==l.message&&null!==l.message&&(i=[].concat(l.message));var s=i.map(X(l,o));if(a.first&&s.length)return h[l.field]=1,r(s);if(f){if(l.required&&!t.value)return void 0!==l.message?s=[].concat(l.message).map(X(l,o)):a.error&&(s=[a.error(l,L(a.messages.required,l.field))]),r(s);var p={};l.defaultField&&Object.keys(t.value).map(function(e){p[e]=l.defaultField});var m={};Object.keys(p=(0,c.A)((0,c.A)({},p),t.rule.fields)).forEach(function(e){var t=p[e],r=Array.isArray(t)?t:[t];m[e]=r.map(d.bind(null,e))});var g=new e(m);g.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),g.validate(t.value,t.rule.options||a,function(e){var t=[];s&&s.length&&t.push.apply(t,(0,u.A)(s)),e&&e.length&&t.push.apply(t,(0,u.A)(e)),r(t.length?t:null)})}else r(s)}if(f=f&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)n=l.asyncValidator(l,t.value,p,t.source,a);else if(l.validator){try{n=l.validator(l,t.value,p,t.source,a)}catch(e){null==(i=(s=console).error)||i.call(s,e),a.suppressValidatorError||setTimeout(function(){throw e},0),p(e.message)}!0===n?p():!1===n?p("function"==typeof l.message?l.message(l.fullField||l.field):l.message||"".concat(l.fullField||l.field," fails")):n instanceof Array?p(n):n instanceof Error&&p(n.message)}n&&n.then&&n.then(function(){return p()},function(e){return p(e)})},function(e){l(e)},o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!el.hasOwnProperty(e.type))throw Error(L("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),r=t.indexOf("message");return(-1!==r&&t.splice(r,1),1===t.length&&"required"===t[0])?el.required:el[this.getType(e)]||void 0}}]),e}();(0,g.A)(ec,"register",function(e,t){if("function"!=typeof t)throw Error("Cannot register a validator by type, validator is not a function");el[e]=t}),(0,g.A)(ec,"warning",B),(0,g.A)(ec,"messages",C),(0,g.A)(ec,"validators",el);let eu=ec;var ef="'${name}' is not a valid ${type}",ed={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:ef,method:ef,array:ef,object:ef,number:ef,date:ef,boolean:ef,integer:ef,float:ef,regexp:ef,email:ef,url:ef,hex:ef},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}"}},eh=r(43011),ep=eu;function em(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){return e.startsWith("\\")?e.slice(1):t[e.slice(2,-1)]})}var eg="CODE_LOGIC_ERROR";function eb(e,t,r,n,i){return ev.apply(this,arguments)}function ev(){return(ev=(0,l.A)((0,s.A)().mark(function e(t,r,n,o,a){var l,f,d,h,p,m,b,v,y;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l=(0,c.A)({},n),delete l.ruleIndex,ep.warning=function(){},l.validator&&(f=l.validator,l.validator=function(){try{return f.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(eg)}}),d=null,l&&"array"===l.type&&l.defaultField&&(d=l.defaultField,delete l.defaultField),h=new ep((0,g.A)({},t,[l])),p=(0,eh.h)(ed,o.validateMessages),h.messages(p),m=[],e.prev=10,e.next=13,Promise.resolve(h.validate((0,g.A)({},t,r),(0,c.A)({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(m=e.t0.errors.map(function(e,t){var r=e.message,n=r===eg?p.default:r;return i.isValidElement(n)?i.cloneElement(n,{key:"error_".concat(t)}):n}));case 18:if(!(!m.length&&d&&Array.isArray(r)&&r.length>0)){e.next=23;break}return e.next=21,Promise.all(r.map(function(e,r){return eb("".concat(t,".").concat(r),e,d,o,a)}));case 21:return b=e.sent,e.abrupt("return",b.reduce(function(e,t){return[].concat((0,u.A)(e),(0,u.A)(t))},[]));case 23:return v=(0,c.A)((0,c.A)({},n),{},{name:t,enum:(n.enum||[]).join(", ")},a),y=m.map(function(e){return"string"==typeof e?em(e,v):e}),e.abrupt("return",y);case 26:case"end":return e.stop()}},e,null,[[10,15]])}))).apply(this,arguments)}function ey(e,t,r,n,i,o){var a,u=e.join("."),f=r.map(function(e,t){var r=e.validator,n=(0,c.A)((0,c.A)({},e),{},{ruleIndex:t});return r&&(n.validator=function(e,t,n){var i=!1,o=r(e,t,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];Promise.resolve().then(function(){(0,y.Ay)(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||n.apply(void 0,t)})});i=o&&"function"==typeof o.then&&"function"==typeof o.catch,(0,y.Ay)(i,"`callback` is deprecated. Please return a promise instead."),i&&o.then(function(){n()}).catch(function(e){n(e||" ")})}),n}).sort(function(e,t){var r=e.warningOnly,n=e.ruleIndex,i=t.warningOnly,o=t.ruleIndex;return!!r==!!i?n-o:r?1:-1});if(!0===i)a=new Promise(function(){var e=(0,l.A)((0,s.A)().mark(function e(r,i){var a,l,c;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<f.length)){e.next=12;break}return l=f[a],e.next=5,eb(u,t,l,n,o);case 5:if(!(c=e.sent).length){e.next=9;break}return i([{errors:c,rule:l}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:r([]);case 13:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}());else{var d=f.map(function(e){return eb(u,t,e,n,o).then(function(t){return{errors:t,rule:e}})});a=(i?eA(d):ew(d)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function ew(e){return ex.apply(this,arguments)}function ex(){return(ex=(0,l.A)((0,s.A)().mark(function e(t){return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,(0,u.A)(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function eA(e){return eE.apply(this,arguments)}function eE(){return(eE=(0,l.A)((0,s.A)().mark(function e(t){var r;return(0,s.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=0,e.abrupt("return",new Promise(function(e){t.forEach(function(n){n.then(function(n){n.errors.length&&e([n]),(r+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var e_=r(49447);function eS(e){return _(e)}function e$(e,t){var r={};return t.forEach(function(t){var n=(0,e_.A)(e,t);r=(0,eh.A)(r,t,n)}),r}function ek(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return eC(t,e,r)})}function eC(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!e&&!!t&&(!!r||e.length===t.length)&&t.every(function(t,r){return e[r]===t})}function eO(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||"object"!==(0,$.A)(e)||"object"!==(0,$.A)(t))return!1;var r=new Set([].concat(Object.keys(e),Object.keys(t)));return(0,u.A)(r).every(function(r){var n=e[r],i=t[r];return"function"==typeof n&&"function"==typeof i||n===i})}function eM(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,$.A)(t.target)&&e in t.target?t.target[e]:t}function eI(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],o=t-r;return o>0?[].concat((0,u.A)(e.slice(0,r)),[i],(0,u.A)(e.slice(r,t)),(0,u.A)(e.slice(t+1,n))):o<0?[].concat((0,u.A)(e.slice(0,t)),(0,u.A)(e.slice(t+1,r+1)),[i],(0,u.A)(e.slice(r+1,n))):e}var eR=["name"],ej=[];function eT(e,t,r,n,i,o){return"function"==typeof e?e(t,r,"source"in o?{source:o.source}:{}):n!==i}var eN=function(e){(0,p.A)(r,e);var t=(0,m.A)(r);function r(e){var n;return(0,f.A)(this,r),n=t.call(this,e),(0,g.A)((0,h.A)(n),"state",{resetCount:0}),(0,g.A)((0,h.A)(n),"cancelRegisterFunc",null),(0,g.A)((0,h.A)(n),"mounted",!1),(0,g.A)((0,h.A)(n),"touched",!1),(0,g.A)((0,h.A)(n),"dirty",!1),(0,g.A)((0,h.A)(n),"validatePromise",void 0),(0,g.A)((0,h.A)(n),"prevValidating",void 0),(0,g.A)((0,h.A)(n),"errors",ej),(0,g.A)((0,h.A)(n),"warnings",ej),(0,g.A)((0,h.A)(n),"cancelRegister",function(){var e=n.props,t=e.preserve,r=e.isListField,i=e.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(r,t,eS(i)),n.cancelRegisterFunc=null}),(0,g.A)((0,h.A)(n),"getNamePath",function(){var e=n.props,t=e.name,r=e.fieldContext.prefixName,i=void 0===r?[]:r;return void 0!==t?[].concat((0,u.A)(i),(0,u.A)(t)):[]}),(0,g.A)((0,h.A)(n),"getRules",function(){var e=n.props,t=e.rules,r=void 0===t?[]:t,i=e.fieldContext;return r.map(function(e){return"function"==typeof e?e(i):e})}),(0,g.A)((0,h.A)(n),"refresh",function(){n.mounted&&n.setState(function(e){return{resetCount:e.resetCount+1}})}),(0,g.A)((0,h.A)(n),"metaCache",null),(0,g.A)((0,h.A)(n),"triggerMetaEvent",function(e){var t=n.props.onMetaChange;if(t){var r=(0,c.A)((0,c.A)({},n.getMeta()),{},{destroy:e});(0,v.A)(n.metaCache,r)||t(r),n.metaCache=r}else n.metaCache=null}),(0,g.A)((0,h.A)(n),"onStoreChange",function(e,t,r){var i=n.props,o=i.shouldUpdate,a=i.dependencies,s=void 0===a?[]:a,l=i.onReset,c=r.store,u=n.getNamePath(),f=n.getValue(e),d=n.getValue(c),h=t&&ek(t,u);switch("valueUpdate"===r.type&&"external"===r.source&&!(0,v.A)(f,d)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=ej,n.warnings=ej,n.triggerMetaEvent()),r.type){case"reset":if(!t||h){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=ej,n.warnings=ej,n.triggerMetaEvent(),null==l||l(),n.refresh();return}break;case"remove":if(o&&eT(o,e,c,f,d,r))return void n.reRender();break;case"setField":var p=r.data;if(h){"touched"in p&&(n.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(n.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(n.errors=p.errors||ej),"warnings"in p&&(n.warnings=p.warnings||ej),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}if("value"in p&&ek(t,u,!0)||o&&!u.length&&eT(o,e,c,f,d,r))return void n.reRender();break;case"dependenciesUpdate":if(s.map(eS).some(function(e){return ek(r.relatedFields,e)}))return void n.reRender();break;default:if(h||(!s.length||u.length||o)&&eT(o,e,c,f,d,r))return void n.reRender()}!0===o&&n.reRender()}),(0,g.A)((0,h.A)(n),"validateRules",function(e){var t=n.getNamePath(),r=n.getValue(),i=e||{},o=i.triggerName,a=i.validateOnly,c=void 0!==a&&a,f=Promise.resolve().then((0,l.A)((0,s.A)().mark(function i(){var a,l,c,d,h,p,m;return(0,s.A)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(n.mounted){i.next=2;break}return i.abrupt("return",[]);case 2:if(c=void 0!==(l=(a=n.props).validateFirst)&&l,d=a.messageVariables,h=a.validateDebounce,p=n.getRules(),o&&(p=p.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||_(t).includes(o)})),!(h&&o)){i.next=10;break}return i.next=8,new Promise(function(e){setTimeout(e,h)});case 8:if(n.validatePromise===f){i.next=10;break}return i.abrupt("return",[]);case 10:return(m=ey(t,r,p,e,c,d)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ej;if(n.validatePromise===f){n.validatePromise=null;var t,r=[],i=[];null==(t=e.forEach)||t.call(e,function(e){var t=e.rule.warningOnly,n=e.errors,o=void 0===n?ej:n;t?i.push.apply(i,(0,u.A)(o)):r.push.apply(r,(0,u.A)(o))}),n.errors=r,n.warnings=i,n.triggerMetaEvent(),n.reRender()}}),i.abrupt("return",m);case 13:case"end":return i.stop()}},i)})));return c||(n.validatePromise=f,n.dirty=!0,n.errors=ej,n.warnings=ej,n.triggerMetaEvent(),n.reRender()),f}),(0,g.A)((0,h.A)(n),"isFieldValidating",function(){return!!n.validatePromise}),(0,g.A)((0,h.A)(n),"isFieldTouched",function(){return n.touched}),(0,g.A)((0,h.A)(n),"isFieldDirty",function(){return!!n.dirty||void 0!==n.props.initialValue||void 0!==(0,n.props.fieldContext.getInternalHooks(w).getInitialValue)(n.getNamePath())}),(0,g.A)((0,h.A)(n),"getErrors",function(){return n.errors}),(0,g.A)((0,h.A)(n),"getWarnings",function(){return n.warnings}),(0,g.A)((0,h.A)(n),"isListField",function(){return n.props.isListField}),(0,g.A)((0,h.A)(n),"isList",function(){return n.props.isList}),(0,g.A)((0,h.A)(n),"isPreserve",function(){return n.props.preserve}),(0,g.A)((0,h.A)(n),"getMeta",function(){return n.prevValidating=n.isFieldValidating(),{touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:null===n.validatePromise}}),(0,g.A)((0,h.A)(n),"getOnlyChild",function(e){if("function"==typeof e){var t=n.getMeta();return(0,c.A)((0,c.A)({},n.getOnlyChild(e(n.getControlled(),t,n.props.fieldContext))),{},{isFunction:!0})}var r=(0,b.A)(e);return 1===r.length&&i.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}}),(0,g.A)((0,h.A)(n),"getValue",function(e){var t=n.props.fieldContext.getFieldsValue,r=n.getNamePath();return(0,e_.A)(e||t(!0),r)}),(0,g.A)((0,h.A)(n),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,r=t.name,i=t.trigger,o=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,u=t.getValueProps,f=t.fieldContext,d=void 0!==o?o:f.validateTrigger,h=n.getNamePath(),p=f.getInternalHooks,m=f.getFieldsValue,b=p(w).dispatch,v=n.getValue(),y=u||function(e){return(0,g.A)({},l,e)},x=e[i],A=void 0!==r?y(v):{},E=(0,c.A)((0,c.A)({},e),A);return E[i]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];e=a?a.apply(void 0,r):eM.apply(void 0,[l].concat(r)),s&&(e=s(e,v,m(!0))),e!==v&&b({type:"updateValue",namePath:h,value:e}),x&&x.apply(void 0,r)},_(d||[]).forEach(function(e){var t=E[e];E[e]=function(){t&&t.apply(void 0,arguments);var r=n.props.rules;r&&r.length&&b({type:"validateField",namePath:h,triggerName:e})}}),E}),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(w).initEntityValue)((0,h.A)(n)),n}return(0,d.A)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,r=e.fieldContext;if(this.mounted=!0,r){var n=(0,r.getInternalHooks)(w).registerField;this.cancelRegisterFunc=n(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,r=this.props.children,n=this.getOnlyChild(r),o=n.child;return n.isFunction?e=o:i.isValidElement(o)?e=i.cloneElement(o,this.getControlled(o.props)):((0,y.Ay)(!o,"`children` of Field is not validate ReactElement."),e=o),i.createElement(i.Fragment,{key:t},e)}}]),r}(i.Component);(0,g.A)(eN,"contextType",A),(0,g.A)(eN,"defaultProps",{trigger:"onChange",valuePropName:"value"});let eP=function(e){var t,r=e.name,n=(0,a.A)(e,eR),s=i.useContext(A),l=i.useContext(E),c=void 0!==r?eS(r):void 0,u=null!=(t=n.isListField)?t:!!l,f="keep";return u||(f="_".concat((c||[]).join("_"))),i.createElement(eN,(0,o.A)({key:f,name:c,isListField:u},n,{fieldContext:s}))},eB=function(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,a=e.validateTrigger,s=e.isListField,l=i.useContext(A),f=i.useContext(E),d=i.useRef({keys:[],id:0}).current,h=i.useMemo(function(){var e=eS(l.prefixName)||[];return[].concat((0,u.A)(e),(0,u.A)(eS(t)))},[l.prefixName,t]),p=i.useMemo(function(){return(0,c.A)((0,c.A)({},l),{},{prefixName:h})},[l,h]),m=i.useMemo(function(){return{getKey:function(e){var t=h.length,r=e[t];return[d.keys[r],e.slice(t+1)]}}},[h]);if("function"!=typeof n)return(0,y.Ay)(!1,"Form.List only accepts function as children."),null;var g=function(e,t,r){return"internal"!==r.source&&e!==t};return i.createElement(E.Provider,{value:m},i.createElement(A.Provider,{value:p},i.createElement(eP,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:r,isList:!0,isListField:null!=s?s:!!f},function(e,t){var r=e.value,i=void 0===r?[]:r,o=e.onChange,a=l.getFieldValue,s=function(){return a(h||[])||[]},c={add:function(e,t){var r=s();t>=0&&t<=r.length?(d.keys=[].concat((0,u.A)(d.keys.slice(0,t)),[d.id],(0,u.A)(d.keys.slice(t))),o([].concat((0,u.A)(r.slice(0,t)),[e],(0,u.A)(r.slice(t))))):(d.keys=[].concat((0,u.A)(d.keys),[d.id]),o([].concat((0,u.A)(r),[e]))),d.id+=1},remove:function(e){var t=s(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(d.keys=d.keys.filter(function(e,t){return!r.has(t)}),o(t.filter(function(e,t){return!r.has(t)})))},move:function(e,t){if(e!==t){var r=s();e<0||e>=r.length||t<0||t>=r.length||(d.keys=eI(d.keys,e,t),o(eI(r,e,t)))}}},f=i||[];return Array.isArray(f)||(f=[]),n(f.map(function(e,t){var r=d.keys[t];return void 0===r&&(d.keys[t]=d.id,r=d.keys[t],d.id+=1),{name:t,key:r,isListField:!0}}),c,t)})))};var ez=r(70486);function eL(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){r-=1,n[a]=e,r>0||(t&&o(n),i(n))})})}):Promise.resolve([])}var eD="__@field_split__";function eF(e){return e.map(function(e){return"".concat((0,$.A)(e),":").concat(e)}).join(eD)}let eH=function(){function e(){(0,f.A)(this,e),(0,g.A)(this,"kvs",new Map)}return(0,d.A)(e,[{key:"set",value:function(e,t){this.kvs.set(eF(e),t)}},{key:"get",value:function(e){return this.kvs.get(eF(e))}},{key:"update",value:function(e,t){var r=t(this.get(e));r?this.set(e,r):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(eF(e))}},{key:"map",value:function(e){return(0,u.A)(this.kvs.entries()).map(function(t){var r=(0,ez.A)(t,2),n=r[0],i=r[1];return e({key:n.split(eD).map(function(e){var t=e.match(/^([^:]*):(.*)$/),r=(0,ez.A)(t,3),n=r[1],i=r[2];return"number"===n?Number(i):i}),value:i})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var r=t.key,n=t.value;return e[r.join(".")]=n,null}),e}}]),e}();var eU=["name"],eq=(0,d.A)(function e(t){var r=this;(0,f.A)(this,e),(0,g.A)(this,"formHooked",!1),(0,g.A)(this,"forceRootUpdate",void 0),(0,g.A)(this,"subscribable",!0),(0,g.A)(this,"store",{}),(0,g.A)(this,"fieldEntities",[]),(0,g.A)(this,"initialValues",{}),(0,g.A)(this,"callbacks",{}),(0,g.A)(this,"validateMessages",null),(0,g.A)(this,"preserve",null),(0,g.A)(this,"lastValidatePromise",null),(0,g.A)(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),(0,g.A)(this,"getInternalHooks",function(e){return e===w?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):((0,y.Ay)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),(0,g.A)(this,"useSubscribe",function(e){r.subscribable=e}),(0,g.A)(this,"prevWithoutPreserves",null),(0,g.A)(this,"setInitialValues",function(e,t){if(r.initialValues=e||{},t){var n,i=(0,eh.h)(e,r.store);null==(n=r.prevWithoutPreserves)||n.map(function(t){var r=t.key;i=(0,eh.A)(i,r,(0,e_.A)(e,r))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),(0,g.A)(this,"destroyForm",function(e){if(e)r.updateStore({});else{var t=new eH;r.getFieldEntities(!0).forEach(function(e){r.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),r.prevWithoutPreserves=t}}),(0,g.A)(this,"getInitialValue",function(e){var t=(0,e_.A)(r.initialValues,e);return e.length?(0,eh.h)(t):t}),(0,g.A)(this,"setCallbacks",function(e){r.callbacks=e}),(0,g.A)(this,"setValidateMessages",function(e){r.validateMessages=e}),(0,g.A)(this,"setPreserve",function(e){r.preserve=e}),(0,g.A)(this,"watchList",[]),(0,g.A)(this,"registerWatch",function(e){return r.watchList.push(e),function(){r.watchList=r.watchList.filter(function(t){return t!==e})}}),(0,g.A)(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.watchList.length){var t=r.getFieldsValue(),n=r.getFieldsValue(!0);r.watchList.forEach(function(r){r(t,n,e)})}}),(0,g.A)(this,"timeoutId",null),(0,g.A)(this,"warningUnhooked",function(){}),(0,g.A)(this,"updateStore",function(e){r.store=e}),(0,g.A)(this,"getFieldEntities",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?r.fieldEntities.filter(function(e){return e.getNamePath().length}):r.fieldEntities}),(0,g.A)(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new eH;return r.getFieldEntities(e).forEach(function(e){var r=e.getNamePath();t.set(r,e)}),t}),(0,g.A)(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return r.getFieldEntities(!0);var t=r.getFieldsMap(!0);return e.map(function(e){var r=eS(e);return t.get(r)||{INVALIDATE_NAME_PATH:eS(e)}})}),(0,g.A)(this,"getFieldsValue",function(e,t){if(r.warningUnhooked(),!0===e||Array.isArray(e)?(n=e,i=t):e&&"object"===(0,$.A)(e)&&(o=e.strict,i=e.filter),!0===n&&!i)return r.store;var n,i,o,a=r.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),s=[];return a.forEach(function(e){var t,r,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(o){if(null!=(a=(l=e).isList)&&a.call(l))return}else if(!n&&null!=(t=(r=e).isListField)&&t.call(r))return;if(i){var u="getMeta"in e?e.getMeta():null;i(u)&&s.push(c)}else s.push(c)}),e$(r.store,s.map(eS))}),(0,g.A)(this,"getFieldValue",function(e){r.warningUnhooked();var t=eS(e);return(0,e_.A)(r.store,t)}),(0,g.A)(this,"getFieldsError",function(e){return r.warningUnhooked(),r.getFieldEntitiesForNamePathList(e).map(function(t,r){return!t||"INVALIDATE_NAME_PATH"in t?{name:eS(e[r]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})}),(0,g.A)(this,"getFieldError",function(e){r.warningUnhooked();var t=eS(e);return r.getFieldsError([t])[0].errors}),(0,g.A)(this,"getFieldWarning",function(e){r.warningUnhooked();var t=eS(e);return r.getFieldsError([t])[0].warnings}),(0,g.A)(this,"isFieldsTouched",function(){r.warningUnhooked();for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=n[0],a=n[1],s=!1;0===n.length?e=null:1===n.length?Array.isArray(o)?(e=o.map(eS),s=!1):(e=null,s=o):(e=o.map(eS),s=a);var l=r.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!e)return s?l.every(function(e){return c(e)||e.isList()}):l.some(c);var f=new eH;e.forEach(function(e){f.set(e,[])}),l.forEach(function(t){var r=t.getNamePath();e.forEach(function(e){e.every(function(e,t){return r[t]===e})&&f.update(e,function(e){return[].concat((0,u.A)(e),[t])})})});var d=function(e){return e.some(c)},h=f.map(function(e){return e.value});return s?h.every(d):h.some(d)}),(0,g.A)(this,"isFieldTouched",function(e){return r.warningUnhooked(),r.isFieldsTouched([e])}),(0,g.A)(this,"isFieldsValidating",function(e){r.warningUnhooked();var t=r.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var n=e.map(eS);return t.some(function(e){return ek(n,e.getNamePath())&&e.isFieldValidating()})}),(0,g.A)(this,"isFieldValidating",function(e){return r.warningUnhooked(),r.isFieldsValidating([e])}),(0,g.A)(this,"resetWithFieldInitialValue",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new eH,i=r.getFieldEntities(!0);i.forEach(function(e){var t=e.props.initialValue,r=e.getNamePath();if(void 0!==t){var i=n.get(r)||new Set;i.add({entity:e,value:t}),n.set(r,i)}});var o=function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==r.getInitialValue(i))(0,y.Ay)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=n.get(i);if(o&&o.size>1)(0,y.Ay)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=r.getFieldValue(i);e.isListField()||t.skipExist&&void 0!==a||r.updateStore((0,eh.A)(r.store,i,(0,u.A)(o)[0].value))}}}})};t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var r,i=n.get(t);i&&(r=e).push.apply(r,(0,u.A)((0,u.A)(i).map(function(e){return e.entity})))})):e=i,o(e)}),(0,g.A)(this,"resetFields",function(e){r.warningUnhooked();var t=r.store;if(!e){r.updateStore((0,eh.h)(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(t,null,{type:"reset"}),r.notifyWatch();return}var n=e.map(eS);n.forEach(function(e){var t=r.getInitialValue(e);r.updateStore((0,eh.A)(r.store,e,t))}),r.resetWithFieldInitialValue({namePathList:n}),r.notifyObservers(t,n,{type:"reset"}),r.notifyWatch(n)}),(0,g.A)(this,"setFields",function(e){r.warningUnhooked();var t=r.store,n=[];e.forEach(function(e){var i=e.name,o=(0,a.A)(e,eU),s=eS(i);n.push(s),"value"in o&&r.updateStore((0,eh.A)(r.store,s,o.value)),r.notifyObservers(t,[s],{type:"setField",data:e})}),r.notifyWatch(n)}),(0,g.A)(this,"getFields",function(){return r.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),n=e.getMeta(),i=(0,c.A)((0,c.A)({},n),{},{name:t,value:r.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i})}),(0,g.A)(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var n=e.getNamePath();void 0===(0,e_.A)(r.store,n)&&r.updateStore((0,eh.A)(r.store,n,t))}}),(0,g.A)(this,"isMergedPreserve",function(e){var t=void 0!==e?e:r.preserve;return null==t||t}),(0,g.A)(this,"registerField",function(e){r.fieldEntities.push(e);var t=e.getNamePath();if(r.notifyWatch([t]),void 0!==e.props.initialValue){var n=r.store;r.resetWithFieldInitialValue({entities:[e],skipExist:!0}),r.notifyObservers(n,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(t){return t!==e}),!r.isMergedPreserve(i)&&(!n||o.length>1)){var a=n?void 0:r.getInitialValue(t);if(t.length&&r.getFieldValue(t)!==a&&r.fieldEntities.every(function(e){return!eC(e.getNamePath(),t)})){var s=r.store;r.updateStore((0,eh.A)(s,t,a,!0)),r.notifyObservers(s,[t],{type:"remove"}),r.triggerDependenciesUpdate(s,t)}}r.notifyWatch([t])}}),(0,g.A)(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,n=e.value;r.updateValue(t,n);break;case"validateField":var i=e.namePath,o=e.triggerName;r.validateFields([i],{triggerName:o})}}),(0,g.A)(this,"notifyObservers",function(e,t,n){if(r.subscribable){var i=(0,c.A)((0,c.A)({},n),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(r){(0,r.onStoreChange)(e,t,i)})}else r.forceRootUpdate()}),(0,g.A)(this,"triggerDependenciesUpdate",function(e,t){var n=r.getDependencyChildrenFields(t);return n.length&&r.validateFields(n),r.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t].concat((0,u.A)(n))}),n}),(0,g.A)(this,"updateValue",function(e,t){var n=eS(e),i=r.store;r.updateStore((0,eh.A)(r.store,n,t)),r.notifyObservers(i,[n],{type:"valueUpdate",source:"internal"}),r.notifyWatch([n]);var o=r.triggerDependenciesUpdate(i,n),a=r.callbacks.onValuesChange;a&&a(e$(r.store,[n]),r.getFieldsValue()),r.triggerOnFieldsChange([n].concat((0,u.A)(o)))}),(0,g.A)(this,"setFieldsValue",function(e){r.warningUnhooked();var t=r.store;if(e){var n=(0,eh.h)(r.store,e);r.updateStore(n)}r.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),(0,g.A)(this,"setFieldValue",function(e,t){r.setFields([{name:e,value:t,errors:[],warnings:[]}])}),(0,g.A)(this,"getDependencyChildrenFields",function(e){var t=new Set,n=[],i=new eH;return r.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var r=eS(t);i.update(r,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(r){(i.get(r)||new Set).forEach(function(r){if(!t.has(r)){t.add(r);var i=r.getNamePath();r.isFieldDirty()&&i.length&&(n.push(i),e(i))}})}(e),n}),(0,g.A)(this,"triggerOnFieldsChange",function(e,t){var n=r.callbacks.onFieldsChange;if(n){var i=r.getFields();if(t){var o=new eH;t.forEach(function(e){var t=e.name,r=e.errors;o.set(t,r)}),i.forEach(function(e){e.errors=o.get(e.name)||e.errors})}var a=i.filter(function(t){return ek(e,t.name)});a.length&&n(a,i)}}),(0,g.A)(this,"validateFields",function(e,t){r.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(n=e,i=t):i=e;var n,i,o=!!n,a=o?n.map(eS):[],s=[],l=String(Date.now()),f=new Set,d=i||{},h=d.recursive,p=d.dirty;r.getFieldEntities(!0).forEach(function(e){if((o||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length)&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(f.add(t.join(l)),!o||ek(a,t,h)){var n=e.validateRules((0,c.A)({validateMessages:(0,c.A)((0,c.A)({},ed),r.validateMessages)},i));s.push(n.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var r,n=[],i=[];return(null==(r=e.forEach)||r.call(e,function(e){var t=e.rule.warningOnly,r=e.errors;t?i.push.apply(i,(0,u.A)(r)):n.push.apply(n,(0,u.A)(r))}),n.length)?Promise.reject({name:t,errors:n,warnings:i}):{name:t,errors:n,warnings:i}}))}}});var m=eL(s);r.lastValidatePromise=m,m.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});r.notifyObservers(r.store,t,{type:"validateFinish"}),r.triggerOnFieldsChange(t,e)});var g=m.then(function(){return r.lastValidatePromise===m?Promise.resolve(r.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:r.getFieldsValue(a),errorFields:t,outOfDate:r.lastValidatePromise!==m})});g.catch(function(e){return e});var b=a.filter(function(e){return f.has(e.join(l))});return r.triggerOnFieldsChange(b),g}),(0,g.A)(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(e){var t=r.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=r.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});let eW=function(e){var t=i.useRef(),r=i.useState({}),n=(0,ez.A)(r,2)[1];return t.current||(e?t.current=e:t.current=new eq(function(){n({})}).getForm()),[t.current]};var eV=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eK=function(e){var t=e.validateMessages,r=e.onFormChange,n=e.onFormFinish,o=e.children,a=i.useContext(eV),s=i.useRef({});return i.createElement(eV.Provider,{value:(0,c.A)((0,c.A)({},a),{},{validateMessages:(0,c.A)((0,c.A)({},a.validateMessages),t),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:s.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){n&&n(e,{values:t,forms:s.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(s.current=(0,c.A)((0,c.A)({},s.current),{},(0,g.A)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.A)({},s.current);delete t[e],s.current=t,a.unregisterForm(e)}})},o)};let eG=eV;var eX=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];let eZ=function(e,t){var r,n=e.name,s=e.initialValues,l=e.fields,u=e.form,f=e.preserve,d=e.children,h=e.component,p=void 0===h?"form":h,m=e.validateMessages,g=e.validateTrigger,b=void 0===g?"onChange":g,v=e.onValuesChange,y=e.onFieldsChange,x=e.onFinish,_=e.onFinishFailed,S=e.clearOnDestroy,$=(0,a.A)(e,eX),k=i.useRef(null),C=i.useContext(eG),O=eW(u),M=(0,ez.A)(O,1)[0],I=M.getInternalHooks(w),R=I.useSubscribe,j=I.setInitialValues,T=I.setCallbacks,N=I.setValidateMessages,P=I.setPreserve,B=I.destroyForm;i.useImperativeHandle(t,function(){return(0,c.A)((0,c.A)({},M),{},{nativeElement:k.current})}),i.useEffect(function(){return C.registerForm(n,M),function(){C.unregisterForm(n)}},[C,M,n]),N((0,c.A)((0,c.A)({},C.validateMessages),m)),T({onValuesChange:v,onFieldsChange:function(e){if(C.triggerFormChange(n,e),y){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];y.apply(void 0,[e].concat(r))}},onFinish:function(e){C.triggerFormFinish(n,e),x&&x(e)},onFinishFailed:_}),P(f);var z=i.useRef(null);j(s,!z.current),z.current||(z.current=!0),i.useEffect(function(){return function(){return B(S)}},[]);var L="function"==typeof d;r=L?d(M.getFieldsValue(!0),M):d,R(!L);var D=i.useRef();i.useEffect(function(){eO(D.current||[],l||[])||M.setFields(l||[]),D.current=l},[l,M]);var F=i.useMemo(function(){return(0,c.A)((0,c.A)({},M),{},{validateTrigger:b})},[M,b]),H=i.createElement(E.Provider,{value:null},i.createElement(A.Provider,{value:F},r));return!1===p?H:i.createElement(p,(0,o.A)({},$,{ref:k,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),M.submit()},onReset:function(e){var t;e.preventDefault(),M.resetFields(),null==(t=$.onReset)||t.call($,e)}}),H)};function eY(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var eJ=function(){};let eQ=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],a=void 0===o?{}:o,s=S(a)?{form:a}:a,l=s.form,c=(0,i.useState)(),u=(0,ez.A)(c,2),f=u[0],d=u[1],h=(0,i.useMemo)(function(){return eY(f)},[f]),p=(0,i.useRef)(h);p.current=h;var m=(0,i.useContext)(A),g=l||m,b=g&&g._init,v=eS(n),y=(0,i.useRef)(v);return y.current=v,eJ(v),(0,i.useEffect)(function(){if(b){var e=g.getFieldsValue,t=g.getInternalHooks,r=t(w),i=r.registerWatch,o=function(e,t){var r=s.preserve?t:e;return"function"==typeof n?n(r):(0,e_.A)(r,y.current)},a=i(function(e,t){var r=o(e,t),n=eY(r);p.current!==n&&(p.current=n,d(r))}),l=o(e(),e(!0));return f!==l&&d(l),a}},[b]),f};var e0=i.forwardRef(eZ);e0.FormProvider=eK,e0.Field=eP,e0.List=eB,e0.useForm=eW,e0.useWatch=eQ;let e1=e0},54520(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(56284),i=r(39317),o=r(24366),a=r(22155),s=["show"];function l(e,t){return a.useMemo(function(){var r={};t&&(r.show="object"===(0,o.A)(t)&&t.formatter?t.formatter:!!t);var a=r=(0,i.A)((0,i.A)({},r),e),l=a.show,c=(0,n.A)(a,s);return(0,i.A)((0,i.A)({},c),{},{show:!!l,showFormatter:"function"==typeof l?l:void 0,strategy:c.strategy||function(e){return e.length}})},[e,t])}},95007(e,t,r){"use strict";r.d(t,{a:()=>f,A:()=>y});var n=r(39317),i=r(76878),o=r(19841),a=r(24366),s=r(30395),l=r.n(s),c=r(22155),u=r(97539);let f=c.forwardRef(function(e,t){var r,s,f,d=e.inputElement,h=e.children,p=e.prefixCls,m=e.prefix,g=e.suffix,b=e.addonBefore,v=e.addonAfter,y=e.className,w=e.style,x=e.disabled,A=e.readOnly,E=e.focused,_=e.triggerFocus,S=e.allowClear,$=e.value,k=e.handleReset,C=e.hidden,O=e.classes,M=e.classNames,I=e.dataAttrs,R=e.styles,j=e.components,T=e.onClear,N=null!=h?h:d,P=(null==j?void 0:j.affixWrapper)||"span",B=(null==j?void 0:j.groupWrapper)||"span",z=(null==j?void 0:j.wrapper)||"span",L=(null==j?void 0:j.groupAddon)||"span",D=(0,c.useRef)(null),F=function(e){var t;null!=(t=D.current)&&t.contains(e.target)&&(null==_||_())},H=(0,u.OL)(e),U=(0,c.cloneElement)(N,{value:$,className:l()(null==(r=N.props)?void 0:r.className,!H&&(null==M?void 0:M.variant))||null}),q=(0,c.useRef)(null);if(c.useImperativeHandle(t,function(){return{nativeElement:q.current||D.current}}),H){var W=null;if(S){var V=!x&&!A&&$,K="".concat(p,"-clear-icon"),G="object"===(0,a.A)(S)&&null!=S&&S.clearIcon?S.clearIcon:"✖";W=c.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==k||k(e),null==T||T()},onMouseDown:function(e){return e.preventDefault()},className:l()(K,(0,o.A)((0,o.A)({},"".concat(K,"-hidden"),!V),"".concat(K,"-has-suffix"),!!g))},G)}var X="".concat(p,"-affix-wrapper"),Z=l()(X,(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({},"".concat(p,"-disabled"),x),"".concat(X,"-disabled"),x),"".concat(X,"-focused"),E),"".concat(X,"-readonly"),A),"".concat(X,"-input-with-clear-btn"),g&&S&&$),null==O?void 0:O.affixWrapper,null==M?void 0:M.affixWrapper,null==M?void 0:M.variant),Y=(g||S)&&c.createElement("span",{className:l()("".concat(p,"-suffix"),null==M?void 0:M.suffix),style:null==R?void 0:R.suffix},W,g);U=c.createElement(P,(0,i.A)({className:Z,style:null==R?void 0:R.affixWrapper,onClick:F},null==I?void 0:I.affixWrapper,{ref:D}),m&&c.createElement("span",{className:l()("".concat(p,"-prefix"),null==M?void 0:M.prefix),style:null==R?void 0:R.prefix},m),U,Y)}if((0,u.bk)(e)){var J="".concat(p,"-group"),Q="".concat(J,"-addon"),ee="".concat(J,"-wrapper"),et=l()("".concat(p,"-wrapper"),J,null==O?void 0:O.wrapper,null==M?void 0:M.wrapper),er=l()(ee,(0,o.A)({},"".concat(ee,"-disabled"),x),null==O?void 0:O.group,null==M?void 0:M.groupWrapper);U=c.createElement(B,{className:er,ref:q},c.createElement(z,{className:et},b&&c.createElement(L,{className:Q},b),U,v&&c.createElement(L,{className:Q},v)))}return c.cloneElement(U,{className:l()(null==(s=U.props)?void 0:s.className,y)||null,style:(0,n.A)((0,n.A)({},null==(f=U.props)?void 0:f.style),w),hidden:C})});var d=r(78944),h=r(70486),p=r(56284),m=r(3604),g=r(46604),b=r(54520),v=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"];let y=(0,c.forwardRef)(function(e,t){var r=e.autoComplete,a=e.onChange,s=e.onFocus,y=e.onBlur,w=e.onPressEnter,x=e.onKeyDown,A=e.onKeyUp,E=e.prefixCls,_=void 0===E?"rc-input":E,S=e.disabled,$=e.htmlSize,k=e.className,C=e.maxLength,O=e.suffix,M=e.showCount,I=e.count,R=e.type,j=void 0===R?"text":R,T=e.classes,N=e.classNames,P=e.styles,B=e.onCompositionStart,z=e.onCompositionEnd,L=(0,p.A)(e,v),D=(0,c.useState)(!1),F=(0,h.A)(D,2),H=F[0],U=F[1],q=(0,c.useRef)(!1),W=(0,c.useRef)(!1),V=(0,c.useRef)(null),K=(0,c.useRef)(null),G=function(e){V.current&&(0,u.F4)(V.current,e)},X=(0,m.A)(e.defaultValue,{value:e.value}),Z=(0,h.A)(X,2),Y=Z[0],J=Z[1],Q=null==Y?"":String(Y),ee=(0,c.useState)(null),et=(0,h.A)(ee,2),er=et[0],en=et[1],ei=(0,b.A)(I,M),eo=ei.max||C,ea=ei.strategy(Q),es=!!eo&&ea>eo;(0,c.useImperativeHandle)(t,function(){var e;return{focus:G,blur:function(){var e;null==(e=V.current)||e.blur()},setSelectionRange:function(e,t,r){var n;null==(n=V.current)||n.setSelectionRange(e,t,r)},select:function(){var e;null==(e=V.current)||e.select()},input:V.current,nativeElement:(null==(e=K.current)?void 0:e.nativeElement)||V.current}}),(0,c.useEffect)(function(){W.current&&(W.current=!1),U(function(e){return(!e||!S)&&e})},[S]);var el=function(e,t,r){var n,i,o=t;if(!q.current&&ei.exceedFormatter&&ei.max&&ei.strategy(t)>ei.max)o=ei.exceedFormatter(t,{max:ei.max}),t!==o&&en([(null==(n=V.current)?void 0:n.selectionStart)||0,(null==(i=V.current)?void 0:i.selectionEnd)||0]);else if("compositionEnd"===r.source)return;J(o),V.current&&(0,u.gS)(V.current,e,a,o)};(0,c.useEffect)(function(){if(er){var e;null==(e=V.current)||e.setSelectionRange.apply(e,(0,d.A)(er))}},[er]);var ec=function(e){el(e,e.target.value,{source:"change"})},eu=function(e){q.current=!1,el(e,e.currentTarget.value,{source:"compositionEnd"}),null==z||z(e)},ef=function(e){w&&"Enter"===e.key&&!W.current&&(W.current=!0,w(e)),null==x||x(e)},ed=function(e){"Enter"===e.key&&(W.current=!1),null==A||A(e)},eh=function(e){U(!0),null==s||s(e)},ep=function(e){W.current&&(W.current=!1),U(!1),null==y||y(e)},em=function(e){J(""),G(),V.current&&(0,u.gS)(V.current,e,a)},eg=es&&"".concat(_,"-out-of-range"),eb=function(){var t=(0,g.A)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return c.createElement("input",(0,i.A)({autoComplete:r},t,{onChange:ec,onFocus:eh,onBlur:ep,onKeyDown:ef,onKeyUp:ed,className:l()(_,(0,o.A)({},"".concat(_,"-disabled"),S),null==N?void 0:N.input),style:null==P?void 0:P.input,ref:V,size:$,type:j,onCompositionStart:function(e){q.current=!0,null==B||B(e)},onCompositionEnd:eu}))},ev=function(){var e=Number(eo)>0;if(O||ei.show){var t=ei.showFormatter?ei.showFormatter({value:Q,count:ea,maxLength:eo}):"".concat(ea).concat(e?" / ".concat(eo):"");return c.createElement(c.Fragment,null,ei.show&&c.createElement("span",{className:l()("".concat(_,"-show-count-suffix"),(0,o.A)({},"".concat(_,"-show-count-has-suffix"),!!O),null==N?void 0:N.count),style:(0,n.A)({},null==P?void 0:P.count)},t),O)}return null};return c.createElement(f,(0,i.A)({},L,{prefixCls:_,className:l()(k,eg),handleReset:em,value:Q,focused:H,triggerFocus:G,suffix:ev(),disabled:S,classes:T,classNames:N,styles:P,ref:K}),eb())})},97539(e,t,r){"use strict";function n(e){return!!(e.addonBefore||e.addonAfter)}function i(e){return!!(e.prefix||e.suffix||e.allowClear)}function o(e,t,r){var n=t.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function a(e,t,r,n){if(r){var i=t;if("click"===t.type)return void r(i=o(t,e,""));if("file"!==e.type&&void 0!==n)return void r(i=o(t,e,n));r(i)}}function s(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}r.d(t,{F4:()=>s,OL:()=>i,bk:()=>n,gS:()=>a})},8890(e,t,r){"use strict";r.d(t,{Kq:()=>m,aF:()=>eb,Ay:()=>ev});var n=r(19841),i=r(39317),o=r(70486),a=r(24366),s=r(30395),l=r.n(s),c=r(73003),u=r(75252),f=r(22155),d=r(56284),h=["children"],p=f.createContext({});function m(e){var t=e.children,r=(0,d.A)(e,h);return f.createElement(p.Provider,{value:r},t)}var g=r(11947),b=r(96591),v=r(93619),y=r(51232);let w=function(e){(0,v.A)(r,e);var t=(0,y.A)(r);function r(){return(0,g.A)(this,r),t.apply(this,arguments)}return(0,b.A)(r,[{key:"render",value:function(){return this.props.children}}]),r}(f.Component);var x=r(74757),A=r(74548),E=r(44649);function _(e){var t=f.useReducer(function(e){return e+1},0),r=(0,o.A)(t,2)[1],n=f.useRef(e);return[(0,E.A)(function(){return n.current}),(0,E.A)(function(e){n.current="function"==typeof e?e(n.current):e,r()})]}var S="none",$="appear",k="enter",C="leave",O="none",M="prepare",I="start",R="active",j="end",T="prepared",N=r(8929);function P(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}var B=function(e,t){var r={animationend:P("Animation","AnimationEnd"),transitionend:P("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}((0,N.A)(),"u">typeof window?window:{}),z={};(0,N.A)()&&(z=document.createElement("div").style);var L={};function D(e){if(L[e])return L[e];var t=B[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var o=r[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in z)return L[e]=t[o],L[e]}return""}var F=D("animationend"),H=D("transitionend"),U=!!(F&&H),q=F||"animationend",W=H||"transitionend";function V(e,t){return e?"object"===(0,a.A)(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}let K=function(e){var t=(0,f.useRef)();function r(t){t&&(t.removeEventListener(W,e),t.removeEventListener(q,e))}function n(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(W,e),n.addEventListener(q,e),t.current=n)}return f.useEffect(function(){return function(){r(t.current)}},[]),[n,r]},G=(0,N.A)()?f.useLayoutEffect:f.useEffect;var X=r(23504);let Z=function(){var e=f.useRef(null);function t(){X.A.cancel(e.current)}function r(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=(0,X.A)(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1)});e.current=o}return f.useEffect(function(){return function(){t()}},[]),[r,t]};var Y=[M,I,R,j],J=[M,T],Q=!1,ee=!0;function et(e){return e===R||e===j}let er=function(e,t,r){var n=(0,A.A)(O),i=(0,o.A)(n,2),a=i[0],s=i[1],l=Z(),c=(0,o.A)(l,2),u=c[0],d=c[1];function h(){s(M,!0)}var p=t?J:Y;return G(function(){if(a!==O&&a!==j){var e=p.indexOf(a),t=p[e+1],n=r(a);n===Q?s(t,!0):t&&u(function(e){function r(){e.isCanceled()||s(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[e,a]),f.useEffect(function(){return function(){d()}},[]),[h,a]};function en(e,t,r,a){var s=a.motionEnter,l=void 0===s||s,c=a.motionAppear,u=void 0===c||c,d=a.motionLeave,h=void 0===d||d,p=a.motionDeadline,m=a.motionLeaveImmediately,g=a.onAppearPrepare,b=a.onEnterPrepare,v=a.onLeavePrepare,y=a.onAppearStart,w=a.onEnterStart,E=a.onLeaveStart,O=a.onAppearActive,j=a.onEnterActive,N=a.onLeaveActive,P=a.onAppearEnd,B=a.onEnterEnd,z=a.onLeaveEnd,L=a.onVisibleChanged,D=(0,A.A)(),F=(0,o.A)(D,2),H=F[0],U=F[1],q=_(S),W=(0,o.A)(q,2),V=W[0],X=W[1],Z=(0,A.A)(null),Y=(0,o.A)(Z,2),J=Y[0],en=Y[1],ei=V(),eo=(0,f.useRef)(!1),ea=(0,f.useRef)(null);function es(){return r()}var el=(0,f.useRef)(!1);function ec(){X(S),en(null,!0)}var eu=(0,x._q)(function(e){var t,r=V();if(r!==S){var n=es();if(!e||e.deadline||e.target===n){var i=el.current;r===$&&i?t=null==P?void 0:P(n,e):r===k&&i?t=null==B?void 0:B(n,e):r===C&&i&&(t=null==z?void 0:z(n,e)),i&&!1!==t&&ec()}}}),ef=K(eu),ed=(0,o.A)(ef,1)[0],eh=function(e){switch(e){case $:return(0,n.A)((0,n.A)((0,n.A)({},M,g),I,y),R,O);case k:return(0,n.A)((0,n.A)((0,n.A)({},M,b),I,w),R,j);case C:return(0,n.A)((0,n.A)((0,n.A)({},M,v),I,E),R,N);default:return{}}},ep=f.useMemo(function(){return eh(ei)},[ei]),em=er(ei,!e,function(e){if(e===M){var t,r=ep[M];return r?r(es()):Q}return ev in ep&&en((null==(t=ep[ev])?void 0:t.call(ep,es(),null))||null),ev===R&&ei!==S&&(ed(es()),p>0&&(clearTimeout(ea.current),ea.current=setTimeout(function(){eu({deadline:!0})},p))),ev===T&&ec(),ee}),eg=(0,o.A)(em,2),eb=eg[0],ev=eg[1];el.current=et(ev);var ey=(0,f.useRef)(null);G(function(){if(!eo.current||ey.current!==t){U(t);var r,n=eo.current;eo.current=!0,!n&&t&&u&&(r=$),n&&t&&l&&(r=k),(n&&!t&&h||!n&&m&&!t&&h)&&(r=C);var i=eh(r);r&&(e||i[M])?(X(r),eb()):X(S),ey.current=t}},[t]),(0,f.useEffect)(function(){(ei!==$||u)&&(ei!==k||l)&&(ei!==C||h)||X(S)},[u,l,h]),(0,f.useEffect)(function(){return function(){eo.current=!1,clearTimeout(ea.current)}},[]);var ew=f.useRef(!1);(0,f.useEffect)(function(){H&&(ew.current=!0),void 0!==H&&ei===S&&((ew.current||H)&&(null==L||L(H)),ew.current=!0)},[H,ei]);var ex=J;return ep[M]&&ev===I&&(ex=(0,i.A)({transition:"none"},ex)),[ei,ev,ex,null!=H?H:t]}let ei=function(e){var t=e;function r(e,r){return!!(e.motionName&&t&&!1!==r)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var s=f.forwardRef(function(e,t){var a=e.visible,s=void 0===a||a,d=e.removeOnLeave,h=void 0===d||d,m=e.forceRender,g=e.children,b=e.motionName,v=e.leavedClassName,y=e.eventProps,x=r(e,f.useContext(p).motion),A=(0,f.useRef)(),E=(0,f.useRef)(),_=en(x,s,function(){try{return A.current instanceof HTMLElement?A.current:(0,c.Ay)(E.current)}catch(e){return null}},e),$=(0,o.A)(_,4),k=$[0],C=$[1],O=$[2],R=$[3],j=f.useRef(R);R&&(j.current=!0);var T=f.useCallback(function(e){A.current=e,(0,u.Xf)(t,e)},[t]),N=(0,i.A)((0,i.A)({},y),{},{visible:s});if(g)if(k===S)P=R?g((0,i.A)({},N),T):!h&&j.current&&v?g((0,i.A)((0,i.A)({},N),{},{className:v}),T):!m&&(h||v)?null:g((0,i.A)((0,i.A)({},N),{},{style:{display:"none"}}),T);else{C===M?B="prepare":et(C)?B="active":C===I&&(B="start");var P,B,z=V(b,"".concat(k,"-").concat(B));P=g((0,i.A)((0,i.A)({},N),{},{className:l()(V(b,k),(0,n.A)((0,n.A)({},z,z&&B),b,"string"==typeof b)),style:O}),T)}else P=null;return f.isValidElement(P)&&(0,u.f3)(P)&&((0,u.A9)(P)||(P=f.cloneElement(P,{ref:T}))),f.createElement(w,{ref:E},P)});return s.displayName="CSSMotion",s}(U);var eo=r(76878),ea=r(18663),es="add",el="keep",ec="remove",eu="removed";function ef(e){var t;return t=e&&"object"===(0,a.A)(e)&&"key"in e?e:{key:e},(0,i.A)((0,i.A)({},t),{},{key:String(t.key)})}function ed(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ef)}function eh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=0,o=t.length,a=ed(e),s=ed(t);a.forEach(function(e){for(var t=!1,a=n;a<o;a+=1){var l=s[a];if(l.key===e.key){n<a&&(r=r.concat(s.slice(n,a).map(function(e){return(0,i.A)((0,i.A)({},e),{},{status:es})})),n=a),r.push((0,i.A)((0,i.A)({},l),{},{status:el})),n+=1,t=!0;break}}t||r.push((0,i.A)((0,i.A)({},e),{},{status:ec}))}),n<o&&(r=r.concat(s.slice(n).map(function(e){return(0,i.A)((0,i.A)({},e),{},{status:es})})));var l={};return r.forEach(function(e){var t=e.key;l[t]=(l[t]||0)+1}),Object.keys(l).filter(function(e){return l[e]>1}).forEach(function(e){(r=r.filter(function(t){var r=t.key,n=t.status;return r!==e||n!==ec})).forEach(function(t){t.key===e&&(t.status=el)})}),r}var ep=["component","children","onVisibleChanged","onAllRemoved"],em=["status"],eg=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];let eb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ei,r=function(e){(0,v.A)(o,e);var r=(0,y.A)(o);function o(){var e;(0,g.A)(this,o);for(var t=arguments.length,a=Array(t),s=0;s<t;s++)a[s]=arguments[s];return e=r.call.apply(r,[this].concat(a)),(0,n.A)((0,ea.A)(e),"state",{keyEntities:[]}),(0,n.A)((0,ea.A)(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:eu})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==eu}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return(0,b.A)(o,[{key:"render",value:function(){var e=this,r=this.state.keyEntities,n=this.props,o=n.component,a=n.children,s=n.onVisibleChanged,l=(n.onAllRemoved,(0,d.A)(n,ep)),c=o||f.Fragment,u={};return eg.forEach(function(e){u[e]=l[e],delete l[e]}),delete l.keys,f.createElement(c,l,r.map(function(r,n){var o=r.status,l=(0,d.A)(r,em),c=o===es||o===el;return f.createElement(t,(0,eo.A)({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(t){null==s||s(t,{key:l.key}),t||e.removeKey(l.key)}}),function(e,t){return a((0,i.A)((0,i.A)({},e),{},{index:n}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.keys,n=t.keyEntities;return{keyEntities:eh(n,ed(r)).filter(function(e){var t=n.find(function(t){var r=t.key;return e.key===r});return!t||t.status!==eu||e.status!==ec})}}}]),o}(f.Component);return(0,n.A)(r,"defaultProps",{component:"div"}),r}(U),ev=ei},38851(e,t,r){"use strict";r.d(t,{$T:()=>b,hN:()=>R,ph:()=>y});var n=r(78944),i=r(70486),o=r(56284),a=r(22155),s=r(39317),l=r(70316),c=r(76878),u=r(19841),f=r(30395),d=r.n(f),h=r(8890),p=r(24366),m=r(19187),g=r(21634);let b=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.className,s=e.duration,l=void 0===s?4.5:s,f=e.showProgress,h=e.pauseOnHover,b=void 0===h||h,v=e.eventKey,y=e.content,w=e.closable,x=e.closeIcon,A=void 0===x?"x":x,E=e.props,_=e.onClick,S=e.onNoticeClose,$=e.times,k=e.hovering,C=a.useState(!1),O=(0,i.A)(C,2),M=O[0],I=O[1],R=a.useState(0),j=(0,i.A)(R,2),T=j[0],N=j[1],P=a.useState(0),B=(0,i.A)(P,2),z=B[0],L=B[1],D=k||M,F=l>0&&f,H=function(){S(v)},U=function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===m.A.ENTER)&&H()};a.useEffect(function(){if(!D&&l>0){var e=Date.now()-z,t=setTimeout(function(){H()},1e3*l-z);return function(){b&&clearTimeout(t),L(Date.now()-e)}}},[l,D,$]),a.useEffect(function(){if(!D&&F&&(b||0===z)){var e,t=performance.now();return function r(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var n=Math.min((e+z-t)/(1e3*l),1);N(100*n),n<1&&r()})}(),function(){b&&cancelAnimationFrame(e)}}},[l,z,D,F,$]);var q=a.useMemo(function(){return"object"===(0,p.A)(w)&&null!==w?w:w?{closeIcon:A}:{}},[w,A]),W=(0,g.A)(q,!0),V=100-(!T||T<0?0:T>100?100:T),K="".concat(r,"-notice");return a.createElement("div",(0,c.A)({},E,{ref:t,className:d()(K,o,(0,u.A)({},"".concat(K,"-closable"),w)),style:n,onMouseEnter:function(e){var t;I(!0),null==E||null==(t=E.onMouseEnter)||t.call(E,e)},onMouseLeave:function(e){var t;I(!1),null==E||null==(t=E.onMouseLeave)||t.call(E,e)},onClick:_}),a.createElement("div",{className:"".concat(K,"-content")},y),w&&a.createElement("a",(0,c.A)({tabIndex:0,className:"".concat(K,"-close"),onKeyDown:U,"aria-label":"Close"},W,{onClick:function(e){e.preventDefault(),e.stopPropagation(),H()}}),q.closeIcon),F&&a.createElement("progress",{className:"".concat(K,"-progress"),max:"100",value:V},V+"%"))});var v=a.createContext({});let y=function(e){var t=e.children,r=e.classNames;return a.createElement(v.Provider,{value:{classNames:r}},t)};var w=8,x=3,A=16;let E=function(e){var t,r,n,i={offset:w,threshold:x,gap:A};return e&&"object"===(0,p.A)(e)&&(i.offset=null!=(t=e.offset)?t:w,i.threshold=null!=(r=e.threshold)?r:x,i.gap=null!=(n=e.gap)?n:A),[!!e,i]};var _=["className","style","classNames","styles"];let S=function(e){var t=e.configList,r=e.placement,l=e.prefixCls,f=e.className,p=e.style,m=e.motion,g=e.onAllNoticeRemoved,y=e.onNoticeClose,w=e.stack,x=(0,a.useContext)(v).classNames,A=(0,a.useRef)({}),S=(0,a.useState)(null),$=(0,i.A)(S,2),k=$[0],C=$[1],O=(0,a.useState)([]),M=(0,i.A)(O,2),I=M[0],R=M[1],j=t.map(function(e){return{config:e,key:String(e.key)}}),T=E(w),N=(0,i.A)(T,2),P=N[0],B=N[1],z=B.offset,L=B.threshold,D=B.gap,F=P&&(I.length>0||j.length<=L),H="function"==typeof m?m(r):m;return(0,a.useEffect)(function(){P&&I.length>1&&R(function(e){return e.filter(function(e){return j.some(function(t){return e===t.key})})})},[I,j,P]),(0,a.useEffect)(function(){var e,t;P&&A.current[null==(e=j[j.length-1])?void 0:e.key]&&C(A.current[null==(t=j[j.length-1])?void 0:t.key])},[j,P]),a.createElement(h.aF,(0,c.A)({key:r,className:d()(l,"".concat(l,"-").concat(r),null==x?void 0:x.list,f,(0,u.A)((0,u.A)({},"".concat(l,"-stack"),!!P),"".concat(l,"-stack-expanded"),F)),style:p,keys:j,motionAppear:!0},H,{onAllRemoved:function(){g(r)}}),function(e,t){var i=e.config,u=e.className,f=e.style,h=e.index,p=i,m=p.key,g=p.times,v=String(m),w=i,E=w.className,S=w.style,$=w.classNames,C=w.styles,O=(0,o.A)(w,_),M=j.findIndex(function(e){return e.key===v}),T={};if(P){var N=j.length-1-(M>-1?M:h-1),B="top"===r||"bottom"===r?"-50%":"0";if(N>0){T.height=F?null==(L=A.current[v])?void 0:L.offsetHeight:null==k?void 0:k.offsetHeight;for(var L,H,U,q,W=0,V=0;V<N;V++)W+=(null==(q=A.current[j[j.length-1-V].key])?void 0:q.offsetHeight)+D;var K=(F?W:N*z)*(r.startsWith("top")?1:-1),G=!F&&null!=k&&k.offsetWidth&&null!=(H=A.current[v])&&H.offsetWidth?((null==k?void 0:k.offsetWidth)-2*z*(N<3?N:3))/(null==(U=A.current[v])?void 0:U.offsetWidth):1;T.transform="translate3d(".concat(B,", ").concat(K,"px, 0) scaleX(").concat(G,")")}else T.transform="translate3d(".concat(B,", 0, 0)")}return a.createElement("div",{ref:t,className:d()("".concat(l,"-notice-wrapper"),u,null==$?void 0:$.wrapper),style:(0,s.A)((0,s.A)((0,s.A)({},f),T),null==C?void 0:C.wrapper),onMouseEnter:function(){return R(function(e){return e.includes(v)?e:[].concat((0,n.A)(e),[v])})},onMouseLeave:function(){return R(function(e){return e.filter(function(e){return e!==v})})}},a.createElement(b,(0,c.A)({},O,{ref:function(e){M>-1?A.current[v]=e:delete A.current[v]},prefixCls:l,classNames:$,styles:C,className:d()(E,null==x?void 0:x.notice),style:S,times:g,key:m,eventKey:m,onNoticeClose:y,hovering:P&&I.length>0})))})},$=a.forwardRef(function(e,t){var r=e.prefixCls,o=void 0===r?"rc-notification":r,c=e.container,u=e.motion,f=e.maxCount,d=e.className,h=e.style,p=e.onAllRemoved,m=e.stack,g=e.renderNotifications,b=a.useState([]),v=(0,i.A)(b,2),y=v[0],w=v[1],x=function(e){var t,r=y.find(function(t){return t.key===e});null==r||null==(t=r.onClose)||t.call(r),w(function(t){return t.filter(function(t){return t.key!==e})})};a.useImperativeHandle(t,function(){return{open:function(e){w(function(t){var r,i=(0,n.A)(t),o=i.findIndex(function(t){return t.key===e.key}),a=(0,s.A)({},e);return o>=0?(a.times=((null==(r=t[o])?void 0:r.times)||0)+1,i[o]=a):(a.times=0,i.push(a)),f>0&&i.length>f&&(i=i.slice(-f)),i})},close:function(e){x(e)},destroy:function(){w([])}}});var A=a.useState({}),E=(0,i.A)(A,2),_=E[0],$=E[1];a.useEffect(function(){var e={};y.forEach(function(t){var r=t.placement,n=void 0===r?"topRight":r;n&&(e[n]=e[n]||[],e[n].push(t))}),Object.keys(_).forEach(function(t){e[t]=e[t]||[]}),$(e)},[y]);var k=function(e){$(function(t){var r=(0,s.A)({},t);return(r[e]||[]).length||delete r[e],r})},C=a.useRef(!1);if(a.useEffect(function(){Object.keys(_).length>0?C.current=!0:C.current&&(null==p||p(),C.current=!1)},[_]),!c)return null;var O=Object.keys(_);return(0,l.createPortal)(a.createElement(a.Fragment,null,O.map(function(e){var t=_[e],r=a.createElement(S,{key:e,configList:t,placement:e,prefixCls:o,className:null==d?void 0:d(e),style:null==h?void 0:h(e),motion:u,onNoticeClose:x,onAllNoticeRemoved:k,stack:m});return g?g(r,{prefixCls:o,key:e}):r})),c)});var k=r(74757),C=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],O=function(){return document.body},M=0;function I(){for(var e={},t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){t&&Object.keys(t).forEach(function(r){var n=t[r];void 0!==n&&(e[r]=n)})}),e}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,r=void 0===t?O:t,s=e.motion,l=e.prefixCls,c=e.maxCount,u=e.className,f=e.style,d=e.onAllRemoved,h=e.stack,p=e.renderNotifications,m=(0,o.A)(e,C),g=a.useState(),b=(0,i.A)(g,2),v=b[0],y=b[1],w=a.useRef(),x=a.createElement($,{container:v,ref:w,prefixCls:l,motion:s,maxCount:c,className:u,style:f,onAllRemoved:d,stack:h,renderNotifications:p}),A=a.useState([]),E=(0,i.A)(A,2),_=E[0],S=E[1],R=(0,k._q)(function(e){var t=I(m,e);(null===t.key||void 0===t.key)&&(t.key="rc-notification-".concat(M),M+=1),S(function(e){return[].concat((0,n.A)(e),[{type:"open",config:t}])})}),j=a.useMemo(function(){return{open:R,close:function(e){S(function(t){return[].concat((0,n.A)(t),[{type:"close",key:e}])})},destroy:function(){S(function(e){return[].concat((0,n.A)(e),[{type:"destroy"}])})}}},[]);return a.useEffect(function(){y(r())}),a.useEffect(function(){if(w.current&&_.length){var e,t;_.forEach(function(e){switch(e.type){case"open":w.current.open(e.config);break;case"close":w.current.close(e.key);break;case"destroy":w.current.destroy()}}),S(function(r){return e===r&&t||(e=r,t=r.filter(function(e){return!_.includes(e)})),t})}},[_]),[j,x]}},53455(e,t,r){"use strict";r.d(t,{A:()=>P});var n=r(76878),i=r(39317),o=r(70486),a=r(56284),s=r(22155),l=r(30395),c=r.n(l),u=r(44965),f=r(94030),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],h=void 0;function p(e,t){var r,o=e.prefixCls,l=e.invalidate,f=e.item,p=e.renderItem,m=e.responsive,g=e.responsiveDisabled,b=e.registerSize,v=e.itemKey,y=e.className,w=e.style,x=e.children,A=e.display,E=e.order,_=e.component,S=void 0===_?"div":_,$=(0,a.A)(e,d),k=m&&!A;function C(e){b(v,e)}s.useEffect(function(){return function(){C(null)}},[]);var O=p&&f!==h?p(f,{index:E}):x;l||(r={opacity:+!k,height:k?0:h,overflowY:k?"hidden":h,order:m?E:h,pointerEvents:k?"none":h,position:k?"absolute":h});var M={};k&&(M["aria-hidden"]=!0);var I=s.createElement(S,(0,n.A)({className:c()(!l&&o,y),style:(0,i.A)((0,i.A)({},r),w)},M,$,{ref:t}),O);return m&&(I=s.createElement(u.A,{onResize:function(e){C(e.offsetWidth)},disabled:g},I)),I}var m=s.forwardRef(p);m.displayName="Item";let g=m;var b=r(44649),v=r(70316),y=r(23504);function w(e){if("u"<typeof MessageChannel)(0,y.A)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function x(){var e=s.useRef(null);return function(t){e.current||(e.current=[],w(function(){(0,v.unstable_batchedUpdates)(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function A(e,t){var r=s.useState(t),n=(0,o.A)(r,2),i=n[0],a=n[1];return[i,(0,b.A)(function(t){e(function(){a(t)})})]}var E=s.createContext(null),_=["component"],S=["className"],$=["className"],k=function(e,t){var r=s.useContext(E);if(!r){var i=e.component,o=void 0===i?"div":i,l=(0,a.A)(e,_);return s.createElement(o,(0,n.A)({},l,{ref:t}))}var u=r.className,f=(0,a.A)(r,S),d=e.className,h=(0,a.A)(e,$);return s.createElement(E.Provider,{value:null},s.createElement(g,(0,n.A)({ref:t,className:c()(u,d)},f,h)))},C=s.forwardRef(k);C.displayName="RawItem";let O=C;var M=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],I="responsive",R="invalidate";function j(e){return"+ ".concat(e.length," ...")}function T(e,t){var r=e.prefixCls,l=void 0===r?"rc-overflow":r,d=e.data,h=void 0===d?[]:d,p=e.renderItem,m=e.renderRawItem,b=e.itemKey,v=e.itemWidth,y=void 0===v?10:v,w=e.ssr,_=e.style,S=e.className,$=e.maxCount,k=e.renderRest,C=e.renderRawRest,O=e.prefix,T=e.suffix,N=e.component,P=void 0===N?"div":N,B=e.itemComponent,z=e.onVisibleChange,L=(0,a.A)(e,M),D="full"===w,F=x(),H=A(F,null),U=(0,o.A)(H,2),q=U[0],W=U[1],V=q||0,K=A(F,new Map),G=(0,o.A)(K,2),X=G[0],Z=G[1],Y=A(F,0),J=(0,o.A)(Y,2),Q=J[0],ee=J[1],et=A(F,0),er=(0,o.A)(et,2),en=er[0],ei=er[1],eo=A(F,0),ea=(0,o.A)(eo,2),es=ea[0],el=ea[1],ec=A(F,0),eu=(0,o.A)(ec,2),ef=eu[0],ed=eu[1],eh=(0,s.useState)(null),ep=(0,o.A)(eh,2),em=ep[0],eg=ep[1],eb=(0,s.useState)(null),ev=(0,o.A)(eb,2),ey=ev[0],ew=ev[1],ex=s.useMemo(function(){return null===ey&&D?Number.MAX_SAFE_INTEGER:ey||0},[ey,q]),eA=(0,s.useState)(!1),eE=(0,o.A)(eA,2),e_=eE[0],eS=eE[1],e$="".concat(l,"-item"),ek=Math.max(Q,en),eC=$===I,eO=h.length&&eC,eM=$===R,eI=eO||"number"==typeof $&&h.length>$,eR=(0,s.useMemo)(function(){var e=h;return eO?e=null===q&&D?h:h.slice(0,Math.min(h.length,V/y)):"number"==typeof $&&(e=h.slice(0,$)),e},[h,y,q,$,eO]),ej=(0,s.useMemo)(function(){return eO?h.slice(ex+1):h.slice(eR.length)},[h,eR,eO,ex]),eT=(0,s.useCallback)(function(e,t){var r;return"function"==typeof b?b(e):null!=(r=b&&(null==e?void 0:e[b]))?r:t},[b]),eN=(0,s.useCallback)(p||function(e){return e},[p]);function eP(e,t,r){(ey!==e||void 0!==t&&t!==em)&&(ew(e),r||(eS(e<h.length-1),null==z||z(e)),void 0!==t&&eg(t))}function eB(e,t){W(t.clientWidth)}function ez(e,t){Z(function(r){var n=new Map(r);return null===t?n.delete(e):n.set(e,t),n})}function eL(e,t){ei(t),ee(en)}function eD(e,t){el(t)}function eF(e,t){ed(t)}function eH(e){return X.get(eT(eR[e],e))}(0,f.A)(function(){if(V&&"number"==typeof ek&&eR){var e=es+ef,t=eR.length,r=t-1;if(!t)return void eP(0,null);for(var n=0;n<t;n+=1){var i=eH(n);if(D&&(i=i||0),void 0===i){eP(n-1,void 0,!0);break}if(e+=i,0===r&&e<=V||n===r-1&&e+eH(r)<=V){eP(r,null);break}if(e+ek>V){eP(n-1,e-i-ef+en);break}}T&&eH(0)+ef>V&&eg(null)}},[V,X,en,es,ef,eT,eR]);var eU=e_&&!!ej.length,eq={};null!==em&&eO&&(eq={position:"absolute",left:em,top:0});var eW={prefixCls:e$,responsive:eO,component:B,invalidate:eM},eV=m?function(e,t){var r=eT(e,t);return s.createElement(E.Provider,{key:r,value:(0,i.A)((0,i.A)({},eW),{},{order:t,item:e,itemKey:r,registerSize:ez,display:t<=ex})},m(e,t))}:function(e,t){var r=eT(e,t);return s.createElement(g,(0,n.A)({},eW,{order:t,key:r,item:e,renderItem:eN,itemKey:r,registerSize:ez,display:t<=ex}))},eK={order:eU?ex:Number.MAX_SAFE_INTEGER,className:"".concat(e$,"-rest"),registerSize:eL,display:eU},eG=k||j,eX=C?s.createElement(E.Provider,{value:(0,i.A)((0,i.A)({},eW),eK)},C(ej)):s.createElement(g,(0,n.A)({},eW,eK),"function"==typeof eG?eG(ej):eG),eZ=s.createElement(P,(0,n.A)({className:c()(!eM&&l,S),style:_,ref:t},L),O&&s.createElement(g,(0,n.A)({},eW,{responsive:eC,responsiveDisabled:!eO,order:-1,className:"".concat(e$,"-prefix"),registerSize:eD,display:!0}),O),eR.map(eV),eI?eX:null,T&&s.createElement(g,(0,n.A)({},eW,{responsive:eC,responsiveDisabled:!eO,order:ex,className:"".concat(e$,"-suffix"),registerSize:eF,display:!0,style:eq}),T));return eC?s.createElement(u.A,{onResize:eB,disabled:!eO},eZ):eZ}var N=s.forwardRef(T);N.displayName="Overflow",N.Item=O,N.RESPONSIVE=I,N.INVALIDATE=R;let P=N},14835(e,t,r){"use strict";r.d(t,{A:()=>n});let n={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},44965(e,t,r){"use strict";r.d(t,{A:()=>et});var n=r(76878),i=r(22155),o=r(54355);r(47773);var a=r(39317),s=r(24366),l=r(73003),c=r(75252),u=i.createContext(null);function f(e){var t=e.children,r=e.onBatchResize,n=i.useRef(0),o=i.useRef([]),a=i.useContext(u),s=i.useCallback(function(e,t,i){n.current+=1;var s=n.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then(function(){s===n.current&&(null==r||r(o.current),o.current=[])}),null==a||a(e,t,i)},[r,a]);return i.createElement(u.Provider,{value:s},t)}var d=function(){if("u">typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];e.call(t,i[1],i[0])}},t}()}(),h="u">typeof window&&"u">typeof document&&window.document===document,p=function(){return void 0!==r.g&&r.g.Math===Math?r.g:"u">typeof self&&self.Math===Math?self:"u">typeof window&&window.Math===Math?window:Function("return this")()}(),m=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame.bind(p):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),g=2;function b(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&s()}function a(){m(o)}function s(){var e=Date.now();if(r){if(e-i<g)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=e}return s}var v=20,y=["top","right","bottom","left","width","height","size","weight"],w="u">typeof MutationObserver,x=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=b(this.refresh.bind(this),v)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){h&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),w?(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(){h&&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(e){var t=e.propertyName,r=void 0===t?"":t;y.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),A=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},E=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||p},_=T(0,0,0,0);function S(e){return parseFloat(e)||0}function $(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+S(e["border-"+r+"-width"])},0)}function k(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=S(a)}return r}function C(e){var t=e.getBBox();return T(0,0,t.width,t.height)}function O(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return _;var n=E(e).getComputedStyle(e),i=k(n),o=i.left+i.right,a=i.top+i.bottom,s=S(n.width),l=S(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==t&&(s-=$(n,"left","right")+o),Math.round(l+a)!==r&&(l-=$(n,"top","bottom")+a)),!I(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return T(i.left,i.top,s,l)}var M=function(){return"u">typeof SVGGraphicsElement?function(e){return e instanceof E(e).SVGGraphicsElement}:function(e){return e instanceof E(e).SVGElement&&"function"==typeof e.getBBox}}();function I(e){return e===E(e).document.documentElement}function R(e){return h?M(e)?C(e):O(e):_}function j(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=Object.create(("u">typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype);return A(o,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),o}function T(e,t,r,n){return{x:e,y:t,width:r,height:n}}var N=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=R(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),P=function(){return function(e,t){A(this,{target:e,contentRect:j(t)})}}(),B=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new d,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof E(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new N(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof E(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new P(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),z="u">typeof WeakMap?new WeakMap:new d,L=function(){function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var r=new B(t,x.getInstance(),this);z.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){L.prototype[e]=function(){var t;return(t=z.get(this))[e].apply(t,arguments)}});let D=function(){return void 0!==p.ResizeObserver?p.ResizeObserver:L}();var F=new Map,H=new D(function(e){e.forEach(function(e){var t,r=e.target;null==(t=F.get(r))||t.forEach(function(e){return e(r)})})});function U(e,t){F.has(e)||(F.set(e,new Set),H.observe(e)),F.get(e).add(t)}function q(e,t){F.has(e)&&(F.get(e).delete(t),F.get(e).size||(H.unobserve(e),F.delete(e)))}var W=r(11947),V=r(96591),K=r(93619),G=r(51232),X=function(e){(0,K.A)(r,e);var t=(0,G.A)(r);function r(){return(0,W.A)(this,r),t.apply(this,arguments)}return(0,V.A)(r,[{key:"render",value:function(){return this.props.children}}]),r}(i.Component);function Z(e,t){var r=e.children,n=e.disabled,o=i.useRef(null),f=i.useRef(null),d=i.useContext(u),h="function"==typeof r,p=h?r(o):r,m=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!h&&i.isValidElement(p)&&(0,c.f3)(p),b=g?(0,c.A9)(p):null,v=(0,c.xK)(b,o),y=function(){var e;return(0,l.Ay)(o.current)||(o.current&&"object"===(0,s.A)(o.current)?(0,l.Ay)(null==(e=o.current)?void 0:e.nativeElement):null)||(0,l.Ay)(f.current)};i.useImperativeHandle(t,function(){return y()});var w=i.useRef(e);w.current=e;var x=i.useCallback(function(e){var t=w.current,r=t.onResize,n=t.data,i=e.getBoundingClientRect(),o=i.width,s=i.height,l=e.offsetWidth,c=e.offsetHeight,u=Math.floor(o),f=Math.floor(s);if(m.current.width!==u||m.current.height!==f||m.current.offsetWidth!==l||m.current.offsetHeight!==c){var h={width:u,height:f,offsetWidth:l,offsetHeight:c};m.current=h;var p=l===Math.round(o)?o:l,g=c===Math.round(s)?s:c,b=(0,a.A)((0,a.A)({},h),{},{offsetWidth:p,offsetHeight:g});null==d||d(b,e,n),r&&Promise.resolve().then(function(){r(b,e)})}},[]);return i.useEffect(function(){var e=y();return e&&!n&&U(e,x),function(){return q(e,x)}},[o.current,n]),i.createElement(X,{ref:f},g?i.cloneElement(p,{ref:v}):p)}let Y=i.forwardRef(Z);var J="rc-observer-key";function Q(e,t){var r=e.children;return("function"==typeof r?[r]:(0,o.A)(r)).map(function(r,o){var a=(null==r?void 0:r.key)||"".concat(J,"-").concat(o);return i.createElement(Y,(0,n.A)({},e,{key:a,ref:0===o?t:void 0}),r)})}var ee=i.forwardRef(Q);ee.Collection=f;let et=ee},71303(e,t,r){"use strict";r.d(t,{A:()=>v,z:()=>a});var n=r(30395),i=r.n(n),o=r(22155);function a(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,s=e.bodyClassName,l=e.className,c=e.style;return o.createElement("div",{className:i()("".concat(r,"-content"),l),style:c},o.createElement("div",{className:i()("".concat(r,"-inner"),s),id:n,role:"tooltip",style:a},"function"==typeof t?t():t))}var s=r(76878),l=r(39317),c=r(56284),u=r(78387),f={shiftX:64,adjustY:1},d={adjustX:1,shiftY:!0},h=[0,0],p={left:{points:["cr","cl"],overflow:d,offset:[-4,0],targetOffset:h},right:{points:["cl","cr"],overflow:d,offset:[4,0],targetOffset:h},top:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:h},bottom:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:h},topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:h},leftTop:{points:["tr","tl"],overflow:d,offset:[-4,0],targetOffset:h},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:h},rightTop:{points:["tl","tr"],overflow:d,offset:[4,0],targetOffset:h},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:h},rightBottom:{points:["bl","br"],overflow:d,offset:[4,0],targetOffset:h},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:h},leftBottom:{points:["br","bl"],overflow:d,offset:[-4,0],targetOffset:h}},m=r(65556),g=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],b=function(e,t){var r=e.overlayClassName,n=e.trigger,f=void 0===n?["hover"]:n,d=e.mouseEnterDelay,h=void 0===d?0:d,b=e.mouseLeaveDelay,v=void 0===b?.1:b,y=e.overlayStyle,w=e.prefixCls,x=void 0===w?"rc-tooltip":w,A=e.children,E=e.onVisibleChange,_=e.afterVisibleChange,S=e.transitionName,$=e.animation,k=e.motion,C=e.placement,O=void 0===C?"right":C,M=e.align,I=void 0===M?{}:M,R=e.destroyTooltipOnHide,j=void 0!==R&&R,T=e.defaultVisible,N=e.getTooltipContainer,P=e.overlayInnerStyle,B=(e.arrowContent,e.overlay),z=e.id,L=e.showArrow,D=void 0===L||L,F=e.classNames,H=e.styles,U=(0,c.A)(e,g),q=(0,m.A)(z),W=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,function(){return W.current});var V=(0,l.A)({},U);"visible"in e&&(V.popupVisible=e.visible);var K=function(){return o.createElement(a,{key:"content",prefixCls:x,id:q,bodyClassName:null==F?void 0:F.body,overlayInnerStyle:(0,l.A)((0,l.A)({},P),null==H?void 0:H.body)},B)},G=function(){var e=o.Children.only(A),t=(null==e?void 0:e.props)||{},r=(0,l.A)((0,l.A)({},t),{},{"aria-describedby":B?q:null});return o.cloneElement(A,r)};return o.createElement(u.A,(0,s.A)({popupClassName:i()(r,null==F?void 0:F.root),prefixCls:x,popup:K,action:f,builtinPlacements:p,popupPlacement:O,ref:W,popupAlign:I,getPopupContainer:N,onPopupVisibleChange:E,afterPopupVisibleChange:_,popupTransitionName:S,popupAnimation:$,popupMotion:k,defaultPopupVisible:T,autoDestroy:j,mouseLeaveDelay:v,popupStyle:(0,l.A)((0,l.A)({},y),null==H?void 0:H.root),mouseEnterDelay:h,arrow:D},V),G())};let v=(0,o.forwardRef)(b)},54355(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(17041),i=r(22155);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return i.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?r=r.concat(o(e)):(0,n.A)(e)&&e.props?r=r.concat(o(e.props.children,t)):r.push(e))}),r}},8929(e,t,r){"use strict";function n(){return!!("u">typeof window&&window.document&&window.document.createElement)}r.d(t,{A:()=>n})},50977(e,t,r){"use strict";function n(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}r.d(t,{A:()=>n})},1056(e,t,r){"use strict";r.d(t,{BD:()=>v,m6:()=>g});var n=r(39317),i=r(8929),o=r(50977),a="data-rc-order",s="data-rc-priority",l="rc-util-key",c=new Map;function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):l}function f(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function h(e){return Array.from((c.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,i.A)())return null;var r=t.csp,n=t.prepend,o=t.priority,l=void 0===o?0:o,c=d(n),u="prependQueue"===c,p=document.createElement("style");p.setAttribute(a,c),u&&l&&p.setAttribute(s,"".concat(l)),null!=r&&r.nonce&&(p.nonce=null==r?void 0:r.nonce),p.innerHTML=e;var m=f(t),g=m.firstChild;if(n){if(u){var b=(t.styles||h(m)).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(a))&&l>=Number(e.getAttribute(s)||0)});if(b.length)return m.insertBefore(p,b[b.length-1].nextSibling),p}m.insertBefore(p,g)}else m.appendChild(p);return p}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=f(t);return(t.styles||h(r)).find(function(r){return r.getAttribute(u(t))===e})}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=m(e,t);r&&f(t).removeChild(r)}function b(e,t){var r=c.get(e);if(!r||!(0,o.A)(document,r)){var n=p("",t),i=n.parentNode;c.set(e,i),e.removeChild(n)}}function v(e,t){var r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=f(a),l=h(s),c=(0,n.A)((0,n.A)({},a),{},{styles:l});b(s,c);var d=m(t,c);if(d)return null!=(r=c.csp)&&r.nonce&&d.nonce!==(null==(i=c.csp)?void 0:i.nonce)&&(d.nonce=null==(o=c.csp)?void 0:o.nonce),d.innerHTML!==e&&(d.innerHTML=e),d;var g=p(e,c);return g.setAttribute(u(c),t),g}},73003(e,t,r){"use strict";r.d(t,{Ay:()=>l,fk:()=>a,rb:()=>s});var n=r(24366),i=r(22155),o=r(70316);function a(e){return e instanceof HTMLElement||e instanceof SVGElement}function s(e){return e&&"object"===(0,n.A)(e)&&a(e.nativeElement)?e.nativeElement:a(e)?e:null}function l(e){var t,r=s(e);return r||(e instanceof i.Component?null==(t=o.findDOMNode)?void 0:t.call(o,e):null)}},65460(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1}},95612(e,t,r){"use strict";function n(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}function i(e){return n(e)instanceof ShadowRoot}function o(e){return i(e)?n(e):null}r.d(t,{j:()=>o})},19187(e,t,r){"use strict";r.d(t,{A:()=>i});var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};let i=n},17041(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(24366),i=Symbol.for("react.element"),o=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(e){return e&&"object"===(0,n.A)(e)&&(e.$$typeof===i||e.$$typeof===o)&&e.type===a}},44649(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(22155);function i(e){var t=n.useRef();return t.current=e,n.useCallback(function(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return null==(e=t.current)?void 0:e.call.apply(e,[t].concat(n))},[])}},65556(e,t,r){"use strict";r.d(t,{A:()=>c});var n,i=r(70486),o=r(39317),a=r(22155),s=0,l=function(){return(0,o.A)({},n||(n=r.t(a,2))).useId}();let c=l?function(e){var t=l();return e||t}:function(e){var t=a.useState("ssr-id"),r=(0,i.A)(t,2),n=r[0],o=r[1];return(a.useEffect(function(){var e=s;s+=1,o("rc_unique_".concat(e))},[]),e)?e:n}},94030(e,t,r){"use strict";r.d(t,{A:()=>s,o:()=>a});var n=r(22155),i=(0,r(8929).A)()?n.useLayoutEffect:n.useEffect,o=function(e,t){var r=n.useRef(!0);i(function(){return e(r.current)},t),i(function(){return r.current=!1,function(){r.current=!0}},[])},a=function(e,t){o(function(t){if(!t)return e()},t)};let s=o},96271(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(22155);function i(e,t,r){var i=n.useRef({});return(!("value"in i.current)||r(i.current.condition,t))&&(i.current.value=e(),i.current.condition=t),i.current.value}},3604(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(70486),i=r(44649),o=r(94030),a=r(74548);function s(e){return void 0!==e}function l(e,t){var r=t||{},l=r.defaultValue,c=r.value,u=r.onChange,f=r.postState,d=(0,a.A)(function(){return s(c)?c:s(l)?"function"==typeof l?l():l:"function"==typeof e?e():e}),h=(0,n.A)(d,2),p=h[0],m=h[1],g=void 0!==c?c:p,b=f?f(g):g,v=(0,i.A)(u),y=(0,a.A)([g]),w=(0,n.A)(y,2),x=w[0],A=w[1];return(0,o.o)(function(){var e=x[0];p!==e&&v(p,e)},[x]),(0,o.o)(function(){s(c)||m(c)},[c]),[b,(0,i.A)(function(e,t){m(e,t),A([g],t)})]}},74548(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(70486),i=r(22155);function o(e){var t=i.useRef(!1),r=i.useState(e),o=(0,n.A)(r,2),a=o[0],s=o[1];return i.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[a,function(e,r){r&&t.current||s(e)}]}},74757(e,t,r){"use strict";r.d(t,{Jt:()=>i.A,_q:()=>n.A,hZ:()=>o.A});var n=r(44649);r(3604),r(75252);var i=r(49447),o=r(43011);r(47773)},91585(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(24366),i=r(47773);let o=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;function a(e,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=o.has(e);if((0,i.Ay)(!l,"Warning: There may be circular references"),l)return!1;if(e===t)return!0;if(r&&s>1)return!1;o.add(e);var c=s+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var u=0;u<e.length;u++)if(!a(e[u],t[u],c))return!1;return!0}if(e&&t&&"object"===(0,n.A)(e)&&"object"===(0,n.A)(t)){var f=Object.keys(e);return f.length===Object.keys(t).length&&f.every(function(r){return a(e[r],t[r],c)})}return!1}return a(e,t)}},22075(e,t,r){"use strict";r.d(t,{A:()=>n});let n=function(){if("u"<typeof navigator||"u"<typeof window)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(null==e?void 0:e.substr(0,4))}},46604(e,t,r){"use strict";function n(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete r[e]}),r}r.d(t,{A:()=>n})},21634(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(39317),i="accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap",o="onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError",a="".concat(i," ").concat(o).split(/[\s\n]+/),s="aria-",l="data-";function c(e,t){return 0===e.indexOf(t)}function u(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===r?{aria:!0,data:!0,attr:!0}:!0===r?{aria:!0}:(0,n.A)({},r);var i={};return Object.keys(e).forEach(function(r){(t.aria&&("role"===r||c(r,s))||t.data&&c(r,l)||t.attr&&a.includes(r))&&(i[r]=e[r])}),i}},23504(e,t,r){"use strict";r.d(t,{A:()=>c});var n=function(e){return+setTimeout(e,16)},i=function(e){return clearTimeout(e)};"u">typeof window&&"requestAnimationFrame"in window&&(n=function(e){return window.requestAnimationFrame(e)},i=function(e){return window.cancelAnimationFrame(e)});var o=0,a=new Map;function s(e){a.delete(e)}var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=o+=1;function i(t){if(0===t)s(r),e();else{var o=n(function(){i(t-1)});a.set(r,o)}}return i(t),r};l.cancel=function(e){var t=a.get(e);return s(e),i(t)};let c=l},75252(e,t,r){"use strict";r.d(t,{A9:()=>m,H3:()=>p,K4:()=>u,Xf:()=>c,f3:()=>d,xK:()=>f});var n=r(24366),i=r(22155),o=r(82737),a=r(96271),s=r(17041),l=Number(i.version.split(".")[0]),c=function(e,t){"function"==typeof e?e(t):"object"===(0,n.A)(e)&&e&&"current"in e&&(e.current=t)},u=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);return n.length<=1?n[0]:function(e){t.forEach(function(t){c(t,e)})}},f=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.A)(function(){return u.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,r){return e!==t[r]})})},d=function(e){if(!e)return!1;if(h(e)&&l>=19)return!0;var t,r,n=(0,o.isMemo)(e)?e.type.type:e.type;return("function"!=typeof n||!!(null!=(t=n.prototype)&&t.render)||n.$$typeof===o.ForwardRef)&&("function"!=typeof e||!!(null!=(r=e.prototype)&&r.render)||e.$$typeof===o.ForwardRef)};function h(e){return(0,i.isValidElement)(e)&&!(0,s.A)(e)}var p=function(e){return h(e)&&d(e)},m=function(e){if(e&&h(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null}},49447(e,t,r){"use strict";function n(e,t){for(var r=e,n=0;n<t.length;n+=1){if(null==r)return;r=r[t[n]]}return r}r.d(t,{A:()=>n})},43011(e,t,r){"use strict";r.d(t,{A:()=>c,h:()=>h});var n=r(24366),i=r(39317),o=r(78944),a=r(82033),s=r(49447);function l(e,t,r,n){if(!t.length)return r;var s,c=(0,a.A)(t),u=c[0],f=c.slice(1);return s=e||"number"!=typeof u?Array.isArray(e)?(0,o.A)(e):(0,i.A)({},e):[],n&&void 0===r&&1===f.length?delete s[u][f[0]]:s[u]=l(s[u],f,r,n),s}function c(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&n&&void 0===r&&!(0,s.A)(e,t.slice(0,-1))?e:l(e,t,r,n)}function u(e){return"object"===(0,n.A)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function f(e){return Array.isArray(e)?[]:{}}var d="u"<typeof Reflect?Object.keys:Reflect.ownKeys;function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=f(t[0]);return t.forEach(function(e){function t(r,a){var l=new Set(a),h=(0,s.A)(e,r),p=Array.isArray(h);if(p||u(h)){if(!l.has(h)){l.add(h);var m=(0,s.A)(i,r);p?i=c(i,r,[]):m&&"object"===(0,n.A)(m)||(i=c(i,r,f(h))),d(h).forEach(function(e){t([].concat((0,o.A)(r),[e]),l)})}}else i=c(i,r,h)}t([])}),i}},47773(e,t,r){"use strict";r.d(t,{$e:()=>o,Ay:()=>f});var n={},i=[];function o(e,t){}function a(e,t){}function s(){n={}}function l(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function c(e,t){l(o,e,t)}function u(e,t){l(a,e,t)}c.preMessage=function(e){i.push(e)},c.resetWarned=s,c.noteOnce=u;let f=c},16669(e,t){"use strict";var r,n,i=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy");function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case a:case l:case s:case h:case p:return e;default:switch(e=e&&e.$$typeof){case f:case u:case d:case g:case m:case c:return e;default:return t}}case o:return t}}}Symbol.for("react.offscreen"),n=Symbol.for("react.module.reference"),r=u,r=c,r=i,t.ForwardRef=d,r=a,r=g,r=m,r=o,r=l,r=s,r=h,r=p,r=function(){return!1},r=function(){return!1},r=function(e){return b(e)===u},r=function(e){return b(e)===c},r=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},r=function(e){return b(e)===d},r=function(e){return b(e)===a},r=function(e){return b(e)===g},t.isMemo=function(e){return b(e)===m},r=function(e){return b(e)===o},r=function(e){return b(e)===l},r=function(e){return b(e)===s},r=function(e){return b(e)===h},r=function(e){return b(e)===p}},82737(e,t,r){"use strict";e.exports=r(16669)},34458(e,t,r){"use strict";r.d(t,{TW:()=>eZ,YZ:()=>eV,Zk:()=>S});var n,i=r(22155);let{createElement:o,createContext:a,createRef:s,forwardRef:l,useCallback:c,useContext:u,useEffect:f,useImperativeHandle:d,useLayoutEffect:h,useMemo:p,useRef:m,useState:g}=n||(n=r.t(i,2)),b=(n||(n=r.t(i,2)))["useId".toString()],v=h,y=a(null);y.displayName="PanelGroupContext";let w=v,x="function"==typeof b?b:()=>null,A=0;function E(e=null){let t=x(),r=m(e||t||null);return null===r.current&&(r.current=""+A++),null!=e?e:r.current}function _({children:e,className:t="",collapsedSize:r,collapsible:n,defaultSize:i,forwardedRef:a,id:s,maxSize:l,minSize:c,onCollapse:f,onExpand:h,onResize:p,order:g,style:b,tagName:v="div",...x}){let A=u(y);if(null===A)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:S,expandPanel:$,getPanelSize:k,getPanelStyle:C,groupId:O,isPanelCollapsed:M,reevaluatePanelConstraints:I,registerPanel:R,resizePanel:j,unregisterPanel:T}=A,N=E(s),P=m({callbacks:{onCollapse:f,onExpand:h,onResize:p},constraints:{collapsedSize:r,collapsible:n,defaultSize:i,maxSize:l,minSize:c},id:N,idIsFromProps:void 0!==s,order:g});m({didLogMissingDefaultSizeWarning:!1}),w(()=>{let{callbacks:e,constraints:t}=P.current,o={...t};P.current.id=N,P.current.idIsFromProps=void 0!==s,P.current.order=g,e.onCollapse=f,e.onExpand=h,e.onResize=p,t.collapsedSize=r,t.collapsible=n,t.defaultSize=i,t.maxSize=l,t.minSize=c,(o.collapsedSize!==t.collapsedSize||o.collapsible!==t.collapsible||o.maxSize!==t.maxSize||o.minSize!==t.minSize)&&I(P.current,o)}),w(()=>{let e=P.current;return R(e),()=>{T(e)}},[g,N,R,T]),d(a,()=>({collapse:()=>{S(P.current)},expand:e=>{$(P.current,e)},getId:()=>N,getSize:()=>k(P.current),isCollapsed:()=>M(P.current),isExpanded:()=>!M(P.current),resize:e=>{j(P.current,e)}}),[S,$,k,M,N,j]);let B=C(P.current,i);return o(v,{...x,children:e,className:t,id:s,style:{...B,...b},"data-panel":"","data-panel-collapsible":n||void 0,"data-panel-group-id":O,"data-panel-id":N,"data-panel-size":parseFloat(""+B.flexGrow).toFixed(1)})}let S=l((e,t)=>o(_,{...e,forwardedRef:t}));_.displayName="Panel",S.displayName="forwardRef(Panel)";let $=null,k=null;function C(e,t){if(t){let e=(t&q)!=0,r=(t&W)!=0,n=(t&V)!=0,i=(t&K)!=0;if(e)if(n)return"se-resize";else if(i)return"ne-resize";else return"e-resize";if(r)if(n)return"sw-resize";else if(i)return"nw-resize";else return"w-resize";if(n)return"s-resize";else if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function O(){null!==k&&(document.head.removeChild(k),$=null,k=null)}function M(e,t){let r=C(e,t);$!==r&&($=r,null===k&&(k=document.createElement("style"),document.head.appendChild(k)),k.innerHTML=`*{cursor: ${r}!important;}`)}function I(e){return"keydown"===e.type}function R(e){return e.type.startsWith("pointer")}function j(e){return e.type.startsWith("mouse")}function T(e){if(R(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(j(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function N(e,t,r){return r?e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y:e.x<=t.x+t.width&&e.x+e.width>=t.x&&e.y<=t.y+t.height&&e.y+e.height>=t.y}function P(e,t){let r;if(e===t)throw Error("Cannot compare node with itself");let n={a:H(e),b:H(t)};for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;eu(r,"Stacking order can only be calculated for elements with a common ancestor");let i={a:F(D(n.a)),b:F(D(n.b))};if(i.a===i.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},i=e.length;for(;i--;){let r=e[i];if(r===t.a)return 1;if(r===t.b)return -1}}return Math.sign(i.a-i.b)}let B=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function z(e){var t;let r=getComputedStyle(null!=(t=U(e))?t:e).display;return"flex"===r||"inline-flex"===r}function L(e){let t=getComputedStyle(e);return!!("fixed"===t.position||"auto"!==t.zIndex&&("static"!==t.position||z(e))||1>+t.opacity||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||B.test(t.willChange))||"touch"===t.webkitOverflowScrolling}function D(e){let t=e.length;for(;t--;){let r=e[t];if(eu(r,"Missing node"),L(r))return r}return null}function F(e){return e&&Number(getComputedStyle(e).zIndex)||0}function H(e){let t=[];for(;e;)t.push(e),e=U(e);return t}function U(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let q=1,W=2,V=4,K=8,G="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),X=[],Z=!1,Y=new Map,J=new Map,Q=new Set;function ee(e,t,r,n,i){var o;let{ownerDocument:a}=t,s={direction:r,element:t,hitAreaMargins:n,setResizeHandlerState:i},l=null!=(o=Y.get(a))?o:0;return Y.set(a,l+1),Q.add(s),es(),function(){var t;J.delete(e),Q.delete(s);let r=null!=(t=Y.get(a))?t:1;if(Y.set(a,r-1),es(),1===r&&Y.delete(a),X.includes(s)){let e=X.indexOf(s);e>=0&&X.splice(e,1),ea()}}}function et(e){let{target:t}=e,{x:r,y:n}=T(e);Z=!0,ei({target:t,x:r,y:n}),es(),X.length>0&&(el("down",e),e.preventDefault(),e.stopPropagation())}function er(e){let{x:t,y:r}=T(e);if(0===e.buttons&&(Z=!1,el("up",e)),!Z){let{target:n}=e;ei({target:n,x:t,y:r})}el("move",e),ea(),X.length>0&&e.preventDefault()}function en(e){let{target:t}=e,{x:r,y:n}=T(e);J.clear(),Z=!1,X.length>0&&e.preventDefault(),el("up",e),ei({target:t,x:r,y:n}),ea(),es()}function ei({target:e,x:t,y:r}){X.splice(0);let n=null;e instanceof HTMLElement&&(n=e),Q.forEach(e=>{let{element:i,hitAreaMargins:o}=e,a=i.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,f=G?o.coarse:o.fine;if(t>=l-f&&t<=c+f&&r>=u-f&&r<=s+f){if(null!==n&&i!==n&&!i.contains(n)&&!n.contains(i)&&P(n,i)>0){let e=n,t=!1;for(;e&&!e.contains(i);){if(N(e.getBoundingClientRect(),a,!0)){t=!0;break}e=e.parentElement}if(t)return}X.push(e)}})}function eo(e,t){J.set(e,t)}function ea(){let e=!1,t=!1;X.forEach(r=>{let{direction:n}=r;"horizontal"===n?e=!0:t=!0});let r=0;J.forEach(e=>{r|=e}),e&&t?M("intersection",r):e?M("horizontal",r):t?M("vertical",r):O()}function es(){Y.forEach((e,t)=>{let{body:r}=t;r.removeEventListener("contextmenu",en),r.removeEventListener("pointerdown",et),r.removeEventListener("pointerleave",er),r.removeEventListener("pointermove",er)}),window.removeEventListener("pointerup",en),window.removeEventListener("pointercancel",en),Q.size>0&&(Z?(X.length>0&&Y.forEach((e,t)=>{let{body:r}=t;e>0&&(r.addEventListener("contextmenu",en),r.addEventListener("pointerleave",er),r.addEventListener("pointermove",er))}),window.addEventListener("pointerup",en),window.addEventListener("pointercancel",en)):Y.forEach((e,t)=>{let{body:r}=t;e>0&&(r.addEventListener("pointerdown",et,{capture:!0}),r.addEventListener("pointermove",er))}))}function el(e,t){Q.forEach(r=>{let{setResizeHandlerState:n}=r;n(e,X.includes(r),t)})}function ec(){let[e,t]=g(0);return c(()=>t(e=>e+1),[])}function eu(e,t){if(!e)throw console.error(t),Error(t)}let ef=10;function ed(e,t,r=ef){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}function eh(e,t,r=ef){return 0===ed(e,t,r)}function ep(e,t,r){return 0===ed(e,t,r)}function em(e,t,r){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!ep(e[n],t[n],r))return!1;return!0}function eg({panelConstraints:e,panelIndex:t,size:r}){let n=e[t];eu(null!=n,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=n;return 0>ed(r,s)&&(r=o&&0>ed(r,(i+s)/2)?i:s),r=parseFloat((r=Math.min(a,r)).toFixed(ef))}function eb({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:o}){if(ep(e,0))return t;let a=[...t],[s,l]=n;eu(null!=s,"Invalid first pivot index"),eu(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===o){{let n=e<0?l:s,i=r[n];eu(i,`Panel constraints not found for index ${n}`);let{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){let r=t[n];if(eu(null!=r,`Previous layout not found for panel index ${n}`),ep(r,o)){let t=c-r;ed(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let n=e<0?s:l,i=r[n];eu(i,`No panel constraints found for index ${n}`);let{collapsedSize:o=0,collapsible:a,minSize:c=0}=i;if(a){let r=t[n];if(eu(null!=r,`Previous layout not found for panel index ${n}`),ep(r,c)){let t=r-o;ed(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let n=e<0?1:-1,i=e<0?l:s,o=0;for(;;){let e=t[i];if(eu(null!=e,`Previous layout not found for panel index ${i}`),o+=eg({panelConstraints:r,panelIndex:i,size:100})-e,(i+=n)<0||i>=r.length)break}let a=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-a:a}{let n=e<0?s:l;for(;n>=0&&n<r.length;){let i=Math.abs(e)-Math.abs(c),o=t[n];eu(null!=o,`Previous layout not found for panel index ${n}`);let s=eg({panelConstraints:r,panelIndex:n,size:o-i});if(!ep(o,s)&&(c+=o-s,a[n]=s,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?n--:n++}}if(em(i,a))return i;{let n=e<0?l:s,i=t[n];eu(null!=i,`Previous layout not found for panel index ${n}`);let o=i+c,u=eg({panelConstraints:r,panelIndex:n,size:o});if(a[n]=u,!ep(u,o)){let t=o-u,n=e<0?l:s;for(;n>=0&&n<r.length;){let i=a[n];eu(null!=i,`Previous layout not found for panel index ${n}`);let o=eg({panelConstraints:r,panelIndex:n,size:i+t});if(ep(i,o)||(t-=o-i,a[n]=o),ep(t,0))break;e>0?n--:n++}}}return ep(a.reduce((e,t)=>t+e,0),100)?a:i}function ev({layout:e,panelsArray:t,pivotIndices:r}){let n=0,i=100,o=0,a=0,s=r[0];return eu(null!=s,"No pivot index found"),t.forEach((e,t)=>{let{constraints:r}=e,{maxSize:l=100,minSize:c=0}=r;t===s?(n=c,i=l):(o+=c,a+=l)}),{valueMax:Math.min(i,100-o),valueMin:Math.max(n,100-a),valueNow:e[s]}}function ey(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function ew(e,t,r=document){let n=ey(e,r).findIndex(e=>e.getAttribute("data-panel-resize-handle-id")===t);return null!=n?n:null}function ex(e,t,r){let n=ew(e,t,r);return null!=n?[n,n+1]:[-1,-1]}function eA(e,t=document){var r;if(t instanceof HTMLElement&&(null==t||null==(r=t.dataset)?void 0:r.panelGroupId)==e)return t;let n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function eE(e,t=document){let r=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return r||null}function e_(e,t,r,n=document){var i,o,a,s;let l=eE(t,n),c=ey(e,n),u=l?c.indexOf(l):-1;return[null!=(i=null==(o=r[u])?void 0:o.id)?i:null,null!=(a=null==(s=r[u+1])?void 0:s.id)?a:null]}function eS({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:n,panelDataArray:i,panelGroupElement:o,setLayout:a}){m({didWarnAboutMissingResizeHandle:!1}),w(()=>{if(!o)return;let e=ey(r,o);for(let t=0;t<i.length-1;t++){let{valueMax:r,valueMin:o,valueNow:a}=ev({layout:n,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{let e=i[t];eu(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(r)),s.setAttribute("aria-valuemin",""+Math.round(o)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[r,n,i,o]),f(()=>{if(!o)return;let e=t.current;eu(e,"Eager values not found");let{panelDataArray:i}=e;eu(null!=eA(r,o),`No group found for id "${r}"`);let s=ey(r,o);eu(s,`No resize handles found for group id "${r}"`);let l=s.map(e=>{let t=e.getAttribute("data-panel-resize-handle-id");eu(t,"Resize handle element has no handle id attribute");let[s,l]=e_(r,t,i,o);if(null==s||null==l)return()=>{};let c=e=>{if(!e.defaultPrevented&&"Enter"===e.key){e.preventDefault();let l=i.findIndex(e=>e.id===s);if(l>=0){let e=i[l];eu(e,`No panel data found for index ${l}`);let s=n[l],{collapsedSize:c=0,collapsible:u,minSize:f=0}=e.constraints;if(null!=s&&u){let e=eb({delta:ep(s,c)?f-c:c-s,initialLayout:n,panelConstraints:i.map(e=>e.constraints),pivotIndices:ex(r,t,o),prevLayout:n,trigger:"keyboard"});n!==e&&a(e)}}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}});return()=>{l.forEach(e=>e())}},[o,e,t,r,n,i,a])}function e$(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function ek(e,t){let r="horizontal"===e,{x:n,y:i}=T(t);return r?n:i}function eC(e,t,r,n,i){let o="horizontal"===r,a=eE(t,i);eu(a,`No resize handle element found for id "${t}"`);let s=a.getAttribute("data-panel-group-id");eu(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=n,c=ek(r,e),u=eA(s,i);eu(u,`No group element found for id "${s}"`);let f=u.getBoundingClientRect();return(c-l)/(o?f.width:f.height)*100}function eO(e,t,r,n,i,o){if(I(e)){let t="horizontal"===r,n=0;n=e.shiftKey?100:null!=i?i:10;let o=0;switch(e.key){case"ArrowDown":o=t?0:n;break;case"ArrowLeft":o=t?-n:0;break;case"ArrowRight":o=t?n:0;break;case"ArrowUp":o=t?0:-n;break;case"End":o=100;break;case"Home":o=-100}return o}return null==n?0:eC(e,t,r,n,o)}function eM({panelDataArray:e}){let t=Array(e.length),r=e.map(e=>e.constraints),n=0,i=100;for(let o=0;o<e.length;o++){let e=r[o];eu(e,`Panel constraints not found for index ${o}`);let{defaultSize:a}=e;null!=a&&(n++,t[o]=a,i-=a)}for(let o=0;o<e.length;o++){let a=r[o];eu(a,`Panel constraints not found for index ${o}`);let{defaultSize:s}=a;if(null!=s)continue;let l=i/(e.length-n);n++,t[o]=l,i-=l}return t}function eI(e,t,r){t.forEach((t,n)=>{let i=e[n];eu(i,`Panel data not found for index ${n}`);let{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:c}=a,u=r[s];if(null==u||t!==u){r[s]=t;let{onCollapse:e,onExpand:n,onResize:i}=o;i&&i(t,u),c&&(e||n)&&(n&&(null==u||eh(u,l))&&!eh(t,l)&&n(),e&&(null==u||!eh(u,l))&&eh(t,l)&&e())}})}function eR(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function ej({defaultSize:e,dragState:t,layout:r,panelData:n,panelIndex:i,precision:o=3}){let a,s=r[i];return{flexBasis:0,flexGrow:a=null==s?void 0!=e?e.toPrecision(o):"1":1===n.length?"1":s.toPrecision(o),flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}function eT(e,t=10){let r=null;return(...n)=>{null!==r&&clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}}function eN(e){try{if("u">typeof localStorage)e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function eP(e){return`react-resizable-panels:${e}`}function eB(e){return e.map(e=>{let{constraints:t,id:r,idIsFromProps:n,order:i}=e;return n?r:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ez(e,t){try{let r=eP(e),n=t.getItem(r);if(n){let e=JSON.parse(n);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function eL(e,t,r){var n,i;return null!=(i=(null!=(n=ez(e,r))?n:{})[eB(t)])?i:null}function eD(e,t,r,n,i){var o;let a=eP(e),s=eB(t),l=null!=(o=ez(e,i))?o:{};l[s]={expandToSizes:Object.fromEntries(r.entries()),layout:n};try{i.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function eF({layout:e,panelConstraints:t}){let r=[...e],n=r.reduce((e,t)=>e+t,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(e=>`${e}%`).join(", ")}`);if(!ep(n,100))for(let e=0;e<t.length;e++){let t=r[e];eu(null!=t,`No layout data found for index ${e}`);let i=100/n*t;r[e]=i}let i=0;for(let e=0;e<t.length;e++){let n=r[e];eu(null!=n,`No layout data found for index ${e}`);let o=eg({panelConstraints:t,panelIndex:e,size:n});n!=o&&(i+=n-o,r[e]=o)}if(!ep(i,0))for(let e=0;e<t.length;e++){let n=r[e];eu(null!=n,`No layout data found for index ${e}`);let o=eg({panelConstraints:t,panelIndex:e,size:n+i});if(n!==o&&(i-=o-n,r[e]=o,ep(i,0)))break}return r}let eH=100,eU={getItem:e=>(eN(eU),eU.getItem(e)),setItem:(e,t)=>{eN(eU),eU.setItem(e,t)}},eq={};function eW({autoSaveId:e=null,children:t,className:r="",direction:n,forwardedRef:i,id:a=null,onLayout:s=null,keyboardResizeBy:l=null,storage:u=eU,style:h,tagName:b="div",...v}){let x=E(a),A=m(null),[_,S]=g(null),[$,k]=g([]),C=ec(),O=m({}),M=m(new Map),T=m(0),N=m({autoSaveId:e,direction:n,dragState:_,id:x,keyboardResizeBy:l,onLayout:s,storage:u}),P=m({layout:$,panelDataArray:[],panelDataArrayChanged:!1});m({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),d(i,()=>({getId:()=>N.current.id,getLayout:()=>{let{layout:e}=P.current;return e},setLayout:e=>{let{onLayout:t}=N.current,{layout:r,panelDataArray:n}=P.current,i=eF({layout:e,panelConstraints:n.map(e=>e.constraints)});e$(r,i)||(k(i),P.current.layout=i,t&&t(i),eI(n,i,O.current))}}),[]),w(()=>{N.current.autoSaveId=e,N.current.direction=n,N.current.dragState=_,N.current.id=x,N.current.onLayout=s,N.current.storage=u}),eS({committedValuesRef:N,eagerValuesRef:P,groupId:x,layout:$,panelDataArray:P.current.panelDataArray,setLayout:k,panelGroupElement:A.current}),f(()=>{let{panelDataArray:t}=P.current;if(e){if(0===$.length||$.length!==t.length)return;let r=eq[e];null==r&&(r=eT(eD,eH),eq[e]=r),r(e,[...t],new Map(M.current),$,u)}},[e,$,u]),f(()=>{});let B=c(e=>{let{onLayout:t}=N.current,{layout:r,panelDataArray:n}=P.current;if(e.constraints.collapsible){let i=n.map(e=>e.constraints),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=eG(n,e,r);if(eu(null!=a,`Panel size not found for panel "${e.id}"`),!eh(a,o)){M.current.set(e.id,a);let l=eb({delta:eK(n,e)===n.length-1?a-o:o-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});eR(r,l)||(k(l),P.current.layout=l,t&&t(l),eI(n,l,O.current))}}},[]),z=c((e,t)=>{let{onLayout:r}=N.current,{layout:n,panelDataArray:i}=P.current;if(e.constraints.collapsible){let o=i.map(e=>e.constraints),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=eG(i,e,n),u=null!=t?t:l;if(eh(s,a)){let t=M.current.get(e.id),a=null!=t&&t>=u?t:u,l=eb({delta:eK(i,e)===i.length-1?s-a:a-s,initialLayout:n,panelConstraints:o,pivotIndices:c,prevLayout:n,trigger:"imperative-api"});eR(n,l)||(k(l),P.current.layout=l,r&&r(l),eI(i,l,O.current))}}},[]),L=c(e=>{let{layout:t,panelDataArray:r}=P.current,{panelSize:n}=eG(r,e,t);return eu(null!=n,`Panel size not found for panel "${e.id}"`),n},[]),D=c((e,t)=>{let{panelDataArray:r}=P.current,n=eK(r,e);return ej({defaultSize:t,dragState:_,layout:$,panelData:r,panelIndex:n})},[_,$]),F=c(e=>{let{layout:t,panelDataArray:r}=P.current,{collapsedSize:n=0,collapsible:i,panelSize:o}=eG(r,e,t);return eu(null!=o,`Panel size not found for panel "${e.id}"`),!0===i&&eh(o,n)},[]),H=c(e=>{let{layout:t,panelDataArray:r}=P.current,{collapsedSize:n=0,collapsible:i,panelSize:o}=eG(r,e,t);return eu(null!=o,`Panel size not found for panel "${e.id}"`),!i||ed(o,n)>0},[]),U=c(e=>{let{panelDataArray:t}=P.current;t.push(e),t.sort((e,t)=>{let r=e.order,n=t.order;return null==r&&null==n?0:null==r?-1:null==n?1:r-n}),P.current.panelDataArrayChanged=!0,C()},[C]);w(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;let{autoSaveId:e,onLayout:t,storage:r}=N.current,{layout:n,panelDataArray:i}=P.current,o=null;if(e){let t=eL(e,i,r);t&&(M.current=new Map(Object.entries(t.expandToSizes)),o=t.layout)}null==o&&(o=eM({panelDataArray:i}));let a=eF({layout:o,panelConstraints:i.map(e=>e.constraints)});e$(n,a)||(k(a),P.current.layout=a,t&&t(a),eI(i,a,O.current))}}),w(()=>{let e=P.current;return()=>{e.layout=[]}},[]);let G=c(e=>function(t){t.preventDefault();let r=A.current;if(!r)return()=>null;let{direction:n,dragState:i,id:o,keyboardResizeBy:a,onLayout:s}=N.current,{layout:l,panelDataArray:c}=P.current,{initialLayout:u}=null!=i?i:{},f=ex(o,e,r),d=eO(t,e,n,i,a,r),h="horizontal"===n;"rtl"===document.dir&&h&&(d=-d);let p=eb({delta:d,initialLayout:null!=u?u:l,panelConstraints:c.map(e=>e.constraints),pivotIndices:f,prevLayout:l,trigger:I(t)?"keyboard":"mouse-or-touch"}),m=!eR(l,p);(R(t)||j(t))&&T.current!=d&&(T.current=d,m?eo(e,0):h?eo(e,d<0?q:W):eo(e,d<0?V:K)),m&&(k(p),P.current.layout=p,s&&s(p),eI(c,p,O.current))},[]),X=c((e,t)=>{let{onLayout:r}=N.current,{layout:n,panelDataArray:i}=P.current,o=i.map(e=>e.constraints),{panelSize:a,pivotIndices:s}=eG(i,e,n);eu(null!=a,`Panel size not found for panel "${e.id}"`);let l=eb({delta:eK(i,e)===i.length-1?a-t:t-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});eR(n,l)||(k(l),P.current.layout=l,r&&r(l),eI(i,l,O.current))},[]),Z=c((e,t)=>{let{layout:r,panelDataArray:n}=P.current,{collapsedSize:i=0,collapsible:o}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=eG(n,e,r);null!=u&&(o&&s&&eh(u,i)?eh(i,a)||X(e,a):u<c?X(e,c):u>l&&X(e,l))},[X]),Y=c((e,t)=>{let{direction:r}=N.current,{layout:n}=P.current;if(!A.current)return;let i=eE(e,A.current);eu(i,`Drag handle element not found for id "${e}"`);let o=ek(r,t);S({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:n})},[]),J=c(()=>{S(null)},[]),Q=c(e=>{let{panelDataArray:t}=P.current,r=eK(t,e);r>=0&&(t.splice(r,1),delete O.current[e.id],P.current.panelDataArrayChanged=!0,C())},[C]),ee=p(()=>({collapsePanel:B,direction:n,dragState:_,expandPanel:z,getPanelSize:L,getPanelStyle:D,groupId:x,isPanelCollapsed:F,isPanelExpanded:H,reevaluatePanelConstraints:Z,registerPanel:U,registerResizeHandle:G,resizePanel:X,startDragging:Y,stopDragging:J,unregisterPanel:Q,panelGroupElement:A.current}),[B,_,n,z,L,D,x,F,H,Z,U,G,X,Y,J,Q]),et={display:"flex",flexDirection:"horizontal"===n?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return o(y.Provider,{value:ee},o(b,{...v,children:t,className:r,id:a,ref:A,style:{...et,...h},"data-panel-group":"","data-panel-group-direction":n,"data-panel-group-id":x}))}let eV=l((e,t)=>o(eW,{...e,forwardedRef:t}));function eK(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function eG(e,t,r){let n=eK(e,t),i=n===e.length-1?[n-1,n]:[n,n+1],o=r[n];return{...t.constraints,panelSize:o,pivotIndices:i}}function eX({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:n}){f(()=>{if(e||null==r||null==n)return;let i=eE(t,n);if(null==i)return;let o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),r(e);break;case"F6":{e.preventDefault();let r=i.getAttribute("data-panel-group-id");eu(r,`No group element found for id "${r}"`);let o=ey(r,n),a=ew(r,t,n);eu(null!==a,`No resize element found for id "${t}"`);let s=e.shiftKey?a>0?a-1:o.length-1:a+1<o.length?a+1:0;o[s].focus()}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[n,e,t,r])}function eZ({children:e=null,className:t="",disabled:r=!1,hitAreaMargins:n,id:i,onBlur:a,onDragging:s,onFocus:l,style:c={},tabIndex:d=0,tagName:h="div",...p}){var b,v;let x=m(null),A=m({onDragging:s});f(()=>{A.current.onDragging=s});let _=u(y);if(null===_)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:S,groupId:$,registerResizeHandle:k,startDragging:C,stopDragging:O,panelGroupElement:M}=_,I=E(i),[R,j]=g("inactive"),[T,N]=g(!1),[P,B]=g(null),z=m({state:R});w(()=>{z.current.state=R}),f(()=>{if(r)B(null);else{let e=k(I);B(()=>e)}},[r,I,k]);let L=null!=(b=null==n?void 0:n.coarse)?b:15,D=null!=(v=null==n?void 0:n.fine)?v:5;f(()=>{if(r||null==P)return;let e=x.current;eu(e,"Element ref not attached");let t=(e,t,r)=>{if(t)switch(e){case"down":{j("drag"),C(I,r);let{onDragging:e}=A.current;e&&e(!0);break}case"move":{let{state:e}=z.current;"drag"!==e&&j("hover"),P(r);break}case"up":{j("hover"),O();let{onDragging:e}=A.current;e&&e(!1)}}else j("inactive")};return ee(I,e,S,{coarse:L,fine:D},t)},[L,S,r,D,k,I,P,C,O]),eX({disabled:r,handleId:I,resizeHandler:P,panelGroupElement:M});let F={touchAction:"none",userSelect:"none"};return o(h,{...p,children:e,className:t,id:i,onBlur:()=>{N(!1),null==a||a()},onFocus:()=>{N(!0),null==l||l()},ref:x,role:"separator",style:{...F,...c},tabIndex:d,"data-panel-group-direction":S,"data-panel-group-id":$,"data-resize-handle":"","data-resize-handle-active":"drag"===R?"pointer":T?"keyboard":void 0,"data-resize-handle-state":R,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":I})}eW.displayName="PanelGroup",eV.displayName="forwardRef(PanelGroup)",eZ.displayName="PanelResizeHandle"},76357(e,t,r){"use strict";var n=r(9387),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=Object.create(r(41166));o.inherits=r(91193);var a=r(31755),s=r(18511);o.inherits(f,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var u=l[c];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},25825(e,t,r){"use strict";e.exports=o;var n=r(8235),i=Object.create(r(41166));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(91193),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},31755(e,t,r){"use strict";var n,i,o=r(85409),a=r(9387);e.exports=A;var s=r(85101);A.ReadableState=x,r(80381).EventEmitter;var l=function(e,t){return e.listeners(t).length},c=r(94484),u=r(18604).Buffer,f=(void 0!==r.g?r.g:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){};function d(e){return u.from(e)}function h(e){return u.isBuffer(e)||e instanceof f}var p=Object.create(r(41166));p.inherits=r(91193);var m=r(21460),g=void 0;g=m&&m.debuglog?m.debuglog("stream"):function(){};var b=r(33211),v=r(46955);p.inherits(A,c);var y=["error","close","destroy","pause","resume"];function w(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function x(e,t){n=n||r(76357),e=e||{};var o=t instanceof n;this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,s=e.readableHighWaterMark,l=this.objectMode?16:16384;a||0===a?this.highWaterMark=a:o&&(s||0===s)?this.highWaterMark=s:this.highWaterMark=l,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(i||(i=r(89851).StringDecoder),this.decoder=new i(e.encoding),this.encoding=e.encoding)}function A(e){if(n=n||r(76357),!(this instanceof A))return new A(e);this._readableState=new x(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function E(e,t,r,n,i){var o,a=e._readableState;return null===t?(a.reading=!1,M(e,a)):(i||(o=S(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=d(t)),n?a.endEmitted?e.emit("error",Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):j(e,a)):_(e,a,t,!1))):n||(a.reading=!1)),$(a)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&I(e)),j(e,t)}function S(e,t){var r;return h(t)||"string"==typeof t||void 0===t||e.objectMode||(r=TypeError("Invalid non-string/buffer chunk")),r}function $(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Object.defineProperty(A.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=v.destroy,A.prototype._undestroy=v.undestroy,A.prototype._destroy=function(e,t){this.push(null),t(e)},A.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),E(this,e,t,!1,r)},A.prototype.unshift=function(e){return E(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){return i||(i=r(89851).StringDecoder),this._readableState.decoder=new i(e),this._readableState.encoding=e,this};var k=8388608;function C(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function O(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=C(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function M(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,I(e)}}function I(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(g("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a.nextTick(R,e):R(e))}function R(e){g("emit readable"),e.emit("readable"),L(e)}function j(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(T,e,t))}function T(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(g("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function N(e){return function(){var t=e._readableState;g("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,L(e))}}function P(e){g("readable nexttick read 0"),e.read(0)}function B(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(z,e,t))}function z(e,t){t.reading||(g("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(g("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=F(e,t.buffer,t.decoder),r)}function F(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?H(e,t):U(e,t),n}function H(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}function U(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function q(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a.nextTick(W,t,e))}function W(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function V(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}A.prototype.read=function(e){g("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return g("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?q(this):I(this),null;if(0===(e=O(e,r))&&r.ended)return 0===r.length&&q(this),null;var i=r.needReadable;return g("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&g("length less than watermark",i=!0),r.ended||r.reading?g("reading or ended",i=!1):i&&(g("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=O(n,r))),null===(t=e>0?D(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&q(this)),null!==t&&this.emit("data",t),t},A.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))},A.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,g("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?y:c;function s(e,t){g("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function c(){g("onend"),e.end()}n.endEmitted?a.nextTick(i):r.once("end",i),e.on("unpipe",s);var u=N(r);e.on("drain",u);var f=!1;function d(){g("cleanup"),e.removeListener("close",b),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",y),r.removeListener("data",p),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var h=!1;function p(t){g("ondata"),h=!1,!1!==e.write(t)||h||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==V(n.pipes,e))&&!f&&(g("false write response, pause",n.awaitDrain),n.awaitDrain++,h=!0),r.pause())}function m(t){g("onerror",t),y(),e.removeListener("error",m),0===l(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",v),y()}function v(){g("onfinish"),e.removeListener("close",b),y()}function y(){g("unpipe"),r.unpipe(e)}return r.on("data",p),w(e,"error",m),e.once("close",b),e.once("finish",v),e.emit("pipe",r),n.flowing||(g("pipe resume"),r.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=V(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&I(this):a.nextTick(P,this))}return r},A.prototype.addListener=A.prototype.on,A.prototype.resume=function(){var e=this._readableState;return e.flowing||(g("resume"),e.flowing=!0,B(this,e)),this},A.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this},A.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(g("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){g("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<y.length;o++)e.on(y[o],this.emit.bind(this,y[o]));return this._read=function(t){g("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=D},8235(e,t,r){"use strict";e.exports=a;var n=r(76357),i=Object.create(r(41166));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){l(e,t,r)}):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(91193),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},18511(e,t,r){"use strict";var n,i,o=r(85409),a=r(9387);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){P(t,e)}}e.exports=y;var l=!o.browser&&["v0.10","v0.9."].indexOf(o.version.slice(0,5))>-1?setImmediate:a.nextTick;y.WritableState=v;var c=Object.create(r(41166));c.inherits=r(91193);var u={deprecate:r(91947)},f=r(94484),d=r(18604).Buffer,h=(void 0!==r.g?r.g:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){};function p(e){return d.from(e)}function m(e){return d.isBuffer(e)||e instanceof h}var g=r(46955);function b(){}function v(e,t){n=n||r(76357),e=e||{};var i=t instanceof n;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,a=e.writableHighWaterMark,l=this.objectMode?16:16384;o||0===o?this.highWaterMark=o:i&&(a||0===a)?this.highWaterMark=a:this.highWaterMark=l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){k(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function y(e){if(n=n||r(76357),!i.call(y,this)&&!(this instanceof n))return new y(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function w(e,t){var r=Error("write after end");e.emit("error",r),a.nextTick(t,r)}function x(e,t,r,n){var i=!0,o=!1;return null===r?o=TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(n,o),i=!1),i}function A(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r)),t}function E(e,t,r,n,i,o){if(!r){var a=A(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else _(e,t,!1,s,n,i,o);return l}function _(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function S(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),T(e,t))}function $(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function k(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if($(r),t)S(e,r,n,t,i);else{var o=I(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||M(e,r),n?l(C,e,r,o,i):C(e,r,o,i)}}function C(e,t,r,n){r||O(e,t),t.pendingcb--,n(),T(e,t)}function O(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function M(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,_(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=t.objectMode?1:l.length;if(_(e,t,!1,f,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),T(e,t)})}function j(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(R,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function T(e,t){var r=I(t);return r&&(j(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}function N(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function P(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}c.inherits(y,f),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===y&&e&&e._writableState instanceof v}})):i=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&m(e);return o&&!d.isBuffer(e)&&(e=p(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=b),n.ended?w(this,r):(o||x(this,n,e,r))&&(n.pendingcb++,i=E(this,n,o,e,t,r)),i},y.prototype.cork=function(){var e=this._writableState;e.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||M(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||N(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}},33211(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var i=r(18604).Buffer,o=r(20200);function a(e,t,r){e.copy(t,r)}e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),r=this.head,n=0;r;)a(r.data,t,n),n+=r.data.length,r=r.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},46955(e,t,r){"use strict";var n=r(9387);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},94484(e,t,r){e.exports=r(80381).EventEmitter},9464(e,t,r){(t=e.exports=r(31755)).Stream=t,t.Readable=t,t.Writable=r(18511),t.Duplex=r(76357),t.Transform=r(8235),t.PassThrough=r(25825)},20289(e){"use strict";function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function n(e,n,i){function o(e,t,r){return"string"==typeof n?n:n(e,t,r)}i||(i=Error);var a=function(e){function r(t,r,n){return e.call(this,o(t,r,n))||this}return t(r,e),r}(i);a.prototype.name=i.name,a.prototype.code=e,r[e]=a}function i(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function o(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function a(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function s(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&o(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be",a(e," argument"))l="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var n,l,c=s(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(n," ").concat(i(t,"type"))}return l+". Received type ".concat(typeof r)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},35707(e,t,r){"use strict";var n=r(85409),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(23033),a=r(92553);r(91193)(u,o);for(var s=i(a.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},75271(e,t,r){"use strict";e.exports=i;var n=r(50141);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(91193)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},23033(e,t,r){"use strict";var n,i,o,a,s,l=r(85409);e.exports=C,C.ReadableState=k,r(80381).EventEmitter;var c=function(e,t){return e.listeners(t).length},u=r(82534),f=r(36533).Buffer,d=(void 0!==r.g?r.g:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){};function h(e){return f.from(e)}function p(e){return f.isBuffer(e)||e instanceof d}var m=r(3710);i=m&&m.debuglog?m.debuglog("stream"):function(){};var g=r(70020),b=r(50917),v=r(65750).getHighWaterMark,y=r(20289).codes,w=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,A=y.ERR_METHOD_NOT_IMPLEMENTED,E=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(91193)(C,u);var _=b.errorOrDestroy,S=["error","close","destroy","pause","resume"];function $(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function k(e,t,i){n=n||r(35707),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",i),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=r(86704).StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function C(e){if(n=n||r(35707),!(this instanceof C))return new C(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function O(e,t,r,n,o){i("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,N(e,s);else if(o||(a=I(s,t)),a)_(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=h(t)),n)s.endEmitted?_(e,new E):M(e,s,t,!0);else if(s.ended)_(e,new x);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?M(e,s,t,!1):z(e,s)):M(e,s,t,!1)}else n||(s.reading=!1,z(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function M(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&P(e)),z(e,t)}function I(e,t){var r;return p(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),C.prototype.destroy=b.destroy,C.prototype._undestroy=b.undestroy,C.prototype._destroy=function(e,t){t(e)},C.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=f.from(e,t),t=""),r=!0),O(this,e,t,!1,r)},C.prototype.unshift=function(e){return O(this,e,null,!0,!1)},C.prototype.isPaused=function(){return!1===this._readableState.flowing},C.prototype.setEncoding=function(e){o||(o=r(86704).StringDecoder);var t=new o(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var R=0x40000000;function j(e){return e>=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function T(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function N(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function P(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,l.nextTick(B,e))}function B(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,W(e)}function z(e,t){t.readingMore||(t.readingMore=!0,l.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function D(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,W(e))}}function F(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){i("readable nexttick read 0"),e.read(0)}function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,l.nextTick(q,e,t))}function q(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),W(e),t.flowing&&!t.reading&&e.read(0)}function W(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function V(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function K(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,l.nextTick(G,t,e))}function G(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function X(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}C.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return i("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?K(this):P(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&K(this),null;var o=r.needReadable;return i("need readable",o),(0===r.length||r.length-e<r.highWaterMark)&&i("length less than watermark",o=!0),r.ended||r.reading?i("reading or ended",o=!1):o&&(i("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=T(n,r))),null===(t=e>0?V(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&K(this)),null!==t&&this.emit("data",t),t},C.prototype._read=function(e){_(this,new A("_read()"))},C.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===l.stdout||e===l.stderr?b:s;function a(e,t){i("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function s(){i("onend"),e.end()}n.endEmitted?l.nextTick(o):r.once("end",o),e.on("unpipe",a);var u=D(r);e.on("drain",u);var f=!1;function d(){i("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",a),r.removeListener("end",s),r.removeListener("end",b),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function h(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==X(n.pipes,e))&&!f&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){i("onerror",t),b(),e.removeListener("error",p),0===c(e,"error")&&_(e,t)}function m(){e.removeListener("finish",g),b()}function g(){i("onfinish"),e.removeListener("close",m),b()}function b(){i("unpipe"),r.unpipe(e)}return r.on("data",h),$(e,"error",p),e.once("close",m),e.once("finish",g),e.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),e},C.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=X(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},C.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?P(this):n.reading||l.nextTick(H,this)),r},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(e,t){var r=u.prototype.removeListener.call(this,e,t);return"readable"===e&&l.nextTick(F,this),r},C.prototype.removeAllListeners=function(e){var t=u.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&l.nextTick(F,this),t},C.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,U(this,e)),e.paused=!1,this},C.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<S.length;a++)e.on(S[a],this.emit.bind(this,S[a]));return this._read=function(t){i("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(C.prototype[Symbol.asyncIterator]=function(){return void 0===a&&(a=r(39536)),a(this)}),Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),C._fromList=V,Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(C.from=function(e,t){return void 0===s&&(s=r(34918)),s(C,e,t)})},50141(e,t,r){"use strict";e.exports=u;var n=r(20289).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(35707);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(91193)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},92553(e,t,r){"use strict";var n,i,o=r(85409);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){q(t,e)}}e.exports=k,k.WritableState=$;var s={deprecate:r(91947)},l=r(82534),c=r(36533).Buffer,u=(void 0!==r.g?r.g:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){};function f(e){return c.from(e)}function d(e){return c.isBuffer(e)||e instanceof u}var h=r(50917),p=r(65750).getHighWaterMark,m=r(20289).codes,g=m.ERR_INVALID_ARG_TYPE,b=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_MULTIPLE_CALLBACK,y=m.ERR_STREAM_CANNOT_PIPE,w=m.ERR_STREAM_DESTROYED,x=m.ERR_STREAM_NULL_VALUES,A=m.ERR_STREAM_WRITE_AFTER_END,E=m.ERR_UNKNOWN_ENCODING,_=h.errorOrDestroy;function S(){}function $(e,t,i){n=n||r(35707),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){N(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function k(e){var t=this instanceof(n=n||r(35707));if(!t&&!i.call(k,this))return new k(e);this._writableState=new $(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function C(e,t){var r=new A;_(e,r),o.nextTick(t,r)}function O(e,t,r,n){var i;return null===r?i=new x:"string"==typeof r||t.objectMode||(i=new g("chunk",["string","Buffer"],r)),!i||(_(e,i),o.nextTick(n,i),!1)}function M(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function I(e,t,r,n,i,o){if(!r){var a=M(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,s,n,i,o);return l}function R(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function j(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(H,e,t),e._writableState.errorEmitted=!0,_(e,n)):(i(n),e._writableState.errorEmitted=!0,_(e,n),H(e,t))}function T(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function N(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new v;if(T(r),t)j(e,r,n,t,i);else{var a=L(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||z(e,r),n?o.nextTick(P,e,r,a,i):P(e,r,a,i)}}function P(e,t,r,n){r||B(e,t),t.pendingcb--,n(),H(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function z(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var o=0,s=!0;r;)n[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;n.allBuffers=s,R(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,f=t.objectMode?1:l.length;if(R(e,t,!1,f,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function L(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function D(e,t){e._final(function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),H(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(D,e,t)))}function H(e,t){var r=L(t);if(r&&(F(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function U(e,t,r){t.ending=!0,H(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function q(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}r(91193)(k,l),$.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty($.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===k&&e&&e._writableState instanceof $}})):i=function(e){return e instanceof this},k.prototype.pipe=function(){_(this,new y)},k.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&d(e);return o&&!c.isBuffer(e)&&(e=f(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=S),n.ending?C(this,r):(o||O(this,n,e,r))&&(n.pendingcb++,i=I(this,n,o,e,t,r)),i},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||z(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new b("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||U(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=h.destroy,k.prototype._undestroy=h.undestroy,k.prototype._destroy=function(e,t){t(e)}},39536(e,t,r){"use strict";var n,i=r(85409);function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t=s(e,"string");return"symbol"==typeof t?t:String(t)}function s(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var l=r(32339),c=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),d=Symbol("ended"),h=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream");function g(e,t){return{value:e,done:t}}function b(e){var t=e[c];if(null!==t){var r=e[m].read();null!==r&&(e[h]=null,e[c]=null,e[u]=null,t(g(r,!1)))}}function v(e){i.nextTick(b,e)}function y(e,t){return function(r,n){e.then(function(){t[d]?r(g(void 0,!0)):t[p](r,n)},n)}}var w=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((o(n={get stream(){return this[m]},next:function(){var e,t=this,r=this[f];if(null!==r)return Promise.reject(r);if(this[d])return Promise.resolve(g(void 0,!0));if(this[m].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[f]?r(t[f]):e(g(void 0,!0))})});var n=this[h];if(n)e=new Promise(y(n,this));else{var o=this[m].read();if(null!==o)return Promise.resolve(g(o,!1));e=new Promise(this[p])}return this[h]=e,e}},Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var e=this;return new Promise(function(t,r){e[m].destroy(null,function(e){e?r(e):t(g(void 0,!0))})})}),n),w);e.exports=function(e){var t,r=Object.create(x,(o(t={},m,{value:e,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,f,{value:null,writable:!0}),o(t,d,{value:e._readableState.endEmitted,writable:!0}),o(t,p,{value:function(e,t){var n=r[m].read();n?(r[h]=null,r[c]=null,r[u]=null,e(g(n,!1))):(r[c]=e,r[u]=t)},writable:!0}),t));return r[h]=null,l(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[h]=null,r[c]=null,r[u]=null,t(e)),r[f]=e;return}var n=r[c];null!==n&&(r[h]=null,r[c]=null,r[u]=null,n(g(void 0,!0))),r[d]=!0}),e.on("readable",v.bind(null,r)),r}},70020(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"==typeof t?t:String(t)}function u(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var f=r(36533).Buffer,d=r(50902).inspect,h=d&&d.custom||"inspect";function p(e,t,r){f.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return f.alloc(0);for(var t=f.allocUnsafe(e>>>0),r=this.head,n=0;r;)p(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=f.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:h,value:function(e,t){return d(this,i(i({},t),{},{depth:0,customInspect:!1}))}}]),e}()},50917(e,t,r){"use strict";var n=r(85409);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},32339(e,t,r){"use strict";var n=r(20289).codes.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||d()},f=e._writableState&&e._writableState.finished,d=function(){c=!1,f=!0,l||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,h=!0,c||r.call(e)},m=function(t){r.call(e,t)},g=function(){var t;return l&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},b=function(){e.req.on("finish",d)};return a(e)?(e.on("complete",d),e.on("abort",g),e.req?b():e.on("request",b)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",d),e.removeListener("abort",g),e.removeListener("request",b),e.req&&e.req.removeListener("finish",d),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",g)}}e.exports=s},34918(e){e.exports=function(){throw Error("Readable.from is not available in the browser")}},35481(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(20289).codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(e,t,o,a){a=n(a);var l=!1;e.on("close",function(){l=!0}),void 0===i&&(i=r(32339)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);l=!0,a()});var u=!1;return function(t){if(!l&&!u){if(u=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return u(t,a,n>0,function(t){e||(e=t),t&&o.forEach(f),a||(o.forEach(f),i(e))})});return r.reduce(d)}},65750(e,t,r){"use strict";var n=r(20289).codes.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},82534(e,t,r){e.exports=r(80381).EventEmitter},47795(e,t,r){"use strict";var n=r(36533).Buffer,i=r(91193),o=r(41002),a=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e],d=[0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0];function h(e,t){return e<<t|e>>>32-t}function p(e,t,r,n,i,o,a,s){return h(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return h(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return h(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return h(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return h(e+(t^(r|~n))+o+a|0,s)+i|0}function y(){o.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}i(y,o),y.prototype._update=function(){for(var e,t,r=a,n=0;n<16;++n)r[n]=this._block.readInt32LE(4*n);for(var i=0|this._a,o=0|this._b,y=0|this._c,w=0|this._d,x=0|this._e,A=0|this._a,E=0|this._b,_=0|this._c,S=0|this._d,$=0|this._e,k=0;k<80;k+=1)k<16?(e=p(i,o,y,w,x,r[s[k]],f[0],c[k]),t=v(A,E,_,S,$,r[l[k]],d[0],u[k])):k<32?(e=m(i,o,y,w,x,r[s[k]],f[1],c[k]),t=b(A,E,_,S,$,r[l[k]],d[1],u[k])):k<48?(e=g(i,o,y,w,x,r[s[k]],f[2],c[k]),t=g(A,E,_,S,$,r[l[k]],d[2],u[k])):k<64?(e=b(i,o,y,w,x,r[s[k]],f[3],c[k]),t=m(A,E,_,S,$,r[l[k]],d[3],u[k])):(e=v(i,o,y,w,x,r[s[k]],f[4],c[k]),t=p(A,E,_,S,$,r[l[k]],d[4],u[k])),i=x,x=w,w=h(y,10),y=o,o=e,A=$,$=S,S=h(_,10),_=E,E=t;var C=this._b+y+S|0;this._b=this._c+w+$|0,this._c=this._d+x+A|0,this._d=this._e+i+E|0,this._e=this._a+o+_|0,this._a=C},y.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=y},18604(e,t,r){var n=r(36533),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},56608(e,t,r){var n=r(36533),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},43282(e,t,r){"use strict";var n=r(98801),i=r(10092),o=n("RegExp.prototype.exec"),a=r(71102);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},31096(e,t,r){"use strict";let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i)if(!!t.loose===e.loose)return e;else e=e.value;c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=r(65203),{safeRe:a,t:s}=r(83486),l=r(84407),c=r(56064),u=r(52732),f=r(17388)},17388(e,t,r){"use strict";let n=/\s+/g;class i{constructor(e,t){if(t=a(t),e instanceof i)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else return new i(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(const e of this.set)if(1===e.length&&w(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(v,"");let t=((this.options.includePrerelease&&g)|(this.options.loose&&b))+":"+e,r=o.get(t);if(r)return r;let n=this.options.loose,i=n?f[h.HYPHENRANGELOOSE]:f[h.HYPHENRANGE];l("hyphen replace",e=e.replace(i,j(this.options.includePrerelease))),l("comparator trim",e=u(e)),l("tilde trim",e=e.replace(f[h.TILDETRIM],p)),l("caret trim",e=e.replace(f[h.CARETTRIM],m));let a=e.split(" ").map(e=>A(e,this.options)).join(" ").split(/\s+/).map(e=>R(e,this.options));n&&(a=a.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(f[h.COMPARATORLOOSE])))),l("range list",a);let c=new Map;for(let e of a.map(e=>new s(e,this.options))){if(y(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return o.set(t,d),d}intersects(e,t){if(!(e instanceof i))throw TypeError("a Range is required");return this.set.some(r=>x(r,t)&&e.set.some(e=>x(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(T(this.set[t],e,this.options))return!0;return!1}}e.exports=i;let o=new(r(67762)),a=r(65203),s=r(31096),l=r(56064),c=r(52732),u=r(90764),{safeRe:f,src:d,t:h,tildeTrimReplace:p,caretTrimReplace:m}=r(83486),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:b}=r(10082),v=RegExp(d[h.BUILD],"g"),y=e=>"<0.0.0-0"===e.value,w=e=>""===e.value,x=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},A=(e,t)=>(l("comp",e=e.replace(f[h.BUILD],""),t),l("caret",e=k(e,t)),l("tildes",e=S(e,t)),l("xrange",e=O(e,t)),l("stars",e=I(e,t)),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,_=(e,t,r)=>E(e)&&!E(t)||E(t)&&r&&!E(r),S=(e,t)=>e.trim().split(/\s+/).map(e=>$(e,t)).join(" "),$=(e,t)=>{let r=t.loose?f[h.TILDELOOSE]:f[h.TILDE],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let s;return l("tilde",e,t,r,i,o,a),E(r)?s="":E(i)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:E(o)?s=`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:a?(l("replaceTilde pr",a),s=`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`):s=`>=${r}.${i}.${o} <${r}.${+i+1}.0-0`,l("tilde return",s),s})},k=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(" "),C=(e,t)=>{l("caret",e,t);let r=t.loose?f[h.CARETLOOSE]:f[h.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let s;return l("caret",e,t,r,i,o,a),E(r)?s="":E(i)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:E(o)?s="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(l("replaceCaret pr",a),s="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(l("no pr"),s="0"===r?"0"===i?`>=${r}.${i}.${o} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),l("caret return",s),s})},O=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>M(e,t)).join(" ")),M=(e,t)=>{e=e.trim();let r=t.loose?f[h.XRANGELOOSE]:f[h.XRANGE];return e.replace(r,(r,n,i,o,a,s)=>{if(l("xRange",e,r,n,i,o,a,s),_(i,o,a))return e;let c=E(i),u=c||E(o),f=u||E(a),d=f;return"="===n&&d&&(n=""),s=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(s="-0"),r=`${n+i}.${o}.${a}${s}`):u?r=`>=${i}.0.0${s} <${+i+1}.0.0-0`:f&&(r=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),l("xRange return",r),r})},I=(e,t)=>(l("replaceStars",e,t),e.trim().replace(f[h.STAR],"")),R=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(f[t.includePrerelease?h.GTE0PRE:h.GTE0],"")),j=e=>(t,r,n,i,o,a,s,l,c,u,f,d)=>(r=E(n)?"":E(i)?`>=${n}.0.0${e?"-0":""}`:E(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`,l=E(c)?"":E(u)?`<${+c+1}.0.0-0`:E(f)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${f}-${d}`:e?`<${c}.${u}.${+f+1}-0`:`<=${l}`,`${r} ${l}`.trim()),T=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(l(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},52732(e,t,r){"use strict";let n=r(56064),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(10082),{safeRe:a,t:s}=r(83486),l=r(65203),{compareIdentifiers:c}=r(93867),u=(e,t)=>{let r=t.split(".");if(r.length>e.length)return!1;for(let t=0;t<r.length;t++)if(0!==c(e[t],r[t]))return!1;return!0};class f{constructor(e,t){if(t=l(t),e instanceof f)if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;else e=e.version;else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof f)){if("string"==typeof e&&e===this.version)return 0;e=new f(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return(e instanceof f||(e=new f(e,this.options)),this.major<e.major)?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:+(this.patch>e.patch)}comparePre(e){if(e instanceof f||(e=new f(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return c(r,i)}while(++t)}compareBuild(e){e instanceof f||(e=new f(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(n("build compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;else if(r===i)continue;else return c(r,i)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?a[s.PRERELEASELOOSE]:a[s.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+!!Number(r);if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),u(this.prerelease,t)?isNaN(this.prerelease[t.split(".").length])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=f},30206(e,t,r){"use strict";let n=r(10264);e.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},84407(e,t,r){"use strict";let n=r(72729),i=r(17751),o=r(76452),a=r(8993),s=r(5131),l=r(25720);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return i(e,r,c);case">":return o(e,r,c);case">=":return a(e,r,c);case"<":return s(e,r,c);case"<=":return l(e,r,c);default:throw TypeError(`Invalid operator: ${t}`)}}},84210(e,t,r){"use strict";let n=r(52732),i=r(10264),{safeRe:o,t:a}=r(83486);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let n,i=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(n=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i.lastIndex=n.index+n[1].length+n[2].length;i.lastIndex=-1}else r=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===r)return null;let s=r[2],l=r[3]||"0",c=r[4]||"0",u=t.includePrerelease&&r[5]?`-${r[5]}`:"",f=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${s}.${l}.${c}${u}${f}`,t)}},71029(e,t,r){"use strict";let n=r(52732);e.exports=(e,t,r)=>{let i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},75723(e,t,r){"use strict";let n=r(22072);e.exports=(e,t)=>n(e,t,!0)},22072(e,t,r){"use strict";let n=r(52732);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},13744(e,t,r){"use strict";let n=r(10264);e.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),o=r.compare(i);if(0===o)return null;let a=o>0,s=a?r:i,l=a?i:r,c=!!s.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}let u=c?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"}},72729(e,t,r){"use strict";let n=r(22072);e.exports=(e,t,r)=>0===n(e,t,r)},76452(e,t,r){"use strict";let n=r(22072);e.exports=(e,t,r)=>n(e,t,r)>0},8993(e,t,r){"use strict";let n=r(22072);e.exports=(e,t,r)=>n(e,t,r)>=0},14119(e,t,r){"use strict";let n=r(52732);e.exports=(e,t,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(e){return null}}},5131(e,t,r){"use strict";let n=r(22072);e.exports=(e,t,r)=>0>n(e,t,r)},25720(e,t,r){"use strict";let n=r(22072);e.exports=(e,t,r)=>0>=n(e,t,r)},94226(e,t,r){"use strict";let n=r(52732);e.exports=(e,t)=>new n(e,t).major},10118(e,t,r){"use strict";let n=r(52732);e.exports=(e,t)=>new n(e,t).minor},17751(e,t,r){"use strict";let n=r(22072);e.exports=(e,t,r)=>0!==n(e,t,r)},10264(e,t,r){"use strict";let n=r(52732);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},16949(e,t,r){"use strict";let n=r(52732);e.exports=(e,t)=>new n(e,t).patch},43081(e,t,r){"use strict";let n=r(10264);e.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},72538(e,t,r){"use strict";let n=r(22072);e.exports=(e,t,r)=>n(t,e,r)},75981(e,t,r){"use strict";let n=r(71029);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},52798(e,t,r){"use strict";let n=r(17388);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},9583(e,t,r){"use strict";let n=r(71029);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},50233(e,t,r){"use strict";let n=r(10264),i=r(10082),o=r(52732),a=(e,t)=>n(e instanceof o?e.version:e,t),s=(e,t)=>{if(l(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0}return e.format()},l=e=>e.startsWith("pre");e.exports=(e,t,r)=>{if(!i.RELEASE_TYPES.includes(t))return null;let n=a(e,r);return n&&s(n,t)}},33937(e,t,r){"use strict";let n=r(10264);e.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}},42781(e,t,r){"use strict";let n=r(83486),i=r(10082),o=r(52732),a=r(93867),s=r(10264),l=r(33937),c=r(30206),u=r(14119),f=r(13744),d=r(94226),h=r(10118),p=r(16949),m=r(43081),g=r(22072),b=r(72538),v=r(75723),y=r(71029),w=r(9583),x=r(75981),A=r(76452),E=r(5131),_=r(72729),S=r(17751),$=r(8993),k=r(25720),C=r(84407),O=r(84210),M=r(50233),I=r(31096),R=r(17388),j=r(52798),T=r(50775),N=r(29700),P=r(17782),B=r(60021),z=r(69354),L=r(23019),D=r(91179),F=r(28422),H=r(71412);e.exports={parse:s,valid:l,clean:c,inc:u,diff:f,major:d,minor:h,patch:p,prerelease:m,compare:g,rcompare:b,compareLoose:v,compareBuild:y,sort:w,rsort:x,gt:A,lt:E,eq:_,neq:S,gte:$,lte:k,cmp:C,coerce:O,truncate:M,Comparator:I,Range:R,satisfies:j,toComparators:T,maxSatisfying:N,minSatisfying:P,minVersion:B,validRange:z,outside:L,gtr:D,ltr:F,intersects:H,simplifyRange:r(87077),subset:r(93152),SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},10082(e){"use strict";e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,WHITESPACE_CHARACTERS:[" ","\n","\v","\f","\r"," ","\xa0"," "," "," "," "," "," "," "," "," "," "," "," ","\u2028","\u2029"," "," "," ","\uFEFF"],RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},56064(e,t,r){"use strict";var n=r(85409);e.exports="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}},93867(e){"use strict";let t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;let n=t.test(e),i=t.test(r);return n&&i&&(e*=1,r*=1),e===r?0:n&&!i?-1:i&&!n?1:e<r?-1:1},n=(e,t)=>r(t,e);e.exports={compareIdentifiers:r,rcompareIdentifiers:n}},67762(e){"use strict";class t{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},65203(e){"use strict";let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},83486(e,t,r){"use strict";let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=r(10082),a=r(56064),s=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],f=t.t={},d=0,h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[h,i]],m=e=>{for(let[t,r]of p)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},g=(e,t,r)=>{let n=m(t),i=d++;a(e,i,t),f[e]=i,c[i]=t,u[i]=n,s[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),g("MAINVERSION",`(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${c[f.NONNUMERICIDENTIFIER]}|${c[f.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${c[f.NONNUMERICIDENTIFIER]}|${c[f.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${c[f.PRERELEASEIDENTIFIER]}(?:\\.${c[f.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${c[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[f.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${h}+`),g("BUILD",`(?:\\+(${c[f.BUILDIDENTIFIER]}(?:\\.${c[f.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${c[f.MAINVERSION]}${c[f.PRERELEASE]}?${c[f.BUILD]}?`),g("FULL",`^${c[f.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${c[f.MAINVERSIONLOOSE]}${c[f.PRERELEASELOOSE]}?${c[f.BUILD]}?`),g("LOOSE",`^${c[f.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${c[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${c[f.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:${c[f.PRERELEASE]})?${c[f.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:${c[f.PRERELEASELOOSE]})?${c[f.BUILD]}?)?)?`),g("XRANGE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),g("COERCE",`${c[f.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",c[f.COERCEPLAIN]+`(?:${c[f.PRERELEASE]})?`+`(?:${c[f.BUILD]})?`+"(?:$|[^\\d])"),g("COERCERTL",c[f.COERCE],!0),g("COERCERTLFULL",c[f.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${c[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${c[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${c[f.LONECARET]}${c[f.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${c[f.LONECARET]}${c[f.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${c[f.GTLT]}\\s*(${c[f.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]}|${c[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${c[f.XRANGEPLAIN]})\\s+-\\s+(${c[f.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${c[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[f.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},90764(e,t,r){"use strict";let{MAX_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,WHITESPACE_CHARACTERS:o}=r(10082),a=new Uint8Array(65536);for(let e of o)a[e.charCodeAt(0)]=1;let s=e=>void 0!==e&&1===a[e.charCodeAt(0)],l=e=>"v"===e||"="===e||s(e),c=e=>void 0!==e&&e>="0"&&e<="9",u=e=>void 0!==e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"),f=e=>c(e)||u(e)||"-"===e,d=e=>c(e)||"x"===e||"X"===e||"*"===e,h=(e,t,r,n)=>{if(!c(e[t]))return t;if(t>=n.start&&t<n.end)return Math.min(t+r,n.end);if(t>=n.previousStart&&t<n.previousEnd)return Math.min(t+r,n.previousEnd);let i=t+1;for(;c(e[i]);)i++;return n.previousStart=n.start,n.previousEnd=n.end,n.start=t,n.end=i,Math.min(t+r,i)},p=(e,t,r,i)=>r||"0"!==e[t]?h(e,t,r?n:n+1,i):t+1,m=(e,t,r,o)=>{let a=h(e,t,n,o);if(u(e[a])||"-"===e[a]){let t=a+1,r=t+i;for(;t<r&&f(e[t]);)t++;return t}return p(e,t,r,o)},g=(e,t,r,n)=>{let i="-"===e[t];if(!r&&!i)return t;let o=t+ +!!i,a=m(e,o,r,n);if(a===o){if(!r||!i)return t;a=m(e,t,r,n)}for(;"."===e[a];){let t=m(e,a+1,r,n);if(t===a+1)break;a=t}return a},b=(e,t)=>{let r=t;for(;r-t<i&&f(e[r]);)r++;return r},v=(e,t)=>{if("+"!==e[t])return t;let r=b(e,t+1);if(r===t+1)return t;for(;"."===e[r];){let t=b(e,r+1);if(t===r+1)break;r=t}return r},y=(e,t,r)=>{let n=t;for(let i=0;i<3;i++){let o=p(e,n,!0,r);if(o===n)return t;if(n=o,i<2){if("."!==e[n])return t;n++}}let i=g(e,n,!0,r);return v(e,i)},w=(e,t,r)=>c(e[t])?p(e,t,!1,r):d(e[t])?t+1:t,x=(e,t,r)=>{let n=w(e,t,r);for(let t=0;t<2;t++){if("."!==e[n])return n;let t=w(e,n+1,r);if(t===n+1)return n;n=t}let i=g(e,n,!1,r);return v(e,i)},A=(e,t,r)=>{let n=y(e,t,r);return n!==t?n:x(e,t,r)},E=(e,t)=>{let r=t;return s(e[r])&&r++,("<"===e[r]||">"===e[r])&&r++,"="===e[r]&&r++,s(e[r])?r:-1};e.exports=e=>{let t="",r=0,n=0,i={start:-1,end:-1,previousStart:-1,previousEnd:-1};for(;n<e.length;){let o=n;if("<"===e[n]||">"===e[n])n++;else if(!l(e[n])&&!d(e[n])){n++;continue}for(;n<e.length&&l(e[n]);)n++;if(!d(e[n]))continue;let a=E(e,o);-1!==a&&(t+=e.slice(r,a),r=a+1),n=A(e,n,i)}return t+e.slice(r)}},91179(e,t,r){"use strict";let n=r(23019);e.exports=(e,t,r)=>n(e,t,">",r)},71412(e,t,r){"use strict";let n=r(17388);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},28422(e,t,r){"use strict";let n=r(23019);e.exports=(e,t,r)=>n(e,t,"<",r)},29700(e,t,r){"use strict";let n=r(52732),i=r(17388);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(a=new n(o=e,r))}),o}},17782(e,t,r){"use strict";let n=r(52732),i=r(17388);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(a=new n(o=e,r))}),o}},60021(e,t,r){"use strict";let n=r(52732),i=r(17388),o=r(76452);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t<e.set.length;++t){let i=e.set[t],a=null;i.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!r||o(r,a))&&(r=a)}return r&&e.test(r)?r:null}},23019(e,t,r){"use strict";let n=r(52732),i=r(31096),{ANY:o}=i,a=r(17388),s=r(52798),l=r(76452),c=r(5131),u=r(25720),f=r(8993);e.exports=(e,t,r,d)=>{let h,p,m,g,b;switch(e=new n(e,d),t=new a(t,d),r){case">":h=l,p=u,m=c,g=">",b=">=";break;case"<":h=c,p=f,m=l,g="<",b="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let r=0;r<t.set.length;++r){let n=t.set[r],a=null,s=null;if(n.forEach(e=>{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,d)?a=e:m(e.semver,s.semver,d)&&(s=e)}),a.operator===g||a.operator===b||(!s.operator||s.operator===g)&&p(e,s.semver)||s.operator===b&&m(e,s.semver))return!1}return!0}},87077(e,t,r){"use strict";let n=r(52798),i=r(22072);e.exports=(e,t,r)=>{let o=[],a=null,s=null,l=e.sort((e,t)=>i(e,t,r));for(let e of l)n(e,t,r)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");let u=c.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return u.length<f.length?u:t}},93152(e,t,r){"use strict";let n=r(17388),i=r(31096),{ANY:o}=i,a=r(52798),s=r(22072),l=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(let n of e.set){for(let e of t.set){let t=f(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0},c=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],f=(e,t,r)=>{let n,i,l,f,p,m,g;if(e===t)return!0;if(1===e.length&&e[0].semver===o)if(1===t.length&&t[0].semver===o)return!0;else e=r.includePrerelease?c:u;if(1===t.length&&t[0].semver===o)if(r.includePrerelease)return!0;else t=u;let b=new Set;for(let t of e)">"===t.operator||">="===t.operator?n=d(n,t,r):"<"===t.operator||"<="===t.operator?i=h(i,t,r):b.add(t.semver);if(b.size>1)return null;if(n&&i&&((l=s(n.semver,i.semver,r))>0||0===l&&(">="!==n.operator||"<="!==i.operator)))return null;for(let e of b){if(n&&!a(e,String(n),r)||i&&!a(e,String(i),r))return null;for(let n of t)if(!a(e,String(n),r))return!1;return!0}let v=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(v&&1===v.prerelease.length&&"<"===i.operator&&0===v.prerelease[0]&&(v=!1),t)){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=d(n,e,r))===e&&f!==n)return!1}else if(">="===n.operator&&!e.test(n.semver))return!1}if(i){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if((p=h(i,e,r))===e&&p!==i)return!1}else if("<="===i.operator&&!e.test(i.semver))return!1}if(!e.operator&&(i||n)&&0!==l)return!1}return(!n||!m||!!i||0===l)&&(!i||!g||!!n||0===l)&&!y&&!v&&!0},d=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},h=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=l},50775(e,t,r){"use strict";let n=r(17388);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},69354(e,t,r){"use strict";let n=r(17388);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},7755(e,t,r){"use strict";var n=r(49336),i=r(20022),o=r(491)(),a=r(25667),s=r(71102),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},55009(e,t,r){"use strict";var n=r(56608).Buffer,i=r(26919);function o(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){e=i(e,t||"utf8");for(var r=this._block,n=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var l=a%n,c=Math.min(o-s,n-l),u=0;u<c;u++)r[l+u]=e[s+u];a+=c,s+=c,a%n==0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=0xffffffff)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=r>>>0,i=(r-n)/0x100000000;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},o.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=o},99041(e,t,r){"use strict";e.exports=function(t){var r=t.toLowerCase(),n=e.exports[r];if(!n)throw Error(r+" is not supported (we accept pull requests)");return new n},e.exports.sha=r(69639),e.exports.sha1=r(67528),e.exports.sha224=r(74991),e.exports.sha256=r(81774),e.exports.sha384=r(84846),e.exports.sha512=r(7823)},69639(e,t,r){"use strict";var n=r(91193),i=r(55009),o=r(56608).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var d=0;d<80;++d){var h=~~(d/20),p=c(r)+f(h,n,i,o)+s+t[d]+a[h]|0;s=o,o=i,i=u(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},67528(e,t,r){"use strict";var n=r(91193),i=r(55009),o=r(56608).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<1|e>>>31}function u(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=c(t[l-3]^t[l-8]^t[l-14]^t[l-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=u(r)+d(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=f(n),n=r,r=m}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},74991(e,t,r){"use strict";var n=r(91193),i=r(81774),o=r(55009),a=r(56608).Buffer,s=Array(64);function l(){this.init(),this._w=s,o.call(this,64,56)}n(l,i),l.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},l.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},81774(e,t,r){"use strict";var n=r(91193),i=r(55009),o=r(56608).Buffer,a=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],s=Array(64);function l(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(l,i),l.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,l=0|this._f,m=0|this._g,g=0|this._h,b=0;b<16;++b)t[b]=e.readInt32BE(4*b);for(;b<64;++b)t[b]=p(t[b-2])+t[b-7]+h(t[b-15])+t[b-16]|0;for(var v=0;v<64;++v){var y=g+d(s)+c(s,l,m)+a[v]+t[v]|0,w=f(r)+u(r,n,i)|0;g=m,m=l,l=s,s=o+y|0,o=i,i=n,n=r,r=y+w|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=l+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},84846(e,t,r){"use strict";var n=r(91193),i=r(7823),o=r(55009),a=r(56608).Buffer,s=Array(160);function l(){this.init(),this._w=s,o.call(this,128,112)}n(l,i),l.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},l.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},7823(e,t,r){"use strict";var n=r(91193),i=r(55009),o=r(56608).Buffer,a=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],s=Array(160);function l(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return+(e>>>0<t>>>0)}n(l,i),l.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,l=0|this._fh,v=0|this._gh,y=0|this._hh,w=0|this._al,x=0|this._bl,A=0|this._cl,E=0|this._dl,_=0|this._el,S=0|this._fl,$=0|this._gl,k=0|this._hl,C=0;C<32;C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4);for(;C<160;C+=2){var O=t[C-30],M=t[C-30+1],I=h(O,M),R=p(M,O),j=m(O=t[C-4],M=t[C-4+1]),T=g(M,O),N=t[C-14],P=t[C-14+1],B=t[C-32],z=t[C-32+1],L=R+P|0,D=I+N+b(L,R)|0;D=(D=D+j+b(L=L+T|0,T)|0)+B+b(L=L+z|0,z)|0,t[C]=D,t[C+1]=L}for(var F=0;F<160;F+=2){D=t[F],L=t[F+1];var H=u(r,n,i),U=u(w,x,A),q=f(r,w),W=f(w,r),V=d(s,_),K=d(_,s),G=a[F],X=a[F+1],Z=c(s,l,v),Y=c(_,S,$),J=k+K|0,Q=y+V+b(J,k)|0;Q=(Q=(Q=Q+Z+b(J=J+Y|0,Y)|0)+G+b(J=J+X|0,X)|0)+D+b(J=J+L|0,L)|0;var ee=W+U|0,et=q+H+b(ee,W)|0;y=v,k=$,v=l,$=S,l=s,S=_,s=o+Q+b(_=E+J|0,E)|0,o=i,E=A,i=n,A=x,n=r,x=w,r=Q+et+b(w=J+ee|0,J)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+A|0,this._dl=this._dl+E|0,this._el=this._el+_|0,this._fl=this._fl+S|0,this._gl=this._gl+$|0,this._hl=this._hl+k|0,this._ah=this._ah+r+b(this._al,w)|0,this._bh=this._bh+n+b(this._bl,x)|0,this._ch=this._ch+i+b(this._cl,A)|0,this._dh=this._dh+o+b(this._dl,E)|0,this._eh=this._eh+s+b(this._el,_)|0,this._fh=this._fh+l+b(this._fl,S)|0,this._gh=this._gh+v+b(this._gl,$)|0,this._hh=this._hh+y+b(this._hl,k)|0},l.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},43803(e,t,r){e.exports=i;var n=r(80381).EventEmitter;function i(){n.call(this)}r(91193)(i,n),i.Readable=r(23033),i.Writable=r(92553),i.Duplex=r(35707),i.Transform=r(50141),i.PassThrough=r(75271),i.finished=r(32339),i.pipeline=r(35481),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},89851(e,t,r){"use strict";var n=r(18604).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=b,t=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},86704(e,t,r){"use strict";var n=r(56608).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=b,t=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},26919(e,t,r){"use strict";var n=r(56608).Buffer,i=r(16111),o=r(68460),a=ArrayBuffer.isView||function(e){try{return o(e),!0}catch(e){return!1}},s="u">typeof Uint8Array,l="u">typeof ArrayBuffer&&"u">typeof Uint8Array,c=l&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);e.exports=function(e,t){if(n.isBuffer(e))return!e.constructor||"isBuffer"in e?e:n.from(e);if("string"==typeof e)return n.from(e,t);if(l&&a(e)){if(0===e.byteLength)return n.alloc(0);if(c){var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}var o=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),u=n.from(o);if(u.length===e.byteLength)return u}if(s&&e instanceof Uint8Array)return n.from(e);var f=i(e);if(f)for(var d=0;d<e.length;d+=1){var h=e[d];if("number"!=typeof h||h<0||h>255||~~h!==h)throw RangeError("Array items must be numbers in the range 0-255.")}if(f||n.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},39687(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},68460(e,t,r){"use strict";var n=r(71102),i=r(98801)("TypedArray.prototype.buffer",!0),o=r(40006);e.exports=i||function(e){if(!o(e))throw new n("Not a Typed Array");return e.buffer}},43581(e,t,r){"use strict";var n=r(22155);function i(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var o="function"==typeof Object.is?Object.is:i,a=n.useState,s=n.useEffect,l=n.useLayoutEffect,c=n.useDebugValue;function u(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return l(function(){i.value=r,i.getSnapshot=t,f(i)&&o({inst:i})},[e,r,t]),s(function(){return f(i)&&o({inst:i}),e(function(){f(i)&&o({inst:i})})},[e]),c(r),r}function f(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}function d(e,t){return t()}var h="u"<typeof window||void 0===window.document||void 0===window.document.createElement?d:u;t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:h},51714(e,t,r){"use strict";var n=r(22155),i=r(8598);function o(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var a="function"==typeof Object.is?Object.is:o,s=i.useSyncExternalStore,l=n.useRef,c=n.useEffect,u=n.useMemo,f=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=l(null);if(null===o.current){var d={hasValue:!1,value:null};o.current=d}else d=o.current;var h=s(e,(o=u(function(){function e(e){if(!l){if(l=!0,o=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(o=e,s=r)}var o,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]))[0],o[1]);return c(function(){d.hasValue=!0,d.value=h},[h]),f(h),h}},8598(e,t,r){"use strict";e.exports=r(43581)},33016(e,t,r){"use strict";e.exports=r(51714)},91947(e,t,r){function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function e(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},56640(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},90515(e,t,r){"use strict";var n=r(56531),i=r(51646),o=r(52412),a=r(40006);function s(e){return e.call.bind(e)}var l="u">typeof BigInt,c="u">typeof Symbol,u=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(l)var p=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===u(e)}function v(e){return"[object Set]"===u(e)}function y(e){return"[object WeakMap]"===u(e)}function w(e){return"[object WeakSet]"===u(e)}function x(e){return"[object ArrayBuffer]"===u(e)}function A(e){return!("u"<typeof ArrayBuffer)&&(x.working?x(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===u(e)}function _(e){return!("u"<typeof DataView)&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"u">typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||_(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},b.working="u">typeof Map&&b(new Map),t.isMap=function(e){return!("u"<typeof Map)&&(b.working?b(e):e instanceof Map)},v.working="u">typeof Set&&v(new Set),t.isSet=function(e){return!("u"<typeof Set)&&(v.working?v(e):e instanceof Set)},y.working="u">typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return!("u"<typeof WeakMap)&&(y.working?y(e):e instanceof WeakMap)},w.working="u">typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="u">typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=A,E.working="u">typeof ArrayBuffer&&"u">typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=_;var S="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function $(e){return"[object SharedArrayBuffer]"===u(e)}function k(e){return void 0!==S&&(void 0===$.working&&($.working=$(new S)),$.working?$(e):e instanceof S)}function C(e){return g(e,f)}function O(e){return g(e,d)}function M(e){return g(e,h)}function I(e){return l&&g(e,p)}function R(e){return c&&g(e,m)}t.isSharedArrayBuffer=k,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=C,t.isStringObject=O,t.isBooleanObject=M,t.isBigIntObject=I,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return C(e)||O(e)||M(e)||I(e)||R(e)},t.isAnyArrayBuffer=function(e){return"u">typeof Uint8Array&&(A(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},1344(e,t,r){var n=r(85409),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!E(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])x(s)||!$(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var l=n.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),h(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function f(e,t){return e}function d(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return E(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),l=d(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),C(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(O(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(S(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(C(r))return m(r)}var u="",f=!1,w=["{","}"];if(y(r)&&(f=!0,w=["[","]"]),O(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),S(r)&&(u=" "+RegExp.prototype.toString.call(r)),k(r)&&(u=" "+Date.prototype.toUTCString.call(r)),C(r)&&(u=" "+m(r)),0===s.length&&(!f||0==r.length))return w[0]+u+w[1];if(n<0)if(S(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=f?g(e,r,n,l,s):s.map(function(t){return b(e,r,n,l,t,f)}),e.seen.pop(),v(i,u,w)}function p(e,t){if(_(t))return e.stylize("undefined","undefined");if(E(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return A(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):x(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)T(t,String(a))?o.push(b(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(b(e,t,r,n,i,!0))}),o}function b(e,t,r,n,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),T(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=x(r)?h(e,l.value,null):h(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),_(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function v(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function x(e){return null===e}function A(e){return"number"==typeof e}function E(e){return"string"==typeof e}function _(e){return void 0===e}function S(e){return $(e)&&"[object RegExp]"===M(e)}function $(e){return"object"==typeof e&&null!==e}function k(e){return $(e)&&"[object Date]"===M(e)}function C(e){return $(e)&&("[object Error]"===M(e)||e instanceof Error)}function O(e){return"function"==typeof e}function M(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(90515),t.isArray=y,t.isBoolean=w,t.isNull=x,t.isNullOrUndefined=function(e){return null==e},t.isNumber=A,t.isString=E,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=_,t.isRegExp=S,t.types.isRegExp=S,t.isObject=$,t.isDate=k,t.types.isDate=k,t.isError=C,t.types.isNativeError=C,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(56640);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,t=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",j(),t.format.apply(t,arguments))},t.inherits=r(91193),t._extend=function(e,t){if(!t||!$(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var N="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(N&&e[N]){var t=e[N];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),N&&Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=N,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){n.nextTick(a.bind(null,null,e))},function(e){n.nextTick(P.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},20168(__unused_rspack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}},52412(e,t,r){"use strict";var n=r(87196),i=r(64379),o=r(6902),a=r(98801),s=r(25667),l=r(14252),c=a("Object.prototype.toString"),u=r(77185)(),f="u"<typeof globalThis?r.g:globalThis,d=i(),h=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},m={__proto__:null};function g(e){var t=!1;return n(m,function(r,n){if(!t)try{"$"+r(e)===n&&(t=h(n,1))}catch(e){}}),t}function b(e){var t=!1;return n(m,function(r,n){if(!t)try{r(e),t=h(n,1)}catch(e){}}),t}function v(e){return p(d,e)>-1}u&&s&&l?n(d,function(e){var t=new f[e];if(Symbol.toStringTag in t&&l){var r=l(t),n=s(r,Symbol.toStringTag);if(!n&&r&&(n=s(l(r),Symbol.toStringTag)),n&&n.get){var i=o(n.get);m["$"+e]=i}}}):n(d,function(e){var t=new f[e],r=t.slice||t.set;if(r){var n=o(r);m["$"+e]=n}}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=h(c(e),8,-1);return v(t)?t:"Object"===t&&b(e)}return s?g(e):null}},55969(e){var t={validateDimension:function(e){if(e<=0||e!==(0|e))throw"YUV plane dimensions must be a positive integer"},validateOffset:function(e){if(e<0||e!==(0|e))throw"YUV plane offsets must be a non-negative integer"},format:function(e){var t=e.width,r=e.height,n=e.chromaWidth||t,i=e.chromaHeight||r,o=e.cropLeft||0,a=e.cropTop||0,s=e.cropWidth||t-o,l=e.cropHeight||r-a,c=e.displayWidth||s,u=e.displayHeight||l;return this.validateDimension(t),this.validateDimension(r),this.validateDimension(n),this.validateDimension(i),this.validateOffset(o),this.validateOffset(a),this.validateDimension(s),this.validateDimension(l),this.validateDimension(c),this.validateDimension(u),{width:t,height:r,chromaWidth:n,chromaHeight:i,cropLeft:o,cropTop:a,cropWidth:s,cropHeight:l,displayWidth:c,displayHeight:u}},suitableStride:function(e){t.validateDimension(e);var r=4,n=e%4;return 0==n?e:e+(r-n)},allocPlane:function(e,t,r,n,i){var o,a;if(this.validateDimension(e),this.validateDimension(t),i=i||0,n=n||this.suitableStride(e),this.validateDimension(n),n<e)throw"Invalid input stride for YUV plane; must be larger than width";if(o=n*t,r){if(r.length-i<o)throw"Invalid input buffer for YUV plane; must be large enough for stride times height";a=r.slice(i,i+o)}else a=new Uint8Array(o),n=n||this.suitableStride(e);return{bytes:a,stride:n}},lumaPlane:function(e,t,r,n){return this.allocPlane(e.width,e.height,t,r,n)},chromaPlane:function(e,t,r,n){return this.allocPlane(e.chromaWidth,e.chromaHeight,t,r,n)},frame:function(e,t,r,n){return t=t||this.lumaPlane(e),r=r||this.chromaPlane(e),n=n||this.chromaPlane(e),{format:e,y:t,u:r,v:n}},copyPlane:function(e){return{bytes:e.bytes.slice(),stride:e.stride}},copyFrame:function(e){return{format:e.format,y:this.copyPlane(e.y),u:this.copyPlane(e.u),v:this.copyPlane(e.v)}},transferables:function(e){return[e.y.bytes.buffer,e.u.bytes.buffer,e.v.bytes.buffer]}};e.exports=t},86765(e){e.exports={vertex:"precision mediump float;\n\nattribute vec2 aPosition;\nattribute vec2 aLumaPosition;\nattribute vec2 aChromaPosition;\nvarying vec2 vLumaPosition;\nvarying vec2 vChromaPosition;\nvoid main() {\n gl_Position = vec4(aPosition, 0, 1);\n vLumaPosition = aLumaPosition;\n vChromaPosition = aChromaPosition;\n}\n",fragment:"// inspired by https://github.com/mbebenita/Broadway/blob/master/Player/canvas.js\n\nprecision mediump float;\n\nuniform sampler2D uTextureY;\nuniform sampler2D uTextureCb;\nuniform sampler2D uTextureCr;\nvarying vec2 vLumaPosition;\nvarying vec2 vChromaPosition;\nvoid main() {\n // Y, Cb, and Cr planes are uploaded as ALPHA textures.\n float fY = texture2D(uTextureY, vLumaPosition).w;\n float fCb = texture2D(uTextureCb, vChromaPosition).w;\n float fCr = texture2D(uTextureCr, vChromaPosition).w;\n\n // Premultipy the Y...\n float fYmul = fY * 1.1643828125;\n\n // And convert that to RGB!\n gl_FragColor = vec4(\n fYmul + 1.59602734375 * fCr - 0.87078515625,\n fYmul - 0.39176171875 * fCb - 0.81296875 * fCr + 0.52959375,\n fYmul + 2.017234375 * fCb - 1.081390625,\n 1\n );\n}\n",vertexStripe:"precision mediump float;\n\nattribute vec2 aPosition;\nattribute vec2 aTexturePosition;\nvarying vec2 vTexturePosition;\n\nvoid main() {\n gl_Position = vec4(aPosition, 0, 1);\n vTexturePosition = aTexturePosition;\n}\n",fragmentStripe:"// extra 'stripe' texture fiddling to work around IE 11's poor performance on gl.LUMINANCE and gl.ALPHA textures\n\nprecision mediump float;\n\nuniform sampler2D uStripe;\nuniform sampler2D uTexture;\nvarying vec2 vTexturePosition;\nvoid main() {\n // Y, Cb, and Cr planes are mapped into a pseudo-RGBA texture\n // so we can upload them without expanding the bytes on IE 11\n // which doesn't allow LUMINANCE or ALPHA textures\n // The stripe textures mark which channel to keep for each pixel.\n // Each texture extraction will contain the relevant value in one\n // channel only.\n\n float fLuminance = dot(\n texture2D(uStripe, vTexturePosition),\n texture2D(uTexture, vTexturePosition)\n );\n\n gl_FragColor = vec4(0, 0, 0, fLuminance);\n}\n"}},54419(e){!function(){"use strict";function t(e,t){throw Error("abstract")}t.prototype.drawFrame=function(e){throw Error("abstract")},t.prototype.clear=function(){throw Error("abstract")},e.exports=t}()},14848(e,t,r){!function(){"use strict";var t=r(54419),n=r(60174);function i(e){var t=this,r=e.getContext("2d"),i=null,o=null,a=null;function s(e,t){for(var n=(i=r.createImageData(e,t)).data,o=e*t*4,a=0;a<o;a+=4)n[a+3]=255}function l(e,t){(o=document.createElement("canvas")).width=e,o.height=t,a=o.getContext("2d")}return t.drawFrame=function(t){var c,u=t.format;(e.width!==u.displayWidth||e.height!==u.displayHeight)&&(e.width=u.displayWidth,e.height=u.displayHeight),(null===i||i.width!=u.width||i.height!=u.height)&&s(u.width,u.height),n.convertYCbCr(t,i.data);var f=u.cropWidth!=u.displayWidth||u.cropHeight!=u.displayHeight;f?(o||l(u.cropWidth,u.cropHeight),c=a):c=r,c.putImageData(i,-u.cropLeft,-u.cropTop,u.cropLeft,u.cropTop,u.cropWidth,u.cropHeight),f&&r.drawImage(o,0,0,u.displayWidth,u.displayHeight)},t.clear=function(){r.clearRect(0,0,e.width,e.height)},t}i.prototype=Object.create(t.prototype),e.exports=i}()},13972(e,t,r){!function(){"use strict";var t=r(54419),n=r(86765);function i(e){var t,r,o,a,s,l,c,u,f,d,h,p,m,g=this,b=i.contextForCanvas(e);if(null===b)throw Error("WebGL unavailable");function v(e,t){var r=b.createShader(e);if(b.shaderSource(r,t),b.compileShader(r),!b.getShaderParameter(r,b.COMPILE_STATUS)){var n=b.getShaderInfoLog(r);throw b.deleteShader(r),Error("GL shader compilation for "+e+" failed: "+n)}return r}var y=new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),w={},x={},A={};function E(e,t){return(!w[e]||t)&&(w[e]=b.createTexture()),w[e]}function _(e,t,r,n,o){var a=!w[e]||t,s=E(e,t);if(b.activeTexture(b.TEXTURE0),i.stripe){var l=!w[e+"_temp"]||t,c=E(e+"_temp",t);b.bindTexture(b.TEXTURE_2D,c),l?(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.NEAREST),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.NEAREST),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,r/4,n,0,b.RGBA,b.UNSIGNED_BYTE,o)):b.texSubImage2D(b.TEXTURE_2D,0,0,0,r/4,n,b.RGBA,b.UNSIGNED_BYTE,o);var u=w[e+"_stripe"],f=!u||t;f&&(u=E(e+"_stripe",t)),b.bindTexture(b.TEXTURE_2D,u),f&&(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.NEAREST),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.NEAREST),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,r,1,0,b.RGBA,b.UNSIGNED_BYTE,k(r,1)))}else b.bindTexture(b.TEXTURE_2D,s),a?(b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),b.texImage2D(b.TEXTURE_2D,0,b.ALPHA,r,n,0,b.ALPHA,b.UNSIGNED_BYTE,o)):b.texSubImage2D(b.TEXTURE_2D,0,0,0,r,n,b.ALPHA,b.UNSIGNED_BYTE,o)}function S(e,t,n,i){var s=w[e];b.useProgram(r);var d=x[e];(!d||t)&&(b.activeTexture(b.TEXTURE0),b.bindTexture(b.TEXTURE_2D,s),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,n,i,0,b.RGBA,b.UNSIGNED_BYTE,null),d=x[e]=b.createFramebuffer()),b.bindFramebuffer(b.FRAMEBUFFER,d),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,s,0);var h=w[e+"_temp"];b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,h),b.uniform1i(f,1);var p=w[e+"_stripe"];b.activeTexture(b.TEXTURE2),b.bindTexture(b.TEXTURE_2D,p),b.uniform1i(u,2),b.bindBuffer(b.ARRAY_BUFFER,o),b.enableVertexAttribArray(a),b.vertexAttribPointer(a,2,b.FLOAT,!1,0,0),b.bindBuffer(b.ARRAY_BUFFER,l),b.enableVertexAttribArray(c),b.vertexAttribPointer(c,2,b.FLOAT,!1,0,0),b.viewport(0,0,n,i),b.drawArrays(b.TRIANGLES,0,y.length/2),b.bindFramebuffer(b.FRAMEBUFFER,null)}function $(e,r,n){b.activeTexture(r),b.bindTexture(b.TEXTURE_2D,w[e]),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),b.uniform1i(b.getUniformLocation(t,e),n)}function k(e){if(A[e])return A[e];for(var t=e,r=new Uint32Array(t),n=0;n<t;n+=4)r[n]=255,r[n+1]=65280,r[n+2]=0xff0000,r[n+3]=0xff000000;return A[e]=new Uint8Array(r.buffer)}function C(e,t){var r=v(b.VERTEX_SHADER,e),n=v(b.FRAGMENT_SHADER,t),i=b.createProgram();if(b.attachShader(i,r),b.attachShader(i,n),b.linkProgram(i),!b.getProgramParameter(i,b.LINK_STATUS)){var o=b.getProgramInfoLog(i);throw b.deleteProgram(i),Error("GL program linking failed: "+o)}return i}function O(){if(i.stripe){r=C(n.vertexStripe,n.fragmentStripe),s=b.getAttribLocation(r,"aPosition"),l=b.createBuffer();var e=new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]);b.bindBuffer(b.ARRAY_BUFFER,l),b.bufferData(b.ARRAY_BUFFER,e,b.STATIC_DRAW),c=b.getAttribLocation(r,"aTexturePosition"),u=b.getUniformLocation(r,"uStripe"),f=b.getUniformLocation(r,"uTexture")}t=C(n.vertex,n.fragment),o=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,o),b.bufferData(b.ARRAY_BUFFER,y,b.STATIC_DRAW),a=b.getAttribLocation(t,"aPosition"),d=b.createBuffer(),h=b.getAttribLocation(t,"aLumaPosition"),p=b.createBuffer(),m=b.getAttribLocation(t,"aChromaPosition")}return g.drawFrame=function(r){var n=r.format,s=!t||e.width!==n.displayWidth||e.height!==n.displayHeight;if(s&&(e.width=n.displayWidth,e.height=n.displayHeight,g.clear()),t||O(),s){var l=function(e,t,r){var i=n.cropLeft/r,o=(n.cropLeft+n.cropWidth)/r,a=(n.cropTop+n.cropHeight)/n.height,s=n.cropTop/n.height,l=new Float32Array([i,a,o,a,i,s,i,s,o,a,o,s]);b.bindBuffer(b.ARRAY_BUFFER,e),b.bufferData(b.ARRAY_BUFFER,l,b.STATIC_DRAW)};l(d,h,r.y.stride),l(p,m,r.u.stride*n.width/n.chromaWidth)}_("uTextureY",s,r.y.stride,n.height,r.y.bytes),_("uTextureCb",s,r.u.stride,n.chromaHeight,r.u.bytes),_("uTextureCr",s,r.v.stride,n.chromaHeight,r.v.bytes),i.stripe&&(S("uTextureY",s,r.y.stride,n.height),S("uTextureCb",s,r.u.stride,n.chromaHeight),S("uTextureCr",s,r.v.stride,n.chromaHeight)),b.useProgram(t),b.viewport(0,0,e.width,e.height),$("uTextureY",b.TEXTURE0,0),$("uTextureCb",b.TEXTURE1,1),$("uTextureCr",b.TEXTURE2,2),b.bindBuffer(b.ARRAY_BUFFER,o),b.enableVertexAttribArray(a),b.vertexAttribPointer(a,2,b.FLOAT,!1,0,0),b.bindBuffer(b.ARRAY_BUFFER,d),b.enableVertexAttribArray(h),b.vertexAttribPointer(h,2,b.FLOAT,!1,0,0),b.bindBuffer(b.ARRAY_BUFFER,p),b.enableVertexAttribArray(m),b.vertexAttribPointer(m,2,b.FLOAT,!1,0,0),b.drawArrays(b.TRIANGLES,0,y.length/2)},g.clear=function(){b.viewport(0,0,e.width,e.height),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT)},g.clear(),g}i.stripe=!1,i.contextForCanvas=function(e){var t={preferLowPowerToHighPerformance:!0,powerPreference:"low-power",failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!0};return e.getContext("webgl",t)||e.getContext("experimental-webgl",t)},i.isAvailable=function(){var e,t=document.createElement("canvas");t.width=1,t.height=1;try{e=i.contextForCanvas(t)}catch(e){return!1}if(!e)return!1;var r=e.TEXTURE0,n=4,o=4,a=e.createTexture(),s=new Uint8Array(n*o),l=i.stripe?n/4:n,c=i.stripe?e.RGBA:e.ALPHA,u=i.stripe?e.NEAREST:e.LINEAR;return e.activeTexture(r),e.bindTexture(e.TEXTURE_2D,a),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,u),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,u),e.texImage2D(e.TEXTURE_2D,0,c,l,o,0,c,e.UNSIGNED_BYTE,s),!e.getError()},i.prototype=Object.create(t.prototype),e.exports=i}()},60174(e,t,r){!function(){"use strict";var t=r(29193);e.exports={convertYCbCr:function(e,r){var n=0|e.format.width,i=0|e.format.height,o=0|t(e.format.width/e.format.chromaWidth),a=0|t(e.format.height/e.format.chromaHeight),s=e.y.bytes,l=e.u.bytes,c=e.v.bytes,u=0|e.y.stride,f=0|e.u.stride,d=0|e.v.stride,h=n<<2,p=0,m=0,g=0,b=0,v=0,y=0,w=0,x=0,A=0,E=0,_=0,S=0,$=0,k=0,C=0,O=0,M=0,I=0;if(1==o&&1==a)for(O=0,w=0,x=h,I=0;O<i;O+=2){for(C=0,g=(m=O*u|0)+u|0,b=I*f|0,v=I*d|0;C<n;C+=2)A=0|l[b++],S=(409*(E=0|c[v++])|0)-57088|0,$=(100*A|0)+(208*E|0)-34816|0,k=(516*A|0)-70912|0,_=298*s[m++]|0,r[w]=_+S>>8,r[w+1]=_-$>>8,r[w+2]=_+k>>8,w+=4,_=298*s[m++]|0,r[w]=_+S>>8,r[w+1]=_-$>>8,r[w+2]=_+k>>8,w+=4,_=298*s[g++]|0,r[x]=_+S>>8,r[x+1]=_-$>>8,r[x+2]=_+k>>8,x+=4,_=298*s[g++]|0,r[x]=_+S>>8,r[x+1]=_-$>>8,r[x+2]=_+k>>8,x+=4;w+=h,x+=h,I++}else for(O=0,y=0;O<i;O++)for(C=0,M=0,I=O>>a,p=O*u|0,b=I*f|0,v=I*d|0;C<n;C++)A=0|l[b+(M=C>>o)],S=(409*(E=0|c[v+M])|0)-57088|0,$=(100*A|0)+(208*E|0)-34816|0,k=(516*A|0)-70912|0,_=298*s[p++]|0,r[y]=_+S>>8,r[y+1]=_-$>>8,r[y+2]=_+k>>8,y+=4}}}()},29193(e){!function(){"use strict";e.exports=function(e){for(var t=0,r=e>>1;0!=r;)r>>=1,t++;if(e!==1<<t)throw"chroma plane dimensions must be power of 2 ratio to luma plane dimensions; got "+e;return t}}()},47942(e,t,r){!function(){"use strict";var t=r(54419),n=r(14848),i=r(13972);e.exports={FrameSink:t,SoftwareFrameSink:n,WebGLFrameSink:i,attach:function(e,t){return("webGL"in(t=t||{})?t.webGL:i.isAvailable())?new i(e,t):new n(e,t)}}}()},64379(e,t,r){"use strict";var n=r(7274),i="u"<typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},30395(e){!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,n(r)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)t.call(e,o)&&e[o]&&(n=i(n,o));return n}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return r}):window.classNames=r}()},5347(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{A:()=>n})},44071(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{A:()=>n})},18663(e,t,r){"use strict";function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},95065(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}}r.d(t,{A:()=>i})},11947(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{A:()=>n})},96591(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(12562);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,n.A)(i.key),i)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},51232(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(67236),i=r(3906),o=r(76664);function a(e){var t=(0,i.A)();return function(){var r,i=(0,n.A)(e);return r=t?Reflect.construct(i,arguments,(0,n.A)(this).constructor):i.apply(this,arguments),(0,o.A)(this,r)}}},19841(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(12562);function i(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},76878(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{A:()=>n})},67236(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,{A:()=>n})},93619(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(19184);function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.A)(e,t)}},3906(e,t,r){"use strict";function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n=function(){return!!e})()}r.d(t,{A:()=>n})},91847(e,t,r){"use strict";function n(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{A:()=>n})},64572(e,t,r){"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:()=>n})},39317(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(19841);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}},56284(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function i(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{A:()=>i})},76664(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(24366),i=r(18663);function o(e,t){if(t&&("object"==(0,n.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}},11369(e,t,r){"use strict";function n(e,t){this.v=e,this.k=t}function i(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(i=function(e,t,r,n){function a(t,r){i(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))})(e,t,r,n)}function o(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function s(r,n,o,a){var s=Object.create((n&&n.prototype instanceof c?n:c).prototype);return i(s,"_invoke",function(r,n,i){var o,a,s,c=0,u=i||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return o=t,a=0,s=e,d.n=r,l}};function h(r,n){for(a=r,s=n,t=0;!f&&c&&!i&&t<u.length;t++){var i,o=u[t],h=d.p,p=o[2];r>3?(i=p===n)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=h&&((i=r<2&&h<o[1])?(a=0,d.v=n,d.n=o[1]):h<p&&(i=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,d.n=p,a=0))}if(i||r>1)return l;throw f=!0,n}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&h(u,p),a=u,s=p;(t=a<2?e:s)||!f;){o||(a?a<3?(a>1&&(d.n=-1),h(a,s)):d.n=s:d.v=s);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(f=d.n<0)?s:r.call(n,d))!==l)break}catch(t){o=e,a=1,s=t}finally{c=1}}return{value:t,done:f}}}(r,o,a),!0),s}var l={};function c(){}function u(){}function f(){}t=Object.getPrototypeOf;var d=f.prototype=c.prototype=Object.create([][n]?t(t([][n]())):(i(t={},n,function(){return this}),t));function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,i(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=f,i(d,"constructor",f),i(f,"constructor",u),u.displayName="GeneratorFunction",i(f,a,"GeneratorFunction"),i(d),i(d,a,"Generator"),i(d,n,function(){return this}),i(d,"toString",function(){return"[object Generator]"}),(o=function(){return{w:s,m:h}})()}function a(e,t){var r;function o(r,i,a,s){try{var l=e[r](i),c=l.value;return c instanceof n?t.resolve(c.v).then(function(e){o("next",e,a,s)},function(e){o("throw",e,a,s)}):t.resolve(c).then(function(e){l.value=e,a(l)},function(e){return o("throw",e,a,s)})}catch(e){s(e)}}this.next||(i(a.prototype),i(a.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,n,i){function a(){return new t(function(t,r){o(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function s(e,t,r,n,i){return new a(o().w(e,t,r,n),i||Promise)}function l(e,t,r,n,i){var o=s(e,t,r,n,i);return o.next().then(function(e){return e.done?e.value:o.next()})}function c(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}r.d(t,{A:()=>d});var u=r(24366);function f(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError((0,u.A)(e)+" is not iterable")}function d(){var e=o(),t=e.m(d),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function i(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var u={throw:1,return:2,break:3,continue:3};function h(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,u[e],t)},delegateYield:function(e,i,o){return t.resultName=i,r(n.d,f(e),o)},finish:function(e){return r(n.f,e)}},r=function(e,r,i){n.p=t.prev,n.n=t.next;try{return e(r,i)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(d=function(){return{wrap:function(t,r,n,i){return e.w(h(t),r,n,i&&i.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:a,async:function(e,t,r,n,o){return(i(t)?s:l)(h(e),t,r,n,o)},keys:c,values:f}})()}},19184(e,t,r){"use strict";function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}r.d(t,{A:()=>n})},70486(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(44071);function i(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}var o=r(92430),a=r(64572);function s(e,t){return(0,n.A)(e)||i(e,t)||(0,o.A)(e,t)||(0,a.A)()}},82033(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(44071),i=r(91847),o=r(92430),a=r(64572);function s(e){return(0,n.A)(e)||(0,i.A)(e)||(0,o.A)(e)||(0,a.A)()}},78944(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(5347);function i(e){if(Array.isArray(e))return(0,n.A)(e)}var o=r(91847),a=r(92430);function s(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return i(e)||(0,o.A)(e)||(0,a.A)(e)||s()}},12562(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(24366);function i(e,t){if("object"!=(0,n.A)(e)||!e)return e;if("u">typeof Symbol&&void 0!==(r=e[Symbol.toPrimitive])){var r,i=r.call(e,t||"default");if("object"!=(0,n.A)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},24366(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{A:()=>n})},92430(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(5347);function i(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.A)(e,t):void 0}}},22788(e,t,r){"use strict";r.d(t,{q:()=>u});let n=0xc40000;var i=function(e){return e.V1_0="1.0",e.V1_5="1.5",e.DOUBAO_1_5_15B="doubao-1.5-15B",e.DOUBAO_1_5_20B="doubao-1.5-20B",e}({}),o=r(68094);function a(e,t){return Math.round(e/t)*t}function s(e,t){return Math.floor(e/t)*t}function l(e,t){return Math.ceil(e/t)*t}function c(e,t,r=200,i=28,o=78400,u=n){if(Math.max(e,t)/Math.min(e,t)>r)return console.error(`absolute aspect ratio must be smaller than ${r}, got ${Math.max(e,t)/Math.min(e,t)}`),null;let f=Math.max(i,a(t,i)),d=Math.max(i,a(e,i));if(d*f>u){let r=Math.sqrt(e*t/u);d=s(e/r,i),f=s(t/r,i)}else if(d*f<o){let r=Math.sqrt(o/(e*t));d=l(e*r,i),f=l(t*r,i)}return[f,d]}function u(e){let{prediction:t,factor:r,mode:n,screenContext:i,scaleFactor:o,modelVer:a}=e;return{parsed:f(t,Array.isArray(r)?r:[r,r],n,i,o,a)}}function f(e,t=[1e3,1e3],r="bc",n,a,s=i.V1_0){let l=null,u=null,h="",p=null;if(s===i.V1_5&&(null==n?void 0:n.height)&&(null==n?void 0:n.width)&&(p=c(n.height,n.width)),e=e.trim(),"bc"===r){if(e.includes("Thought:")){let t=e.match(/Thought: ([\s\S]+?)(?=\s*Action[::]|$)/);t&&(u=t[1].trim())}else if(e.startsWith("Reflection:")){let t=e.match(/Reflection: ([\s\S]+?)Action_Summary: ([\s\S]+?)(?=\s*Action[::]|$)/);t&&(u=t[2].trim(),l=t[1].trim())}else if(e.startsWith("Action_Summary:")){let t=e.match(/Action_Summary: (.+?)(?=\s*Action[::]|$)/);t&&(u=t[1].trim())}if(["Action:","Action:"].some(t=>e.includes(t))){let t=e.split(/Action[::]/);h=t[t.length-1]}else h=e}else if("o1"===r){let t=e.match(/<Thought>\s*(.*?)\s*<\/Thought>/),r=e.match(/\nAction_Summary:\s*(.*?)\s*Action:/),n=e.match(/\nAction:\s*(.*?)\s*<\/Output>/),i=t?t[1]:null,o=r?r[1]:null,a=n?n[1]:null;u=`${i}
261
+ <Action_Summary>
262
+ ${o}`,h=a||""}let m=h.split("\n\n"),g=[];for(let e of m){let r=d(e.replace(/\n/g,String.raw`\n`).trimStart()),c="",f={};if(r)for(let[e,l]of(c=r.function,f={},Object.entries(r.args))){if(!l)continue;let r=l.trim();if(e.includes("start_box")||e.includes("end_box")){let l=r.replace(/[()[\]]/g,"").split(",").filter(e=>""!==e).map((e,r)=>{let n=r%2;return s===i.V1_5&&p?Number.parseFloat(e)/p[n]:Number.parseFloat(e)/t[n]});if(2===l.length&&l.push(l[0],l[1]),f[e.trim()]=JSON.stringify(l),(null==n?void 0:n.width)&&(null==n?void 0:n.height)){let r=e.includes("start_box")?"start_coords":"end_coords",[i,s,c=i,u=s]=l,[d,h]=t;f[r]=[i,s,c,u].every(o)?[Math.round((i+c)/2*(null==n?void 0:n.width)*d)/d*(a??1),Math.round((s+u)/2*(null==n?void 0:n.height)*h)/h*(a??1)]:[]}}else f[e.trim()]=r}g.push({reflection:l,thought:u||"",action_type:c,action_inputs:f})}return g}function d(e){try{e=(e=e.replace(/<\|box_start\|>|<\|box_end\|>/g,"")).replace(/(?<!start_|end_)point=/g,"start_box=").replace(/start_point=/g,"start_box=").replace(/end_point=/g,"end_box=");let t=/^(\w+)\((.*)\)$/,r=e.trim().match(t);if(!r)throw Error("Not a function call");let[n,i,o]=r,a={};if(o.trim())for(let e of o.match(/([^,']|'[^']*')+/g)||[]){let[t,...r]=e.split("=");if(!t)continue;let n=r.join("=").trim().replace(/^['"]|['"]$/g,"");n.includes("<bbox>")&&(n=n.replace(/<bbox>|<\/bbox>/g,"").replace(/\s+/g,","),n=`(${n})`),n.includes("<point>")&&(n=n.replace(/<point>|<\/point>/g,"").replace(/\s+/g,","),n=`(${n})`),a[t.trim()]=n}return{function:i,args:a}}catch(t){return console.error(`Failed to parse action '${e}': ${t}`),null}}},76726(e,t,r){"use strict";r.d(t,{b:()=>n});class n{listeners=[];constructor(){this.event=this.event.bind(this)}addEventListener(e){this.listeners.push(e);let t=()=>{let t=this.listeners.indexOf(e);-1!==t&&this.listeners.splice(t,1)};return t.dispose=t,t}event=(e,t,...r)=>{let n={listener:e,thisArg:t,args:r};return this.addEventListener(n)};fire(e){for(let t of this.listeners.slice())t.listener.call(t.thisArg,e,...t.args)}dispose(){this.listeners.length=0}}},67756(e,t,r){"use strict";r.d(t,{O:()=>o});var n=r(76726);let i=Symbol("undefined");class o extends n.b{#e=i;addEventListener(e){return this.#e!==i&&e.listener.call(e.thisArg,this.#e,...e.args),super.addEventListener(e)}fire(e){this.#e=e,super.fire(e)}}},19767(e,t,r){"use strict";let n;r.d(t,{N:()=>w});class i{#t;get promise(){return this.#t}#r;#n;#i="running";get state(){return this.#i}constructor(){this.#t=new Promise((e,t)=>{this.#r=e,this.#n=t})}resolve=e=>{this.#r(e),this.#i="resolved"};reject=e=>{this.#n(e),this.#i="rejected"}}var o=r(67756),a=r(36579),s=r(58610),l=r(55969),c=r(47942);class u{#o=[];constructor(){this.dispose=this.dispose.bind(this)}addDisposable(e){return this.#o.push(e),e}dispose(){for(let e of this.#o)e.dispose();this.#o=[]}}var f=r(76726);let d=!1,h=[],p=0,m=new Map;function g(e,t){return m.set(e,t),{dispose(){m.delete(e)}}}class b extends u{streamId;#a=new f.b;get onPictureReady(){return this.#a.event}constructor(e){super(),this.streamId=e,this.addDisposable(g(e,this.#s))}#s=e=>{this.#a.fire(e)};feed(e){n.postMessage({type:"decode",data:e,offset:0,length:e.byteLength,renderStateId:this.streamId},[e])}dispose(){super.dispose(),n.postMessage({type:"release",renderStateId:this.streamId})}}function v(){if(n||(n=new Worker(new URL(r.p+r.u("236"),r.b),Object.assign({},{type:"module"},{type:void 0}))).addEventListener("message",({data:e})=>{switch(e.type){case"decoderReady":for(let e of(d=!0,h))e.resolve(new b(p)),p+=1;h.length=0;break;case"pictureReady":m.get(e.renderStateId)?.(e)}}),!d){let e=new i;return h.push(e),e.promise}let e=new b(p);return p+=1,Promise.resolve(e)}let y=()=>{};function w(){if("u">typeof document)return document.createElement("canvas");if("u">typeof OffscreenCanvas)return new OffscreenCanvas(1,1);throw Error("no canvas input found nor any canvas can be created")}class x{static capabilities={h264:{maxProfile:a.vF.Baseline,maxLevel:a.a7.Level4}};#l;get renderer(){return this.#l}#c=new o.O;get sizeChanged(){return this.#c.event}#u=0;get width(){return this.#u}#f=0;get height(){return this.#f}#d=0;get framesRendered(){return this.#d}#h=0;get framesSkipped(){return this.#h}#p;get writable(){return this.#p}#m;#g;constructor({canvas:e}={}){e?this.#l=e:this.#l=w(),this.#p=new s.ho({write:async e=>{switch(e.type){case"configuration":await this.#b(e.data);break;case"data":if(!this.#g)throw Error("Decoder not configured");(await this.#g.promise).feed(e.data.slice().buffer)}}})}async #b(e){if(this.dispose(),this.#g=new i,!this.#m){let e=w(),t={failIfMajorPerformanceCaveat:!0},r=e.getContext("webgl2",t)||e.getContext("webgl",t);this.#m=c.attach(this.#l,{webGL:!!r})}let{encodedWidth:t,encodedHeight:r,croppedWidth:n,croppedHeight:o,cropLeft:s,cropTop:u}=(0,a.Mo)(e);this.#u=n,this.#f=o,this.#c.fire({width:n,height:o});let f=t/2,d=r/2,h=l.format({width:t,height:r,chromaWidth:f,chromaHeight:d,cropLeft:s,cropTop:u,cropWidth:n,cropHeight:o,displayWidth:n,displayHeight:o}),p=await v();this.#g.resolve(p);let m=t*r,g=m+f*d;p.onPictureReady(({data:e})=>{this.#d+=1;let r=new Uint8Array(e),n=l.frame(h,l.lumaPlane(h,r,t,0),l.chromaPlane(h,r,f,m),l.chromaPlane(h,r,f,g));this.#m.drawFrame(n)}),p.feed(e.slice().buffer)}dispose(){this.#g?.promise.then(e=>e.dispose()).catch(y),this.#g=void 0}}},43393(e,t,r){"use strict";r.d(t,{p:()=>U});var n=r(67756),i=r(94093),o=r(58610),a=r(36579);class s{#v;#y;constructor(e){this.#y=e}decode(e){let t;if("configuration"===e.type){this.#v=e.data,this.configure(e.data);return}void 0!==this.#v?((t=new Uint8Array(this.#v.length+e.data.length)).set(this.#v,0),t.set(e.data,this.#v.length),this.#v=void 0):t=e.data,this.#y.decode(new EncodedVideoChunk({type:!1===e.keyframe?"delta":"key",timestamp:0,data:t}))}}function l(e){return e.toString(16).toUpperCase()}function c(e){return e.toString(16).toUpperCase().padStart(2,"0")}function u(e){return e.toString(10).padStart(2,"0")}class f extends s{#y;#w;#x;constructor(e,t,r){super(e),this.#y=e,this.#w=t,this.#x=r}configure(e){let{profileIndex:t,constraintSet:r,levelIndex:n,croppedWidth:i,croppedHeight:o}=(0,a.Mo)(e);this.#w(i,o);let s="avc1."+c(t)+c(r)+c(n);this.#y.configure({codec:s,hardwareAcceleration:this.#x?.hardwareAcceleration??"no-preference",optimizeForLatency:!0})}}function d(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}var h=r(99505);function p(e){switch(e){case 0:case 3:return 1;case 1:case 2:return 2;default:throw Error("Invalid chroma_format_idc")}}function m(e){switch(e){case 0:case 2:case 3:return 1;case 1:return 2;default:throw Error("Invalid chroma_format_idc")}}function g(e){let t=new h.$(e);if(0!==t.next())throw Error("Invalid NALU header");let r=t.read(6);return{nal_unit_type:r,nuh_layer_id:t.read(6),nuh_temporal_id_plus1:t.read(3)}}function b(e){let t,r,n,i,o,a,s,l,c=new h.$(e),u=c.read(4),f=!!c.next(),d=!!c.next(),p=c.read(6),m=c.read(3),g=!!c.next();c.skip(16);let b=w(c,!0,m),v=!!c.next(),y=[],x=[],A=[];for(let e=v?0:m;e<=m;e+=1)y[e]=c.decodeExponentialGolombNumber(),x[e]=c.decodeExponentialGolombNumber(),A[e]=c.decodeExponentialGolombNumber();let E=c.read(6),_=c.decodeExponentialGolombNumber(),$=[];for(let e=1;e<=_;e+=1){$[e]=[];for(let t=0;t<=E;t+=1)$[e][t]=!!c.next()}let k=!!c.next();if(k){t=c.read(32),r=c.read(32),(n=!!c.next())&&(i=c.decodeExponentialGolombNumber()),o=c.decodeExponentialGolombNumber(),a=[],s=[!0],l=[];for(let e=0;e<o;e+=1)a[e]=c.decodeExponentialGolombNumber(),e>0&&(s[e]=!!c.next()),l[e]=S(c,s[e],m)}return{vps_video_parameter_set_id:u,vps_base_layer_internal_flag:f,vps_base_layer_available_flag:d,vps_max_layers_minus1:p,vps_max_sub_layers_minus1:m,vps_temporal_id_nesting_flag:g,profileTierLevel:b,vps_sub_layer_ordering_info_present_flag:v,vps_max_dec_pic_buffering_minus1:y,vps_max_num_reorder_pics:x,vps_max_latency_increase_plus1:A,vps_max_layer_id:E,vps_num_layer_sets_minus1:_,layer_id_included_flag:$,vps_timing_info_present_flag:k,vps_num_units_in_tick:t,vps_time_scale:r,vps_poc_proportional_to_timing_flag:n,vps_num_ticks_poc_diff_one_minus1:i,vps_num_hrd_parameters:o,hrd_layer_set_idx:a,cprms_present_flag:s,hrdParameters:l,vps_extension_flag:!!c.next()}}function v(e){let t,r,n,i,o,a,s,l,c,u,f,d,p,m,g,b,v,y,E,S,$,k,C,I,R=new h.$(e),j=R.read(4),T=R.read(3),N=!!R.next(),P=w(R,!0,T),B=R.decodeExponentialGolombNumber(),z=R.decodeExponentialGolombNumber();3===z&&(t=!!R.next());let L=R.decodeExponentialGolombNumber(),D=R.decodeExponentialGolombNumber(),F=!!R.next();F&&(r=R.decodeExponentialGolombNumber(),n=R.decodeExponentialGolombNumber(),i=R.decodeExponentialGolombNumber(),o=R.decodeExponentialGolombNumber());let H=R.decodeExponentialGolombNumber(),U=R.decodeExponentialGolombNumber(),q=R.decodeExponentialGolombNumber(),W=[],V=[],K=[],G=!!R.next();for(let e=G?0:T;e<=T;e+=1)W[e]=R.decodeExponentialGolombNumber(),V[e]=R.decodeExponentialGolombNumber(),K[e]=R.decodeExponentialGolombNumber();let X=R.decodeExponentialGolombNumber(),Z=R.decodeExponentialGolombNumber(),Y=R.decodeExponentialGolombNumber(),J=R.decodeExponentialGolombNumber(),Q=R.decodeExponentialGolombNumber(),ee=R.decodeExponentialGolombNumber(),et=!!R.next();et&&(a=!!R.next())&&(s=x(R));let er=!!R.next(),en=!!R.next(),ei=!!R.next();ei&&(l=R.read(4),c=R.read(4),u=R.decodeExponentialGolombNumber(),f=R.decodeExponentialGolombNumber(),d=!!R.next());let eo=R.decodeExponentialGolombNumber(),ea=[];for(let e=0;e<eo;e+=1)ea[e]=A(R,e,eo,ea);let es=!!R.next();if(es){p=R.decodeExponentialGolombNumber(),m=[],g=[];for(let e=0;e<p;e+=1)m[e]=R.read(q+4),g[e]=!!R.next()}let el=!!R.next(),ec=!!R.next(),eu=!!R.next();eu&&(b=_(R,T));let ef=!!R.next();if(ef&&(v=!!R.next(),y=!!R.next(),E=!!R.next(),S=!!R.next(),$=R.read(4)),v||(y&&(k=O(R)),E&&(C=M(R)),S))throw Error("Not implemented");if($){I=[];let e=0;for(;!R.ended;)I[e]=!!R.next(),e+=1}return{sps_video_parameter_set_id:j,sps_max_sub_layers_minus1:T,sps_temporal_id_nesting_flag:N,profileTierLevel:P,sps_seq_parameter_set_id:B,chroma_format_idc:z,separate_colour_plane_flag:t,pic_width_in_luma_samples:L,pic_height_in_luma_samples:D,conformance_window_flag:F,conf_win_left_offset:r,conf_win_right_offset:n,conf_win_top_offset:i,conf_win_bottom_offset:o,bit_depth_luma_minus8:H,bit_depth_chroma_minus8:U,log2_max_pic_order_cnt_lsb_minus4:q,sps_sub_layer_ordering_info_present_flag:G,sps_max_dec_pic_buffering_minus1:W,sps_max_num_reorder_pics:V,sps_max_latency_increase_plus1:K,log2_min_luma_coding_block_size_minus3:X,log2_diff_max_min_luma_coding_block_size:Z,log2_min_luma_transform_block_size_minus2:Y,log2_diff_max_min_luma_transform_block_size:J,max_transform_hierarchy_depth_inter:Q,max_transform_hierarchy_depth_intra:ee,scaling_list_enabled_flag:et,sps_scaling_list_data_present_flag:a,scalingListData:s,amp_enabled_flag:er,sample_adaptive_offset_enabled_flag:en,pcm_enabled_flag:ei,pcm_sample_bit_depth_luma_minus1:l,pcm_sample_bit_depth_chroma_minus1:c,log2_min_pcm_luma_coding_block_size_minus3:u,log2_diff_max_min_pcm_luma_coding_block_size:f,pcm_loop_filter_disabled_flag:d,num_short_term_ref_pic_sets:eo,shortTermRefPicSets:ea,long_term_ref_pics_present_flag:es,num_long_term_ref_pics_sps:p,lt_ref_pic_poc_lsb_sps:m,used_by_curr_pic_lt_sps_flag:g,sps_temporal_mvp_enabled_flag:el,strong_intra_smoothing_enabled_flag:ec,vui_parameters_present_flag:eu,vuiParameters:b,sps_extension_present_flag:ef,sps_range_extension_flag:v,sps_multilayer_extension_flag:y,sps_3d_extension_flag:E,sps_scc_extension_flag:S,sps_extension_4bits:$,spsMultilayerExtension:k,sps3dExtension:C,sps_extension_data_flag:I}}function y(e){let t,r,n,i,o,a,s,l,c,u,f,d=e.read(2),h=!!e.next(),p=e.read(5),m=e.peekBytes(4),g=[];for(let t=0;t<32;t+=1)g[t]=!!e.next();let b=e.peekBytes(6),v=!!e.next(),y=!!e.next(),w=!!e.next(),x=!!e.next();return 4===p||g[4]||5===p||g[5]||6===p||g[6]||7===p||g[7]||8===p||g[8]||9===p||g[9]||10===p||g[10]||11===p||g[11]?(t=!!e.next(),r=!!e.next(),n=!!e.next(),i=!!e.next(),o=!!e.next(),a=!!e.next(),s=!!e.next(),l=!!e.next(),c=!!e.next(),5===p||g[5]||9===p||g[9]||10===p||g[10]||11===p||g[11]?(u=!!e.next(),e.skip(33)):e.skip(34)):2===p||g[2]?(e.skip(7),l=!!e.next(),e.skip(35)):e.skip(43),1===p||g[1]||2===p||g[2]||3===p||g[3]||4===p||g[4]||5===p||g[5]||9===p||g[9]||11===p||g[11]?f=!!e.next():e.skip(1),{profile_space:d,tier_flag:h,profile_idc:p,profileCompatibilitySet:m,profile_compatibility_flag:g,constraintSet:b,progressive_source_flag:v,interlaced_source_flag:y,non_packed_constraint_flag:w,frame_only_constraint_flag:x,max_12bit_constraint_flag:t,max_10bit_constraint_flag:r,max_8bit_constraint_flag:n,max_422chroma_constraint_flag:i,max_420chroma_constraint_flag:o,max_monochrome_constraint_flag:a,intra_constraint_flag:s,one_picture_only_constraint_flag:l,lower_bit_rate_constraint_flag:c,max_14bit_constraint_flag:u,inbld_flag:f}}function w(e,t,r){let n;t&&(n=y(e));let i=e.read(8),o=[],a=[];for(let t=0;t<r;t+=1)o[t]=!!e.next(),a[t]=!!e.next();if(r>0)for(let t=r;t<8;t+=1)e.read(2);let s=[],l=[];for(let t=0;t<r;t+=1)o[t]&&(s[t]=y(e)),a[t]&&(l[t]=e.read(8));return{generalProfileTier:n,general_level_idc:i,sub_layer_profile_present_flag:o,sub_layer_level_present_flag:a,subLayerProfileTier:s,sub_layer_level_idc:l}}function x(e){let t=[];for(let r=0;r<4;r+=1){t[r]=[];for(let n=0;n<6;n+=3===r?3:1)if(e.next()){let i=8,o=Math.min(64,1<<4+(r<<1));r>1&&(i=e.decodeExponentialGolombNumber()+8),t[r][n]=[];for(let a=0;a<o;a+=1)i=(i+e.decodeExponentialGolombNumber()+256)%256,t[r][n][a]=i}else e.decodeExponentialGolombNumber()}return t}function A(e,t,r,n){let i=!1;0!==t&&(i=!!e.next());let o=0,a=!1,s=0,l=[],c=[],u=0,f=0,d=[],h=[],p=[],m=[];if(i){t===r&&(o=e.decodeExponentialGolombNumber()),a=!!e.next(),s=e.decodeExponentialGolombNumber();let i=n[t-(o+1)],g=i.num_negative_pics+i.num_positive_pics;for(let t=0;t<=g;t+=1)l[t]=!!e.next(),l[t]?c[t]=!0:c[t]=!!e.next();let b=(1-2*Number(a))*(s+1),v=[],y=[],w=[],x=[],A=0;for(let e=0;e<i.num_negative_pics;e+=1)A-=i.delta_poc_s0_minus1[e]+1,v[e]=A;A=0;for(let e=0;e<i.num_positive_pics;e+=1)A+=i.delta_poc_s1_minus1[e]+1,y[e]=A;let E=0;if(i.num_positive_pics>0)for(let e=i.num_positive_pics-1;e>=0;e-=1)(A=y[e]+b)<0&&c[i.num_negative_pics+e]&&(w[E]=A,h[E]=l[i.num_negative_pics+e],E+=1);b<0&&c[g]&&(w[E]=b,h[E]=l[g],E+=1);for(let e=0;e<i.num_negative_pics;e+=1)(A=v[e]+b)<0&&c[e]&&(w[E]=A,h[E]=l[e],E+=1);u=E;let _=0;for(E=0;E<u;E+=1){let e=w[E];d[E]=-(e-_-1),_=e}if(E=0,i.num_negative_pics>0)for(let e=i.num_negative_pics-1;e>=0;e-=1)(A=v[e]+b)>0&&c[e]&&(x[E]=A,m[E]=l[e],E+=1);b>0&&c[g]&&(x[E]=b,m[E]=l[g],E+=1);for(let e=0;e<i.num_positive_pics;e+=1)(A=y[e]+b)>0&&c[i.num_negative_pics+e]&&(x[E]=A,m[E]=l[i.num_negative_pics+e],E+=1);for(f=E,_=0,E=0;E<f;E+=1){let e=x[E];p[E]=e-_-1,_=e}}else{u=e.decodeExponentialGolombNumber(),f=e.decodeExponentialGolombNumber();for(let t=0;t<u;t+=1)d[t]=e.decodeExponentialGolombNumber(),h[t]=!!e.next();for(let t=0;t<f;t+=1)p[t]=e.decodeExponentialGolombNumber(),m[t]=!!e.next()}return{stRpsIdx:t,num_short_term_ref_pic_sets:r,inter_ref_pic_set_prediction_flag:i,delta_idx_minus1:o,delta_rps_sign:a,abs_delta_rps_minus1:s,used_by_curr_pic_flag:l,use_delta_flag:c,num_negative_pics:u,num_positive_pics:f,delta_poc_s0_minus1:d,used_by_curr_pic_s0_flag:h,delta_poc_s1_minus1:p,used_by_curr_pic_s1_flag:m}}let E=255;function _(e,t){let r,n,i,o,a,s,l,c,u,f,d,h,p,m,g,b,v,y,w,x,A,_,$,k,C,O,M,I,R,j,T=!!e.next();T&&(r=e.read(8))===E&&(n=e.read(16),i=e.read(16));let N=!!e.next();N&&(o=!!e.next());let P=!!e.next();P&&(a=e.read(3),s=!!e.next(),(l=!!e.next())&&(c=e.read(8),u=e.read(8),f=e.read(8)));let B=!!e.next();B&&(d=e.decodeExponentialGolombNumber(),h=e.decodeExponentialGolombNumber());let z=!!e.next(),L=!!e.next(),D=!!e.next(),F=!!e.next();F&&(p=e.decodeExponentialGolombNumber(),m=e.decodeExponentialGolombNumber(),g=e.decodeExponentialGolombNumber(),b=e.decodeExponentialGolombNumber());let H=!!e.next();H&&(v=e.read(32),y=e.read(32),(w=!!e.next())&&(x=e.decodeExponentialGolombNumber()),(A=!!e.next())&&(_=S(e,!0,t)));let U=!!e.next();return U&&($=!!e.next(),k=!!e.next(),C=!!e.next(),O=e.decodeExponentialGolombNumber(),M=e.decodeExponentialGolombNumber(),I=e.decodeExponentialGolombNumber(),R=e.decodeExponentialGolombNumber(),j=e.decodeExponentialGolombNumber()),{aspect_ratio_info_present_flag:T,aspect_ratio_idc:r,sar_width:n,sar_height:i,overscan_info_present_flag:N,overscan_appropriate_flag:o,video_signal_type_present_flag:P,video_format:a,video_full_range_flag:s,colour_description_present_flag:l,colour_primaries:c,transfer_characteristics:u,matrix_coeffs:f,chroma_loc_info_present_flag:B,chroma_sample_loc_type_top_field:d,chroma_sample_loc_type_bottom_field:h,neutral_chroma_indication_flag:z,field_seq_flag:L,frame_field_info_present_flag:D,default_display_window_flag:F,def_disp_win_left_offset:p,def_disp_win_right_offset:m,def_disp_win_top_offset:g,def_disp_win_bottom_offset:b,vui_timing_info_present_flag:H,vui_num_units_in_tick:v,vui_time_scale:y,vui_poc_proportional_to_timing_flag:w,vui_num_ticks_poc_diff_one_minus1:x,vui_hrd_parameters_present_flag:A,vui_hrd_parameters:_,bitstream_restriction_flag:U,tiles_fixed_structure_flag:$,motion_vectors_over_pic_boundaries_flag:k,restricted_ref_pic_lists_flag:C,min_spatial_segmentation_idc:O,max_bytes_per_pic_denom:M,max_bits_per_min_cu_denom:I,log2_max_mv_length_horizontal:R,log2_max_mv_length_vertical:j}}function S(e,t,r){let n,i,o,a,s,l,c,u,f,d,h,p,m;t&&(n=!!e.next(),i=!!e.next(),(n||i)&&((o=!!e.next())&&(a=e.read(8),s=e.read(5),l=!!e.next(),c=e.read(5)),u=e.read(4),f=e.read(4),o&&(d=e.read(4)),h=e.read(5),p=e.read(5),m=e.read(5)));let g=[],b=[],v=[],y=[],w=[],x=[],A=[];for(let t=0;t<=r;t+=1)g[t]=!!e.next(),g[t]||(b[t]=!!e.next()),b[t]?v[t]=e.decodeExponentialGolombNumber():y[t]=!!e.next(),y[t]||(w[t]=e.decodeExponentialGolombNumber()),n&&(x[t]=$(e,t,k(w[t]))),i&&(A[t]=$(e,t,k(w[t])));return{nal_hrd_parameters_present_flag:n,vcl_hrd_parameters_present_flag:i,sub_pic_hrd_params_present_flag:o,tick_divisor_minus2:a,du_cpb_removal_delay_increment_length_minus1:s,sub_pic_cpb_params_in_pic_timing_sei_flag:l,dpb_output_delay_du_length_minus1:c,bit_rate_scale:u,cpb_size_scale:f,cpb_size_du_scale:d,initial_cpb_removal_delay_length_minus1:h,au_cpb_removal_delay_length_minus1:p,dpb_output_delay_length_minus1:m,fixed_pic_rate_general_flag:g,fixed_pic_rate_within_cvs_flag:b,elemental_duration_in_tc_minus1:v,low_delay_hrd_flag:y,cpb_cnt_minus1:w,nalHrdParameters:x,vclHrdParameters:A}}function $(e,t,r){let n=[],i=[],o=[],a=[],s=[];for(let o=0;o<r;o+=1)n[o]=e.decodeExponentialGolombNumber(),i[o]=e.decodeExponentialGolombNumber(),t>0&&(s[o]=!!e.next());return{bit_rate_value_minus1:n,cpb_size_value_minus1:i,cpb_size_du_value_minus1:o,bit_rate_du_value_minus1:a,cbr_flag:s}}function k(e){return e+1}function C(e){let t,r,n,i=0;for(let o of(0,h.N)(e)){let e=g(o),a={...e,data:o,rbsp:o.subarray(2)};switch(e.nal_unit_type){case 32:t=a;break;case 33:r=a;break;case 34:n=a;break;default:continue}if(3===(i+=1))return{videoParameterSet:t,sequenceParameterSet:r,pictureParameterSet:n}}throw Error("Invalid data")}function O(e){return{inter_view_mv_vert_constraint_flag:!!e.next()}}function M(e){let t=[],r=[];t[0]=!!e.next(),r[0]=!!e.next();let n=e.decodeExponentialGolombNumber(),i=!!e.next(),o=!!e.next(),a=!!e.next(),s=!!e.next();t[1]=!!e.next(),r[1]=!!e.next();let l=!!e.next(),c=e.decodeExponentialGolombNumber(),u=!!e.next(),f=!!e.next(),d=!!e.next();return{iv_di_mc_enabled_flag:t,iv_mv_scal_enabled_flag:r,log2_ivmc_sub_pb_size_minus3:n,iv_res_pred_enabled_flag:i,depth_ref_enabled_flag:o,vsp_mc_enabled_flag:a,dbbp_enabled_flag:s,tex_mc_enabled_flag:l,log2_texmc_sub_pb_size_minus3:c,intra_contour_enabled_flag:u,intra_dc_only_wedge_enabled_flag:f,cqt_cu_part_pred_enabled_flag:d,inter_dc_only_enabled_flag:!!e.next(),skip_intra_enabled_flag:!!e.next()}}function I(e){let{videoParameterSet:t,sequenceParameterSet:r,pictureParameterSet:n}=C(e),{profileTierLevel:{generalProfileTier:{profile_space:i,tier_flag:o,profile_idc:a,profileCompatibilitySet:s,constraintSet:l},general_level_idc:c}}=b(t.rbsp),{chroma_format_idc:u,pic_width_in_luma_samples:f,pic_height_in_luma_samples:d,conf_win_left_offset:h=0,conf_win_right_offset:g=0,conf_win_top_offset:y=0,conf_win_bottom_offset:w=0}=v(r.rbsp),x=p(u),A=m(u),E=f-x*(h+g),_=d-A*(y+w);return{videoParameterSet:t,sequenceParameterSet:r,pictureParameterSet:n,generalProfileSpace:i,generalProfileIndex:a,generalProfileCompatibilitySet:s,generalTierFlag:o,generalLevelIndex:c,generalConstraintSet:l,encodedWidth:f,encodedHeight:d,cropLeft:h,cropRight:g,cropTop:y,cropBottom:w,croppedWidth:E,croppedHeight:_}}class R extends s{#y;#w;#x;constructor(e,t,r){super(e),this.#y=e,this.#w=t,this.#x=r}configure(e){let{generalProfileSpace:t,generalProfileIndex:r,generalProfileCompatibilitySet:n,generalTierFlag:i,generalLevelIndex:o,generalConstraintSet:a,croppedWidth:s,croppedHeight:c}=I(e);this.#w(s,c);let u=["hev1",["","A","B","C"][t]+r.toString(),l(d(n,0)),(i?"H":"L")+o.toString(),...Array.from(a,l)].join(".");this.#y.configure({codec:u,codedWidth:s,codedHeight:c,hardwareAcceleration:this.#x?.hardwareAcceleration??"no-preference",optimizeForLatency:!0})}}class j{#A;#E;#_=0;#S=7;get byteAligned(){return 7===this.#S}get ended(){return this.#_>=this.#A.length}constructor(e){this.#A=e,this.#E=e[0]}f1(){let e=this.#E>>this.#S;return this.#S-=1,this.#S<0&&(this.#_+=1,this.#S=7,this.#E=this.#A[this.#_]),1&e}f(e){let t=0;for(;e>0;e-=1)t<<=1,t|=this.f1();return t}skip(e){if(e<=this.#S+1){this.#_+=1,this.#S=7,this.#E=this.#A[this.#_];return}e-=this.#S+1,this.#_+=1;let t=e/8|0;t>0&&(this.#_+=t,e-=8*t),this.#S=7-e,this.#E=this.#A[this.#_]}readBytes(e){if(!this.byteAligned)throw Error("Bytes must be byte-aligned");let t=this.#A.subarray(this.#_,this.#_+e);return this.#_+=e,this.#E=this.#A[this.#_],t}getPosition(){return[this.#_,this.#S]}setPosition([e,t]){this.#_=e,this.#S=t,this.#E=this.#A[e]}}let T={SequenceHeader:1,TemporalDelimiter:2,FrameHeader:3,TileGroup:4,Metadata:5,Frame:6,RedundantFrameHeader:7,TileList:8,Padding:15},N={Bt709:1,Unspecified:2,Bt470M:4,Bt470BG:5,Bt601:6,Smpte240:7,GenericFilm:8,Bt2020:9,Xyz:10,Smpte431:11,Smpte432:12,Ebu3213:22},P={Bt709:1,Unspecified:2,Bt470M:4,Bt470BG:5,Bt601:6,Smpte240:7,Linear:8,Log100:9,Log100Sqrt10:10,Iec61966:11,Bt1361:12,Srgb:13,Bt2020Ten:14,Bt2020Twelve:15,Smpte2084:16,Smpte428:17,Hlg:18},B={Identity:0,Bt709:1,Unspecified:2,Fcc:4,Bt470BG:5,Bt601:6,Smpte240:7,YCgCo:8,Bt2020Ncl:9,Bt2020Cl:10,Smpte2085:11,ChromatNcl:12,ChromatCl:13,ICtCp:14};class z extends j{static ObuType=T;static ColorPrimaries=N;static TransferCharacteristics=P;static MatrixCoefficients=B;#$=0;uvlc(){let e=0;for(;!this.f1();)e+=1;return e>=32?0x100000000-1:this.f(e)+(1<<e>>>0)-1}leb128(){if(!this.byteAligned)throw Error("LEB128 must be byte-aligned");let e=0n;this.#$=0;for(let t=0n;t<8n;t+=1n){let r=this.f(8);if(e|=BigInt(127&r)<<7n*t,this.#$+=1,(128&r)==0)break}return e}*annexBBitstream(){for(;!this.ended;){let e=this.leb128();yield*this.temporalUnit(e)}}*temporalUnit(e){for(;e>0;){let t=this.leb128();e-=BigInt(this.#$),yield*this.frameUnit(t),e-=t}}*frameUnit(e){for(;e>0;){let t=this.leb128();e-=BigInt(this.#$);let r=this.openBitstreamUnit(t);r&&(yield r),e-=t}}#k=0;openBitstreamUnit(e){let t,r,n=this.obuHeader();if(n.obu_has_size_field)t=this.leb128();else if(void 0!==e)t=e-1n-(n.obu_extension_flag?1n:0n);else throw Error("obu_has_size_field must be true");let i=this.getPosition();if(n.obu_type!==z.ObuType.SequenceHeader&&n.obu_type!==z.ObuType.TemporalDelimiter&&0!==this.#k&&n.obu_extension_header){let e=!!(this.#k&1<<n.obu_extension_header.temporal_id),r=!!(this.#k&1<<n.obu_extension_header.spatial_id+8);if(!e||!r)return void this.skip(Number(t))}n.obu_type===z.ObuType.SequenceHeader&&(r=this.sequenceHeaderObu());let o=this.getPosition(),a=(o[0]-i[0])*8+(i[1]-o[1]);return t>0&&this.skip(8*Number(t)-a),{obu_header:n,obu_size:t,sequence_header_obu:r}}obuHeader(){let e;if(this.f1())throw Error("Invalid data");let t=this.f(4),r=!!this.f1(),n=!!this.f1();return this.f1(),r&&(e=this.obuExtensionHeader()),{obu_type:t,obu_extension_flag:r,obu_has_size_field:n,obu_extension_header:e}}obuExtensionHeader(){let e=this.f(3),t=this.f(2);return this.skip(3),{temporal_id:e,spatial_id:t}}static SelectScreenContentTools=2;static SelectIntegerMv=2;sequenceHeaderObu(){let e,t,r,n,i,o,a,s=this.f(3),l=!!this.f1(),c=!!this.f1(),u=!1,f=!1,d=!1,h=0,p=[],m=[],g=[],b=[],v=[];if(c)p[0]=0,m[0]=this.f(5),g[0]=0,b[0]=!1,v[0]=!1;else{(u=!!this.f1())&&(e=this.timingInfo(),(f=!!this.f1())&&(t=this.decoderModelInfo(),r=[])),(d=!!this.f1())&&(n=[]),h=this.f(5);for(let e=0;e<=h;e+=1)p[e]=this.f(12),m[e]=this.f(5),m[e]>7?g[e]=this.f1():g[e]=0,f?(b[e]=!!this.f1(),b[e]&&(r[e]=this.operatingParametersInfo(t))):b[e]=!1,d&&(v[e]=!!this.f1(),v[e]&&(n[e]=this.f(4)))}let y=this.chooseOperatingPoint();this.#k=p[y];let w=this.f(4),x=this.f(4),A=this.f(w+1),E=this.f(x+1),_=!1;!c&&(_=!!this.f1())&&(i=this.f(4),o=this.f(3));let S=!!this.f1(),$=!!this.f1(),k=!!this.f1(),C=!1,O=!1,M=!1,I=!1,R=!1,j=!1,T=!1,N=!1,P=z.SelectScreenContentTools,B=!1,L=z.SelectIntegerMv;!c&&(C=!!this.f1(),O=!!this.f1(),M=!!this.f1(),I=!!this.f1(),(R=!!this.f1())&&(j=!!this.f1(),T=!!this.f1()),(N=!!this.f1())||(P=this.f1()),P>0&&((B=!!this.f1())||(L=this.f1())),R&&(a=this.f(3)));let D=!!this.f1(),F=!!this.f1(),H=!!this.f1(),U=this.colorConfig(s);return{seq_profile:s,still_picture:l,reduced_still_picture_header:c,timing_info_present_flag:u,timing_info:e,decoder_model_info_present_flag:f,decoder_model_info:t,initial_display_delay_present_flag:d,initial_display_delay_minus_1:n,operating_points_cnt_minus_1:h,operating_point_idc:p,seq_level_idx:m,seq_tier:g,decoder_model_present_for_this_op:b,operating_parameters_info:r,initial_display_delay_present_for_this_op:v,frame_width_bits_minus_1:w,frame_height_bits_minus_1:x,max_frame_width_minus_1:A,max_frame_height_minus_1:E,frame_id_numbers_present_flag:_,delta_frame_id_length_minus_2:i,additional_frame_id_length_minus_1:o,use_128x128_superblock:S,enable_filter_intra:$,enable_intra_edge_filter:k,enable_interintra_compound:C,enable_masked_compound:O,enable_warped_motion:M,enable_dual_filter:I,enable_order_hint:R,enable_jnt_comp:j,enable_ref_frame_mvs:T,seq_choose_screen_content_tools:N,seq_force_screen_content_tools:P,seq_choose_integer_mv:B,seq_force_integer_mv:L,order_hint_bits_minus_1:a,enable_superres:D,enable_cdef:F,enable_restoration:H,color_config:U,film_grain_params_present:!!this.f1()}}searchSequenceHeaderObu(){for(;!this.ended;){let e=this.openBitstreamUnit();if(e&&e.sequence_header_obu)return e.sequence_header_obu}}timingInfo(){let e,t=this.f(32),r=this.f(32),n=!!this.f1();return n&&(e=this.uvlc()),{num_units_in_display_tick:t,time_scale:r,equal_picture_interval:n,num_ticks_per_picture_minus_1:e}}decoderModelInfo(){let e=this.f(5),t=this.f(32);return{buffer_delay_length_minus_1:e,num_units_in_decoding_tick:t,buffer_removal_time_length_minus_1:this.f(5),frame_presentation_time_length_minus_1:this.f(5)}}operatingParametersInfo(e){let t=e.buffer_delay_length_minus_1+1,r=this.f(t);return{decoder_buffer_delay:r,encoder_buffer_delay:this.f(t),low_delay_mode_flag:!!this.f1()}}chooseOperatingPoint(){return 0}colorConfig(e){let t,r,n=!!this.f1(),i=!1,o=8;2===e&&n?o=(i=!!this.f1())?12:10:e<=2&&(o=n?10:8);let a=!1;1===e&&(a=!!this.f1());let s=!!this.f1(),l=z.ColorPrimaries.Unspecified,c=z.TransferCharacteristics.Unspecified,u=z.MatrixCoefficients.Unspecified;s&&(l=this.f(8),c=this.f(8),u=this.f(8));let f=!1,d=0,h=!1;if(a)f=!!this.f1(),t=!0,r=!0;else{if(l===z.ColorPrimaries.Bt709&&c===z.TransferCharacteristics.Srgb&&u===z.MatrixCoefficients.Identity)f=!0,t=!1,r=!1;else{switch(f=!!this.f1(),e){case 0:t=!0,r=!0;break;case 1:t=!1,r=!1;break;default:12==o?r=!!(t=!!this.f1())&&!!this.f1():(t=!0,r=!1)}t&&r&&(d=this.f(2))}h=!!this.f1()}return{high_bitdepth:n,twelve_bit:i,BitDepth:o,mono_chrome:a,color_description_present_flag:s,color_primaries:l,transfer_characteristics:c,matrix_coefficients:u,color_range:f,subsampling_x:t,subsampling_y:r,chroma_sample_position:d,separate_uv_delta_q:h}}}class L{#y;#w;#x;constructor(e,t,r){this.#y=e,this.#w=t,this.#x=r}#b(e){let t,r,n,i,o=new z(e).searchSequenceHeaderObu();if(!o)return;let{seq_profile:a,seq_level_idx:[s=0],max_frame_width_minus_1:l,max_frame_height_minus_1:c,color_config:{BitDepth:f,mono_chrome:d,subsampling_x:h,subsampling_y:p,chroma_sample_position:m,color_description_present_flag:g}}=o;g?{color_primaries:t,transfer_characteristics:r,matrix_coefficients:n,color_range:i}=o.color_config:(t=z.ColorPrimaries.Bt709,r=z.TransferCharacteristics.Bt709,n=z.MatrixCoefficients.Bt709,i=!1);let b=l+1,v=c+1;this.#w(b,v);let y=["av01",a.toString(16),u(s)+(o.seq_tier[0]?"H":"M"),u(f),d?"1":"0",(h?"1":"0")+(p?"1":"0")+m.toString(),u(t),u(r),u(n),i?"1":"0"].join(".");this.#y.configure({codec:y,hardwareAcceleration:this.#x?.hardwareAcceleration??"no-preference",optimizeForLatency:!0})}decode(e){"configuration"!==e.type&&(this.#b(e.data),this.#y.decode(new EncodedVideoChunk({type:!1===e.keyframe?"delta":"key",timestamp:0,data:e.data})))}}class D{#C;#O=new ReadableStream({start:e=>{this.#C=e},pull:e=>{e.enqueue(this.#g())}},{highWaterMark:0});#M=this.#O.getReader();#g;#I=0;#R;constructor(e,t){this.#g=e,this.#R=t}async borrow(){return(await this.#M.read()).value}return(e){this.#I<this.#R&&(this.#C.enqueue(e),this.#I+=1)}}class F{#j;#T;constructor(){"u">typeof OffscreenCanvas?this.#j=new OffscreenCanvas(1,1):(this.#j=document.createElement("canvas"),this.#j.width=1,this.#j.height=1),this.#T=this.#j.getContext("bitmaprenderer",{alpha:!1})}async capture(e){this.#j.width=e.displayWidth,this.#j.height=e.displayHeight;let t=await createImageBitmap(e);return(this.#T.transferFromImageBitmap(t),this.#j instanceof OffscreenCanvas)?await this.#j.convertToBlob({type:"image/png"}):new Promise((e,t)=>{this.#j.toBlob(r=>{r?e(r):t(Error("Failed to convert canvas to blob"))},"image/png")})}}let H=new D(()=>new F,4);class U{static get isSupported(){return void 0!==globalThis.VideoDecoder}static capabilities={h264:{},h265:{},av1:{}};#N;get codec(){return this.#N}#l;get renderer(){return this.#l}#x;#P;#p;get writable(){return this.#p}#B;#C;#z=0;#L=0;get framesRendered(){return this.#L}#D=0;get framesSkipped(){return this.#D}#c=new n.O;get sizeChanged(){return this.#c.event}#u=0;get width(){return this.#u}#f=0;get height(){return this.#f}#y;#F=!1;#H;#U;#q=0;constructor({codec:e,renderer:t,...r}){switch(this.#N=e,this.#l=t,this.#x=r,this.#y=new VideoDecoder({output:e=>{if(this.#U?.close(),this.#U=e.clone(),this.#F){this.#H&&(this.#H.close(),this.#D+=1),this.#H=e;return}this.#W(e)},error:e=>{this.#V(e)}}),this.#N){case i.n.H264:this.#P=new f(this.#y,this.#w,this.#x);break;case i.n.H265:this.#P=new R(this.#y,this.#w,this.#x);break;case i.n.AV1:this.#P=new L(this.#y,this.#w,this.#x);break;default:throw Error(`Unsupported codec: ${this.#N}`)}this.#p=new o.ho({start:e=>{this.#B?e.error(this.#B):this.#C=e},write:e=>{this.#P.decode(e)}}),this.#K()}#V(e){if(this.#C)try{this.#C.error(e)}catch{}else this.#B=e}async #W(e){try{if(this.#F=!0,this.#w(e.displayWidth,e.displayHeight),await this.#l.draw(e),this.#z+=1,e.close(),this.#H){let e=this.#H;this.#H=void 0,await this.#W(e)}this.#F=!1}catch(e){this.#V(e)}}#w=(e,t)=>{this.#l.setSize(e,t),this.#u=e,this.#f=t,this.#c.fire({width:e,height:t})};#K=()=>{this.#z>0&&(this.#L+=1,this.#D+=this.#z-1,this.#z=0),this.#q=requestAnimationFrame(this.#K)};async snapshot(){let e=this.#U;if(!e)return;let t=await H.borrow(),r=await t.capture(e);return H.return(t),r}dispose(){cancelAnimationFrame(this.#q),"closed"!==this.#y.state&&this.#y.close(),this.#H?.close(),this.#U?.close()}}},34452(e,t,r){"use strict";r.d(t,{x:()=>i});var n=r(91719);class i extends n.e{#T;constructor(e){super(e),this.#T=this.canvas.getContext("bitmaprenderer",{alpha:!1})}async draw(e){let t=await createImageBitmap(e);this.#T.transferFromImageBitmap(t)}}},91719(e,t,r){"use strict";r.d(t,{e:()=>i});var n=r(19767);class i{#j;get canvas(){return this.#j}constructor(e){e?this.#j=e:this.#j=(0,n.N)()}setSize(e,t){(this.#j.width!==e||this.#j.height!==t)&&(this.#j.width=e,this.#j.height=t)}}},96418(e,t,r){"use strict";r.d(t,{p:()=>s});var n=r(19767),i=r(91719);let o=Promise.resolve();function a(e,t){let r={powerPreference:"low-power",alpha:!1,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!!t};return e.getContext("webgl2",r)||e.getContext("webgl",r)}class s extends i.e{static vertexShaderSource=`
263
+ attribute vec2 xy;
264
+
265
+ varying highp vec2 uv;
266
+
267
+ void main(void) {
268
+ gl_Position = vec4(xy, 0.0, 1.0);
269
+ // Map vertex coordinates (-1 to +1) to UV coordinates (0 to 1).
270
+ // UV coordinates are Y-flipped relative to vertex coordinates.
271
+ uv = vec2((1.0 + xy.x) / 2.0, (1.0 - xy.y) / 2.0);
272
+ }
273
+ `;static fragmentShaderSource=`
274
+ varying highp vec2 uv;
275
+
276
+ uniform sampler2D texture;
277
+
278
+ void main(void) {
279
+ gl_FragColor = texture2D(texture, uv);
280
+ }
281
+ `;static get isSupported(){return!!a((0,n.N)())}#T;constructor(e,t){super(e);const r=a(this.canvas,t);if(!r)throw Error("WebGL not supported");this.#T=r;const n=r.createShader(r.VERTEX_SHADER);if(r.shaderSource(n,s.vertexShaderSource),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw Error(r.getShaderInfoLog(n));const i=r.createShader(r.FRAGMENT_SHADER);if(r.shaderSource(i,s.fragmentShaderSource),r.compileShader(i),!r.getShaderParameter(i,r.COMPILE_STATUS))throw Error(r.getShaderInfoLog(i));const o=r.createProgram();if(r.attachShader(o,n),r.attachShader(o,i),r.linkProgram(o),!r.getProgramParameter(o,r.LINK_STATUS))throw Error(r.getProgramInfoLog(o));r.useProgram(o);const l=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,l),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW);const c=r.getAttribLocation(o,"xy");r.vertexAttribPointer(c,2,r.FLOAT,!1,0,0),r.enableVertexAttribArray(c);const u=r.createTexture();r.bindTexture(r.TEXTURE_2D,u),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE)}draw(e){let t=this.#T;return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),t.viewport(0,0,t.drawingBufferWidth,t.drawingBufferHeight),t.drawArrays(t.TRIANGLE_FAN,0,4),o}}},94093(e,t,r){"use strict";r.d(t,{n:()=>n});let n={H264:0x68323634,H265:0x68323635,AV1:6387249}},36579(e,t,r){"use strict";r.d(t,{Mo:()=>l,a7:()=>o,vF:()=>i});var n=r(99505);let i={Baseline:1,Main:2,Extended:4,High:8,High10:16,High422:32,High444:64,ConstrainedBaseline:65536,ConstrainedHigh:524288},o={Level1:1,Level1b:2,Level11:4,Level12:8,Level13:16,Level2:32,Level21:64,Level22:128,Level3:256,Level31:512,Level32:1024,Level4:2048,Level41:4096,Level42:8192,Level5:16384,Level51:32768,Level52:65536,Level6:131072,Level61:262144,Level62:524288};function a(e){let t,r,i,o,a=new n.$(e);if(0!==a.next())throw Error("Invalid data");let s=a.read(2);if(7!==a.read(5)||0===s)throw Error("Invalid data");let l=a.read(8),c=a.peek(8),u=!!a.next(),f=!!a.next(),d=!!a.next(),h=!!a.next(),p=!!a.next(),m=!!a.next();if(0!==a.read(2))throw Error("Invalid data");let g=a.read(8),b=a.decodeExponentialGolombNumber();if(100===l||110===l||122===l||244===l||44===l||83===l||86===l||118===l||128===l||138===l||139===l||134===l){let e=a.decodeExponentialGolombNumber();if(3===e&&a.next(),a.decodeExponentialGolombNumber(),a.decodeExponentialGolombNumber(),a.next(),a.next()){let t=[];for(let r=0;r<(3!==e?8:12);r+=1)t[r]=!!a.next(),t[r]}}a.decodeExponentialGolombNumber();let v=a.decodeExponentialGolombNumber();if(0===v)a.decodeExponentialGolombNumber();else if(1===v){a.next(),a.decodeExponentialGolombNumber(),a.decodeExponentialGolombNumber();let e=a.decodeExponentialGolombNumber(),t=[];for(let r=0;r<e;r+=1)t[r]=a.decodeExponentialGolombNumber()}a.decodeExponentialGolombNumber(),a.next();let y=a.decodeExponentialGolombNumber(),w=a.decodeExponentialGolombNumber(),x=a.next();x||a.next(),a.next();let A=!!a.next();return A?(t=a.decodeExponentialGolombNumber(),r=a.decodeExponentialGolombNumber(),i=a.decodeExponentialGolombNumber(),o=a.decodeExponentialGolombNumber()):(t=0,r=0,i=0,o=0),a.next(),{profile_idc:l,constraint_set:c,constraint_set0_flag:u,constraint_set1_flag:f,constraint_set2_flag:d,constraint_set3_flag:h,constraint_set4_flag:p,constraint_set5_flag:m,level_idc:g,seq_parameter_set_id:b,pic_width_in_mbs_minus1:y,pic_height_in_map_units_minus1:w,frame_mbs_only_flag:x,frame_cropping_flag:A,frame_crop_left_offset:t,frame_crop_right_offset:r,frame_crop_top_offset:i,frame_crop_bottom_offset:o}}function s(e){let t,r;for(let i of(0,n.N)(e))switch(31&i[0]){case 7:if(t=i,r)return{sequenceParameterSet:t,pictureParameterSet:r};break;case 8:if(r=i,t)return{sequenceParameterSet:t,pictureParameterSet:r}}throw Error("Invalid data")}function l(e){let{sequenceParameterSet:t,pictureParameterSet:r}=s(e),{profile_idc:n,constraint_set:i,level_idc:o,pic_width_in_mbs_minus1:l,pic_height_in_map_units_minus1:c,frame_mbs_only_flag:u,frame_crop_left_offset:f,frame_crop_right_offset:d,frame_crop_top_offset:h,frame_crop_bottom_offset:p}=a(t),m=(l+1)*16,g=(c+1)*(2-u)*16,b=2*f,v=2*d,y=2*h,w=2*p,x=m-b-v,A=g-y-w;return{pictureParameterSet:r,sequenceParameterSet:t,profileIndex:n,constraintSet:i,levelIndex:o,encodedWidth:m,encodedHeight:g,cropLeft:b,cropRight:v,cropTop:y,cropBottom:w,croppedWidth:x,croppedHeight:A}}},99505(e,t,r){"use strict";function*n(e){let t=-1,r=0,n=!1;for(let i=0;i<e.length;i+=1){let o=e[i];if(n){if(o>3)throw Error("Invalid data");n=!1;continue}if(0===o){r+=1;continue}let a=r;if(r=0,-1===t){if(a>=2&&1===o){t=i+1;continue}throw Error("Invalid data")}if(!(a<2)){if(1===o){yield e.subarray(t,i-a),t=i+1;continue}if(a>2)throw Error("Invalid data");switch(o){case 2:throw Error("Invalid data");case 3:n=!0}}}if(n)throw Error("Invalid data");yield e.subarray(t,e.length)}r.d(t,{$:()=>i,N:()=>n});class i{#G;#X;#Z;#Y=0;#_=0;#S=7;#E=0;get byteLength(){return this.#X}get stopBitIndex(){return this.#Z}get bytePosition(){return this.#_}get bitPosition(){return this.#S}get ended(){return this.#_>=this.#X&&this.#S<=this.#Z}constructor(e){this.#G=e;for(let t=e.length-1;t>=0;t-=1){if(0===this.#G[t])continue;const r=e[t];for(let e=0;e<8;e+=1)if((r>>e&1)==1){this.#X=t,this.#Z=e,this.#J();return}}throw Error("Stop bit not found")}#J(){if(this.#E=this.#G[this.#_],2===this.#Y&&3===this.#E){this.#Y=0,this.#_+=1,this.#J();return}0===this.#E?this.#Y+=1:this.#Y=0}next(){if(this.ended)throw Error("Bit index out of bounds");let e=this.#E>>this.#S&1;return this.#S-=1,this.#S<0&&(this.#_+=1,this.#S=7,this.#J()),e}read(e){if(e>32)throw Error("Read length too large");let t=0;for(let r=0;r<e;r+=1)t=t<<1|this.next();return t}#Q(){if(this.#_>=this.#X&&this.#S<this.#Z)throw Error("Bit index out of bounds")}skip(e){if(e<=this.#S+1){this.#S-=e,this.#Q();return}for(e-=this.#S+1,this.#_+=1,this.#S=7,this.#J(),this.#Q();e>=8;e-=8)this.#_+=1,this.#J(),this.#Q();this.#S=7-e,this.#Q()}decodeExponentialGolombNumber(){let e=0;for(;0===this.next();)e+=1;return 0===e?0:(1<<e|this.read(e))-1}#ee(){return{zeroCount:this.#Y,bytePosition:this.#_,bitPosition:this.#S,byte:this.#E}}#et(e){this.#Y=e.zeroCount,this.#_=e.bytePosition,this.#S=e.bitPosition,this.#E=e.byte}peek(e){let t=this.#ee(),r=this.read(e);return this.#et(t),r}readBytes(e){let t=new Uint8Array(e);for(let r=0;r<e;r+=1)t[r]=this.read(8);return t}peekBytes(e){let t=this.#ee(),r=this.readBytes(e);return this.#et(t),r}}},58610(e,t,r){"use strict";r.d(t,{ho:()=>i});let{AbortController:n}=globalThis,{WritableStream:i,TransformStream:o}=globalThis},57648(e,t,r){"use strict";r.d(t,{w:()=>d});var n=r(24336),i=r(27555),o=r(77403);function a(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new i.T0('Unsupported "alg" value for a JSON Web Key Set')}}function s(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(l)}function l(e){return(0,o.A)(e)}function c(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class u{constructor(e){if(this._cached=new WeakMap,!s(e))throw new i.Dm("JSON Web Key Set malformed");this._jwks=c(e)}async getKey(e,t){let{alg:r,kid:n}={...e,...t?.header},o=a(r),s=this._jwks.keys.filter(e=>{let t=o===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t&&"EdDSA"===r&&(t="Ed25519"===e.crv||"Ed448"===e.crv),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv}return t}),{0:l,length:c}=s;if(0===c)throw new i.BT;if(1!==c){let e=new i.$4,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of s)try{yield await f(t,e,r)}catch{}},e}return f(this._cached,l,r)}}async function f(e,t,r){let o=e.get(t)||e.set(t,{}).get(t);if(void 0===o[r]){let e=await (0,n.Og)({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new i.Dm("JSON Web Key Set members must be public keys");o[r]=e}return o[r]}function d(e){let t=new u(e),r=async(e,r)=>t.getKey(e,r);return Object.defineProperties(r,{jwks:{value:()=>c(t._jwks),enumerable:!0,configurable:!1,writable:!1}}),r}},87501(e,t,r){"use strict";let n,i;r.d(t,{V:()=>ei});var o=r(3798),a=r(27555);function s(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new a.T0(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}var l=r(2349);let c=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function u(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function f(e,t){return e.name===t}function d(e){return parseInt(e.name.slice(4),10)}function h(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}function p(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}function m(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!f(e.algorithm,"HMAC"))throw u("HMAC");let r=parseInt(t.slice(2),10);if(d(e.algorithm.hash)!==r)throw u(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!f(e.algorithm,"RSASSA-PKCS1-v1_5"))throw u("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10);if(d(e.algorithm.hash)!==r)throw u(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!f(e.algorithm,"RSA-PSS"))throw u("RSA-PSS");let r=parseInt(t.slice(2),10);if(d(e.algorithm.hash)!==r)throw u(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw u("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!f(e.algorithm,"ECDSA"))throw u("ECDSA");let r=h(t);if(e.algorithm.namedCurve!==r)throw u(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}p(e,r)}function g(e,t,...r){if((r=r.filter(Boolean)).length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}let b=(e,...t)=>g("Key must be ",e,...t);function v(e,t,...r){return g(`Key for the ${e} algorithm must be `,t,...r)}let y=e=>!!(0,l.R)(e)||e?.[Symbol.toStringTag]==="KeyObject",w=["CryptoKey"];var x=r(77403);function A(e){return(0,x.A)(e)&&"string"==typeof e.kty}function E(e){return"oct"!==e.kty&&"string"==typeof e.d}function _(e){return"oct"!==e.kty&&void 0===e.d}function S(e){return A(e)&&"oct"===e.kty&&"string"==typeof e.k}var $=r(31224);let k=e=>(0,o.D4)(e),C=e=>e?.[Symbol.toStringTag]==="KeyObject",O=async(e,t,r,n,i=!1)=>{let o=e.get(t);if(o?.[n])return o[n];let a=await (0,$.A)({...r,alg:n});return i&&Object.freeze(t),o?o[n]=a:e.set(t,{[n]:a}),a},M=(e,t)=>{if(C(e)){let r=e.export({format:"jwk"});return(delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k)?k(r.k):(i||(i=new WeakMap),O(i,e,r,t))}return A(e)?e.k?(0,o.D4)(e.k):(i||(i=new WeakMap),O(i,e,e,t,!0)):e},I=(e,t)=>{if(C(e)){let r=e.export({format:"jwk"});return r.k?k(r.k):(n||(n=new WeakMap),O(n,e,r,t))}return A(e)?e.k?(0,o.D4)(e.k):(n||(n=new WeakMap),O(n,e,e,t,!0)):e};async function R(e,t,r){if("sign"===r&&(t=await I(t,e)),"verify"===r&&(t=await M(t,e)),(0,l.R)(t))return m(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(b(t,...w));return l.A.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(b(t,...w,"Uint8Array","JSON Web Key"))}let j=async(e,t,r,n)=>{let i=await R(e,t,"verify");c(e,i);let o=s(e,i.algorithm);try{return await l.A.subtle.verify(o,i,r,n)}catch{return!1}};var T=r(24769);let N=(...e)=>{let t,r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0},P=e=>e?.[Symbol.toStringTag],B=(e,t,r)=>{if(void 0!==t.use&&"sig"!==t.use)throw TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&t.key_ops.includes?.(r)!==!0)throw TypeError(`Invalid key for this operation, when present its key_ops must include ${r}`);if(void 0!==t.alg&&t.alg!==e)throw TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},z=(e,t,r,n)=>{if(!(t instanceof Uint8Array)){if(n&&A(t)){if(S(t)&&B(e,t,r))return;throw TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!y(t))throw TypeError(v(e,t,...w,"Uint8Array",n?"JSON Web Key":null));if("secret"!==t.type)throw TypeError(`${P(t)} instances for symmetric algorithms must be of type "secret"`)}},L=(e,t,r,n)=>{if(n&&A(t))switch(r){case"sign":if(E(t)&&B(e,t,r))return;throw TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(_(t)&&B(e,t,r))return;throw TypeError("JSON Web Key for this operation be a public JWK")}if(!y(t))throw TypeError(v(e,t,...w,n?"JSON Web Key":null));if("secret"===t.type)throw TypeError(`${P(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${P(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${P(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${P(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${P(t)} instances for asymmetric algorithm encryption must be of type "public"`)};function D(e,t,r,n){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?z(t,r,n,e):L(t,r,n,e)}D.bind(void 0,!1);let F=D.bind(void 0,!0),H=function(e,t,r,n,i){let o;if(void 0!==i.crit&&n?.crit===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let s of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(s))throw new a.T0(`Extension Header Parameter "${s}" is not recognized`);if(void 0===i[s])throw new e(`Extension Header Parameter "${s}" is missing`);if(o.get(s)&&void 0===n[s])throw new e(`Extension Header Parameter "${s}" MUST be integrity protected`)}return new Set(n.crit)},U=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};var q=r(24336);async function W(e,t,r){let n,i;if(!(0,x.A)(e))throw new a.Ye("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new a.Ye('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new a.Ye("JWS Protected Header incorrect type");if(void 0===e.payload)throw new a.Ye("JWS Payload missing");if("string"!=typeof e.signature)throw new a.Ye("JWS Signature missing or incorrect type");if(void 0!==e.header&&!(0,x.A)(e.header))throw new a.Ye("JWS Unprotected Header incorrect type");let s={};if(e.protected)try{let t=(0,o.D4)(e.protected);s=JSON.parse(T.D0.decode(t))}catch{throw new a.Ye("JWS Protected Header is invalid")}if(!N(s,e.header))throw new a.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let l={...s,...e.header},c=H(a.Ye,new Map([["b64",!0]]),r?.crit,s,l),u=!0;if(c.has("b64")&&"boolean"!=typeof(u=s.b64))throw new a.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:f}=l;if("string"!=typeof f||!f)throw new a.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');let d=r&&U("algorithms",r.algorithms);if(d&&!d.has(f))throw new a.Rb('"alg" (Algorithm) Header Parameter value not allowed');if(u){if("string"!=typeof e.payload)throw new a.Ye("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new a.Ye("JWS Payload must be a string or an Uint8Array instance");let h=!1;"function"==typeof t?(t=await t(s,e),h=!0,F(f,t,"verify"),A(t)&&(t=await (0,q.Og)(t,f))):F(f,t,"verify");let p=(0,T.xW)(T.Rd.encode(e.protected??""),T.Rd.encode("."),"string"==typeof e.payload?T.Rd.encode(e.payload):e.payload);try{n=(0,o.D4)(e.signature)}catch{throw new a.Ye("Failed to base64url decode the signature")}if(!await j(f,t,n,p))throw new a.h2;if(u)try{i=(0,o.D4)(e.payload)}catch{throw new a.Ye("Failed to base64url decode the payload")}else i="string"==typeof e.payload?T.Rd.encode(e.payload):e.payload;let m={payload:i};return(void 0!==e.protected&&(m.protectedHeader=s),void 0!==e.header&&(m.unprotectedHeader=e.header),h)?{...m,key:t}:m}async function V(e,t,r){if(e instanceof Uint8Array&&(e=T.D0.decode(e)),"string"!=typeof e)throw new a.Ye("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:s}=e.split(".");if(3!==s)throw new a.Ye("Invalid Compact JWS");let l=await W({payload:i,protected:n,signature:o},t,r),c={payload:l.payload,protectedHeader:l.protectedHeader};return"function"==typeof t?{...c,key:l.key}:c}let K=e=>Math.floor(e.getTime()/1e3),G=60,X=3600,Z=86400,Y=604800,J=0x1e187e0,Q=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,ee=e=>{let t,r=Q.exec(e);if(!r||r[4]&&r[1])throw TypeError("Invalid time period format");let n=parseFloat(r[2]);switch(r[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":t=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":t=Math.round(n*G);break;case"hour":case"hours":case"hr":case"hrs":case"h":t=Math.round(n*X);break;case"day":case"days":case"d":t=Math.round(n*Z);break;case"week":case"weeks":case"w":t=Math.round(n*Y);break;default:t=Math.round(n*J)}return"-"===r[1]||"ago"===r[4]?-t:t},et=e=>e.toLowerCase().replace(/^application\//,""),er=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e))),en=(e,t,r={})=>{let n,i;try{n=JSON.parse(T.D0.decode(t))}catch{}if(!(0,x.A)(n))throw new a.Dp("JWT Claims Set must be a top-level JSON object");let{typ:o}=r;if(o&&("string"!=typeof e.typ||et(e.typ)!==et(o)))throw new a.ie('unexpected "typ" JWT header value',n,"typ","check_failed");let{requiredClaims:s=[],issuer:l,subject:c,audience:u,maxTokenAge:f}=r,d=[...s];for(let e of(void 0!==f&&d.push("iat"),void 0!==u&&d.push("aud"),void 0!==c&&d.push("sub"),void 0!==l&&d.push("iss"),new Set(d.reverse())))if(!(e in n))throw new a.ie(`missing required "${e}" claim`,n,e,"missing");if(l&&!(Array.isArray(l)?l:[l]).includes(n.iss))throw new a.ie('unexpected "iss" claim value',n,"iss","check_failed");if(c&&n.sub!==c)throw new a.ie('unexpected "sub" claim value',n,"sub","check_failed");if(u&&!er(n.aud,"string"==typeof u?[u]:u))throw new a.ie('unexpected "aud" claim value',n,"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=ee(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:h}=r,p=K(h||new Date);if((void 0!==n.iat||f)&&"number"!=typeof n.iat)throw new a.ie('"iat" claim must be a number',n,"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new a.ie('"nbf" claim must be a number',n,"nbf","invalid");if(n.nbf>p+i)throw new a.ie('"nbf" claim timestamp check failed',n,"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new a.ie('"exp" claim must be a number',n,"exp","invalid");if(n.exp<=p-i)throw new a.n('"exp" claim timestamp check failed',n,"exp","check_failed")}if(f){let e=p-n.iat;if(e-i>("number"==typeof f?f:ee(f)))throw new a.n('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed");if(e<0-i)throw new a.ie('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}return n};async function ei(e,t,r){let n=await V(e,t,r);if(n.protectedHeader.crit?.includes("b64")&&!1===n.protectedHeader.b64)throw new a.Dp("JWTs MUST NOT use unencoded payload");let i={payload:en(n.protectedHeader,n.payload,r),protectedHeader:n.protectedHeader};return"function"==typeof t?{...i,key:n.key}:i}},24336(e,t,r){"use strict";r.d(t,{Og:()=>s});var n=r(3798),i=r(31224),o=r(27555),a=r(77403);async function s(e,t){if(!(0,a.A)(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');return(0,n.D4)(e.k);case"RSA":if(void 0!==e.oth)throw new o.T0('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return(0,i.A)({...e,alg:t});default:throw new o.T0('Unsupported "kty" (Key Type) Parameter value')}}},24769(e,t,r){"use strict";r.d(t,{D0:()=>i,Rd:()=>n,xW:()=>o});let n=new TextEncoder,i=new TextDecoder;function o(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}},77403(e,t,r){"use strict";function n(e){return"object"==typeof e&&null!==e}function i(e){if(!n(e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}r.d(t,{A:()=>i})},3798(e,t,r){"use strict";r.d(t,{D4:()=>o});var n=r(24769);let i=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},o=e=>{let t=e;t instanceof Uint8Array&&(t=n.D0.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return i(t)}catch{throw TypeError("The input to be decoded is not correctly encoded.")}}},31224(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(2349),i=r(27555);function o(e){let t,r;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new i.T0('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new i.T0('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new i.T0('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new i.T0('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}let a=async e=>{if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=o(e),i=[t,e.ext??!1,e.key_ops??r],a={...e};return delete a.alg,delete a.use,n.A.subtle.importKey("jwk",a,...i)}},2349(e,t,r){"use strict";r.d(t,{A:()=>n,R:()=>i});let n=crypto,i=e=>e instanceof CryptoKey},27555(e,t,r){"use strict";r.d(t,{$4:()=>m,BT:()=>p,Dm:()=>h,Dp:()=>f,Rb:()=>a,T0:()=>s,Ye:()=>u,h2:()=>b,ie:()=>i,n:()=>o});class n extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}n.code="ERR_JOSE_GENERIC";class i extends n{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=n,this.payload=t}}i.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class o extends n{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=n,this.payload=t}}o.code="ERR_JWT_EXPIRED";class a extends n{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}a.code="ERR_JOSE_ALG_NOT_ALLOWED";class s extends n{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}s.code="ERR_JOSE_NOT_SUPPORTED";class l extends n{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}l.code="ERR_JWE_DECRYPTION_FAILED";class c extends n{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}c.code="ERR_JWE_INVALID";class u extends n{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}u.code="ERR_JWS_INVALID";class f extends n{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}f.code="ERR_JWT_INVALID";class d extends n{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}d.code="ERR_JWK_INVALID";class h extends n{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}h.code="ERR_JWKS_INVALID";class p extends n{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}p.code="ERR_JWKS_NO_MATCHING_KEY";class m extends n{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}m.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class g extends n{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}g.code="ERR_JWKS_TIMEOUT";class b extends n{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}b.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"},14439(e,t,r){"use strict";r.d(t,{Ay:()=>eE});var n,i,o,a,s,l,c,u,f,d,h,p,m,g,b,v,y,w,x,A,E,_,S,$,k,C,O,M,I,R,j,T,N,P,B,z,L,D,F,H,U,q,W,V,K,G,X={},Z={},Y={};function J(){if(n)return Y;function e(e){return null==e}function t(e){return"object"==typeof e&&null!==e}function r(t){return Array.isArray(t)?t:e(t)?[]:[t]}function i(e,t){if(t){let r=Object.keys(t);for(let n=0,i=r.length;n<i;n+=1){let i=r[n];e[i]=t[i]}}return e}function o(e,t){let r="";for(let n=0;n<t;n+=1)r+=e;return r}function a(e){return 0===e&&-1/0==1/e}return n=1,Y.isNothing=e,Y.isObject=t,Y.toArray=r,Y.repeat=o,Y.isNegativeZero=a,Y.extend=i,Y}function Q(){if(o)return i;function e(e,t){let r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function t(t,r){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=r,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}return o=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},i=t}function ee(){if(s)return a;s=1;let e=J();function t(e,t,r,n,i){let o="",a="",s=Math.floor(i/2)-1;return n-t>s&&(t=n-s+(o=" ... ").length),r-n>s&&(r=n+s-(a=" ...").length),{str:o+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+o.length}}function r(t,r){return e.repeat(" ",r-t.length)+t}return a=function(n,i){let o;if(i=Object.create(i||null),!n.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,s=[0],l=[],c=-1;for(;o=a.exec(n.buffer);)l.push(o.index),s.push(o.index+o[0].length),n.position<=o.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);let u="",f=Math.min(n.line+i.linesAfter,l.length).toString().length,d=i.maxLength-(i.indent+f+3);for(let o=1;o<=i.linesBefore&&!(c-o<0);o++){let a=t(n.buffer,s[c-o],l[c-o],n.position-(s[c]-s[c-o]),d);u=e.repeat(" ",i.indent)+r((n.line-o+1).toString(),f)+" | "+a.str+"\n"+u}let h=t(n.buffer,s[c],l[c],n.position,d);u+=e.repeat(" ",i.indent)+r((n.line+1).toString(),f)+" | "+h.str+"\n"+e.repeat("-",i.indent+f+3+h.pos)+"^\n";for(let o=1;o<=i.linesAfter&&!(c+o>=l.length);o++){let a=t(n.buffer,s[c+o],l[c+o],n.position-(s[c]-s[c+o]),d);u+=e.repeat(" ",i.indent)+r((n.line+o+1).toString(),f)+" | "+a.str+"\n"}return u.replace(/\n$/,"")}}function et(){if(c)return l;c=1;let e=Q(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(e){let t={};return null!==e&&Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})}),t}return l=function(i,o){if(Object.keys(o=o||{}).forEach(function(r){if(-1===t.indexOf(r))throw new e('Unknown option "'+r+'" is met in definition of "'+i+'" YAML type.')}),this.options=o,this.tag=i,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(e){return e},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=n(o.styleAliases||null),-1===r.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}}function er(){if(f)return u;f=1;let e=Q(),t=et();function r(e,t){let r=[];return e[t].forEach(function(e){let t=r.length;r.forEach(function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)}),r[t]=e}),r}function n(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(t);return e}function i(e){return this.extend(e)}return i.prototype.extend=function(o){let a=[],s=[];if(o instanceof t)s.push(o);else if(Array.isArray(o))s=s.concat(o);else if(o&&(Array.isArray(o.implicit)||Array.isArray(o.explicit)))o.implicit&&(a=a.concat(o.implicit)),o.explicit&&(s=s.concat(o.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");a.forEach(function(r){if(!(r instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(r.loadKind&&"scalar"!==r.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(r.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(r){if(!(r instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let l=Object.create(i.prototype);return l.implicit=(this.implicit||[]).concat(a),l.explicit=(this.explicit||[]).concat(s),l.compiledImplicit=r(l,"implicit"),l.compiledExplicit=r(l,"explicit"),l.compiledTypeMap=n(l.compiledImplicit,l.compiledExplicit),l},u=i}function en(){return h?d:(h=1,d=new(et())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}))}function ei(){return m?p:(m=1,p=new(et())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}))}function eo(){return b?g:(b=1,g=new(et())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}))}function ea(){return y?v:(y=1,v=new(er())({explicit:[en(),ei(),eo()]}))}function es(){if(x)return w;function e(e){if(null===e)return!0;let t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function t(){return null}function r(e){return null===e}return x=1,w=new(et())("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:t,predicate:r,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})}function el(){if(E)return A;function e(e){if(null===e)return!1;let t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function t(e){return"true"===e||"True"===e||"TRUE"===e}function r(e){return"[object Boolean]"===Object.prototype.toString.call(e)}return E=1,A=new(et())("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:t,predicate:r,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})}function ec(){if(S)return _;S=1;let e=J();function t(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e){return e>=48&&e<=55}function n(e){return e>=48&&e<=57}function i(e){if(null===e)return!1;let i=e.length,a=0,s=!1;if(!i)return!1;let l=e[a];if(("-"===l||"+"===l)&&(l=e[++a]),"0"===l){if(a+1===i)return!0;if("b"===(l=e[++a])){for(a++;a<i;a++){if("0"!==(l=e[a])&&"1"!==l)return!1;s=!0}return s&&isFinite(o(e))}if("x"===l){for(a++;a<i;a++){if(!t(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}if("o"===l){for(a++;a<i;a++){if(!r(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}}for(;a<i;a++){if(!n(e.charCodeAt(a)))return!1;s=!0}return!!s&&isFinite(o(e))}function o(e){let t=e,r=1,n=t[0];if(("-"===n||"+"===n)&&("-"===n&&(r=-1),n=(t=t.slice(1))[0]),"0"===t)return 0;if("0"===n){if("b"===t[1])return r*parseInt(t.slice(2),2);if("x"===t[1])return r*parseInt(t.slice(2),16);if("o"===t[1])return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function a(e){return o(e)}function s(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)}return _=new(et())("tag:yaml.org,2002:int",{kind:"scalar",resolve:i,construct:a,predicate:s,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function eu(){if(k)return $;k=1;let e=J(),t=et(),r=RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),n=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=/^[-+]?[0-9]+e/;return $=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!r.test(e)&&(!!isFinite(parseFloat(e,10))||n.test(e))},construct:function(e){let t=e.toLowerCase(),r="-"===t[0]?-1:1;return("+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===r?1/0:-1/0:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,r){if(isNaN(t))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===t)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===t)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";let n=t.toString(10);return i.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})}function ef(){return O?C:(O=1,C=ea().extend({implicit:[es(),el(),ec(),eu()]}))}function ed(){return I?M:(I=1,M=ef())}function eh(){if(j)return R;j=1;let e=et(),t=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return R=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==r.exec(e))},construct:function(e){let n=0,i=null,o=t.exec(e);if(null===o&&(o=r.exec(e)),null===o)throw Error("Date resolve error");let a=+o[1],s=o[2]-1,l=+o[3];if(!o[4])return new Date(Date.UTC(a,s,l));let c=+o[4],u=+o[5],f=+o[6];if(o[7]){for(n=o[7].slice(0,3);n.length<3;)n+="0";n*=1}o[9]&&(i=(60*o[10]+ +(o[11]||0))*6e4,"-"===o[9]&&(i=-i));let d=new Date(Date.UTC(a,s,l,c,u,f,n));return i&&d.setTime(d.getTime()-i),d},instanceOf:Date,represent:function(e){return e.toISOString()}})}function ep(){if(N)return T;function e(e){return"<<"===e||null===e}return N=1,T=new(et())("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e})}function em(){if(B)return P;B=1;let e=et(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return P=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;let r=0,n=e.length,i=t;for(let t=0;t<n;t++){let n=i.indexOf(e.charAt(t));if(!(n>64)){if(n<0)return!1;r+=6}}return r%8==0},construct:function(e){let r=e.replace(/[\r\n=]/g,""),n=r.length,i=t,o=0,a=[];for(let e=0;e<n;e++)e%4==0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(r.charAt(e));let s=n%4*6;return 0===s?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===s?(a.push(o>>10&255),a.push(o>>2&255)):12===s&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){let r="",n=0,i=e.length,o=t;for(let t=0;t<i;t++)t%3==0&&t&&(r+=o[n>>18&63],r+=o[n>>12&63],r+=o[n>>6&63],r+=o[63&n]),n=(n<<8)+e[t];let a=i%3;return 0===a?(r+=o[n>>18&63],r+=o[n>>12&63],r+=o[n>>6&63],r+=o[63&n]):2===a?(r+=o[n>>10&63],r+=o[n>>4&63],r+=o[n<<2&63],r+=o[64]):1===a&&(r+=o[n>>2&63],r+=o[n<<4&63],r+=o[64],r+=o[64]),r}})}function eg(){if(L)return z;L=1;let e=et(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return z=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;let n={},i=e;for(let e=0,o=i.length;e<o;e+=1){let o,a=i[e],s=!1;if("[object Object]"!==r.call(a))return!1;for(o in a)if(t.call(a,o))if(s)return!1;else s=!0;if(!s||t.call(n,o))return!1;Object.defineProperty(n,o,{value:!0})}return!0},construct:function(e){return null!==e?e:[]}})}function eb(){if(F)return D;F=1;let e=et(),t=Object.prototype.toString;return D=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;let r=e,n=Array(r.length);for(let e=0,i=r.length;e<i;e+=1){let i=r[e];if("[object Object]"!==t.call(i))return!1;let o=Object.keys(i);if(1!==o.length)return!1;n[e]=[o[0],i[o[0]]]}return!0},construct:function(e){if(null===e)return[];let t=e,r=Array(t.length);for(let e=0,n=t.length;e<n;e+=1){let n=t[e],i=Object.keys(n);r[e]=[i[0],n[i[0]]]}return r}})}function ev(){if(U)return H;U=1;let e=et(),t=Object.prototype.hasOwnProperty;return H=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;let r=e;for(let e in r)if(t.call(r,e)&&null!==r[e])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function ey(){return W?q:(W=1,q=ed().extend({implicit:[eh(),ep()],explicit:[em(),eg(),eb(),ev()]}))}function ew(){if(V)return Z;V=1;let e=J(),t=Q(),r=ee(),n=ey(),i=Object.prototype.hasOwnProperty,o=1,a=2,s=3,l=4,c=1,u=2,f=3,d=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,h=/[\x85\u2028\u2029]/,p=/[,\[\]{}]/,m=/^(?:!|!!|![0-9A-Za-z-]+!)$/,g=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function b(e){return Object.prototype.toString.call(e)}function v(e){return 10===e||13===e}function y(e){return 9===e||32===e}function w(e){return 9===e||32===e||10===e||13===e}function x(e){return 44===e||91===e||93===e||123===e||125===e}function A(e){if(e>=48&&e<=57)return e-48;let t=32|e;return t>=97&&t<=102?t-97+10:-1}function E(e){return 120===e?2:117===e?4:8*(85===e)}function _(e){return e>=48&&e<=57?e-48:-1}function S(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1b";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xa0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function $(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function k(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}let C=Array(256),O=Array(256);for(let e=0;e<256;e++)C[e]=+!!S(e),O[e]=S(e);function M(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||n,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:100,this.maxTotalMergeKeys="number"==typeof t.maxTotalMergeKeys?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function I(e,n){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=r(i),new t(n,i)}function R(e,t){throw I(e,t)}function j(e,t){e.onWarning&&e.onWarning.call(null,I(e,t))}function T(e,t,r){let n=e.anchorMapTransactions;if(0!==n.length){let r=n[n.length-1];i.call(r,t)||(r[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=r}function N(e){e.anchorMapTransactions.push(Object.create(null))}function P(e){let t=e.anchorMapTransactions.pop(),r=e.anchorMapTransactions;if(0===r.length)return;let n=r[r.length-1],o=Object.keys(t);for(let e=0,r=o.length;e<r;e+=1){let r=o[e];i.call(n,r)||(n[r]=t[r])}}function B(e){let t=e.anchorMapTransactions.pop(),r=Object.keys(t);for(let n=r.length-1;n>=0;n-=1){let i=t[r[n]];i.existed?e.anchorMap[r[n]]=i.value:delete e.anchorMap[r[n]]}}function z(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function L(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}let D={YAML:function(e,t,r){null!==e.version&&R(e,"duplication of %YAML directive"),1!==r.length&&R(e,"YAML directive accepts exactly one argument");let n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===n&&R(e,"ill-formed argument of the YAML directive");let i=parseInt(n[1],10),o=parseInt(n[2],10);1!==i&&R(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&j(e,"unsupported YAML version of the document")},TAG:function(e,t,r){let n;2!==r.length&&R(e,"TAG directive accepts exactly two arguments");let o=r[0];n=r[1],m.test(o)||R(e,"ill-formed tag handle (first argument) of the TAG directive"),i.call(e.tagMap,o)&&R(e,'there is a previously declared suffix for "'+o+'" tag handle'),g.test(n)||R(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){R(e,"tag prefix is malformed: "+n)}e.tagMap[o]=n}};function F(e,t,r,n){if(t<r){let i=e.input.slice(t,r);if(n)for(let t=0,r=i.length;t<r;t+=1){let r=i.charCodeAt(t);9===r||r>=32&&r<=1114111||R(e,"expected valid JSON character")}else d.test(i)&&R(e,"the stream contains non-printable characters");e.result+=i}}function H(e){e.totalMergeKeys++,-1!==e.maxTotalMergeKeys&&e.totalMergeKeys>e.maxTotalMergeKeys&&R(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function U(t,r,n,o){e.isObject(n)||R(t,"cannot merge mappings; the provided source object is unacceptable"),H(t);let a=Object.keys(n);for(let e=0,s=a.length;e<s;e+=1){let s=a[e];H(t),i.call(r,s)||(k(r,s,n[s]),o[s]=!0)}}function q(e,t,r,n,o,a,s,l,c){if(Array.isArray(o)){o=Array.prototype.slice.call(o);for(let t=0,r=o.length;t<r;t+=1)Array.isArray(o[t])&&R(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===b(o[t])&&(o[t]="[object Object]")}if("object"==typeof o&&"[object Object]"===b(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(a)){a.length>100&&R(e,"abnormal merge sequence size");for(let n=0,i=a.length;n<i;n+=1)U(e,t,a[n],r)}else U(e,t,a,r);else!e.json&&!i.call(r,o)&&i.call(t,o)&&(e.line=s||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,R(e,"duplicated mapping key")),k(t,o,a),delete r[o];return t}function W(e){let t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):R(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function K(e,t,r){let n=0,i=e.input.charCodeAt(e.position);for(;0!==i;){for(;y(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do i=e.input.charCodeAt(++e.position);while(10!==i&&13!==i&&0!==i);if(v(i))for(W(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return -1!==r&&0!==n&&e.lineIndent<r&&j(e,"deficient indentation"),n}function G(e){let t=e.position,r=e.input.charCodeAt(t);return!!((45===r||46===r)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,0===(r=e.input.charCodeAt(t))||w(r)))||!1}function X(t,r){1===r?t.result+=" ":r>1&&(t.result+=e.repeat("\n",r-1))}function Y(e,t,r){let n,i,o,a,s,l,c=e.kind,u=e.result,f=e.input.charCodeAt(e.position);if(w(f)||x(f)||35===f||38===f||42===f||33===f||124===f||62===f||39===f||34===f||37===f||64===f||96===f)return!1;if(63===f||45===f){let t=e.input.charCodeAt(e.position+1);if(w(t)||r&&x(t))return!1}for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==f;){if(58===f){let t=e.input.charCodeAt(e.position+1);if(w(t)||r&&x(t))break}else if(35===f){if(w(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&G(e)||r&&x(f))break;else if(v(f)){if(a=e.line,s=e.lineStart,l=e.lineIndent,K(e,!1,-1),e.lineIndent>=t){o=!0,f=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=s,e.lineIndent=l;break}o&&(F(e,n,i,!1),X(e,e.line-a),n=i=e.position,o=!1),y(f)||(i=e.position+1),f=e.input.charCodeAt(++e.position)}return F(e,n,i,!1),!!e.result||(e.kind=c,e.result=u,!1)}function et(e,t){let r,n,i=e.input.charCodeAt(e.position);if(39!==i)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(i=e.input.charCodeAt(e.position));)if(39===i){if(F(e,r,e.position,!0),39!==(i=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,n=e.position}else v(i)?(F(e,r,n,!0),X(e,K(e,!1,t)),r=n=e.position):e.position===e.lineStart&&G(e)?R(e,"unexpected end of the document within a single quoted scalar"):(e.position++,y(i)||(n=e.position));R(e,"unexpected end of the stream within a single quoted scalar")}function er(e,t){let r,n,i,o=e.input.charCodeAt(e.position);if(34!==o)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(o=e.input.charCodeAt(e.position));)if(34===o)return F(e,r,e.position,!0),e.position++,!0;else if(92===o){if(F(e,r,e.position,!0),v(o=e.input.charCodeAt(++e.position)))K(e,!1,t);else if(o<256&&C[o])e.result+=O[o],e.position++;else if((i=E(o))>0){let t=i,r=0;for(;t>0;t--)(i=A(o=e.input.charCodeAt(++e.position)))>=0?r=(r<<4)+i:R(e,"expected hexadecimal character");e.result+=$(r),e.position++}else R(e,"unknown escape sequence");r=n=e.position}else v(o)?(F(e,r,n,!0),X(e,K(e,!1,t)),r=n=e.position):e.position===e.lineStart&&G(e)?R(e,"unexpected end of the document within a double quoted scalar"):(e.position++,y(o)||(n=e.position));R(e,"unexpected end of the stream within a double quoted scalar")}function en(e,t){let r,n,i,a,s,l,c,u,f,d,h,p=!0,m=e.tag,g=e.anchor,b=Object.create(null),v=e.input.charCodeAt(e.position);if(91===v)s=93,u=!1,a=[];else{if(123!==v)return!1;s=125,u=!0,a={}}for(null!==e.anchor&&T(e,e.anchor,a),v=e.input.charCodeAt(++e.position);0!==v;){if(K(e,!0,t),(v=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=m,e.anchor=g,e.kind=u?"mapping":"sequence",e.result=a,!0;p?44===v&&R(e,"expected the node content, but found ','"):R(e,"missed comma between flow collection entries"),d=f=h=null,l=c=!1,63===v&&w(e.input.charCodeAt(e.position+1))&&(l=c=!0,e.position++,K(e,!0,t)),r=e.line,n=e.lineStart,i=e.position,ef(e,t,o,!1,!0),d=e.tag,f=e.result,K(e,!0,t),v=e.input.charCodeAt(e.position),(c||e.line===r)&&58===v&&(l=!0,v=e.input.charCodeAt(++e.position),K(e,!0,t),ef(e,t,o,!1,!0),h=e.result),u?q(e,a,b,d,f,h,r,n,i):l?a.push(q(e,null,b,d,f,h,r,n,i)):a.push(f),K(e,!0,t),44===(v=e.input.charCodeAt(e.position))?(p=!0,v=e.input.charCodeAt(++e.position)):p=!1}R(e,"unexpected end of the stream within a flow collection")}function ei(t,r){let n,i,o=c,a=!1,s=!1,l=r,d=0,h=!1,p=t.input.charCodeAt(t.position);if(124===p)n=!1;else{if(62!==p)return!1;n=!0}for(t.kind="scalar",t.result="";0!==p;)if(43===(p=t.input.charCodeAt(++t.position))||45===p)c===o?o=43===p?f:u:R(t,"repeat of a chomping mode identifier");else if((i=_(p))>=0)0===i?R(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?R(t,"repeat of an indentation width identifier"):(l=r+i-1,s=!0);else break;if(y(p)){do p=t.input.charCodeAt(++t.position);while(y(p));if(35===p)do p=t.input.charCodeAt(++t.position);while(!v(p)&&0!==p)}for(;0!==p;){for(W(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!s||t.lineIndent<l)&&32===p;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>l&&(l=t.lineIndent),v(p)){d++;continue}if(s||0!==l||R(t,"missing indentation for block scalar"),t.lineIndent<l){o===f?t.result+=e.repeat("\n",a?1+d:d):o===c&&a&&(t.result+="\n");break}n?y(p)?(h=!0,t.result+=e.repeat("\n",a?1+d:d)):h?(h=!1,t.result+=e.repeat("\n",d+1)):0===d?a&&(t.result+=" "):t.result+=e.repeat("\n",d):t.result+=e.repeat("\n",a?1+d:d),a=!0,s=!0,d=0;let r=t.position;for(;!v(p)&&0!==p;)p=t.input.charCodeAt(++t.position);F(t,r,t.position,!1)}return!0}function eo(e,t){let r=e.tag,n=e.anchor,i=[],o=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&T(e,e.anchor,i);let a=e.input.charCodeAt(e.position);for(;0!==a&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation")),45===a&&w(e.input.charCodeAt(e.position+1)));){if(o=!0,e.position++,K(e,!0,-1)&&e.lineIndent<=t){i.push(null),a=e.input.charCodeAt(e.position);continue}let r=e.line;if(ef(e,t,s,!1,!0),i.push(e.result),K(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==a)R(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!o&&(e.tag=r,e.anchor=n,e.kind="sequence",e.result=i,!0)}function ea(e,t,r){let n,i,o,s,c=e.tag,u=e.anchor,f={},d=Object.create(null),h=null,p=null,m=null,g=!1,b=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&T(e,e.anchor,f);let v=e.input.charCodeAt(e.position);for(;0!==v;){g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,R(e,"tab characters must not be used in indentation"));let x=e.input.charCodeAt(e.position+1),A=e.line;if((63===v||58===v)&&w(x))63===v?(g&&(q(e,f,d,h,p,null,i,o,s),h=p=m=null),b=!0,g=!0,n=!0):g?(g=!1,n=!0):R(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=x;else{if(i=e.line,o=e.lineStart,s=e.position,!ef(e,r,a,!1,!0))break;if(e.line===A){for(v=e.input.charCodeAt(e.position);y(v);)v=e.input.charCodeAt(++e.position);if(58===v)w(v=e.input.charCodeAt(++e.position))||R(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(q(e,f,d,h,p,null,i,o,s),h=p=m=null),b=!0,g=!1,n=!1,h=e.tag,p=e.result;else{if(!b)return e.tag=c,e.anchor=u,!0;R(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=c,e.anchor=u,!0;R(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===A||e.lineIndent>t)&&(g&&(i=e.line,o=e.lineStart,s=e.position),ef(e,t,l,!0,n)&&(g?p=e.result:m=e.result),g||(q(e,f,d,h,p,m,i,o,s),h=p=m=null),K(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===A||e.lineIndent>t)&&0!==v)R(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&q(e,f,d,h,p,null,i,o,s),b&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=f),b}function es(e){let t,r,n=!1,o=!1,a=e.input.charCodeAt(e.position);if(33!==a)return!1;null!==e.tag&&R(e,"duplication of a tag property"),60===(a=e.input.charCodeAt(++e.position))?(n=!0,a=e.input.charCodeAt(++e.position)):33===a?(o=!0,t="!!",a=e.input.charCodeAt(++e.position)):t="!";let s=e.position;if(n){do a=e.input.charCodeAt(++e.position);while(0!==a&&62!==a);e.position<e.length?(r=e.input.slice(s,e.position),a=e.input.charCodeAt(++e.position)):R(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!w(a);)33===a&&(o?R(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(s-1,e.position+1),m.test(t)||R(e,"named tag handle cannot contain such characters"),o=!0,s=e.position+1)),a=e.input.charCodeAt(++e.position);r=e.input.slice(s,e.position),p.test(r)&&R(e,"tag suffix cannot contain flow indicator characters")}r&&!g.test(r)&&R(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){R(e,"tag name is malformed: "+r)}return n?e.tag=r:i.call(e.tagMap,t)?e.tag=e.tagMap[t]+r:"!"===t?e.tag="!"+r:"!!"===t?e.tag="tag:yaml.org,2002:"+r:R(e,'undeclared tag handle "'+t+'"'),!0}function el(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&R(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);let r=e.position;for(;0!==t&&!w(t)&&!x(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&R(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function ec(e){let t=e.input.charCodeAt(e.position);if(42!==t)return!1;t=e.input.charCodeAt(++e.position);let r=e.position;for(;0!==t&&!w(t)&&!x(t);)t=e.input.charCodeAt(++e.position);e.position===r&&R(e,"name of an alias node must contain at least one character");let n=e.input.slice(r,e.position);return i.call(e.anchorMap,n)||R(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],K(e,!0,-1),!0}function eu(e,t,r,n){let i=z(e);return(N(e),L(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,ea(e,r,n)&&"mapping"===e.kind)?(P(e),!0):(B(e),L(e,i),!1)}function ef(e,t,r,n,c){let u,f,d,h,p,m=1,g=!1,b=!1,v=null;e.depth>=e.maxDepth&&R(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let y=u=f=l===r||s===r;if(n&&K(e,!0,-1)&&(g=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;;){let r=e.input.charCodeAt(e.position),n=z(e);if(g&&(33===r&&null!==e.tag||38===r&&null!==e.anchor)||!es(e)&&!el(e))break;null===v&&(v=n),K(e,!0,-1)?(g=!0,f=y,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):f=!1}if(f&&(f=g||c),1===m||l===r)if(h=o===r||a===r?t:t+1,p=e.position-e.lineStart,1===m)if(f&&(eo(e,p)||ea(e,p,h))||en(e,h))b=!0;else{let t=e.input.charCodeAt(e.position);null!==v&&y&&!f&&124!==t&&62!==t&&eu(e,v,v.position-v.lineStart,h)||u&&ei(e,h)||et(e,h)||er(e,h)?b=!0:ec(e)?(b=!0,(null!==e.tag||null!==e.anchor)&&R(e,"alias node should not have any properties")):Y(e,h,o===r)&&(b=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&T(e,e.anchor,e.result)}else 0===m&&(b=f&&eo(e,p));if(null===e.tag)null!==e.anchor&&T(e,e.anchor,e.result);else if("?"===e.tag){null!==e.result&&"scalar"!==e.kind&&R(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let t=0,r=e.implicitTypes.length;t<r;t+=1)if((d=e.implicitTypes[t]).resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&T(e,e.anchor,e.result);break}}else if("!"!==e.tag){if(i.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else{d=null;let t=e.typeMap.multi[e.kind||"fallback"];for(let r=0,n=t.length;r<n;r+=1)if(e.tag.slice(0,t[r].tag.length)===t[r].tag){d=t[r];break}}d||R(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&R(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&T(e,e.anchor,e.result)):R(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),e.depth-=1,null!==e.tag||null!==e.anchor||b}function ed(e){let t,r=e.position,n=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(t=e.input.charCodeAt(e.position))&&(K(e,!0,-1),t=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===t);){n=!0,t=e.input.charCodeAt(++e.position);let r=e.position;for(;0!==t&&!w(t);)t=e.input.charCodeAt(++e.position);let o=e.input.slice(r,e.position),a=[];for(o.length<1&&R(e,"directive name must not be less than one character in length");0!==t;){for(;y(t);)t=e.input.charCodeAt(++e.position);if(35===t){do t=e.input.charCodeAt(++e.position);while(0!==t&&!v(t));break}if(v(t))break;for(r=e.position;0!==t&&!w(t);)t=e.input.charCodeAt(++e.position);a.push(e.input.slice(r,e.position))}0!==t&&W(e),i.call(D,o)?D[o](e,o,a):j(e,'unknown document directive "'+o+'"')}if(K(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,K(e,!0,-1)):n&&R(e,"directives end mark is expected"),ef(e,e.lineIndent-1,l,!1,!0),K(e,!0,-1),e.checkLineBreaks&&h.test(e.input.slice(r,e.position))&&j(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&G(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,K(e,!0,-1));return}e.position<e.length-1&&R(e,"end of the stream or a document separator is expected")}function eh(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));let r=new M(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,R(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ed(r);return r.documents}function ep(e,r){let n=eh(e,r);if(0!==n.length){if(1===n.length)return n[0];throw new t("expected a single document in the stream, but found more")}}return Z.loadAll=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);let n=eh(e,r);if("function"!=typeof t)return n;for(let e=0,r=n.length;e<r;e+=1)t(n[e])},Z.load=ep,Z}var ex={};function eA(){if(K)return ex;K=1;let e=J(),t=Q(),r=ey(),n=Object.prototype.toString,i=Object.prototype.hasOwnProperty,o=65279,a=9,s=10,l=13,c=32,u=33,f=34,d=35,h=37,p=38,m=39,g=42,b=44,v=45,y=58,w=61,x=62,A=63,E=64,_=91,S=93,$=96,k=123,C=124,O=125,M={};M[0]="\\0",M[7]="\\a",M[8]="\\b",M[9]="\\t",M[10]="\\n",M[11]="\\v",M[12]="\\f",M[13]="\\r",M[27]="\\e",M[34]='\\"',M[92]="\\\\",M[133]="\\N",M[160]="\\_",M[8232]="\\L",M[8233]="\\P";let I=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],R=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function j(e,t){if(null===t)return{};let r={},n=Object.keys(t);for(let o=0,a=n.length;o<a;o+=1){let a=n[o],s=String(t[a]);"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2));let l=e.compiledTypeMap.fallback[a];l&&i.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[a]=s}return r}function T(r){let n,i,o=r.toString(16).toUpperCase();if(r<=255)n="x",i=2;else if(r<=65535)n="u",i=4;else if(r<=0xffffffff)n="U",i=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+e.repeat("0",i-o.length)+o}let N=1,P=2;function B(t){this.schema=t.schema||r,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=j(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?P:N,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function z(t,r){let n=e.repeat(" ",r),i=0,o="",a=t.length;for(;i<a;){let e,r=t.indexOf("\n",i);-1===r?(e=t.slice(i),i=a):(e=t.slice(i,r+1),i=r+1),e.length&&"\n"!==e&&(o+=n),o+=e}return o}function L(t,r){return"\n"+e.repeat(" ",t.indent*r)}function D(e,t){for(let r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}function F(e){return e===c||e===a}function H(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&e!==o||e>=65536&&e<=1114111}function U(e){return H(e)&&e!==o&&e!==l&&e!==s}function q(e,t,r){let n=U(e),i=n&&!F(e);return(r?n:n&&e!==b&&e!==_&&e!==S&&e!==k&&e!==O)&&e!==d&&!(t===y&&!i)||U(t)&&!F(t)&&e===d||t===y&&i}function W(e){return H(e)&&e!==o&&!F(e)&&e!==v&&e!==A&&e!==y&&e!==b&&e!==_&&e!==S&&e!==k&&e!==O&&e!==d&&e!==p&&e!==g&&e!==u&&e!==C&&e!==w&&e!==x&&e!==m&&e!==f&&e!==h&&e!==E&&e!==$}function V(e){return!F(e)&&e!==y}function G(e,t){let r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function X(e){return/^\n* /.test(e)}let Z=1,Y=2,ee=3,et=4,er=5;function en(e,t,r,n,i,o,a,l){let c,u=0,f=null,d=!1,h=!1,p=-1!==n,m=-1,g=W(G(e,0))&&V(G(e,e.length-1));if(t||a)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!H(u=G(e,c)))return er;g=g&&q(u,f,l),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=G(e,c))===s)d=!0,p&&(h=h||c-m-1>n&&" "!==e[m+1],m=c);else if(!H(u))return er;g=g&&q(u,f,l),f=u}h=h||p&&c-m-1>n&&" "!==e[m+1]}return d||h?r>9&&X(e)?er:a?o===P?er:Y:h?et:ee:!g||a||i(e)?o===P?er:Y:Z}function ei(e,r,n,i,o){e.dump=function(){if(0===r.length)return e.quotingType===P?'""':"''";if(!e.noCompatMode&&(-1!==I.indexOf(r)||R.test(r)))return e.quotingType===P?'"'+r+'"':"'"+r+"'";let a=e.indent*Math.max(1,n),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a);function l(t){return D(e,t)}switch(en(r,i||e.flowLevel>-1&&n>=e.flowLevel,e.indent,s,l,e.quotingType,e.forceQuotes&&!i,o)){case Z:return r;case Y:return"'"+r.replace(/'/g,"''")+"'";case ee:return"|"+eo(r,e.indent)+ea(z(r,a));case et:return">"+eo(r,e.indent)+ea(z(es(r,s),a));case er:return'"'+ec(r)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function eo(e,t){let r=X(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function ea(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function es(e,t){let r,n,i=/(\n+)([^\n]*)/g,o=function(){let r=e.indexOf("\n");return i.lastIndex=r=-1!==r?r:e.length,el(e.slice(0,r),t)}(),a="\n"===e[0]||" "===e[0];for(;n=i.exec(e);){let e=n[1],i=n[2];r=" "===i[0],o+=e+(a||r||""===i?"":"\n")+el(i,t),a=r}return o}function el(e,t){let r,n;if(""===e||" "===e[0])return e;let i=/ [^ ]/g,o=0,a=0,s=0,l="";for(;r=i.exec(e);)(s=r.index)-o>t&&(n=a>o?a:s,l+="\n"+e.slice(o,n),o=n+1),a=s;return l+="\n",e.length-o>t&&a>o?l+=e.slice(o,a)+"\n"+e.slice(a+1):l+=e.slice(o),l.slice(1)}function ec(e){let t="",r=0;for(let n=0;n<e.length;r>=65536?n+=2:n++){let i=M[r=G(e,n)];!i&&H(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||T(r)}return t}function eu(e,t,r){let n="",i=e.tag;for(let i=0,o=r.length;i<o;i+=1){let o=r[i];e.replacer&&(o=e.replacer.call(r,String(i),o)),(em(e,t,o,!1,!1)||void 0===o&&em(e,t,null,!1,!1))&&(""!==n&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump)}e.tag=i,e.dump="["+n+"]"}function ef(e,t,r,n){let i="",o=e.tag;for(let o=0,a=r.length;o<a;o+=1){let a=r[o];e.replacer&&(a=e.replacer.call(r,String(o),a)),(em(e,t+1,a,!0,!0,!1,!0)||void 0===a&&em(e,t+1,null,!0,!0,!1,!0))&&(n&&""===i||(i+=L(e,t)),e.dump&&s===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump)}e.tag=o,e.dump=i||"[]"}function ed(e,t,r){let n="",i=e.tag,o=Object.keys(r);for(let i=0,a=o.length;i<a;i+=1){let a="";""!==n&&(a+=", "),e.condenseFlow&&(a+='"');let s=o[i],l=r[s];e.replacer&&(l=e.replacer.call(r,s,l)),em(e,t,s,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),em(e,t,l,!1,!1)&&(a+=e.dump,n+=a))}e.tag=i,e.dump="{"+n+"}"}function eh(e,r,n,i){let o="",a=e.tag,l=Object.keys(n);if(!0===e.sortKeys)l.sort();else if("function"==typeof e.sortKeys)l.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let t=0,a=l.length;t<a;t+=1){let a="";i&&""===o||(a+=L(e,r));let c=l[t],u=n[c];if(e.replacer&&(u=e.replacer.call(n,c,u)),!em(e,r+1,c,!0,!0,!0))continue;let f=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024;f&&(e.dump&&s===e.dump.charCodeAt(0)?a+="?":a+="? "),a+=e.dump,f&&(a+=L(e,r)),em(e,r+1,u,!0,f)&&(e.dump&&s===e.dump.charCodeAt(0)?a+=":":a+=": ",a+=e.dump,o+=a)}e.tag=a,e.dump=o||"{}"}function ep(e,r,o){let a=o?e.explicitTypes:e.implicitTypes;for(let s=0,l=a.length;s<l;s+=1){let l=a[s];if((l.instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof r&&r instanceof l.instanceOf)&&(!l.predicate||l.predicate(r))){if(o?l.multi&&l.representName?e.tag=l.representName(r):e.tag=l.tag:e.tag="?",l.represent){let o,a=e.styleMap[l.tag]||l.defaultStyle;if("[object Function]"===n.call(l.represent))o=l.represent(r,a);else if(i.call(l.represent,a))o=l.represent[a](r,a);else throw new t("!<"+l.tag+'> tag resolver accepts not "'+a+'" style');e.dump=o}return!0}}return!1}function em(e,r,i,o,a,s,l){let c,u;e.tag=null,e.dump=i,ep(e,i,!1)||ep(e,i,!0);let f=n.call(e.dump),d=o;o&&(o=e.flowLevel<0||e.flowLevel>r);let h="[object Object]"===f||"[object Array]"===f;if(h&&(u=-1!==(c=e.duplicates.indexOf(i))),(null!==e.tag&&"?"!==e.tag||u||2!==e.indent&&r>0)&&(a=!1),u&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(h&&u&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),"[object Object]"===f)o&&0!==Object.keys(e.dump).length?(eh(e,r,e.dump,a),u&&(e.dump="&ref_"+c+e.dump)):(ed(e,r,e.dump),u&&(e.dump="&ref_"+c+" "+e.dump));else if("[object Array]"===f)o&&0!==e.dump.length?(e.noArrayIndent&&!l&&r>0?ef(e,r-1,e.dump,a):ef(e,r,e.dump,a),u&&(e.dump="&ref_"+c+e.dump)):(eu(e,r,e.dump),u&&(e.dump="&ref_"+c+" "+e.dump));else if("[object String]"===f)"?"!==e.tag&&ei(e,e.dump,r,s,d);else{if("[object Undefined]"===f||e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+f)}if(null!==e.tag&&"?"!==e.tag){let t=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21");t="!"===e.tag[0]?"!"+t:"tag:yaml.org,2002:"===t.slice(0,18)?"!!"+t.slice(18):"!<"+t+">",e.dump=t+" "+e.dump}}return!0}function eg(e,t){let r=[],n=[];eb(e,r,n);let i=n.length;for(let e=0;e<i;e+=1)t.duplicates.push(r[n[e]]);t.usedDuplicates=Array(i)}function eb(e,t,r){if(null!==e&&"object"==typeof e){let n=t.indexOf(e);if(-1!==n)-1===r.indexOf(n)&&r.push(n);else if(t.push(e),Array.isArray(e))for(let n=0,i=e.length;n<i;n+=1)eb(e[n],t,r);else{let n=Object.keys(e);for(let i=0,o=n.length;i<o;i+=1)eb(e[n[i]],t,r)}}}return ex.dump=function(e,t){let r=new B(t=t||{});r.noRefs||eg(e,r);let n=e;return(r.replacer&&(n=r.replacer.call({"":n},"",n)),em(r,0,n,!0,!0))?r.dump+"\n":""},ex}let eE=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(G)return X;G=1;let e=ew(),t=eA();function r(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}return X.Type=et(),X.Schema=er(),X.FAILSAFE_SCHEMA=ea(),X.JSON_SCHEMA=ef(),X.CORE_SCHEMA=ed(),X.DEFAULT_SCHEMA=ey(),X.load=e.load,X.loadAll=e.loadAll,X.dump=t.dump,X.YAMLException=Q(),X.types={binary:em(),float:eu(),map:eo(),null:es(),pairs:eb(),set:ev(),timestamp:eh(),bool:el(),int:ec(),merge:ep(),omap:eg(),seq:ei(),str:en()},X.safeLoad=r("safeLoad","load"),X.safeLoadAll=r("safeLoadAll","loadAll"),X.safeDump=r("safeDump","dump"),X}()),{Type:e_,Schema:eS,FAILSAFE_SCHEMA:e$,JSON_SCHEMA:ek,CORE_SCHEMA:eC,DEFAULT_SCHEMA:eO,load:eM,loadAll:eI,dump:eR,YAMLException:ej,types:eT,safeLoad:eN,safeLoadAll:eP,safeDump:eB}=eE},13353(e,t,r){"use strict";r.d(t,{m:()=>G});class n extends Error{constructor(e,t){super(`${e} at position ${t}`),this.position=t}}let i=32,o=10,a=9,s=13,l=160,c=6158,u=8192,f=8203,d=8239,h=8287,p=12288,m=65279;function g(e){return/^[0-9A-Fa-f]$/.test(e)}function b(e){return e>="0"&&e<="9"}function v(e){return e>=" "}function y(e){return",:[]/{}()\n+".includes(e)}function w(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e}function x(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e||e>="0"&&e<="9"}let A=/^(http|https|ftp|mailto|file|data|irc):\/\/$/,E=/^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;function _(e){return",[]/{}\n+".includes(e)}function S(e){return I(e)||$.test(e)}let $=/^[[{\w-]$/;function k(e){return"\n"===e||"\r"===e||" "===e||"\b"===e||"\f"===e}function C(e,t){let r=e.charCodeAt(t);return r===i||r===o||r===a||r===s}function O(e,t){let r=e.charCodeAt(t);return r===i||r===a||r===s}function M(e,t){let r=e.charCodeAt(t);return r===l||r===c||r>=u&&r<=f||r===d||r===h||r===p||r===m}function I(e){return R(e)||T(e)}function R(e){return'"'===e||"“"===e||"”"===e}function j(e){return'"'===e}function T(e){return"'"===e||"‘"===e||"’"===e||"`"===e||"\xb4"===e}function N(e){return"'"===e}function P(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.lastIndexOf(t);return -1!==n?e.substring(0,n)+(r?"":e.substring(n+1)):e}function B(e,t){let r=e.length;if(!C(e,r-1))return e+t;for(;C(e,r-1);)r--;return e.substring(0,r)+t+e.substring(r)}function z(e,t,r){return e.substring(0,t)+e.substring(t+r)}function L(e){return/[,\n][ \t\r]*$/.test(e)}let D={"&quot;":'"',"&amp;":"&","&lt;":"<","&gt;":">","&apos;":"'"};function F(e){if("&"!==e.charAt(0))return null;let t=e.indexOf(";");if(-1===t)return null;let r=e.substring(0,t+1),n=D[r];if(void 0!==n)return{char:n,length:r.length};if("#"===e.charAt(1)){let n=e.substring(2,t),i="x"===n.charAt(0)||"X"===n.charAt(0),o=i?n.substring(1):n;if(o.length>0){let e=Number.parseInt(o,i?16:10);if(!Number.isNaN(e)&&e>=0&&e<=1114111)return{char:String.fromCodePoint(e),length:r.length}}}return null}function H(e){return null!==e&&'"'===e.char}function U(e){return null!==e&&"'"===e.char}function q(e,t){let r=0;for(let n=0;n<e.length;n++)e.charAt(n)===t&&r++;return r}function W(e,t){switch(t){case")":return q(e,"(")>q(e,")");case"]":return q(e,"[")>q(e,"]");case"}":return q(e,"{")>q(e,"}");default:return!1}}let V={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},K={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};function G(e){let t=0,r="";c(["```","[```","{```"]),o()||ea(),c(["```","```]","```}"]);let i=f(",");for(i&&a(),S(e[t])&&L(r)?(i||(r=B(r,",")),D()):i&&(r=P(r,","));"}"===e[t]||"]"===e[t];)t++,a();if(t>=e.length)return r;function o(){a();let e=m()||$()||q()||Z()||Y()||Q(!1)||ee();return a(),e}function a(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],r=t,n=s(e);do(n=l())&&(n=s(e));while(n);return t>r}function s(n){let i=n?C:O,o="";for(;;)if(i(e,t))o+=e[t],t++;else if(M(e,t))o+=" ",t++;else break;return o.length>0&&(r+=o,!0)}function l(){if("/"===e[t]&&"*"===e[t+1]){for(;t<e.length&&!X(e,t);)t++;return t+=2,!0}if("/"===e[t]&&"/"===e[t+1]){for(;t<e.length&&"\n"!==e[t];)t++;return!0}return!1}function c(r){if(u(r)){if(w(e[t]))for(;t<e.length&&x(e[t]);)t++;return a(),!0}return!1}function u(r){for(let n of(s(!0),r)){let r=t+n.length;if(e.slice(t,r)===n)return t=r,!0}return!1}function f(n){return e[t]===n&&(r+=e[t],t++,!0)}function d(r){return e[t]===r&&(t++,!0)}function h(){return d("\\")}function p(){return a(),"."===e[t]&&"."===e[t+1]&&"."===e[t+2]&&(t+=3,a(),d(","),!0)}function m(){if("{"===e[t]){r+="{",t++,a(),d(",")&&a();let n=!0;for(;t<e.length&&"}"!==e[t];){let i;if(n||((i=f(","))||(r=B(r,",")),a()),p(),!(q()||Q(!0))){"}"===e[t]||"{"===e[t]||"]"===e[t]||"["===e[t]||void 0===e[t]?n||(r=P(r,",")):es();break}a();let s=f(":"),l=t>=e.length;s||(S(e[t])||l?r=B(r,":"):el()),o()||(s||l?r+="null":el()),n=!1}return"}"===e[t]?(r+="}",t++):r=B(r,"}"),!0}return!1}function $(){if("["===e[t]){r+="[",t++,a(),d(",")&&a();let n=!0;for(;t<e.length&&"]"!==e[t];){if(!n&&(f(",")||(r=B(r,","))),p(),!o()){n||(r=P(r,","));break}n=!1}return"]"===e[t]?(r+="]",t++):r=B(r,"]"),!0}return!1}function D(){let e=!0,t=!0;for(;t;)e?e=!1:f(",")||(r=B(r,",")),t=o();t||(r=P(r,",")),r=`[
282
+ ${r}
283
+ ]`}function q(){let n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,o="\\"===e[t];o&&(I(e[++t])||eo());let s="&"===e[t]?F(e.slice(t,t+12)):null,l=H(s)||U(s);if(I(e[t])||l){let c=j(e[t])?j:N(e[t])?N:T(e[t])?T:R,u=t,f=r.length,d='"';for(t+=l&&s?s.length:1;;){if(t>=e.length){let i=et(t-1);if(!n&&y(e.charAt(i)))return t=u,r=r.substring(0,f),q(!0);return d=B(d,'"'),r+=d,!0}if(t===i)return d=B(d,'"'),r+=d,!0;let p=l&&"&"===e[t]?F(e.slice(t,t+12)):null;if(p&&s?p.char===s.char:c(e[t])){let i=t,o=d.length;if(d+='"',t+=p?p.length:1,r+=d,a(!1),n||t>=e.length||y(e[t])&&!W(d,e[t])||I(e[t])&&!er(t)||b(e[t]))return G(),!0;"\\"===e[t]&&eo();let s=et(i-1),l=e.charAt(s);if(","===l)return t=u,r=r.substring(0,f),q(!1,s);if(y(l))return t=u,r=r.substring(0,f),q(!0);r=r.substring(0,f),t=i+(p?p.length:1),d=`${d.substring(0,o)}\\${d.substring(o)}`}else if(n&&_(e[t])){if(":"===e[t-1]&&A.test(e.substring(u+1,t+2)))for(;t<e.length&&E.test(e[t]);)d+=e[t],t++;return d=B(d,'"'),r+=d,G(),!0}else if(p){let e=p.char;'"'===e?d+='\\"':k(e)?d+=V[e]:d+=e,t+=p.length}else if("\\"===e[t]){let r=e.charAt(t+1);if(void 0!==K[r])d+=e.slice(t,t+2),t+=2;else if("u"===r){let r=2;for(;r<6&&g(e[t+r]);)r++;6===r?(d+=e.slice(t,t+6),t+=6):t+r>=e.length?t=e.length:ec()}else"\n"===r?d+="\\n":d+=r,t+=2}else{let r=e.charAt(t);'"'===r&&"\\"!==e[t-1]?d+=`\\${r}`:k(r)?d+=V[r]:(v(r)||ei(r),d+=r),t++}o&&h()}}return!1}function G(){let n=!1;for(a();"+"===e[t];){n=!0,t++,a();let e=(r=P(r,'"',!0)).length;r=q()?z(r,e,1):B(r,'"')}return n}function Z(){let n=t,i="",o=!1;for("-"===e[t]&&(i+=e[t],!b(e[++t])&&en()&&(i+="0")),"0"===e[t]&&b(e[t+1])&&(o=!0);b(e[t]);)i+=e[t],t++;if("."===e[t])for((""===i||"-"===i)&&(i+="0"),i+=e[t],b(e[++t])||(i+="0");b(e[t]);)i+=e[t],t++;if(t>n){if("e"===e[t]||"E"===e[t])for("-"===i&&(o=!0),i+=e[t],("-"===e[++t]||"+"===e[t])&&(i+=e[t],t++),b(e[t])||(i+="0");b(e[t]);)i+=e[t],t++;return en()?(r+=o?`"${e.substring(n,t)}"`:i,!0):(t=n,!1)}return!1}function Y(){return J("true","true")||J("false","false")||J("null","null")||J("True","true")||J("False","false")||J("None","null")}function J(n,i){return!(e.slice(t,t+n.length)!==n||x(e[t+n.length]))&&(r+=i,t+=n.length,!0)}function Q(n){let i=t;if(w(e[t])){for(;t<e.length&&x(e[t]);)t++;let r=t;for(;C(e,r);)r++;if("("===e[r])return t=r+1,o(),")"===e[t]&&";"===e[++t]&&t++,!0}for(;t<e.length&&!_(e[t])&&!I(e[t])&&(!n||":"!==e[t]);)t++;if(":"===e[t-1]&&A.test(e.substring(i,t+2)))for(;t<e.length&&E.test(e[t]);)t++;if(t>i){for(;C(e,t-1)&&t>0;)t--;let n=e.slice(i,t);return r+="undefined"===n?"null":JSON.stringify(n),'"'===e[t]&&t++,!0}}function ee(){if("/"===e[t]){let n=t;for(t++;t<e.length&&("/"!==e[t]||"\\"===e[t-1]);)t++;return t++,r+=JSON.stringify(e.substring(n,t)),!0}}function et(t){let r=t;for(;r>0&&C(e,r);)r--;return r}function er(t){let r=t+1;for(;r<e.length&&C(e,r);)r++;return r>=e.length||y(e[r])}function en(){return t>=e.length||y(e[t])||C(e,t)}function ei(e){throw new n(`Invalid character ${JSON.stringify(e)}`,t)}function eo(){throw new n(`Unexpected character ${JSON.stringify(e[t])}`,t)}function ea(){throw new n("Unexpected end of json string",e.length)}function es(){throw new n("Object key expected",t)}function el(){throw new n("Colon expected",t)}function ec(){let r=e.slice(t,t+6);throw new n(`Invalid unicode character "${r}"`,t)}eo()}function X(e,t){return"*"===e[t]&&"/"===e[t+1]}},64728(e,t,r){"use strict";let n,i,o,a;function s(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function l(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}r.d(t,{Ay:()=>n8});let c=function(){let{crypto:e}=globalThis;if(e?.randomUUID)return c=e.randomUUID.bind(e),e.randomUUID();let t=new Uint8Array(1),r=e?()=>e.getRandomValues(t)[0]:()=>255*Math.random()&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^r()&15>>e/4).toString(16))};function u(e){return"object"==typeof e&&null!==e&&("name"in e&&"AbortError"===e.name||"message"in e&&String(e.message).includes("FetchRequestCanceledException"))}let f=e=>{if(e instanceof Error)return e;if("object"==typeof e&&null!==e){try{if("[object Error]"===Object.prototype.toString.call(e)){let t=Error(e.message,e.cause?{cause:e.cause}:{});return e.stack&&(t.stack=e.stack),e.cause&&!t.cause&&(t.cause=e.cause),e.name&&(t.name=e.name),t}}catch{}try{return Error(JSON.stringify(e))}catch{}}return Error(e)};class d extends Error{}class h extends d{constructor(e,t,r,n){super(`${h.makeMessage(e,t,r)}`),this.status=e,this.headers=n,this.requestID=n?.get("x-request-id"),this.error=t;const i=t;this.code=i?.code,this.param=i?.param,this.type=i?.type}static makeMessage(e,t,r){let n=t?.message?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):r;return e&&n?`${e} ${n}`:e?`${e} status code (no body)`:n||"(no status code or body)"}static generate(e,t,r,n){if(!e||!n)return new m({message:r,cause:f(t)});let i=t?.error;return 400===e?new b(e,i,r,n):401===e?new v(e,i,r,n):403===e?new y(e,i,r,n):404===e?new w(e,i,r,n):409===e?new x(e,i,r,n):422===e?new A(e,i,r,n):429===e?new E(e,i,r,n):e>=500?new _(e,i,r,n):new h(e,i,r,n)}}class p extends h{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}}class m extends h{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),t&&(this.cause=t)}}class g extends m{constructor({message:e}={}){super({message:e??"Request timed out."})}}class b extends h{}class v extends h{}class y extends h{}class w extends h{}class x extends h{}class A extends h{}class E extends h{}class _ extends h{}class S extends d{constructor(){super("Could not parse response content as the length limit was reached")}}class $ extends d{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}class k extends Error{constructor(e){super(e)}}let C=/^[a-z][a-z0-9+.-]*:/i,O=e=>C.test(e),M=e=>(M=Array.isArray,M(e)),I=M;function R(e){return"object"!=typeof e?{}:e??{}}function j(e){if(!e)return!0;for(let t in e)return!1;return!0}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function N(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}let P=(e,t)=>{if("number"!=typeof t||!Number.isInteger(t))throw new d(`${e} must be an integer`);if(t<0)throw new d(`${e} must be a positive integer`);return t},B=e=>{try{return JSON.parse(e)}catch(e){return}},z=e=>new Promise(t=>setTimeout(t,e)),L=()=>"u">typeof window&&void 0!==window.document&&"u">typeof navigator;function D(){return"u">typeof Deno&&null!=Deno.build?"deno":"u">typeof EdgeRuntime?"edge":"[object process]"===Object.prototype.toString.call(void 0!==globalThis.process?globalThis.process:0)?"node":"unknown"}let F=()=>{let e=D();if("deno"===e)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":q(Deno.build.os),"X-Stainless-Arch":U(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":"string"==typeof Deno.version?Deno.version:Deno.version?.deno??"unknown"};if("u">typeof EdgeRuntime)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if("node"===e)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":q(globalThis.process.platform??"unknown"),"X-Stainless-Arch":U(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let t=H();return t?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${t.browser}`,"X-Stainless-Runtime-Version":t.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":"6.3.0","X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function H(){if("u"<typeof navigator||!navigator)return null;for(let{key:e,pattern:t}of[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}]){let r=t.exec(navigator.userAgent);if(r){let t=r[1]||0,n=r[2]||0,i=r[3]||0;return{browser:e,version:`${t}.${n}.${i}`}}}return null}let U=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?`other:${e}`:"unknown",q=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?`Other:${e}`:"Unknown",W=()=>n??(n=F());function V(){if("u">typeof fetch)return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new OpenAI({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function K(...e){let t=globalThis.ReadableStream;if(void 0===t)throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new t(...e)}function G(e){let t=Symbol.asyncIterator in e?e[Symbol.asyncIterator]():e[Symbol.iterator]();return K({start(){},async pull(e){let{done:r,value:n}=await t.next();r?e.close():e.enqueue(n)},async cancel(){await t.return?.()}})}function X(e){if(e[Symbol.asyncIterator])return e;let t=e.getReader();return{async next(){try{let e=await t.read();return e?.done&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){let e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function Z(e){if(null===e||"object"!=typeof e)return;if(e[Symbol.asyncIterator])return void await e[Symbol.asyncIterator]().return?.();let t=e.getReader(),r=t.cancel();t.releaseLock(),await r}let Y=({headers:e,body:t})=>({bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(t)}),J="RFC3986",Q=e=>String(e),ee={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:Q},et="RFC1738",er=(e,t)=>(er=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),er(e,t)),en=(()=>{let e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),ei=1024;function eo(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function ea(e,t){if(M(e)){let r=[];for(let n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)}let es={brackets:e=>String(e)+"[]",comma:"comma",indices:(e,t)=>String(e)+"["+t+"]",repeat:e=>String(e)},el=function(e,t){Array.prototype.push.apply(e,M(t)?t:[t])},ec={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:(e,t,r,n,i)=>{if(0===e.length)return e;let o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});let a="";for(let e=0;e<o.length;e+=ei){let t=o.length>=ei?o.slice(e,e+ei):o,r=[];for(let e=0;e<t.length;++e){let n=t.charCodeAt(e);if(45===n||46===n||95===n||126===n||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||i===et&&(40===n||41===n)){r[r.length]=t.charAt(e);continue}if(n<128){r[r.length]=en[n];continue}if(n<2048){r[r.length]=en[192|n>>6]+en[128|63&n];continue}if(n<55296||n>=57344){r[r.length]=en[224|n>>12]+en[128|n>>6&63]+en[128|63&n];continue}e+=1,n=65536+((1023&n)<<10|1023&t.charCodeAt(e)),r[r.length]=en[240|n>>18]+en[128|n>>12&63]+en[128|n>>6&63]+en[128|63&n]}a+=r.join("")}return a},encodeValuesOnly:!1,format:J,formatter:Q,indices:!1,serializeDate:e=>(i??(i=Function.prototype.call.bind(Date.prototype.toISOString)))(e),skipNulls:!1,strictNullHandling:!1};function eu(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}let ef={};function ed(e,t,r,n,i,o,a,s,l,c,u,f,d,h,p,m,g,b){let v,y=e,w=b,x=0,A=!1;for(;void 0!==(w=w.get(ef))&&!A;){let t=w.get(e);if(x+=1,void 0!==t)if(t===x)throw RangeError("Cyclic object value");else A=!0;void 0===w.get(ef)&&(x=0)}if("function"==typeof c?y=c(t,y):y instanceof Date?y=d?.(y):"comma"===r&&M(y)&&(y=ea(y,function(e){return e instanceof Date?d?.(e):e})),null===y){if(o)return l&&!m?l(t,ec.encoder,g,"key",h):t;y=""}if(eu(y)||eo(y)){if(l){let e=m?t:l(t,ec.encoder,g,"key",h);return[p?.(e)+"="+p?.(l(y,ec.encoder,g,"value",h))]}return[p?.(t)+"="+p?.(String(y))]}let E=[];if(void 0===y)return E;if("comma"===r&&M(y))m&&l&&(y=ea(y,l)),v=[{value:y.length>0?y.join(",")||null:void 0}];else if(M(c))v=c;else{let e=Object.keys(y);v=u?e.sort(u):e}let _=s?String(t).replace(/\./g,"%2E"):String(t),S=n&&M(y)&&1===y.length?_+"[]":_;if(i&&M(y)&&0===y.length)return S+"[]";for(let t=0;t<v.length;++t){let w=v[t],A="object"==typeof w&&void 0!==w.value?w.value:y[w];if(a&&null===A)continue;let _=f&&s?w.replace(/\./g,"%2E"):w,$=M(y)?"function"==typeof r?r(S,_):S:S+(f?"."+_:"["+_+"]");b.set(e,x);let k=new WeakMap;k.set(ef,b),el(E,ed(A,$,r,n,i,o,a,s,"comma"===r&&m&&M(y)?null:l,c,u,f,d,h,p,m,g,k))}return E}function eh(e=ec){let t;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");let r=e.charset||ec.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let n=J;if(void 0!==e.format){if(!er(ee,e.format))throw TypeError("Unknown format option provided.");n=e.format}let i=ee[n],o=ec.filter;if(("function"==typeof e.filter||M(e.filter))&&(o=e.filter),t=e.arrayFormat&&e.arrayFormat in es?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":ec.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");let a=void 0===e.allowDots?!0==!!e.encodeDotInKeys||ec.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:ec.addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:ec.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ec.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?ec.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:ec.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:ec.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:ec.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:ec.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:ec.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:ec.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ec.strictNullHandling}}function ep(e,t={}){let r,n,i=e,o=eh(t);"function"==typeof o.filter?i=(n=o.filter)("",i):M(o.filter)&&(r=n=o.filter);let a=[];if("object"!=typeof i||null===i)return"";let s=es[o.arrayFormat],l="comma"===s&&o.commaRoundTrip;r||(r=Object.keys(i)),o.sort&&r.sort(o.sort);let c=new WeakMap;for(let e=0;e<r.length;++e){let t=r[e];o.skipNulls&&null===i[t]||el(a,ed(i[t],t,s,l,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}let u=a.join(o.delimiter),f=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),u.length>0?f+u:""}function em(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}function eg(e){let t;return(o??(o=(t=new globalThis.TextEncoder).encode.bind(t)))(e)}function eb(e){let t;return(a??(a=(t=new globalThis.TextDecoder).decode.bind(t)))(e)}class ev{constructor(){t3.set(this,void 0),t5.set(this,void 0),s(this,t3,new Uint8Array,"f"),s(this,t5,null,"f")}decode(e){let t;if(null==e)return[];let r=e instanceof ArrayBuffer?new Uint8Array(e):"string"==typeof e?eg(e):e;s(this,t3,em([l(this,t3,"f"),r]),"f");let n=[];for(;null!=(t=ey(l(this,t3,"f"),l(this,t5,"f")));){if(t.carriage&&null==l(this,t5,"f")){s(this,t5,t.index,"f");continue}if(null!=l(this,t5,"f")&&(t.index!==l(this,t5,"f")+1||t.carriage)){n.push(eb(l(this,t3,"f").subarray(0,l(this,t5,"f")-1))),s(this,t3,l(this,t3,"f").subarray(l(this,t5,"f")),"f"),s(this,t5,null,"f");continue}let e=null!==l(this,t5,"f")?t.preceding-1:t.preceding,r=eb(l(this,t3,"f").subarray(0,e));n.push(r),s(this,t3,l(this,t3,"f").subarray(t.index),"f"),s(this,t5,null,"f")}return n}flush(){return l(this,t3,"f").length?this.decode("\n"):[]}}function ey(e,t){let r=10,n=13;for(let i=t??0;i<e.length;i++){if(e[i]===r)return{preceding:i,index:i+1,carriage:!1};if(e[i]===n)return{preceding:i,index:i+1,carriage:!0}}return null}function ew(e){let t=10,r=13;for(let n=0;n<e.length-1;n++){if(e[n]===t&&e[n+1]===t||e[n]===r&&e[n+1]===r)return n+2;if(e[n]===r&&e[n+1]===t&&n+3<e.length&&e[n+2]===r&&e[n+3]===t)return n+4}return -1}t3=new WeakMap,t5=new WeakMap,ev.NEWLINE_CHARS=new Set(["\n","\r"]),ev.NEWLINE_REGEXP=/\r\n|[\n\r]/g;let ex={off:0,error:200,warn:300,info:400,debug:500},eA=(e,t,r)=>{if(e){if(T(ex,e))return e;ek(r).warn(`${t} was set to ${JSON.stringify(e)}, expected one of ${JSON.stringify(Object.keys(ex))}`)}};function eE(){}function e_(e,t,r){return!t||ex[e]>ex[r]?eE:t[e].bind(t)}let eS={error:eE,warn:eE,info:eE,debug:eE},e$=new WeakMap;function ek(e){let t=e.logger,r=e.logLevel??"off";if(!t)return eS;let n=e$.get(t);if(n&&n[0]===r)return n[1];let i={error:e_("error",t,r),warn:e_("warn",t,r),info:e_("info",t,r),debug:e_("debug",t,r)};return e$.set(t,[r,i]),i}let eC=e=>(e.options&&(e.options={...e.options},delete e.options.headers),e.headers&&(e.headers=Object.fromEntries((e.headers instanceof Headers?[...e.headers]:Object.entries(e.headers)).map(([e,t])=>[e,"authorization"===e.toLowerCase()||"cookie"===e.toLowerCase()||"set-cookie"===e.toLowerCase()?"***":t]))),"retryOfRequestLogID"in e&&(e.retryOfRequestLogID&&(e.retryOf=e.retryOfRequestLogID),delete e.retryOfRequestLogID),e);class eO{constructor(e,t,r){this.iterator=e,t4.set(this,void 0),this.controller=t,s(this,t4,r,"f")}static fromSSEResponse(e,t,r){let n=!1,i=r?ek(r):console;async function*o(){if(n)throw new d("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let r=!1;try{for await(let n of eM(e,t))if(!r){if(n.data.startsWith("[DONE]")){r=!0;continue}if(null!==n.event&&n.event.startsWith("thread.")){let e;try{e=JSON.parse(n.data)}catch(e){throw console.error("Could not parse message into JSON:",n.data),console.error("From chunk:",n.raw),e}if("error"==n.event)throw new h(void 0,e.error,e.message,void 0);yield{event:n.event,data:e}}else{let t;try{t=JSON.parse(n.data)}catch(e){throw i.error("Could not parse message into JSON:",n.data),i.error("From chunk:",n.raw),e}if(t&&t.error)throw new h(void 0,t.error,void 0,e.headers);yield t}}r=!0}catch(e){if(u(e))return;throw e}finally{r||t.abort()}}return new eO(o,t,r)}static fromReadableStream(e,t,r){let n=!1;async function*i(){let t=new ev;for await(let r of X(e))for(let e of t.decode(r))yield e;for(let e of t.flush())yield e}return new eO(async function*(){if(n)throw new d("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let e=!1;try{for await(let t of i())!e&&t&&(yield JSON.parse(t));e=!0}catch(e){if(u(e))return;throw e}finally{e||t.abort()}},t,r)}[(t4=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let e=[],t=[],r=this.iterator(),n=n=>({next:()=>{if(0===n.length){let n=r.next();e.push(n),t.push(n)}return n.shift()}});return[new eO(()=>n(e),this.controller,l(this,t4,"f")),new eO(()=>n(t),this.controller,l(this,t4,"f"))]}toReadableStream(){let e,t=this;return K({async start(){e=t[Symbol.asyncIterator]()},async pull(t){try{let{value:r,done:n}=await e.next();if(n)return t.close();let i=eg(JSON.stringify(r)+"\n");t.enqueue(i)}catch(e){t.error(e)}},async cancel(){await e.return?.()}})}}async function*eM(e,t){if(!e.body){if(t.abort(),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product)throw new d("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new d("Attempted to iterate over a response with no body")}let r=new eR,n=new ev;for await(let t of eI(X(e.body)))for(let e of n.decode(t)){let t=r.decode(e);t&&(yield t)}for(let e of n.flush()){let t=r.decode(e);t&&(yield t)}}async function*eI(e){let t=new Uint8Array;for await(let r of e){let e;if(null==r)continue;let n=r instanceof ArrayBuffer?new Uint8Array(r):"string"==typeof r?eg(r):r,i=new Uint8Array(t.length+n.length);for(i.set(t),i.set(n,t.length),t=i;-1!==(e=ew(t));)yield t.slice(0,e),t=t.slice(e)}t.length>0&&(yield t)}class eR{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[t,r,n]=ej(e,":");return n.startsWith(" ")&&(n=n.substring(1)),"event"===t?this.event=n:"data"===t&&this.data.push(n),null}}function ej(e,t){let r=e.indexOf(t);return -1!==r?[e.substring(0,r),t,e.substring(r+t.length)]:[e,"",""]}async function eT(e,t){let{response:r,requestLogID:n,retryOfRequestLogID:i,startTime:o}=t,a=await (async()=>{if(t.options.stream)return(ek(e).debug("response",r.status,r.url,r.headers,r.body),t.options.__streamClass)?t.options.__streamClass.fromSSEResponse(r,t.controller,e):eO.fromSSEResponse(r,t.controller,e);if(204===r.status)return null;if(t.options.__binaryResponse)return r;let n=r.headers.get("content-type"),i=n?.split(";")[0]?.trim();return i?.includes("application/json")||i?.endsWith("+json")?eN(await r.json(),r):await r.text()})();return ek(e).debug(`[${n}] response parsed`,eC({retryOfRequestLogID:i,url:r.url,status:r.status,body:a,durationMs:Date.now()-o})),a}function eN(e,t){return!e||"object"!=typeof e||Array.isArray(e)?e:Object.defineProperty(e,"_request_id",{value:t.headers.get("x-request-id"),enumerable:!1})}class eP extends Promise{constructor(e,t,r=eT){super(e=>{e(null)}),this.responsePromise=t,this.parseResponse=r,t8.set(this,void 0),s(this,t8,e,"f")}_thenUnwrap(e){return new eP(l(this,t8,"f"),this.responsePromise,async(t,r)=>eN(e(await this.parseResponse(t,r),r),r.response))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){let[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t,request_id:t.headers.get("x-request-id")}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(e=>this.parseResponse(l(this,t8,"f"),e))),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}}t8=new WeakMap;class eB{constructor(e,t,r,n){t9.set(this,void 0),s(this,t9,e,"f"),this.options=n,this.response=t,this.body=r}hasNextPage(){return!!this.getPaginatedItems().length&&null!=this.nextPageRequestOptions()}async getNextPage(){let e=this.nextPageRequestOptions();if(!e)throw new d("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");return await l(this,t9,"f").requestAPIList(this.constructor,e)}async *iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async *[(t9=new WeakMap,Symbol.asyncIterator)](){for await(let e of this.iterPages())for(let t of e.getPaginatedItems())yield t}}class ez extends eP{constructor(e,t,r){super(e,t,async(e,t)=>new r(e,t.response,await eT(e,t),t.options))}async *[Symbol.asyncIterator](){for await(let e of(await this))yield e}}class eL extends eB{constructor(e,t,r,n){super(e,t,r,n),this.data=r.data||[],this.object=r.object}getPaginatedItems(){return this.data??[]}nextPageRequestOptions(){return null}}class eD extends eB{constructor(e,t,r,n){super(e,t,r,n),this.data=r.data||[],this.has_more=r.has_more||!1}getPaginatedItems(){return this.data??[]}hasNextPage(){return!1!==this.has_more&&super.hasNextPage()}nextPageRequestOptions(){let e=this.getPaginatedItems(),t=e[e.length-1]?.id;return t?{...this.options,query:{...R(this.options.query),after:t}}:null}}class eF extends eB{constructor(e,t,r,n){super(e,t,r,n),this.data=r.data||[],this.has_more=r.has_more||!1,this.last_id=r.last_id||""}getPaginatedItems(){return this.data??[]}hasNextPage(){return!1!==this.has_more&&super.hasNextPage()}nextPageRequestOptions(){let e=this.last_id;return e?{...this.options,query:{...R(this.options.query),after:e}}:null}}let eH=()=>{if("u"<typeof File){let{process:e}=globalThis;throw Error("`File` is not defined as a global, which is required for file uploads."+("string"==typeof e?.versions?.node&&20>parseInt(e.versions.node.split("."))?" Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`.":""))}};function eU(e,t,r){return eH(),new File(e,t??"unknown_file",r)}function eq(e){return("object"==typeof e&&null!==e&&("name"in e&&e.name&&String(e.name)||"url"in e&&e.url&&String(e.url)||"filename"in e&&e.filename&&String(e.filename)||"path"in e&&e.path&&String(e.path))||"").split(/[\\/]/).pop()||void 0}let eW=e=>null!=e&&"object"==typeof e&&"function"==typeof e[Symbol.asyncIterator],eV=async(e,t)=>eQ(e.body)?{...e,body:await eZ(e.body,t)}:e,eK=async(e,t)=>({...e,body:await eZ(e.body,t)}),eG=new WeakMap;function eX(e){let t="function"==typeof e?e:e.fetch,r=eG.get(t);if(r)return r;let n=(async()=>{try{let e="Response"in t?t.Response:(await t("data:,")).constructor,r=new FormData;if(r.toString()===await new e(r).text())return!1;return!0}catch{return!0}})();return eG.set(t,n),n}let eZ=async(e,t)=>{if(!await eX(t))throw TypeError("The provided fetch function does not support file uploads with the current global FormData class.");let r=new FormData;return await Promise.all(Object.entries(e||{}).map(([e,t])=>e0(r,e,t))),r},eY=e=>e instanceof Blob&&"name"in e,eJ=e=>"object"==typeof e&&null!==e&&(e instanceof Response||eW(e)||eY(e)),eQ=e=>{if(eJ(e))return!0;if(Array.isArray(e))return e.some(eQ);if(e&&"object"==typeof e){for(let t in e)if(eQ(e[t]))return!0}return!1},e0=async(e,t,r)=>{if(void 0!==r){if(null==r)throw TypeError(`Received null for "${t}"; to pass null in FormData, you must use the string 'null'`);if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)e.append(t,String(r));else if(r instanceof Response)e.append(t,eU([await r.blob()],eq(r)));else if(eW(r))e.append(t,eU([await new Response(G(r)).blob()],eq(r)));else if(eY(r))e.append(t,r,eq(r));else if(Array.isArray(r))await Promise.all(r.map(r=>e0(e,t+"[]",r)));else if("object"==typeof r)await Promise.all(Object.entries(r).map(([r,n])=>e0(e,`${t}[${r}]`,n)));else throw TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${r} instead`)}},e1=e=>null!=e&&"object"==typeof e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.text&&"function"==typeof e.slice&&"function"==typeof e.arrayBuffer,e2=e=>null!=e&&"object"==typeof e&&"string"==typeof e.name&&"number"==typeof e.lastModified&&e1(e),e6=e=>null!=e&&"object"==typeof e&&"string"==typeof e.url&&"function"==typeof e.blob;async function e3(e,t,r){if(eH(),e2(e=await e))return e instanceof File?e:eU([await e.arrayBuffer()],e.name);if(e6(e)){let n=await e.blob();return t||(t=new URL(e.url).pathname.split(/[\\/]/).pop()),eU(await e5(n),t,r)}let n=await e5(e);if(t||(t=eq(e)),!r?.type){let e=n.find(e=>"object"==typeof e&&"type"in e&&e.type);"string"==typeof e&&(r={...r,type:e})}return eU(n,t,r)}async function e5(e){let t=[];if("string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(e1(e))t.push(e instanceof Blob?e:await e.arrayBuffer());else if(eW(e))for await(let r of e)t.push(...await e5(r));else{let t=e?.constructor?.name;throw Error(`Unexpected data type: ${typeof e}${t?`; constructor: ${t}`:""}${e4(e)}`)}return t}function e4(e){if("object"!=typeof e||null===e)return"";let t=Object.getOwnPropertyNames(e);return`; props: [${t.map(e=>`"${e}"`).join(", ")}]`}class e8{constructor(e){this._client=e}}function e9(e){return e.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent)}let e7=Object.freeze(Object.create(null)),te=((e=e9)=>function(t,...r){let n;if(1===t.length)return t[0];let i=!1,o=[],a=t.reduce((t,n,a)=>{/[?#]/.test(n)&&(i=!0);let s=r[a],l=(i?encodeURIComponent:e)(""+s);return a!==r.length&&(null==s||"object"==typeof s&&s.toString===Object.getPrototypeOf(Object.getPrototypeOf(s.hasOwnProperty??e7)??e7)?.toString)&&(l=s+"",o.push({start:t.length+n.length,length:l.length,error:`Value of type ${Object.prototype.toString.call(s).slice(8,-1)} is not a valid path parameter`})),t+n+(a===r.length?"":l)},""),s=a.split(/[?#]/,1)[0],l=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;for(;null!==(n=l.exec(s));)o.push({start:n.index,length:n[0].length,error:`Value "${n[0]}" can't be safely passed as a path parameter`});if(o.sort((e,t)=>e.start-t.start),o.length>0){let e=0,t=o.reduce((t,r)=>{let n=" ".repeat(r.start-e),i="^".repeat(r.length);return e=r.start+r.length,t+n+i},"");throw new d(`Path parameters result in path with invalid segments:
284
+ ${o.map(e=>e.error).join("\n")}
285
+ ${a}
286
+ ${t}`)}return a})(e9);class tt extends e8{list(e,t={},r){return this._client.getAPIList(te`/chat/completions/${e}/messages`,eD,{query:t,...r})}}function tr(e){return void 0!==e&&"function"in e&&void 0!==e.function}function tn(e){return e?.$brand==="auto-parseable-response-format"}function ti(e){return e?.$brand==="auto-parseable-tool"}function to(e,t){return t&&tu(t)?ta(e,t):{...e,choices:e.choices.map(e=>(tf(e.message.tool_calls),{...e,message:{...e.message,parsed:null,...e.message.tool_calls?{tool_calls:e.message.tool_calls}:void 0}}))}}function ta(e,t){let r=e.choices.map(e=>{if("length"===e.finish_reason)throw new S;if("content_filter"===e.finish_reason)throw new $;return tf(e.message.tool_calls),{...e,message:{...e.message,...e.message.tool_calls?{tool_calls:e.message.tool_calls?.map(e=>tl(t,e))??void 0}:void 0,parsed:e.message.content&&!e.message.refusal?ts(t,e.message.content):null}}});return{...e,choices:r}}function ts(e,t){return e.response_format?.type!=="json_schema"?null:e.response_format?.type==="json_schema"?"$parseRaw"in e.response_format?e.response_format.$parseRaw(t):JSON.parse(t):null}function tl(e,t){let r=e.tools?.find(e=>tr(e)&&e.function?.name===t.function.name);return{...t,function:{...t.function,parsed_arguments:ti(r)?r.$parseRaw(t.function.arguments):r?.function.strict?JSON.parse(t.function.arguments):null}}}function tc(e,t){if(!e||!("tools"in e)||!e.tools)return!1;let r=e.tools?.find(e=>tr(e)&&e.function?.name===t.function.name);return tr(r)&&(ti(r)||r?.function.strict||!1)}function tu(e){return!!tn(e.response_format)||(e.tools?.some(e=>ti(e)||"function"===e.type&&!0===e.function.strict)??!1)}function tf(e){for(let t of e||[])if("function"!==t.type)throw new d(`Currently only \`function\` tool calls are supported; Received \`${t.type}\``)}function td(e){for(let t of e??[]){if("function"!==t.type)throw new d(`Currently only \`function\` tool types support auto-parsing; Received \`${t.type}\``);if(!0!==t.function.strict)throw new d(`The \`${t.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`)}}let th=e=>e?.role==="assistant",tp=e=>e?.role==="tool";class tm{constructor(){t7.add(this),this.controller=new AbortController,re.set(this,void 0),rt.set(this,()=>{}),rr.set(this,()=>{}),rn.set(this,void 0),ri.set(this,()=>{}),ro.set(this,()=>{}),ra.set(this,{}),rs.set(this,!1),rl.set(this,!1),rc.set(this,!1),ru.set(this,!1),s(this,re,new Promise((e,t)=>{s(this,rt,e,"f"),s(this,rr,t,"f")}),"f"),s(this,rn,new Promise((e,t)=>{s(this,ri,e,"f"),s(this,ro,t,"f")}),"f"),l(this,re,"f").catch(()=>{}),l(this,rn,"f").catch(()=>{})}_run(e){setTimeout(()=>{e().then(()=>{this._emitFinal(),this._emit("end")},l(this,t7,"m",rf).bind(this))},0)}_connected(){this.ended||(l(this,rt,"f").call(this),this._emit("connect"))}get ended(){return l(this,rs,"f")}get errored(){return l(this,rl,"f")}get aborted(){return l(this,rc,"f")}abort(){this.controller.abort()}on(e,t){return(l(this,ra,"f")[e]||(l(this,ra,"f")[e]=[])).push({listener:t}),this}off(e,t){let r=l(this,ra,"f")[e];if(!r)return this;let n=r.findIndex(e=>e.listener===t);return n>=0&&r.splice(n,1),this}once(e,t){return(l(this,ra,"f")[e]||(l(this,ra,"f")[e]=[])).push({listener:t,once:!0}),this}emitted(e){return new Promise((t,r)=>{s(this,ru,!0,"f"),"error"!==e&&this.once("error",r),this.once(e,t)})}async done(){s(this,ru,!0,"f"),await l(this,rn,"f")}_emit(e,...t){if(l(this,rs,"f"))return;"end"===e&&(s(this,rs,!0,"f"),l(this,ri,"f").call(this));let r=l(this,ra,"f")[e];if(r&&(l(this,ra,"f")[e]=r.filter(e=>!e.once),r.forEach(({listener:e})=>e(...t))),"abort"===e){let e=t[0];l(this,ru,"f")||r?.length||Promise.reject(e),l(this,rr,"f").call(this,e),l(this,ro,"f").call(this,e),this._emit("end");return}if("error"===e){let e=t[0];l(this,ru,"f")||r?.length||Promise.reject(e),l(this,rr,"f").call(this,e),l(this,ro,"f").call(this,e),this._emit("end")}}_emitFinal(){}}function tg(e){return"function"==typeof e.parse}re=new WeakMap,rt=new WeakMap,rr=new WeakMap,rn=new WeakMap,ri=new WeakMap,ro=new WeakMap,ra=new WeakMap,rs=new WeakMap,rl=new WeakMap,rc=new WeakMap,ru=new WeakMap,t7=new WeakSet,rf=function(e){if(s(this,rl,!0,"f"),e instanceof Error&&"AbortError"===e.name&&(e=new p),e instanceof p)return s(this,rc,!0,"f"),this._emit("abort",e);if(e instanceof d)return this._emit("error",e);if(e instanceof Error){let t=new d(e.message);return t.cause=e,this._emit("error",t)}return this._emit("error",new d(String(e)))};let tb=10;class tv extends tm{constructor(){super(...arguments),rd.add(this),this._chatCompletions=[],this.messages=[]}_addChatCompletion(e){this._chatCompletions.push(e),this._emit("chatCompletion",e);let t=e.choices[0]?.message;return t&&this._addMessage(t),e}_addMessage(e,t=!0){if("content"in e||(e.content=null),this.messages.push(e),t){if(this._emit("message",e),tp(e)&&e.content)this._emit("functionToolCallResult",e.content);else if(th(e)&&e.tool_calls)for(let t of e.tool_calls)"function"===t.type&&this._emit("functionToolCall",t.function)}}async finalChatCompletion(){await this.done();let e=this._chatCompletions[this._chatCompletions.length-1];if(!e)throw new d("stream ended without producing a ChatCompletion");return e}async finalContent(){return await this.done(),l(this,rd,"m",rh).call(this)}async finalMessage(){return await this.done(),l(this,rd,"m",rp).call(this)}async finalFunctionToolCall(){return await this.done(),l(this,rd,"m",rm).call(this)}async finalFunctionToolCallResult(){return await this.done(),l(this,rd,"m",rg).call(this)}async totalUsage(){return await this.done(),l(this,rd,"m",rb).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emitFinal(){let e=this._chatCompletions[this._chatCompletions.length-1];e&&this._emit("finalChatCompletion",e);let t=l(this,rd,"m",rp).call(this);t&&this._emit("finalMessage",t);let r=l(this,rd,"m",rh).call(this);r&&this._emit("finalContent",r);let n=l(this,rd,"m",rm).call(this);n&&this._emit("finalFunctionToolCall",n);let i=l(this,rd,"m",rg).call(this);null!=i&&this._emit("finalFunctionToolCallResult",i),this._chatCompletions.some(e=>e.usage)&&this._emit("totalUsage",l(this,rd,"m",rb).call(this))}async _createChatCompletion(e,t,r){let n=r?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),l(this,rd,"m",rv).call(this,t);let i=await e.chat.completions.create({...t,stream:!1},{...r,signal:this.controller.signal});return this._connected(),this._addChatCompletion(ta(i,t))}async _runChatCompletion(e,t,r){for(let e of t.messages)this._addMessage(e,!1);return await this._createChatCompletion(e,t,r)}async _runTools(e,t,r){let n="tool",{tool_choice:i="auto",stream:o,...a}=t,s="string"!=typeof i&&"function"===i.type&&i?.function?.name,{maxChatCompletions:c=tb}=r||{},u=t.tools.map(e=>{if(ti(e)){if(!e.$callback)throw new d("Tool given to `.runTools()` that does not have an associated function");return{type:"function",function:{function:e.$callback,name:e.function.name,description:e.function.description||"",parameters:e.function.parameters,parse:e.$parseRaw,strict:!0}}}return e}),f={};for(let e of u)"function"===e.type&&(f[e.function.name||e.function.function.name]=e.function);let h="tools"in t?u.map(e=>"function"===e.type?{type:"function",function:{name:e.function.name||e.function.function.name,parameters:e.function.parameters,description:e.function.description,strict:e.function.strict}}:e):void 0;for(let e of t.messages)this._addMessage(e,!1);for(let t=0;t<c;++t){let t=await this._createChatCompletion(e,{...a,tool_choice:i,tools:h,messages:[...this.messages]},r),o=t.choices[0]?.message;if(!o)throw new d("missing message in ChatCompletion response");if(!o.tool_calls?.length)break;for(let e of o.tool_calls){let t;if("function"!==e.type)continue;let r=e.id,{name:i,arguments:o}=e.function,a=f[i];if(a){if(s&&s!==i){let e=`Invalid tool_call: ${JSON.stringify(i)}. ${JSON.stringify(s)} requested. Please try again`;this._addMessage({role:n,tool_call_id:r,content:e});continue}}else{let e=`Invalid tool_call: ${JSON.stringify(i)}. Available options are: ${Object.keys(f).map(e=>JSON.stringify(e)).join(", ")}. Please try again`;this._addMessage({role:n,tool_call_id:r,content:e});continue}try{t=tg(a)?await a.parse(o):o}catch(t){let e=t instanceof Error?t.message:String(t);this._addMessage({role:n,tool_call_id:r,content:e});continue}let c=await a.function(t,this),u=l(this,rd,"m",ry).call(this,c);if(this._addMessage({role:n,tool_call_id:r,content:u}),s)return}}}}rd=new WeakSet,rh=function(){return l(this,rd,"m",rp).call(this).content??null},rp=function(){let e=this.messages.length;for(;e-- >0;){let t=this.messages[e];if(th(t))return{...t,content:t.content??null,refusal:t.refusal??null}}throw new d("stream ended without producing a ChatCompletionMessage with role=assistant")},rm=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(th(t)&&t?.tool_calls?.length)return t.tool_calls.filter(e=>"function"===e.type).at(-1)?.function}},rg=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(tp(t)&&null!=t.content&&"string"==typeof t.content&&this.messages.some(e=>"assistant"===e.role&&e.tool_calls?.some(e=>"function"===e.type&&e.id===t.tool_call_id)))return t.content}},rb=function(){let e={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(let{usage:t}of this._chatCompletions)t&&(e.completion_tokens+=t.completion_tokens,e.prompt_tokens+=t.prompt_tokens,e.total_tokens+=t.total_tokens);return e},rv=function(e){if(null!=e.n&&e.n>1)throw new d("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},ry=function(e){return"string"==typeof e?e:void 0===e?"undefined":JSON.stringify(e)};class ty extends tv{static runTools(e,t,r){let n=new ty,i={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runTools"}};return n._run(()=>n._runTools(e,t,i)),n}_addMessage(e,t=!0){super._addMessage(e,t),th(e)&&e.content&&this._emit("content",e.content)}}let tw=1,tx=2,tA=4,tE=8,t_=16,tS=32,t$=64,tk=128,tC=256,tO=511;class tM extends Error{}class tI extends Error{}function tR(e,t=tO){if("string"!=typeof e)throw TypeError(`expecting str, got ${typeof e}`);if(!e.trim())throw Error(`${e} is empty`);return tj(e.trim(),t)}let tj=(e,t)=>{let r=e.length,n=0,i=e=>{throw new tM(`${e} at position ${n}`)},o=e=>{throw new tI(`${e} at position ${n}`)},a=()=>(f(),n>=r&&i("Unexpected end of input"),'"'===e[n])?s():"{"===e[n]?l():"["===e[n]?c():"null"===e.substring(n,n+4)||t_&t&&r-n<4&&"null".startsWith(e.substring(n))?(n+=4,null):"true"===e.substring(n,n+4)||tS&t&&r-n<4&&"true".startsWith(e.substring(n))?(n+=4,!0):"false"===e.substring(n,n+5)||tS&t&&r-n<5&&"false".startsWith(e.substring(n))?(n+=5,!1):"Infinity"===e.substring(n,n+8)||tk&t&&r-n<8&&"Infinity".startsWith(e.substring(n))?(n+=8,1/0):"-Infinity"===e.substring(n,n+9)||tC&t&&1<r-n&&r-n<9&&"-Infinity".startsWith(e.substring(n))?(n+=9,-1/0):"NaN"===e.substring(n,n+3)||t$&t&&r-n<3&&"NaN".startsWith(e.substring(n))?(n+=3,NaN):u(),s=()=>{let a=n,s=!1;for(n++;n<r&&('"'!==e[n]||s&&"\\"===e[n-1]);)s="\\"===e[n]&&!s,n++;if('"'==e.charAt(n))try{return JSON.parse(e.substring(a,++n-Number(s)))}catch(e){o(String(e))}else if(tw&t)try{return JSON.parse(e.substring(a,n-Number(s))+'"')}catch(t){return JSON.parse(e.substring(a,e.lastIndexOf("\\"))+'"')}i("Unterminated string literal")},l=()=>{n++,f();let o={};try{for(;"}"!==e[n];){if(f(),n>=r&&tE&t)return o;let i=s();f(),n++;try{let e=a();Object.defineProperty(o,i,{value:e,writable:!0,enumerable:!0,configurable:!0})}catch(e){if(tE&t)return o;throw e}f(),","===e[n]&&n++}}catch(e){if(tE&t)return o;i("Expected '}' at end of object")}return n++,o},c=()=>{n++;let r=[];try{for(;"]"!==e[n];)r.push(a()),f(),","===e[n]&&n++}catch(e){if(tA&t)return r;i("Expected ']' at end of array")}return n++,r},u=()=>{if(0===n){"-"===e&&tx&t&&i("Not sure what '-' is");try{return JSON.parse(e)}catch(r){if(tx&t)try{if("."===e[e.length-1])return JSON.parse(e.substring(0,e.lastIndexOf(".")));return JSON.parse(e.substring(0,e.lastIndexOf("e")))}catch(e){}o(String(r))}}let a=n;for("-"===e[n]&&n++;e[n]&&!",]}".includes(e[n]);)n++;n!=r||tx&t||i("Unterminated number literal");try{return JSON.parse(e.substring(a,n))}catch(r){"-"===e.substring(a,n)&&tx&t&&i("Not sure what '-' is");try{return JSON.parse(e.substring(a,e.lastIndexOf("e")))}catch(e){o(String(e))}}},f=()=>{for(;n<r&&" \n\r ".includes(e[n]);)n++};return a()},tT=e=>tR(e,tO^tx);class tN extends tv{constructor(e){super(),rw.add(this),rx.set(this,void 0),rA.set(this,void 0),rE.set(this,void 0),s(this,rx,e,"f"),s(this,rA,[],"f")}get currentChatCompletionSnapshot(){return l(this,rE,"f")}static fromReadableStream(e){let t=new tN(null);return t._run(()=>t._fromReadableStream(e)),t}static createChatCompletion(e,t,r){let n=new tN(t);return n._run(()=>n._runChatCompletion(e,{...t,stream:!0},{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),n}async _createChatCompletion(e,t,r){super._createChatCompletion;let n=r?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),l(this,rw,"m",r_).call(this);let i=await e.chat.completions.create({...t,stream:!0},{...r,signal:this.controller.signal});for await(let e of(this._connected(),i))l(this,rw,"m",r$).call(this,e);if(i.controller.signal?.aborted)throw new p;return this._addChatCompletion(l(this,rw,"m",rO).call(this))}async _fromReadableStream(e,t){let r,n=t?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),l(this,rw,"m",r_).call(this),this._connected();let i=eO.fromReadableStream(e,this.controller);for await(let e of i)r&&r!==e.id&&this._addChatCompletion(l(this,rw,"m",rO).call(this)),l(this,rw,"m",r$).call(this,e),r=e.id;if(i.controller.signal?.aborted)throw new p;return this._addChatCompletion(l(this,rw,"m",rO).call(this))}[(rx=new WeakMap,rA=new WeakMap,rE=new WeakMap,rw=new WeakSet,r_=function(){this.ended||s(this,rE,void 0,"f")},rS=function(e){let t=l(this,rA,"f")[e.index];return t||(t={content_done:!1,refusal_done:!1,logprobs_content_done:!1,logprobs_refusal_done:!1,done_tool_calls:new Set,current_tool_call_index:null},l(this,rA,"f")[e.index]=t),t},r$=function(e){if(this.ended)return;let t=l(this,rw,"m",rI).call(this,e);for(let r of(this._emit("chunk",e,t),e.choices)){let e=t.choices[r.index];null!=r.delta.content&&e.message?.role==="assistant"&&e.message?.content&&(this._emit("content",r.delta.content,e.message.content),this._emit("content.delta",{delta:r.delta.content,snapshot:e.message.content,parsed:e.message.parsed})),null!=r.delta.refusal&&e.message?.role==="assistant"&&e.message?.refusal&&this._emit("refusal.delta",{delta:r.delta.refusal,snapshot:e.message.refusal}),r.logprobs?.content!=null&&e.message?.role==="assistant"&&this._emit("logprobs.content.delta",{content:r.logprobs?.content,snapshot:e.logprobs?.content??[]}),r.logprobs?.refusal!=null&&e.message?.role==="assistant"&&this._emit("logprobs.refusal.delta",{refusal:r.logprobs?.refusal,snapshot:e.logprobs?.refusal??[]});let n=l(this,rw,"m",rS).call(this,e);for(let t of(e.finish_reason&&(l(this,rw,"m",rC).call(this,e),null!=n.current_tool_call_index&&l(this,rw,"m",rk).call(this,e,n.current_tool_call_index)),r.delta.tool_calls??[]))n.current_tool_call_index!==t.index&&(l(this,rw,"m",rC).call(this,e),null!=n.current_tool_call_index&&l(this,rw,"m",rk).call(this,e,n.current_tool_call_index)),n.current_tool_call_index=t.index;for(let t of r.delta.tool_calls??[]){let r=e.message.tool_calls?.[t.index];r?.type&&(r?.type==="function"?this._emit("tool_calls.function.arguments.delta",{name:r.function?.name,index:t.index,arguments:r.function.arguments,parsed_arguments:r.function.parsed_arguments,arguments_delta:t.function?.arguments??""}):r?.type)}}},rk=function(e,t){if(l(this,rw,"m",rS).call(this,e).done_tool_calls.has(t))return;let r=e.message.tool_calls?.[t];if(!r)throw Error("no tool call snapshot");if(!r.type)throw Error("tool call snapshot missing `type`");if("function"===r.type){let e=l(this,rx,"f")?.tools?.find(e=>tr(e)&&e.function.name===r.function.name);this._emit("tool_calls.function.arguments.done",{name:r.function.name,index:t,arguments:r.function.arguments,parsed_arguments:ti(e)?e.$parseRaw(r.function.arguments):e?.function.strict?JSON.parse(r.function.arguments):null})}else r.type},rC=function(e){let t=l(this,rw,"m",rS).call(this,e);if(e.message.content&&!t.content_done){t.content_done=!0;let r=l(this,rw,"m",rM).call(this);this._emit("content.done",{content:e.message.content,parsed:r?r.$parseRaw(e.message.content):null})}e.message.refusal&&!t.refusal_done&&(t.refusal_done=!0,this._emit("refusal.done",{refusal:e.message.refusal})),e.logprobs?.content&&!t.logprobs_content_done&&(t.logprobs_content_done=!0,this._emit("logprobs.content.done",{content:e.logprobs.content})),e.logprobs?.refusal&&!t.logprobs_refusal_done&&(t.logprobs_refusal_done=!0,this._emit("logprobs.refusal.done",{refusal:e.logprobs.refusal}))},rO=function(){if(this.ended)throw new d("stream has ended, this shouldn't happen");let e=l(this,rE,"f");if(!e)throw new d("request ended without sending any chunks");return s(this,rE,void 0,"f"),s(this,rA,[],"f"),tP(e,l(this,rx,"f"))},rM=function(){let e=l(this,rx,"f")?.response_format;return tn(e)?e:null},rI=function(e){var t,r,n,i;let o=l(this,rE,"f"),{choices:a,...c}=e;for(let{delta:a,finish_reason:u,index:f,logprobs:d=null,...h}of(o?Object.assign(o,c):o=s(this,rE,{...c,choices:[]},"f"),e.choices)){let e=o.choices[f];if(e||(e=o.choices[f]={finish_reason:u,index:f,message:{},logprobs:d,...h}),d)if(e.logprobs){let{content:n,refusal:i,...o}=d;Object.assign(e.logprobs,o),n&&((t=e.logprobs).content??(t.content=[]),e.logprobs.content.push(...n)),i&&((r=e.logprobs).refusal??(r.refusal=[]),e.logprobs.refusal.push(...i))}else e.logprobs=Object.assign({},d);if(u&&(e.finish_reason=u,l(this,rx,"f")&&tu(l(this,rx,"f")))){if("length"===u)throw new S;if("content_filter"===u)throw new $}if(Object.assign(e,h),!a)continue;let{content:s,refusal:c,function_call:p,role:m,tool_calls:g,...b}=a;if(Object.assign(e.message,b),c&&(e.message.refusal=(e.message.refusal||"")+c),m&&(e.message.role=m),p&&(e.message.function_call?(p.name&&(e.message.function_call.name=p.name),p.arguments&&((n=e.message.function_call).arguments??(n.arguments=""),e.message.function_call.arguments+=p.arguments)):e.message.function_call=p),s&&(e.message.content=(e.message.content||"")+s,!e.message.refusal&&l(this,rw,"m",rM).call(this)&&(e.message.parsed=tT(e.message.content))),g)for(let{index:t,id:r,type:n,function:o,...a}of(e.message.tool_calls||(e.message.tool_calls=[]),g)){let s=(i=e.message.tool_calls)[t]??(i[t]={});Object.assign(s,a),r&&(s.id=r),n&&(s.type=n),o&&(s.function??(s.function={name:o.name??"",arguments:""})),o?.name&&(s.function.name=o.name),o?.arguments&&(s.function.arguments+=o.arguments,tc(l(this,rx,"f"),s)&&(s.function.parsed_arguments=tT(s.function.arguments)))}}return o},Symbol.asyncIterator)](){let e=[],t=[],r=!1;return this.on("chunk",r=>{let n=t.shift();n?n.resolve(r):e.push(r)}),this.on("end",()=>{for(let e of(r=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),this.on("error",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((e,r)=>t.push({resolve:e,reject:r})).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}toReadableStream(){return new eO(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}function tP(e,t){let{id:r,choices:n,created:i,model:o,system_fingerprint:a,...s}=e;return to({...s,id:r,choices:n.map(({message:t,finish_reason:r,index:n,logprobs:i,...o})=>{if(!r)throw new d(`missing finish_reason for choice ${n}`);let{content:a=null,function_call:s,tool_calls:l,...c}=t,u=t.role;if(!u)throw new d(`missing role for choice ${n}`);if(s){let{arguments:e,name:l}=s;if(null==e)throw new d(`missing function_call.arguments for choice ${n}`);if(!l)throw new d(`missing function_call.name for choice ${n}`);return{...o,message:{content:a,function_call:{arguments:e,name:l},role:u,refusal:t.refusal??null},finish_reason:r,index:n,logprobs:i}}return l?{...o,index:n,finish_reason:r,logprobs:i,message:{...c,role:u,content:a,refusal:t.refusal??null,tool_calls:l.map((t,r)=>{let{function:i,type:o,id:a,...s}=t,{arguments:l,name:c,...u}=i||{};if(null==a)throw new d(`missing choices[${n}].tool_calls[${r}].id
287
+ ${tB(e)}`);if(null==o)throw new d(`missing choices[${n}].tool_calls[${r}].type
288
+ ${tB(e)}`);if(null==c)throw new d(`missing choices[${n}].tool_calls[${r}].function.name
289
+ ${tB(e)}`);if(null==l)throw new d(`missing choices[${n}].tool_calls[${r}].function.arguments
290
+ ${tB(e)}`);return{...s,id:a,type:o,function:{...u,name:c,arguments:l}}})}}:{...o,message:{...c,content:a,role:u,refusal:t.refusal??null},finish_reason:r,index:n,logprobs:i}}),created:i,model:o,object:"chat.completion",...a?{system_fingerprint:a}:{}},t)}function tB(e){return JSON.stringify(e)}class tz extends tN{static fromReadableStream(e){let t=new tz(null);return t._run(()=>t._fromReadableStream(e)),t}static runTools(e,t,r){let n=new tz(t),i={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runTools"}};return n._run(()=>n._runTools(e,t,i)),n}}class tL extends e8{constructor(){super(...arguments),this.messages=new tt(this._client)}create(e,t){return this._client.post("/chat/completions",{body:e,...t,stream:e.stream??!1})}retrieve(e,t){return this._client.get(te`/chat/completions/${e}`,t)}update(e,t,r){return this._client.post(te`/chat/completions/${e}`,{body:t,...r})}list(e={},t){return this._client.getAPIList("/chat/completions",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/chat/completions/${e}`,t)}parse(e,t){return td(e.tools),this._client.chat.completions.create(e,{...t,headers:{...t?.headers,"X-Stainless-Helper-Method":"chat.completions.parse"}})._thenUnwrap(t=>ta(t,e))}runTools(e,t){return e.stream?tz.runTools(this._client,e,t):ty.runTools(this._client,e,t)}stream(e,t){return tN.createChatCompletion(this._client,e,t)}}tL.Messages=tt;class tD extends e8{constructor(){super(...arguments),this.completions=new tL(this._client)}}tD.Completions=tL;let tF=Symbol("brand.privateNullableHeaders");function*tH(e){let t;if(!e)return;if(tF in e){let{values:t,nulls:r}=e;for(let e of(yield*t.entries(),r))yield[e,null];return}let r=!1;for(let n of(e instanceof Headers?t=e.entries():I(e)?t=e:(r=!0,t=Object.entries(e??{})),t)){let e=n[0];if("string"!=typeof e)throw TypeError("expected header name to be a string");let t=I(n[1])?n[1]:[n[1]],i=!1;for(let n of t)void 0!==n&&(r&&!i&&(i=!0,yield[e,null]),yield[e,n])}}let tU=e=>{let t=new Headers,r=new Set;for(let n of e){let e=new Set;for(let[i,o]of tH(n)){let n=i.toLowerCase();e.has(n)||(t.delete(i),e.add(n)),null===o?(t.delete(i),r.add(n)):(t.append(i,o),r.delete(n))}}return{[tF]:!0,values:t,nulls:r}};class tq extends e8{create(e,t){return this._client.post("/audio/speech",{body:e,...t,headers:tU([{Accept:"application/octet-stream"},t?.headers]),__binaryResponse:!0})}}class tW extends e8{create(e,t){return this._client.post("/audio/transcriptions",eK({body:e,...t,stream:e.stream??!1,__metadata:{model:e.model}},this._client))}}class tV extends e8{create(e,t){return this._client.post("/audio/translations",eK({body:e,...t,__metadata:{model:e.model}},this._client))}}class tK extends e8{constructor(){super(...arguments),this.transcriptions=new tW(this._client),this.translations=new tV(this._client),this.speech=new tq(this._client)}}tK.Transcriptions=tW,tK.Translations=tV,tK.Speech=tq;class tG extends e8{create(e,t){return this._client.post("/batches",{body:e,...t})}retrieve(e,t){return this._client.get(te`/batches/${e}`,t)}list(e={},t){return this._client.getAPIList("/batches",eD,{query:e,...t})}cancel(e,t){return this._client.post(te`/batches/${e}/cancel`,t)}}class tX extends e8{create(e,t){return this._client.post("/assistants",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(te`/assistants/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,r){return this._client.post(te`/assistants/${e}`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e={},t){return this._client.getAPIList("/assistants",eD,{query:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}delete(e,t){return this._client.delete(te`/assistants/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tZ extends e8{create(e,t){return this._client.post("/realtime/sessions",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tY extends e8{create(e,t){return this._client.post("/realtime/transcription_sessions",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}}class tJ extends e8{constructor(){super(...arguments),this.sessions=new tZ(this._client),this.transcriptionSessions=new tY(this._client)}}tJ.Sessions=tZ,tJ.TranscriptionSessions=tY;class tQ extends e8{create(e,t){return this._client.post("/chatkit/sessions",{body:e,...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}cancel(e,t){return this._client.post(te`/chatkit/sessions/${e}/cancel`,{...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}}class t0 extends e8{retrieve(e,t){return this._client.get(te`/chatkit/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}list(e={},t){return this._client.getAPIList("/chatkit/threads",eF,{query:e,...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}delete(e,t){return this._client.delete(te`/chatkit/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])})}listItems(e,t={},r){return this._client.getAPIList(te`/chatkit/threads/${e}/items`,eF,{query:t,...r,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},r?.headers])})}}class t1 extends e8{constructor(){super(...arguments),this.sessions=new tQ(this._client),this.threads=new t0(this._client)}uploadFile(e,t){return this._client.post("/chatkit/files",eV({body:e,...t,headers:tU([{"OpenAI-Beta":"chatkit_beta=v1"},t?.headers])},this._client))}}t1.Sessions=tQ,t1.Threads=t0;class t2 extends e8{create(e,t,r){return this._client.post(te`/threads/${e}/messages`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}retrieve(e,t,r){let{thread_id:n}=t;return this._client.get(te`/threads/${n}/messages/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}update(e,t,r){let{thread_id:n,...i}=t;return this._client.post(te`/threads/${n}/messages/${e}`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t={},r){return this._client.getAPIList(te`/threads/${e}/messages`,eD,{query:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}delete(e,t,r){let{thread_id:n}=t;return this._client.delete(te`/threads/${n}/messages/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}class t6 extends e8{retrieve(e,t,r){let{thread_id:n,run_id:i,...o}=t;return this._client.get(te`/threads/${n}/runs/${i}/steps/${e}`,{query:o,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t,r){let{thread_id:n,...i}=t;return this._client.getAPIList(te`/threads/${n}/runs/${e}/steps`,eD,{query:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}var t3,t5,t4,t8,t9,t7,re,rt,rr,rn,ri,ro,ra,rs,rl,rc,ru,rf,rd,rh,rp,rm,rg,rb,rv,ry,rw,rx,rA,rE,r_,rS,r$,rk,rC,rO,rM,rI,rR,rj,rT,rN,rP,rB,rz,rL,rD,rF,rH,rU,rq,rW,rV,rK,rG,rX,rZ,rY,rJ,rQ,r0,r1,r2,r6,r3,r5,r4,r8,r9,r7,ne,nt,nr,nn,ni,no,na=r(8963).Buffer;let ns=e=>{if(void 0!==na){let t=na.from(e,"base64");return Array.from(new Float32Array(t.buffer,t.byteOffset,t.length/Float32Array.BYTES_PER_ELEMENT))}{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let e=0;e<r;e++)n[e]=t.charCodeAt(e);return Array.from(new Float32Array(n.buffer))}},nl=e=>void 0!==globalThis.process?globalThis.process.env?.[e]?.trim()??void 0:void 0!==globalThis.Deno?globalThis.Deno.env?.get?.(e)?.trim():void 0;class nc extends tm{constructor(){super(...arguments),rR.add(this),rT.set(this,[]),rN.set(this,{}),rP.set(this,{}),rB.set(this,void 0),rz.set(this,void 0),rL.set(this,void 0),rD.set(this,void 0),rF.set(this,void 0),rH.set(this,void 0),rU.set(this,void 0),rq.set(this,void 0),rW.set(this,void 0)}[(rT=new WeakMap,rN=new WeakMap,rP=new WeakMap,rB=new WeakMap,rz=new WeakMap,rL=new WeakMap,rD=new WeakMap,rF=new WeakMap,rH=new WeakMap,rU=new WeakMap,rq=new WeakMap,rW=new WeakMap,rR=new WeakSet,Symbol.asyncIterator)](){let e=[],t=[],r=!1;return this.on("event",r=>{let n=t.shift();n?n.resolve(r):e.push(r)}),this.on("end",()=>{for(let e of(r=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),this.on("error",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((e,r)=>t.push({resolve:e,reject:r})).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}static fromReadableStream(e){let t=new rj;return t._run(()=>t._fromReadableStream(e)),t}async _fromReadableStream(e,t){let r=t?.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",()=>this.controller.abort())),this._connected();let n=eO.fromReadableStream(e,this.controller);for await(let e of n)l(this,rR,"m",rV).call(this,e);if(n.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}toReadableStream(){return new eO(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}static createToolAssistantStream(e,t,r,n){let i=new rj;return i._run(()=>i._runToolAssistantStream(e,t,r,{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"stream"}})),i}async _createToolAssistantStream(e,t,r,n){let i=n?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort()));let o={...r,stream:!0},a=await e.submitToolOutputs(t,o,{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))l(this,rR,"m",rV).call(this,e);if(a.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}static createThreadAssistantStream(e,t,r){let n=new rj;return n._run(()=>n._threadAssistantStream(e,t,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),n}static createAssistantStream(e,t,r,n){let i=new rj;return i._run(()=>i._runAssistantStream(e,t,r,{...n,headers:{...n?.headers,"X-Stainless-Helper-Method":"stream"}})),i}currentEvent(){return l(this,rU,"f")}currentRun(){return l(this,rq,"f")}currentMessageSnapshot(){return l(this,rB,"f")}currentRunStepSnapshot(){return l(this,rW,"f")}async finalRunSteps(){return await this.done(),Object.values(l(this,rN,"f"))}async finalMessages(){return await this.done(),Object.values(l(this,rP,"f"))}async finalRun(){if(await this.done(),!l(this,rz,"f"))throw Error("Final run was not received.");return l(this,rz,"f")}async _createThreadAssistantStream(e,t,r){let n=r?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort()));let i={...t,stream:!0},o=await e.createAndRun(i,{...r,signal:this.controller.signal});for await(let e of(this._connected(),o))l(this,rR,"m",rV).call(this,e);if(o.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}async _createAssistantStream(e,t,r,n){let i=n?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort()));let o={...r,stream:!0},a=await e.create(t,o,{...n,signal:this.controller.signal});for await(let e of(this._connected(),a))l(this,rR,"m",rV).call(this,e);if(a.controller.signal?.aborted)throw new p;return this._addRun(l(this,rR,"m",rK).call(this))}static accumulateDelta(e,t){for(let[r,n]of Object.entries(t)){if(!e.hasOwnProperty(r)){e[r]=n;continue}let t=e[r];if(null==t||"index"===r||"type"===r){e[r]=n;continue}if("string"==typeof t&&"string"==typeof n)t+=n;else if("number"==typeof t&&"number"==typeof n)t+=n;else if(N(t)&&N(n))t=this.accumulateDelta(t,n);else if(Array.isArray(t)&&Array.isArray(n)){if(t.every(e=>"string"==typeof e||"number"==typeof e)){t.push(...n);continue}for(let e of n){if(!N(e))throw Error(`Expected array delta entry to be an object but got: ${e}`);let r=e.index;if(null==r)throw console.error(e),Error("Expected array delta entry to have an `index` property");if("number"!=typeof r)throw Error(`Expected array delta entry \`index\` property to be a number but got ${r}`);let n=t[r];null==n?t.push(e):t[r]=this.accumulateDelta(n,e)}continue}else throw Error(`Unhandled record type: ${r}, deltaValue: ${n}, accValue: ${t}`);e[r]=t}return e}_addRun(e){return e}async _threadAssistantStream(e,t,r){return await this._createThreadAssistantStream(t,e,r)}async _runAssistantStream(e,t,r,n){return await this._createAssistantStream(t,e,r,n)}async _runToolAssistantStream(e,t,r,n){return await this._createToolAssistantStream(t,e,r,n)}}rj=nc,rV=function(e){if(!this.ended)switch(s(this,rU,e,"f"),l(this,rR,"m",rZ).call(this,e),e.event){case"thread.created":break;case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":case"thread.run.requires_action":case"thread.run.completed":case"thread.run.incomplete":case"thread.run.failed":case"thread.run.cancelling":case"thread.run.cancelled":case"thread.run.expired":l(this,rR,"m",r0).call(this,e);break;case"thread.run.step.created":case"thread.run.step.in_progress":case"thread.run.step.delta":case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":l(this,rR,"m",rX).call(this,e);break;case"thread.message.created":case"thread.message.in_progress":case"thread.message.delta":case"thread.message.completed":case"thread.message.incomplete":l(this,rR,"m",rG).call(this,e);break;case"error":throw Error("Encountered an error event in event processing - errors should be processed earlier")}},rK=function(){if(this.ended)throw new d("stream has ended, this shouldn't happen");if(!l(this,rz,"f"))throw Error("Final run has not been received");return l(this,rz,"f")},rG=function(e){let[t,r]=l(this,rR,"m",rJ).call(this,e,l(this,rB,"f"));for(let e of(s(this,rB,t,"f"),l(this,rP,"f")[t.id]=t,r)){let r=t.content[e.index];r?.type=="text"&&this._emit("textCreated",r.text)}switch(e.event){case"thread.message.created":this._emit("messageCreated",e.data);break;case"thread.message.in_progress":break;case"thread.message.delta":if(this._emit("messageDelta",e.data.delta,t),e.data.delta.content)for(let r of e.data.delta.content){if("text"==r.type&&r.text){let e=r.text,n=t.content[r.index];if(n&&"text"==n.type)this._emit("textDelta",e,n.text);else throw Error("The snapshot associated with this text delta is not text or missing")}if(r.index!=l(this,rL,"f")){if(l(this,rD,"f"))switch(l(this,rD,"f").type){case"text":this._emit("textDone",l(this,rD,"f").text,l(this,rB,"f"));break;case"image_file":this._emit("imageFileDone",l(this,rD,"f").image_file,l(this,rB,"f"))}s(this,rL,r.index,"f")}s(this,rD,t.content[r.index],"f")}break;case"thread.message.completed":case"thread.message.incomplete":if(void 0!==l(this,rL,"f")){let t=e.data.content[l(this,rL,"f")];if(t)switch(t.type){case"image_file":this._emit("imageFileDone",t.image_file,l(this,rB,"f"));break;case"text":this._emit("textDone",t.text,l(this,rB,"f"))}}l(this,rB,"f")&&this._emit("messageDone",e.data),s(this,rB,void 0,"f")}},rX=function(e){let t=l(this,rR,"m",rY).call(this,e);switch(s(this,rW,t,"f"),e.event){case"thread.run.step.created":this._emit("runStepCreated",e.data);break;case"thread.run.step.delta":let r=e.data.delta;if(r.step_details&&"tool_calls"==r.step_details.type&&r.step_details.tool_calls&&"tool_calls"==t.step_details.type)for(let e of r.step_details.tool_calls)e.index==l(this,rF,"f")?this._emit("toolCallDelta",e,t.step_details.tool_calls[e.index]):(l(this,rH,"f")&&this._emit("toolCallDone",l(this,rH,"f")),s(this,rF,e.index,"f"),s(this,rH,t.step_details.tool_calls[e.index],"f"),l(this,rH,"f")&&this._emit("toolCallCreated",l(this,rH,"f")));this._emit("runStepDelta",e.data.delta,t);break;case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":s(this,rW,void 0,"f"),"tool_calls"==e.data.step_details.type&&l(this,rH,"f")&&(this._emit("toolCallDone",l(this,rH,"f")),s(this,rH,void 0,"f")),this._emit("runStepDone",e.data,t)}},rZ=function(e){l(this,rT,"f").push(e),this._emit("event",e)},rY=function(e){switch(e.event){case"thread.run.step.created":return l(this,rN,"f")[e.data.id]=e.data,e.data;case"thread.run.step.delta":let t=l(this,rN,"f")[e.data.id];if(!t)throw Error("Received a RunStepDelta before creation of a snapshot");let r=e.data;if(r.delta){let n=rj.accumulateDelta(t,r.delta);l(this,rN,"f")[e.data.id]=n}return l(this,rN,"f")[e.data.id];case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":case"thread.run.step.in_progress":l(this,rN,"f")[e.data.id]=e.data}if(l(this,rN,"f")[e.data.id])return l(this,rN,"f")[e.data.id];throw Error("No snapshot available")},rJ=function(e,t){let r=[];switch(e.event){case"thread.message.created":return[e.data,r];case"thread.message.delta":if(!t)throw Error("Received a delta with no existing snapshot (there should be one from message creation)");let n=e.data;if(n.delta.content)for(let e of n.delta.content)if(e.index in t.content){let r=t.content[e.index];t.content[e.index]=l(this,rR,"m",rQ).call(this,e,r)}else t.content[e.index]=e,r.push(e);return[t,r];case"thread.message.in_progress":case"thread.message.completed":case"thread.message.incomplete":if(t)return[t,r];throw Error("Received thread message event with no existing snapshot")}throw Error("Tried to accumulate a non-message event")},rQ=function(e,t){return rj.accumulateDelta(t,e)},r0=function(e){switch(s(this,rq,e.data,"f"),e.event){case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":break;case"thread.run.requires_action":case"thread.run.cancelled":case"thread.run.failed":case"thread.run.completed":case"thread.run.expired":case"thread.run.incomplete":s(this,rz,e.data,"f"),l(this,rH,"f")&&(this._emit("toolCallDone",l(this,rH,"f")),s(this,rH,void 0,"f"))}};class nu extends e8{constructor(){super(...arguments),this.steps=new t6(this._client)}create(e,t,r){let{include:n,...i}=t;return this._client.post(te`/threads/${e}/runs`,{query:{include:n},body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers]),stream:t.stream??!1})}retrieve(e,t,r){let{thread_id:n}=t;return this._client.get(te`/threads/${n}/runs/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}update(e,t,r){let{thread_id:n,...i}=t;return this._client.post(te`/threads/${n}/runs/${e}`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t={},r){return this._client.getAPIList(te`/threads/${e}/runs`,eD,{query:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}cancel(e,t,r){let{thread_id:n}=t;return this._client.post(te`/threads/${n}/runs/${e}/cancel`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async createAndPoll(e,t,r){let n=await this.create(e,t,r);return await this.poll(n.id,{thread_id:e},r)}createAndStream(e,t,r){return nc.createAssistantStream(e,this._client.beta.threads.runs,t,r)}async poll(e,t,r){let n=tU([r?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":r?.pollIntervalMs?.toString()??void 0}]);for(;;){let{data:i,response:o}=await this.retrieve(e,t,{...r,headers:{...r?.headers,...n}}).withResponse();switch(i.status){case"queued":case"in_progress":case"cancelling":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{let e=o.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await z(a);break;case"requires_action":case"incomplete":case"cancelled":case"completed":case"failed":case"expired":return i}}}stream(e,t,r){return nc.createAssistantStream(e,this._client.beta.threads.runs,t,r)}submitToolOutputs(e,t,r){let{thread_id:n,...i}=t;return this._client.post(te`/threads/${n}/runs/${e}/submit_tool_outputs`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers]),stream:t.stream??!1})}async submitToolOutputsAndPoll(e,t,r){let n=await this.submitToolOutputs(e,t,r);return await this.poll(n.id,t,r)}submitToolOutputsStream(e,t,r){return nc.createToolAssistantStream(e,this._client.beta.threads.runs,t,r)}}nu.Steps=t6;class nf extends e8{constructor(){super(...arguments),this.runs=new nu(this._client),this.messages=new t2(this._client)}create(e={},t){return this._client.post("/threads",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(te`/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,r){return this._client.post(te`/threads/${e}`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}delete(e,t){return this._client.delete(te`/threads/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}createAndRun(e,t){return this._client.post("/threads/runs",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers]),stream:e.stream??!1})}async createAndRunPoll(e,t){let r=await this.createAndRun(e,t);return await this.runs.poll(r.id,{thread_id:r.thread_id},t)}createAndRunStream(e,t){return nc.createThreadAssistantStream(e,this._client.beta.threads,t)}}nf.Runs=nu,nf.Messages=t2;class nd extends e8{constructor(){super(...arguments),this.realtime=new tJ(this._client),this.chatkit=new t1(this._client),this.assistants=new tX(this._client),this.threads=new nf(this._client)}}nd.Realtime=tJ,nd.ChatKit=t1,nd.Assistants=tX,nd.Threads=nf;class nh extends e8{create(e,t){return this._client.post("/completions",{body:e,...t,stream:e.stream??!1})}}class np extends e8{retrieve(e,t,r){let{container_id:n}=t;return this._client.get(te`/containers/${n}/files/${e}/content`,{...r,headers:tU([{Accept:"application/binary"},r?.headers]),__binaryResponse:!0})}}class nm extends e8{constructor(){super(...arguments),this.content=new np(this._client)}create(e,t,r){return this._client.post(te`/containers/${e}/files`,eK({body:t,...r},this._client))}retrieve(e,t,r){let{container_id:n}=t;return this._client.get(te`/containers/${n}/files/${e}`,r)}list(e,t={},r){return this._client.getAPIList(te`/containers/${e}/files`,eD,{query:t,...r})}delete(e,t,r){let{container_id:n}=t;return this._client.delete(te`/containers/${n}/files/${e}`,{...r,headers:tU([{Accept:"*/*"},r?.headers])})}}nm.Content=np;class ng extends e8{constructor(){super(...arguments),this.files=new nm(this._client)}create(e,t){return this._client.post("/containers",{body:e,...t})}retrieve(e,t){return this._client.get(te`/containers/${e}`,t)}list(e={},t){return this._client.getAPIList("/containers",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/containers/${e}`,{...t,headers:tU([{Accept:"*/*"},t?.headers])})}}ng.Files=nm;class nb extends e8{create(e,t,r){let{include:n,...i}=t;return this._client.post(te`/conversations/${e}/items`,{query:{include:n},body:i,...r})}retrieve(e,t,r){let{conversation_id:n,...i}=t;return this._client.get(te`/conversations/${n}/items/${e}`,{query:i,...r})}list(e,t={},r){return this._client.getAPIList(te`/conversations/${e}/items`,eF,{query:t,...r})}delete(e,t,r){let{conversation_id:n}=t;return this._client.delete(te`/conversations/${n}/items/${e}`,r)}}class nv extends e8{constructor(){super(...arguments),this.items=new nb(this._client)}create(e={},t){return this._client.post("/conversations",{body:e,...t})}retrieve(e,t){return this._client.get(te`/conversations/${e}`,t)}update(e,t,r){return this._client.post(te`/conversations/${e}`,{body:t,...r})}delete(e,t){return this._client.delete(te`/conversations/${e}`,t)}}nv.Items=nb;class ny extends e8{create(e,t){let r=!!e.encoding_format,n=r?e.encoding_format:"base64";r&&ek(this._client).debug("embeddings/user defined encoding_format:",e.encoding_format);let i=this._client.post("/embeddings",{body:{...e,encoding_format:n},...t});return r?i:(ek(this._client).debug("embeddings/decoding base64 embeddings from base64"),i._thenUnwrap(e=>(e&&e.data&&e.data.forEach(e=>{let t=e.embedding;e.embedding=ns(t)}),e)))}}class nw extends e8{retrieve(e,t,r){let{eval_id:n,run_id:i}=t;return this._client.get(te`/evals/${n}/runs/${i}/output_items/${e}`,r)}list(e,t,r){let{eval_id:n,...i}=t;return this._client.getAPIList(te`/evals/${n}/runs/${e}/output_items`,eD,{query:i,...r})}}class nx extends e8{constructor(){super(...arguments),this.outputItems=new nw(this._client)}create(e,t,r){return this._client.post(te`/evals/${e}/runs`,{body:t,...r})}retrieve(e,t,r){let{eval_id:n}=t;return this._client.get(te`/evals/${n}/runs/${e}`,r)}list(e,t={},r){return this._client.getAPIList(te`/evals/${e}/runs`,eD,{query:t,...r})}delete(e,t,r){let{eval_id:n}=t;return this._client.delete(te`/evals/${n}/runs/${e}`,r)}cancel(e,t,r){let{eval_id:n}=t;return this._client.post(te`/evals/${n}/runs/${e}`,r)}}nx.OutputItems=nw;class nA extends e8{constructor(){super(...arguments),this.runs=new nx(this._client)}create(e,t){return this._client.post("/evals",{body:e,...t})}retrieve(e,t){return this._client.get(te`/evals/${e}`,t)}update(e,t,r){return this._client.post(te`/evals/${e}`,{body:t,...r})}list(e={},t){return this._client.getAPIList("/evals",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/evals/${e}`,t)}}nA.Runs=nx;class nE extends e8{create(e,t){return this._client.post("/files",eK({body:e,...t},this._client))}retrieve(e,t){return this._client.get(te`/files/${e}`,t)}list(e={},t){return this._client.getAPIList("/files",eD,{query:e,...t})}delete(e,t){return this._client.delete(te`/files/${e}`,t)}content(e,t){return this._client.get(te`/files/${e}/content`,{...t,headers:tU([{Accept:"application/binary"},t?.headers]),__binaryResponse:!0})}async waitForProcessing(e,{pollInterval:t=5e3,maxWait:r=18e5}={}){let n=new Set(["processed","error","deleted"]),i=Date.now(),o=await this.retrieve(e);for(;!o.status||!n.has(o.status);)if(await z(t),o=await this.retrieve(e),Date.now()-i>r)throw new g({message:`Giving up on waiting for file ${e} to finish processing after ${r} milliseconds.`});return o}}class n_ extends e8{}class nS extends e8{run(e,t){return this._client.post("/fine_tuning/alpha/graders/run",{body:e,...t})}validate(e,t){return this._client.post("/fine_tuning/alpha/graders/validate",{body:e,...t})}}class n$ extends e8{constructor(){super(...arguments),this.graders=new nS(this._client)}}n$.Graders=nS;class nk extends e8{create(e,t,r){return this._client.getAPIList(te`/fine_tuning/checkpoints/${e}/permissions`,eL,{body:t,method:"post",...r})}retrieve(e,t={},r){return this._client.get(te`/fine_tuning/checkpoints/${e}/permissions`,{query:t,...r})}delete(e,t,r){let{fine_tuned_model_checkpoint:n}=t;return this._client.delete(te`/fine_tuning/checkpoints/${n}/permissions/${e}`,r)}}class nC extends e8{constructor(){super(...arguments),this.permissions=new nk(this._client)}}nC.Permissions=nk;class nO extends e8{list(e,t={},r){return this._client.getAPIList(te`/fine_tuning/jobs/${e}/checkpoints`,eD,{query:t,...r})}}class nM extends e8{constructor(){super(...arguments),this.checkpoints=new nO(this._client)}create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get(te`/fine_tuning/jobs/${e}`,t)}list(e={},t){return this._client.getAPIList("/fine_tuning/jobs",eD,{query:e,...t})}cancel(e,t){return this._client.post(te`/fine_tuning/jobs/${e}/cancel`,t)}listEvents(e,t={},r){return this._client.getAPIList(te`/fine_tuning/jobs/${e}/events`,eD,{query:t,...r})}pause(e,t){return this._client.post(te`/fine_tuning/jobs/${e}/pause`,t)}resume(e,t){return this._client.post(te`/fine_tuning/jobs/${e}/resume`,t)}}nM.Checkpoints=nO;class nI extends e8{constructor(){super(...arguments),this.methods=new n_(this._client),this.jobs=new nM(this._client),this.checkpoints=new nC(this._client),this.alpha=new n$(this._client)}}nI.Methods=n_,nI.Jobs=nM,nI.Checkpoints=nC,nI.Alpha=n$;class nR extends e8{}class nj extends e8{constructor(){super(...arguments),this.graderModels=new nR(this._client)}}nj.GraderModels=nR;class nT extends e8{createVariation(e,t){return this._client.post("/images/variations",eK({body:e,...t},this._client))}edit(e,t){return this._client.post("/images/edits",eK({body:e,...t,stream:e.stream??!1},this._client))}generate(e,t){return this._client.post("/images/generations",{body:e,...t,stream:e.stream??!1})}}class nN extends e8{retrieve(e,t){return this._client.get(te`/models/${e}`,t)}list(e){return this._client.getAPIList("/models",eL,e)}delete(e,t){return this._client.delete(te`/models/${e}`,t)}}class nP extends e8{create(e,t){return this._client.post("/moderations",{body:e,...t})}}class nB extends e8{accept(e,t,r){return this._client.post(te`/realtime/calls/${e}/accept`,{body:t,...r,headers:tU([{Accept:"*/*"},r?.headers])})}hangup(e,t){return this._client.post(te`/realtime/calls/${e}/hangup`,{...t,headers:tU([{Accept:"*/*"},t?.headers])})}refer(e,t,r){return this._client.post(te`/realtime/calls/${e}/refer`,{body:t,...r,headers:tU([{Accept:"*/*"},r?.headers])})}reject(e,t={},r){return this._client.post(te`/realtime/calls/${e}/reject`,{body:t,...r,headers:tU([{Accept:"*/*"},r?.headers])})}}class nz extends e8{create(e,t){return this._client.post("/realtime/client_secrets",{body:e,...t})}}class nL extends e8{constructor(){super(...arguments),this.clientSecrets=new nz(this._client),this.calls=new nB(this._client)}}function nD(e,t){return t&&nU(t)?nF(e,t):{...e,output_parsed:null,output:e.output.map(e=>"function_call"===e.type?{...e,parsed_arguments:null}:"message"===e.type?{...e,content:e.content.map(e=>({...e,parsed:null}))}:e)}}function nF(e,t){let r=e.output.map(e=>{if("function_call"===e.type)return{...e,parsed_arguments:nV(t,e)};if("message"===e.type){let r=e.content.map(e=>"output_text"===e.type?{...e,parsed:nH(t,e.text)}:e);return{...e,content:r}}return e}),n=Object.assign({},e,{output:r});return Object.getOwnPropertyDescriptor(e,"output_text")||nK(n),Object.defineProperty(n,"output_parsed",{enumerable:!0,get(){for(let e of n.output)if("message"===e.type){for(let t of e.content)if("output_text"===t.type&&null!==t.parsed)return t.parsed}return null}}),n}function nH(e,t){return e.text?.format?.type!=="json_schema"?null:"$parseRaw"in e.text?.format?(e.text?.format).$parseRaw(t):JSON.parse(t)}function nU(e){return!!tn(e.text?.format)}function nq(e){return e?.$brand==="auto-parseable-tool"}function nW(e,t){return e.find(e=>"function"===e.type&&e.name===t)}function nV(e,t){let r=nW(e.tools??[],t.name);return{...t,...t,parsed_arguments:nq(r)?r.$parseRaw(t.arguments):r?.strict?JSON.parse(t.arguments):null}}function nK(e){let t=[];for(let r of e.output)if("message"===r.type)for(let e of r.content)"output_text"===e.type&&t.push(e.text);e.output_text=t.join("")}nL.ClientSecrets=nz,nL.Calls=nB;class nG extends tm{constructor(e){super(),r1.add(this),r2.set(this,void 0),r6.set(this,void 0),r3.set(this,void 0),s(this,r2,e,"f")}static createResponse(e,t,r){let n=new nG(t);return n._run(()=>n._createOrRetrieveResponse(e,t,{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),n}async _createOrRetrieveResponse(e,t,r){let n,i=r?.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort())),l(this,r1,"m",r5).call(this);let o=null;for await(let i of("response_id"in t?(n=await e.responses.retrieve(t.response_id,{stream:!0},{...r,signal:this.controller.signal,stream:!0}),o=t.starting_after??null):n=await e.responses.create({...t,stream:!0},{...r,signal:this.controller.signal}),this._connected(),n))l(this,r1,"m",r4).call(this,i,o);if(n.controller.signal?.aborted)throw new p;return l(this,r1,"m",r8).call(this)}[(r2=new WeakMap,r6=new WeakMap,r3=new WeakMap,r1=new WeakSet,r5=function(){this.ended||s(this,r6,void 0,"f")},r4=function(e,t){if(this.ended)return;let r=(e,r)=>{(null==t||r.sequence_number>t)&&this._emit(e,r)},n=l(this,r1,"m",r9).call(this,e);switch(r("event",e),e.type){case"response.output_text.delta":{let t=n.output[e.output_index];if(!t)throw new d(`missing output at index ${e.output_index}`);if("message"===t.type){let n=t.content[e.content_index];if(!n)throw new d(`missing content at index ${e.content_index}`);if("output_text"!==n.type)throw new d(`expected content to be 'output_text', got ${n.type}`);r("response.output_text.delta",{...e,snapshot:n.text})}break}case"response.function_call_arguments.delta":{let t=n.output[e.output_index];if(!t)throw new d(`missing output at index ${e.output_index}`);"function_call"===t.type&&r("response.function_call_arguments.delta",{...e,snapshot:t.arguments});break}default:r(e.type,e)}},r8=function(){if(this.ended)throw new d("stream has ended, this shouldn't happen");let e=l(this,r6,"f");if(!e)throw new d("request ended without sending any events");s(this,r6,void 0,"f");let t=nX(e,l(this,r2,"f"));return s(this,r3,t,"f"),t},r9=function(e){let t=l(this,r6,"f");if(!t){if("response.created"!==e.type)throw new d(`When snapshot hasn't been set yet, expected 'response.created' event, got ${e.type}`);return s(this,r6,e.response,"f")}switch(e.type){case"response.output_item.added":t.output.push(e.item);break;case"response.content_part.added":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);let n=r.type,i=e.part;"message"===n&&"reasoning_text"!==i.type?r.content.push(i):"reasoning"===n&&"reasoning_text"===i.type&&(r.content||(r.content=[]),r.content.push(i));break}case"response.output_text.delta":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);if("message"===r.type){let t=r.content[e.content_index];if(!t)throw new d(`missing content at index ${e.content_index}`);if("output_text"!==t.type)throw new d(`expected content to be 'output_text', got ${t.type}`);t.text+=e.delta}break}case"response.function_call_arguments.delta":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);"function_call"===r.type&&(r.arguments+=e.delta);break}case"response.reasoning_text.delta":{let r=t.output[e.output_index];if(!r)throw new d(`missing output at index ${e.output_index}`);if("reasoning"===r.type){let t=r.content?.[e.content_index];if(!t)throw new d(`missing content at index ${e.content_index}`);if("reasoning_text"!==t.type)throw new d(`expected content to be 'reasoning_text', got ${t.type}`);t.text+=e.delta}break}case"response.completed":s(this,r6,e.response,"f")}return t},Symbol.asyncIterator)](){let e=[],t=[],r=!1;return this.on("event",r=>{let n=t.shift();n?n.resolve(r):e.push(r)}),this.on("end",()=>{for(let e of(r=!0,t))e.resolve(void 0);t.length=0}),this.on("abort",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),this.on("error",e=>{for(let n of(r=!0,t))n.reject(e);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise((e,r)=>t.push({resolve:e,reject:r})).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}async finalResponse(){await this.done();let e=l(this,r3,"f");if(!e)throw new d("stream ended without producing a ChatCompletion");return e}}function nX(e,t){return nD(e,t)}class nZ extends e8{list(e,t={},r){return this._client.getAPIList(te`/responses/${e}/input_items`,eD,{query:t,...r})}}class nY extends e8{constructor(){super(...arguments),this.inputItems=new nZ(this._client)}create(e,t){return this._client.post("/responses",{body:e,...t,stream:e.stream??!1})._thenUnwrap(e=>("object"in e&&"response"===e.object&&nK(e),e))}retrieve(e,t={},r){return this._client.get(te`/responses/${e}`,{query:t,...r,stream:t?.stream??!1})._thenUnwrap(e=>("object"in e&&"response"===e.object&&nK(e),e))}delete(e,t){return this._client.delete(te`/responses/${e}`,{...t,headers:tU([{Accept:"*/*"},t?.headers])})}parse(e,t){return this._client.responses.create(e,t)._thenUnwrap(t=>nF(t,e))}stream(e,t){return nG.createResponse(this._client,e,t)}cancel(e,t){return this._client.post(te`/responses/${e}/cancel`,t)}}nY.InputItems=nZ;class nJ extends e8{create(e,t,r){return this._client.post(te`/uploads/${e}/parts`,eK({body:t,...r},this._client))}}class nQ extends e8{constructor(){super(...arguments),this.parts=new nJ(this._client)}create(e,t){return this._client.post("/uploads",{body:e,...t})}cancel(e,t){return this._client.post(te`/uploads/${e}/cancel`,t)}complete(e,t,r){return this._client.post(te`/uploads/${e}/complete`,{body:t,...r})}}nQ.Parts=nJ;let n0=async e=>{let t=await Promise.allSettled(e),r=t.filter(e=>"rejected"===e.status);if(r.length){for(let e of r)console.error(e.reason);throw Error(`${r.length} promise(s) failed - see the above errors`)}let n=[];for(let e of t)"fulfilled"===e.status&&n.push(e.value);return n};class n1 extends e8{create(e,t,r){return this._client.post(te`/vector_stores/${e}/file_batches`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}retrieve(e,t,r){let{vector_store_id:n}=t;return this._client.get(te`/vector_stores/${n}/file_batches/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}cancel(e,t,r){let{vector_store_id:n}=t;return this._client.post(te`/vector_stores/${n}/file_batches/${e}/cancel`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async createAndPoll(e,t,r){let n=await this.create(e,t);return await this.poll(e,n.id,r)}listFiles(e,t,r){let{vector_store_id:n,...i}=t;return this._client.getAPIList(te`/vector_stores/${n}/file_batches/${e}/files`,eD,{query:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async poll(e,t,r){let n=tU([r?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":r?.pollIntervalMs?.toString()??void 0}]);for(;;){let{data:i,response:o}=await this.retrieve(t,{vector_store_id:e},{...r,headers:n}).withResponse();switch(i.status){case"in_progress":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{let e=o.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await z(a);break;case"failed":case"cancelled":case"completed":return i}}}async uploadAndPoll(e,{files:t,fileIds:r=[]},n){if(null==t||0==t.length)throw Error("No `files` provided to process. If you've already uploaded files you should use `.createAndPoll()` instead");let i=Math.min(n?.maxConcurrency??5,t.length),o=this._client,a=t.values(),s=[...r];async function l(e){for(let t of e){let e=await o.files.create({file:t,purpose:"assistants"},n);s.push(e.id)}}let c=Array(i).fill(a).map(l);return await n0(c),await this.createAndPoll(e,{file_ids:s})}}class n2 extends e8{create(e,t,r){return this._client.post(te`/vector_stores/${e}/files`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}retrieve(e,t,r){let{vector_store_id:n}=t;return this._client.get(te`/vector_stores/${n}/files/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}update(e,t,r){let{vector_store_id:n,...i}=t;return this._client.post(te`/vector_stores/${n}/files/${e}`,{body:i,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e,t={},r){return this._client.getAPIList(te`/vector_stores/${e}/files`,eD,{query:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}delete(e,t,r){let{vector_store_id:n}=t;return this._client.delete(te`/vector_stores/${n}/files/${e}`,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}async createAndPoll(e,t,r){let n=await this.create(e,t,r);return await this.poll(e,n.id,r)}async poll(e,t,r){let n=tU([r?.headers,{"X-Stainless-Poll-Helper":"true","X-Stainless-Custom-Poll-Interval":r?.pollIntervalMs?.toString()??void 0}]);for(;;){let i=await this.retrieve(t,{vector_store_id:e},{...r,headers:n}).withResponse(),o=i.data;switch(o.status){case"in_progress":let a=5e3;if(r?.pollIntervalMs)a=r.pollIntervalMs;else{let e=i.response.headers.get("openai-poll-after-ms");if(e){let t=parseInt(e);isNaN(t)||(a=t)}}await z(a);break;case"failed":case"completed":return o}}}async upload(e,t,r){let n=await this._client.files.create({file:t,purpose:"assistants"},r);return this.create(e,{file_id:n.id},r)}async uploadAndPoll(e,t,r){let n=await this.upload(e,t,r);return await this.poll(e,n.id,r)}content(e,t,r){let{vector_store_id:n}=t;return this._client.getAPIList(te`/vector_stores/${n}/files/${e}/content`,eL,{...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}class n6 extends e8{constructor(){super(...arguments),this.files=new n2(this._client),this.fileBatches=new n1(this._client)}create(e,t){return this._client.post("/vector_stores",{body:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}retrieve(e,t){return this._client.get(te`/vector_stores/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}update(e,t,r){return this._client.post(te`/vector_stores/${e}`,{body:t,...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}list(e={},t){return this._client.getAPIList("/vector_stores",eD,{query:e,...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}delete(e,t){return this._client.delete(te`/vector_stores/${e}`,{...t,headers:tU([{"OpenAI-Beta":"assistants=v2"},t?.headers])})}search(e,t,r){return this._client.getAPIList(te`/vector_stores/${e}/search`,eL,{body:t,method:"post",...r,headers:tU([{"OpenAI-Beta":"assistants=v2"},r?.headers])})}}n6.Files=n2,n6.FileBatches=n1;class n3 extends e8{create(e,t){return this._client.post("/videos",eV({body:e,...t},this._client))}retrieve(e,t){return this._client.get(te`/videos/${e}`,t)}list(e={},t){return this._client.getAPIList("/videos",eF,{query:e,...t})}delete(e,t){return this._client.delete(te`/videos/${e}`,t)}downloadContent(e,t={},r){return this._client.get(te`/videos/${e}/content`,{query:t,...r,headers:tU([{Accept:"application/binary"},r?.headers]),__binaryResponse:!0})}remix(e,t,r){return this._client.post(te`/videos/${e}/remix`,eV({body:t,...r},this._client))}}var n5=r(8963).Buffer;class n4 extends e8{constructor(){super(...arguments),r7.add(this)}async unwrap(e,t,r=this._client.webhookSecret,n=300){return await this.verifySignature(e,t,r,n),JSON.parse(e)}async verifySignature(e,t,r=this._client.webhookSecret,n=300){if("u"<typeof crypto||"function"!=typeof crypto.subtle.importKey||"function"!=typeof crypto.subtle.verify)throw Error("Webhook signature verification is only supported when the `crypto` global is defined");l(this,r7,"m",ne).call(this,r);let i=tU([t]).values,o=l(this,r7,"m",nt).call(this,i,"webhook-signature"),a=l(this,r7,"m",nt).call(this,i,"webhook-timestamp"),s=l(this,r7,"m",nt).call(this,i,"webhook-id"),c=parseInt(a,10);if(isNaN(c))throw new k("Invalid webhook timestamp format");let u=Math.floor(Date.now()/1e3);if(u-c>n)throw new k("Webhook timestamp is too old");if(c>u+n)throw new k("Webhook timestamp is too new");let f=o.split(" ").map(e=>e.startsWith("v1,")?e.substring(3):e),d=r.startsWith("whsec_")?n5.from(r.replace("whsec_",""),"base64"):n5.from(r,"utf-8"),h=s?`${s}.${a}.${e}`:`${a}.${e}`,p=await crypto.subtle.importKey("raw",d,{name:"HMAC",hash:"SHA-256"},!1,["verify"]);for(let e of f)try{let t=n5.from(e,"base64");if(await crypto.subtle.verify("HMAC",p,t,new TextEncoder().encode(h)))return}catch{continue}throw new k("The given webhook signature does not match the expected signature")}}r7=new WeakSet,ne=function(e){if("string"!=typeof e||0===e.length)throw Error("The webhook secret must either be set using the env var, OPENAI_WEBHOOK_SECRET, on the client class, OpenAI({ webhookSecret: '123' }), or passed to this function")},nt=function(e,t){if(!e)throw Error("Headers are required");let r=e.get(t);if(null==r)throw Error(`Missing required header: ${t}`);return r};class n8{constructor({baseURL:e=nl("OPENAI_BASE_URL"),apiKey:t=nl("OPENAI_API_KEY"),organization:r=nl("OPENAI_ORG_ID")??null,project:n=nl("OPENAI_PROJECT_ID")??null,webhookSecret:i=nl("OPENAI_WEBHOOK_SECRET")??null,...o}={}){if(nr.add(this),ni.set(this,void 0),this.completions=new nh(this),this.chat=new tD(this),this.embeddings=new ny(this),this.files=new nE(this),this.images=new nT(this),this.audio=new tK(this),this.moderations=new nP(this),this.models=new nN(this),this.fineTuning=new nI(this),this.graders=new nj(this),this.vectorStores=new n6(this),this.webhooks=new n4(this),this.beta=new nd(this),this.batches=new tG(this),this.uploads=new nQ(this),this.responses=new nY(this),this.realtime=new nL(this),this.conversations=new nv(this),this.evals=new nA(this),this.containers=new ng(this),this.videos=new n3(this),void 0===t)throw new d("Missing credentials. Please pass an `apiKey`, or set the `OPENAI_API_KEY` environment variable.");const a={apiKey:t,organization:r,project:n,webhookSecret:i,...o,baseURL:e||"https://api.openai.com/v1"};if(!a.dangerouslyAllowBrowser&&L())throw new d("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");this.baseURL=a.baseURL,this.timeout=a.timeout??nn.DEFAULT_TIMEOUT,this.logger=a.logger??console;const l="warn";this.logLevel=l,this.logLevel=eA(a.logLevel,"ClientOptions.logLevel",this)??eA(nl("OPENAI_LOG"),"process.env['OPENAI_LOG']",this)??l,this.fetchOptions=a.fetchOptions,this.maxRetries=a.maxRetries??2,this.fetch=a.fetch??V(),s(this,ni,Y,"f"),this._options=a,this.apiKey="string"==typeof t?t:"Missing Key",this.organization=r,this.project=n,this.webhookSecret=i}withOptions(e){return new this.constructor({...this._options,baseURL:this.baseURL,maxRetries:this.maxRetries,timeout:this.timeout,logger:this.logger,logLevel:this.logLevel,fetch:this.fetch,fetchOptions:this.fetchOptions,apiKey:this.apiKey,organization:this.organization,project:this.project,webhookSecret:this.webhookSecret,...e})}defaultQuery(){return this._options.defaultQuery}validateHeaders({values:e,nulls:t}){}async authHeaders(e){return tU([{Authorization:`Bearer ${this.apiKey}`}])}stringifyQuery(e){return ep(e,{arrayFormat:"brackets"})}getUserAgent(){return`${this.constructor.name}/JS 6.3.0`}defaultIdempotencyKey(){return`stainless-node-retry-${c()}`}makeStatusError(e,t,r,n){return h.generate(e,t,r,n)}async _callApiKey(){let e,t=this._options.apiKey;if("function"!=typeof t)return!1;try{e=await t()}catch(e){if(e instanceof d)throw e;throw new d(`Failed to get token from 'apiKey' function: ${e.message}`,{cause:e})}if("string"!=typeof e||!e)throw new d(`Expected 'apiKey' function argument to return a string but it returned ${e}`);return this.apiKey=e,!0}buildURL(e,t,r){let n=!l(this,nr,"m",no).call(this)&&r||this.baseURL,i=new URL(O(e)?e:n+(n.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),o=this.defaultQuery();return j(o)||(t={...o,...t}),"object"==typeof t&&t&&!Array.isArray(t)&&(i.search=this.stringifyQuery(t)),i.toString()}async prepareOptions(e){await this._callApiKey()}async prepareRequest(e,{url:t,options:r}){}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,r){return this.request(Promise.resolve(r).then(r=>({method:e,path:t,...r})))}request(e,t=null){return new eP(this,this.makeRequest(e,t,void 0))}async makeRequest(e,t,r){let n=await e,i=n.maxRetries??this.maxRetries;null==t&&(t=i),await this.prepareOptions(n);let{req:o,url:a,timeout:s}=await this.buildRequest(n,{retryCount:i-t});await this.prepareRequest(o,{url:a,options:n});let l="log_"+(0x1000000*Math.random()|0).toString(16).padStart(6,"0"),c=void 0===r?"":`, retryOf: ${r}`,d=Date.now();if(ek(this).debug(`[${l}] sending request`,eC({retryOfRequestLogID:r,method:n.method,url:a,options:n,headers:o.headers})),n.signal?.aborted)throw new p;let h=new AbortController,b=await this.fetchWithTimeout(a,o,s,h).catch(f),v=Date.now();if(b instanceof globalThis.Error){let e=`retrying, ${t} attempts remaining`;if(n.signal?.aborted)throw new p;let i=u(b)||/timed? ?out/i.test(String(b)+("cause"in b?String(b.cause):""));if(t)return ek(this).info(`[${l}] connection ${i?"timed out":"failed"} - ${e}`),ek(this).debug(`[${l}] connection ${i?"timed out":"failed"} (${e})`,eC({retryOfRequestLogID:r,url:a,durationMs:v-d,message:b.message})),this.retryRequest(n,t,r??l);if(ek(this).info(`[${l}] connection ${i?"timed out":"failed"} - error; no more retries left`),ek(this).debug(`[${l}] connection ${i?"timed out":"failed"} (error; no more retries left)`,eC({retryOfRequestLogID:r,url:a,durationMs:v-d,message:b.message})),i)throw new g;throw new m({cause:b})}let y=[...b.headers.entries()].filter(([e])=>"x-request-id"===e).map(([e,t])=>", "+e+": "+JSON.stringify(t)).join(""),w=`[${l}${c}${y}] ${o.method} ${a} ${b.ok?"succeeded":"failed"} with status ${b.status} in ${v-d}ms`;if(!b.ok){let e=await this.shouldRetry(b);if(t&&e){let e=`retrying, ${t} attempts remaining`;return await Z(b.body),ek(this).info(`${w} - ${e}`),ek(this).debug(`[${l}] response error (${e})`,eC({retryOfRequestLogID:r,url:b.url,status:b.status,headers:b.headers,durationMs:v-d})),this.retryRequest(n,t,r??l,b.headers)}let i=e?"error; no more retries left":"error; not retryable";ek(this).info(`${w} - ${i}`);let o=await b.text().catch(e=>f(e).message),a=B(o),s=a?void 0:o;throw ek(this).debug(`[${l}] response error (${i})`,eC({retryOfRequestLogID:r,url:b.url,status:b.status,headers:b.headers,message:s,durationMs:Date.now()-d})),this.makeStatusError(b.status,a,s,b.headers)}return ek(this).info(w),ek(this).debug(`[${l}] response start`,eC({retryOfRequestLogID:r,url:b.url,status:b.status,headers:b.headers,durationMs:v-d})),{response:b,options:n,controller:h,requestLogID:l,retryOfRequestLogID:r,startTime:d}}getAPIList(e,t,r){return this.requestAPIList(t,{method:"get",path:e,...r})}requestAPIList(e,t){return new ez(this,this.makeRequest(t,null,void 0),e)}async fetchWithTimeout(e,t,r,n){let{signal:i,method:o,...a}=t||{};i&&i.addEventListener("abort",()=>n.abort());let s=setTimeout(()=>n.abort(),r),l=globalThis.ReadableStream&&a.body instanceof globalThis.ReadableStream||"object"==typeof a.body&&null!==a.body&&Symbol.asyncIterator in a.body,c={signal:n.signal,...l?{duplex:"half"}:{},method:"GET",...a};o&&(c.method=o.toUpperCase());try{return await this.fetch.call(void 0,e,c)}finally{clearTimeout(s)}}async shouldRetry(e){let t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||409===e.status||429===e.status||!!(e.status>=500))}async retryRequest(e,t,r,n){let i,o=n?.get("retry-after-ms");if(o){let e=parseFloat(o);Number.isNaN(e)||(i=e)}let a=n?.get("retry-after");if(a&&!i){let e=parseFloat(a);i=Number.isNaN(e)?Date.parse(a)-Date.now():1e3*e}if(!(i&&0<=i&&i<6e4)){let r=e.maxRetries??this.maxRetries;i=this.calculateDefaultRetryTimeoutMillis(t,r)}return await z(i),this.makeRequest(e,t-1,r)}calculateDefaultRetryTimeoutMillis(e,t){return Math.min(.5*Math.pow(2,t-e),8)*(1-.25*Math.random())*1e3}async buildRequest(e,{retryCount:t=0}={}){let r={...e},{method:n,path:i,query:o,defaultBaseURL:a}=r,s=this.buildURL(i,o,a);"timeout"in r&&P("timeout",r.timeout),r.timeout=r.timeout??this.timeout;let{bodyHeaders:l,body:c}=this.buildBody({options:r}),u=await this.buildHeaders({options:e,method:n,bodyHeaders:l,retryCount:t});return{req:{method:n,headers:u,...r.signal&&{signal:r.signal},...globalThis.ReadableStream&&c instanceof globalThis.ReadableStream&&{duplex:"half"},...c&&{body:c},...this.fetchOptions??{},...r.fetchOptions??{}},url:s,timeout:r.timeout}}async buildHeaders({options:e,method:t,bodyHeaders:r,retryCount:n}){let i={};this.idempotencyHeader&&"get"!==t&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),i[this.idempotencyHeader]=e.idempotencyKey);let o=tU([i,{Accept:"application/json","User-Agent":this.getUserAgent(),"X-Stainless-Retry-Count":String(n),...e.timeout?{"X-Stainless-Timeout":String(Math.trunc(e.timeout/1e3))}:{},...W(),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project},await this.authHeaders(e),this._options.defaultHeaders,r,e.headers]);return this.validateHeaders(o),o.values}buildBody({options:{body:e,headers:t}}){if(!e)return{bodyHeaders:void 0,body:void 0};let r=tU([t]);return ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof DataView||"string"==typeof e&&r.values.has("content-type")||globalThis.Blob&&e instanceof globalThis.Blob||e instanceof FormData||e instanceof URLSearchParams||globalThis.ReadableStream&&e instanceof globalThis.ReadableStream?{bodyHeaders:void 0,body:e}:"object"==typeof e&&(Symbol.asyncIterator in e||Symbol.iterator in e&&"next"in e&&"function"==typeof e.next)?{bodyHeaders:void 0,body:G(e)}:l(this,ni,"f").call(this,{body:e,headers:r})}}nn=n8,ni=new WeakMap,nr=new WeakSet,no=function(){return"https://api.openai.com/v1"!==this.baseURL},n8.OpenAI=nn,n8.DEFAULT_TIMEOUT=6e5,n8.OpenAIError=d,n8.APIError=h,n8.APIConnectionError=m,n8.APIConnectionTimeoutError=g,n8.APIUserAbortError=p,n8.NotFoundError=w,n8.ConflictError=x,n8.RateLimitError=E,n8.BadRequestError=b,n8.AuthenticationError=v,n8.InternalServerError=_,n8.PermissionDeniedError=y,n8.UnprocessableEntityError=A,n8.InvalidWebhookSignatureError=k,n8.toFile=e3,n8.Completions=nh,n8.Chat=tD,n8.Embeddings=ny,n8.Files=nE,n8.Images=nT,n8.Audio=tK,n8.Moderations=nP,n8.Models=nN,n8.FineTuning=nI,n8.Graders=nj,n8.VectorStores=n6,n8.Webhooks=n4,n8.Beta=nd,n8.Batches=tG,n8.Uploads=nQ,n8.Responses=nY,n8.Realtime=nL,n8.Conversations=nv,n8.Evals=nA,n8.Containers=ng,n8.Videos=n3,r(85409)},37817(e,t,r){"use strict";let n,i;r.d(t,{io:()=>eX});var o,a={};r.r(a),r.d(a,{Decoder:()=>eN,Encoder:()=>eT,PacketType:()=>o,isPacketValid:()=>eH,protocol:()=>ej});let s=Object.create(null);s.open="0",s.close="1",s.ping="2",s.pong="3",s.message="4",s.upgrade="5",s.noop="6";let l=Object.create(null);Object.keys(s).forEach(e=>{l[s[e]]=e});let c={type:"error",data:"parser error"},u="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),f="function"==typeof ArrayBuffer,d=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,h=({type:e,data:t},r,n)=>{if(u&&t instanceof Blob)if(r)return n(t);else return p(t,n);if(f&&(t instanceof ArrayBuffer||d(t)))if(r)return n(t);else return p(new Blob([t]),n);return n(s[e]+(t||""))},p=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function m(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function g(e,t){return u&&e.data instanceof Blob?e.data.arrayBuffer().then(m).then(t):f&&(e.data instanceof ArrayBuffer||d(e.data))?t(m(e.data)):void h(e,!1,e=>{n||(n=new TextEncoder),t(n.encode(e))})}let b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="u"<typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<b.length;e++)v[b.charCodeAt(e)]=e;let y=e=>{let t=.75*e.length,r=e.length,n,i=0,o,a,s,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)o=v[e.charCodeAt(n)],a=v[e.charCodeAt(n+1)],s=v[e.charCodeAt(n+2)],l=v[e.charCodeAt(n+3)],u[i++]=o<<2|a>>4,u[i++]=(15&a)<<4|s>>2,u[i++]=(3&s)<<6|63&l;return c},w="function"==typeof ArrayBuffer,x=(e,t)=>{if("string"!=typeof e)return{type:"message",data:E(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:A(e.substring(1),t)}:l[r]?e.length>1?{type:l[r],data:e.substring(1)}:{type:l[r]}:c},A=(e,t)=>w?E(y(e),t):{base64:!0,data:e},E=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,_="\x1e",S=(e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,o)=>{h(e,!1,e=>{n[o]=e,++i===r&&t(n.join(_))})})},$=(e,t)=>{let r=e.split(_),n=[];for(let e=0;e<r.length;e++){let i=x(r[e],t);if(n.push(i),"error"===i.type)break}return n};function k(){return new TransformStream({transform(e,t){g(e,r=>{let n,i=r.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}function C(e){return e.reduce((e,t)=>e+t.length,0)}function O(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function M(e,t){i||(i=new TextDecoder);let r=[],n=0,o=-1,a=!1;return new TransformStream({transform(s,l){for(r.push(s);;){if(0===n){if(1>C(r))break;let e=O(r,1);a=(128&e[0])==128,n=(o=127&e[0])<126?3:126===o?1:2}else if(1===n){if(2>C(r))break;let e=O(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>C(r))break;let e=O(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){l.enqueue(c);break}o=0x100000000*i+t.getUint32(4),n=3}else{if(C(r)<o)break;let e=O(r,o);l.enqueue(x(a?e:i.decode(e),t)),n=0}if(0===o||o>e){l.enqueue(c);break}}}})}let I=4;function R(e){if(e)return j(e)}function j(e){for(var t in R.prototype)e[t]=R.prototype[t];return e}R.prototype.on=R.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},R.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},R.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},R.prototype.hasListeners=function(e){return!!this.listeners(e).length};let T="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),N="u">typeof self?self:"u">typeof window?window:Function("return this")(),P="arraybuffer";function B(){}function z(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let L=N.setTimeout,D=N.clearTimeout;function F(e,t){t.useNativeTimers?(e.setTimeoutFn=L.bind(N),e.clearTimeoutFn=D.bind(N)):(e.setTimeoutFn=N.setTimeout.bind(N),e.clearTimeoutFn=N.clearTimeout.bind(N))}let H=1.33;function U(e){return"string"==typeof e?q(e):Math.ceil((e.byteLength||e.size)*H)}function q(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function W(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function V(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function K(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}class G extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class X extends R{constructor(e){super(),this.writable=!1,F(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new G(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=x(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=V(e);return t.length?"?"+t:""}}class Z extends X{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};$(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,S(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=W()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let Y=!1;try{Y="u">typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let J=Y;function Q(){}class ee extends Z{constructor(e){if(super(e),"u">typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="u">typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class et extends R{constructor(e,t,r){super(),this.createRequest=e,F(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;let t=z(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"u">typeof document&&(this._index=et.requestsCount++,et.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=Q,e)try{this._xhr.abort()}catch(e){}"u">typeof document&&delete et.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function er(){for(let e in et.requests)et.requests.hasOwnProperty(e)&&et.requests[e].abort()}et.requestsCount=0,et.requests={},"u">typeof document&&("function"==typeof attachEvent?attachEvent("onunload",er):"function"==typeof addEventListener&&addEventListener("onpagehide"in N?"pagehide":"unload",er,!1));let en=function(){let e=eo({xdomain:!1});return e&&null!==e.responseType}();class ei extends ee{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=en&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new et(eo,this.uri(),e)}}function eo(e){let t=e.xdomain;try{if("u">typeof XMLHttpRequest&&(!t||J))return new XMLHttpRequest}catch(e){}if(!t)try{return new N[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let ea="u">typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class es extends X{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=ea?{}:z(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;h(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(e){}n&&T(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=W()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let el=N.WebSocket||N.MozWebSocket;class ec extends es{createSocket(e,t,r){return ea?new el(e,t,r):t?new el(e,t):new el(e)}doWrite(e,t){this.ws.send(t)}}class eu extends X{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=M(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=k();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let i=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&T(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}}let ef={websocket:ec,webtransport:eu,polling:ei},ed=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,eh=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ep(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=ed.exec(e||""),o={},a=14;for(;a--;)o[eh[a]]=i[a]||"";return -1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=em(o,o.path),o.queryKey=eg(o,o.query),o}function em(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&n.splice(0,1),"/"==t.slice(-1)&&n.splice(n.length-1,1),n}function eg(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}let eb="function"==typeof addEventListener&&"function"==typeof removeEventListener,ev=[];eb&&addEventListener("offline",()=>{ev.forEach(e=>e())},!1);class ey extends R{constructor(e,t={}){var r,n;if(super(),this.binaryType=P,this.writeBuffer=[],this._prevBufferLen=0,this._upgrades=[],this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const r=ep(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=ep(t.host).host);if(F(this,t),this.secure=null!=t.secure?t.secure:"u">typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("u">typeof location?location.hostname:"localhost"),this.port=t.port||("u">typeof location&&location.port?location.port:this.secure?"443":"80"),t.transportImplementations&&t.transports)throw Error("specifying both 'transportImplementations' and 'transports' options is not supported");t.transportImplementations||(null==(r=t.transports)?void 0:r.length)&&"function"==typeof t.transports[0]?(this.transports=[],this._transportsByName=Object.create(null),(null!=(n=t.transportImplementations)?n:t.transports).forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})):(this.transports=t.transports?[...t.transports]:["polling","websocket","webtransport"],this._transportsByName=ef),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=K(this.opts.query)),eb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ev.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=B()),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=I,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&ey.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}_probe(e){let t=this.createTransport(e),r=!1;ey.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ey.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){r||(r=!0,c(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function l(e){t&&e.name!==t.name&&i()}let c=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",ey.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._upgrades=this._filterUpgrades(e.upgrades),this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+=U(r)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,T(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(ey.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),eb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=ev.indexOf(this._offlineEventListener);-1!==e&&ev.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}function ew(e,t="",r){let n=e;r=r||"u">typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=ep(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}ey.protocol=I,ey.protocol;let ex="function"==typeof ArrayBuffer,eA=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,eE=Object.prototype.toString,e_="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===eE.call(Blob),eS="function"==typeof File||"u">typeof File&&"[object FileConstructor]"===eE.call(File);function e$(e){return ex&&(e instanceof ArrayBuffer||eA(e))||e_&&e instanceof Blob||eS&&e instanceof File}function ek(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(ek(e[t]))return!0;return!1}if(e$(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return ek(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&ek(e[t]))return!0;return!1}function eC(e){let t=[],r=e.data,n=e;return n.data=eO(r,t),n.attachments=t.length,{packet:n,buffers:t}}function eO(e,t,r){if(!e)return e;if(e$(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){let r=Array(e.length);for(let n=0;n<e.length;n++)r[n]=eO(e[n],t);return r}if("object"==typeof e&&!(e instanceof Date)){if(e.toJSON&&"function"==typeof e.toJSON&&!r)return eO(e.toJSON(),t,!0);let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=eO(e[r],t));return n}return e}function eM(e,t){return e.data=eI(e.data,t),delete e.attachments,e}function eI(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=eI(e[r],t);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=eI(e[r],t));return e}let eR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ej=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class eT{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&ek(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=eC(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}class eN extends R{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof e?{reviver:e}:e)}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===o.BINARY_EVENT;r||t.type===o.BINARY_ACK?(t.type=r?o.EVENT:o.ACK,this.reconstructor=new eP(t)):super.emitReserved("decoded",t)}else if(e$(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");let o=Number(i);if(!ez(o)||o<1)throw Error("Illegal attachments");if(o>this.opts.maxAttachments)throw Error("too many attachments");r.attachments=o}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(eN.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return eD(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||eD(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eR.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eP{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=eM(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eB(e){return"string"==typeof e}let ez=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function eL(e){return void 0===e||ez(e)}function eD(e){return"[object Object]"===Object.prototype.toString.call(e)}function eF(e,t){switch(e){case o.CONNECT:return void 0===t||eD(t);case o.DISCONNECT:return void 0===t;case o.EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eR.indexOf(t[0]));case o.ACK:return Array.isArray(t);case o.CONNECT_ERROR:return"string"==typeof t||eD(t);default:return!1}}function eH(e){return eB(e.nsp)&&eL(e.id)&&eF(e.type,e.data)}function eU(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let eq=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eW extends R{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eU(e,"open",this.onopen.bind(this)),eU(e,"packet",this.onpacket.bind(this)),eU(e,"error",this.onerror.bind(this)),eU(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,i;if(eq.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let a={type:o.EVENT,data:t};if(a.options={},a.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),a.id=e}let s=null==(n=null==(r=this.io.engine)?void 0:r.transport)?void 0:n.writable,l=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!s||(l?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!=(r=this.flags.timeout)?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),o=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>(this._queue[0],null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:o.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function eV(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eV.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},eV.prototype.reset=function(){this.attempts=0},eV.prototype.setMin=function(e){this.ms=e},eV.prototype.setMax=function(e){this.max=e},eV.prototype.setJitter=function(e){this.jitter=e};class eK extends R{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,F(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(r=t.randomizationFactor)?r:.5),this.backoff=new eV({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ey(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=eU(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=eU(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eU(e,"ping",this.onping.bind(this)),eU(e,"data",this.ondata.bind(this)),eU(e,"error",this.onerror.bind(this)),eU(e,"close",this.onclose.bind(this)),eU(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){T(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eW(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null==(r=this.engine)||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eG={};function eX(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=ew(e,(t=t||{}).path||"/socket.io"),i=n.source,o=n.id,a=n.path,s=eG[o]&&a in eG[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?r=new eK(i,t):(eG[o]||(eG[o]=new eK(i,t)),r=eG[o]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(eX,{Manager:eK,Socket:eW,io:eX,connect:eX})},28526(e,t,r){"use strict";let n;r.d(t,{A:()=>c});let i="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),o=new Uint8Array(16);function a(){if(!n){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(o)}let s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function l(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}let c=function(e,t,r){if(i&&!t&&!e)return i();let n=(e=e||{}).random??e.rng?.()??a();if(n.length<16)throw Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return l(n)}},10749(e,t,r){"use strict";r.d(t,{G:()=>o,eq:()=>i});var n=r(83738);let i=n.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e)},83738(e,t,r){"use strict";var n,i;r.d(t,{CR:()=>a,ZS:()=>n,Zp:()=>o}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(n||(n={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(i||(i={}));let o=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return Number.isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":if(Array.isArray(e))return o.array;if(null===e)return o.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return o.promise;if("u">typeof Map&&e instanceof Map)return o.map;if("u">typeof Set&&e instanceof Set)return o.set;if("u">typeof Date&&e instanceof Date)return o.date;return o.object;default:return o.unknown}}},88403(e,t,r){"use strict";let n;r.d(t,{k5:()=>eq,gM:()=>eF,g1:()=>eH,kY:()=>o,ai:()=>eP,zM:()=>eB,Ik:()=>eL,YO:()=>ez,Yj:()=>eN,eu:()=>eU,KC:()=>eD});var i,o,a=r(10749),s=r(83738);let l=(e,t)=>{let r;switch(e.code){case a.eq.invalid_type:r=e.received===s.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,s.ZS.jsonStringifyReplacer)}`;break;case a.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${s.ZS.joinValues(e.keys,", ")}`;break;case a.eq.invalid_union:r="Invalid input";break;case a.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${s.ZS.joinValues(e.options)}`;break;case a.eq.invalid_enum_value:r=`Invalid enum value. Expected ${s.ZS.joinValues(e.options)}, received '${e.received}'`;break;case a.eq.invalid_arguments:r="Invalid function arguments";break;case a.eq.invalid_return_type:r="Invalid function return type";break;case a.eq.invalid_date:r="Invalid date";break;case a.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:s.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.eq.custom:r="Invalid input";break;case a.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case a.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,s.ZS.assertNever(e)}return{message:r}},c=l;function u(){return c}!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(i||(i={}));let f=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function d(e,t){let r=u(),n=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return p;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return h.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return p;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let p=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),b=e=>"aborted"===e.status,v=e=>"dirty"===e.status,y=e=>"valid"===e.status,w=e=>"u">typeof Promise&&e instanceof Promise;class x{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let A=(e,t)=>{if(y(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new a.G(e.common.issues);return this._error=t,this._error}}};function E(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class _{get description(){return this._def.description}_getType(e){return(0,s.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,s.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:(0,s.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return A(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return y(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>y(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return A(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.eq.custom,...r(t)});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new e$({schema:this,typeName:o.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ek.create(this,this._def)}nullable(){return eC.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return es.create(this)}promise(){return eS.create(this,this._def)}or(e){return eu.create([this,e],this._def)}and(e){return ep.create(this,e,this._def)}transform(e){return new e$({...E(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new eO({...E(this._def),innerType:this,defaultValue:t,typeName:o.ZodDefault})}brand(){return new eR({typeName:o.ZodBranded,type:this,...E(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new eM({...E(this._def),innerType:this,catchValue:t,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ej.create(this,e)}readonly(){return eT.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let S=/^c[^\s-]{8,}$/i,$=/^[0-9a-z]+$/,k=/^[0-9A-HJKMNP-TV-Z]{26}$/i,C=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,O=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,I=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",T=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,P=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,B=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,z=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,L=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,D="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",F=RegExp(`^${D}$`);function H(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function U(e){return RegExp(`^${H(e)}$`)}function q(e){let t=`${D}T${H(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function W(e,t){return!!(("v4"===t||!t)&&T.test(e)||("v6"===t||!t)&&P.test(e))}function V(e,t){if(!M.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}function K(e,t){return!!(("v4"===t||!t)&&N.test(e)||("v6"===t||!t)&&B.test(e))}class G extends _{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==s.Zp.string){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.string,received:t.parsedType}),p}let r=new h;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("max"===i.kind)e.data.length>i.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,o=e.data.length<i.value;(n||o)&&(t=this._getOrReturnCtx(e,t),n?d(t,{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&d(t,{code:a.eq.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if("email"===i.kind)R.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("emoji"===i.kind)n||(n=RegExp(j,"u")),n.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("uuid"===i.kind)C.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("nanoid"===i.kind)O.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"nanoid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("cuid"===i.kind)S.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("cuid2"===i.kind)$.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("ulid"===i.kind)k.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("url"===i.kind)try{new URL(e.data)}catch{d(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.eq.invalid_string,message:i.message}),r.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.eq.invalid_string,message:i.message}),r.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):"datetime"===i.kind?q(i).test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"datetime",message:i.message}),r.dirty()):"date"===i.kind?F.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"date",message:i.message}),r.dirty()):"time"===i.kind?U(i).test(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"time",message:i.message}),r.dirty()):"duration"===i.kind?I.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"duration",code:a.eq.invalid_string,message:i.message}),r.dirty()):"ip"===i.kind?W(e.data,i.version)||(d(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.eq.invalid_string,message:i.message}),r.dirty()):"jwt"===i.kind?V(e.data,i.alg)||(d(t=this._getOrReturnCtx(e,t),{validation:"jwt",code:a.eq.invalid_string,message:i.message}),r.dirty()):"cidr"===i.kind?K(e.data,i.version)||(d(t=this._getOrReturnCtx(e,t),{validation:"cidr",code:a.eq.invalid_string,message:i.message}),r.dirty()):"base64"===i.kind?z.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"base64",code:a.eq.invalid_string,message:i.message}),r.dirty()):"base64url"===i.kind?L.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"base64url",code:a.eq.invalid_string,message:i.message}),r.dirty()):s.ZS.assertNever(i);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.eq.invalid_string,...i.errToObj(r)})}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new G({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new G({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new G({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function X(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}G.create=e=>new G({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...E(e)});class Z extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==s.Zp.number){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.number,received:t.parsedType}),p}let r=new h;for(let n of this._def.checks)"int"===n.kind?s.ZS.isInteger(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==X(e.data,n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:a.eq.not_finite,message:n.message}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&s.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...E(e)});class Y extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==s.Zp.bigint)return this._getInvalidInput(e);let r=new h;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.bigint,received:t.parsedType}),p}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Y.create=e=>new Y({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...E(e)});class J extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==s.Zp.boolean){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.boolean,received:t.parsedType}),p}return g(e.data)}}J.create=e=>new J({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...E(e)});class Q extends _{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==s.Zp.date){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.date,received:t.parsedType}),p}if(Number.isNaN(e.data.getTime()))return d(this._getOrReturnCtx(e),{code:a.eq.invalid_date}),p;let r=new h;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(d(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...E(e)});class ee extends _{_parse(e){if(this._getType(e)!==s.Zp.symbol){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.symbol,received:t.parsedType}),p}return g(e.data)}}ee.create=e=>new ee({typeName:o.ZodSymbol,...E(e)});class et extends _{_parse(e){if(this._getType(e)!==s.Zp.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.undefined,received:t.parsedType}),p}return g(e.data)}}et.create=e=>new et({typeName:o.ZodUndefined,...E(e)});class er extends _{_parse(e){if(this._getType(e)!==s.Zp.null){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.null,received:t.parsedType}),p}return g(e.data)}}er.create=e=>new er({typeName:o.ZodNull,...E(e)});class en extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}en.create=e=>new en({typeName:o.ZodAny,...E(e)});class ei extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}ei.create=e=>new ei({typeName:o.ZodUnknown,...E(e)});class eo extends _{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.never,received:t.parsedType}),p}}eo.create=e=>new eo({typeName:o.ZodNever,...E(e)});class ea extends _{_parse(e){if(this._getType(e)!==s.Zp.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.void,received:t.parsedType}),p}return g(e.data)}}ea.create=e=>new ea({typeName:o.ZodVoid,...E(e)});class es extends _{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==s.Zp.array)return d(t,{code:a.eq.invalid_type,expected:s.Zp.array,received:t.parsedType}),p;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(d(t,{code:e?a.eq.too_big:a.eq.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(d(t,{code:a.eq.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(d(t,{code:a.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new x(t,e,t.path,r)))).then(e=>h.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new x(t,e,t.path,r)));return h.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new es({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new es({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new es({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}function el(e){if(e instanceof ec){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=ek.create(el(n))}return new ec({...e._def,shape:()=>t})}if(e instanceof es)return new es({...e._def,type:el(e.element)});if(e instanceof ek)return ek.create(el(e.unwrap()));if(e instanceof eC)return eC.create(el(e.unwrap()));if(e instanceof em)return em.create(e.items.map(e=>el(e)));else return e}es.create=(e,t)=>new es({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...E(t)});class ec extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=s.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==s.Zp.object){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.object,received:t.parsedType}),p}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof eo&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let l=[];for(let e of i){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new x(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof eo){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(d(r,{code:a.eq.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new x(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(t,e)):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new ec({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new ec({...this._def,unknownKeys:"strip"})}passthrough(){return new ec({...this._def,unknownKeys:"passthrough"})}extend(e){return new ec({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ec({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ec({...this._def,catchall:e})}pick(e){let t={};for(let r of s.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new ec({...this._def,shape:()=>t})}omit(e){let t={};for(let r of s.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new ec({...this._def,shape:()=>t})}deepPartial(){return el(this)}partial(e){let t={};for(let r of s.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new ec({...this._def,shape:()=>t})}required(e){let t={};for(let r of s.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ek;)e=e._def.innerType;t[r]=e}return new ec({...this._def,shape:()=>t})}keyof(){return eA(s.ZS.objectKeys(this.shape))}}ec.create=(e,t)=>new ec({shape:()=>e,unknownKeys:"strip",catchall:eo.create(),typeName:o.ZodObject,...E(t)}),ec.strictCreate=(e,t)=>new ec({shape:()=>e,unknownKeys:"strict",catchall:eo.create(),typeName:o.ZodObject,...E(t)}),ec.lazycreate=(e,t)=>new ec({shape:e,unknownKeys:"strip",catchall:eo.create(),typeName:o.ZodObject,...E(t)});class eu extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new a.G(e.ctx.common.issues));return d(t,{code:a.eq.invalid_union,unionErrors:r}),p}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new a.G(e));return d(t,{code:a.eq.invalid_union,unionErrors:i}),p}}get options(){return this._def.options}}eu.create=(e,t)=>new eu({options:e,typeName:o.ZodUnion,...E(t)});let ef=e=>{if(e instanceof ew)return ef(e.schema);if(e instanceof e$)return ef(e.innerType());if(e instanceof ex)return[e.value];if(e instanceof eE)return e.options;if(e instanceof e_)return s.ZS.objectValues(e.enum);else if(e instanceof eO)return ef(e._def.innerType);else if(e instanceof et)return[void 0];else if(e instanceof er)return[null];else if(e instanceof ek)return[void 0,...ef(e.unwrap())];else if(e instanceof eC)return[null,...ef(e.unwrap())];else if(e instanceof eR)return ef(e.unwrap());else if(e instanceof eT)return ef(e.unwrap());else if(e instanceof eM)return ef(e._def.innerType);else return[]};class ed extends _{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.Zp.object)return d(t,{code:a.eq.invalid_type,expected:s.Zp.object,received:t.parsedType}),p;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(d(t,{code:a.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),p)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ef(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new ed({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...E(r)})}}function eh(e,t){let r=(0,s.CR)(e),n=(0,s.CR)(t);if(e===t)return{valid:!0,data:e};if(r===s.Zp.object&&n===s.Zp.object){let r=s.ZS.objectKeys(t),n=s.ZS.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=eh(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===s.Zp.array&&n===s.Zp.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n<e.length;n++){let i=eh(e[n],t[n]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===s.Zp.date&&n===s.Zp.date&&+e==+t)return{valid:!0,data:e};return{valid:!1}}class ep extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(b(e)||b(n))return p;let i=eh(e.value,n.value);return i.valid?((v(e)||v(n))&&t.dirty(),{status:t.value,value:i.data}):(d(r,{code:a.eq.invalid_intersection_types}),p)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ep.create=(e,t,r)=>new ep({left:e,right:t,typeName:o.ZodIntersection,...E(r)});class em extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.array)return d(r,{code:a.eq.invalid_type,expected:s.Zp.array,received:r.parsedType}),p;if(r.data.length<this._def.items.length)return d(r,{code:a.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),p;!this._def.rest&&r.data.length>this._def.items.length&&(d(r,{code:a.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new x(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>h.mergeArray(t,e)):h.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new em({...this._def,rest:e})}}em.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new em({items:e,typeName:o.ZodTuple,rest:null,...E(t)})};class eg extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.object)return d(r,{code:a.eq.invalid_type,expected:s.Zp.object,received:r.parsedType}),p;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new x(r,e,r.path,e)),value:o._parse(new x(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?h.mergeObjectAsync(t,n):h.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eg(t instanceof _?{keyType:e,valueType:t,typeName:o.ZodRecord,...E(r)}:{keyType:G.create(),valueType:e,typeName:o.ZodRecord,...E(t)})}}class eb extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.map)return d(r,{code:a.eq.invalid_type,expected:s.Zp.map,received:r.parsedType}),p;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new x(r,e,r.path,[o,"key"])),value:i._parse(new x(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}eb.create=(e,t,r)=>new eb({valueType:t,keyType:e,typeName:o.ZodMap,...E(r)});class ev extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.set)return d(r,{code:a.eq.invalid_type,expected:s.Zp.set,received:r.parsedType}),p;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(d(r,{code:a.eq.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(d(r,{code:a.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return p;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>i._parse(new x(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ev({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new ev({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ev.create=(e,t)=>new ev({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...E(t)});class ey extends _{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.Zp.function)return d(t,{code:a.eq.invalid_type,expected:s.Zp.function,received:t.parsedType}),p;function r(e,r){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:a.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:a.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof eS){let e=this;return g(async function(...t){let s=new a.G([]),l=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),c=await Reflect.apply(o,this,l);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw s.addIssue(n(c,e)),s})})}{let e=this;return g(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new a.G([r(t,s.error)]);let l=Reflect.apply(o,this,s.data),c=e._def.returns.safeParse(l,i);if(!c.success)throw new a.G([n(l,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ey({...this._def,args:em.create(e).rest(ei.create())})}returns(e){return new ey({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ey({args:e||em.create([]).rest(ei.create()),returns:t||ei.create(),typeName:o.ZodFunction,...E(r)})}}class ew extends _{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ew.create=(e,t)=>new ew({getter:e,typeName:o.ZodLazy,...E(t)});class ex extends _{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return d(t,{received:t.data,code:a.eq.invalid_literal,expected:this._def.value}),p}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eA(e,t){return new eE({values:e,typeName:o.ZodEnum,...E(t)})}ex.create=(e,t)=>new ex({value:e,typeName:o.ZodLiteral,...E(t)});class eE extends _{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{expected:s.ZS.joinValues(r),received:t.parsedType,code:a.eq.invalid_type}),p}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{received:t.data,code:a.eq.invalid_enum_value,options:r}),p}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eE.create(e,{...this._def,...t})}exclude(e,t=this._def){return eE.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eE.create=eA;class e_ extends _{_parse(e){let t=s.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==s.Zp.string&&r.parsedType!==s.Zp.number){let e=s.ZS.objectValues(t);return d(r,{expected:s.ZS.joinValues(e),received:r.parsedType,code:a.eq.invalid_type}),p}if(this._cache||(this._cache=new Set(s.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=s.ZS.objectValues(t);return d(r,{received:r.data,code:a.eq.invalid_enum_value,options:e}),p}return g(e.data)}get enum(){return this._def.values}}e_.create=(e,t)=>new e_({values:e,typeName:o.ZodNativeEnum,...E(t)});class eS extends _{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==s.Zp.promise&&!1===t.common.async?(d(t,{code:a.eq.invalid_type,expected:s.Zp.promise,received:t.parsedType}),p):g((t.parsedType===s.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eS.create=(e,t)=>new eS({type:e,typeName:o.ZodPromise,...E(t)});class e$ extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{d(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return p;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return p;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?p:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?p:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>y(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):p);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!y(e))return p;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}s.ZS.assertNever(n)}}e$.create=(e,t,r)=>new e$({schema:e,typeName:o.ZodEffects,effect:t,...E(r)}),e$.createWithPreprocess=(e,t,r)=>new e$({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...E(r)});class ek extends _{_parse(e){return this._getType(e)===s.Zp.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ek.create=(e,t)=>new ek({innerType:e,typeName:o.ZodOptional,...E(t)});class eC extends _{_parse(e){return this._getType(e)===s.Zp.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:o.ZodNullable,...E(t)});class eO extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===s.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eO.create=(e,t)=>new eO({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...E(t)});class eM extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eM.create=(e,t)=>new eM({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...E(t)});class eI extends _{_parse(e){if(this._getType(e)!==s.Zp.nan){let t=this._getOrReturnCtx(e);return d(t,{code:a.eq.invalid_type,expected:s.Zp.nan,received:t.parsedType}),p}return{status:"valid",value:e.data}}}eI.create=e=>new eI({typeName:o.ZodNaN,...E(e)}),Symbol("zod_brand");class eR extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ej extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ej({in:e,out:t,typeName:o.ZodPipeline})}}class eT extends _{_parse(e){let t=this._def.innerType._parse(e),r=e=>(y(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eT.create=(e,t)=>new eT({innerType:e,typeName:o.ZodReadonly,...E(t)}),ec.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(o||(o={}));let eN=G.create,eP=Z.create;eI.create,Y.create;let eB=J.create;Q.create,ee.create,et.create,er.create,en.create,ei.create,eo.create,ea.create;let ez=es.create,eL=ec.create;ec.strictCreate;let eD=eu.create,eF=ed.create;ep.create,em.create;let eH=eg.create;eb.create,ev.create,ey.create,ew.create;let eU=ex.create,eq=eE.create;e_.create,eS.create,e$.create,ek.create,eC.create,e$.createWithPreprocess,ej.create},64564(e,t,r){"use strict";function n(e,t,r){function n(r,n){var i;for(let o in Object.defineProperty(r,"_zod",{value:r._zod??{},enumerable:!1}),(i=r._zod).traits??(i.traits=new Set),r._zod.traits.add(e),t(r,n),a.prototype)o in r||Object.defineProperty(r,o,{value:a.prototype[o].bind(r)});r._zod.constr=a,r._zod.def=n}let i=r?.Parent??Object;class o extends i{}function a(e){var t;let i=r?.Parent?new o:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}r.d(t,{EB:()=>rJ,k5:()=>nO,L5:()=>nm,g1:()=>nk,zM:()=>nh,ai:()=>nc,re:()=>nx,YO:()=>ny,Yj:()=>rY,bv:()=>nw,eu:()=>nI,KC:()=>nE}),Object.freeze({status:"aborted"}),Symbol("zod_brand");class i extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let o={};function a(e){return e&&Object.assign(o,e),o}let s=/^[cC][^\s-]{8,}$/,l=/^[0-9a-z]+$/,c=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,u=/^[0-9a-vA-V]{20}$/,f=/^[A-Za-z0-9]{27}$/,d=/^[a-zA-Z0-9_-]{21}$/,h=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,p=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,m=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,g=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function v(){return RegExp(b,"u")}let y=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,w=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,x=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,A=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,E=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,_=/^[A-Za-z0-9_-]*$/,S=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,$=/^\+(?:[0-9]){6,14}[0-9]$/,k="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",C=RegExp(`^${k}$`);function O(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function M(e){return RegExp(`^${O(e)}$`)}function I(e){let t=O({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-]\\d{2}:\\d{2})");let n=`${t}(?:${r.join("|")})`;return RegExp(`^${k}T(?:${n})$`)}let R=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},j=/^\d+$/,T=/^-?\d+(?:\.\d+)?/i,N=/true|false/i,P=/^[^A-Z]*$/,B=/^[^a-z]*$/;function z(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function L(e,t){return"bigint"==typeof t?t.toString():t}function D(e){let t=!1;return{get value(){if(!t){let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error("cached value already set")}}}function F(e){return null==e}function H(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function U(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}function q(e,t,r){let n=!1;Object.defineProperty(e,t,{get(){if(!n){let n=r();return e[t]=n,n}throw Error("cached value already set")},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function W(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function V(e){return JSON.stringify(e)}let K=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function G(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let X=D(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function Z(e){if(!1===G(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==G(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}let Y=new Set(["string","number","symbol"]);function J(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ee(e){let t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return(delete t.message,"string"==typeof t.error)?{...t,error:()=>t.error}:t}function et(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let er={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function en(e,t){let r={},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(r[e]=n.shape[e])}return Q(e,{...e._zod.def,shape:r,checks:[]})}function ei(e,t){let r={...e._zod.def.shape},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Q(e,{...e._zod.def,shape:r,checks:[]})}function eo(e,t){if(!Z(t))throw Error("Invalid input to extend: expected a plain object");let r={...e._zod.def,get shape(){let r={...e._zod.def.shape,...t};return W(this,"shape",r),r},checks:[]};return Q(e,r)}function ea(e,t){return Q(e,{...e._zod.def,get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return W(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})}function es(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return Q(t,{...t._zod.def,shape:i,checks:[]})}function el(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return Q(t,{...t._zod.def,shape:i,checks:[]})}function ec(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function eu(e,t){return t.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function ef(e){return"string"==typeof e?e:e?.message}function ed(e,t,r){let n={...e,path:e.path??[]};return e.message||(n.message=ef(e.inst?._zod.def?.error?.(e))??ef(t?.error?.(e))??ef(r.customError?.(e))??ef(r.localeError?.(e))??"Invalid input"),delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function eh(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ep(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}let em=n("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),eg={number:"number",bigint:"bigint",object:"date"},eb=n("$ZodCheckLessThan",(e,t)=>{em.init(e,t);let r=eg[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ev=n("$ZodCheckGreaterThan",(e,t)=>{em.init(e,t);let r=eg[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ey=n("$ZodCheckMultipleOf",(e,t)=>{em.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===U(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ew=n("$ZodCheckNumberFormat",(e,t)=>{em.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,o]=er[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=o,r&&(n.pattern=j)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s))return void a.issues.push({expected:n,format:t.format,code:"invalid_type",input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}))}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),ex=n("$ZodCheckMaxLength",(e,t)=>{var r;em.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!F(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=eh(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),eA=n("$ZodCheckMinLength",(e,t)=>{var r;em.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!F(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=eh(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),eE=n("$ZodCheckLengthEquals",(e,t)=>{var r;em.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!F(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let o=eh(n),a=i>t.length;r.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),e_=n("$ZodCheckStringFormat",(e,t)=>{var r,n;em.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),eS=n("$ZodCheckRegex",(e,t)=>{e_.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),e$=n("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=P),e_.init(e,t)}),ek=n("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=B),e_.init(e,t)}),eC=n("$ZodCheckIncludes",(e,t)=>{em.init(e,t);let r=J(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),eO=n("$ZodCheckStartsWith",(e,t)=>{em.init(e,t);let r=RegExp(`^${J(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),eM=n("$ZodCheckEndsWith",(e,t)=>{em.init(e,t);let r=RegExp(`.*${J(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),eI=n("$ZodCheckOverwrite",(e,t)=>{em.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class eR{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let ej=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,L,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eT=n("$ZodError",ej),eN=n("$ZodError",ej,{Parent:Error});function eP(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function eB(e,t){let r=t||function(e){return e.message},n={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)n._errors.push(r(t));else{let e=n,i=0;for(;i<t.path.length;){let n=t.path[i];i===t.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(r(t))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(e),n}let ez=e=>(t,r,n,o)=>{let s=n?Object.assign(n,{async:!1}):{async:!1},l=t._zod.run({value:r,issues:[]},s);if(l instanceof Promise)throw new i;if(l.issues.length){let t=new(o?.Err??e)(l.issues.map(e=>ed(e,s,a())));throw K(t,o?.callee),t}return l.value},eL=e=>async(t,r,n,i)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ed(e,o,a())));throw K(t,i?.callee),t}return s.value},eD=e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new i;return s.issues.length?{success:!1,error:new(e??eT)(s.issues.map(e=>ed(e,o,a())))}:{success:!0,data:s.value}},eF=eD(eN),eH=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>ed(e,i,a())))}:{success:!0,data:o.value}},eU=eH(eN),eq={major:4,minor:0,patch:0},eW=n("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eq;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,o=ec(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(o)continue;let t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new i;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(o||(o=ec(e,t)))});else{if(e.issues.length===t)continue;o||(o=ec(e,t))}}return n?n.then(()=>e):e};e._zod.run=(r,o)=>{let a=e._zod.parse(r,o);if(a instanceof Promise){if(!1===o.async)throw new i;return a.then(e=>t(e,n,o))}return t(a,n,o)}}e["~standard"]={validate:t=>{try{let r=eF(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return eU(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),eV=n("$ZodString",(e,t)=>{eW.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??R(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),eK=n("$ZodStringFormat",(e,t)=>{e_.init(e,t),eV.init(e,t)}),eG=n("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=p),eK.init(e,t)}),eX=n("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=m(e))}else t.pattern??(t.pattern=m());eK.init(e,t)}),eZ=n("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=g),eK.init(e,t)}),eY=n("$ZodURL",(e,t)=>{eK.init(e,t),e._zod.check=r=>{try{let n=r.value,i=new URL(n),o=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:S.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),!n.endsWith("/")&&o.endsWith("/")?r.value=o.slice(0,-1):r.value=o;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),eJ=n("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=v()),eK.init(e,t)}),eQ=n("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=d),eK.init(e,t)}),e0=n("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=s),eK.init(e,t)}),e1=n("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=l),eK.init(e,t)}),e2=n("$ZodULID",(e,t)=>{t.pattern??(t.pattern=c),eK.init(e,t)}),e6=n("$ZodXID",(e,t)=>{t.pattern??(t.pattern=u),eK.init(e,t)}),e3=n("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=f),eK.init(e,t)}),e5=n("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=I(t)),eK.init(e,t)}),e4=n("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=C),eK.init(e,t)}),e8=n("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=M(t)),eK.init(e,t)}),e9=n("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=h),eK.init(e,t)}),e7=n("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=y),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),te=n("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=w),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),tt=n("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=x),eK.init(e,t)}),tr=n("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=A),eK.init(e,t),e._zod.check=r=>{let[n,i]=r.value.split("/");try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function tn(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let ti=n("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=E),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{tn(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function to(e){if(!_.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return tn(t.padEnd(4*Math.ceil(t.length/4),"="))}let ta=n("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=_),eK.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{to(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),ts=n("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$),eK.init(e,t)});function tl(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}let tc=n("$ZodJWT",(e,t)=>{eK.init(e,t),e._zod.check=r=>{tl(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),tu=n("$ZodNumber",(e,t)=>{eW.init(e,t),e._zod.pattern=e._zod.bag.pattern??T,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),tf=n("$ZodNumber",(e,t)=>{ew.init(e,t),tu.init(e,t)}),td=n("$ZodBoolean",(e,t)=>{eW.init(e,t),e._zod.pattern=N,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),th=n("$ZodUnknown",(e,t)=>{eW.init(e,t),e._zod.parse=e=>e}),tp=n("$ZodNever",(e,t)=>{eW.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function tm(e,t,r){e.issues.length&&t.issues.push(...eu(r,e.issues)),t.value[r]=e.value}let tg=n("$ZodArray",(e,t)=>{eW.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let o=[];for(let e=0;e<i.length;e++){let a=i[e],s=t.element._zod.run({value:a,issues:[]},n);s instanceof Promise?o.push(s.then(t=>tm(t,r,e))):tm(s,r,e)}return o.length?Promise.all(o).then(()=>r):r}});function tb(e,t,r){e.issues.length&&t.issues.push(...eu(r,e.issues)),t.value[r]=e.value}function tv(e,t,r,n){e.issues.length?void 0===n[r]?r in n?t.value[r]=void 0:t.value[r]=e.value:t.issues.push(...eu(r,e.issues)):void 0===e.value?r in n&&(t.value[r]=void 0):t.value[r]=e.value}let ty=n("$ZodObject",(e,t)=>{let r,n;eW.init(e,t);let i=D(()=>{let e=Object.keys(t.shape);for(let r of e)if(!(t.shape[r]instanceof eW))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=et(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}});q(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let a=e=>{let t=new eR(["shape","payload","ctx"]),r=i.value,n=e=>{let t=V(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let o=Object.create(null),a=0;for(let e of r.keys)o[e]=`key_${a++}`;for(let e of(t.write("const newResult = {}"),r.keys))if(r.optionalKeys.has(e)){let r=o[e];t.write(`const ${r} = ${n(e)};`);let i=V(e);t.write(`
291
+ if (${r}.issues.length) {
292
+ if (input[${i}] === undefined) {
293
+ if (${i} in input) {
294
+ newResult[${i}] = undefined;
295
+ }
296
+ } else {
297
+ payload.issues = payload.issues.concat(
298
+ ${r}.issues.map((iss) => ({
299
+ ...iss,
300
+ path: iss.path ? [${i}, ...iss.path] : [${i}],
301
+ }))
302
+ );
303
+ }
304
+ } else if (${r}.value === undefined) {
305
+ if (${i} in input) newResult[${i}] = undefined;
306
+ } else {
307
+ newResult[${i}] = ${r}.value;
308
+ }
309
+ `)}else{let r=o[e];t.write(`const ${r} = ${n(e)};`),t.write(`
310
+ if (${r}.issues.length) payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
311
+ ...iss,
312
+ path: iss.path ? [${V(e)}, ...iss.path] : [${V(e)}]
313
+ })));`),t.write(`newResult[${V(e)}] = ${r}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)},s=G,l=!o.jitless,c=X,u=l&&c.value,f=t.catchall;e._zod.parse=(o,c)=>{n??(n=i.value);let d=o.value;if(!s(d))return o.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),o;let h=[];if(l&&u&&c?.async===!1&&!0!==c.jitless)r||(r=a(t.shape)),o=r(o,c);else{o.value={};let e=n.shape;for(let t of n.keys){let r=e[t],n=r._zod.run({value:d[t],issues:[]},c),i="optional"===r._zod.optin&&"optional"===r._zod.optout;n instanceof Promise?h.push(n.then(e=>i?tv(e,o,t,d):tb(e,o,t))):i?tv(n,o,t,d):tb(n,o,t)}}if(!f)return h.length?Promise.all(h).then(()=>o):o;let p=[],m=n.keySet,g=f._zod,b=g.def.type;for(let e of Object.keys(d)){if(m.has(e))continue;if("never"===b){p.push(e);continue}let t=g.run({value:d[e],issues:[]},c);t instanceof Promise?h.push(t.then(t=>tb(t,o,e))):tb(t,o,e)}return(p.length&&o.issues.push({code:"unrecognized_keys",keys:p,input:d,inst:e}),h.length)?Promise.all(h).then(()=>o):o}});function tw(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ed(e,n,a())))}),t}let tx=n("$ZodUnion",(e,t)=>{eW.init(e,t),q(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),q(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),q(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),q(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>H(e.source)).join("|")})$`)}}),e._zod.parse=(r,n)=>{let i=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},n);if(t instanceof Promise)o.push(t),i=!0;else{if(0===t.issues.length)return t;o.push(t)}}return i?Promise.all(o).then(t=>tw(t,r,e,n)):tw(o,r,e,n)}}),tA=n("$ZodIntersection",(e,t)=>{eW.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),o=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,r])=>t_(e,t,r)):t_(e,i,o)}});function tE(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Z(e)&&Z(t)){let r=Object.keys(t),n=Object.keys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=tE(e[r],t[r]);if(!n.valid)return{valid:!1,mergeErrorPath:[r,...n.mergeErrorPath]};i[r]=n.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let i=tE(e[n],t[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function t_(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),ec(e))return e;let n=tE(t.value,r.value);if(!n.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}let tS=n("$ZodRecord",(e,t)=>{eW.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Z(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let o=[];if(t.keyType._zod.values){let a,s=t.keyType._zod.values;for(let e of(r.value={},s))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let a=t.valueType._zod.run({value:i[e],issues:[]},n);a instanceof Promise?o.push(a.then(t=>{t.issues.length&&r.issues.push(...eu(e,t.issues)),r.value[e]=t.value})):(a.issues.length&&r.issues.push(...eu(e,a.issues)),r.value[e]=a.value)}for(let e in i)s.has(e)||(a=a??[]).push(e);a&&a.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:a})}else for(let s of(r.value={},Reflect.ownKeys(i))){if("__proto__"===s)continue;let l=t.keyType._zod.run({value:s,issues:[]},n);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:l.issues.map(e=>ed(e,n,a())),input:s,path:[s],inst:e}),r.value[l.value]=l.value;continue}let c=t.valueType._zod.run({value:i[s],issues:[]},n);c instanceof Promise?o.push(c.then(e=>{e.issues.length&&r.issues.push(...eu(s,e.issues)),r.value[l.value]=e.value})):(c.issues.length&&r.issues.push(...eu(s,c.issues)),r.value[l.value]=c.value)}return o.length?Promise.all(o).then(()=>r):r}}),t$=n("$ZodEnum",(e,t)=>{eW.init(e,t);let r=z(t.entries);e._zod.values=new Set(r),e._zod.pattern=RegExp(`^(${r.filter(e=>Y.has(typeof e)).map(e=>"string"==typeof e?J(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:r,input:i,inst:e}),t}}),tk=n("$ZodLiteral",(e,t)=>{eW.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?J(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(r,n)=>{let i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),tC=n("$ZodTransform",(e,t)=>{eW.init(e,t),e._zod.parse=(e,r)=>{let n=t.transform(e.value,e);if(r.async)return(n instanceof Promise?n:Promise.resolve(n)).then(t=>(e.value=t,e));if(n instanceof Promise)throw new i;return e.value=n,e}}),tO=n("$ZodOptional",(e,t)=>{eW.init(e,t),e._zod.optin="optional",e._zod.optout="optional",q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),q(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${H(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,r):void 0===e.value?e:t.innerType._zod.run(e,r)}),tM=n("$ZodNullable",(e,t)=>{eW.init(e,t),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${H(e.source)}|null)$`):void 0}),q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),tI=n("$ZodDefault",(e,t)=>{eW.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>tR(e,t)):tR(n,t)}});function tR(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let tj=n("$ZodPrefault",(e,t)=>{eW.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),tT=n("$ZodNonOptional",(e,t)=>{eW.init(e,t),q(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>tN(t,e)):tN(i,e)}});function tN(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let tP=n("$ZodCatch",(e,t)=>{eW.init(e,t),e._zod.optin="optional",q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ed(e,r,a()))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ed(e,r,a()))},input:e.value}),e.issues=[]),e)}}),tB=n("$ZodPipe",(e,t)=>{eW.init(e,t),q(e._zod,"values",()=>t.in._zod.values),q(e._zod,"optin",()=>t.in._zod.optin),q(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(e,r)=>{let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>tz(e,t,r)):tz(n,t,r)}});function tz(e,t,r){return ec(e)?e:t.out._zod.run({value:e.value,issues:e.issues},r)}let tL=n("$ZodReadonly",(e,t)=>{eW.init(e,t),q(e._zod,"propValues",()=>t.innerType._zod.propValues),q(e._zod,"values",()=>t.innerType._zod.values),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(tD):tD(n)}});function tD(e){return e.value=Object.freeze(e.value),e}let tF=n("$ZodCustom",(e,t)=>{em.init(e,t),eW.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>tH(t,r,n,e));tH(i,r,n,e)}});function tH(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(ep(e))}}Symbol("ZodOutput"),Symbol("ZodInput");class tU{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){let r=t[0];if(this._map.set(e,r),r&&"object"==typeof r&&"id"in r){if(this._idmap.has(r.id))throw Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};return delete r.id,{...r,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}let tq=function(){return new tU}();function tW(e,t){return new e({type:"string",...ee(t)})}function tV(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ee(t)})}function tK(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ee(t)})}function tG(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ee(t)})}function tX(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ee(t)})}function tZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ee(t)})}function tY(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ee(t)})}function tJ(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ee(t)})}function tQ(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ee(t)})}function t0(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ee(t)})}function t1(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ee(t)})}function t2(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ee(t)})}function t6(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ee(t)})}function t3(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ee(t)})}function t5(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ee(t)})}function t4(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ee(t)})}function t8(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ee(t)})}function t9(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ee(t)})}function t7(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ee(t)})}function re(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ee(t)})}function rt(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ee(t)})}function rr(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ee(t)})}function rn(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ee(t)})}function ri(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ee(t)})}function ro(e,t){return new e({type:"string",format:"date",check:"string_format",...ee(t)})}function ra(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ee(t)})}function rs(e,t){return new e({type:"string",format:"duration",check:"string_format",...ee(t)})}function rl(e,t){return new e({type:"number",checks:[],...ee(t)})}function rc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ee(t)})}function ru(e,t){return new e({type:"boolean",...ee(t)})}function rf(e){return new e({type:"unknown"})}function rd(e,t){return new e({type:"never",...ee(t)})}function rh(e,t){return new eb({check:"less_than",...ee(t),value:e,inclusive:!1})}function rp(e,t){return new eb({check:"less_than",...ee(t),value:e,inclusive:!0})}function rm(e,t){return new ev({check:"greater_than",...ee(t),value:e,inclusive:!1})}function rg(e,t){return new ev({check:"greater_than",...ee(t),value:e,inclusive:!0})}function rb(e,t){return new ey({check:"multiple_of",...ee(t),value:e})}function rv(e,t){return new ex({check:"max_length",...ee(t),maximum:e})}function ry(e,t){return new eA({check:"min_length",...ee(t),minimum:e})}function rw(e,t){return new eE({check:"length_equals",...ee(t),length:e})}function rx(e,t){return new eS({check:"string_format",format:"regex",...ee(t),pattern:e})}function rA(e){return new e$({check:"string_format",format:"lowercase",...ee(e)})}function rE(e){return new ek({check:"string_format",format:"uppercase",...ee(e)})}function r_(e,t){return new eC({check:"string_format",format:"includes",...ee(t),includes:e})}function rS(e,t){return new eO({check:"string_format",format:"starts_with",...ee(t),prefix:e})}function r$(e,t){return new eM({check:"string_format",format:"ends_with",...ee(t),suffix:e})}function rk(e){return new eI({check:"overwrite",tx:e})}function rC(e){return rk(t=>t.normalize(e))}function rO(){return rk(e=>e.trim())}function rM(){return rk(e=>e.toLowerCase())}function rI(){return rk(e=>e.toUpperCase())}function rR(e,t,r){return new e({type:"array",element:t,...ee(r)})}function rj(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ee(r)})}let rT=n("ZodISODateTime",(e,t)=>{e5.init(e,t),rJ.init(e,t)});function rN(e){return ri(rT,e)}let rP=n("ZodISODate",(e,t)=>{e4.init(e,t),rJ.init(e,t)});function rB(e){return ro(rP,e)}let rz=n("ZodISOTime",(e,t)=>{e8.init(e,t),rJ.init(e,t)});function rL(e){return ra(rz,e)}let rD=n("ZodISODuration",(e,t)=>{e9.init(e,t),rJ.init(e,t)});function rF(e){return rs(rD,e)}let rH=(e,t)=>{eT.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>eB(e,t)},flatten:{value:t=>eP(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})};n("ZodError",rH);let rU=n("ZodError",rH,{Parent:Error}),rq=ez(rU),rW=eL(rU),rV=eD(rU),rK=eH(rU),rG=n("ZodType",(e,t)=>(eW.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,r)=>Q(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>rq(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>rV(e,t,r),e.parseAsync=async(t,r)=>rW(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>rK(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(nJ(t,r)),e.superRefine=t=>e.check(nQ(t)),e.overwrite=t=>e.check(rk(t)),e.optional=()=>nN(e),e.nullable=()=>nB(e),e.nullish=()=>nN(nB(e)),e.nonoptional=t=>nU(e,t),e.array=()=>ny(e),e.or=t=>nE([e,t]),e.and=t=>nS(e,t),e.transform=t=>nK(e,nj(t)),e.default=t=>nL(e,t),e.prefault=t=>nF(e,t),e.catch=t=>nW(e,t),e.pipe=t=>nK(e,t),e.readonly=()=>nX(e),e.describe=t=>{let r=e.clone();return tq.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>tq.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return tq.get(e);let r=e.clone();return tq.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),rX=n("_ZodString",(e,t)=>{eV.init(e,t),rG.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(rx(...t)),e.includes=(...t)=>e.check(r_(...t)),e.startsWith=(...t)=>e.check(rS(...t)),e.endsWith=(...t)=>e.check(r$(...t)),e.min=(...t)=>e.check(ry(...t)),e.max=(...t)=>e.check(rv(...t)),e.length=(...t)=>e.check(rw(...t)),e.nonempty=(...t)=>e.check(ry(1,...t)),e.lowercase=t=>e.check(rA(t)),e.uppercase=t=>e.check(rE(t)),e.trim=()=>e.check(rO()),e.normalize=(...t)=>e.check(rC(...t)),e.toLowerCase=()=>e.check(rM()),e.toUpperCase=()=>e.check(rI())}),rZ=n("ZodString",(e,t)=>{eV.init(e,t),rX.init(e,t),e.email=t=>e.check(tV(rQ,t)),e.url=t=>e.check(tJ(r2,t)),e.jwt=t=>e.check(rn(ns,t)),e.emoji=t=>e.check(tQ(r6,t)),e.guid=t=>e.check(tK(r0,t)),e.uuid=t=>e.check(tG(r1,t)),e.uuidv4=t=>e.check(tX(r1,t)),e.uuidv6=t=>e.check(tZ(r1,t)),e.uuidv7=t=>e.check(tY(r1,t)),e.nanoid=t=>e.check(t0(r3,t)),e.guid=t=>e.check(tK(r0,t)),e.cuid=t=>e.check(t1(r5,t)),e.cuid2=t=>e.check(t2(r4,t)),e.ulid=t=>e.check(t6(r8,t)),e.base64=t=>e.check(re(ni,t)),e.base64url=t=>e.check(rt(no,t)),e.xid=t=>e.check(t3(r9,t)),e.ksuid=t=>e.check(t5(r7,t)),e.ipv4=t=>e.check(t4(ne,t)),e.ipv6=t=>e.check(t8(nt,t)),e.cidrv4=t=>e.check(t9(nr,t)),e.cidrv6=t=>e.check(t7(nn,t)),e.e164=t=>e.check(rr(na,t)),e.datetime=t=>e.check(rN(t)),e.date=t=>e.check(rB(t)),e.time=t=>e.check(rL(t)),e.duration=t=>e.check(rF(t))});function rY(e){return tW(rZ,e)}let rJ=n("ZodStringFormat",(e,t)=>{eK.init(e,t),rX.init(e,t)}),rQ=n("ZodEmail",(e,t)=>{eZ.init(e,t),rJ.init(e,t)}),r0=n("ZodGUID",(e,t)=>{eG.init(e,t),rJ.init(e,t)}),r1=n("ZodUUID",(e,t)=>{eX.init(e,t),rJ.init(e,t)}),r2=n("ZodURL",(e,t)=>{eY.init(e,t),rJ.init(e,t)}),r6=n("ZodEmoji",(e,t)=>{eJ.init(e,t),rJ.init(e,t)}),r3=n("ZodNanoID",(e,t)=>{eQ.init(e,t),rJ.init(e,t)}),r5=n("ZodCUID",(e,t)=>{e0.init(e,t),rJ.init(e,t)}),r4=n("ZodCUID2",(e,t)=>{e1.init(e,t),rJ.init(e,t)}),r8=n("ZodULID",(e,t)=>{e2.init(e,t),rJ.init(e,t)}),r9=n("ZodXID",(e,t)=>{e6.init(e,t),rJ.init(e,t)}),r7=n("ZodKSUID",(e,t)=>{e3.init(e,t),rJ.init(e,t)}),ne=n("ZodIPv4",(e,t)=>{e7.init(e,t),rJ.init(e,t)}),nt=n("ZodIPv6",(e,t)=>{te.init(e,t),rJ.init(e,t)}),nr=n("ZodCIDRv4",(e,t)=>{tt.init(e,t),rJ.init(e,t)}),nn=n("ZodCIDRv6",(e,t)=>{tr.init(e,t),rJ.init(e,t)}),ni=n("ZodBase64",(e,t)=>{ti.init(e,t),rJ.init(e,t)}),no=n("ZodBase64URL",(e,t)=>{ta.init(e,t),rJ.init(e,t)}),na=n("ZodE164",(e,t)=>{ts.init(e,t),rJ.init(e,t)}),ns=n("ZodJWT",(e,t)=>{tc.init(e,t),rJ.init(e,t)}),nl=n("ZodNumber",(e,t)=>{tu.init(e,t),rG.init(e,t),e.gt=(t,r)=>e.check(rm(t,r)),e.gte=(t,r)=>e.check(rg(t,r)),e.min=(t,r)=>e.check(rg(t,r)),e.lt=(t,r)=>e.check(rh(t,r)),e.lte=(t,r)=>e.check(rp(t,r)),e.max=(t,r)=>e.check(rp(t,r)),e.int=t=>e.check(nf(t)),e.safe=t=>e.check(nf(t)),e.positive=t=>e.check(rm(0,t)),e.nonnegative=t=>e.check(rg(0,t)),e.negative=t=>e.check(rh(0,t)),e.nonpositive=t=>e.check(rp(0,t)),e.multipleOf=(t,r)=>e.check(rb(t,r)),e.step=(t,r)=>e.check(rb(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function nc(e){return rl(nl,e)}let nu=n("ZodNumberFormat",(e,t)=>{tf.init(e,t),nl.init(e,t)});function nf(e){return rc(nu,e)}let nd=n("ZodBoolean",(e,t)=>{td.init(e,t),rG.init(e,t)});function nh(e){return ru(nd,e)}let np=n("ZodUnknown",(e,t)=>{th.init(e,t),rG.init(e,t)});function nm(){return rf(np)}let ng=n("ZodNever",(e,t)=>{tp.init(e,t),rG.init(e,t)});function nb(e){return rd(ng,e)}let nv=n("ZodArray",(e,t)=>{tg.init(e,t),rG.init(e,t),e.element=t.element,e.min=(t,r)=>e.check(ry(t,r)),e.nonempty=t=>e.check(ry(1,t)),e.max=(t,r)=>e.check(rv(t,r)),e.length=(t,r)=>e.check(rw(t,r)),e.unwrap=()=>e.element});function ny(e,t){return rR(nv,e,t)}let nw=n("ZodObject",(e,t)=>{ty.init(e,t),rG.init(e,t),q(e,"shape",()=>t.shape),e.keyof=()=>nO(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:nm()}),e.loose=()=>e.clone({...e._zod.def,catchall:nm()}),e.strict=()=>e.clone({...e._zod.def,catchall:nb()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>eo(e,t),e.merge=t=>ea(e,t),e.pick=t=>en(e,t),e.omit=t=>ei(e,t),e.partial=(...t)=>es(nT,e,t[0]),e.required=(...t)=>el(nH,e,t[0])});function nx(e,t){return new nw({type:"object",get shape(){return W(this,"shape",{...e}),this.shape},catchall:nb(),...ee(t)})}let nA=n("ZodUnion",(e,t)=>{tx.init(e,t),rG.init(e,t),e.options=t.options});function nE(e,t){return new nA({type:"union",options:e,...ee(t)})}let n_=n("ZodIntersection",(e,t)=>{tA.init(e,t),rG.init(e,t)});function nS(e,t){return new n_({type:"intersection",left:e,right:t})}let n$=n("ZodRecord",(e,t)=>{tS.init(e,t),rG.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function nk(e,t,r){return new n$({type:"record",keyType:e,valueType:t,...ee(r)})}let nC=n("ZodEnum",(e,t)=>{t$.init(e,t),rG.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new nC({...t,checks:[],...ee(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new nC({...t,checks:[],...ee(n),entries:i})}});function nO(e,t){return new nC({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...ee(t)})}let nM=n("ZodLiteral",(e,t)=>{tk.init(e,t),rG.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function nI(e,t){return new nM({type:"literal",values:Array.isArray(e)?e:[e],...ee(t)})}let nR=n("ZodTransform",(e,t)=>{tC.init(e,t),rG.init(e,t),e._zod.parse=(r,n)=>{r.addIssue=n=>{if("string"==typeof n)r.issues.push(ep(n,r.value,t));else{let t=n;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=r.value),t.inst??(t.inst=e),t.continue??(t.continue=!0),r.issues.push(ep(t))}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r)):(r.value=i,r)}});function nj(e){return new nR({type:"transform",transform:e})}let nT=n("ZodOptional",(e,t)=>{tO.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nN(e){return new nT({type:"optional",innerType:e})}let nP=n("ZodNullable",(e,t)=>{tM.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nB(e){return new nP({type:"nullable",innerType:e})}let nz=n("ZodDefault",(e,t)=>{tI.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function nL(e,t){return new nz({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}let nD=n("ZodPrefault",(e,t)=>{tj.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nF(e,t){return new nD({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})}let nH=n("ZodNonOptional",(e,t)=>{tT.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType});function nU(e,t){return new nH({type:"nonoptional",innerType:e,...ee(t)})}let nq=n("ZodCatch",(e,t)=>{tP.init(e,t),rG.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function nW(e,t){return new nq({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let nV=n("ZodPipe",(e,t)=>{tB.init(e,t),rG.init(e,t),e.in=t.in,e.out=t.out});function nK(e,t){return new nV({type:"pipe",in:e,out:t})}let nG=n("ZodReadonly",(e,t)=>{tL.init(e,t),rG.init(e,t)});function nX(e){return new nG({type:"readonly",innerType:e})}let nZ=n("ZodCustom",(e,t)=>{tF.init(e,t),rG.init(e,t)});function nY(e){let t=new em({check:"custom"});return t._zod.check=e,t}function nJ(e,t={}){return rj(nZ,e,t)}function nQ(e){let t=nY(r=>(r.addIssue=e=>{if("string"==typeof e)r.issues.push(ep(e,r.value,t._zod.def));else{let n=e;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(ep(n))}},e(r.value,r)));return t}},42131(e,t,r){"use strict";r.d(t,{vt:()=>d});let n=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{r.clear()}},a=t=e(n,i,o);return o},i=e=>e?n(e):n;var o=r(22155),a=r(33016);let{useDebugValue:s}=o,{useSyncExternalStoreWithSelector:l}=a,c=e=>e;function u(e,t=c,r){let n=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return s(n),n}let f=e=>{let t="function"==typeof e?i(e):e,r=(e,r)=>u(t,e,r);return Object.assign(r,t),r},d=e=>e?f(e):f},3349(e){"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},64816(e){"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},8906(e){"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},37821(e){"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},23718(e){"use strict";e.exports={rE:"6.6.1"}},1464(e){"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}}]);
314
+ //# sourceMappingURL=208.3403aeba.js.map