diff --git a/changelog.md b/changelog.md index f038abf..927cdb5 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,8 @@ +## [1.9.10] - 2025-09-25 +* The release candidate of 2.0. +* Update the image selection again, now is more easier. +* support live painting again. + ## [1.9.4] - 2025-09-07 * Update the 2.x beta plugin to beta.6. * support runninghub.ai diff --git a/javascript/sdppp-comfy.js b/javascript/sdppp-comfy.js index 4be55fd..e66b3ca 100644 --- a/javascript/sdppp-comfy.js +++ b/javascript/sdppp-comfy.js @@ -1,20 +1,20 @@ -var j5=Object.create;var Mp=Object.defineProperty;var ER=Object.getOwnPropertyDescriptor;var V5=Object.getOwnPropertyNames;var H5=Object.getPrototypeOf,U5=Object.prototype.hasOwnProperty;var Y0=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var $o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Q0=(e,t)=>{for(var r in t)Mp(e,r,{get:t[r],enumerable:!0})},q5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of V5(t))!U5.call(e,o)&&o!==r&&Mp(e,o,{get:()=>t[o],enumerable:!(n=ER(t,o))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?j5(H5(e)):{},q5(t||!e||!e.__esModule?Mp(r,"default",{value:e,enumerable:!0}):r,e));var Qt=(e,t,r,n)=>{for(var o=n>1?void 0:n?ER(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&Mp(t,r,o),o};var IO=$o(Ct=>{"use strict";var Sf=Symbol.for("react.element"),I4=Symbol.for("react.portal"),D4=Symbol.for("react.fragment"),$4=Symbol.for("react.strict_mode"),A4=Symbol.for("react.profiler"),k4=Symbol.for("react.provider"),M4=Symbol.for("react.context"),F4=Symbol.for("react.forward_ref"),L4=Symbol.for("react.suspense"),z4=Symbol.for("react.memo"),W4=Symbol.for("react.lazy"),bO=Symbol.iterator;function B4(e){return e===null||typeof e!="object"?null:(e=bO&&e[bO]||e["@@iterator"],typeof e=="function"?e:null)}var wO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},EO=Object.assign,RO={};function yc(e,t,r){this.props=e,this.context=t,this.refs=RO,this.updater=r||wO}yc.prototype.isReactComponent={};yc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function OO(){}OO.prototype=yc.prototype;function Nx(e,t,r){this.props=e,this.context=t,this.refs=RO,this.updater=r||wO}var Ix=Nx.prototype=new OO;Ix.constructor=Nx;EO(Ix,yc.prototype);Ix.isPureReactComponent=!0;var SO=Array.isArray,_O=Object.prototype.hasOwnProperty,Dx={current:null},PO={key:!0,ref:!0,__self:!0,__source:!0};function TO(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)_O.call(t,n)&&!PO.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1{"use strict";DO.exports=IO()});var jO=$o(Zt=>{"use strict";function Fx(e,t){var r=e.length;e.push(t);e:for(;0>>1,o=e[n];if(0>>1;nwm(s,r))lwm(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else if(lwm(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function wm(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?($O=performance,Zt.unstable_now=function(){return $O.now()}):(Ax=Date,AO=Ax.now(),Zt.unstable_now=function(){return Ax.now()-AO});var $O,Ax,AO,Li=[],Ja=[],q4=1,Mo=null,Rn=3,Om=!1,sl=!1,wf=!1,FO=typeof setTimeout=="function"?setTimeout:null,LO=typeof clearTimeout=="function"?clearTimeout:null,kO=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Lx(e){for(var t=fi(Ja);t!==null;){if(t.callback===null)Rm(Ja);else if(t.startTime<=e)Rm(Ja),t.sortIndex=t.expirationTime,Fx(Li,t);else break;t=fi(Ja)}}function zx(e){if(wf=!1,Lx(e),!sl)if(fi(Li)!==null)sl=!0,Bx(Wx);else{var t=fi(Ja);t!==null&&jx(zx,t.startTime-e)}}function Wx(e,t){sl=!1,wf&&(wf=!1,LO(Ef),Ef=-1),Om=!0;var r=Rn;try{for(Lx(t),Mo=fi(Li);Mo!==null&&(!(Mo.expirationTime>t)||e&&!BO());){var n=Mo.callback;if(typeof n=="function"){Mo.callback=null,Rn=Mo.priorityLevel;var o=n(Mo.expirationTime<=t);t=Zt.unstable_now(),typeof o=="function"?Mo.callback=o:Mo===fi(Li)&&Rm(Li),Lx(t)}else Rm(Li);Mo=fi(Li)}if(Mo!==null)var i=!0;else{var a=fi(Ja);a!==null&&jx(zx,a.startTime-t),i=!1}return i}finally{Mo=null,Rn=r,Om=!1}}var _m=!1,Em=null,Ef=-1,zO=5,WO=-1;function BO(){return!(Zt.unstable_now()-WOe||125n?(e.sortIndex=r,Fx(Ja,e),fi(Li)===null&&e===fi(Ja)&&(wf?(LO(Ef),Ef=-1):wf=!0,jx(zx,r-n))):(e.sortIndex=o,Fx(Li,e),sl||Om||(sl=!0,Bx(Wx))),e};Zt.unstable_shouldYield=BO;Zt.unstable_wrapCallback=function(e){var t=Rn;return function(){var r=Rn;Rn=t;try{return e.apply(this,arguments)}finally{Rn=r}}}});var HO=$o(($J,VO)=>{"use strict";VO.exports=jO()});var KT=$o(So=>{"use strict";var G4=N(),xo=HO();function ge(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fb=Object.prototype.hasOwnProperty,K4=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,UO={},qO={};function X4(e){return fb.call(qO,e)?!0:fb.call(UO,e)?!1:K4.test(e)?qO[e]=!0:(UO[e]=!0,!1)}function Y4(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Q4(e,t,r,n){if(t===null||typeof t>"u"||Y4(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function qn(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new qn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new qn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new qn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new qn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yn[e]=new qn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new qn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new qn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new qn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new qn(e,5,!1,e.toLowerCase(),null,!1,!1)});var nS=/[\-:]([a-z])/g;function oS(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(nS,oS);yn[t]=new qn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(nS,oS);yn[t]=new qn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(nS,oS);yn[t]=new qn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new qn(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new qn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new qn(e,1,!1,e.toLowerCase(),null,!0,!0)});function iS(e,t,r,n){var o=yn.hasOwnProperty(t)?yn[t]:null;(o!==null?o.type!==0:n||!(2typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Do=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z0=(e,t)=>{for(var r in t)Lp(e,r,{get:t[r],enumerable:!0})},G5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of H5(t))!q5.call(e,o)&&o!==r&&Lp(e,o,{get:()=>t[o],enumerable:!(n=RR(t,o))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?V5(U5(e)):{},G5(t||!e||!e.__esModule?Lp(r,"default",{value:e,enumerable:!0}):r,e));var Jt=(e,t,r,n)=>{for(var o=n>1?void 0:n?RR(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&Lp(t,r,o),o};var DO=Do(Ct=>{"use strict";var Cf=Symbol.for("react.element"),D4=Symbol.for("react.portal"),$4=Symbol.for("react.fragment"),A4=Symbol.for("react.strict_mode"),k4=Symbol.for("react.profiler"),M4=Symbol.for("react.provider"),F4=Symbol.for("react.context"),L4=Symbol.for("react.forward_ref"),z4=Symbol.for("react.suspense"),W4=Symbol.for("react.memo"),B4=Symbol.for("react.lazy"),SO=Symbol.iterator;function j4(e){return e===null||typeof e!="object"?null:(e=SO&&e[SO]||e["@@iterator"],typeof e=="function"?e:null)}var EO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},RO=Object.assign,OO={};function yc(e,t,r){this.props=e,this.context=t,this.refs=OO,this.updater=r||EO}yc.prototype.isReactComponent={};yc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _O(){}_O.prototype=yc.prototype;function Dx(e,t,r){this.props=e,this.context=t,this.refs=OO,this.updater=r||EO}var $x=Dx.prototype=new _O;$x.constructor=Dx;RO($x,yc.prototype);$x.isPureReactComponent=!0;var CO=Array.isArray,PO=Object.prototype.hasOwnProperty,Ax={current:null},TO={key:!0,ref:!0,__self:!0,__source:!0};function NO(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)PO.call(t,n)&&!TO.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1{"use strict";$O.exports=DO()});var VO=Do(er=>{"use strict";function zx(e,t){var r=e.length;e.push(t);e:for(;0>>1,o=e[n];if(0>>1;nRm(s,r))lRm(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else if(lRm(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function Rm(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(AO=performance,er.unstable_now=function(){return AO.now()}):(Mx=Date,kO=Mx.now(),er.unstable_now=function(){return Mx.now()-kO});var AO,Mx,kO,zi=[],Ja=[],G4=1,ko=null,_n=3,Pm=!1,cl=!1,Ef=!1,LO=typeof setTimeout=="function"?setTimeout:null,zO=typeof clearTimeout=="function"?clearTimeout:null,MO=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Wx(e){for(var t=ui(Ja);t!==null;){if(t.callback===null)_m(Ja);else if(t.startTime<=e)_m(Ja),t.sortIndex=t.expirationTime,zx(zi,t);else break;t=ui(Ja)}}function Bx(e){if(Ef=!1,Wx(e),!cl)if(ui(zi)!==null)cl=!0,Vx(jx);else{var t=ui(Ja);t!==null&&Hx(Bx,t.startTime-e)}}function jx(e,t){cl=!1,Ef&&(Ef=!1,zO(Rf),Rf=-1),Pm=!0;var r=_n;try{for(Wx(t),ko=ui(zi);ko!==null&&(!(ko.expirationTime>t)||e&&!jO());){var n=ko.callback;if(typeof n=="function"){ko.callback=null,_n=ko.priorityLevel;var o=n(ko.expirationTime<=t);t=er.unstable_now(),typeof o=="function"?ko.callback=o:ko===ui(zi)&&_m(zi),Wx(t)}else _m(zi);ko=ui(zi)}if(ko!==null)var i=!0;else{var a=ui(Ja);a!==null&&Hx(Bx,a.startTime-t),i=!1}return i}finally{ko=null,_n=r,Pm=!1}}var Tm=!1,Om=null,Rf=-1,WO=5,BO=-1;function jO(){return!(er.unstable_now()-BOe||125n?(e.sortIndex=r,zx(Ja,e),ui(zi)===null&&e===ui(Ja)&&(Ef?(zO(Rf),Rf=-1):Ef=!0,Hx(Bx,r-n))):(e.sortIndex=o,zx(zi,e),cl||Pm||(cl=!0,Vx(jx))),e};er.unstable_shouldYield=jO;er.unstable_wrapCallback=function(e){var t=_n;return function(){var r=_n;_n=t;try{return e.apply(this,arguments)}finally{_n=r}}}});var UO=Do((AJ,HO)=>{"use strict";HO.exports=VO()});var XT=Do(So=>{"use strict";var K4=N(),xo=UO();function me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pb=Object.prototype.hasOwnProperty,X4=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qO={},GO={};function Y4(e){return pb.call(GO,e)?!0:pb.call(qO,e)?!1:X4.test(e)?GO[e]=!0:(qO[e]=!0,!1)}function Q4(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function J4(e,t,r,n){if(t===null||typeof t>"u"||Q4(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Un(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var vn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vn[e]=new Un(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vn[t]=new Un(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vn[e]=new Un(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vn[e]=new Un(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){vn[e]=new Un(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vn[e]=new Un(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vn[e]=new Un(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vn[e]=new Un(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vn[e]=new Un(e,5,!1,e.toLowerCase(),null,!1,!1)});var iS=/[\-:]([a-z])/g;function aS(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(iS,aS);vn[t]=new Un(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(iS,aS);vn[t]=new Un(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(iS,aS);vn[t]=new Un(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vn[e]=new Un(e,1,!1,e.toLowerCase(),null,!1,!1)});vn.xlinkHref=new Un("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vn[e]=new Un(e,1,!1,e.toLowerCase(),null,!0,!0)});function sS(e,t,r,n){var o=vn.hasOwnProperty(t)?vn[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Hx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?$f(e):""}function J4(e){switch(e.tag){case 5:return $f(e.type);case 16:return $f("Lazy");case 13:return $f("Suspense");case 19:return $f("SuspenseList");case 0:case 2:case 15:return e=Ux(e.type,!1),e;case 11:return e=Ux(e.type.render,!1),e;case 1:return e=Ux(e.type,!0),e;default:return""}}function gb(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cc:return"Fragment";case Sc:return"Portal";case db:return"Profiler";case aS:return"StrictMode";case pb:return"Suspense";case mb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z_:return(e.displayName||"Context")+".Consumer";case J_:return(e._context.displayName||"Context")+".Provider";case sS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lS:return t=e.displayName||null,t!==null?t:gb(e.type)||"Memo";case es:t=e._payload,e=e._init;try{return gb(e(t))}catch{}}return null}function Z4(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gb(t);case 8:return t===aS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ms(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e6(e){var t=tP(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tm(e){e._valueTracker||(e._valueTracker=e6(e))}function rP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=tP(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ng(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hb(e,t){var r=t.checked;return Er({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function KO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ms(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nP(e,t){t=t.checked,t!=null&&iS(e,"checked",t,!1)}function vb(e,t){nP(e,t);var r=ms(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yb(e,t.type,r):t.hasOwnProperty("defaultValue")&&yb(e,t.type,ms(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function XO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function yb(e,t,r){(t!=="number"||ng(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Af=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Nm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ff={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},t6=["Webkit","ms","Moz","O"];Object.keys(Ff).forEach(function(e){t6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ff[t]=Ff[e]})});function sP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ff.hasOwnProperty(e)&&Ff[e]?(""+t).trim():t+"px"}function lP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=sP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var r6=Er({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Sb(e,t){if(t){if(r6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ge(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ge(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ge(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ge(62))}}function Cb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function cS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eb=null,Ac=null,kc=null;function JO(e){if(e=fd(e)){if(typeof Eb!="function")throw Error(ge(280));var t=e.stateNode;t&&(t=Ig(t),Eb(e.stateNode,e.type,t))}}function cP(e){Ac?kc?kc.push(e):kc=[e]:Ac=e}function uP(){if(Ac){var e=Ac,t=kc;if(kc=Ac=null,JO(e),t)for(e=0;e>>=0,e===0?32:31-(p6(e)/m6|0)|0}var Im=64,Dm=4194304;function kf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sg(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=kf(s):(i&=a,i!==0&&(n=kf(i)))}else a=r&~o,a!==0?n=kf(a):i!==0&&(n=kf(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function cd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-hi(t),e[t]=r}function y6(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=zf),s_=" ",l_=!1;function NP(e,t){switch(e){case"keyup":return q6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function IP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wc=!1;function K6(e,t){switch(e){case"compositionend":return IP(t);case"keypress":return t.which!==32?null:(l_=!0,s_);case"textInput":return e=t.data,e===s_&&l_?null:e;default:return null}}function X6(e,t){if(wc)return e==="compositionend"||!vS&&NP(e,t)?(e=PP(),Km=mS=os=null,wc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=f_(r)}}function kP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function MP(){for(var e=window,t=ng();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ng(e.document)}return t}function yS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function oz(e){var t=MP(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&kP(r.ownerDocument.documentElement,r)){if(n!==null&&yS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=d_(r,i);var a=d_(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ec=null,Nb=null,Bf=null,Ib=!1;function p_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ib||Ec==null||Ec!==ng(n)||(n=Ec,"selectionStart"in n&&yS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Bf&&Zf(Bf,n)||(Bf=n,n=ug(Nb,"onSelect"),0_c||(e.current=Fb[_c],Fb[_c]=null,_c--)}function er(e,t){_c++,Fb[_c]=e.current,e.current=t}var gs={},Tn=vs(gs),eo=vs(!1),gl=gs;function Wc(e,t){var r=e.type.contextTypes;if(!r)return gs;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function to(e){return e=e.childContextTypes,e!=null}function dg(){ir(eo),ir(Tn)}function C_(e,t,r){if(Tn.current!==gs)throw Error(ge(168));er(Tn,t),er(eo,r)}function UP(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ge(108,Z4(e)||"Unknown",o));return Er({},r,n)}function pg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gs,gl=Tn.current,er(Tn,e),er(eo,eo.current),!0}function w_(e,t,r){var n=e.stateNode;if(!n)throw Error(ge(169));r?(e=UP(e,t,gl),n.__reactInternalMemoizedMergedChildContext=e,ir(eo),ir(Tn),er(Tn,e)):ir(eo),er(eo,r)}var da=null,Dg=!1,rb=!1;function qP(e){da===null?da=[e]:da.push(e)}function mz(e){Dg=!0,qP(e)}function ys(){if(!rb&&da!==null){rb=!0;var e=0,t=jt;try{var r=da;for(jt=1;e>=a,o-=a,pa=1<<32-hi(t)+o|r<R?(P=C,C=null):P=C.sibling;var O=d(g,C,x[R],b);if(O===null){C===null&&(C=P);break}e&&C&&O.alternate===null&&t(g,C),p=i(O,p,R),w===null?S=O:w.sibling=O,w=O,C=P}if(R===x.length)return r(g,C),yr&&ll(g,R),S;if(C===null){for(;RR?(P=C,C=null):P=C.sibling;var I=d(g,C,O.value,b);if(I===null){C===null&&(C=P);break}e&&C&&I.alternate===null&&t(g,C),p=i(I,p,R),w===null?S=I:w.sibling=I,w=I,C=P}if(O.done)return r(g,C),yr&&ll(g,R),S;if(C===null){for(;!O.done;R++,O=x.next())O=f(g,O.value,b),O!==null&&(p=i(O,p,R),w===null?S=O:w.sibling=O,w=O);return yr&&ll(g,R),S}for(C=n(g,C);!O.done;R++,O=x.next())O=m(C,g,R,O.value,b),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?R:O.key),p=i(O,p,R),w===null?S=O:w.sibling=O,w=O);return e&&C.forEach(function(D){return t(g,D)}),yr&&ll(g,R),S}function y(g,p,x,b){if(typeof x=="object"&&x!==null&&x.type===Cc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Pm:e:{for(var S=x.key,w=p;w!==null;){if(w.key===S){if(S=x.type,S===Cc){if(w.tag===7){r(g,w.sibling),p=o(w,x.props.children),p.return=g,g=p;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===es&&O_(S)===w.type){r(g,w.sibling),p=o(w,x.props),p.ref=Tf(g,w,x),p.return=g,g=p;break e}r(g,w);break}else t(g,w);w=w.sibling}x.type===Cc?(p=ml(x.props.children,g.mode,b,x.key),p.return=g,g=p):(b=rg(x.type,x.key,x.props,null,g.mode,b),b.ref=Tf(g,p,x),b.return=g,g=b)}return a(g);case Sc:e:{for(w=x.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===x.containerInfo&&p.stateNode.implementation===x.implementation){r(g,p.sibling),p=o(p,x.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else t(g,p);p=p.sibling}p=ub(x,g.mode,b),p.return=g,g=p}return a(g);case es:return w=x._init,y(g,p,w(x._payload),b)}if(Af(x))return h(g,p,x,b);if(Rf(x))return v(g,p,x,b);Vm(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,p!==null&&p.tag===6?(r(g,p.sibling),p=o(p,x),p.return=g,g=p):(r(g,p),p=cb(x,g.mode,b),p.return=g,g=p),a(g)):r(g,p)}return y}var jc=YP(!0),QP=YP(!1),hg=vs(null),vg=null,Nc=null,CS=null;function wS(){CS=Nc=vg=null}function ES(e){var t=hg.current;ir(hg),e._currentValue=t}function Wb(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Fc(e,t){vg=e,CS=Nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Zn=!0),e.firstContext=null)}function Bo(e){var t=e._currentValue;if(CS!==e)if(e={context:e,memoizedValue:t,next:null},Nc===null){if(vg===null)throw Error(ge(308));Nc=e,vg.dependencies={lanes:0,firstContext:e}}else Nc=Nc.next=e;return t}var fl=null;function RS(e){fl===null?fl=[e]:fl.push(e)}function JP(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,RS(t)):(r.next=o.next,o.next=r),t.interleaved=r,ya(e,n)}function ya(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ts=!1;function OS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ZP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ga(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function us(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,($t&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,ya(e,r)}return o=n.interleaved,o===null?(t.next=t,RS(n)):(t.next=o.next,o.next=t),n.interleaved=t,ya(e,r)}function Ym(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,fS(e,r)}}function __(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function yg(e,t,r,n){var o=e.updateQueue;ts=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var d=s.lane,m=s.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(d=t,m=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){f=h.call(m,f,d);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,d=typeof h=="function"?h.call(m,f,d):h,d==null)break e;f=Er({},f,d);break e;case 2:ts=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=f):u=u.next=m,a|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);yl|=a,e.lanes=a,e.memoizedState=f}}function P_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=ob.transition;ob.transition={};try{e(!1),t()}finally{jt=r,ob.transition=n}}function hT(){return jo().memoizedState}function yz(e,t,r){var n=ds(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},vT(e))yT(t,r);else if(r=JP(e,t,r,n),r!==null){var o=Un();vi(r,e,n,o),xT(r,t,n)}}function xz(e,t,r){var n=ds(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(vT(e))yT(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,yi(s,a)){var l=t.interleaved;l===null?(o.next=o,RS(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=JP(e,t,o,n),r!==null&&(o=Un(),vi(r,e,n,o),xT(r,t,n))}}function vT(e){var t=e.alternate;return e===wr||t!==null&&t===wr}function yT(e,t){jf=bg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function xT(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,fS(e,r)}}var Sg={readContext:Bo,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},bz={readContext:Bo,useCallback:function(e,t){return Wi().memoizedState=[e,t===void 0?null:t],e},useContext:Bo,useEffect:N_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Jm(4194308,4,fT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Jm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jm(4,2,e,t)},useMemo:function(e,t){var r=Wi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Wi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=yz.bind(null,wr,e),[n.memoizedState,e]},useRef:function(e){var t=Wi();return e={current:e},t.memoizedState=e},useState:T_,useDebugValue:AS,useDeferredValue:function(e){return Wi().memoizedState=e},useTransition:function(){var e=T_(!1),t=e[0];return e=vz.bind(null,e[1]),Wi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=wr,o=Wi();if(yr){if(r===void 0)throw Error(ge(407));r=r()}else{if(r=t(),ln===null)throw Error(ge(349));(vl&30)!==0||nT(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,N_(iT.bind(null,n,i,e),[e]),n.flags|=2048,sd(9,oT.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Wi(),t=ln.identifierPrefix;if(yr){var r=ma,n=pa;r=(n&~(1<<32-hi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=id++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{qx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Af(e):""}function Z4(e){switch(e.tag){case 5:return Af(e.type);case 16:return Af("Lazy");case 13:return Af("Suspense");case 19:return Af("SuspenseList");case 0:case 2:case 15:return e=Gx(e.type,!1),e;case 11:return e=Gx(e.type.render,!1),e;case 1:return e=Gx(e.type,!0),e;default:return""}}function vb(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cc:return"Fragment";case Sc:return"Portal";case mb:return"Profiler";case lS:return"StrictMode";case gb:return"Suspense";case hb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eP:return(e.displayName||"Context")+".Consumer";case Z_:return(e._context.displayName||"Context")+".Provider";case cS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uS:return t=e.displayName||null,t!==null?t:vb(e.type)||"Memo";case es:t=e._payload,e=e._init;try{return vb(e(t))}catch{}}return null}function e6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vb(t);case 8:return t===lS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ms(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t6(e){var t=rP(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Im(e){e._valueTracker||(e._valueTracker=t6(e))}function nP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=rP(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ig(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yb(e,t){var r=t.checked;return Rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function XO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ms(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function oP(e,t){t=t.checked,t!=null&&sS(e,"checked",t,!1)}function xb(e,t){oP(e,t);var r=ms(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bb(e,t.type,r):t.hasOwnProperty("defaultValue")&&bb(e,t.type,ms(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function YO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function bb(e,t,r){(t!=="number"||ig(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var kf=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Dm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Lf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},r6=["Webkit","ms","Moz","O"];Object.keys(Lf).forEach(function(e){r6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lf[t]=Lf[e]})});function lP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Lf.hasOwnProperty(e)&&Lf[e]?(""+t).trim():t+"px"}function cP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=lP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var n6=Rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wb(e,t){if(t){if(n6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(me(62))}}function Eb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rb=null;function fS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ob=null,Ac=null,kc=null;function ZO(e){if(e=dd(e)){if(typeof Ob!="function")throw Error(me(280));var t=e.stateNode;t&&(t=$g(t),Ob(e.stateNode,e.type,t))}}function uP(e){Ac?kc?kc.push(e):kc=[e]:Ac=e}function fP(){if(Ac){var e=Ac,t=kc;if(kc=Ac=null,ZO(e),t)for(e=0;e>>=0,e===0?32:31-(m6(e)/g6|0)|0}var $m=64,Am=4194304;function Mf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function cg(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Mf(s):(i&=a,i!==0&&(n=Mf(i)))}else a=r&~o,a!==0?n=Mf(a):i!==0&&(n=Mf(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function ud(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gi(t),e[t]=r}function x6(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Wf),l_=" ",c_=!1;function IP(e,t){switch(e){case"keyup":return G6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wc=!1;function X6(e,t){switch(e){case"compositionend":return DP(t);case"keypress":return t.which!==32?null:(c_=!0,l_);case"textInput":return e=t.data,e===l_&&c_?null:e;default:return null}}function Y6(e,t){if(wc)return e==="compositionend"||!xS&&IP(e,t)?(e=TP(),Ym=hS=os=null,wc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=d_(r)}}function MP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?MP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FP(){for(var e=window,t=ig();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ig(e.document)}return t}function bS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function iz(e){var t=FP(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&MP(r.ownerDocument.documentElement,r)){if(n!==null&&bS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=p_(r,i);var a=p_(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ec=null,Db=null,jf=null,$b=!1;function m_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$b||Ec==null||Ec!==ig(n)||(n=Ec,"selectionStart"in n&&bS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),jf&&ed(jf,n)||(jf=n,n=dg(Db,"onSelect"),0_c||(e.current=zb[_c],zb[_c]=null,_c--)}function tr(e,t){_c++,zb[_c]=e.current,e.current=t}var gs={},In=vs(gs),eo=vs(!1),vl=gs;function Wc(e,t){var r=e.type.contextTypes;if(!r)return gs;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function to(e){return e=e.childContextTypes,e!=null}function mg(){ar(eo),ar(In)}function w_(e,t,r){if(In.current!==gs)throw Error(me(168));tr(In,t),tr(eo,r)}function qP(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(me(108,e6(e)||"Unknown",o));return Rr({},r,n)}function gg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gs,vl=In.current,tr(In,e),tr(eo,eo.current),!0}function E_(e,t,r){var n=e.stateNode;if(!n)throw Error(me(169));r?(e=qP(e,t,vl),n.__reactInternalMemoizedMergedChildContext=e,ar(eo),ar(In),tr(In,e)):ar(eo),tr(eo,r)}var pa=null,Ag=!1,ob=!1;function GP(e){pa===null?pa=[e]:pa.push(e)}function gz(e){Ag=!0,GP(e)}function ys(){if(!ob&&pa!==null){ob=!0;var e=0,t=jt;try{var r=pa;for(jt=1;e>=a,o-=a,ma=1<<32-gi(t)+o|r<R?(P=C,C=null):P=C.sibling;var O=d(g,C,x[R],b);if(O===null){C===null&&(C=P);break}e&&C&&O.alternate===null&&t(g,C),p=i(O,p,R),w===null?S=O:w.sibling=O,w=O,C=P}if(R===x.length)return r(g,C),hr&&ul(g,R),S;if(C===null){for(;RR?(P=C,C=null):P=C.sibling;var I=d(g,C,O.value,b);if(I===null){C===null&&(C=P);break}e&&C&&I.alternate===null&&t(g,C),p=i(I,p,R),w===null?S=I:w.sibling=I,w=I,C=P}if(O.done)return r(g,C),hr&&ul(g,R),S;if(C===null){for(;!O.done;R++,O=x.next())O=f(g,O.value,b),O!==null&&(p=i(O,p,R),w===null?S=O:w.sibling=O,w=O);return hr&&ul(g,R),S}for(C=n(g,C);!O.done;R++,O=x.next())O=m(C,g,R,O.value,b),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?R:O.key),p=i(O,p,R),w===null?S=O:w.sibling=O,w=O);return e&&C.forEach(function(D){return t(g,D)}),hr&&ul(g,R),S}function y(g,p,x,b){if(typeof x=="object"&&x!==null&&x.type===Cc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Nm:e:{for(var S=x.key,w=p;w!==null;){if(w.key===S){if(S=x.type,S===Cc){if(w.tag===7){r(g,w.sibling),p=o(w,x.props.children),p.return=g,g=p;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===es&&__(S)===w.type){r(g,w.sibling),p=o(w,x.props),p.ref=Nf(g,w,x),p.return=g,g=p;break e}r(g,w);break}else t(g,w);w=w.sibling}x.type===Cc?(p=hl(x.props.children,g.mode,b,x.key),p.return=g,g=p):(b=og(x.type,x.key,x.props,null,g.mode,b),b.ref=Nf(g,p,x),b.return=g,g=b)}return a(g);case Sc:e:{for(w=x.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===x.containerInfo&&p.stateNode.implementation===x.implementation){r(g,p.sibling),p=o(p,x.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else t(g,p);p=p.sibling}p=db(x,g.mode,b),p.return=g,g=p}return a(g);case es:return w=x._init,y(g,p,w(x._payload),b)}if(kf(x))return h(g,p,x,b);if(Of(x))return v(g,p,x,b);Um(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,p!==null&&p.tag===6?(r(g,p.sibling),p=o(p,x),p.return=g,g=p):(r(g,p),p=fb(x,g.mode,b),p.return=g,g=p),a(g)):r(g,p)}return y}var jc=QP(!0),JP=QP(!1),yg=vs(null),xg=null,Nc=null,ES=null;function RS(){ES=Nc=xg=null}function OS(e){var t=yg.current;ar(yg),e._currentValue=t}function jb(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Fc(e,t){xg=e,ES=Nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Zn=!0),e.firstContext=null)}function Wo(e){var t=e._currentValue;if(ES!==e)if(e={context:e,memoizedValue:t,next:null},Nc===null){if(xg===null)throw Error(me(308));Nc=e,xg.dependencies={lanes:0,firstContext:e}}else Nc=Nc.next=e;return t}var pl=null;function _S(e){pl===null?pl=[e]:pl.push(e)}function ZP(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,_S(t)):(r.next=o.next,o.next=r),t.interleaved=r,xa(e,n)}function xa(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ts=!1;function PS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eT(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ha(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function us(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,($t&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,xa(e,r)}return o=n.interleaved,o===null?(t.next=t,_S(n)):(t.next=o.next,o.next=t),n.interleaved=t,xa(e,r)}function Jm(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,pS(e,r)}}function P_(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function bg(e,t,r,n){var o=e.updateQueue;ts=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var d=s.lane,m=s.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(d=t,m=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){f=h.call(m,f,d);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,d=typeof h=="function"?h.call(m,f,d):h,d==null)break e;f=Rr({},f,d);break e;case 2:ts=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=f):u=u.next=m,a|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);bl|=a,e.lanes=a,e.memoizedState=f}}function T_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=ab.transition;ab.transition={};try{e(!1),t()}finally{jt=r,ab.transition=n}}function vT(){return Bo().memoizedState}function xz(e,t,r){var n=ds(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},yT(e))xT(t,r);else if(r=ZP(e,t,r,n),r!==null){var o=Hn();hi(r,e,n,o),bT(r,t,n)}}function bz(e,t,r){var n=ds(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(yT(e))xT(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,vi(s,a)){var l=t.interleaved;l===null?(o.next=o,_S(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=ZP(e,t,o,n),r!==null&&(o=Hn(),hi(r,e,n,o),bT(r,t,n))}}function yT(e){var t=e.alternate;return e===Er||t!==null&&t===Er}function xT(e,t){Vf=Cg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function bT(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,pS(e,r)}}var wg={readContext:Wo,useCallback:Pn,useContext:Pn,useEffect:Pn,useImperativeHandle:Pn,useInsertionEffect:Pn,useLayoutEffect:Pn,useMemo:Pn,useReducer:Pn,useRef:Pn,useState:Pn,useDebugValue:Pn,useDeferredValue:Pn,useTransition:Pn,useMutableSource:Pn,useSyncExternalStore:Pn,useId:Pn,unstable_isNewReconciler:!1},Sz={readContext:Wo,useCallback:function(e,t){return Bi().memoizedState=[e,t===void 0?null:t],e},useContext:Wo,useEffect:I_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,eg(4194308,4,dT.bind(null,t,e),r)},useLayoutEffect:function(e,t){return eg(4194308,4,e,t)},useInsertionEffect:function(e,t){return eg(4,2,e,t)},useMemo:function(e,t){var r=Bi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Bi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=xz.bind(null,Er,e),[n.memoizedState,e]},useRef:function(e){var t=Bi();return e={current:e},t.memoizedState=e},useState:N_,useDebugValue:MS,useDeferredValue:function(e){return Bi().memoizedState=e},useTransition:function(){var e=N_(!1),t=e[0];return e=yz.bind(null,e[1]),Bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Er,o=Bi();if(hr){if(r===void 0)throw Error(me(407));r=r()}else{if(r=t(),an===null)throw Error(me(349));(xl&30)!==0||oT(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,I_(aT.bind(null,n,i,e),[e]),n.flags|=2048,ld(9,iT.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Bi(),t=an.identifierPrefix;if(hr){var r=ga,n=ma;r=(n&~(1<<32-gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ad++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Bi]=t,e[rd]=n,TT(e,t,!1,!1),t.stateNode=e;e:{switch(a=Cb(r,n),r){case"dialog":or("cancel",e),or("close",e),o=n;break;case"iframe":case"object":case"embed":or("load",e),o=n;break;case"video":case"audio":for(o=0;oUc&&(t.flags|=128,n=!0,Nf(i,!1),t.lanes=4194304)}else{if(!n)if(e=xg(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Nf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!yr)return _n(t),null}else 2*Lr()-i.renderingStartTime>Uc&&r!==1073741824&&(t.flags|=128,n=!0,Nf(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Lr(),t.sibling=null,r=Cr.current,er(Cr,n?r&1|2:r&1),t):(_n(t),null);case 22:case 23:return WS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(ho&1073741824)!==0&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(ge(156,t.tag))}function Pz(e,t){switch(bS(t),t.tag){case 1:return to(t.type)&&dg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vc(),ir(eo),ir(Tn),TS(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return PS(t),null;case 13:if(ir(Cr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ge(340));Bc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ir(Cr),null;case 4:return Vc(),null;case 10:return ES(t.type._context),null;case 22:case 23:return WS(),null;case 24:return null;default:return null}}var Um=!1,Pn=!1,Tz=typeof WeakSet=="function"?WeakSet:Set,qe=null;function Ic(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ir(e,t,n)}else r.current=null}function Xb(e,t,r){try{r()}catch(n){Ir(e,t,n)}}var B_=!1;function Nz(e,t){if(Db=lg,e=MP(),yS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var m;f!==r||o!==0&&f.nodeType!==3||(s=a+o),f!==i||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===r&&++c===o&&(s=a),d===i&&++u===n&&(l=a),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for($b={focusedElem:e,selectionRange:r},lg=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:pi(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ge(163))}}catch(b){Ir(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return h=B_,B_=!1,h}function Vf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Xb(t,r,i)}o=o.next}while(o!==n)}}function kg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Yb(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function DT(e){var t=e.alternate;t!==null&&(e.alternate=null,DT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bi],delete t[rd],delete t[Mb],delete t[dz],delete t[pz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $T(e){return e.tag===5||e.tag===3||e.tag===4}function j_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$T(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qb(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=fg));else if(n!==4&&(e=e.child,e!==null))for(Qb(e,t,r),e=e.sibling;e!==null;)Qb(e,t,r),e=e.sibling}function Jb(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Jb(e,t,r),e=e.sibling;e!==null;)Jb(e,t,r),e=e.sibling}var hn=null,mi=!1;function Za(e,t,r){for(r=r.child;r!==null;)AT(e,t,r),r=r.sibling}function AT(e,t,r){if(ji&&typeof ji.onCommitFiberUnmount=="function")try{ji.onCommitFiberUnmount(_g,r)}catch{}switch(r.tag){case 5:Pn||Ic(r,t);case 6:var n=hn,o=mi;hn=null,Za(e,t,r),hn=n,mi=o,hn!==null&&(mi?(e=hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):hn.removeChild(r.stateNode));break;case 18:hn!==null&&(mi?(e=hn,r=r.stateNode,e.nodeType===8?tb(e.parentNode,r):e.nodeType===1&&tb(e,r),Qf(e)):tb(hn,r.stateNode));break;case 4:n=hn,o=mi,hn=r.stateNode.containerInfo,mi=!0,Za(e,t,r),hn=n,mi=o;break;case 0:case 11:case 14:case 15:if(!Pn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&Xb(r,t,a),o=o.next}while(o!==n)}Za(e,t,r);break;case 1:if(!Pn&&(Ic(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ir(r,t,s)}Za(e,t,r);break;case 21:Za(e,t,r);break;case 22:r.mode&1?(Pn=(n=Pn)||r.memoizedState!==null,Za(e,t,r),Pn=n):Za(e,t,r);break;default:Za(e,t,r)}}function V_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Tz),t.forEach(function(n){var o=zz.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function di(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Lr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Dz(n/1960))-n,10e?16:e,is===null)var n=!1;else{if(e=is,is=null,Eg=0,($t&6)!==0)throw Error(ge(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;lLr()-LS?pl(e,0):FS|=r),ro(e,t)}function jT(e,t){t===0&&((e.mode&1)===0?t=1:(t=Dm,Dm<<=1,(Dm&130023424)===0&&(Dm=4194304)));var r=Un();e=ya(e,t),e!==null&&(cd(e,t,r),ro(e,r))}function Lz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),jT(e,r)}function zz(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ge(314))}n!==null&&n.delete(t),jT(e,r)}var VT;VT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||eo.current)Zn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Zn=!1,Oz(e,t,r);Zn=(e.flags&131072)!==0}else Zn=!1,yr&&(t.flags&1048576)!==0&&GP(t,gg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Zm(e,t),e=t.pendingProps;var o=Wc(t,Tn.current);Fc(t,r),o=IS(null,t,n,e,o,r);var i=DS();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,to(n)?(i=!0,pg(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,OS(t),o.updater=Ag,t.stateNode=o,o._reactInternals=t,jb(t,n,e,r),t=Ub(null,t,n,!0,i,r)):(t.tag=0,yr&&i&&xS(t),Hn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Zm(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=Bz(n),e=pi(n,e),o){case 0:t=Hb(null,t,n,e,r);break e;case 1:t=L_(null,t,n,e,r);break e;case 11:t=M_(null,t,n,e,r);break e;case 14:t=F_(null,t,n,pi(n.type,e),r);break e}throw Error(ge(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:pi(n,o),Hb(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:pi(n,o),L_(e,t,n,o,r);case 3:e:{if(OT(t),e===null)throw Error(ge(387));n=t.pendingProps,i=t.memoizedState,o=i.element,ZP(e,t),yg(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Hc(Error(ge(423)),t),t=z_(e,t,n,r,o);break e}else if(n!==o){o=Hc(Error(ge(424)),t),t=z_(e,t,n,r,o);break e}else for(vo=cs(t.stateNode.containerInfo.firstChild),yo=t,yr=!0,gi=null,r=QP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Bc(),n===o){t=xa(e,t,r);break e}Hn(e,t,n,r)}t=t.child}return t;case 5:return eT(t),e===null&&zb(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Ab(n,o)?a=null:i!==null&&Ab(n,i)&&(t.flags|=32),RT(e,t),Hn(e,t,a,r),t.child;case 6:return e===null&&zb(t),null;case 13:return _T(e,t,r);case 4:return _S(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=jc(t,null,n,r):Hn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:pi(n,o),M_(e,t,n,o,r);case 7:return Hn(e,t,t.pendingProps,r),t.child;case 8:return Hn(e,t,t.pendingProps.children,r),t.child;case 12:return Hn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,er(hg,n._currentValue),n._currentValue=a,i!==null)if(yi(i.value,a)){if(i.children===o.children&&!eo.current){t=xa(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=ga(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Wb(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ge(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Wb(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Hn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Fc(t,r),o=Bo(o),n=n(o),t.flags|=1,Hn(e,t,n,r),t.child;case 14:return n=t.type,o=pi(n,t.pendingProps),o=pi(n.type,o),F_(e,t,n,o,r);case 15:return wT(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:pi(n,o),Zm(e,t),t.tag=1,to(n)?(e=!0,pg(t)):e=!1,Fc(t,r),bT(t,n,o),jb(t,n,o,r),Ub(null,t,n,!0,e,r);case 19:return PT(e,t,r);case 22:return ET(e,t,r)}throw Error(ge(156,t.tag))};function HT(e,t){return vP(e,t)}function Wz(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zo(e,t,r,n){return new Wz(e,t,r,n)}function jS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bz(e){if(typeof e=="function")return jS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sS)return 11;if(e===lS)return 14}return 2}function ps(e,t){var r=e.alternate;return r===null?(r=zo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function rg(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")jS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cc:return ml(r.children,o,i,t);case aS:a=8,o|=8;break;case db:return e=zo(12,r,t,o|2),e.elementType=db,e.lanes=i,e;case pb:return e=zo(13,r,t,o),e.elementType=pb,e.lanes=i,e;case mb:return e=zo(19,r,t,o),e.elementType=mb,e.lanes=i,e;case eP:return Fg(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J_:a=10;break e;case Z_:a=9;break e;case sS:a=11;break e;case lS:a=14;break e;case es:a=16,n=null;break e}throw Error(ge(130,e==null?e:typeof e,""))}return t=zo(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ml(e,t,r,n){return e=zo(7,e,n,t),e.lanes=r,e}function Fg(e,t,r,n){return e=zo(22,e,n,t),e.elementType=eP,e.lanes=r,e.stateNode={isHidden:!1},e}function cb(e,t,r){return e=zo(6,e,null,t),e.lanes=r,e}function ub(e,t,r){return t=zo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jz(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gx(0),this.expirationTimes=Gx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gx(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function VS(e,t,r,n,o,i,a,s,l){return e=new jz(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=zo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},OS(i),e}function Vz(e,t,r){var n=3{"use strict";function XT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(XT)}catch(e){console.error(e)}}XT(),YT.exports=KT()});var JT=$o(GS=>{"use strict";var QT=Hi();GS.createRoot=QT.createRoot,GS.hydrateRoot=QT.hydrateRoot;var MJ});var Ne=$o((zJ,jg)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i{"use strict";var YS=Symbol.for("react.element"),QS=Symbol.for("react.portal"),Ug=Symbol.for("react.fragment"),qg=Symbol.for("react.strict_mode"),Gg=Symbol.for("react.profiler"),Kg=Symbol.for("react.provider"),Xg=Symbol.for("react.context"),rW=Symbol.for("react.server_context"),Yg=Symbol.for("react.forward_ref"),Qg=Symbol.for("react.suspense"),Jg=Symbol.for("react.suspense_list"),Zg=Symbol.for("react.memo"),eh=Symbol.for("react.lazy"),nW=Symbol.for("react.offscreen"),sN;sN=Symbol.for("react.module.reference");function Vo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case YS:switch(e=e.type,e){case Ug:case Gg:case qg:case Qg:case Jg:return e;default:switch(e=e&&e.$$typeof,e){case rW:case Xg:case Yg:case eh:case Zg:case Kg:return e;default:return t}}case QS:return t}}}Ht.ContextConsumer=Xg;Ht.ContextProvider=Kg;Ht.Element=YS;Ht.ForwardRef=Yg;Ht.Fragment=Ug;Ht.Lazy=eh;Ht.Memo=Zg;Ht.Portal=QS;Ht.Profiler=Gg;Ht.StrictMode=qg;Ht.Suspense=Qg;Ht.SuspenseList=Jg;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return Vo(e)===Xg};Ht.isContextProvider=function(e){return Vo(e)===Kg};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===YS};Ht.isForwardRef=function(e){return Vo(e)===Yg};Ht.isFragment=function(e){return Vo(e)===Ug};Ht.isLazy=function(e){return Vo(e)===eh};Ht.isMemo=function(e){return Vo(e)===Zg};Ht.isPortal=function(e){return Vo(e)===QS};Ht.isProfiler=function(e){return Vo(e)===Gg};Ht.isStrictMode=function(e){return Vo(e)===qg};Ht.isSuspense=function(e){return Vo(e)===Qg};Ht.isSuspenseList=function(e){return Vo(e)===Jg};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ug||e===Gg||e===qg||e===Qg||e===Jg||e===nW||typeof e=="object"&&e!==null&&(e.$$typeof===eh||e.$$typeof===Zg||e.$$typeof===Kg||e.$$typeof===Xg||e.$$typeof===Yg||e.$$typeof===sN||e.getModuleId!==void 0)};Ht.typeOf=Vo});var uN=$o((iZ,cN)=>{"use strict";cN.exports=lN()});var R3=$o(D0=>{"use strict";var NG=N(),IG=Symbol.for("react.element"),DG=Symbol.for("react.fragment"),$G=Object.prototype.hasOwnProperty,AG=NG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kG={key:!0,ref:!0,__self:!0,__source:!0};function E3(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)$G.call(t,n)&&!kG.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:IG,type:e,key:i,ref:a,props:o,_owner:AG.current}}D0.Fragment=DG;D0.jsx=E3;D0.jsxs=E3});var Or=$o((RMe,O3)=>{"use strict";O3.exports=R3()});var J0={"SDPPP Get Document":"Get Document","SDPPP Get Layer By ID":"Get Layer","SDPPP Get Linked Layers":"Get Linked Layers","SDPPP Get Layers In Group":"Get Layers In Group","SDPPP Get Text From Layer":"Get Text From Layer","SDPPP Parse Layer Info":"Parse Layer Info","SDPPP Get Selection":"Get Selection","SDPPP Get Image From Photoshop":"Get Image From Photoshop","SDPPP Send Images To Photoshop":"Send Images To Photoshop","SDPPP Select Layer And Run PS Action":"Select Layer And Run PS Action"};var Z0={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":"Photoshop \u672A\u8FDE\u63A5\uFF01",rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var RR=typeof Y0<"u"?Y0:void 0,ex="en";typeof navigator<"u"&&navigator.language?ex=navigator.language=="zh-CN"?"zhcn":"en":RR&&(ex=RR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function me(e,...t){let r=ex=="zhcn"?Z0[e]:e in J0?J0[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(n,o){return typeof t[o]<"u"?t[o]:n})}function el(e,t){return e==t||Z0[e]==t}var Xt=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return el(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return me(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return el(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return me(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return el(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return me(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return el(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return me(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return el(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return me(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return el(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return me(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return me(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[me(e.SPECIAL_LAYER_USE_CANVAS),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[me(e.SPECIAL_LAYER_NEW_LAYER),me(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return me(e.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static fixI18n(t){return this.is_SPECIAL_DOCUMENT_CURRENT(t)?this.SPECIAL_DOCUMENT_CURRENT:this.is_SPECIAL_LAYER_NEW_LAYER(t)?this.SPECIAL_LAYER_NEW_LAYER:this.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t)?this.SPECIAL_LAYER_PREVIEW_DOCUMENT:this.is_SPECIAL_LAYER_USE_CANVAS(t)?this.SPECIAL_LAYER_USE_CANVAS:this.is_SPECIAL_LAYER_SELECTED_LAYER(t)?this.SPECIAL_LAYER_SELECTED_LAYER:t}};var tx={};Q0(tx,{JsonPatchError:()=>Nr,_areEquals:()=>af,applyOperation:()=>tl,applyPatch:()=>lc,applyReducer:()=>Q5,deepClone:()=>X5,getValueByPointer:()=>rl,validate:()=>_R,validator:()=>Bp});var G5=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),K5=Object.prototype.hasOwnProperty;function Lp(e,t){return K5.call(e,t)}function zp(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&n<=57){t++;continue}return!1}return!0}function ki(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function nf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Fp(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&d===void 0&&(c[m]===void 0?d=l.slice(0,u).join("/"):u==f-1&&(d=t.path),d!==void 0&&h(t,0,e,d)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(r&&!Wp(m))throw new Nr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Wp(m)&&(m=~~m)}if(u>=f){if(r&&t.op==="add"&&m>c.length)throw new Nr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var a=Y5[t.op].call(t,c,m,e);if(a.test===!1)throw new Nr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=f){var a=sc[t.op].call(t,c,m,e);if(a.test===!1)throw new Nr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[m],r&&u0)throw new Nr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Nr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Nr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Fp(e.value))throw new Nr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var o=e.path.split("/").length,i=n.split("/").length;if(o!==i+1&&o!==i)throw new Nr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new Nr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},s=_R([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Nr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Nr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function _R(e,t,r){try{if(!Array.isArray(e))throw new Nr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)lc(Tr(t),Tr(e),r||!0);else{r=r||Bp;for(var n=0;njp,generate:()=>rx,observe:()=>o4,unobserve:()=>n4});var nx=new WeakMap,J5=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),Z5=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function e4(e){return nx.get(e)}function t4(e,t){return e.observers.get(t)}function r4(e,t){e.observers.delete(t.callback)}function n4(e,t){t.unobserve()}function o4(e,t){var r=[],n,o=e4(e);if(!o)o=new J5(e),nx.set(e,o);else{var i=t4(o,t);n=i&&i.observer}if(n)return n;if(n={},o.value=Tr(e),t){n.callback=t,n.next=null;var a=function(){rx(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=r,n.object=e,n.unobserve=function(){rx(n),clearTimeout(n.next),r4(o,n),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new Z5(t,n)),n}function rx(e,t){t===void 0&&(t=!1);var r=nx.get(e.object);ox(r.value,e.object,e.patches,"",t),e.patches.length&&lc(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function ox(e,t,r,n,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=zp(t),a=zp(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(Lp(t,u)&&!(t[u]===void 0&&f!==void 0&&Array.isArray(t)===!1)){var d=t[u];typeof f=="object"&&f!=null&&typeof d=="object"&&d!=null&&Array.isArray(f)===Array.isArray(d)?ox(f,d,r,n+"/"+ki(u),o):f!==d&&(s=!0,o&&r.push({op:"test",path:n+"/"+ki(u),value:Tr(f)}),r.push({op:"replace",path:n+"/"+ki(u),value:Tr(d)}))}else Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+ki(u),value:Tr(f)}),r.push({op:"remove",path:n+"/"+ki(u)}),l=!0):(o&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),s=!0)}if(!(!l&&i.length==a.length))for(var c=0;cn!=t)}dispatch(t,r){let n=new Map;t.forEach(o=>{this.subscribers.forEach(([i,a])=>{o.path.startsWith(i)&&!n.has(i)&&n.set(i,JSON.stringify(i==="/"?r:rl(r,i)))})}),n.forEach((o,i)=>{let a=i==="/"?this._data:rl(this._data,i);o!==JSON.stringify(a)&&this.subscribers.filter(([s,l])=>s===i).forEach(([s,l])=>{let c={};try{c=l(a,JSON.parse(o||{}))}catch(u){console.error(u.stack||u.message||u)}c instanceof Promise&&c.catch(u=>{console.error(u.stack||u.message||u)})})})}};function nr(e,t,r){return e.constructor[Vp]||(e.constructor[Vp]=[]),e.constructor[Vp].push(t),{value:function(...n){let o=Tr(this._data);r.value.apply(this,n);let i=jp(o,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,o))}}}var nl=class extends ax{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Qt([nr],nl.prototype,"setSID",1);var on=class extends nl{constructor(t,r){super(t||{title:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",progress:0,lastError:"",queueSize:0,executingNodeTitle:"",widgetTableStructure:{widgetTablePath:"",widgetTablePersisted:!1,widgetTableID:"",nodes:{},groups:{},nodeIndexes:[],extraOptions:{}},widgetTableValue:{},widgetTableErrors:{},useSliderForNumberWidget:!1,hasPSDNodes:!1,comfyUserToken:"",comfyOrgLoggedIn:!1,comfyOrgAPIKey:""}),this._version=r||0}setWebviewFromSid(t){this._data.webviewFromSid=t}setTitle(t){this._data.title=t}setProgress(t){this._data.progress=t}setLastError(t){this._data.lastError=t}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setWidgetTableStructure(t){this._data.widgetTableStructure=JSON.parse(JSON.stringify(t))}setWidgetTableValue(t){this._data.widgetTableValue=JSON.parse(JSON.stringify(t))}setWidgetTableErrors(t){this._data.widgetTableErrors=JSON.parse(JSON.stringify(t))}setHasPSDNodes(t){this._data.hasPSDNodes=t}setComfyUserToken(t){this._data.comfyUserToken=t}setComfyOrgLoggedIn(t){this._data.comfyOrgLoggedIn=t}setComfyOrgAPIKey(t){this._data.comfyOrgAPIKey=t}setUseSliderForNumberWidget(t){this._data.useSliderForNumberWidget=t}};Qt([nr],on.prototype,"setWebviewFromSid",1),Qt([nr],on.prototype,"setTitle",1),Qt([nr],on.prototype,"setProgress",1),Qt([nr],on.prototype,"setLastError",1),Qt([nr],on.prototype,"setQueueSize",1),Qt([nr],on.prototype,"setExecutingNodeTitle",1),Qt([nr],on.prototype,"setWidgetTableStructure",1),Qt([nr],on.prototype,"setWidgetTableValue",1),Qt([nr],on.prototype,"setWidgetTableErrors",1),Qt([nr],on.prototype,"setHasPSDNodes",1),Qt([nr],on.prototype,"setComfyUserToken",1),Qt([nr],on.prototype,"setComfyOrgLoggedIn",1),Qt([nr],on.prototype,"setComfyOrgAPIKey",1),Qt([nr],on.prototype,"setUseSliderForNumberWidget",1);var Ao=class extends nl{constructor(t,r){super(t||{uname:"",comfyUserToken:"",isLocal:!1,activeDocumentID:0,documents:{},actions:[],canvasStateID:0,selectionStateID:"",historyStateID:0}),this._version=r||0}setIsLocal(t){this._data.isLocal=t}setUName(t){this._data.uname="PS_"+t}setDocument(t,r){this._data.activeDocumentID=t,this._data.documents=r}setCanvasStateID(t){this._data.canvasStateID=t}setSelectionStateID(t){this._data.selectionStateID=t}setHistoryStateID(t){this._data.historyStateID=t}setComfyUserToken(t){this._data.comfyUserToken=t}setActions(t){this._data.actions=t}};Qt([nr],Ao.prototype,"setIsLocal",1),Qt([nr],Ao.prototype,"setUName",1),Qt([nr],Ao.prototype,"setDocument",1),Qt([nr],Ao.prototype,"setCanvasStateID",1),Qt([nr],Ao.prototype,"setSelectionStateID",1),Qt([nr],Ao.prototype,"setHistoryStateID",1),Qt([nr],Ao.prototype,"setComfyUserToken",1),Qt([nr],Ao.prototype,"setActions",1);var Hp=class{storeMap=new Map;storeCount(){return this.storeMap.size}getStore(t){return this.storeMap.get(t)}getAllStore(){return Object.fromEntries(this.storeMap.entries())}subscribers=[];subscribersWithoutKey=new WeakMap;subscribe(t,r){this.subscribers.push([t,r]);let n={};this.subscribersWithoutKey.set(r,n),this.storeMap.forEach((o,i)=>{n[i]=r.bind(this,i),o.subscribe(t,n[i])})}unsubscribe(t){this.subscribers=this.subscribers.filter(([n,o])=>o!=t);let r=this.subscribersWithoutKey.get(t);r&&this.storeMap.forEach((n,o)=>{n.unsubscribe(r[o])})}addStore(t,r,n){let o=this.createStore(r,n);this.storeMap.set(t,o),this.subscribers.forEach(([i,a])=>{let s=this.subscribersWithoutKey.get(a);s||(s={},this.subscribersWithoutKey.set(a,s)),s[t]=a.bind(this,t),o.subscribe(i,s[t]),i=="/"&&a(t,r,null)})}removeStore(t){let r=this.storeMap.get(t);r&&(this.subscribers.forEach(([n,o])=>{let i=this.subscribersWithoutKey.get(o);i&&(r.unsubscribe(i[t]),n=="/"&&o(t,null,r.data))}),this.storeMap.delete(t))}sync(t){if(t instanceof Array){let r=Array.from(this.storeMap.keys()),n=t.filter(i=>!r.includes(i)),o=r.filter(i=>!t.includes(i));n.forEach(i=>this.addStore(i,{},0)),o.forEach(i=>this.removeStore(i))}else{Array.from(this.storeMap.keys()).filter(n=>!Object.keys(t).includes(n)).forEach(n=>this.removeStore(n));for(let n in t){let{data:o,version:i}=t[n];this.storeMap.has(n)?this.storeMap.get(n)?.sync(o,i):this.addStore(n,o,i)}}}};var mt=window.comfyAPI.app.app,WK=window.comfyAPI.ui.$el,an=window.comfyAPI.api.api;var sx=class extends Hp{createStore(t,r){return new Ao(t,r)}getStoreByName(t){for(let r of this.storeMap.values())if(r.data.uname===t)return r}getAllPhotoshopDocumentData(){let t={};return this.storeMap.forEach(r=>{t[r.data.uname]={sid:r.data.sid,activeDocumentID:r.data.activeDocumentID,documents:r.data.documents}}),t}},Wn=new sx,Xe=new on;if(window.uxpHost){let e=t=>{if(t.data.action!=="webview-connect"||!t.data.payload.webviewFromSid)return console.log(t);t.data.payload.webviewFromSid=t.data.payload.webviewFromSid,Xe.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function TR(){document.title!==Xe.data.title&&Xe.setTitle(document.title),"user"in mt.extensionManager&&Xe.setComfyOrgLoggedIn(mt.extensionManager.user.isLoggedIn),requestAnimationFrame(TR)}requestAnimationFrame(TR);var PR=!1;async function NR(){if(PR)return Promise.resolve();an.user&&Xe.setComfyUserToken(an.user);let e=await an.getSetting("sdppp.useSliderForNumberWidget");e&&Xe.setUseSliderForNumberWidget(e),PR=!0}function i4(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function Up(e){return i4(e)}globalThis.sdpppX=globalThis.sdpppX||{};var aa=globalThis.sdpppX;var Mi=class{static makeDocumentDataOptions(t){let r=t.data,n=[`${Xt.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(o=>{let i=r.documents[o];n.push(i.identify)}),n}static findDocumentData(t,r){let n=Xt.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:Up(r).id;return t.data.documents[n]}static makeLayerOptions(t,r){return r.concat(t.layers.map(o=>o.identify))}static getLayerDirtyID(t,r){return t.layers.find(o=>o.identify===r)?.dirtyID||0}static getCanvasDirtyID(t){return t.canvasDirtyID||0}static getSelectionDirtyID(t){return t.selectionDirtyID||0}};function lx(){let e=Wn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(an.user&&an.user!=r.data.comfyUserToken)return;let n=Mi.makeDocumentDataOptions(r).map(o=>cx(o,r.data.uname));t.push(...n)}),t}function IR(e,t){let r=[""],n=cc(e);if(!n)return[];let o=Mi.makeLayerOptions(n.documentData,t);return r.push(...o),r}function DR(){return an.user?Object.values(Wn.getAllStore()).filter(e=>an.user==e.data.comfyUserToken).length>0:Wn.storeCount()}function cx(e,t){return`${t}/${e}`}function cc(e){if(!e||!e.split||e.indexOf("/")==-1)return null;let t=Wn.getAllPhotoshopDocumentData(),[r,n]=e.split("/");if(n||(n=r,r=Object.keys(t)[0]),!t[r])return null;let o=Xt.is_SPECIAL_DOCUMENT_CURRENT(n)?t[r].activeDocumentID:Up(n).id;if(t[r]?.documents[o]){let i=t[r].documents[o];return{instance_id:t[r].sid,identify:n,documentData:i}}return null}var a4=function(e){let t=mt.graph.links;return Array.isArray(t)?t.find(n=>n&&n.origin_id==e):t.get(e)};function ux(e){let t=mt.graph.nodes,r=t.find(i=>e.id==i.id);if(!r)return null;let n=[];if(o(r,n),n.length>2){let i=n[0].widgets[0].value;if(!n.map(a=>a.widgets[0].value).every(a=>a==i))throw new Error(me("Cannot connect multiple different document widgets with same value"))}return n?.[0]||null;function o(i,a){if(i.type=="SDPPP Get Document")return a.push(i),i;if(i.inputs.length==0)return null;for(let s of i.inputs)if(s.link){let l=a4(s.link);if(!l)continue;let c=t.find(f=>f.id==l.origin_id);if(!c)continue;let u=o(c,a);if(u)return u}return null}}aa.findDocumentNodeRecursive=ux;var qp=class{flushing=Promise.resolve();newFlushPending=!1;constructor(t){this.doFlush=t,this.pause()}doFlush;runFlush(){this.newFlushPending||(this.newFlushPending=!0,this.flushing=this.flushing.then(async()=>{await new Promise(t=>requestAnimationFrame(t)),this.newFlushPending=!1,await this.doFlush()}))}pause(){this.flushing=this.flushing.then(t=>new Promise(r=>{this.resume=r})).then(()=>{this.resume=()=>{}})}resume=()=>{}};function $R(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_request",(i,a)=>{a({data:e.data,version:e.version})});let o=new qp(async()=>{let{operations:i,fromVersion:a,toVersion:s}=e.flush();await new Promise(l=>{let c=!1;setTimeout(()=>{c||(console.warn("flush timeout"),l())},5e3),this.socket.emit("store_flush",{operations:i,fromVersion:a},u=>{c=!0,l(),u?.error?console.error("flush error",u.error):e.flushDone(s)})})});e.subscribe("/",()=>{o.runFlush()}),this.socket.on("disconnect",()=>{o.pause()}),this.socket.on("connect",()=>{e.setSID(this.socket.id||""),requestAnimationFrame(()=>{this.socket.emit("sdppp_init",{type:t,data:e.data,version:e.version})})}),this.socket.on("sdppp_inited",i=>{o.resume()})}}}}function AR(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_flush",o=>{if(o.type!==t)return;let i=e.getStore(o.sid);if(i)i.patchVersionAcceptable(o.fromVersion)?i.patchData(o.operations):(console.warn("patch version not acceptable from",o.fromVersion,"current version is",i.version),this.socket.emit("store_request",{type:t},a=>{e.sync(a)}));else return this.socket.emit("store_request",{sid:o.sid},a=>{e.addStore(a.sid,a.data,a.version)})}),this.socket.on("store_remove",o=>{e.removeStore(o.sid)}),this.socket.on("sdppp_inited",o=>{this.socket.emit("store_request",{type:t},i=>{e.sync(i)})})}}}}var ui=Object.create(null);ui.open="0";ui.close="1";ui.ping="2";ui.pong="3";ui.message="4";ui.upgrade="5";ui.noop="6";var sf=Object.create(null);Object.keys(ui).forEach(e=>{sf[ui[e]]=e});var lf={type:"error",data:"parser error"};var FR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",LR=typeof ArrayBuffer=="function",zR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,cf=({type:e,data:t},r,n)=>FR&&t instanceof Blob?r?n(t):kR(t,n):LR&&(t instanceof ArrayBuffer||zR(t))?r?n(t):kR(new Blob([t]),n):n(ui[e]+(t||"")),kR=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function MR(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var fx;function WR(e,t){if(FR&&e.data instanceof Blob)return e.data.arrayBuffer().then(MR).then(t);if(LR&&(e.data instanceof ArrayBuffer||zR(e.data)))return t(MR(e.data));cf(e,!1,r=>{fx||(fx=new TextEncoder),t(fx.encode(r))})}var BR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,r=e.length,n,o=0,i,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>4,u[o++]=(a&15)<<4|s>>2,u[o++]=(s&3)<<6|l&63;return c};var s4=typeof ArrayBuffer=="function",ff=(e,t)=>{if(typeof e!="string")return{type:"message",data:VR(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:l4(e.substring(1),t)}:sf[r]?e.length>1?{type:sf[r],data:e.substring(1)}:{type:sf[r]}:lf},l4=(e,t)=>{if(s4){let r=jR(e);return VR(r,t)}else return{base64:!0,data:e}},VR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};var HR="",UR=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,a)=>{cf(i,!1,s=>{n[a]=s,++o===r&&t(n.join(HR))})})},qR=(e,t)=>{let r=e.split(HR),n=[];for(let o=0;o{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var dx;function Gp(e){return e.reduce((t,r)=>t+r.length,0)}function Kp(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;oMath.pow(2,21)-1){s.enqueue(lf);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Gp(r)e){s.enqueue(lf);break}}}})}var px=4;function Jt(e){if(e)return c4(e)}function c4(e){for(var t in Jt.prototype)e[t]=Jt.prototype[t];return e}Jt.prototype.on=Jt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Jt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Jt.prototype.off=Jt.prototype.removeListener=Jt.prototype.removeAllListeners=Jt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;oPromise.resolve().then(t):(t,r)=>r(t,0),Bn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),XR="arraybuffer";function Xp(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var u4=Bn.setTimeout,f4=Bn.clearTimeout;function la(e,t){t.useNativeTimers?(e.setTimeoutFn=u4.bind(Bn),e.clearTimeoutFn=f4.bind(Bn)):(e.setTimeoutFn=Bn.setTimeout.bind(Bn),e.clearTimeoutFn=Bn.clearTimeout.bind(Bn))}var d4=1.33;function YR(e){return typeof e=="string"?p4(e):Math.ceil((e.byteLength||e.size)*d4)}function p4(e){let t=0,r=0;for(let n=0,o=e.length;n=57344?r+=3:(n++,r+=4);return r}function Yp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function QR(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function JR(e){let t={},r=e.split("&");for(let n=0,o=r.length;n{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};qR(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,UR(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Yp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var ZR=!1;try{ZR=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var eO=ZR;function m4(){}var mx=class extends df{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Ga=class e extends Jt{constructor(t,r,n){super(),this.createRequest=t,la(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=Xp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=m4,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ga.requestsCount=0;Ga.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",tO);else if(typeof addEventListener=="function"){let e="onpagehide"in Bn?"pagehide":"unload";addEventListener(e,tO,!1)}}function tO(){for(let e in Ga.requests)Ga.requests.hasOwnProperty(e)&&Ga.requests[e].abort()}var g4=function(){let e=rO({xdomain:!1});return e&&e.responseType!==null}(),Ka=class extends mx{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=g4&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ga(rO,this.uri(),t)}};function rO(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||eO))return new XMLHttpRequest}catch{}if(!t)try{return new Bn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var nO=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",hx=class extends ca{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=nO?{}:Xp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r{try{this.doWrite(n,i)}catch{}o&&sa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Yp()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},gx=Bn.WebSocket||Bn.MozWebSocket,Xa=class extends hx{createSocket(t,r,n){return nO?new gx(t,r,n):r?new gx(t,r):new gx(t)}doWrite(t,r){this.ws.send(r)}};var uc=class extends ca{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=KR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=GR();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{n.read().then(({done:s,value:l})=>{s||(this.onPacket(l),i())}).catch(s=>{})};i();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r{o&&sa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var vx={websocket:Xa,webtransport:uc,polling:Ka};var h4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,v4=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function fc(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=h4.exec(e||""),i={},a=14;for(;a--;)i[v4[a]]=o[a]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=y4(i,i.path),i.queryKey=x4(i,i.query),i}function y4(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function x4(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var yx=typeof addEventListener=="function"&&typeof removeEventListener=="function",Jp=[];yx&&addEventListener("offline",()=>{Jp.forEach(e=>e())},!1);var ol=class e extends Jt{constructor(t,r){if(super(),this.binaryType=XR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=fc(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=fc(r.host).host);la(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=JR(this.opts.query)),yx&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Jp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=px,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,sa(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),yx&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Jp.indexOf(this._offlineEventListener);n!==-1&&Jp.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};ol.protocol=px;var Zp=class extends ol{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",f=>{if(!n)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;ol.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=r.name,this.emitReserved("upgradeError",d)}}))};function i(){n||(n=!0,u(),r.close(),r=null)}let a=f=>{let d=new Error("probe error: "+f);d.transport=r.name,i(),this.emitReserved("upgradeError",d)};function s(){a("transport closed")}function l(){a("socket closed")}function c(f){r&&f.name!==r.name&&i()}let u=()=>{r.removeListener("open",o),r.removeListener("error",a),r.removeListener("close",s),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",a),r.once("close",s),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;nvx[o]).filter(o=>!!o)),super(t,n)}};var vY=dc.protocol;function oO(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=fc(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=n.host.indexOf(":")!==-1?"["+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}var Ex={};Q0(Ex,{Decoder:()=>Cx,Encoder:()=>Sx,PacketType:()=>Ot,protocol:()=>cO});var S4=typeof ArrayBuffer=="function",C4=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,iO=Object.prototype.toString,w4=typeof Blob=="function"||typeof Blob<"u"&&iO.call(Blob)==="[object BlobConstructor]",E4=typeof File=="function"||typeof File<"u"&&iO.call(File)==="[object FileConstructor]";function mf(e){return S4&&(e instanceof ArrayBuffer||C4(e))||w4&&e instanceof Blob||E4&&e instanceof File}function pf(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(i),r.apply(this,s)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...r){return new Promise((n,o)=>{let i=(a,s)=>a?o(a):n(s);i.withError=!0,r.push(i),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>n!==this._queue[0]?void 0:(o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ot.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ot.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new 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 Ot.EVENT:case Ot.BINARY_EVENT:this.onevent(t);break;case Ot.ACK:case Ot.BINARY_ACK:this.onack(t);break;case Ot.DISCONNECT:this.ondisconnect();break;case Ot.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Ot.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ot.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}il.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=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};il.prototype.reset=function(){this.attempts=0};il.prototype.setMin=function(e){this.ms=e};il.prototype.setMax=function(e){this.max=e};il.prototype.setJitter=function(e){this.jitter=e};var mc=class extends Jt{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,la(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new il({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||Ex;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new dc(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=go(r,"open",function(){n.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=go(r,"error",i);if(this._timeout!==!1){let s=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),r.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(go(t,"ping",this.onping.bind(this)),go(t,"data",this.ondata.bind(this)),go(t,"error",this.onerror.bind(this)),go(t,"close",this.onclose.bind(this)),go(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){sa(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new pc(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;nt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var gf={};function hf(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=oO(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,a=gf[o]&&i in gf[o].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new mc(n,t):(gf[o]||(gf[o]=new mc(n,t)),l=gf[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(hf,{Manager:mc,Socket:pc,io:hf,connect:hf});var uO="507";var em=uO.trim();var Rx=class{socket;constructor(t){let r="/"+[t.split("/").slice(3).filter(n=>n).join("/"),"sd-ppp/"].filter(n=>n).join("/");t=t.split("/").slice(0,3).join("/"),this.socket=hf(t,{transports:["websocket"],path:r,query:{api_level:em},rejectUnauthorized:!1,autoConnect:!1}),this.socket.on("connect",()=>{this.socket.io.engine.binaryType="blob"})}get id(){return this.socket.id}connect(){this.socket.connect()}close(){this.socket.close()}};function fO(...e){return e.reduce((t,r)=>r(t),Rx)}function dO(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,n)=>{try{r.action=="extractPSD"&&mt.graph.nodes.forEach(o=>{o.type=="SDPPP Get Document"&&this.extractPSD(o,r.params.from_sid,"")}),n({})}catch(o){n({error:o instanceof Error?o.message:o?.toString()||"unknown error"})}})}async importPSDDataURLFromPhotoshop(t,r,n){let o=await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"get",fromSSID:n,document_identify:r}},l=>{a(l.data)})});var i=new FileReader;return i.readAsDataURL(o),new Promise(a=>{i.onloadend=function(){var s=i.result;a(s)}})}async exportPSDDataURLToPhotoshop(t,r,n,o){let i=await fetch(n).then(a=>a.arrayBuffer());await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"extract",fromSSID:o,document_identify:r,data:i}},l=>{a(l)})})}async sendImage(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"sendImages",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async getSpecialIdentifierValue(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"getSpecialIdentifierValue",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async extractPSD(t,r,n){t.properties.psd&&await this.exportPSDDataURLToPhotoshop(r,n,t.properties.psd,this.socket.id||"??").then(async()=>{await new Promise(o=>setTimeout(o,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}}}var pO={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var Ya=[];aa.widgetable=aa.widgetable||{};aa.widgetable.add=function(e,t){typeof t=="function"?Ya.push([e,{formatter:t,setter:null}]):Ya.push([e,t])};function rm(e,t,r){let n=Ya.find(([s])=>s=="__DEFAULT__"),o=Ya.find(([s])=>Ox(s,e.type))||n,i=!1;if(o){let s=o[1].setter;s&&(i=!!s(e,t,r))}i||(e.widgets[t].value=r,e.widgets[t].callback?.(r)),(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function vf(e){let t={},r=Ya.find(([n])=>n=="__DEFAULT__");return e.nodes.forEach(n=>{if(!n.widgets||n.widgets.length==0)return;let o=Ya.find(([i])=>Ox(i,n.type))||r;if(o)try{let i=o[1].formatter(n);i&&(t[n.id]=i.widgets.map(a=>a.value))}catch{t[n.id]=[]}}),t}function nm(e,t){if(!e)return{widgetTableID:"",widgetTablePath:"",widgetTablePersisted:!1,groups:{},nodes:{},nodeIndexes:[],extraOptions:{useSliderForNumberWidget:Xe.data.useSliderForNumberWidget}};let r=e.groups.map(o=>(o.recomputeInsideNodes(),{id:o.id,name:o.title,color:o.color,nodeIDs:o.nodes.map(i=>i.id)})),n=e.nodes.map(o=>{if(o.mode!=0)return;let i=tm(o);if(!i||i.startsWith(".")||!o.widgets||o.widgets.length==0)return;let a=Ya.find(([u])=>Ox(u,o.type));if(a)try{let u=a[1].formatter(o);if(u)return u.id=o.id,u.uiWeightSum=u.widgets.reduce((f,d)=>f+(d.uiWeight||12),0),u}catch(u){return{id:o.id,title:i,uiWeightSum:12,widgets:[{outputType:"error",value:me("convert widget {0} failed:",a[0])+(u.message||u||"")+(u?.stack||"")}]}}if(!i.startsWith("#"))return null;let s=o.widgets,l=Ya.find(([u])=>u=="__DEFAULT__");if(l){let u=l[1].formatter(o);if(u)return Object.assign(u,{uiWeightSum:u.widgets.reduce((f,d)=>f+(d.uiWeight||12),0)})}let c={id:o.id,title:i,widgets:s.map(u=>({name:u.label||u.name,outputType:u.type||"string",value:u.value,options:u.options}))};return Object.assign(c,{uiWeightSum:c.widgets.reduce((u,f)=>u+(f.uiWeight||12),0)})}).filter(Boolean).sort((o,i)=>{let a=tm(o),s=tm(i);return a=a.startsWith("#")?a.slice(1).trim():a.trim(),s=s.startsWith("#")?s.slice(1).trim():s.trim(),a.localeCompare(s)});return{widgetTablePath:t.activeState.extra.sdppp_workflow_alias||t.path,widgetTablePersisted:t.isPersisted,widgetTableID:t.activeState.id,groups:r,nodes:n.reduce((o,i)=>(o[i.id]=i,o),{}),nodeIndexes:n.map(o=>o.id),extraOptions:{useSliderForNumberWidget:Xe.data.useSliderForNumberWidget}}}function Ox(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function tm(e,t=""){let r=t||e.title||"";return e.setProperty&&(r.startsWith("#")||r.startsWith("."))?e.setProperty("sdppp_widgetable_title",r):r=e.properties?.sdppp_widgetable_title||r,r}aa.getNodeTitle=tm;var P4=new Map,al=P4;function gO(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=mt.workflowManager||mt.extensionManager.workflow,this.socket.on("F_workflow",async(r,n)=>{if(r.action=="open"||r.action=="save"||r.action=="list"||r.action=="setWidgetValue"||r.action=="run"||r.action=="setNodeTitle"||r.action=="logout"||r.action=="interrupt"||r.action=="clearQueue"||r.action=="reboot"||r.action=="setComfyOrgAPIKey")try{let o=await this[r.action](r.params);n(o||{})}catch(o){n({error:o.stack||o.message||o})}else n({error:"Invalid action"})})}async logout(){this.socket.disconnect(),document.querySelector(".pi-sign-out").parentElement.click()}async run(t){_x||T4();let r=t.size,n=!1,o="",i={};try{om=[];let s=await mt.queuePrompt(1,r);om.forEach(l=>{if(!n)if(l.error)n=!0,i=a(l.error.response.node_errors),Object.assign(i,{"-1":l.error.response.error.message});else{let c=l.result.prompt_id;al.set(c,t.from_sid)}})}catch(s){n=!0,i={"-1":s.message||s.stack||s.toString()}}n&&(o?Xe.setLastError(o):Xe.setWidgetTableErrors(i));function a(s){let l={};return Object.keys(s).forEach(c=>{let u=c.split(":")[0],f=mt.graph.nodes.find(d=>d.id==u);l[u]=`[${f?.title||u}]`+s[c].errors.map(JSON.stringify).join(` -`)}),l}}async list(t){let n=this.workflowManager.workflows.map(o=>o.path.replace("workflows/",""));try{let o=new Headers,i=localStorage.getItem("Comfy.userId");i&&o.set("comfy-user",i);let a=await fetch("./api/userdata/workflows%2F.index.json",{headers:o}),s=[];a.ok&&(s=(await a.json()).favorites.map(c=>c.replace("workflows/",""))),n.sort((l,c)=>{let u=s.includes(l),f=s.includes(c);return u&&!f?-1:!u&&f?1:l.localeCompare(c)})}catch(o){console.warn("Error fetching favorites, returning unsorted workflows:",o)}return{workflows:n,error:""}}setWidgetValue(t){t.values.forEach(({nodeID:r,widgetIndex:n,value:o})=>{let i=mt.graph.nodes.find(a=>a.id==r);!i||o==i.widgets[n].value||rm(i,n,o)})}async open(t){let{workflow_path:r}=t;try{Xe.setLastError(""),Xe.setWidgetTableErrors({}),r.startsWith("sdppp://")?await this.openSDPPPWorkflow(t):await this.openComfyWorkflow(t)}catch(n){throw n}}async openSDPPPWorkflow(t){let r=t.workflow_path.replace("sdppp://",""),n=await fetch("/sd-ppp-static/sdppp-workflows/"+r).then(o=>o.json());n.extra.sdppp_workflow_alias=t.workflow_path,await mt.loadGraphData(n)}async openComfyWorkflow(t){let{workflow_path:r,from_sid:n,reset:o}=t,i=this.workflowManager.workflows.find(a=>a.fullFilename===r||a.path===r||a.path==="workflows/"+r);(i.isOpen||this.workflowManager.isOpen?.(i))&&!o||(this.workflowManager.openWorkflows.length===1?await mt.loadGraphData(pO):await mO(this.workflowManager,this.workflowManager.openWorkflows[0]==i?this.workflowManager.openWorkflows[1]:this.workflowManager.openWorkflows[0]),await this.workflowManager.closeWorkflow(i,!1),await new Promise(a=>requestAnimationFrame(a)),await mO(this.workflowManager,i),await new Promise(a=>setTimeout(a,500)),Xe.data.widgetTableStructure&&await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:n,params:{widgetTableID:Xe.data.widgetTableStructure.widgetTableID,widgetTablePath:Xe.data.widgetTableStructure.widgetTablePath,widgetTablePersisted:Xe.data.widgetTableStructure.widgetTablePersisted}},a=>{this.setWidgetValue(a)}))}async save(t){let{workflow_path:r,from_sid:n}=t,o=this.workflowManager.workflows.find(i=>i.fullFilename===r||i.path===r||i.path==="workflows/"+r);if(!o)throw new Error("Workflow not found");this.workflowManager.activeWorkflow?.id!=o.id&&this.open({workflow_path:r,from_sid:n,reset:!1}),o.changeTracker.checkState(),await this.workflowManager.saveWorkflow(o)}setNodeTitle(t){let{node_id:r,title:n}=t,o=mt.graph.nodes.find(i=>i.id==r);if(!o)throw new Error("Node not found");o.title=n,o.setProperty("sdppp_widgetable_title",n)}async interrupt(t){await mt.api.interrupt()}async clearQueue(t){await mt.api.clearItems("queue")}async reboot(t){let r=await fetch("./api/manager/reboot");return r.status==404?{error:me("ComfyManager not found, cannot reboot"),success:!1}:r.status==200?{success:!0}:{error:me("Failed to reboot ComfyUI")+r.statusText,success:!1}}async setComfyOrgAPIKey(t){let{api_key:r}=t;localStorage.setItem("comfy_api_key",r),location.reload()}}}async function mO(e,t){mt.workflowManager==e?await t.load():(await e.openWorkflow(t),await mt.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var _x=!1,om=[];function T4(){if(_x)return;let e=an.queuePrompt;an.queuePrompt=async(...t)=>{try{let r=await e.call(an,...t);return om.push({error:null,result:r}),r}catch(r){throw om.push({error:r,result:null}),r}},_x=!0}var jn=class e extends fO($R(Xe,"comfy"),AR(Wn,"photoshop"),dO,gO){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};function im(e){return e.replace(/^workflows\//,"").replace(/\.json$/,"").split("://").pop()}var am=class{widget;node;originLabel="";indexInNode=0;constructor(t,r){this.widget=r,this.node=t,this.indexInNode=t.widgets.indexOf(r);let n=this;r.callback=function(...o){n.widget!=this&&(n.widget=n.node.widgets[n.indexInNode]=this),n._callbacks.forEach(i=>i(...o))},this.originLabel=r.label}_callbacks=[];onChange(t){this._callbacks.push(t)}removeOnChange(t){this._callbacks.splice(this._callbacks.indexOf(t),1)}},sm=class extends am{lockMode(t,r){if(t){if(this.widget.type=="button")return;this.widget.type="button",this.widget.value="",this.widget.label=r}else{if(this.widget.type=="combo")return;this.widget.type="combo",this.widget.value="",this.widget.label=this.originLabel}}},Qa=class e extends sm{getPSStore(){if(!this.widget.value||this.widget.value.indexOf("/")==-1)return null;let[t]=this.widget.value.split("/");return Wn.getStoreByName(t)?.data||null}static create(t,r){let n=lx(),o=t.size.slice(0),i=t.addWidget("combo",r,n[0]||"",()=>{},{forceInput:!0,values:lx});return i.serializeValue=async()=>{let a=cc(i.value);if(!a)return JSON.stringify({instance_id:me("document {0} not found",i.value),identify:"",canvasDirtyID:0,selectionDirtyID:0});if(i.type=="button")return JSON.stringify({instance_id:"",identify:"",canvasDirtyID:0,selectionDirtyID:0});let s=a.identify;return Xt.is_SPECIAL_DOCUMENT_CURRENT(s)&&(s=(await jn.instance.getSpecialIdentifierValue(a.instance_id,{identifier:s})).value),JSON.stringify({instance_id:a.instance_id,identify:s,canvasDirtyID:a.documentData.canvasDirtyID,selectionDirtyID:a.documentData.selectionDirtyID})},t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i)}static link(t,r){if(r.type=="combo")return new e(t,r);let n=e.create(t,r.name),o=t.widgets.indexOf(r);return t.widgets[o]=t.widgets.pop(),n}constructor(t,r){super(t,r),this.onChange(n=>{if(!isNaN(+n))r.value=Object.keys(r.options.values)[+n];else if(typeof n=="string"){let o=n.split("/");Xt.is_SPECIAL_DOCUMENT_CURRENT(o[1])&&(r.value=o[0]+"/"+Xt.getSpecialDocumentCurrent())}})}update(){vO(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(Xt.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=Wn.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=cx(r.data.documents[r.data.activeDocumentID].identify,t)}}},gc=class e extends sm{documentWidgetByLinked=null;extraOptions;constructor(t,r,n){super(t,r),this.extraOptions=n.extraOptions,this.update=this.update.bind(this),this.onChange(o=>{this.node.setProperty("layerWidgetDetail"+this.indexInNode,this.currentOptionsDetail[Object.values(this.currentOptions).indexOf(this.widget.value)]),typeof o=="string"&&(o=Xt.fixI18n(o))}),r.serializeValue=async()=>{if(r.type=="button")return JSON.stringify({identify:r.value,dirtyID:0});let o=this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=cc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await jn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Mi.getCanvasDirtyID(i.documentData):s=Mi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})}}static link(t,r,n){if(r.type=="combo")return new e(t,r,n);let o=e.create(t,r.name,n),i=t.widgets.indexOf(r);return t.widgets[i]=t.widgets.pop(),o}linkDocumentWidget(t){this.documentWidgetByLinked&&t?.removeOnChange(this.update),this.documentWidgetByLinked=t,this.documentWidgetByLinked&&this.documentWidgetByLinked.onChange(this.update)}update(){let t=this.documentWidgetByLinked;this.updateOptions(t)}currentOptions=[];currentOptionsDetail=[];updateOptions(t){if(this.currentOptions=this.extraOptions.slice(0),this.currentOptionsDetail=new Array(this.currentOptions.length).fill({id:0,name:"",identify:"",level:0,fullPath:""}),t&&t.widget.value){let r=cc(t.widget.value);if(!r)return;r.documentData.layers.map(n=>{this.currentOptions.push(n.identify),this.currentOptionsDetail.push(n)})}if(this.widget.options.values=this.currentOptions,Object.values(this.currentOptions).indexOf(this.widget.value)==-1){let r=this.node.properties["layerWidgetDetail"+this.indexInNode];if(r){let n=this.currentOptionsDetail.findIndex(o=>o.fullPath==r.fullPath);if(n!=-1){this.widget.value=this.currentOptions[n];return}}}}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{extraOptions:n.extraOptions})}},N4={extraOptions:[],documentWidgetInNode:null},yf=class e extends gc{documentWidgetInNode;constructor(t,r,n=N4){super(t,r,n),this.documentWidgetInNode=n.documentWidgetInNode,this.onChange(()=>{(this.documentWidgetInNode||this.documentWidgetByLinked)?.selectConcreteDocument()}),r.serializeValue=async()=>{let o=this.documentWidgetInNode||this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=cc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await jn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Mi.getCanvasDirtyID(i.documentData):s=Mi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})},this.documentWidgetInNode?.onChange(this.update)}update(){let t=this.documentWidgetInNode||this.documentWidgetByLinked;t?.widget.value&&(this.widget.options.values=IR(t.widget.value,this.extraOptions),vO(this.widget,this.widget.options.values))}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{documentWidgetInNode:n.documentWidgetInNode,extraOptions:n.extraOptions})}},hO=0,hc=class extends am{constructor(t,r){if(!r){let n=t.size.slice(0);r=t.addWidget("button","sdppp","",()=>{}),t.size=[n[0],Math.max(n[1],t.size[1])],r.serializeValue=async()=>{let o={lastOpenedWorkflow:t.properties.sdppp_send_prefix||im(Xe.data.widgetTableStructure.widgetTablePath)},i=ux(t);if(i?.widgets[0]){let a=await i.widgets[0].serializeValue();try{o.document=JSON.parse(a),o.isLocal=Wn.getStore(o.document.instance_id)?.data.isLocal||!1}catch{return""}}return JSON.stringify(o)}}super(t,r),this.onChange(()=>{Wn.storeCount()==0&&Date.now()-hO>3e3&&(hO=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`

${me("How to use .ccx file")}

${me("1. If you have installed Adobe Creative Cloud")}

${me("Just double click the .ccx file, it will install the plugin automatically")}

${me("2. If you don't have Adobe Creative Cloud")}

${me("Rename .ccx to .zip and extract it into ")}[${me("Photoshop directory")}]/Plug-ins ${me("or")} [${me("Photoshop directory")}]/Plug-ins/Generator

<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[ji]=t,e[nd]=n,NT(e,t,!1,!1),t.stateNode=e;e:{switch(a=Eb(r,n),r){case"dialog":ir("cancel",e),ir("close",e),o=n;break;case"iframe":case"object":case"embed":ir("load",e),o=n;break;case"video":case"audio":for(o=0;oUc&&(t.flags|=128,n=!0,If(i,!1),t.lanes=4194304)}else{if(!n)if(e=Sg(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),If(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!hr)return Tn(t),null}else 2*Lr()-i.renderingStartTime>Uc&&r!==1073741824&&(t.flags|=128,n=!0,If(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Lr(),t.sibling=null,r=wr.current,tr(wr,n?r&1|2:r&1),t):(Tn(t),null);case 22:case 23:return jS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(ho&1073741824)!==0&&(Tn(t),t.subtreeFlags&6&&(t.flags|=8192)):Tn(t),null;case 24:return null;case 25:return null}throw Error(me(156,t.tag))}function Tz(e,t){switch(CS(t),t.tag){case 1:return to(t.type)&&mg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vc(),ar(eo),ar(In),IS(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return NS(t),null;case 13:if(ar(wr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(me(340));Bc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ar(wr),null;case 4:return Vc(),null;case 10:return OS(t.type._context),null;case 22:case 23:return jS(),null;case 24:return null;default:return null}}var Gm=!1,Nn=!1,Nz=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Ic(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Dr(e,t,n)}else r.current=null}function Qb(e,t,r){try{r()}catch(n){Dr(e,t,n)}}var j_=!1;function Iz(e,t){if(Ab=ug,e=FP(),bS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var m;f!==r||o!==0&&f.nodeType!==3||(s=a+o),f!==i||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===r&&++c===o&&(s=a),d===i&&++u===n&&(l=a),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(kb={focusedElem:e,selectionRange:r},ug=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){t=Ge;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:di(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(me(163))}}catch(b){Dr(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}return h=j_,j_=!1,h}function Hf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Qb(t,r,i)}o=o.next}while(o!==n)}}function Fg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Jb(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function $T(e){var t=e.alternate;t!==null&&(e.alternate=null,$T(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ji],delete t[nd],delete t[Lb],delete t[pz],delete t[mz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function AT(e){return e.tag===5||e.tag===3||e.tag===4}function V_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||AT(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zb(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=pg));else if(n!==4&&(e=e.child,e!==null))for(Zb(e,t,r),e=e.sibling;e!==null;)Zb(e,t,r),e=e.sibling}function eS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(eS(e,t,r),e=e.sibling;e!==null;)eS(e,t,r),e=e.sibling}var gn=null,pi=!1;function Za(e,t,r){for(r=r.child;r!==null;)kT(e,t,r),r=r.sibling}function kT(e,t,r){if(Vi&&typeof Vi.onCommitFiberUnmount=="function")try{Vi.onCommitFiberUnmount(Tg,r)}catch{}switch(r.tag){case 5:Nn||Ic(r,t);case 6:var n=gn,o=pi;gn=null,Za(e,t,r),gn=n,pi=o,gn!==null&&(pi?(e=gn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):gn.removeChild(r.stateNode));break;case 18:gn!==null&&(pi?(e=gn,r=r.stateNode,e.nodeType===8?nb(e.parentNode,r):e.nodeType===1&&nb(e,r),Jf(e)):nb(gn,r.stateNode));break;case 4:n=gn,o=pi,gn=r.stateNode.containerInfo,pi=!0,Za(e,t,r),gn=n,pi=o;break;case 0:case 11:case 14:case 15:if(!Nn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&Qb(r,t,a),o=o.next}while(o!==n)}Za(e,t,r);break;case 1:if(!Nn&&(Ic(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Dr(r,t,s)}Za(e,t,r);break;case 21:Za(e,t,r);break;case 22:r.mode&1?(Nn=(n=Nn)||r.memoizedState!==null,Za(e,t,r),Nn=n):Za(e,t,r);break;default:Za(e,t,r)}}function H_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Nz),t.forEach(function(n){var o=Wz.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function fi(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Lr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*$z(n/1960))-n,10e?16:e,is===null)var n=!1;else{if(e=is,is=null,Og=0,($t&6)!==0)throw Error(me(331));var o=$t;for($t|=4,Ge=e.current;Ge!==null;){var i=Ge,a=i.child;if((Ge.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;lLr()-WS?gl(e,0):zS|=r),ro(e,t)}function VT(e,t){t===0&&((e.mode&1)===0?t=1:(t=Am,Am<<=1,(Am&130023424)===0&&(Am=4194304)));var r=Hn();e=xa(e,t),e!==null&&(ud(e,t,r),ro(e,r))}function zz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),VT(e,r)}function Wz(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(me(314))}n!==null&&n.delete(t),VT(e,r)}var HT;HT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||eo.current)Zn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Zn=!1,_z(e,t,r);Zn=(e.flags&131072)!==0}else Zn=!1,hr&&(t.flags&1048576)!==0&&KP(t,vg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;tg(e,t),e=t.pendingProps;var o=Wc(t,In.current);Fc(t,r),o=$S(null,t,n,e,o,r);var i=AS();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,to(n)?(i=!0,gg(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,PS(t),o.updater=Mg,t.stateNode=o,o._reactInternals=t,Hb(t,n,e,r),t=Gb(null,t,n,!0,i,r)):(t.tag=0,hr&&i&&SS(t),Vn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(tg(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=jz(n),e=di(n,e),o){case 0:t=qb(null,t,n,e,r);break e;case 1:t=z_(null,t,n,e,r);break e;case 11:t=F_(null,t,n,e,r);break e;case 14:t=L_(null,t,n,di(n.type,e),r);break e}throw Error(me(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),qb(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),z_(e,t,n,o,r);case 3:e:{if(_T(t),e===null)throw Error(me(387));n=t.pendingProps,i=t.memoizedState,o=i.element,eT(e,t),bg(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Hc(Error(me(423)),t),t=W_(e,t,n,r,o);break e}else if(n!==o){o=Hc(Error(me(424)),t),t=W_(e,t,n,r,o);break e}else for(vo=cs(t.stateNode.containerInfo.firstChild),yo=t,hr=!0,mi=null,r=JP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Bc(),n===o){t=ba(e,t,r);break e}Vn(e,t,n,r)}t=t.child}return t;case 5:return tT(t),e===null&&Bb(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Mb(n,o)?a=null:i!==null&&Mb(n,i)&&(t.flags|=32),OT(e,t),Vn(e,t,a,r),t.child;case 6:return e===null&&Bb(t),null;case 13:return PT(e,t,r);case 4:return TS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=jc(t,null,n,r):Vn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),F_(e,t,n,o,r);case 7:return Vn(e,t,t.pendingProps,r),t.child;case 8:return Vn(e,t,t.pendingProps.children,r),t.child;case 12:return Vn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,tr(yg,n._currentValue),n._currentValue=a,i!==null)if(vi(i.value,a)){if(i.children===o.children&&!eo.current){t=ba(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=ha(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),jb(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(me(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),jb(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Vn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Fc(t,r),o=Wo(o),n=n(o),t.flags|=1,Vn(e,t,n,r),t.child;case 14:return n=t.type,o=di(n,t.pendingProps),o=di(n.type,o),L_(e,t,n,o,r);case 15:return ET(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:di(n,o),tg(e,t),t.tag=1,to(n)?(e=!0,gg(t)):e=!1,Fc(t,r),ST(t,n,o),Hb(t,n,o,r),Gb(null,t,n,!0,e,r);case 19:return TT(e,t,r);case 22:return RT(e,t,r)}throw Error(me(156,t.tag))};function UT(e,t){return yP(e,t)}function Bz(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lo(e,t,r,n){return new Bz(e,t,r,n)}function HS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jz(e){if(typeof e=="function")return HS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cS)return 11;if(e===uS)return 14}return 2}function ps(e,t){var r=e.alternate;return r===null?(r=Lo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function og(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")HS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cc:return hl(r.children,o,i,t);case lS:a=8,o|=8;break;case mb:return e=Lo(12,r,t,o|2),e.elementType=mb,e.lanes=i,e;case gb:return e=Lo(13,r,t,o),e.elementType=gb,e.lanes=i,e;case hb:return e=Lo(19,r,t,o),e.elementType=hb,e.lanes=i,e;case tP:return zg(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z_:a=10;break e;case eP:a=9;break e;case cS:a=11;break e;case uS:a=14;break e;case es:a=16,n=null;break e}throw Error(me(130,e==null?e:typeof e,""))}return t=Lo(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function hl(e,t,r,n){return e=Lo(7,e,n,t),e.lanes=r,e}function zg(e,t,r,n){return e=Lo(22,e,n,t),e.elementType=tP,e.lanes=r,e.stateNode={isHidden:!1},e}function fb(e,t,r){return e=Lo(6,e,null,t),e.lanes=r,e}function db(e,t,r){return t=Lo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vz(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xx(0),this.expirationTimes=Xx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xx(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function US(e,t,r,n,o,i,a,s,l){return e=new Vz(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},PS(i),e}function Hz(e,t,r){var n=3{"use strict";function YT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YT)}catch(e){console.error(e)}}YT(),QT.exports=XT()});var ZT=Do(XS=>{"use strict";var JT=Ui();XS.createRoot=JT.createRoot,XS.hydrateRoot=JT.hydrateRoot;var FJ});var Ne=Do((WJ,Hg)=>{"use strict";(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i{"use strict";var JS=Symbol.for("react.element"),ZS=Symbol.for("react.portal"),Gg=Symbol.for("react.fragment"),Kg=Symbol.for("react.strict_mode"),Xg=Symbol.for("react.profiler"),Yg=Symbol.for("react.provider"),Qg=Symbol.for("react.context"),nW=Symbol.for("react.server_context"),Jg=Symbol.for("react.forward_ref"),Zg=Symbol.for("react.suspense"),eh=Symbol.for("react.suspense_list"),th=Symbol.for("react.memo"),rh=Symbol.for("react.lazy"),oW=Symbol.for("react.offscreen"),lN;lN=Symbol.for("react.module.reference");function jo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JS:switch(e=e.type,e){case Gg:case Xg:case Kg:case Zg:case eh:return e;default:switch(e=e&&e.$$typeof,e){case nW:case Qg:case Jg:case rh:case th:case Yg:return e;default:return t}}case ZS:return t}}}Ht.ContextConsumer=Qg;Ht.ContextProvider=Yg;Ht.Element=JS;Ht.ForwardRef=Jg;Ht.Fragment=Gg;Ht.Lazy=rh;Ht.Memo=th;Ht.Portal=ZS;Ht.Profiler=Xg;Ht.StrictMode=Kg;Ht.Suspense=Zg;Ht.SuspenseList=eh;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return jo(e)===Qg};Ht.isContextProvider=function(e){return jo(e)===Yg};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JS};Ht.isForwardRef=function(e){return jo(e)===Jg};Ht.isFragment=function(e){return jo(e)===Gg};Ht.isLazy=function(e){return jo(e)===rh};Ht.isMemo=function(e){return jo(e)===th};Ht.isPortal=function(e){return jo(e)===ZS};Ht.isProfiler=function(e){return jo(e)===Xg};Ht.isStrictMode=function(e){return jo(e)===Kg};Ht.isSuspense=function(e){return jo(e)===Zg};Ht.isSuspenseList=function(e){return jo(e)===eh};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gg||e===Xg||e===Kg||e===Zg||e===eh||e===oW||typeof e=="object"&&e!==null&&(e.$$typeof===rh||e.$$typeof===th||e.$$typeof===Yg||e.$$typeof===Qg||e.$$typeof===Jg||e.$$typeof===lN||e.getModuleId!==void 0)};Ht.typeOf=jo});var fN=Do((aZ,uN)=>{"use strict";uN.exports=cN()});var O3=Do(A0=>{"use strict";var IG=N(),DG=Symbol.for("react.element"),$G=Symbol.for("react.fragment"),AG=Object.prototype.hasOwnProperty,kG=IG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,MG={key:!0,ref:!0,__self:!0,__source:!0};function R3(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)AG.call(t,n)&&!MG.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:DG,type:e,key:i,ref:a,props:o,_owner:kG.current}}A0.Fragment=$G;A0.jsx=R3;A0.jsxs=R3});var _r=Do((OMe,_3)=>{"use strict";_3.exports=O3()});var ex={"SDPPP Get Document":"Get Document","SDPPP Get Layer By ID":"Get Layer","SDPPP Get Linked Layers":"Get Linked Layers","SDPPP Get Layers In Group":"Get Layers In Group","SDPPP Get Text From Layer":"Get Text From Layer","SDPPP Parse Layer Info":"Parse Layer Info","SDPPP Get Selection":"Get Selection","SDPPP Get Image From Photoshop":"Get Image From Photoshop","SDPPP Send Images To Photoshop":"Send Images To Photoshop","SDPPP Select Layer And Run PS Action":"Select Layer And Run PS Action"};var tx={"### Active Document ###":"### \u5F53\u524D\u6587\u6863 ###","### The Canvas ###":"### \u6574\u4E2A\u753B\u5E03 ###","### New Layer ###":"### \u65B0\u56FE\u5C42 ###","### Selected Layer ###":"### \u6240\u9009\u56FE\u5C42 ###","### Keep Size or Fit Canvas ###":"### \u4FDD\u6301\u5C3A\u5BF8\u6216\u9002\u5E94\u753B\u5E03 ###",_SDPPP_PSD_:"_SDPPP_PSD_","Save and run immediately":"\u4FDD\u5B58\u5E76\u7ACB\u5373\u6267\u884C",Close:"\u5173\u95ED","Select a {0}":"\u9009\u62E9\u4E00\u4E2A {0}","How to use .ccx file":"\u5982\u4F55\u4F7F\u7528 .ccx \u6587\u4EF6","1. If you have installed Adobe Creative Cloud":"1. \u5982\u679C\u4F60\u5DF2\u7ECF\u5B89\u88C5\u4E86 Adobe Creative Cloud","Just double click the .ccx file, it will install the plugin automatically":"\u53CC\u51FB .ccx \u6587\u4EF6\uFF0C\u5B83\u4F1A\u81EA\u52A8\u5B89\u88C5","2. If you don't have Adobe Creative Cloud":"2. \u5982\u679C\u4F60\u6CA1\u6709 Adobe Creative Cloud","Rename .ccx to .zip and extract it into ":"\u5C06 .ccx \u91CD\u547D\u540D\u4E3A .zip \u5E76\u89E3\u538B\u5230",or:"\u6216","Photoshop directory":"Photoshop \u5B89\u88C5\u76EE\u5F55","Cannot connect multiple different document widgets with same value":"\u4E0D\u80FD\u8FDE\u63A5\u591A\u4E2A\u5177\u6709\u76F8\u540C\u503C\u7684\u6587\u6863\u5C0F\u90E8\u4EF6","You can only have one SDPPP Settings node in a workflow":"\u4E00\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u53EA\u80FD\u6709\u4E00\u4E2A SDPPP Settings \u8282\u70B9","convert widget {0} failed:":"\u63A7\u4EF6{0}\u8F6C\u6362\u5931\u8D25\uFF1A","hidden webview load failed: {0}, please select a browser page to continue":"\u5185\u7F6E webview \u52A0\u8F7D\u5931\u8D25: {0}\uFF0C\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D4F\u89C8\u5668\u9875\u9762\u7EE7\u7EED","SDPPP Get Document":"\u83B7\u53D6\u6587\u6863(GetDocument)","SDPPP Get Layer By ID":"\u83B7\u53D6\u56FE\u5C42(GetLayer)","SDPPP Get Linked Layers":"\u83B7\u53D6\u94FE\u63A5\u56FE\u5C42(GetLinkedLayers)","SDPPP Get Layers In Group":"\u83B7\u53D6\u7EC4\u4E2D\u56FE\u5C42(GetLayersInGroup)","SDPPP Get Text From Layer":"\u83B7\u53D6\u56FE\u5C42\u6587\u672C(GetTextFromLayer)","SDPPP Parse Layer Info":"\u89E3\u6790\u56FE\u5C42\u4FE1\u606F(ParseLayerInfo)","SDPPP Get Selection":"\u83B7\u53D6\u9009\u533A(GetSelection)","SDPPP Get Image From Photoshop":"\u4ECEPS\u83B7\u53D6\u56FE\u50CF(GetImageFromPhotoshop)","SDPPP Send Images To Photoshop":"\u53D1\u9001\u56FE\u50CF\u5230PS(SendImagesToPhotoshop)","SDPPP Send Text To Layer":"\u53D1\u9001\u6587\u672C\u5230\u56FE\u5C42(SendTextToLayer)","SDPPP Select Layer And Run PS Action":"\u9009\u4E2D\u56FE\u5C42\u5E76\u8FD0\u884CPS Action(RunPhotoshopAction)","download PS plugin (.ccx)":"\u4E0B\u8F7D Photoshop \u63D2\u4EF6 (.ccx)","current ComfyUI pageid: {0}":"\u5F53\u524D ComfyUI \u9875\u9762ID: {0}","current A1111 pageid: {0}":"\u5F53\u524D A1111 \u9875\u9762ID: {0}","document linked":"\u6587\u6863\u53C2\u6570\u5DF2\u94FE\u63A5","layer linked":"\u56FE\u5C42\u53C2\u6570\u5DF2\u94FE\u63A5","bound linked":"\u8303\u56F4\u53C2\u6570\u5DF2\u94FE\u63A5",document:"\u6587\u6863",Document:"\u6587\u6863",DOCUMENT:"\u6587\u6863",document_name:"\u6587\u6863\u540D\u5B57id",layer_nameid:"\u56FE\u5C42\u540D\u5B57id",layer_name:"\u56FE\u5C42\u540D\u5B57",layer_info:"\u56FE\u5C42\u4FE1\u606F",bound_top:"\u8303\u56F4\u4E0A\u8FB9\u8DDD",bound_left:"\u8303\u56F4\u5DE6\u8FB9\u8DDD",bound_width:"\u8303\u56F4\u5BBD\u5EA6",bound_height:"\u8303\u56F4\u9AD8\u5EA6",center_x:"\u4E2D\u5FC3\u70B9x",center_y:"\u4E2D\u5FC3\u70B9y",opacity:"\u900F\u660E\u5EA6",layer:"\u56FE\u5C42",layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",Layer_or_group:"\u56FE\u5C42(\u6216\u7EC4)",bound:"\u8303\u56F4",bounds:"\u8303\u56F4","bounds [optional]":"\u8303\u56F4[\u53EF\u9009]",boundary:"\u8303\u56F4",Boundary:"\u8303\u56F4",canvas_boundary:"\u753B\u5E03\u8303\u56F4",canvas_bound:"\u753B\u5E03\u8303\u56F4",layer_boundary:"\u56FE\u5C42\u8303\u56F4",layer_bound:"\u56FE\u5C42\u8303\u56F4","Photoshop Disconnected!":"Photoshop \u672A\u8FDE\u63A5\uFF01",rgb_out:"RGB\u8F93\u51FA",alpha_out:"Alpha\u8F93\u51FA",images:"\u56FE\u50CF",text:"\u6587\u672C",ID_mode:"\u7CBE\u786EID\u6A21\u5F0F",name_mode:"\u540D\u5B57\u5339\u914D\u6A21\u5F0F",select:"\u9009\u62E9","document boundary":"\u6587\u6863\u8303\u56F4","layer boundary":"\u56FE\u5C42\u8303\u56F4","selection boundary":"\u9009\u4E2D\u8303\u56F4","save .psd to this workflow":"\u4FDD\u5B58.psd\u5230\u8FD9\u4E2A\u5DE5\u4F5C\u6D41","extract saved .psd to Photoshop":"\u63D0\u53D6\u4FDD\u5B58\u7684.psd\u5230Photoshop","sample .psd":"\u793A\u4F8B.psd",mask:"\u906E\u7F69",name:"\u540D\u79F0",quality:"\u56FE\u50CF\u8D28\u91CF",action_set:"\u52A8\u4F5C\u7EC4",action:"\u52A8\u4F5C",Runner:"\u8FD0\u884C\u8F7D\u4F53","PS Webview":"PS \u5185\u7F6E\u7F51\u9875","Browser {0}":"\u6D4F\u89C8\u5668\u9875\u9762 {0}",timeout:"\u8D85\u65F6","Loading...":"\u52A0\u8F7D\u4E2D...","--multi-user Not Login!":"--multi-user\u5DF2\u6FC0\u6D3B\uFF0C\u4F46\u672A\u767B\u5F55\uFF01",Logout:"\u767B\u51FA","User: ":"\u7528\u6237: ",connect:"\u8FDE\u63A5",connected:"\u5DF2\u8FDE\u63A5",disconnect:"\u65AD\u5F00",disconnected:"\u5DF2\u65AD\u5F00\u8FDE\u63A5","reconnecting...":"\u91CD\u8FDE\u4E2D...",connecting:"\u8FDE\u63A5\u4E2D",webpages:"\u7F51\u9875\u5217\u8868",workflows:"\u5DE5\u4F5C\u6D41",workflow:"\u5DE5\u4F5C\u6D41","auto run page [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u9875\u9762 {0}..","auto run workflow [{0}] after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41 {0}..","auto run workflow after change..":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C\u5DE5\u4F5C\u6D41..",selection_only:"\u4EC5\u9009\u533A","Queue:":"\u961F\u5217:","Set As:":"\u8BBE\u7F6E\u4E3A:","Error {0}... please contact me via Discord/Github":"\u51FA\u73B0\u9519\u8BEF {0}...\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211","Webview initialize failed. Please report to me via Discord/Github with your ComfyURL, Operate System":"Webview \u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u901A\u8FC7 QQ/Github \u8054\u7CFB\u6211\u5E76\u9644\u4E0A\u4F60\u7684Comfy\u5730\u5740\u3001\u64CD\u4F5C\u7CFB\u7EDF","ComfyUI with --multi-user is only available for sponsors":'\u5E26"--multi-user"\u7684ComfyUI\u4EC5\u5BF9\u8D5E\u52A9\u8005\u5F00\u653E',"Workflow Runner is loading...":"\u8FD0\u884C\u8F7D\u4F53\u5C1A\u5728\u52A0\u8F7D...","(Page ID: {0})Queue: {1}":"(\u9875\u9762ID: {0}) \u961F\u5217\u957F\u5EA6 {1}","no suitable node to control in this workflow":"\u8FD9\u4E2A\u5DE5\u4F5C\u6D41\u4E2D\u6CA1\u6709\u80FD\u63A7\u5236\u7684\u8282\u70B9",Save:"\u4FDD\u5B58",Edit:"\u7F16\u8F91","Edit in ComfyUI":"\u5728 ComfyUI \u4E2D\u7F16\u8F91","using browser page [{0}] for workflow running":"\u6B63\u63A5\u7BA1\u7F51\u9875 [{0}] \u8FD0\u884C\u5DE5\u4F5C\u6D41","workflow running by hidden webview":"\u5DE5\u4F5C\u6D41\u5728\u9690\u85CF\u7684webview\u4E2D\u8FD0\u884C","Lock Image":"\u9501\u5B9A\u56FE\u50CF","Unlock Image":"\u89E3\u9501\u56FE\u50CF","search...":"\u641C\u7D22...","disabled when running in browser page":"\u63A5\u7BA1\u7F51\u9875\u65F6\u4E0D\u53EF\u7528","only supported in Photoshop":"\u4EC5\u5728 Photoshop \u4E2D\u652F\u6301",Login:"\u767B\u5F55","Invitation Code":"\u9080\u8BF7\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801","Please input invitation code":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","Please input username":"\u8BF7\u8F93\u5165\u7528\u6237\u540D","Please input password":"\u8BF7\u8F93\u5165\u5BC6\u7801","Open more ComfyUI pages to see more options here":"\u6253\u5F00\u66F4\u591A ComfyUI \u9875\u9762\u4EE5\u67E5\u770B\u66F4\u591A\u9009\u9879","Comfy multi-user: ":"Comfy \u591A\u7528\u6237: ","Not Login":"\u672A\u767B\u5F55","Comfy API-Key: ":"Comfy API-Key: ","Login/Auth":"\u767B\u5F55/\u8BA4\u8BC1","Logged in by email/password":"\u5DF2\u901A\u8FC7\u90AE\u7BB1/\u5BC6\u7801\u767B\u5F55","Set API Key":"\u8BBE\u7F6E API Key","Please input API key (will reload Runner)":"\u8BF7\u8F93\u5165 API Key (\u4F1A\u91CD\u542F\u8FD0\u884C\u8F7D\u4F53)","### Active Workflow ###":"### \u5F53\u524D\u5DE5\u4F5C\u6D41 ###","### Example SDXL ###":"### \u793A\u4F8BSDXL\u5DE5\u4F5C\u6D41 ###","Open ComfyUI in the browser to see more options":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00 ComfyUI \u4EE5\u5F97\u5230\u66F4\u591A\u9009\u9879","Webview load timeout, please switch to a different runner":"Webview \u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u5207\u6362\u5230\u5176\u4ED6\u8FD0\u884C\u8F7D\u4F53","Save workflow to ComfyUI":"\u4FDD\u5B58\u5DE5\u4F5C\u6D41\u5230 ComfyUI","Reload workflow":"\u91CD\u65B0\u52A0\u8F7D\u5DE5\u4F5C\u6D41","Stop and cancel all":"\u505C\u6B62\u5E76\u53D6\u6D88\u6240\u6709","Start auto running after change":"\u66F4\u6539\u540E\u81EA\u52A8\u8FD0\u884C","Stop auto run":"\u505C\u6B62\u81EA\u52A8\u8FD0\u884C","Run workflow":"\u8FD0\u884C\u5DE5\u4F5C\u6D41","Run workflow xN":"\u8FD0\u884C\u5DE5\u4F5C\u6D41N\u6B21","Back to workflow list":"\u8FD4\u56DE\u5DE5\u4F5C\u6D41\u5217\u8868","502: Maybe the server is not running":"502: \u670D\u52A1\u5668\u53EF\u80FD\u672A\u8FD0\u884C","404: Maybe SDPPP is not installed or failed to run in ComfyUI":"404: \u53EF\u80FD\u5728ComfyUI\u4E2DSDPPP\u672A\u5B89\u88C5\u6216\u8FD0\u884C\u5931\u8D25","{0}. reconnecting...":"{0}. \u91CD\u8FDE\u4E2D...","disconnected to {0} failed {1}":"\u65AD\u5F00\u8FDE\u63A5 {0} \u9519\u8BEF {1}","version mismatch, please reinstall PS plugin":"\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u91CD\u65B0\u5B89\u88C5 PS \u63D2\u4EF6","instance type not recognized":"\u672A\u8BC6\u522B\u7684\u8F6F\u4EF6\u7C7B\u578B","Error: {0}":"\u9519\u8BEF: {0}","Verification Error":"\u9A8C\u8BC1\u9519\u8BEF","document {0} not found":"\u627E\u4E0D\u5230\u6587\u6863: {0}",'only layer kind "TEXT" is supported, invalid layer: {0}':"\u4E0D\u652F\u6301\u975E\u6587\u672C\u56FE\u5C42: {0}","create layer failed":"\u521B\u5EFA\u56FE\u5C42\u5931\u8D25","layer not found {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","no linked layer for {0}":"\u6CA1\u6709\u94FE\u63A5\u56FE\u5C42: {0}","layer {0} is not a group":"\u56FE\u5C42 {0} \u4E0D\u662F\u4E00\u4E2A\u7EC4","no layer in group {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u56FE\u5C42","layer not found: {0}":"\u627E\u4E0D\u5230\u56FE\u5C42: {0}","No upload_name":"\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u4E86\u5931\u8D25","get pixel of {0} failed":"\u83B7\u53D6\u50CF\u7D20\u5931\u8D25: {0}","merge group failed":"\u5408\u5E76\u7EC4\u5931\u8D25","invalid name: {0}":"\u975E\u6CD5\u7684\u540D\u79F0: {0}","get_layer_info: layer_identify required":"get_layer_info: \u9700\u8981 layer_identify","invalid action: {0}":"\u65E0\u6548\u7684\u64CD\u4F5C: {0}","create document failed":"\u521B\u5EFA\u6587\u6863\u5931\u8D25","create document for preview":"\u521B\u5EFA\u9884\u89C8\u6587\u6863","resize document for preview":"\u8C03\u6574\u9884\u89C8\u6587\u6863\u5C3A\u5BF8","no first related layer in {0}":"\u7EC4 {0} \u4E2D\u6CA1\u6709\u7B2C\u4E00\u4E2A\u76F8\u5173\u56FE\u5C42","imageDataError: data length is not multiple of width * height":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: \u6570\u636E\u957F\u5EA6\u4E0D\u662F\u5BBD\u5EA6 * \u9AD8\u5EA6\u7684\u500D\u6570","imageDataError: originComponents must be 1 or 3":"\u56FE\u50CF\u6570\u636E\u6709\u8BEF: originComponents \u5FC5\u987B\u662F 1 \u6216 3","unexpected connection lost, please try to reconnect":"\u610F\u5916\u65AD\u5F00\u8FDE\u63A5\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u8FDE\u63A5","Workflow list is empty, please save a workflow by Comfy's lastest UI":"\u5DE5\u4F5C\u6D41\u5217\u8868\u4E3A\u7A7A\uFF0C\u8BF7\u5728Comfy\u7684\u65B0\u7248UI\u4E2D\u4FDD\u5B58\u4E00\u4E2A\u5DE5\u4F5C\u6D41","No opened ComfyUI pages":"\u6CA1\u6709\u5DF2\u6253\u5F00\u7684ComfyUI\u9875\u9762","comfyAPI is not initialized, maybe comfyUI is too old":"\u65E0\u6CD5\u83B7\u53D6 ComfyAPI\uFF0C\u53EF\u80FD ComfyUI \u7248\u672C\u592A\u65E7","unsupported channel counts: {0}":"\u4E0D\u652F\u6301\u7684\u901A\u9053\u6570: {0}","Timeout, Maybe the URL is wrong":"\u8D85\u65F6\uFF0C\u53EF\u80FD comfy\u5730\u5740 \u586B\u5199\u9519\u8BEF","Workflow list loading failed: {0}":"\u5DE5\u4F5C\u6D41\u5217\u8868\u52A0\u8F7D\u5931\u8D25: {0}","Please register a user in ComfyUI":"\u8BF7\u5728 ComfyUI \u4E2D\u6CE8\u518C\u4E00\u4E2A\u7528\u6237","GetSelection need Photoshop version 25+":"GetSelection \u9700\u8981 Photoshop 25+ \u7248\u672C","Action {0} not found":"Action {0} \u672A\u627E\u5230","Action set {0} not found":"ActionSet {0} \u672A\u627E\u5230","{0} cannot be used in Photoshop Action Node":"{0} \u4E0D\u80FD\u5728 Photoshop Action \u8282\u70B9\u4E2D\u4F7F\u7528","Group layers":"\u56FE\u5C42\u7EC4","Show All Groups":"\u663E\u793A\u6240\u6709\u7EC4","create document for sent images":"\u7ED9\u53D1\u9001\u7684\u56FE\u7247\u521B\u5EFA\u6587\u6863","show sent images":"\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","fallback show sent images":"\u53D6\u6D88\u663E\u793A\u53D1\u9001\u7684\u56FE\u7247","get content of layer {0}":"\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","fallback get content of layer {0}":"\u53D6\u6D88\u83B7\u53D6\u56FE\u5C42 {0} \u7684\u5185\u5BB9","get layer info":"\u83B7\u53D6\u56FE\u5C42\u4FE1\u606F","sdppp extract PSD":"sdppp \u5BFC\u5165 PSD","sdppp get PSD":"sdppp \u83B7\u53D6 PSD","set text to layer":"\u8BBE\u7F6E\u56FE\u5C42\u7684\u6587\u672C","run Photoshop Action":"sdppp \u8FD0\u884C Photoshop Action","select layer":"sdppp \u9009\u4E2D\u56FE\u5C42","{0} wants to extract a PSD file to Photoshop, are you sure?":"{0} \u60F3\u8981\u91CA\u653E\u4E00\u4E2A.psd\u6587\u4EF6\u5230Photoshop\uFF0C\u786E\u5B9A\u5417\uFF1F","should sdppp refuse extracting PSD to Photoshop in this session anymore?":"\u662F\u5426\u8981\u8BA9 sdppp \u62D2\u7EDD\u672C\u6B21PS\u4F1A\u8BDD\u518D\u6B21\u63A5\u53D7.psd\u91CA\u653E\u8BF7\u6C42\uFF1F","Wide Mode":"\u5BBD\u5C4F\u6A21\u5F0F","Quick Set":"\u5FEB\u901F\u8BBE\u7F6E","Selected Layer":"\u9009\u4E2D\u56FE\u5C42","Selected Layer (invert)":"\u9009\u4E2D\u56FE\u5C42(\u53CD\u5411)",Canvas:"\u753B\u5E03",Selection:"\u9009\u533A",Manual:"\u624B\u52A8\u6A21\u5F0F",Auto:"\u81EA\u52A8\u6A21\u5F0F","This plugin is based on sd-ppp":"\u672C\u63D2\u4EF6\u57FA\u4E8Esd-ppp\u5F00\u53D1","And follows its open source license:":"\u5E76\u9075\u5FAA\u5176\u5F00\u6E90\u534F\u8BAE\uFF1A",Cloud:"\u4E91\u7AEF\u63A8\u8350",Sponsors:"\u8D5E\u52A9","waiting...":"\u865A\u4F4D\u4EE5\u5F85",Links:"\u53CB\u60C5\u94FE\u63A5",Community:"\u793E\u533A","LICENSE:":"\u8BB8\u53EF\u8BC1\uFF1A","Official Site":"\u5B98\u65B9\u7F51\u7AD9",upload:"\u4E0A\u4F20","Simplify Workflow":"\u7B80\u5316\u5DE5\u4F5C\u6D41",Photoshop:"Photoshop","Photoshop plugin settings":"Photoshop \u63D2\u4EF6\u8BBE\u7F6E","Photoshop plugin":"Photoshop \u63D2\u4EF6","SDPPP Settings/Misc":"SDPPP \u8BBE\u7F6E/\u6742\u9879","Sample .PSD for this workflow:":"\u793A\u4F8B.PSD","Download Example .PSD":"\u4E0B\u8F7D\u793A\u4F8B.PSD","Maximum Image Size (px):":"\u6700\u5927\u56FE\u50CF\u5C3A\u5BF8(px)",Download:"\u4E0B\u8F7D",Upload:"\u4E0A\u4F20",Reset:"\u91CD\u7F6E",Refresh:"\u5237\u65B0","Comfy URL (You can copy it to connect ComfyUI in the plugin):":"Comfy\u5730\u5740(\u4F60\u53EF\u4EE5\u590D\u5236\u5B83\u5230\u63D2\u4EF6\u4E2D\u8FDE\u63A5ComfyUI):","use slider for number widget:":"\u6570\u5B57\u63A7\u4EF6\u4F7F\u7528\u6ED1\u5757","Photoshop is not connected":"Photoshop \u672A\u8FDE\u63A5","select...":"\u8BF7\u9009\u62E9","click to edit":"\u70B9\u51FB\u7F16\u8F91","ComfyManager not found, cannot reboot":"Comfy Manager\u672A\u5B89\u88C5\uFF0C\u65E0\u6CD5\u91CD\u542F","Failed to reboot ComfyUI":"\u91CD\u542FComfyUI\u5931\u8D25"};var OR=typeof J0<"u"?J0:void 0,rx="en";typeof navigator<"u"&&navigator.language?rx=navigator.language=="zh-CN"?"zhcn":"en":OR&&(rx=OR("uxp").host.uiLocale.startsWith("zh")?"zhcn":"en");function pe(e,...t){let r=rx=="zhcn"?tx[e]:e in ex?ex[e]:e;if(!r)throw new Error(`i18n key not found: ${e}`);return r.replace(/{(\d+)}/g,function(n,o){return typeof t[o]<"u"?t[o]:n})}function rl(e,t){return e==t||tx[e]==t}var Xt=class e{static SPECIAL_DOCUMENT_CURRENT="### Active Document ###";static is_SPECIAL_DOCUMENT_CURRENT(t){return rl(this.SPECIAL_DOCUMENT_CURRENT,t)}static get_SPECIAL_DOCUMENT_CURRENT(){return pe(this.SPECIAL_DOCUMENT_CURRENT)}static SPECIAL_LAYER_KEEP_SIZE="### Keep Size or Fit Canvas ###";static is_SPECIAL_LAYER_FIT(t){return rl(this.SPECIAL_LAYER_KEEP_SIZE,t)}static get_SPECIAL_LAYER_FIT(){return pe(this.SPECIAL_LAYER_KEEP_SIZE)}static SPECIAL_LAYER_USE_CANVAS="### The Canvas ###";static is_SPECIAL_LAYER_USE_CANVAS(t){return rl(this.SPECIAL_LAYER_USE_CANVAS,t)}static get_SPECIAL_LAYER_USE_CANVAS(){return pe(this.SPECIAL_LAYER_USE_CANVAS)}static SPECIAL_LAYER_NEW_LAYER="### New Layer ###";static is_SPECIAL_LAYER_NEW_LAYER(t){return rl(this.SPECIAL_LAYER_NEW_LAYER,t)}static get_SPECIAL_LAYER_NEW_LAYER(){return pe(this.SPECIAL_LAYER_NEW_LAYER)}static SPECIAL_LAYER_SELECTED_LAYER="### Selected Layer ###";static is_SPECIAL_LAYER_SELECTED_LAYER(t){return rl(this.SPECIAL_LAYER_SELECTED_LAYER,t)}static get_SPECIAL_LAYER_SELECTED_LAYER(){return pe(this.SPECIAL_LAYER_SELECTED_LAYER)}static SPECIAL_LAYER_PREVIEW_DOCUMENT="_SDPPP_PSD_";static is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t){return rl(this.SPECIAL_LAYER_PREVIEW_DOCUMENT,t)}static get_SPECIAL_LAYER_PREVIEW_DOCUMENT(){return pe(this.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static getSpecialDocumentCurrent(){return pe(e.SPECIAL_DOCUMENT_CURRENT)}static getSpecialLayerForGet(){return[pe(e.SPECIAL_LAYER_USE_CANVAS),pe(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialLayerForSend(){return[pe(e.SPECIAL_LAYER_NEW_LAYER),pe(e.SPECIAL_LAYER_SELECTED_LAYER)]}static getSpecialDocumentForPreview(){return pe(e.SPECIAL_LAYER_PREVIEW_DOCUMENT)}static fixI18n(t){return this.is_SPECIAL_DOCUMENT_CURRENT(t)?this.SPECIAL_DOCUMENT_CURRENT:this.is_SPECIAL_LAYER_NEW_LAYER(t)?this.SPECIAL_LAYER_NEW_LAYER:this.is_SPECIAL_LAYER_PREVIEW_DOCUMENT(t)?this.SPECIAL_LAYER_PREVIEW_DOCUMENT:this.is_SPECIAL_LAYER_USE_CANVAS(t)?this.SPECIAL_LAYER_USE_CANVAS:this.is_SPECIAL_LAYER_SELECTED_LAYER(t)?this.SPECIAL_LAYER_SELECTED_LAYER:t}};var nx={};Z0(nx,{JsonPatchError:()=>Ir,_areEquals:()=>sf,applyOperation:()=>nl,applyPatch:()=>lc,applyReducer:()=>J5,deepClone:()=>Y5,getValueByPointer:()=>ol,validate:()=>PR,validator:()=>Vp});var K5=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),X5=Object.prototype.hasOwnProperty;function Wp(e,t){return X5.call(e,t)}function Bp(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&n<=57){t++;continue}return!1}return!0}function Mi(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function of(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function zp(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&l[u-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&d===void 0&&(c[m]===void 0?d=l.slice(0,u).join("/"):u==f-1&&(d=t.path),d!==void 0&&h(t,0,e,d)),u++,Array.isArray(c)){if(m==="-")m=c.length;else{if(r&&!jp(m))throw new Ir("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);jp(m)&&(m=~~m)}if(u>=f){if(r&&t.op==="add"&&m>c.length)throw new Ir("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var a=Q5[t.op].call(t,c,m,e);if(a.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=f){var a=sc[t.op].call(t,c,m,e);if(a.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(c=c[m],r&&u0)throw new Ir('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Ir("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Ir("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&zp(e.value))throw new Ir("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var o=e.path.split("/").length,i=n.split("/").length;if(o!==i+1&&o!==i)throw new Ir("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new Ir("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},s=PR([a],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new Ir("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new Ir("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function PR(e,t,r){try{if(!Array.isArray(e))throw new Ir("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)lc(Nr(t),Nr(e),r||!0);else{r=r||Vp;for(var n=0;nHp,generate:()=>ox,observe:()=>i4,unobserve:()=>o4});var ix=new WeakMap,Z5=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),e4=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function t4(e){return ix.get(e)}function r4(e,t){return e.observers.get(t)}function n4(e,t){e.observers.delete(t.callback)}function o4(e,t){t.unobserve()}function i4(e,t){var r=[],n,o=t4(e);if(!o)o=new Z5(e),ix.set(e,o);else{var i=r4(o,t);n=i&&i.observer}if(n)return n;if(n={},o.value=Nr(e),t){n.callback=t,n.next=null;var a=function(){ox(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=r,n.object=e,n.unobserve=function(){ox(n),clearTimeout(n.next),n4(o,n),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new e4(t,n)),n}function ox(e,t){t===void 0&&(t=!1);var r=ix.get(e.object);ax(r.value,e.object,e.patches,"",t),e.patches.length&&lc(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function ax(e,t,r,n,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=Bp(t),a=Bp(e),s=!1,l=!1,c=a.length-1;c>=0;c--){var u=a[c],f=e[u];if(Wp(t,u)&&!(t[u]===void 0&&f!==void 0&&Array.isArray(t)===!1)){var d=t[u];typeof f=="object"&&f!=null&&typeof d=="object"&&d!=null&&Array.isArray(f)===Array.isArray(d)?ax(f,d,r,n+"/"+Mi(u),o):f!==d&&(s=!0,o&&r.push({op:"test",path:n+"/"+Mi(u),value:Nr(f)}),r.push({op:"replace",path:n+"/"+Mi(u),value:Nr(d)}))}else Array.isArray(e)===Array.isArray(t)?(o&&r.push({op:"test",path:n+"/"+Mi(u),value:Nr(f)}),r.push({op:"remove",path:n+"/"+Mi(u)}),l=!0):(o&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),s=!0)}if(!(!l&&i.length==a.length))for(var c=0;cn!=t)}dispatch(t,r){let n=new Map;t.forEach(o=>{this.subscribers.forEach(([i,a])=>{o.path.startsWith(i)&&!n.has(i)&&n.set(i,JSON.stringify(i==="/"?r:ol(r,i)))})}),n.forEach((o,i)=>{let a=i==="/"?this._data:ol(this._data,i);o!==JSON.stringify(a)&&this.subscribers.filter(([s,l])=>s===i).forEach(([s,l])=>{let c={};try{c=l(a,JSON.parse(o||{}))}catch(u){console.error(u.stack||u.message||u)}c instanceof Promise&&c.catch(u=>{console.error(u.stack||u.message||u)})})})}};function or(e,t,r){return e.constructor[Up]||(e.constructor[Up]=[]),e.constructor[Up].push(t),{value:function(...n){let o=Nr(this._data);r.value.apply(this,n);let i=Hp(o,this._data);i.length!=0&&(this._mutationRecords.push(...i),this._version+=i.length,this.dispatch(i,o))}}}var il=class extends lx{constructor(t){super(Object.assign({sid:"",ssid:""},t||{}))}setSID(t){this._data.sid=t,this._data.ssid=t.slice(0,4)}};Jt([or],il.prototype,"setSID",1);var rn=class extends il{constructor(t,r){super(t||{title:"",webviewFromSid:location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",progress:0,lastError:"",queueSize:0,executingNodeTitle:"",widgetTableStructure:{widgetTablePath:"",widgetTablePersisted:!1,widgetTableID:"",nodes:{},groups:{},nodeIndexes:[],extraOptions:{}},widgetTableValue:{},widgetTableErrors:{},useSliderForNumberWidget:!1,hasPSDNodes:!1,comfyUserToken:"",comfyOrgLoggedIn:!1,comfyOrgAPIKey:""}),this._version=r||0}setWebviewFromSid(t){this._data.webviewFromSid=t}setTitle(t){this._data.title=t}setProgress(t){this._data.progress=t}setLastError(t){this._data.lastError=t}setQueueSize(t){this._data.queueSize=t}setExecutingNodeTitle(t){this._data.executingNodeTitle=t}setWidgetTableStructure(t){this._data.widgetTableStructure=JSON.parse(JSON.stringify(t))}setWidgetTableValue(t){this._data.widgetTableValue=JSON.parse(JSON.stringify(t))}setWidgetTableErrors(t){this._data.widgetTableErrors=JSON.parse(JSON.stringify(t))}setHasPSDNodes(t){this._data.hasPSDNodes=t}setComfyUserToken(t){this._data.comfyUserToken=t}setComfyOrgLoggedIn(t){this._data.comfyOrgLoggedIn=t}setComfyOrgAPIKey(t){this._data.comfyOrgAPIKey=t}setUseSliderForNumberWidget(t){this._data.useSliderForNumberWidget=t}};Jt([or],rn.prototype,"setWebviewFromSid",1),Jt([or],rn.prototype,"setTitle",1),Jt([or],rn.prototype,"setProgress",1),Jt([or],rn.prototype,"setLastError",1),Jt([or],rn.prototype,"setQueueSize",1),Jt([or],rn.prototype,"setExecutingNodeTitle",1),Jt([or],rn.prototype,"setWidgetTableStructure",1),Jt([or],rn.prototype,"setWidgetTableValue",1),Jt([or],rn.prototype,"setWidgetTableErrors",1),Jt([or],rn.prototype,"setHasPSDNodes",1),Jt([or],rn.prototype,"setComfyUserToken",1),Jt([or],rn.prototype,"setComfyOrgLoggedIn",1),Jt([or],rn.prototype,"setComfyOrgAPIKey",1),Jt([or],rn.prototype,"setUseSliderForNumberWidget",1);var $o=class extends il{constructor(t,r){super(t||{uname:"",comfyUserToken:"",isLocal:!1,activeDocumentID:0,documents:{},actions:[],canvasStateID:0,selectionStateID:"",historyStateID:0}),this._version=r||0}setIsLocal(t){this._data.isLocal=t}setUName(t){this._data.uname="PS_"+t}setDocument(t,r){this._data.activeDocumentID=t,this._data.documents=r}setCanvasStateID(t){this._data.canvasStateID=t}setSelectionStateID(t){this._data.selectionStateID=t}setHistoryStateID(t){this._data.historyStateID=t}setComfyUserToken(t){this._data.comfyUserToken=t}setActions(t){this._data.actions=t}};Jt([or],$o.prototype,"setIsLocal",1),Jt([or],$o.prototype,"setUName",1),Jt([or],$o.prototype,"setDocument",1),Jt([or],$o.prototype,"setCanvasStateID",1),Jt([or],$o.prototype,"setSelectionStateID",1),Jt([or],$o.prototype,"setHistoryStateID",1),Jt([or],$o.prototype,"setComfyUserToken",1),Jt([or],$o.prototype,"setActions",1);var qp=class{storeMap=new Map;storeCount(){return this.storeMap.size}getStore(t){return this.storeMap.get(t)}getAllStore(){return Object.fromEntries(this.storeMap.entries())}subscribers=[];subscribersWithoutKey=new WeakMap;subscribe(t,r){this.subscribers.push([t,r]);let n={};this.subscribersWithoutKey.set(r,n),this.storeMap.forEach((o,i)=>{n[i]=r.bind(this,i),o.subscribe(t,n[i])})}unsubscribe(t){this.subscribers=this.subscribers.filter(([n,o])=>o!=t);let r=this.subscribersWithoutKey.get(t);r&&this.storeMap.forEach((n,o)=>{n.unsubscribe(r[o])})}addStore(t,r,n){let o=this.createStore(r,n);this.storeMap.set(t,o),this.subscribers.forEach(([i,a])=>{let s=this.subscribersWithoutKey.get(a);s||(s={},this.subscribersWithoutKey.set(a,s)),s[t]=a.bind(this,t),o.subscribe(i,s[t]),i=="/"&&a(t,r,null)})}removeStore(t){let r=this.storeMap.get(t);r&&(this.subscribers.forEach(([n,o])=>{let i=this.subscribersWithoutKey.get(o);i&&(r.unsubscribe(i[t]),n=="/"&&o(t,null,r.data))}),this.storeMap.delete(t))}sync(t){if(t instanceof Array){let r=Array.from(this.storeMap.keys()),n=t.filter(i=>!r.includes(i)),o=r.filter(i=>!t.includes(i));n.forEach(i=>this.addStore(i,{},0)),o.forEach(i=>this.removeStore(i))}else{Array.from(this.storeMap.keys()).filter(n=>!Object.keys(t).includes(n)).forEach(n=>this.removeStore(n));for(let n in t){let{data:o,version:i}=t[n];this.storeMap.has(n)?this.storeMap.get(n)?.sync(o,i):this.addStore(n,o,i)}}}};var gt=window.comfyAPI.app.app,BK=window.comfyAPI.ui.$el,nn=window.comfyAPI.api.api;var cx=class extends qp{createStore(t,r){return new $o(t,r)}getStoreByName(t){for(let r of this.storeMap.values())if(r.data.uname===t)return r}getAllPhotoshopDocumentData(){let t={};return this.storeMap.forEach(r=>{t[r.data.uname]={sid:r.data.sid,activeDocumentID:r.data.activeDocumentID,documents:r.data.documents}}),t}},zn=new cx,Xe=new rn;if(window.uxpHost){let e=t=>{if(t.data.action!=="webview-connect"||!t.data.payload.webviewFromSid)return console.log(t);t.data.payload.webviewFromSid=t.data.payload.webviewFromSid,Xe.setWebviewFromSid(t.data.payload.webviewFromSid),window.removeEventListener("message",e)};window.addEventListener("message",e),window.uxpHost.postMessage({from:"sdppp-webview",action:"webview-connect"},"*")}function NR(){document.title!==Xe.data.title&&Xe.setTitle(document.title),"user"in gt.extensionManager&&Xe.setComfyOrgLoggedIn(gt.extensionManager.user.isLoggedIn),requestAnimationFrame(NR)}requestAnimationFrame(NR);var TR=!1;async function IR(){if(TR)return Promise.resolve();nn.user&&Xe.setComfyUserToken(nn.user);let e=await nn.getSetting("sdppp.useSliderForNumberWidget");e&&Xe.setUseSliderForNumberWidget(e),TR=!0}function a4(e){let t=e.split(" (id:");return{name:t[0],id:parseInt(t[1].slice(0,-1))}}function Gp(e){return a4(e)}globalThis.sdpppX=globalThis.sdpppX||{};var sa=globalThis.sdpppX;var Fi=class{static makeDocumentDataOptions(t){let r=t.data,n=[`${Xt.getSpecialDocumentCurrent()}`];return Object.keys(r.documents).forEach(o=>{let i=r.documents[o];n.push(i.identify)}),n}static findDocumentData(t,r){let n=Xt.is_SPECIAL_DOCUMENT_CURRENT(r)?t.data.activeDocumentID:Gp(r).id;return t.data.documents[n]}static makeLayerOptions(t,r){return r.concat(t.layers.map(o=>o.identify))}static getLayerDirtyID(t,r){return t.layers.find(o=>o.identify===r)?.dirtyID||0}static getCanvasDirtyID(t){return t.canvasDirtyID||0}static getSelectionDirtyID(t){return t.selectionDirtyID||0}};function ux(){let e=zn.getAllStore(),t=[];return Object.values(e).forEach(r=>{if(nn.user&&nn.user!=r.data.comfyUserToken)return;let n=Fi.makeDocumentDataOptions(r).map(o=>fx(o,r.data.uname));t.push(...n)}),t}function DR(e,t){let r=[""],n=cc(e);if(!n)return[];let o=Fi.makeLayerOptions(n.documentData,t);return r.push(...o),r}function $R(){return nn.user?Object.values(zn.getAllStore()).filter(e=>nn.user==e.data.comfyUserToken).length>0:zn.storeCount()}function fx(e,t){return`${t}/${e}`}function cc(e){if(!e||!e.split||e.indexOf("/")==-1)return null;let t=zn.getAllPhotoshopDocumentData(),[r,n]=e.split("/");if(n||(n=r,r=Object.keys(t)[0]),!t[r])return null;let o=Xt.is_SPECIAL_DOCUMENT_CURRENT(n)?t[r].activeDocumentID:Gp(n).id;if(t[r]?.documents[o]){let i=t[r].documents[o];return{instance_id:t[r].sid,identify:n,documentData:i}}return null}var s4=function(e){let t=gt.graph.links;return Array.isArray(t)?t.find(n=>n&&n.origin_id==e):t.get(e)};function dx(e){let t=gt.graph.nodes,r=t.find(i=>e.id==i.id);if(!r)return null;let n=[];if(o(r,n),n.length>2){let i=n[0].widgets[0].value;if(!n.map(a=>a.widgets[0].value).every(a=>a==i))throw new Error(pe("Cannot connect multiple different document widgets with same value"))}return n?.[0]||null;function o(i,a){if(i.type=="SDPPP Get Document")return a.push(i),i;if(i.inputs.length==0)return null;for(let s of i.inputs)if(s.link){let l=s4(s.link);if(!l)continue;let c=t.find(f=>f.id==l.origin_id);if(!c)continue;let u=o(c,a);if(u)return u}return null}}sa.findDocumentNodeRecursive=dx;var Kp=class{flushing=Promise.resolve();newFlushPending=!1;constructor(t){this.doFlush=t,this.pause()}doFlush;runFlush(){this.newFlushPending||(this.newFlushPending=!0,this.flushing=this.flushing.then(async()=>{await new Promise(t=>requestAnimationFrame(t)),this.newFlushPending=!1,await this.doFlush()}))}pause(){this.flushing=this.flushing.then(t=>new Promise(r=>{this.resume=r})).then(()=>{this.resume=()=>{}})}resume=()=>{}};function AR(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_request",(i,a)=>{a({data:e.data,version:e.version})});let o=new Kp(async()=>{let{operations:i,fromVersion:a,toVersion:s}=e.flush();await new Promise(l=>{let c=!1;setTimeout(()=>{c||(console.warn("flush timeout"),l())},5e3),this.socket.emit("store_flush",{operations:i,fromVersion:a},u=>{c=!0,l(),u?.error?console.error("flush error",u.error):e.flushDone(s)})})});e.subscribe("/",()=>{o.runFlush()}),this.socket.on("disconnect",()=>{o.pause()}),this.socket.on("connect",()=>{e.setSID(this.socket.id||""),requestAnimationFrame(()=>{this.socket.emit("sdppp_init",{type:t,data:e.data,version:e.version})})}),this.socket.on("sdppp_inited",i=>{o.resume()})}}}}function kR(e,t){return function(r){return class extends r{constructor(n){super(n),this.socket.on("store_flush",o=>{if(o.type!==t)return;let i=e.getStore(o.sid);if(i)i.patchVersionAcceptable(o.fromVersion)?i.patchData(o.operations):(console.warn("patch version not acceptable from",o.fromVersion,"current version is",i.version),this.socket.emit("store_request",{type:t},a=>{e.sync(a)}));else return this.socket.emit("store_request",{sid:o.sid},a=>{e.addStore(a.sid,a.data,a.version)})}),this.socket.on("store_remove",o=>{e.removeStore(o.sid)}),this.socket.on("sdppp_inited",o=>{this.socket.emit("store_request",{type:t},i=>{e.sync(i)})})}}}}var ci=Object.create(null);ci.open="0";ci.close="1";ci.ping="2";ci.pong="3";ci.message="4";ci.upgrade="5";ci.noop="6";var lf=Object.create(null);Object.keys(ci).forEach(e=>{lf[ci[e]]=e});var cf={type:"error",data:"parser error"};var LR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",zR=typeof ArrayBuffer=="function",WR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,uf=({type:e,data:t},r,n)=>LR&&t instanceof Blob?r?n(t):MR(t,n):zR&&(t instanceof ArrayBuffer||WR(t))?r?n(t):MR(new Blob([t]),n):n(ci[e]+(t||"")),MR=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function FR(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var px;function BR(e,t){if(LR&&e.data instanceof Blob)return e.data.arrayBuffer().then(FR).then(t);if(zR&&(e.data instanceof ArrayBuffer||WR(e.data)))return t(FR(e.data));uf(e,!1,r=>{px||(px=new TextEncoder),t(px.encode(r))})}var jR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ff=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,r=e.length,n,o=0,i,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>4,u[o++]=(a&15)<<4|s>>2,u[o++]=(s&3)<<6|l&63;return c};var l4=typeof ArrayBuffer=="function",df=(e,t)=>{if(typeof e!="string")return{type:"message",data:HR(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:c4(e.substring(1),t)}:lf[r]?e.length>1?{type:lf[r],data:e.substring(1)}:{type:lf[r]}:cf},c4=(e,t)=>{if(l4){let r=VR(e);return HR(r,t)}else return{base64:!0,data:e}},HR=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};var UR="",qR=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,a)=>{uf(i,!1,s=>{n[a]=s,++o===r&&t(n.join(UR))})})},GR=(e,t)=>{let r=e.split(UR),n=[];for(let o=0;o{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var mx;function Xp(e){return e.reduce((t,r)=>t+r.length,0)}function Yp(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;oMath.pow(2,21)-1){s.enqueue(cf);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Xp(r)e){s.enqueue(cf);break}}}})}var gx=4;function Zt(e){if(e)return u4(e)}function u4(e){for(var t in Zt.prototype)e[t]=Zt.prototype[t];return e}Zt.prototype.on=Zt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Zt.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Zt.prototype.off=Zt.prototype.removeListener=Zt.prototype.removeAllListeners=Zt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;oPromise.resolve().then(t):(t,r)=>r(t,0),Wn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),YR="arraybuffer";function Qp(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var f4=Wn.setTimeout,d4=Wn.clearTimeout;function ca(e,t){t.useNativeTimers?(e.setTimeoutFn=f4.bind(Wn),e.clearTimeoutFn=d4.bind(Wn)):(e.setTimeoutFn=Wn.setTimeout.bind(Wn),e.clearTimeoutFn=Wn.clearTimeout.bind(Wn))}var p4=1.33;function QR(e){return typeof e=="string"?m4(e):Math.ceil((e.byteLength||e.size)*p4)}function m4(e){let t=0,r=0;for(let n=0,o=e.length;n=57344?r+=3:(n++,r+=4);return r}function Jp(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function JR(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function ZR(e){let t={},r=e.split("&");for(let n=0,o=r.length;n{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};GR(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,qR(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Jp()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var eO=!1;try{eO=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var tO=eO;function g4(){}var hx=class extends pf{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Ga=class e extends Zt{constructor(t,r,n){super(),this.createRequest=t,ca(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=Qp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=g4,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ga.requestsCount=0;Ga.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",rO);else if(typeof addEventListener=="function"){let e="onpagehide"in Wn?"pagehide":"unload";addEventListener(e,rO,!1)}}function rO(){for(let e in Ga.requests)Ga.requests.hasOwnProperty(e)&&Ga.requests[e].abort()}var h4=function(){let e=nO({xdomain:!1});return e&&e.responseType!==null}(),Ka=class extends hx{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=h4&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ga(nO,this.uri(),t)}};function nO(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||tO))return new XMLHttpRequest}catch{}if(!t)try{return new Wn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var oO=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",yx=class extends ua{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=oO?{}:Qp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r{try{this.doWrite(n,i)}catch{}o&&la(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Jp()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},vx=Wn.WebSocket||Wn.MozWebSocket,Xa=class extends yx{createSocket(t,r,n){return oO?new vx(t,r,n):r?new vx(t,r):new vx(t)}doWrite(t,r){this.ws.send(r)}};var uc=class extends ua{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=XR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=KR();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{n.read().then(({done:s,value:l})=>{s||(this.onPacket(l),i())}).catch(s=>{})};i();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r{o&&la(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var xx={websocket:Xa,webtransport:uc,polling:Ka};var v4=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,y4=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function fc(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=v4.exec(e||""),i={},a=14;for(;a--;)i[y4[a]]=o[a]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=x4(i,i.path),i.queryKey=b4(i,i.query),i}function x4(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function b4(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var bx=typeof addEventListener=="function"&&typeof removeEventListener=="function",em=[];bx&&addEventListener("offline",()=>{em.forEach(e=>e())},!1);var al=class e extends Zt{constructor(t,r){if(super(),this.binaryType=YR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=fc(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=fc(r.host).host);ca(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=ZR(this.opts.query)),bx&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},em.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=gx,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,la(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),bx&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=em.indexOf(this._offlineEventListener);n!==-1&&em.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};al.protocol=gx;var tm=class extends al{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",f=>{if(!n)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;al.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=r.name,this.emitReserved("upgradeError",d)}}))};function i(){n||(n=!0,u(),r.close(),r=null)}let a=f=>{let d=new Error("probe error: "+f);d.transport=r.name,i(),this.emitReserved("upgradeError",d)};function s(){a("transport closed")}function l(){a("socket closed")}function c(f){r&&f.name!==r.name&&i()}let u=()=>{r.removeListener("open",o),r.removeListener("error",a),r.removeListener("close",s),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",a),r.once("close",s),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;nxx[o]).filter(o=>!!o)),super(t,n)}};var yY=dc.protocol;function iO(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=fc(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=n.host.indexOf(":")!==-1?"["+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}var Ox={};Z0(Ox,{Decoder:()=>Ex,Encoder:()=>wx,PacketType:()=>Rt,protocol:()=>uO});var C4=typeof ArrayBuffer=="function",w4=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,aO=Object.prototype.toString,E4=typeof Blob=="function"||typeof Blob<"u"&&aO.call(Blob)==="[object BlobConstructor]",R4=typeof File=="function"||typeof File<"u"&&aO.call(File)==="[object FileConstructor]";function gf(e){return C4&&(e instanceof ArrayBuffer||w4(e))||E4&&e instanceof Blob||R4&&e instanceof File}function mf(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(i),r.apply(this,s)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...r){return new Promise((n,o)=>{let i=(a,s)=>a?o(a):n(s);i.withError=!0,r.push(i),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>n!==this._queue[0]?void 0:(o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Rt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Rt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new 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 Rt.EVENT:case Rt.BINARY_EVENT:this.onevent(t);break;case Rt.ACK:case Rt.BINARY_ACK:this.onack(t);break;case Rt.DISCONNECT:this.ondisconnect();break;case Rt.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Rt.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Rt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}sl.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=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};sl.prototype.reset=function(){this.attempts=0};sl.prototype.setMin=function(e){this.ms=e};sl.prototype.setMax=function(e){this.max=e};sl.prototype.setJitter=function(e){this.jitter=e};var mc=class extends Zt{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ca(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new sl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||Ox;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new dc(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=go(r,"open",function(){n.onopen(),t&&t()}),i=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=go(r,"error",i);if(this._timeout!==!1){let s=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),r.close()},s);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(go(t,"ping",this.onping.bind(this)),go(t,"data",this.ondata.bind(this)),go(t,"error",this.onerror.bind(this)),go(t,"close",this.onclose.bind(this)),go(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){la(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new pc(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;nt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var hf={};function vf(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=iO(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,a=hf[o]&&i in hf[o].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a,l;return s?l=new mc(n,t):(hf[o]||(hf[o]=new mc(n,t)),l=hf[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(vf,{Manager:mc,Socket:pc,io:vf,connect:vf});var fO="507";var rm=fO.trim();var _x=class{socket;constructor(t){let r="/"+[t.split("/").slice(3).filter(n=>n).join("/"),"sd-ppp/"].filter(n=>n).join("/");t=t.split("/").slice(0,3).join("/"),this.socket=vf(t,{transports:["websocket"],path:r,query:{api_level:rm},rejectUnauthorized:!1,autoConnect:!1}),this.socket.on("connect",()=>{this.socket.io.engine.binaryType="blob"})}get id(){return this.socket.id}connect(){this.socket.connect()}close(){this.socket.close()}};function dO(...e){return e.reduce((t,r)=>r(t),_x)}function pO(e){return class extends e{constructor(t){super(t),this.socket.on("F_photoshop",(r,n)=>{try{r.action=="extractPSD"&>.graph.nodes.forEach(o=>{o.type=="SDPPP Get Document"&&this.extractPSD(o,r.params.from_sid,"")}),n({})}catch(o){n({error:o instanceof Error?o.message:o?.toString()||"unknown error"})}})}async importPSDDataURLFromPhotoshop(t,r,n){let o=await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"get",fromSSID:n,document_identify:r}},l=>{a(l.data)})});var i=new FileReader;return i.readAsDataURL(o),new Promise(a=>{i.onloadend=function(){var s=i.result;a(s)}})}async exportPSDDataURLToPhotoshop(t,r,n,o){let i=await fetch(n).then(a=>a.arrayBuffer());await new Promise((a,s)=>{this.socket.emit("B_photoshop",{action:"psd",sid:t,params:{action:"extract",fromSSID:o,document_identify:r,data:i}},l=>{a(l)})})}async sendImage(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"sendImages",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async getSpecialIdentifierValue(t,r){return new Promise((n,o)=>{this.socket.emit("B_photoshop",{action:"getSpecialIdentifierValue",sid:t,params:r},i=>{i&&i.error?o(new Error(i.error)):n(i)})})}async extractPSD(t,r,n){t.properties.psd&&await this.exportPSDDataURLToPhotoshop(r,n,t.properties.psd,this.socket.id||"??").then(async()=>{await new Promise(o=>setTimeout(o,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}}}var mO={last_node_id:0,last_link_id:0,nodes:[],links:[],groups:[],config:{},extra:{},version:.4};var Ya=[];sa.widgetable=sa.widgetable||{};sa.widgetable.add=function(e,t){typeof t=="function"?Ya.push([e,{formatter:t,setter:null}]):Ya.push([e,t])};function om(e,t,r){let n=Ya.find(([s])=>s=="__DEFAULT__"),o=Ya.find(([s])=>Px(s,e.type))||n,i=!1;if(o){let s=o[1].setter;s&&(i=!!s(e,t,r))}i||(e.widgets[t].value=r,e.widgets[t].callback?.(r)),(gt.workflowManager||gt.extensionManager.workflow).activeWorkflow?.changeTracker.checkState()}function yf(e){let t={},r=Ya.find(([n])=>n=="__DEFAULT__");return e.nodes.forEach(n=>{if(!n.widgets||n.widgets.length==0)return;let o=Ya.find(([i])=>Px(i,n.type))||r;if(o)try{let i=o[1].formatter(n);i&&(t[n.id]=i.widgets.map(a=>a.value))}catch{t[n.id]=[]}}),t}function im(e,t){if(!e)return{widgetTableID:"",widgetTablePath:"",widgetTablePersisted:!1,groups:{},nodes:{},nodeIndexes:[],extraOptions:{useSliderForNumberWidget:Xe.data.useSliderForNumberWidget}};let r=e.groups.map(o=>(o.recomputeInsideNodes(),{id:o.id,name:o.title,color:o.color,nodeIDs:o.nodes.map(i=>i.id)})),n=e.nodes.map(o=>{if(o.mode!=0)return;let i=nm(o);if(!i||i.startsWith(".")||!o.widgets||o.widgets.length==0)return;let a=Ya.find(([u])=>Px(u,o.type));if(a)try{let u=a[1].formatter(o);if(u)return u.id=o.id,u.uiWeightSum=u.widgets.reduce((f,d)=>f+(d.uiWeight||12),0),u}catch(u){return{id:o.id,title:i,uiWeightSum:12,widgets:[{outputType:"error",value:pe("convert widget {0} failed:",a[0])+(u.message||u||"")+(u?.stack||"")}]}}if(!i.startsWith("#"))return null;let s=o.widgets,l=Ya.find(([u])=>u=="__DEFAULT__");if(l){let u=l[1].formatter(o);if(u)return Object.assign(u,{uiWeightSum:u.widgets.reduce((f,d)=>f+(d.uiWeight||12),0)})}let c={id:o.id,title:i,widgets:s.map(u=>({name:u.label||u.name,outputType:u.type||"string",value:u.value,options:u.options}))};return Object.assign(c,{uiWeightSum:c.widgets.reduce((u,f)=>u+(f.uiWeight||12),0)})}).filter(Boolean).sort((o,i)=>{let a=nm(o),s=nm(i);return a=a.startsWith("#")?a.slice(1).trim():a.trim(),s=s.startsWith("#")?s.slice(1).trim():s.trim(),a.localeCompare(s)});return{widgetTablePath:t.activeState.extra.sdppp_workflow_alias||t.path,widgetTablePersisted:t.isPersisted,widgetTableID:t.activeState.id,groups:r,nodes:n.reduce((o,i)=>(o[i.id]=i,o),{}),nodeIndexes:n.map(o=>o.id),extraOptions:{useSliderForNumberWidget:Xe.data.useSliderForNumberWidget}}}function Px(e,t){let r=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${r}$`).test(t)}function nm(e,t=""){let r=t||e.title||"";return e.setProperty&&(r.startsWith("#")||r.startsWith("."))?e.setProperty("sdppp_widgetable_title",r):r=e.properties?.sdppp_widgetable_title||r,r}sa.getNodeTitle=nm;var T4=new Map,ll=T4;function hO(e){return class extends e{workflowManager;constructor(t){super(t),this.workflowManager=gt.workflowManager||gt.extensionManager.workflow,this.socket.on("F_workflow",async(r,n)=>{if(r.action=="open"||r.action=="save"||r.action=="list"||r.action=="setWidgetValue"||r.action=="run"||r.action=="setNodeTitle"||r.action=="logout"||r.action=="interrupt"||r.action=="clearQueue"||r.action=="reboot"||r.action=="setComfyOrgAPIKey")try{let o=await this[r.action](r.params);n(o||{})}catch(o){n({error:o.stack||o.message||o})}else n({error:"Invalid action"})})}async logout(){this.socket.disconnect(),document.querySelector(".pi-sign-out").parentElement.click()}async run(t){Tx||N4();let r=t.size,n=!1,o="",i={};try{am=[];let s=await gt.queuePrompt(1,r);am.forEach(l=>{if(!n)if(l.error)n=!0,i=a(l.error.response.node_errors),Object.assign(i,{"-1":l.error.response.error.message});else{let c=l.result.prompt_id;ll.set(c,t.from_sid)}})}catch(s){n=!0,i={"-1":s.message||s.stack||s.toString()}}n&&(o?Xe.setLastError(o):Xe.setWidgetTableErrors(i));function a(s){let l={};return Object.keys(s).forEach(c=>{let u=c.split(":")[0],f=gt.graph.nodes.find(d=>d.id==u);l[u]=`[${f?.title||u}]`+s[c].errors.map(JSON.stringify).join(` +`)}),l}}async list(t){let n=this.workflowManager.workflows.map(o=>o.path.replace("workflows/",""));try{let o=new Headers,i=localStorage.getItem("Comfy.userId");i&&o.set("comfy-user",i);let a=await fetch("./api/userdata/workflows%2F.index.json",{headers:o}),s=[];a.ok&&(s=(await a.json()).favorites.map(c=>c.replace("workflows/",""))),n.sort((l,c)=>{let u=s.includes(l),f=s.includes(c);return u&&!f?-1:!u&&f?1:l.localeCompare(c)})}catch(o){console.warn("Error fetching favorites, returning unsorted workflows:",o)}return{workflows:n,error:""}}setWidgetValue(t){t.values.forEach(({nodeID:r,widgetIndex:n,value:o})=>{let i=gt.graph.nodes.find(a=>a.id==r);!i||o==i.widgets[n].value||om(i,n,o)})}async open(t){let{workflow_path:r}=t;try{Xe.setLastError(""),Xe.setWidgetTableErrors({}),r.startsWith("sdppp://")?await this.openSDPPPWorkflow(t):await this.openComfyWorkflow(t)}catch(n){throw n}}async openSDPPPWorkflow(t){let r=t.workflow_path.replace("sdppp://",""),n=await fetch("/sd-ppp-static/sdppp-workflows/"+r).then(o=>o.json());n.extra.sdppp_workflow_alias=t.workflow_path,await gt.loadGraphData(n)}async openComfyWorkflow(t){let{workflow_path:r,from_sid:n,reset:o}=t,i=this.workflowManager.workflows.find(a=>a.fullFilename===r||a.path===r||a.path==="workflows/"+r);(i.isOpen||this.workflowManager.isOpen?.(i))&&!o||(this.workflowManager.openWorkflows.length===1?await gt.loadGraphData(mO):await gO(this.workflowManager,this.workflowManager.openWorkflows[0]==i?this.workflowManager.openWorkflows[1]:this.workflowManager.openWorkflows[0]),await this.workflowManager.closeWorkflow(i,!1),await new Promise(a=>requestAnimationFrame(a)),await gO(this.workflowManager,i),await new Promise(a=>setTimeout(a,500)),Xe.data.widgetTableStructure&&await this.socket.emit("B_workflow",{action:"getStoredWidgetValue",sid:n,params:{widgetTableID:Xe.data.widgetTableStructure.widgetTableID,widgetTablePath:Xe.data.widgetTableStructure.widgetTablePath,widgetTablePersisted:Xe.data.widgetTableStructure.widgetTablePersisted}},a=>{this.setWidgetValue(a)}))}async save(t){let{workflow_path:r,from_sid:n}=t,o=this.workflowManager.workflows.find(i=>i.fullFilename===r||i.path===r||i.path==="workflows/"+r);if(!o)throw new Error("Workflow not found");this.workflowManager.activeWorkflow?.id!=o.id&&this.open({workflow_path:r,from_sid:n,reset:!1}),o.changeTracker.checkState(),await this.workflowManager.saveWorkflow(o)}setNodeTitle(t){let{node_id:r,title:n}=t,o=gt.graph.nodes.find(i=>i.id==r);if(!o)throw new Error("Node not found");o.title=n,o.setProperty("sdppp_widgetable_title",n)}async interrupt(t){await gt.api.interrupt()}async clearQueue(t){await gt.api.clearItems("queue")}async reboot(t){let r=await fetch("./api/manager/reboot");return r.status==404?{error:pe("ComfyManager not found, cannot reboot"),success:!1}:r.status==200?{success:!0}:{error:pe("Failed to reboot ComfyUI")+r.statusText,success:!1}}async setComfyOrgAPIKey(t){let{api_key:r}=t;localStorage.setItem("comfy_api_key",r),location.reload()}}}async function gO(e,t){gt.workflowManager==e?await t.load():(await e.openWorkflow(t),await gt.loadGraphData(JSON.parse(JSON.stringify(t.activeState)),!0,!0,t,{}))}var Tx=!1,am=[];function N4(){if(Tx)return;let e=nn.queuePrompt;nn.queuePrompt=async(...t)=>{try{let r=await e.call(nn,...t);return am.push({error:null,result:r}),r}catch(r){throw am.push({error:r,result:null}),r}},Tx=!0}var Bn=class e extends dO(AR(Xe,"comfy"),kR(zn,"photoshop"),pO,hO){static instance;constructor(){super(location.href.split("?")[0].split("#")[0]),e.instance=this}};function sm(e){return e.replace(/^workflows\//,"").replace(/\.json$/,"").split("://").pop()}var lm=class{widget;node;originLabel="";indexInNode=0;constructor(t,r){this.widget=r,this.node=t,this.indexInNode=t.widgets.indexOf(r);let n=this;r.callback=function(...o){n.widget!=this&&(n.widget=n.node.widgets[n.indexInNode]=this),n._callbacks.forEach(i=>i(...o))},this.originLabel=r.label}_callbacks=[];onChange(t){this._callbacks.push(t)}removeOnChange(t){this._callbacks.splice(this._callbacks.indexOf(t),1)}},cm=class extends lm{lockMode(t,r){if(t){if(this.widget.type=="button")return;this.widget.type="button",this.widget.value="",this.widget.label=r}else{if(this.widget.type=="combo")return;this.widget.type="combo",this.widget.value="",this.widget.label=this.originLabel}}},Qa=class e extends cm{getPSStore(){if(!this.widget.value||this.widget.value.indexOf("/")==-1)return null;let[t]=this.widget.value.split("/");return zn.getStoreByName(t)?.data||null}static create(t,r){let n=ux(),o=t.size.slice(0),i=t.addWidget("combo",r,n[0]||"",()=>{},{forceInput:!0,values:ux});return i.serializeValue=async()=>{let a=cc(i.value);if(!a)return JSON.stringify({instance_id:pe("document {0} not found",i.value),identify:"",canvasDirtyID:0,selectionDirtyID:0});if(i.type=="button")return JSON.stringify({instance_id:"",identify:"",canvasDirtyID:0,selectionDirtyID:0});let s=a.identify;return Xt.is_SPECIAL_DOCUMENT_CURRENT(s)&&(s=(await Bn.instance.getSpecialIdentifierValue(a.instance_id,{identifier:s})).value),JSON.stringify({instance_id:a.instance_id,identify:s,canvasDirtyID:a.documentData.canvasDirtyID,selectionDirtyID:a.documentData.selectionDirtyID})},t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i)}static link(t,r){if(r.type=="combo")return new e(t,r);let n=e.create(t,r.name),o=t.widgets.indexOf(r);return t.widgets[o]=t.widgets.pop(),n}constructor(t,r){super(t,r),this.onChange(n=>{if(!isNaN(+n))r.value=Object.keys(r.options.values)[+n];else if(typeof n=="string"){let o=n.split("/");Xt.is_SPECIAL_DOCUMENT_CURRENT(o[1])&&(r.value=o[0]+"/"+Xt.getSpecialDocumentCurrent())}})}update(){yO(this.widget,this.widget.options.values,!0)}selectConcreteDocument(){if(Xt.is_SPECIAL_DOCUMENT_CURRENT(this.widget.value)){let[t]=this.widget.value.split("/"),r=zn.getStoreByName(t);if(!r)return console.warn(`store ${t} not found`);this.widget.value=fx(r.data.documents[r.data.activeDocumentID].identify,t)}}},gc=class e extends cm{documentWidgetByLinked=null;extraOptions;constructor(t,r,n){super(t,r),this.extraOptions=n.extraOptions,this.update=this.update.bind(this),this.onChange(o=>{this.node.setProperty("layerWidgetDetail"+this.indexInNode,this.currentOptionsDetail[Object.values(this.currentOptions).indexOf(this.widget.value)]),typeof o=="string"&&(o=Xt.fixI18n(o))}),r.serializeValue=async()=>{if(r.type=="button")return JSON.stringify({identify:r.value,dirtyID:0});let o=this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=cc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await Bn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Fi.getCanvasDirtyID(i.documentData):s=Fi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})}}static link(t,r,n){if(r.type=="combo")return new e(t,r,n);let o=e.create(t,r.name,n),i=t.widgets.indexOf(r);return t.widgets[i]=t.widgets.pop(),o}linkDocumentWidget(t){this.documentWidgetByLinked&&t?.removeOnChange(this.update),this.documentWidgetByLinked=t,this.documentWidgetByLinked&&this.documentWidgetByLinked.onChange(this.update)}update(){let t=this.documentWidgetByLinked;this.updateOptions(t)}currentOptions=[];currentOptionsDetail=[];updateOptions(t){if(this.currentOptions=this.extraOptions.slice(0),this.currentOptionsDetail=new Array(this.currentOptions.length).fill({id:0,name:"",identify:"",level:0,fullPath:""}),t&&t.widget.value){let r=cc(t.widget.value);if(!r)return;r.documentData.layers.map(n=>{this.currentOptions.push(n.identify),this.currentOptionsDetail.push(n)})}if(this.widget.options.values=this.currentOptions,Object.values(this.currentOptions).indexOf(this.widget.value)==-1){let r=this.node.properties["layerWidgetDetail"+this.indexInNode];if(r){let n=this.currentOptionsDetail.findIndex(o=>o.fullPath==r.fullPath);if(n!=-1){this.widget.value=this.currentOptions[n];return}}}}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{extraOptions:n.extraOptions})}},I4={extraOptions:[],documentWidgetInNode:null},xf=class e extends gc{documentWidgetInNode;constructor(t,r,n=I4){super(t,r,n),this.documentWidgetInNode=n.documentWidgetInNode,this.onChange(()=>{(this.documentWidgetInNode||this.documentWidgetByLinked)?.selectConcreteDocument()}),r.serializeValue=async()=>{let o=this.documentWidgetInNode||this.documentWidgetByLinked;if(!o)return JSON.stringify({identify:r.value,dirtyID:0});let i=cc(o.widget.value);if(!i)return JSON.stringify({identify:r.value,dirtyID:0});let a=r.value;Xt.is_SPECIAL_LAYER_SELECTED_LAYER(a)&&(a=(await Bn.instance.getSpecialIdentifierValue(i.instance_id,{identifier:a})).value);let s=0;return Xt.is_SPECIAL_LAYER_NEW_LAYER(a)||Xt.is_SPECIAL_LAYER_USE_CANVAS(a)?s=Fi.getCanvasDirtyID(i.documentData):s=Fi.getLayerDirtyID(i.documentData,a),JSON.stringify({identify:a,dirtyID:s})},this.documentWidgetInNode?.onChange(this.update)}update(){let t=this.documentWidgetInNode||this.documentWidgetByLinked;t?.widget.value&&(this.widget.options.values=DR(t.widget.value,this.extraOptions),yO(this.widget,this.widget.options.values))}static create(t,r,n){let o=t.size.slice(0),i=t.addWidget("combo",r,n.extraOptions[0]||"",()=>{},{forceInput:!0,values:n.extraOptions});return t.size=[o[0],Math.max(o[1],t.size[1])],new e(t,i,{documentWidgetInNode:n.documentWidgetInNode,extraOptions:n.extraOptions})}},vO=0,hc=class extends lm{constructor(t,r){if(!r){let n=t.size.slice(0);r=t.addWidget("button","sdppp","",()=>{}),t.size=[n[0],Math.max(n[1],t.size[1])],r.serializeValue=async()=>{let o={lastOpenedWorkflow:t.properties.sdppp_send_prefix||sm(Xe.data.widgetTableStructure.widgetTablePath)},i=dx(t);if(i?.widgets[0]){let a=await i.widgets[0].serializeValue();try{o.document=JSON.parse(a),o.isLocal=zn.getStore(o.document.instance_id)?.data.isLocal||!1}catch{return""}}return JSON.stringify(o)}}super(t,r),this.onChange(()=>{zn.storeCount()==0&&Date.now()-vO>3e3&&(vO=Date.now(),location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now(),setTimeout(()=>{app.ui.dialog.show(`

${pe("How to use .ccx file")}

${pe("1. If you have installed Adobe Creative Cloud")}

${pe("Just double click the .ccx file, it will install the plugin automatically")}

${pe("2. If you don't have Adobe Creative Cloud")}

${pe("Rename .ccx to .zip and extract it into ")}[${pe("Photoshop directory")}]/Plug-ins ${pe("or")} [${pe("Photoshop directory")}]/Plug-ins/Generator

- `)},300))})}update(){this.widget.label=Wn.storeCount()>0&&jn.instance.id?me("current ComfyUI pageid: {0}",jn.instance.id.slice(0,4)):me("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function vO(e,t,r=!1){t instanceof Function&&(t=t()),e.value||(e.value=t[0]),t.indexOf(e.value)==-1&&r&&(e.value=t[0])}var ua=class e{static nodeMap=new WeakMap;static registerNodeType(t,r,n){n.prehandleNodeType&&n.prehandleNodeType(t.nodeData||r);let o=t.prototype.onAdded,i=t.prototype.onRemoved;t.prototype.onAdded=async function(...s){o&&await o.call(this,...s);let l=new n(this);e.nodeMap.set(this,l),await l.update()},t.prototype.onRemoved=async function(...s){i&&await i.call(this,...s);let l=e.nodeMap.get(this);e.nodeMap.delete(this),l?.onDestroy()},t.prototype.onDrawForeground=async function(s){let l=e.nodeMap.get(this);l?.onDrawForeground(s),await l?.update()},t.prototype.onConfigure=async function(...s){let l=e.nodeMap.get(this);l?.onConfigure(s[0]),await l?.update()};let a=t.prototype.onConnectionsChange;t.prototype.onConnectionsChange=async function(s,l,c,u){let f=e.nodeMap.get(this);return s==1&&(f?.inputConnectionChange(l,c&&u),await f?.update()),s==2&&f?.outputConnectionChange(l,c),a?.apply(this,arguments)}}node;constructor(t){this.node=t}inputConnectionChange(t,r){}outputConnectionChange(t,r){}onDrawForeground(t){}onDestroy(){}onConfigure(t){this.node.setProperty("sdppp-version",em)}};var Fi=class extends ua{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new hc(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||DR()||(t.save(),t.fillStyle="rgba(255, 0, 0, 0.2)",t.fillRect(0,0,this.node.size[0],this.node.size[1]),t.fillStyle="white",t.textAlign="center",t.fillText(me("Photoshop Disconnected!"),this.node.size[0]/2,5),t.restore())}async update(){this.downloadWidget?.update()}};var lm=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},xf=class extends lm{get documentWidget(){return yO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},bf=class extends lm{get documentWidget(){return yO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function yO(e,t){if(!e.graph.links[t.link])return null;let r=e.graph.links[t.link].origin_id,n=e.graph.getNodeById(r);for(;n.type=="Reroute";)r=e.graph.links[n.inputs[0].link].origin_id,n=e.graph.getNodeById(r);return ua.nodeMap.get(n)}var ko=class extends Fi{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof xf||r instanceof bf));return t?t.documentWidget:this.sdpppWidgets.find(r=>r instanceof Qa)}inputs=[];sdpppWidgets=[];constructor(t){super(t);let r=null;for(let n=0;n{if(!t.label)try{t.label=me(t.name)}catch{t.label=t.name}}),this.sdpppWidgets?.forEach(t=>{t.update()}),this.inputs?.forEach(t=>{t.update()}),super.update()}inputConnectionChange(t,r){super.inputConnectionChange(t,r),this.inputs.forEach(n=>{if(n.index==t){n.connected=r;let o=this.documentWidget;this.downloadWidget&&this.downloadWidget.linkDocumentWidget(o),this.sdpppWidgets.forEach(i=>{(i instanceof gc||i instanceof hc)&&i.linkDocumentWidget(o)})}})}};var cm=class extends ko{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},vc=class extends ko{async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},um=class extends ko{async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name))}},fm=class extends ko{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.widgets[0].label=me(this.node.widgets[0].name)}},dm=class extends ko{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=me(t.name)),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.widgets[0].label=me(this.node.widgets[0].name)}},pm=class extends Fi{async update(){super.update(),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.inputs[1].label=me(this.node.inputs[1].name),this.node.outputs[0]&&(this.node.outputs[0].label=me(this.node.outputs[0].name))}},mm=class extends Fi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}async update(){super.update(),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.outputs[0]&&(this.node.outputs[0].label=me(this.node.outputs[0].name))}},gm=class extends ko{get documentWidget(){return this.sdpppWidgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&jn.instance.exportPSDDataURLToPhotoshop(t,r,this.node.properties.psd,Xe.data.ssid).then(async()=>{await new Promise(n=>setTimeout(n,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}constructor(t){super(t),this.psdWidget=t.addWidget("button","","",()=>{if(!this.documentWidget.widget.value)return;let r=Wn.getAllPhotoshopDocumentData(),[n,o]=this.documentWidget.widget.value.split("/");this.node.properties.psd?this.extractPSD(r[n].sid,o):jn.instance.importPSDDataURLFromPhotoshop(r[n].sid,o,Xe.data.ssid).then(i=>{this.node.setProperty("psd",i)})},{})}async update(){super.update(),this.node.outputs.forEach(t=>t.label=me(t.name)),this.node.properties.psd?(Xe.setHasPSDNodes(!0),this.psdWidget.label=me("extract saved .psd to Photoshop")):(Xe.setHasPSDNodes(!1),this.psdWidget.label=me("save .psd to this workflow"))}},hm=class extends ko{async update(){super.update(),this.node.inputs.forEach(r=>r.label=me(r.name)),this.node.outputs.forEach(r=>r.label=me(r.name));let t=[];if(this.documentWidget){let r=this.documentWidget.getPSStore();r&&(t=r.actions)}this.node.widgets[0].options.values=t,this.node.constructor.nodeData.input.required.action[0]=t}};var vm=class extends Fi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Qa.create(t,"document"),n=yf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForGet()});super(t),this.documentWidget=r,this.layerWidget=n,this.node.widgets[0].name=="quality"?(this.node.widgets[1]=r.widget,this.node.widgets[2]=n.widget):(this.node.widgets[0]=r.widget,this.node.widgets[1]=n.widget)}onConfigure(t){if(t.properties["sdppp-version"])if(+t.properties["sdppp-version"]<=410){if(this.node.widgets[0].value===!0||this.node.widgets[0].value==="true"){let r=comfyAPI.app.app.addNodeOnGraph(xm["SDPPP Get Selection"],{pos:this.node.pos});new vc(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(xm.JoinImageWithAlpha,{pos:[this.node.pos[0]+r.size[0]+10,this.node.pos[1]-20]}):r.size=this.node.size,comfyAPI.app.app.graph.remove(this.node)}this.node.widgets[0].value=t.widgets_values[1],this.node.widgets[1].value=t.widgets_values[2]}else+t.properties["sdppp-version"]<504&&this.node.widgets[0].name=="quality"&&(this.node.widgets[0].value=100,this.node.widgets[1].value=t.widgets_values[0],this.node.widgets[2].value=t.widgets_values[1]);super.onConfigure(t)}async update(){this.documentWidget.lockMode(this.layerLinked,me("document linked")),this.layerWidget.lockMode(this.layerLinked,me("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}}),this.node.inputs.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}}),this.node.outputs.forEach(t=>{if(!t.label)try{t.label=me(t.name)}catch{}})}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerLinked=r)}},ym=class extends Fi{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Qa.create(t,"document"),n=yf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForSend()});super(t),this.documentWidget=r,this.layerWidget=n}async update(){this.documentWidget?.lockMode(this.layerLinked,me("document linked")),this.layerWidget?.lockMode(this.layerLinked,me("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=me(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=me(this.node.widgets[1].name)),this.node.inputs[0].label=me(this.node.inputs[0].name),this.node.inputs[1].label=me(this.node.inputs[1].name),this.node.inputs[2].label=me(this.node.inputs[2].name),this.node.outputs[0].label=me(this.node.outputs[0].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==1&&(this.layerLinked=r)}onConfigure(t){"sdppp_send_prefix"in t.properties||this.node.setProperty("sdppp_send_prefix",""),super.onConfigure(t)}};var Px={"Get Image From Photoshop Layer":vm,"Send Images To Photoshop":ym,"SDPPP Send Text To Layer":pm,"SDPPP Get Text From Layer":mm,"SDPPP Parse Layer Info":um,"SDPPP Get Linked Layers":dm,"SDPPP Get Layers In Group":fm,"SDPPP Get Layer By ID":cm,"SDPPP Get Document":gm,"SDPPP Get Selection":vc,"SDPPP Select Layer And Run PS Action":hm},xm={};function xO(e,t){let r=e.comfyClass||t.name;if(xm[r]=t,r in Px)e.title=me(t.display_name),t.display_name=me(t.display_name),ua.registerNodeType(e,t,Px[r]);else if(r.startsWith("workflow")&&comfyAPI.groupNode.GroupNodeHandler.getGroupData(e)){let n=comfyAPI.groupNode.GroupNodeHandler.getGroupData(e),o=!1;n.nodeData.nodes.forEach((i,a)=>{i.type in Px&&(o=!0)}),o&&ua.registerNodeType(e,t,ko)}else return}var yR=E(JT(),1),xR=E(N(),1);var ZT=`#sdppp-popup-root { + `)},300))})}update(){this.widget.label=zn.storeCount()>0&&Bn.instance.id?pe("current ComfyUI pageid: {0}",Bn.instance.id.slice(0,4)):pe("download PS plugin (.ccx)")}documentWidgetByLinked=null;linkDocumentWidget(t){this.documentWidgetByLinked=t}};function yO(e,t,r=!1){t instanceof Function&&(t=t()),e.value||(e.value=t[0]),t.indexOf(e.value)==-1&&r&&(e.value=t[0])}var fa=class e{static nodeMap=new WeakMap;static registerNodeType(t,r,n){n.prehandleNodeType&&n.prehandleNodeType(t.nodeData||r);let o=t.prototype.onAdded,i=t.prototype.onRemoved;t.prototype.onAdded=async function(...s){o&&await o.call(this,...s);let l=new n(this);e.nodeMap.set(this,l),await l.update()},t.prototype.onRemoved=async function(...s){i&&await i.call(this,...s);let l=e.nodeMap.get(this);e.nodeMap.delete(this),l?.onDestroy()},t.prototype.onDrawForeground=async function(s){let l=e.nodeMap.get(this);l?.onDrawForeground(s),await l?.update()},t.prototype.onConfigure=async function(...s){let l=e.nodeMap.get(this);l?.onConfigure(s[0]),await l?.update()};let a=t.prototype.onConnectionsChange;t.prototype.onConnectionsChange=async function(s,l,c,u){let f=e.nodeMap.get(this);return s==1&&(f?.inputConnectionChange(l,c&&u),await f?.update()),s==2&&f?.outputConnectionChange(l,c),a?.apply(this,arguments)}}node;constructor(t){this.node=t}inputConnectionChange(t,r){}outputConnectionChange(t,r){}onDrawForeground(t){}onDestroy(){}onConfigure(t){this.node.setProperty("sdppp-version",rm)}};var Li=class extends fa{downloadWidget;constructor(t){super(t),this.downloadWidget||(this.downloadWidget=new hc(this.node))}onConfigure(t){super.onConfigure(t)}onDrawForeground(t){this.node.flags.collapsed||$R()||(t.save(),t.fillStyle="rgba(255, 0, 0, 0.2)",t.fillRect(0,0,this.node.size[0],this.node.size[1]),t.fillStyle="white",t.textAlign="center",t.fillText(pe("Photoshop Disconnected!"),this.node.size[0]/2,5),t.restore())}async update(){this.downloadWidget?.update()}};var um=class{node;inputIndex;get index(){return this.inputIndex}constructor(t,r){this.node=t,this.inputIndex=r}update(){}connected=!1},bf=class extends um{get documentWidget(){return xO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}},Sf=class extends um{get documentWidget(){return xO(this.node,this.node.inputs[this.inputIndex])?.documentWidget||null}};function xO(e,t){if(!e.graph.links[t.link])return null;let r=e.graph.links[t.link].origin_id,n=e.graph.getNodeById(r);for(;n.type=="Reroute";)r=e.graph.links[n.inputs[0].link].origin_id,n=e.graph.getNodeById(r);return fa.nodeMap.get(n)}var Ao=class extends Li{get documentWidget(){let t=this.inputs.find(r=>r.connected&&(r instanceof bf||r instanceof Sf));return t?t.documentWidget:this.sdpppWidgets.find(r=>r instanceof Qa)}inputs=[];sdpppWidgets=[];constructor(t){super(t);let r=null;for(let n=0;n{if(!t.label)try{t.label=pe(t.name)}catch{t.label=t.name}}),this.sdpppWidgets?.forEach(t=>{t.update()}),this.inputs?.forEach(t=>{t.update()}),super.update()}inputConnectionChange(t,r){super.inputConnectionChange(t,r),this.inputs.forEach(n=>{if(n.index==t){n.connected=r;let o=this.documentWidget;this.downloadWidget&&this.downloadWidget.linkDocumentWidget(o),this.sdpppWidgets.forEach(i=>{(i instanceof gc||i instanceof hc)&&i.linkDocumentWidget(o)})}})}};var fm=class extends Ao{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name))}},vc=class extends Ao{async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name))}},dm=class extends Ao{async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name))}},pm=class extends Ao{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name)),this.node.widgets[0].label=pe(this.node.widgets[0].name)}},mm=class extends Ao{get documentWidget(){return this.inputs[0]?.documentWidget}async update(){super.update(),this.node.inputs.forEach(t=>t.label=pe(t.name)),this.node.outputs.forEach(t=>t.label=pe(t.name)),this.node.widgets[0].label=pe(this.node.widgets[0].name)}},gm=class extends Li{async update(){super.update(),this.node.inputs[0].label=pe(this.node.inputs[0].name),this.node.inputs[1].label=pe(this.node.inputs[1].name),this.node.outputs[0]&&(this.node.outputs[0].label=pe(this.node.outputs[0].name))}},hm=class extends Li{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}async update(){super.update(),this.node.inputs[0].label=pe(this.node.inputs[0].name),this.node.outputs[0]&&(this.node.outputs[0].label=pe(this.node.outputs[0].name))}},vm=class extends Ao{get documentWidget(){return this.sdpppWidgets[0]}psdWidget;extractPSD(t,r){this.node.properties.psd&&Bn.instance.exportPSDDataURLToPhotoshop(t,r,this.node.properties.psd,Xe.data.ssid).then(async()=>{await new Promise(n=>setTimeout(n,300)),globalThis.app.canvas.draw(!0,!0)}).catch(console.error)}constructor(t){super(t),this.psdWidget=t.addWidget("button","","",()=>{if(!this.documentWidget.widget.value)return;let r=zn.getAllPhotoshopDocumentData(),[n,o]=this.documentWidget.widget.value.split("/");this.node.properties.psd?this.extractPSD(r[n].sid,o):Bn.instance.importPSDDataURLFromPhotoshop(r[n].sid,o,Xe.data.ssid).then(i=>{this.node.setProperty("psd",i)})},{})}async update(){super.update(),this.node.outputs.forEach(t=>t.label=pe(t.name)),this.node.properties.psd?(Xe.setHasPSDNodes(!0),this.psdWidget.label=pe("extract saved .psd to Photoshop")):(Xe.setHasPSDNodes(!1),this.psdWidget.label=pe("save .psd to this workflow"))}},ym=class extends Ao{async update(){super.update(),this.node.inputs.forEach(r=>r.label=pe(r.name)),this.node.outputs.forEach(r=>r.label=pe(r.name));let t=[];if(this.documentWidget){let r=this.documentWidget.getPSStore();r&&(t=r.actions)}this.node.widgets[0].options.values=t,this.node.constructor.nodeData.input.required.action[0]=t}};var xm=class extends Li{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Qa.create(t,"document"),n=xf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForGet()});super(t),this.documentWidget=r,this.layerWidget=n,this.node.widgets[0].name=="quality"?(this.node.widgets[1]=r.widget,this.node.widgets[2]=n.widget):(this.node.widgets[0]=r.widget,this.node.widgets[1]=n.widget)}onConfigure(t){if(t.properties["sdppp-version"])if(+t.properties["sdppp-version"]<=410){if(this.node.widgets[0].value===!0||this.node.widgets[0].value==="true"){let r=comfyAPI.app.app.addNodeOnGraph(Sm["SDPPP Get Selection"],{pos:this.node.pos});new vc(r),this.node.outputs[0].links?.length?comfyAPI.app.app.addNodeOnGraph(Sm.JoinImageWithAlpha,{pos:[this.node.pos[0]+r.size[0]+10,this.node.pos[1]-20]}):r.size=this.node.size,comfyAPI.app.app.graph.remove(this.node)}this.node.widgets[0].value=t.widgets_values[1],this.node.widgets[1].value=t.widgets_values[2]}else+t.properties["sdppp-version"]<504&&this.node.widgets[0].name=="quality"&&(this.node.widgets[0].value=100,this.node.widgets[1].value=t.widgets_values[0],this.node.widgets[2].value=t.widgets_values[1]);super.onConfigure(t)}async update(){this.documentWidget.lockMode(this.layerLinked,pe("document linked")),this.layerWidget.lockMode(this.layerLinked,pe("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets.forEach(t=>{if(!t.label)try{t.label=pe(t.name)}catch{}}),this.node.inputs.forEach(t=>{if(!t.label)try{t.label=pe(t.name)}catch{}}),this.node.outputs.forEach(t=>{if(!t.label)try{t.label=pe(t.name)}catch{}})}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==0&&(this.layerLinked=r)}},bm=class extends Li{static prehandleNodeType(t){t.input.optional.document&&delete t.input.optional.document}documentWidget;layerWidget;constructor(t){let r=Qa.create(t,"document"),n=xf.create(t,"layer_or_group",{documentWidgetInNode:r,extraOptions:Xt.getSpecialLayerForSend()});super(t),this.documentWidget=r,this.layerWidget=n}async update(){this.documentWidget?.lockMode(this.layerLinked,pe("document linked")),this.layerWidget?.lockMode(this.layerLinked,pe("layer linked")),this.documentWidget.update(),this.layerWidget.update(),super.update(),this.node.widgets[0].label||(this.node.widgets[0].label=pe(this.node.widgets[0].name)),this.node.widgets[1].label||(this.node.widgets[1].label=pe(this.node.widgets[1].name)),this.node.inputs[0].label=pe(this.node.inputs[0].name),this.node.inputs[1].label=pe(this.node.inputs[1].name),this.node.inputs[2].label=pe(this.node.inputs[2].name),this.node.outputs[0].label=pe(this.node.outputs[0].name)}layerLinked=!1;inputConnectionChange(t,r){super.inputConnectionChange(t,r),t==1&&(this.layerLinked=r)}onConfigure(t){"sdppp_send_prefix"in t.properties||this.node.setProperty("sdppp_send_prefix",""),super.onConfigure(t)}};var Nx={"Get Image From Photoshop Layer":xm,"Send Images To Photoshop":bm,"SDPPP Send Text To Layer":gm,"SDPPP Get Text From Layer":hm,"SDPPP Parse Layer Info":dm,"SDPPP Get Linked Layers":mm,"SDPPP Get Layers In Group":pm,"SDPPP Get Layer By ID":fm,"SDPPP Get Document":vm,"SDPPP Get Selection":vc,"SDPPP Select Layer And Run PS Action":ym},Sm={};function bO(e,t){let r=e.comfyClass||t.name;if(Sm[r]=t,r in Nx)e.title=pe(t.display_name),t.display_name=pe(t.display_name),fa.registerNodeType(e,t,Nx[r]);else if(r.startsWith("workflow")&&comfyAPI.groupNode.GroupNodeHandler.getGroupData(e)){let n=comfyAPI.groupNode.GroupNodeHandler.getGroupData(e),o=!1;n.nodeData.nodes.forEach((i,a)=>{i.type in Nx&&(o=!0)}),o&&fa.registerNodeType(e,t,Ao)}else return}var bR=E(ZT(),1),SR=E(N(),1);var eN=`#sdppp-popup-root { width: 100%; height: 100%; position: absolute; @@ -265,18 +265,18 @@ Error generating stack: `+i.message+` .sdppp-side-container .group-filter-item:not(:first-child) { margin-left: 8px; } -/* end of GroupFilter component styles */`;var rf=E(N(),1);var _3=E(N(),1);function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=[];return eN.default.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(xi(n)):pd(n)&&n.props?r=r.concat(xi(n.props.children,t)):r.push(n))}),r}var KS={},Jz=[],Zz=function(t){Jz.push(t)};function md(e,t){if(0)var r}function eW(e,t){if(0)var r}function tN(){KS={}}function rN(e,t,r){!t&&!KS[r]&&(e(!1,r),KS[r]=!0)}function Vg(e,t){rN(md,e,t)}function nN(e,t){rN(eW,e,t)}Vg.preMessage=Zz;Vg.resetWarned=tN;Vg.noteOnce=nN;var Vt=Vg;function oN(e,t){if(fe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hg(e){var t=oN(e,"string");return fe(t)=="symbol"?t:t+""}function _(e,t,r){return(t=Hg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t=19)return!0;var o=(0,gd.isMemo)(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==gd.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==gd.ForwardRef)};function dN(e){return(0,th.isValidElement)(e)&&!pd(e)}var xs=function(t){if(t&&dN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var Wr=E(N());var Ci=E(N()),rh=Ci.createContext(null);function pN(e){var t=e.children,r=e.onBatchResize,n=Ci.useRef(0),o=Ci.useRef([]),i=Ci.useContext(rh),a=Ci.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,c)},[r,i]);return Ci.createElement(rh.Provider,{value:a},t)}var gN=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}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(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!JS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),uW?(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(){!JS||!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(t){var r=t.propertyName,n=r===void 0?"":r,o=cW.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),hN=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Kc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new xW(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Kc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new bW(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),yN=typeof WeakMap<"u"?new WeakMap:new gN,xN=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=fW.getInstance(),n=new SW(t,r,this);yN.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){xN.prototype[e]=function(){var t;return(t=yN.get(this))[e].apply(t,arguments)}});var CW=function(){return typeof nh.ResizeObserver<"u"?nh.ResizeObserver:xN}(),bN=CW;var bs=new Map;function wW(e){e.forEach(function(t){var r,n=t.target;(r=bs.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var SN=new bN(wW);function CN(e,t){bs.has(e)||(bs.set(e,new Set),SN.observe(e)),bs.get(e).add(t)}function wN(e,t){bs.has(e)&&(bs.get(e).delete(t),bs.get(e).size||(SN.unobserve(e),bs.delete(e)))}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EN(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&arguments[1]!==void 0?arguments[1]:1;DN+=1;var n=DN;function o(i){if(i===0)kN(n),t();else{var a=$N(function(){o(i-1)});ZS.set(n,a)}}return o(r),n};MN.cancel=function(e){var t=ZS.get(e);return kN(e),AN(t)};var dt=MN;var lr=E(N());function lh(e){if(Array.isArray(e))return e}function FN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function ch(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M(e,t){return lh(e)||FN(e,t)||Xc(e,t)||ch()}function PW(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Cs=PW;function Yt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function eC(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}var LN="data-rc-order",zN="data-rc-priority",TW="rc-util-key",tC=new Map;function WN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):TW}function uh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function NW(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function rC(e){return Array.from((tC.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function BN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yt())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=NW(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(LN,a),s&&i&&l.setAttribute(zN,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=uh(t),u=c.firstChild;if(n){if(s){var f=(t.styles||rC(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(LN)))return!1;var m=Number(d.getAttribute(zN)||0);return i>=m});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function jN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=uh(t);return(t.styles||rC(r)).find(function(n){return n.getAttribute(WN(t))===e})}function qi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=jN(e,t);if(r){var n=uh(t);n.removeChild(r)}}function IW(e,t){var r=tC.get(e);if(!r||!eC(document,r)){var n=BN("",t),o=n.parentNode;tC.set(e,o),e.removeChild(n)}}function xn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=uh(r),o=rC(n),i=T(T({},r),{},{styles:o});IW(n,i);var a=jN(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=BN(e,i);return u.setAttribute(WN(i),t),u}var tI=E(N());function VN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ve(e,t){if(e==null)return{};var r,n,o=VN(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Vt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=M(c,2),d=f[1];return o.internalGet(u)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),qN+=1}return at(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}();var nC=new xd;function Es(e){var t=Array.isArray(e)?e:[e];return nC.has(t)||nC.set(t,new Yc(t)),nC.get(t)}var WW=new WeakMap,oC={};function KN(e,t){for(var r=WW,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=T(T({},o),{},(n={},_(n,Gi,t),_(n,Nn,r),n)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var Jc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).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()},BW=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=M(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},ph=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=M(a,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var d,m=Jc(u,n?.prefix);o[m]=typeof f=="number"&&!(n!=null&&(d=n.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(m,")")}}),[i,BW(o,r,{scope:n?.scope})]};var mh=E(N());var Zc=E(N());var XN=Yt()?Zc.useLayoutEffect:Zc.useEffect,YN=function(t,r){var n=Zc.useRef(!0);XN(function(){return t(n.current)},r),XN(function(){return n.current=!1,function(){n.current=!0}},[])},Rl=function(t,r){YN(function(n){if(!n)return t()},r)},vt=YN;var aC=E(N()),jW=T({},aC),QN=jW.useInsertionEffect,VW=function(t,r,n){aC.useMemo(t,n),vt(function(){return r(!0)},n)},HW=QN?function(e,t,r){return QN(function(){return e(),t()},r)}:VW,JN=HW;var sC=E(N()),UW=T({},sC),qW=UW.useInsertionEffect,GW=function(t){var r=[],n=!1;function o(i){n||r.push(i)}return sC.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},KW=function(){return function(t){t()}},XW=typeof qW<"u"?GW:KW,ZN=XW;function YW(){return!1}var eI=YW;function Ol(e,t,r,n,o){var i=mh.useContext(Ei),a=i.cache,s=[e].concat(ee(t)),l=fh(s),c=ZN([l]),u=eI(),f=function(v){a.opUpdate(l,function(y){var g=y||[void 0,void 0],p=M(g,2),x=p[0],b=x===void 0?0:x,S=p[1],w=S,C=w||r(),R=[b,C];return v?v(R):R})};mh.useMemo(function(){f()},[l]);var d=a.opGet(l),m=d[1];return JN(function(){o?.(m)},function(h){return f(function(v){var y=M(v,2),g=y[0],p=y[1];return h&&g===0&&o?.(m),[g+1,p]}),function(){a.opUpdate(l,function(v){var y=v||[],g=M(y,2),p=g[0],x=p===void 0?0:p,b=g[1],S=x-1;return S===0?(c(function(){(h||!a.opGet(l))&&n?.(b,!1)}),null):[x-1,b]})}},[l]),m}var QW={},JW="css",_l=new Map;function ZW(e){_l.set(e,(_l.get(e)||0)+1)}function eB(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Gi,'="').concat(e,'"]'));r.forEach(function(n){if(n[wi]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var tB=0;function rB(e,t){_l.set(e,(_l.get(e)||0)-1);var r=Array.from(_l.keys()),n=r.filter(function(o){var i=_l.get(o)||0;return i<=0});r.length-n.length>tB&&n.forEach(function(o){eB(o,t),_l.delete(o)})}var rI=function(t,r,n,o){var i=n.getDerivativeToken(t),a=T(T({},i),r);return o&&(a=o(a)),a},lC="token";function gh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(0,tI.useContext)(Ei),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?QW:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,m=KN(function(){return Object.assign.apply(Object,[{}].concat(ee(t)))},t),h=Qc(m),v=Qc(c),y=d?Qc(d):"",g=Ol(lC,[s,e.id,h,v,y],function(){var p,x=f?f(m,c,e):rI(m,c,e,u),b=T({},x),S="";if(d){var w=ph(x,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),C=M(w,2);x=C[0],S=C[1]}var R=iC(x,s);x._tokenKey=R,b._tokenKey=iC(b,s);var P=(p=d?.key)!==null&&p!==void 0?p:R;x._themeKey=P,ZW(P);var O="".concat(JW,"-").concat(Cs(R));return x._hashId=O,[x,O,b,S,d?.key||""]},function(p){rB(p[0]._themeKey,o)},function(p){var x=M(p,4),b=x[0],S=x[3];if(d&&S){var w=xn(S,Cs("css-variables-".concat(b._themeKey)),{mark:Nn,prepend:"queue",attachTo:i,priority:-999});w[wi]=o,w.setAttribute(Gi,b._themeKey)}});return g}var nI=function(t,r,n){var o=M(t,5),i=o[2],a=o[3],s=o[4],l=n||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=Rs(a,s,u,d,c);return[f,u,m]};var TI=E(N());var Ps=E(N());var nB={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},cC=nB;var hh="comm",vh="rule",yh="decl";var oI="@import";var iI="@namespace",aI="@keyframes";var sI="@layer";var uC=Math.abs,Sd=String.fromCharCode;function xh(e){return e.trim()}function Cd(e,t,r){return e.replace(t,r)}function lI(e,t,r){return e.indexOf(t,r)}function Os(e,t){return e.charCodeAt(t)|0}function _s(e,t,r){return e.slice(t,r)}function Co(e){return e.length}function cI(e){return e.length}function eu(e,t){return t.push(e),e}var bh=1,tu=1,uI=0,Ho=0,Ur=0,nu="";function Sh(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:bh,column:tu,length:a,return:"",siblings:s}}function fI(){return Ur}function dI(){return Ur=Ho>0?Os(nu,--Ho):0,tu--,Ur===10&&(tu=1,bh--),Ur}function Uo(){return Ur=Ho2||ru(Ur)>3?"":" "}function hI(e,t){for(;--t&&Uo()&&!(Ur<48||Ur>102||Ur>57&&Ur<65||Ur>70&&Ur<97););return Ch(e,wd()+(t<6&&Sa()==32&&Uo()==32))}function fC(e){for(;Uo();)switch(Ur){case e:return Ho;case 34:case 39:e!==34&&e!==39&&fC(Ur);break;case 40:e===41&&fC(e);break;case 92:Uo();break}return Ho}function vI(e,t){for(;Uo()&&e+Ur!==57;)if(e+Ur===84&&Sa()===47)break;return"/*"+Ch(t,Ho-1)+"*"+Sd(e===47?e:Uo())}function yI(e){for(;!ru(Sa());)Uo();return Ch(e,Ho)}function SI(e){return mI(Eh("",null,null,null,[""],e=pI(e),0,[0],e))}function Eh(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,f=a,d=0,m=0,h=0,v=1,y=1,g=1,p=0,x="",b=o,S=i,w=n,C=x;y;)switch(h=p,p=Uo()){case 40:if(h!=108&&Os(C,f-1)==58){lI(C+=Cd(wh(p),"&","&\f"),"&\f",uC(c?s[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:C+=wh(p);break;case 9:case 10:case 13:case 32:C+=gI(h);break;case 92:C+=hI(wd()-1,7);continue;case 47:switch(Sa()){case 42:case 47:eu(oB(vI(Uo(),wd()),t,r,l),l),(ru(h||1)==5||ru(Sa()||1)==5)&&Co(C)&&_s(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:s[c++]=Co(C)*g;case 125*v:case 59:case 0:switch(p){case 0:case 125:y=0;case 59+u:g==-1&&(C=Cd(C,/\f/g,"")),m>0&&(Co(C)-f||v===0&&h===47)&&eu(m>32?bI(C+";",n,r,f-1,l):bI(Cd(C," ","")+";",n,r,f-2,l),l);break;case 59:C+=";";default:if(eu(w=xI(C,t,r,c,u,o,s,x,b=[],S=[],f,i),i),p===123)if(u===0)Eh(C,t,w,w,b,i,f,s,S);else{switch(d){case 99:if(Os(C,3)===110)break;case 108:if(Os(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Eh(e,w,w,n&&eu(xI(e,w,w,0,0,o,s,x,o,b=[],f,S),S),o,S,f,s,n?b:S):Eh(C,w,w,w,[""],S,0,s,S)}}c=u=m=0,v=g=1,x=C="",f=a;break;case 58:f=1+Co(C),m=h;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&dI()==125)continue}switch(C+=Sd(p),p*v){case 38:g=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Co(C)-1)*g,g=1;break;case 64:Sa()===45&&(C+=wh(Uo())),d=Sa(),u=f=Co(x=C+=yI(wd())),p++;break;case 45:h===45&&Co(C)==2&&(v=0)}}return i}function xI(e,t,r,n,o,i,a,s,l,c,u,f){for(var d=o-1,m=o===0?i:[""],h=cI(m),v=0,y=0,g=0;v0?m[p]+" "+x:Cd(x,/&\f/g,m[p])))&&(l[g++]=b);return Sh(e,t,r,o===0?vh:s,l,c,u,f)}function oB(e,t,r,n){return Sh(e,t,r,hh,Sd(fI()),_s(e,2,-2),0,n)}function bI(e,t,r,n,o){return Sh(e,t,r,yh,_s(e,0,n),_s(e,n+1,-1),n,o)}function Rh(e,t){for(var r="",n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,f=r.transformers,d=f===void 0?[]:f,m=r.linters,h=m===void 0?[]:m,v="",y={};function g(b){var S=b.getName(s);if(!y[S]){var w=e(b.style,r,{root:!1,parentSelectors:a}),C=M(w,1),R=C[0];y[S]="@keyframes ".concat(b.getName(s)).concat(R)}}function p(b){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(w){Array.isArray(w)?p(w,S):w&&S.push(w)}),S}var x=p(Array.isArray(t)?t:[t]);return x.forEach(function(b){var S=typeof b=="string"&&!o?{}:b;if(typeof S=="string")v+="".concat(S,` -`);else if(S._keyframe)g(S);else{var w=d.reduce(function(C,R){var P;return(R==null||(P=R.visit)===null||P===void 0?void 0:P.call(R,C))||C},S);Object.keys(w).forEach(function(C){var R=w[C];if(fe(R)==="object"&&R&&(C!=="animationName"||!R._keyframe)&&!fB(R)){var P=!1,O=C.trim(),I=!1;(o||i)&&s?O.startsWith("@")?P=!0:O==="&"?O=OI("",s,u):O=OI(C,s,u):o&&!s&&(O==="&"||O==="")&&(O="",I=!0);var D=e(R,r,{root:I,injectHash:P,parentSelectors:[].concat(ee(a),[O])}),$=M(D,2),F=$[0],k=$[1];y=T(T({},y),k),v+="".concat(O).concat(F)}else{let G=function(V,H){var K=V.replace(/[A-Z]/g,function(A){return"-".concat(A.toLowerCase())}),W=H;!cC[V]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),V==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(g(H),W=H.getName(s)),v+="".concat(K,":").concat(W,";")};var j=G,z,B=(z=R?.value)!==null&&z!==void 0?z:R;fe(R)==="object"&&R!==null&&R!==void 0&&R[_I]&&Array.isArray(B)?B.forEach(function(V){G(C,V)}):G(C,B)}})}}),o?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(y["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(` -`))):v="{".concat(v,"}"),[v,y]};function mC(e,t){return Cs("".concat(e.join("%")).concat(t))}function pB(){return null}var gC="style";function Ts(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=Ps.useContext(Ei),f=u.autoClear,d=u.mock,m=u.defaultCache,h=u.hashPriority,v=u.container,y=u.ssrInline,g=u.transformers,p=u.linters,x=u.cache,b=u.layer,S=r._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,ee(n));var C=bd,R=Ol(gC,w,function(){var $=w.join("|");if(EI($)){var F=RI($),k=M(F,2),z=k[0],B=k[1];if(z)return[z,S,B,{},s,c]}var j=t(),G=dB(j,{hashId:o,hashPriority:h,layer:b?i:void 0,path:n.join("-"),transformers:g,linters:p}),V=M(G,2),H=V[0],K=V[1],W=Oh(H),A=mC(w,W);return[W,S,A,K,s,c]},function($,F){var k=M($,3),z=k[2];(F||f)&&bd&&qi(z,{mark:Nn})},function($){var F=M($,4),k=F[0],z=F[1],B=F[2],j=F[3];if(C&&k!==pC){var G={mark:Nn,prepend:b?!1:"queue",attachTo:v,priority:c},V=typeof a=="function"?a():a;V&&(G.csp={nonce:V});var H=[],K=[];Object.keys(j).forEach(function(A){A.startsWith("@layer")?H.push(A):K.push(A)}),H.forEach(function(A){xn(Oh(j[A]),"_layer-".concat(A),T(T({},G),{},{prepend:!0}))});var W=xn(k,B,G);W[wi]=x.instanceId,W.setAttribute(Gi,S),K.forEach(function(A){xn(Oh(j[A]),"_effect-".concat(A),G)})}}),P=M(R,3),O=P[0],I=P[1],D=P[2];return function($){var F;if(!y||C||!m)F=Ps.createElement(pB,null);else{var k;F=Ps.createElement("style",ue({},(k={},_(k,Gi,I),_(k,Nn,D),k),{dangerouslySetInnerHTML:{__html:O}}))}return Ps.createElement(Ps.Fragment,null,F,$)}}var PI=function(t,r,n){var o=M(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=n||{},d=f.plain;if(c)return null;var m=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=Rs(i,a,s,h,d),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var y=Oh(l[v]),g=Rs(y,a,"_effect-".concat(v),h,d);v.startsWith("@layer")?m=g+m:m+=g}}),[u,s,m]};var hC="cssVar",mB=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=(0,TI.useContext)(Ei),f=u.cache.instanceId,d=u.container,m=s._tokenKey,h=[].concat(ee(t.path),[n,c,m]),v=Ol(hC,h,function(){var y=r(),g=ph(y,n,{prefix:o,unitless:i,ignore:a,scope:c}),p=M(g,2),x=p[0],b=p[1],S=mC(h,b);return[x,b,S,n]},function(y){var g=M(y,3),p=g[2];bd&&qi(p,{mark:Nn})},function(y){var g=M(y,3),p=g[1],x=g[2];if(p){var b=xn(p,x,{mark:Nn,prepend:"queue",attachTo:d,priority:-999});b[wi]=f,b.setAttribute(Gi,n)}});return v},NI=function(t,r,n){var o=M(t,4),i=o[1],a=o[2],s=o[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Rs(i,s,a,f,c);return[u,a,d]},vC=mB;var Rd,Bne=(Rd={},_(Rd,gC,PI),_(Rd,lC,nI),_(Rd,hC,NI),Rd);var gB=function(){function e(t,r){it(this,e),_(this,"name",void 0),_(this,"style",void 0),_(this,"_keyframe",!0),this.name=t,this.style=r}return at(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}(),yt=gB;function ou(e){return e.notSplit=!0,e}var Kne={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:ou(["borderTop","borderBottom"]),borderBlockStart:ou(["borderTop"]),borderBlockEnd:ou(["borderBottom"]),borderInline:ou(["borderLeft","borderRight"]),borderInlineStart:ou(["borderLeft"]),borderInlineEnd:ou(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};var II=E(N()),hB=(0,II.createContext)({}),iu=hB;function _h(e){return lh(e)||sh(e)||Xc(e)||ch()}function bn(e,t){for(var r=e,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!bn(e,t.slice(0,-1))?e:$I(e,t,r,n)}function vB(e){return fe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function DI(e){return Array.isArray(e)?[]:{}}var yB=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ca(){for(var e=arguments.length,t=new Array(e),r=0;r{let e=()=>{};return e.deprecated=xB,e};var kI=E(N()),MI=(0,kI.createContext)(void 0);var su=E(N());var bB={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"},FI=bB;var LI={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var SB=T(T({},LI),{},{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"}),zI=SB;var CB={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Th=CB;var wB={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"]},zI),timePickerLocale:Object.assign({},Th)},Nh=wB;var WI=Nh;var wo="${label} is not a valid ${type}",EB={locale:"en",Pagination:FI,DatePicker:Nh,TimePicker:Th,Calendar:WI,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:wo,method:wo,array:wo,object:wo,number:wo,date:wo,boolean:wo,integer:wo,float:wo,regexp:wo,email:wo,url:wo,hex:wo},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"}},Ri=EB;var xC=Object.assign({},Ri.Modal),Ih=[],BI=()=>Ih.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ri.Modal);function jI(e){if(e){let t=Object.assign({},e);return Ih.push(t),xC=BI(),()=>{Ih=Ih.filter(r=>r!==t),xC=BI()}}xC=Object.assign({},Ri.Modal)}var VI=E(N()),RB=(0,VI.createContext)(void 0),au=RB;var Od=E(N());var OB=(e,t)=>{let r=Od.useContext(au),n=Od.useMemo(()=>{var i;let a=t||Ri[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=Od.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?Ri.locale:i},[r]);return[n,o]},wa=OB;var HI="internalMark",_B=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;su.useEffect(()=>jI(t?.Modal),[t]);let o=su.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return su.createElement(au.Provider,{value:o},r)},UI=_B;var v2=E(N());var bC={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"},PB=Object.assign(Object.assign({},bC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +/* end of GroupFilter component styles */`;var rf=E(N(),1);var P3=E(N(),1);function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=[];return tN.default.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(yi(n)):md(n)&&n.props?r=r.concat(yi(n.props.children,t)):r.push(n))}),r}var YS={},Zz=[],eW=function(t){Zz.push(t)};function gd(e,t){if(0)var r}function tW(e,t){if(0)var r}function rN(){YS={}}function nN(e,t,r){!t&&!YS[r]&&(e(!1,r),YS[r]=!0)}function Ug(e,t){nN(gd,e,t)}function oN(e,t){nN(tW,e,t)}Ug.preMessage=eW;Ug.resetWarned=rN;Ug.noteOnce=oN;var Vt=Ug;function iN(e,t){if(ce(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ce(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qg(e){var t=iN(e,"string");return ce(t)=="symbol"?t:t+""}function _(e,t,r){return(t=qg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t=19)return!0;var o=(0,hd.isMemo)(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==hd.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==hd.ForwardRef)};function pN(e){return(0,nh.isValidElement)(e)&&!md(e)}var xs=function(t){if(t&&pN(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};var Wr=E(N());var Si=E(N()),oh=Si.createContext(null);function mN(e){var t=e.children,r=e.onBatchResize,n=Si.useRef(0),o=Si.useRef([]),i=Si.useContext(oh),a=Si.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,c)},[r,i]);return Si.createElement(oh.Provider,{value:a},t)}var hN=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}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(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!eC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fW?(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(){!eC||!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(t){var r=t.propertyName,n=r===void 0?"":r,o=uW.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vN=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Kc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new bW(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Kc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new SW(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),xN=typeof WeakMap<"u"?new WeakMap:new hN,bN=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=dW.getInstance(),n=new CW(t,r,this);xN.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){bN.prototype[e]=function(){var t;return(t=xN.get(this))[e].apply(t,arguments)}});var wW=function(){return typeof ih.ResizeObserver<"u"?ih.ResizeObserver:bN}(),SN=wW;var bs=new Map;function EW(e){e.forEach(function(t){var r,n=t.target;(r=bs.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var CN=new SN(EW);function wN(e,t){bs.has(e)||(bs.set(e,new Set),CN.observe(e)),bs.get(e).add(t)}function EN(e,t){bs.has(e)&&(bs.get(e).delete(t),bs.get(e).size||(CN.unobserve(e),bs.delete(e)))}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RN(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&arguments[1]!==void 0?arguments[1]:1;$N+=1;var n=$N;function o(i){if(i===0)MN(n),t();else{var a=AN(function(){o(i-1)});tC.set(n,a)}}return o(r),n};FN.cancel=function(e){var t=tC.get(e);return MN(e),kN(t)};var dt=FN;var cr=E(N());function uh(e){if(Array.isArray(e))return e}function LN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function fh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F(e,t){return uh(e)||LN(e,t)||Xc(e,t)||fh()}function TW(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Cs=TW;function Yt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rC(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}var zN="data-rc-order",WN="data-rc-priority",NW="rc-util-key",nC=new Map;function BN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):NW}function dh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function IW(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function oC(e){return Array.from((nC.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function jN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yt())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=IW(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(zN,a),s&&i&&l.setAttribute(WN,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=dh(t),u=c.firstChild;if(n){if(s){var f=(t.styles||oC(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(zN)))return!1;var m=Number(d.getAttribute(WN)||0);return i>=m});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function VN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=dh(t);return(t.styles||oC(r)).find(function(n){return n.getAttribute(BN(t))===e})}function Gi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=VN(e,t);if(r){var n=dh(t);n.removeChild(r)}}function DW(e,t){var r=nC.get(e);if(!r||!rC(document,r)){var n=jN("",t),o=n.parentNode;nC.set(e,o),e.removeChild(n)}}function yn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=dh(r),o=oC(n),i=T(T({},r),{},{styles:o});DW(n,i);var a=VN(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=jN(e,i);return u.setAttribute(BN(i),t),u}var rI=E(N());function HN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function He(e,t){if(e==null)return{};var r,n,o=HN(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Vt(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=F(c,2),d=f[1];return o.internalGet(u)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),GN+=1}return st(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}();var iC=new bd;function Es(e){var t=Array.isArray(e)?e:[e];return iC.has(t)||iC.set(t,new Yc(t)),iC.get(t)}var BW=new WeakMap,aC={};function XN(e,t){for(var r=BW,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=T(T({},o),{},(n={},_(n,Ki,t),_(n,Dn,r),n)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var Jc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).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()},jW=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=F(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},gh=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=F(a,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var d,m=Jc(u,n?.prefix);o[m]=typeof f=="number"&&!(n!=null&&(d=n.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(m,")")}}),[i,jW(o,r,{scope:n?.scope})]};var hh=E(N());var Zc=E(N());var YN=Yt()?Zc.useLayoutEffect:Zc.useEffect,QN=function(t,r){var n=Zc.useRef(!0);YN(function(){return t(n.current)},r),YN(function(){return n.current=!1,function(){n.current=!0}},[])},_l=function(t,r){QN(function(n){if(!n)return t()},r)},yt=QN;var lC=E(N()),VW=T({},lC),JN=VW.useInsertionEffect,HW=function(t,r,n){lC.useMemo(t,n),yt(function(){return r(!0)},n)},UW=JN?function(e,t,r){return JN(function(){return e(),t()},r)}:HW,ZN=UW;var cC=E(N()),qW=T({},cC),GW=qW.useInsertionEffect,KW=function(t){var r=[],n=!1;function o(i){n||r.push(i)}return cC.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},XW=function(){return function(t){t()}},YW=typeof GW<"u"?KW:XW,eI=YW;function QW(){return!1}var tI=QW;function Pl(e,t,r,n,o){var i=hh.useContext(wi),a=i.cache,s=[e].concat(ne(t)),l=ph(s),c=eI([l]),u=tI(),f=function(v){a.opUpdate(l,function(y){var g=y||[void 0,void 0],p=F(g,2),x=p[0],b=x===void 0?0:x,S=p[1],w=S,C=w||r(),R=[b,C];return v?v(R):R})};hh.useMemo(function(){f()},[l]);var d=a.opGet(l),m=d[1];return ZN(function(){o?.(m)},function(h){return f(function(v){var y=F(v,2),g=y[0],p=y[1];return h&&g===0&&o?.(m),[g+1,p]}),function(){a.opUpdate(l,function(v){var y=v||[],g=F(y,2),p=g[0],x=p===void 0?0:p,b=g[1],S=x-1;return S===0?(c(function(){(h||!a.opGet(l))&&n?.(b,!1)}),null):[x-1,b]})}},[l]),m}var JW={},ZW="css",Tl=new Map;function eB(e){Tl.set(e,(Tl.get(e)||0)+1)}function tB(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Ki,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ci]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var rB=0;function nB(e,t){Tl.set(e,(Tl.get(e)||0)-1);var r=Array.from(Tl.keys()),n=r.filter(function(o){var i=Tl.get(o)||0;return i<=0});r.length-n.length>rB&&n.forEach(function(o){tB(o,t),Tl.delete(o)})}var nI=function(t,r,n,o){var i=n.getDerivativeToken(t),a=T(T({},i),r);return o&&(a=o(a)),a},uC="token";function vh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(0,rI.useContext)(wi),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?JW:l,u=r.formatToken,f=r.getComputedToken,d=r.cssVar,m=XN(function(){return Object.assign.apply(Object,[{}].concat(ne(t)))},t),h=Qc(m),v=Qc(c),y=d?Qc(d):"",g=Pl(uC,[s,e.id,h,v,y],function(){var p,x=f?f(m,c,e):nI(m,c,e,u),b=T({},x),S="";if(d){var w=gh(x,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),C=F(w,2);x=C[0],S=C[1]}var R=sC(x,s);x._tokenKey=R,b._tokenKey=sC(b,s);var P=(p=d?.key)!==null&&p!==void 0?p:R;x._themeKey=P,eB(P);var O="".concat(ZW,"-").concat(Cs(R));return x._hashId=O,[x,O,b,S,d?.key||""]},function(p){nB(p[0]._themeKey,o)},function(p){var x=F(p,4),b=x[0],S=x[3];if(d&&S){var w=yn(S,Cs("css-variables-".concat(b._themeKey)),{mark:Dn,prepend:"queue",attachTo:i,priority:-999});w[Ci]=o,w.setAttribute(Ki,b._themeKey)}});return g}var oI=function(t,r,n){var o=F(t,5),i=o[2],a=o[3],s=o[4],l=n||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=Rs(a,s,u,d,c);return[f,u,m]};var NI=E(N());var Ps=E(N());var oB={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},fC=oB;var yh="comm",xh="rule",bh="decl";var iI="@import";var aI="@namespace",sI="@keyframes";var lI="@layer";var dC=Math.abs,Cd=String.fromCharCode;function Sh(e){return e.trim()}function wd(e,t,r){return e.replace(t,r)}function cI(e,t,r){return e.indexOf(t,r)}function Os(e,t){return e.charCodeAt(t)|0}function _s(e,t,r){return e.slice(t,r)}function Co(e){return e.length}function uI(e){return e.length}function eu(e,t){return t.push(e),e}var Ch=1,tu=1,fI=0,Vo=0,Vr=0,nu="";function wh(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ch,column:tu,length:a,return:"",siblings:s}}function dI(){return Vr}function pI(){return Vr=Vo>0?Os(nu,--Vo):0,tu--,Vr===10&&(tu=1,Ch--),Vr}function Ho(){return Vr=Vo2||ru(Vr)>3?"":" "}function vI(e,t){for(;--t&&Ho()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return Eh(e,Ed()+(t<6&&Ca()==32&&Ho()==32))}function pC(e){for(;Ho();)switch(Vr){case e:return Vo;case 34:case 39:e!==34&&e!==39&&pC(Vr);break;case 40:e===41&&pC(e);break;case 92:Ho();break}return Vo}function yI(e,t){for(;Ho()&&e+Vr!==57;)if(e+Vr===84&&Ca()===47)break;return"/*"+Eh(t,Vo-1)+"*"+Cd(e===47?e:Ho())}function xI(e){for(;!ru(Ca());)Ho();return Eh(e,Vo)}function CI(e){return gI(Oh("",null,null,null,[""],e=mI(e),0,[0],e))}function Oh(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,f=a,d=0,m=0,h=0,v=1,y=1,g=1,p=0,x="",b=o,S=i,w=n,C=x;y;)switch(h=p,p=Ho()){case 40:if(h!=108&&Os(C,f-1)==58){cI(C+=wd(Rh(p),"&","&\f"),"&\f",dC(c?s[c-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:C+=Rh(p);break;case 9:case 10:case 13:case 32:C+=hI(h);break;case 92:C+=vI(Ed()-1,7);continue;case 47:switch(Ca()){case 42:case 47:eu(iB(yI(Ho(),Ed()),t,r,l),l),(ru(h||1)==5||ru(Ca()||1)==5)&&Co(C)&&_s(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*v:s[c++]=Co(C)*g;case 125*v:case 59:case 0:switch(p){case 0:case 125:y=0;case 59+u:g==-1&&(C=wd(C,/\f/g,"")),m>0&&(Co(C)-f||v===0&&h===47)&&eu(m>32?SI(C+";",n,r,f-1,l):SI(wd(C," ","")+";",n,r,f-2,l),l);break;case 59:C+=";";default:if(eu(w=bI(C,t,r,c,u,o,s,x,b=[],S=[],f,i),i),p===123)if(u===0)Oh(C,t,w,w,b,i,f,s,S);else{switch(d){case 99:if(Os(C,3)===110)break;case 108:if(Os(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Oh(e,w,w,n&&eu(bI(e,w,w,0,0,o,s,x,o,b=[],f,S),S),o,S,f,s,n?b:S):Oh(C,w,w,w,[""],S,0,s,S)}}c=u=m=0,v=g=1,x=C="",f=a;break;case 58:f=1+Co(C),m=h;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&pI()==125)continue}switch(C+=Cd(p),p*v){case 38:g=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Co(C)-1)*g,g=1;break;case 64:Ca()===45&&(C+=Rh(Ho())),d=Ca(),u=f=Co(x=C+=xI(Ed())),p++;break;case 45:h===45&&Co(C)==2&&(v=0)}}return i}function bI(e,t,r,n,o,i,a,s,l,c,u,f){for(var d=o-1,m=o===0?i:[""],h=uI(m),v=0,y=0,g=0;v0?m[p]+" "+x:wd(x,/&\f/g,m[p])))&&(l[g++]=b);return wh(e,t,r,o===0?xh:s,l,c,u,f)}function iB(e,t,r,n){return wh(e,t,r,yh,Cd(dI()),_s(e,2,-2),0,n)}function SI(e,t,r,n,o){return wh(e,t,r,bh,_s(e,0,n),_s(e,n+1,-1),n,o)}function _h(e,t){for(var r="",n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,f=r.transformers,d=f===void 0?[]:f,m=r.linters,h=m===void 0?[]:m,v="",y={};function g(b){var S=b.getName(s);if(!y[S]){var w=e(b.style,r,{root:!1,parentSelectors:a}),C=F(w,1),R=C[0];y[S]="@keyframes ".concat(b.getName(s)).concat(R)}}function p(b){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(w){Array.isArray(w)?p(w,S):w&&S.push(w)}),S}var x=p(Array.isArray(t)?t:[t]);return x.forEach(function(b){var S=typeof b=="string"&&!o?{}:b;if(typeof S=="string")v+="".concat(S,` +`);else if(S._keyframe)g(S);else{var w=d.reduce(function(C,R){var P;return(R==null||(P=R.visit)===null||P===void 0?void 0:P.call(R,C))||C},S);Object.keys(w).forEach(function(C){var R=w[C];if(ce(R)==="object"&&R&&(C!=="animationName"||!R._keyframe)&&!dB(R)){var P=!1,O=C.trim(),I=!1;(o||i)&&s?O.startsWith("@")?P=!0:O==="&"?O=_I("",s,u):O=_I(C,s,u):o&&!s&&(O==="&"||O==="")&&(O="",I=!0);var D=e(R,r,{root:I,injectHash:P,parentSelectors:[].concat(ne(a),[O])}),$=F(D,2),L=$[0],A=$[1];y=T(T({},y),A),v+="".concat(O).concat(L)}else{let K=function(G,V){var H=G.replace(/[A-Z]/g,function(k){return"-".concat(k.toLowerCase())}),j=V;!fC[G]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),G==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(g(V),j=V.getName(s)),v+="".concat(H,":").concat(j,";")};var B=K,M,W=(M=R?.value)!==null&&M!==void 0?M:R;ce(R)==="object"&&R!==null&&R!==void 0&&R[PI]&&Array.isArray(W)?W.forEach(function(G){K(C,G)}):K(C,W)}})}}),o?l&&(v&&(v="@layer ".concat(l.name," {").concat(v,"}")),l.dependencies&&(y["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(` +`))):v="{".concat(v,"}"),[v,y]};function hC(e,t){return Cs("".concat(e.join("%")).concat(t))}function mB(){return null}var vC="style";function Ts(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=Ps.useContext(wi),f=u.autoClear,d=u.mock,m=u.defaultCache,h=u.hashPriority,v=u.container,y=u.ssrInline,g=u.transformers,p=u.linters,x=u.cache,b=u.layer,S=r._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,ne(n));var C=Sd,R=Pl(vC,w,function(){var $=w.join("|");if(RI($)){var L=OI($),A=F(L,2),M=A[0],W=A[1];if(M)return[M,S,W,{},s,c]}var B=t(),K=pB(B,{hashId:o,hashPriority:h,layer:b?i:void 0,path:n.join("-"),transformers:g,linters:p}),G=F(K,2),V=G[0],H=G[1],j=Ph(V),k=hC(w,j);return[j,S,k,H,s,c]},function($,L){var A=F($,3),M=A[2];(L||f)&&Sd&&Gi(M,{mark:Dn})},function($){var L=F($,4),A=L[0],M=L[1],W=L[2],B=L[3];if(C&&A!==gC){var K={mark:Dn,prepend:b?!1:"queue",attachTo:v,priority:c},G=typeof a=="function"?a():a;G&&(K.csp={nonce:G});var V=[],H=[];Object.keys(B).forEach(function(k){k.startsWith("@layer")?V.push(k):H.push(k)}),V.forEach(function(k){yn(Ph(B[k]),"_layer-".concat(k),T(T({},K),{},{prepend:!0}))});var j=yn(A,W,K);j[Ci]=x.instanceId,j.setAttribute(Ki,S),H.forEach(function(k){yn(Ph(B[k]),"_effect-".concat(k),K)})}}),P=F(R,3),O=P[0],I=P[1],D=P[2];return function($){var L;if(!y||C||!m)L=Ps.createElement(mB,null);else{var A;L=Ps.createElement("style",le({},(A={},_(A,Ki,I),_(A,Dn,D),A),{dangerouslySetInnerHTML:{__html:O}}))}return Ps.createElement(Ps.Fragment,null,L,$)}}var TI=function(t,r,n){var o=F(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=n||{},d=f.plain;if(c)return null;var m=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=Rs(i,a,s,h,d),l&&Object.keys(l).forEach(function(v){if(!r[v]){r[v]=!0;var y=Ph(l[v]),g=Rs(y,a,"_effect-".concat(v),h,d);v.startsWith("@layer")?m=g+m:m+=g}}),[u,s,m]};var yC="cssVar",gB=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=(0,NI.useContext)(wi),f=u.cache.instanceId,d=u.container,m=s._tokenKey,h=[].concat(ne(t.path),[n,c,m]),v=Pl(yC,h,function(){var y=r(),g=gh(y,n,{prefix:o,unitless:i,ignore:a,scope:c}),p=F(g,2),x=p[0],b=p[1],S=hC(h,b);return[x,b,S,n]},function(y){var g=F(y,3),p=g[2];Sd&&Gi(p,{mark:Dn})},function(y){var g=F(y,3),p=g[1],x=g[2];if(p){var b=yn(p,x,{mark:Dn,prepend:"queue",attachTo:d,priority:-999});b[Ci]=f,b.setAttribute(Ki,n)}});return v},II=function(t,r,n){var o=F(t,4),i=o[1],a=o[2],s=o[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Rs(i,s,a,f,c);return[u,a,d]},xC=gB;var Od,jne=(Od={},_(Od,vC,TI),_(Od,uC,oI),_(Od,yC,II),Od);var hB=function(){function e(t,r){at(this,e),_(this,"name",void 0),_(this,"style",void 0),_(this,"_keyframe",!0),this.name=t,this.style=r}return st(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}(),xt=hB;function ou(e){return e.notSplit=!0,e}var Xne={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:ou(["borderTop","borderBottom"]),borderBlockStart:ou(["borderTop"]),borderBlockEnd:ou(["borderBottom"]),borderInline:ou(["borderLeft","borderRight"]),borderInlineStart:ou(["borderLeft"]),borderInlineEnd:ou(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};var DI=E(N()),vB=(0,DI.createContext)({}),iu=vB;function Th(e){return uh(e)||ch(e)||Xc(e)||fh()}function xn(e,t){for(var r=e,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!xn(e,t.slice(0,-1))?e:AI(e,t,r,n)}function yB(e){return ce(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function $I(e){return Array.isArray(e)?[]:{}}var xB=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wa(){for(var e=arguments.length,t=new Array(e),r=0;r{let e=()=>{};return e.deprecated=bB,e};var MI=E(N()),FI=(0,MI.createContext)(void 0);var su=E(N());var SB={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"},LI=SB;var zI={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var CB=T(T({},zI),{},{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"}),WI=CB;var wB={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ih=wB;var EB={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"]},WI),timePickerLocale:Object.assign({},Ih)},Dh=EB;var BI=Dh;var wo="${label} is not a valid ${type}",RB={locale:"en",Pagination:LI,DatePicker:Dh,TimePicker:Ih,Calendar:BI,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:wo,method:wo,array:wo,object:wo,number:wo,date:wo,boolean:wo,integer:wo,float:wo,regexp:wo,email:wo,url:wo,hex:wo},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"}},Ei=RB;var SC=Object.assign({},Ei.Modal),$h=[],jI=()=>$h.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ei.Modal);function VI(e){if(e){let t=Object.assign({},e);return $h.push(t),SC=jI(),()=>{$h=$h.filter(r=>r!==t),SC=jI()}}SC=Object.assign({},Ei.Modal)}var HI=E(N()),OB=(0,HI.createContext)(void 0),au=OB;var _d=E(N());var _B=(e,t)=>{let r=_d.useContext(au),n=_d.useMemo(()=>{var i;let a=t||Ei[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=_d.useMemo(()=>{let i=r?.locale;return r?.exist&&!i?Ei.locale:i},[r]);return[n,o]},Ea=_B;var UI="internalMark",PB=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;su.useEffect(()=>VI(t?.Modal),[t]);let o=su.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return su.createElement(au.Provider,{value:o},r)},qI=PB;var y2=E(N());var CC={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"},TB=Object.assign(Object.assign({},CC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Ea=PB;var cn=Math.round;function SC(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var qI=(e,t,r)=>r===0?e:e/100;function _d(e,t){let r=t||255;return e>r?r:e<0?0:e}var gt=class e{constructor(t){_(this,"isValid",!0),_(this,"r",0),_(this,"g",0),_(this,"b",0),_(this,"a",1),_(this,"_h",void 0),_(this,"_s",void 0),_(this,"_l",void 0),_(this,"_v",void 0),_(this,"_max",void 0),_(this,"_min",void 0),_(this,"_brightness",void 0);function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var n=i;let o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):i("rgb")?this.fromRgbString(o):i("hsl")?this.fromHslString(o):(i("hsv")||i("hsb"))&&this.fromHsvString(o)}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=_d(t.r),this.g=_d(t.g),this.b=_d(t.b),this.a=typeof t.a=="number"?_d(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=cn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){let n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:cn(i("r")),g:cn(i("g")),b:cn(i("b")),a:cn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>cn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=cn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=cn(this.getSaturation()*100),n=cn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){let o=this.clone();return o[t]=_d(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){let d=cn(n*255);this.r=d,this.g=d,this.b=d}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=n-c/2;this.r=cn((i+f)*255),this.g=cn((a+f)*255),this.b=cn((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;let i=cn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=cn(n*(1-r)*255),u=cn(n*(1-r*l)*255),f=cn(n*(1-r*(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;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=SC(t,qI);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=SC(t,qI);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=SC(t,(n,o)=>o.includes("%")?cn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Dh=2,GI=.16,TB=.05,NB=.05,IB=.15,QI=5,JI=4,DB=[{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 KI(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Dh*t:Math.round(e.h)+Dh*t:n=r?Math.round(e.h)+Dh*t:Math.round(e.h)-Dh*t,n<0?n+=360:n>=360&&(n-=360),n}function XI(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-GI*t:t===JI?n=e.s+GI:n=e.s+TB*t,n>1&&(n=1),r&&t===QI&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function YI(e,t,r){var n;return r?n=e.v+NB*t:n=e.v-IB*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Oi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new gt(e),o=n.toHsv(),i=QI;i>0;i-=1){var a=new gt({h:KI(o,i,!0),s:XI(o,i,!0),v:YI(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=JI;s+=1){var l=new gt({h:KI(o,s),s:XI(o,s),v:YI(o,s)});r.push(l)}return t.theme==="dark"?DB.map(function(c){var u=c.index,f=c.amount;return new gt(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Ra={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"},CC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];CC.primary=CC[5];var wC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];wC.primary=wC[5];var EC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];EC.primary=EC[5];var RC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];RC.primary=RC[5];var OC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];OC.primary=OC[5];var _C=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];_C.primary=_C[5];var PC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];PC.primary=PC[5];var TC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];TC.primary=TC[5];var Ns=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ns.primary=Ns[5];var NC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];NC.primary=NC[5];var IC=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];IC.primary=IC[5];var DC=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];DC.primary=DC[5];var $C=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];$C.primary=$C[5];var $h={red:CC,volcano:wC,orange:EC,gold:RC,yellow:OC,lime:_C,green:PC,cyan:TC,blue:Ns,geekblue:NC,purple:IC,magenta:DC,grey:$C},ZI=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];ZI.primary=ZI[5];var e2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];e2.primary=e2[5];var t2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];t2.primary=t2[5];var r2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];r2.primary=r2[5];var n2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];n2.primary=n2[5];var o2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];o2.primary=o2[5];var i2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];i2.primary=i2[5];var a2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];a2.primary=a2[5];var s2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];s2.primary=s2[5];var l2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];l2.primary=l2[5];var c2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];c2.primary=c2[5];var u2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];u2.primary=u2[5];var f2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];f2.primary=f2[5];function AC(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),d=t(o),m=t(i),h=t(a),v=r(l,c),y=e.colorLink||e.colorInfo,g=t(y),p=new gt(m[1]).mix(new gt(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:p,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new gt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var $B=e=>{let t=e,r=e,n=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},d2=$B;function kC(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},d2(n))}var AB=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},p2=AB;function lu(e){return(e+8)/e}function MC(e){let t=Array.from({length:10}).map((r,n)=>{let o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:lu(r)}))}var kB=e=>{let t=MC(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,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*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},m2=kB;function FC(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)}}var Eo=(e,t)=>new gt(e).setA(t).toRgbString(),cu=(e,t)=>new gt(e).darken(t).toHexString();var g2=e=>{let t=Oi(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]}},h2=(e,t)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Eo(n,.88),colorTextSecondary:Eo(n,.65),colorTextTertiary:Eo(n,.45),colorTextQuaternary:Eo(n,.25),colorFill:Eo(n,.15),colorFillSecondary:Eo(n,.06),colorFillTertiary:Eo(n,.04),colorFillQuaternary:Eo(n,.02),colorBgSolid:Eo(n,1),colorBgSolidHover:Eo(n,.75),colorBgSolidActive:Eo(n,.95),colorBgLayout:cu(r,4),colorBgContainer:cu(r,0),colorBgElevated:cu(r,0),colorBgSpotlight:Eo(n,.85),colorBgBlur:"transparent",colorBorder:cu(r,15),colorBorderSecondary:cu(r,6)}};function LC(e){Ra.pink=Ra.magenta,$h.pink=$h.magenta;let t=Object.keys(bC).map(r=>{let n=e[r]===Ra[r]?$h[r]:Oi(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),AC(e,{generateColorPalettes:g2,generateNeutralColorPalettes:h2})),m2(e.fontSize)),FC(e)),p2(e)),kC(e))}var MB=Es(LC),Pd=MB;var Td={token:Ea,override:{override:Ea},hashed:!0},Nd=v2.default.createContext(Td);var Ah=E(N()),Is="ant",Id="anticon",zC=["outlined","borderless","filled","underlined"],FB=(e,t)=>t||(e?`${Is}-${e}`:Is),rt=Ah.createContext({getPrefixCls:FB,iconPrefixCls:Id}),{Consumer:LB}=rt,y2={};function oo(e){let t=Ah.useContext(rt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:y2,styles:y2},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}var zB=`-ant-${Date.now()}-${Math.random()}`;function WB(e,t){let r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{let l=new gt(a),c=Oi(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");let a=new gt(t.primaryColor),s=Oi(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));let l=new gt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` +'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}),Ra=TB;var sn=Math.round;function wC(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var GI=(e,t,r)=>r===0?e:e/100;function Pd(e,t){let r=t||255;return e>r?r:e<0?0:e}var ht=class e{constructor(t){_(this,"isValid",!0),_(this,"r",0),_(this,"g",0),_(this,"b",0),_(this,"a",1),_(this,"_h",void 0),_(this,"_s",void 0),_(this,"_l",void 0),_(this,"_v",void 0),_(this,"_max",void 0),_(this,"_min",void 0),_(this,"_brightness",void 0);function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var n=i;let o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):i("rgb")?this.fromRgbString(o):i("hsl")?this.fromHslString(o):(i("hsv")||i("hsb"))&&this.fromHsvString(o)}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Pd(t.r),this.g=Pd(t.g),this.b=Pd(t.b),this.a=typeof t.a=="number"?Pd(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=sn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){let n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:sn(i("r")),g:sn(i("g")),b:sn(i("b")),a:sn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>sn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=sn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=sn(this.getSaturation()*100),n=sn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){let o=this.clone();return o[t]=Pd(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){let d=sn(n*255);this.r=d,this.g=d,this.b=d}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=n-c/2;this.r=sn((i+f)*255),this.g=sn((a+f)*255),this.b=sn((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;let i=sn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=sn(n*(1-r)*255),u=sn(n*(1-r*l)*255),f=sn(n*(1-r*(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;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=wC(t,GI);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=wC(t,GI);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=wC(t,(n,o)=>o.includes("%")?sn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Ah=2,KI=.16,NB=.05,IB=.05,DB=.15,JI=5,ZI=4,$B=[{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 XI(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Ah*t:Math.round(e.h)+Ah*t:n=r?Math.round(e.h)+Ah*t:Math.round(e.h)-Ah*t,n<0?n+=360:n>=360&&(n-=360),n}function YI(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-KI*t:t===ZI?n=e.s+KI:n=e.s+NB*t,n>1&&(n=1),r&&t===JI&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function QI(e,t,r){var n;return r?n=e.v+IB*t:n=e.v-DB*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Ri(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new ht(e),o=n.toHsv(),i=JI;i>0;i-=1){var a=new ht({h:XI(o,i,!0),s:YI(o,i,!0),v:QI(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=ZI;s+=1){var l=new ht({h:XI(o,s),s:YI(o,s),v:QI(o,s)});r.push(l)}return t.theme==="dark"?$B.map(function(c){var u=c.index,f=c.amount;return new ht(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Oa={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"},EC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];EC.primary=EC[5];var RC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];RC.primary=RC[5];var OC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];OC.primary=OC[5];var _C=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_C.primary=_C[5];var PC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];PC.primary=PC[5];var TC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];TC.primary=TC[5];var NC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];NC.primary=NC[5];var IC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];IC.primary=IC[5];var Ns=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ns.primary=Ns[5];var DC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];DC.primary=DC[5];var $C=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];$C.primary=$C[5];var AC=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];AC.primary=AC[5];var kC=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kC.primary=kC[5];var kh={red:EC,volcano:RC,orange:OC,gold:_C,yellow:PC,lime:TC,green:NC,cyan:IC,blue:Ns,geekblue:DC,purple:$C,magenta:AC,grey:kC},e2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];e2.primary=e2[5];var t2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];t2.primary=t2[5];var r2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];r2.primary=r2[5];var n2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];n2.primary=n2[5];var o2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];o2.primary=o2[5];var i2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];i2.primary=i2[5];var a2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];a2.primary=a2[5];var s2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];s2.primary=s2[5];var l2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];l2.primary=l2[5];var c2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];c2.primary=c2[5];var u2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];u2.primary=u2[5];var f2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];f2.primary=f2[5];var d2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];d2.primary=d2[5];function MC(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),d=t(o),m=t(i),h=t(a),v=r(l,c),y=e.colorLink||e.colorInfo,g=t(y),p=new ht(m[1]).mix(new ht(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:p,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new ht("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var AB=e=>{let t=e,r=e,n=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},p2=AB;function FC(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},p2(n))}var kB=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},m2=kB;function lu(e){return(e+8)/e}function LC(e){let t=Array.from({length:10}).map((r,n)=>{let o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:lu(r)}))}var MB=e=>{let t=LC(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,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*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},g2=MB;function zC(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)}}var Eo=(e,t)=>new ht(e).setA(t).toRgbString(),cu=(e,t)=>new ht(e).darken(t).toHexString();var h2=e=>{let t=Ri(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]}},v2=(e,t)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Eo(n,.88),colorTextSecondary:Eo(n,.65),colorTextTertiary:Eo(n,.45),colorTextQuaternary:Eo(n,.25),colorFill:Eo(n,.15),colorFillSecondary:Eo(n,.06),colorFillTertiary:Eo(n,.04),colorFillQuaternary:Eo(n,.02),colorBgSolid:Eo(n,1),colorBgSolidHover:Eo(n,.75),colorBgSolidActive:Eo(n,.95),colorBgLayout:cu(r,4),colorBgContainer:cu(r,0),colorBgElevated:cu(r,0),colorBgSpotlight:Eo(n,.85),colorBgBlur:"transparent",colorBorder:cu(r,15),colorBorderSecondary:cu(r,6)}};function WC(e){Oa.pink=Oa.magenta,kh.pink=kh.magenta;let t=Object.keys(CC).map(r=>{let n=e[r]===Oa[r]?kh[r]:Ri(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),MC(e,{generateColorPalettes:h2,generateNeutralColorPalettes:v2})),g2(e.fontSize)),zC(e)),m2(e)),FC(e))}var FB=Es(WC),Td=FB;var Nd={token:Ra,override:{override:Ra},hashed:!0},Id=y2.default.createContext(Nd);var Mh=E(N()),Is="ant",Dd="anticon",BC=["outlined","borderless","filled","underlined"],LB=(e,t)=>t||(e?`${Is}-${e}`:Is),ot=Mh.createContext({getPrefixCls:LB,iconPrefixCls:Dd}),{Consumer:zB}=ot,x2={};function oo(e){let t=Mh.useContext(ot),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:x2,styles:x2},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}var WB=`-ant-${Date.now()}-${Math.random()}`;function BB(e,t){let r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{let l=new ht(a),c=Ri(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");let a=new ht(t.primaryColor),s=Ri(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));let l=new ht(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(` `)} } - `.trim()}function x2(e,t){let r=WB(e,t);Yt()&&xn(r,`${zB}-dynamic-theme`)}var uu=E(N()),WC=uu.createContext(!1),b2=({children:e,disabled:t})=>{let r=uu.useContext(WC);return uu.createElement(WC.Provider,{value:t??r},e)},qr=WC;var jC=E(N());var fu=E(N()),BC=fu.createContext(void 0),S2=({children:e,size:t})=>{let r=fu.useContext(BC);return fu.createElement(BC.Provider,{value:t||r},e)},Tl=BC;function BB(){let e=(0,jC.useContext)(qr),t=(0,jC.useContext)(Tl);return{componentDisabled:e,componentSize:t}}var C2=BB;var Wh=E(N());var jB=at(function e(){it(this,e)}),kh=jB;var w2="CALC_UNIT",VB=new RegExp(w2,"g");function VC(e){return typeof e=="number"?"".concat(e).concat(w2):e}var E2=function(e){Dr(r,e);var t=$r(r);function r(n,o){var i;it(this,r),i=t.call(this),_(Ye(i),"result",""),_(Ye(i),"unitlessCssVar",void 0),_(Ye(i),"lowPriority",void 0);var a=fe(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=VC(n):a==="string"&&(i.result=n),i}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(VC(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(VC(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(VB,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(kh);var HB=function(e){Dr(r,e);var t=$r(r);function r(n){var o;return it(this,r),o=t.call(this),_(Ye(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}(kh),R2=HB;var UB=function(t,r){var n=t==="css"?E2:R2;return function(o){return new n(o,r)}},Mh=UB;var qB=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},HC=qB;var Fh=E(N());function wt(e){var t=Fh.useRef();t.current=e;var r=Fh.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>JB&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),P2=new ZB;function ej(e,t){return T2.default.useMemo(function(){var r=P2.get(t);if(r)return r;var n=e();return P2.set(t,n),n},t)}var N2=ej;var tj=function(){return{}},I2=tj;function rj(e){var t=e.useCSP,r=t===void 0?I2:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,m,h,v){var y=Array.isArray(d)?d[0]:d;function g(R){return"".concat(String(y)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var p=v?.unitless||{},x=typeof s=="function"?s(d):{},b=T(T({},x),{},_({},g("zIndexPopup"),!0));Object.keys(p).forEach(function(R){b[g(R)]=p[R]});var S=T(T({},v),{},{unitless:b,prefixToken:g}),w=u(d,m,h,S),C=c(y,h,S);return function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=w(R,P),I=M(O,2),D=I[1],$=C(P),F=M($,2),k=F[0],z=F[1];return[k,D,z]}}function c(d,m,h){var v=h.unitless,y=h.injectStyle,g=y===void 0?!0:y,p=h.prefixToken,x=h.ignore,b=function(C){var R=C.rootCls,P=C.cssVar,O=P===void 0?{}:P,I=n(),D=I.realToken;return vC({path:[d],prefix:O.prefix,key:O.key,unitless:v,ignore:x,token:D,scope:R},function(){var $=KC(d,D,m),F=qC(d,D,$,{deprecatedTokens:h?.deprecatedTokens});return Object.keys($).forEach(function(k){F[p(k)]=F[k],delete F[k]}),F}),null},S=function(C){var R=n(),P=R.cssVar;return[function(O){return g&&P?Wh.default.createElement(Wh.default.Fragment,null,Wh.default.createElement(b,{rootCls:C,cssVar:P,component:d}),O):O},P?.key]};return S}function u(d,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(d)?d:[d,d],g=M(y,1),p=g[0],x=y.join("-"),b=e.layer||{name:"antd"};return function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,C=n(),R=C.theme,P=C.realToken,O=C.hashId,I=C.token,D=C.cssVar,$=o(),F=$.rootPrefixCls,k=$.iconPrefixCls,z=r(),B=D?"css":"js",j=N2(function(){var A=new Set;return D&&Object.keys(v.unitless||{}).forEach(function(L){A.add(Jc(L,D.prefix)),A.add(Jc(L,HC(p,D.prefix)))}),Mh(B,A)},[B,p,D?.prefix]),G=_2(B),V=G.max,H=G.min,K={theme:R,token:I,hashId:O,nonce:function(){return z.nonce},clientOnly:v.clientOnly,layer:b,order:v.order||-999};typeof i=="function"&&Ts(T(T({},K),{},{clientOnly:!1,path:["Shared",F]}),function(){return i(I,{prefix:{rootPrefixCls:F,iconPrefixCls:k},csp:z})});var W=Ts(T(T({},K),{},{path:[x,S,k]}),function(){if(v.injectStyle===!1)return[];var A=zh(I),L=A.token,q=A.flush,ne=KC(p,P,h),Y=".".concat(S),X=qC(p,P,ne,{deprecatedTokens:v.deprecatedTokens});D&&ne&&fe(ne)==="object"&&Object.keys(ne).forEach(function(Q){ne[Q]="var(".concat(Jc(Q,HC(p,D.prefix)),")")});var ae=ut(L,{componentCls:Y,prefixCls:S,iconCls:".".concat(k),antCls:".".concat(F),calc:j,max:V,min:H},D?ne:X),J=m(ae,{hashId:O,prefixCls:S,rootPrefixCls:F,iconPrefixCls:k});q(p,X);var U=typeof a=="function"?a(ae,S,w,v.resetFont):null;return[v.resetStyle===!1?null:U,J]});return[W,O]}}function f(d,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(d,m,h,T({resetStyle:!1,order:-998},v)),g=function(x){var b=x.prefixCls,S=x.rootCls,w=S===void 0?b:S;return y(b,w),null};return g}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}var XC=rj;var Ro=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var k2=E(N());var D2="5.25.4";var $2=D2;function YC(e){return e>=0&&e<=255}function nj(e,t){let{r,g:n,b:o,a:i}=new gt(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new gt(t).toRgb();for(let c=.01;c<=1;c+=.01){let u=Math.round((r-a*(1-c))/c),f=Math.round((n-s*(1-c))/c),d=Math.round((o-l*(1-c))/c);if(YC(u)&&YC(f)&&YC(d))return new gt({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new gt({r,g:n,b:o,a:1}).toRgbString()}var Nl=nj;var oj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{delete n[d]});let o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){let d="0s";o.motionDurationFast=d,o.motionDurationMid=d,o.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Nl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Nl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Nl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Nl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` + `.trim()}function b2(e,t){let r=BB(e,t);Yt()&&yn(r,`${WB}-dynamic-theme`)}var uu=E(N()),jC=uu.createContext(!1),S2=({children:e,disabled:t})=>{let r=uu.useContext(jC);return uu.createElement(jC.Provider,{value:t??r},e)},Hr=jC;var HC=E(N());var fu=E(N()),VC=fu.createContext(void 0),C2=({children:e,size:t})=>{let r=fu.useContext(VC);return fu.createElement(VC.Provider,{value:t||r},e)},Il=VC;function jB(){let e=(0,HC.useContext)(Hr),t=(0,HC.useContext)(Il);return{componentDisabled:e,componentSize:t}}var w2=jB;var jh=E(N());var VB=st(function e(){at(this,e)}),Fh=VB;var E2="CALC_UNIT",HB=new RegExp(E2,"g");function UC(e){return typeof e=="number"?"".concat(e).concat(E2):e}var R2=function(e){$r(r,e);var t=Ar(r);function r(n,o){var i;at(this,r),i=t.call(this),_(Ye(i),"result",""),_(Ye(i),"unitlessCssVar",void 0),_(Ye(i),"lowPriority",void 0);var a=ce(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=UC(n):a==="string"&&(i.result=n),i}return st(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(UC(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(UC(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(HB,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Fh);var UB=function(e){$r(r,e);var t=Ar(r);function r(n){var o;return at(this,r),o=t.call(this),_(Ye(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return st(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}(Fh),O2=UB;var qB=function(t,r){var n=t==="css"?R2:O2;return function(o){return new n(o,r)}},Lh=qB;var GB=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},qC=GB;var zh=E(N());function wt(e){var t=zh.useRef();t.current=e;var r=zh.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>ZB&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),T2=new ej;function tj(e,t){return N2.default.useMemo(function(){var r=T2.get(t);if(r)return r;var n=e();return T2.set(t,n),n},t)}var I2=tj;var rj=function(){return{}},D2=rj;function nj(e){var t=e.useCSP,r=t===void 0?D2:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,m,h,v){var y=Array.isArray(d)?d[0]:d;function g(R){return"".concat(String(y)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var p=v?.unitless||{},x=typeof s=="function"?s(d):{},b=T(T({},x),{},_({},g("zIndexPopup"),!0));Object.keys(p).forEach(function(R){b[g(R)]=p[R]});var S=T(T({},v),{},{unitless:b,prefixToken:g}),w=u(d,m,h,S),C=c(y,h,S);return function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=w(R,P),I=F(O,2),D=I[1],$=C(P),L=F($,2),A=L[0],M=L[1];return[A,D,M]}}function c(d,m,h){var v=h.unitless,y=h.injectStyle,g=y===void 0?!0:y,p=h.prefixToken,x=h.ignore,b=function(C){var R=C.rootCls,P=C.cssVar,O=P===void 0?{}:P,I=n(),D=I.realToken;return xC({path:[d],prefix:O.prefix,key:O.key,unitless:v,ignore:x,token:D,scope:R},function(){var $=YC(d,D,m),L=KC(d,D,$,{deprecatedTokens:h?.deprecatedTokens});return Object.keys($).forEach(function(A){L[p(A)]=L[A],delete L[A]}),L}),null},S=function(C){var R=n(),P=R.cssVar;return[function(O){return g&&P?jh.default.createElement(jh.default.Fragment,null,jh.default.createElement(b,{rootCls:C,cssVar:P,component:d}),O):O},P?.key]};return S}function u(d,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(d)?d:[d,d],g=F(y,1),p=g[0],x=y.join("-"),b=e.layer||{name:"antd"};return function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,C=n(),R=C.theme,P=C.realToken,O=C.hashId,I=C.token,D=C.cssVar,$=o(),L=$.rootPrefixCls,A=$.iconPrefixCls,M=r(),W=D?"css":"js",B=I2(function(){var k=new Set;return D&&Object.keys(v.unitless||{}).forEach(function(z){k.add(Jc(z,D.prefix)),k.add(Jc(z,qC(p,D.prefix)))}),Lh(W,k)},[W,p,D?.prefix]),K=P2(W),G=K.max,V=K.min,H={theme:R,token:I,hashId:O,nonce:function(){return M.nonce},clientOnly:v.clientOnly,layer:b,order:v.order||-999};typeof i=="function"&&Ts(T(T({},H),{},{clientOnly:!1,path:["Shared",L]}),function(){return i(I,{prefix:{rootPrefixCls:L,iconPrefixCls:A},csp:M})});var j=Ts(T(T({},H),{},{path:[x,S,A]}),function(){if(v.injectStyle===!1)return[];var k=Bh(I),z=k.token,U=k.flush,oe=YC(p,P,h),Q=".".concat(S),X=KC(p,P,oe,{deprecatedTokens:v.deprecatedTokens});D&&oe&&ce(oe)==="object"&&Object.keys(oe).forEach(function(J){oe[J]="var(".concat(Jc(J,qC(p,D.prefix)),")")});var se=ft(z,{componentCls:Q,prefixCls:S,iconCls:".".concat(A),antCls:".".concat(L),calc:B,max:G,min:V},D?oe:X),Z=m(se,{hashId:O,prefixCls:S,rootPrefixCls:L,iconPrefixCls:A});U(p,X);var q=typeof a=="function"?a(se,S,w,v.resetFont):null;return[v.resetStyle===!1?null:q,Z]});return[j,O]}}function f(d,m,h){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(d,m,h,T({resetStyle:!1,order:-998},v)),g=function(x){var b=x.prefixCls,S=x.rootCls,w=S===void 0?b:S;return y(b,w),null};return g}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}var QC=nj;var Ro=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var M2=E(N());var $2="5.25.4";var A2=$2;function JC(e){return e>=0&&e<=255}function oj(e,t){let{r,g:n,b:o,a:i}=new ht(e).toRgb();if(i<1)return e;let{r:a,g:s,b:l}=new ht(t).toRgb();for(let c=.01;c<=1;c+=.01){let u=Math.round((r-a*(1-c))/c),f=Math.round((n-s*(1-c))/c),d=Math.round((o-l*(1-c))/c);if(JC(u)&&JC(f)&&JC(d))return new ht({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new ht({r,g:n,b:o,a:1}).toRgbString()}var Dl=oj;var ij=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{delete n[d]});let o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){let d="0s";o.motionDurationFast=d,o.motionDurationMid=d,o.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Dl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Dl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Dl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Dl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -289,9 +289,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new gt("rgba(0, 0, 0, 0.09)").toRgbString()} + 0 1px 2px -2px ${new ht("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new ht("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new ht("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), @@ -308,7 +308,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var A2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let n=r.getDerivativeToken(e),{override:o}=t,i=A2(t,["override"]),a=Object.assign(Object.assign({},n),{override:o});return a=Bh(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c}=l,u=A2(l,["theme"]),f=u;c&&(f=M2(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=f}),a};function xr(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=k2.default.useContext(Nd),i=`${$2}-${t||""}`,a=r||Pd,[s,l,c]=gh(a,[Ea,e],{salt:i,override:n,getComputedToken:M2,formatToken:Bh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:QC,ignore:ij,preserve:aj}});return[a,c,t?l:"",s,o]}var ZC=E(N());var _a={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},sr=(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}),Pa=()=>({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"}}),pu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),F2=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"}}}),L2=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},JC=(e,t)=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),z2=(e,t)=>({"&:focus-visible":Object.assign({},JC(e,t))}),jh=e=>({[`.${e}`]:Object.assign(Object.assign({},Pa()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:Gt,genComponentStyleHook:ew,genSubStyleComponent:tw}=XC({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,ZC.useContext)(rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=xr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=(0,ZC.useContext)(rt);return e??{}},getResetStyles:(e,t)=>{var r;let n=F2(e);return[n,{"&":n},jh((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Id)]},getCommonStyle:L2,getCompUnitless:()=>QC});function Vh(e,t){return Ro.reduce((r,n)=>{let o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var sj=(e,t)=>{let[r,n]=xr();return Ts({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[jh(e)])},Hh=sj;var lj=E(N()),cj=Object.assign({},lj),{useId:W2}=cj,uj=()=>"",fj=typeof W2>"u"?uj:W2,B2=fj;function rw(e,t,r){var n,o;let i=Ph("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Td),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:Td.hashed,cssVar:t?.cssVar}):t,l=B2();return Ui(()=>{var c,u;if(!e)return t;let f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});let d=`css-var-${l.replace(/:/g,"")}`,m=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||d});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:f,cssVar:m})},[a,s],(c,u)=>c.some((f,d)=>{let m=u[d];return!ws(f,m,!0)}))}var cv=E(N());var nD=E(Ne());var ao=E(N()),fw=E(N());var Uh=E(N()),dj=["children"],nw=Uh.createContext({});function qh(e){var t=e.children,r=Ve(e,dj);return Uh.createElement(nw.Provider,{value:r},t)}var j2=E(N()),pj=function(e){Dr(r,e);var t=$r(r);function r(){return it(this,r),t.apply(this,arguments)}return at(r,[{key:"render",value:function(){return this.props.children}}]),r}(j2.Component),V2=pj;var Gh=E(N());function ow(e){var t=Gh.useReducer(function(s){return s+1},0),r=M(t,2),n=r[1],o=Gh.useRef(e),i=wt(function(){return o.current}),a=wt(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var rv=E(N()),Na=E(N());var Ki="none",Dd="appear",$d="enter",Ad="leave",iw="none",io="prepare",Ta="start",Ds="active",Kh="end",Xh="prepared";var Y2=E(N()),Q2=E(N());function H2(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}function mj(e,t){var r={animationend:H2("Animation","AnimationEnd"),transitionend:H2("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var gj=mj(Yt(),typeof window<"u"?window:{}),q2={};Yt()&&(U2=document.createElement("div"),q2=U2.style);var U2,Yh={};function G2(e){if(Yh[e])return Yh[e];var t=gj[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=dt(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return ev.useEffect(function(){return function(){t()}},[]),[r,t]};var vj=[io,Ta,Ds,Kh],yj=[io,Xh],cw=!1,tD=!0;function tv(e){return e===Ds||e===Kh}var rD=function(e,t,r){var n=Oa(iw),o=M(n,2),i=o[0],a=o[1],s=Z2(),l=M(s,2),c=l[0],u=l[1];function f(){a(io,!0)}var d=t?yj:vj;return Zh(function(){if(i!==iw&&i!==Kh){var m=d.indexOf(i),h=d[m+1],v=r(i);v===cw?a(h,!0):h&&c(function(y){function g(){y.isCanceled()||a(h,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,i]),eD.useEffect(function(){return function(){u()}},[]),[f,i]};function uw(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,d=n.onAppearPrepare,m=n.onEnterPrepare,h=n.onLeavePrepare,v=n.onAppearStart,y=n.onEnterStart,g=n.onLeaveStart,p=n.onAppearActive,x=n.onEnterActive,b=n.onLeaveActive,S=n.onAppearEnd,w=n.onEnterEnd,C=n.onLeaveEnd,R=n.onVisibleChanged,P=Oa(),O=M(P,2),I=O[0],D=O[1],$=ow(Ki),F=M($,2),k=F[0],z=F[1],B=Oa(null),j=M(B,2),G=j[0],V=j[1],H=k(),K=(0,Na.useRef)(!1),W=(0,Na.useRef)(null);function A(){return r()}var L=(0,Na.useRef)(!1);function q(){z(Ki),V(null,!0)}var ne=wt(function(Ce){var $e=k();if($e!==Ki){var ce=A();if(!(Ce&&!Ce.deadline&&Ce.target!==ce)){var ie=L.current,Re;$e===Dd&&ie?Re=S?.(ce,Ce):$e===$d&&ie?Re=w?.(ce,Ce):$e===Ad&&ie&&(Re=C?.(ce,Ce)),ie&&Re!==!1&&q()}}}),Y=J2(ne),X=M(Y,1),ae=X[0],J=function($e){switch($e){case Dd:return _(_(_({},io,d),Ta,v),Ds,p);case $d:return _(_(_({},io,m),Ta,y),Ds,x);case Ad:return _(_(_({},io,h),Ta,g),Ds,b);default:return{}}},U=rv.useMemo(function(){return J(H)},[H]),Q=rD(H,!e,function(Ce){if(Ce===io){var $e=U[io];return $e?$e(A()):cw}if(re in U){var ce;V(((ce=U[re])===null||ce===void 0?void 0:ce.call(U,A(),null))||null)}return re===Ds&&H!==Ki&&(ae(A()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){ne({deadline:!0})},u))),re===Xh&&q(),tD}),te=M(Q,2),Z=te[0],re=te[1],de=tv(re);L.current=de;var le=(0,Na.useRef)(null);Zh(function(){if(!(K.current&&le.current===t)){D(t);var Ce=K.current;K.current=!0;var $e;!Ce&&t&&s&&($e=Dd),Ce&&t&&i&&($e=$d),(Ce&&!t&&c||!Ce&&f&&!t&&c)&&($e=Ad);var ce=J($e);$e&&(e||ce[io])?(z($e),Z()):z(Ki),le.current=t}},[t]),(0,Na.useEffect)(function(){(H===Dd&&!s||H===$d&&!i||H===Ad&&!c)&&z(Ki)},[s,i,c]),(0,Na.useEffect)(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var pe=rv.useRef(!1);(0,Na.useEffect)(function(){I&&(pe.current=!0),I!==void 0&&H===Ki&&((pe.current||I)&&R?.(I),pe.current=!0)},[I,H]);var Oe=G;return U[io]&&re===Ta&&(Oe=T({transition:"none"},Oe)),[H,re,Oe,I??t]}function xj(e){var t=e;fe(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=ao.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,d=o.motionName,m=o.leavedClassName,h=o.eventProps,v=ao.useContext(nw),y=v.motion,g=r(o,y),p=(0,fw.useRef)(),x=(0,fw.useRef)();function b(){try{return p.current instanceof HTMLElement?p.current:wl(x.current)}catch{return null}}var S=uw(g,s,b,o),w=M(S,4),C=w[0],R=w[1],P=w[2],O=w[3],I=ao.useRef(O);O&&(I.current=!0);var D=ao.useCallback(function(j){p.current=j,hd(i,j)},[i]),$,F=T(T({},h),{},{visible:s});if(!f)$=null;else if(C===Ki)O?$=f(T({},F),D):!c&&I.current&&m?$=f(T(T({},F),{},{className:m}),D):u||!c&&!m?$=f(T(T({},F),{},{style:{display:"none"}}),D):$=null;else{var k;R===io?k="prepare":tv(R)?k="active":R===Ta&&(k="start");var z=lw(d,"".concat(C,"-").concat(k));$=f(T(T({},F),{},{className:(0,nD.default)(lw(d,C),_(_({},z,z&&k),d,typeof d=="string")),style:P}),D)}if(ao.isValidElement($)&&Si($)){var B=xs($);B||($=ao.cloneElement($,{ref:D}))}return ao.createElement(V2,{ref:x},$)});return n.displayName="CSSMotion",n}var nv=xj(Qh);var Il=E(N());var ov="add",iv="keep",av="remove",lv="removed";function bj(e){var t;return e&&fe(e)==="object"&&"key"in e?t=e:t={key:e},T(T({},t),{},{key:String(t.key)})}function sv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(bj)}function oD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=sv(e),a=sv(t);i.forEach(function(c){for(var u=!1,f=n;f1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==av}),r.forEach(function(u){u.key===c&&(u.status=iv)})}),r}var Sj=["component","children","onVisibleChanged","onAllRemoved"],Cj=["status"],wj=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ej(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nv,r=function(n){Dr(i,n);var o=$r(i);function i(){var a;it(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var Oj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}var $j=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(aD=t),r!==void 0&&(Pj=r),"holderRender"in e&&(Nj=o),n&&(Dj(n)?x2(Ij(),n):Tj=n)};var Aj=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:y,parentContext:g,iconPrefixCls:p,theme:x,componentDisabled:b,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:I,typography:D,checkbox:$,descriptions:F,divider:k,drawer:z,skeleton:B,steps:j,image:G,layout:V,list:H,mentions:K,modal:W,progress:A,result:L,slider:q,breadcrumb:ne,menu:Y,pagination:X,input:ae,textArea:J,empty:U,badge:Q,radio:te,rate:Z,switch:re,transfer:de,avatar:le,message:pe,tag:Oe,table:Ce,card:$e,tabs:ce,timeline:ie,timePicker:Re,upload:Le,notification:Ge,tree:Me,colorPicker:Ie,datePicker:je,rangePicker:We,flex:He,wave:ye,dropdown:se,warning:xe,tour:_e,tooltip:he,popover:Ze,popconfirm:lt,floatButtonGroup:Rt,variant:Tt,inputNumber:pt,treeSelect:Ae}=e,we=lr.useCallback((ze,tt)=>{let{prefixCls:kt}=e;if(tt)return tt;let Nt=kt||g.getPrefixCls("");return ze?`${Nt}-${ze}`:Nt},[g.getPrefixCls,e.prefixCls]),et=p||g.iconPrefixCls||Id,Pe=r||g.csp;Hh(et,Pe);let De=rw(x,g.theme,{prefixCls:we("")}),Ee={csp:Pe,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||y,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:h??m,popupOverflow:v,getPrefixCls:we,iconPrefixCls:et,theme:De,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:I,typography:D,checkbox:$,descriptions:F,divider:k,drawer:z,skeleton:B,steps:j,image:G,input:ae,textArea:J,layout:V,list:H,mentions:K,modal:W,progress:A,result:L,slider:q,breadcrumb:ne,menu:Y,pagination:X,empty:U,badge:Q,radio:te,rate:Z,switch:re,transfer:de,avatar:le,message:pe,tag:Oe,table:Ce,card:$e,tabs:ce,timeline:ie,timePicker:Re,upload:Le,notification:Ge,tree:Me,colorPicker:Ie,datePicker:je,rangePicker:We,flex:He,wave:ye,dropdown:se,warning:xe,tour:_e,tooltip:he,popover:Ze,popconfirm:lt,floatButtonGroup:Rt,variant:Tt,inputNumber:pt,treeSelect:Ae},be=Object.assign({},g);Object.keys(Ee).forEach(ze=>{Ee[ze]!==void 0&&(be[ze]=Ee[ze])}),_j.forEach(ze=>{let tt=e[ze];tt&&(be[ze]=tt)}),typeof n<"u"&&(be.button=Object.assign({autoInsertSpace:n},be.button));let ht=Ui(()=>be,be,(ze,tt)=>{let kt=Object.keys(ze),Nt=Object.keys(tt);return kt.length!==Nt.length||kt.some(tr=>ze[tr]!==tt[tr])}),{layer:Mt}=lr.useContext(Ei),Fe=lr.useMemo(()=>({prefixCls:et,csp:Pe,layer:Mt?"antd":void 0}),[et,Pe,Mt]),Se=lr.createElement(lr.Fragment,null,lr.createElement(iD,{dropdownMatchSelectWidth:m}),t),Ke=lr.useMemo(()=>{var ze,tt,kt,Nt;return Ca(((ze=Ri.Form)===null||ze===void 0?void 0:ze.defaultValidateMessages)||{},((kt=(tt=ht.locale)===null||tt===void 0?void 0:tt.Form)===null||kt===void 0?void 0:kt.defaultValidateMessages)||{},((Nt=ht.form)===null||Nt===void 0?void 0:Nt.validateMessages)||{},a?.validateMessages||{})},[ht,a?.validateMessages]);Object.keys(Ke).length>0&&(Se=lr.createElement(MI.Provider,{value:Ke},Se)),s&&(Se=lr.createElement(UI,{locale:s,_ANT_MARK__:HI},Se)),(et||Pe)&&(Se=lr.createElement(iu.Provider,{value:Fe},Se)),l&&(Se=lr.createElement(S2,{size:l},Se)),Se=lr.createElement(pw,null,Se);let Be=lr.useMemo(()=>{let ze=De||{},{algorithm:tt,token:kt,components:Nt,cssVar:tr}=ze,Ft=Oj(ze,["algorithm","token","components","cssVar"]),rr=tt&&(!Array.isArray(tt)||tt.length>0)?Es(tt):Pd,pr={};Object.entries(Nt||{}).forEach(([Mn,gr])=>{let Lt=Object.assign({},gr);"algorithm"in Lt&&(Lt.algorithm===!0?Lt.theme=rr:(Array.isArray(Lt.algorithm)||typeof Lt.algorithm=="function")&&(Lt.theme=Es(Lt.algorithm)),delete Lt.algorithm),pr[Mn]=Lt});let mr=Object.assign(Object.assign({},Ea),kt);return Object.assign(Object.assign({},Ft),{theme:rr,token:mr,components:pr,override:Object.assign({override:mr},pr),cssVar:tr})},[De]);return x&&(Se=lr.createElement(Nd.Provider,{value:Be},Se)),ht.warning&&(Se=lr.createElement(AI.Provider,{value:ht.warning},Se)),b!==void 0&&(Se=lr.createElement(b2,{disabled:b},Se)),lr.createElement(rt.Provider,{value:ht},Se)},mu=e=>{let t=lr.useContext(rt),r=lr.useContext(au);return lr.createElement(Aj,Object.assign({parentContext:t,legacyLocale:r},e))};mu.ConfigContext=rt;mu.SizeContext=Tl;mu.config=$j;mu.useConfig=C2;Object.defineProperty(mu,"SizeContext",{get:()=>Tl});var Ia=mu;var mv=E(N());var kj={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"},sD=kj;var Al=E(N()),mD=E(Ne());var dD=E(N());function lD(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Mj(e){return lD(e)instanceof ShadowRoot}function Dl(e){return Mj(e)?lD(e):null}var $l=E(N());function Fj(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function uD(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}function mw(e){return fe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(fe(e.icon)==="object"||typeof e.icon=="function")}function cD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Fj(r)]=n}return t},{})}function uv(e,t,r){return r?$l.default.createElement(e.tag,T(T({key:t},cD(e.attrs)),r),(e.children||[]).map(function(n,o){return uv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):$l.default.createElement(e.tag,T({key:t},cD(e.attrs)),(e.children||[]).map(function(n,o){return uv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function gw(e){return Oi(e)[0]}function fv(e){return e?Array.isArray(e)?e:[e]:[]}var Lj=` + `,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 k2=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let n=r.getDerivativeToken(e),{override:o}=t,i=k2(t,["override"]),a=Object.assign(Object.assign({},n),{override:o});return a=Vh(a),i&&Object.entries(i).forEach(([s,l])=>{let{theme:c}=l,u=k2(l,["theme"]),f=u;c&&(f=F2(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=f}),a};function vr(){let{token:e,hashed:t,theme:r,override:n,cssVar:o}=M2.default.useContext(Id),i=`${A2}-${t||""}`,a=r||Td,[s,l,c]=vh(a,[Ra,e],{salt:i,override:n,getComputedToken:F2,formatToken:Vh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:ZC,ignore:aj,preserve:sj}});return[a,c,t?l:"",s,o]}var tw=E(N());var Pa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},lr=(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}),Ta=()=>({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"}}),pu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),L2=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"}}}),z2=(e,t,r,n)=>{let o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},ew=(e,t)=>({outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),W2=(e,t)=>({"&:focus-visible":Object.assign({},ew(e,t))}),Hh=e=>({[`.${e}`]:Object.assign(Object.assign({},Ta()),{[`.${e} .${e}-icon`]:{display:"block"}})});var{genStyleHooks:Gt,genComponentStyleHook:rw,genSubStyleComponent:nw}=QC({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,tw.useContext)(ot);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,r,n,o]=vr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{let{csp:e}=(0,tw.useContext)(ot);return e??{}},getResetStyles:(e,t)=>{var r;let n=L2(e);return[n,{"&":n},Hh((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Dd)]},getCommonStyle:z2,getCompUnitless:()=>ZC});function Uh(e,t){return Ro.reduce((r,n)=>{let o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var lj=(e,t)=>{let[r,n]=vr();return Ts({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[Hh(e)])},qh=lj;var cj=E(N()),uj=Object.assign({},cj),{useId:B2}=uj,fj=()=>"",dj=typeof B2>"u"?fj:B2,j2=dj;function ow(e,t,r){var n,o;let i=Nh("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Nd),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:Nd.hashed,cssVar:t?.cssVar}):t,l=j2();return qi(()=>{var c,u;if(!e)return t;let f=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});let d=`css-var-${l.replace(/:/g,"")}`,m=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||d});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:f,cssVar:m})},[a,s],(c,u)=>c.some((f,d)=>{let m=u[d];return!ws(f,m,!0)}))}var fv=E(N());var oD=E(Ne());var ao=E(N()),pw=E(N());var Gh=E(N()),pj=["children"],iw=Gh.createContext({});function Kh(e){var t=e.children,r=He(e,pj);return Gh.createElement(iw.Provider,{value:r},t)}var V2=E(N()),mj=function(e){$r(r,e);var t=Ar(r);function r(){return at(this,r),t.apply(this,arguments)}return st(r,[{key:"render",value:function(){return this.props.children}}]),r}(V2.Component),H2=mj;var Xh=E(N());function aw(e){var t=Xh.useReducer(function(s){return s+1},0),r=F(t,2),n=r[1],o=Xh.useRef(e),i=wt(function(){return o.current}),a=wt(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var ov=E(N()),Ia=E(N());var Xi="none",$d="appear",Ad="enter",kd="leave",sw="none",io="prepare",Na="start",Ds="active",Yh="end",Qh="prepared";var Q2=E(N()),J2=E(N());function U2(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}function gj(e,t){var r={animationend:U2("Animation","AnimationEnd"),transitionend:U2("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var hj=gj(Yt(),typeof window<"u"?window:{}),G2={};Yt()&&(q2=document.createElement("div"),G2=q2.style);var q2,Jh={};function K2(e){if(Jh[e])return Jh[e];var t=hj[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=dt(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return rv.useEffect(function(){return function(){t()}},[]),[r,t]};var yj=[io,Na,Ds,Yh],xj=[io,Qh],fw=!1,rD=!0;function nv(e){return e===Ds||e===Yh}var nD=function(e,t,r){var n=_a(sw),o=F(n,2),i=o[0],a=o[1],s=eD(),l=F(s,2),c=l[0],u=l[1];function f(){a(io,!0)}var d=t?xj:yj;return tv(function(){if(i!==sw&&i!==Yh){var m=d.indexOf(i),h=d[m+1],v=r(i);v===fw?a(h,!0):h&&c(function(y){function g(){y.isCanceled()||a(h,!0)}v===!0?g():Promise.resolve(v).then(g)})}},[e,i]),tD.useEffect(function(){return function(){u()}},[]),[f,i]};function dw(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,d=n.onAppearPrepare,m=n.onEnterPrepare,h=n.onLeavePrepare,v=n.onAppearStart,y=n.onEnterStart,g=n.onLeaveStart,p=n.onAppearActive,x=n.onEnterActive,b=n.onLeaveActive,S=n.onAppearEnd,w=n.onEnterEnd,C=n.onLeaveEnd,R=n.onVisibleChanged,P=_a(),O=F(P,2),I=O[0],D=O[1],$=aw(Xi),L=F($,2),A=L[0],M=L[1],W=_a(null),B=F(W,2),K=B[0],G=B[1],V=A(),H=(0,Ia.useRef)(!1),j=(0,Ia.useRef)(null);function k(){return r()}var z=(0,Ia.useRef)(!1);function U(){M(Xi),G(null,!0)}var oe=wt(function(we){var _e=A();if(_e!==Xi){var ve=k();if(!(we&&!we.deadline&&we.target!==ve)){var Y=z.current,Ee;_e===$d&&Y?Ee=S?.(ve,we):_e===Ad&&Y?Ee=w?.(ve,we):_e===kd&&Y&&(Ee=C?.(ve,we)),Y&&Ee!==!1&&U()}}}),Q=Z2(oe),X=F(Q,1),se=X[0],Z=function(_e){switch(_e){case $d:return _(_(_({},io,d),Na,v),Ds,p);case Ad:return _(_(_({},io,m),Na,y),Ds,x);case kd:return _(_(_({},io,h),Na,g),Ds,b);default:return{}}},q=ov.useMemo(function(){return Z(V)},[V]),J=nD(V,!e,function(we){if(we===io){var _e=q[io];return _e?_e(k()):fw}if(te in q){var ve;G(((ve=q[te])===null||ve===void 0?void 0:ve.call(q,k(),null))||null)}return te===Ds&&V!==Xi&&(se(k()),u>0&&(clearTimeout(j.current),j.current=setTimeout(function(){oe({deadline:!0})},u))),te===Qh&&U(),rD}),re=F(J,2),ee=re[0],te=re[1],de=nv(te);z.current=de;var fe=(0,Ia.useRef)(null);tv(function(){if(!(H.current&&fe.current===t)){D(t);var we=H.current;H.current=!0;var _e;!we&&t&&s&&(_e=$d),we&&t&&i&&(_e=Ad),(we&&!t&&c||!we&&f&&!t&&c)&&(_e=kd);var ve=Z(_e);_e&&(e||ve[io])?(M(_e),ee()):M(Xi),fe.current=t}},[t]),(0,Ia.useEffect)(function(){(V===$d&&!s||V===Ad&&!i||V===kd&&!c)&&M(Xi)},[s,i,c]),(0,Ia.useEffect)(function(){return function(){H.current=!1,clearTimeout(j.current)}},[]);var ue=ov.useRef(!1);(0,Ia.useEffect)(function(){I&&(ue.current=!0),I!==void 0&&V===Xi&&((ue.current||I)&&R?.(I),ue.current=!0)},[I,V]);var Ce=K;return q[io]&&te===Na&&(Ce=T({transition:"none"},Ce)),[V,te,Ce,I??t]}function bj(e){var t=e;ce(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=ao.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,d=o.motionName,m=o.leavedClassName,h=o.eventProps,v=ao.useContext(iw),y=v.motion,g=r(o,y),p=(0,pw.useRef)(),x=(0,pw.useRef)();function b(){try{return p.current instanceof HTMLElement?p.current:Rl(x.current)}catch{return null}}var S=dw(g,s,b,o),w=F(S,4),C=w[0],R=w[1],P=w[2],O=w[3],I=ao.useRef(O);O&&(I.current=!0);var D=ao.useCallback(function(B){p.current=B,vd(i,B)},[i]),$,L=T(T({},h),{},{visible:s});if(!f)$=null;else if(C===Xi)O?$=f(T({},L),D):!c&&I.current&&m?$=f(T(T({},L),{},{className:m}),D):u||!c&&!m?$=f(T(T({},L),{},{style:{display:"none"}}),D):$=null;else{var A;R===io?A="prepare":nv(R)?A="active":R===Na&&(A="start");var M=uw(d,"".concat(C,"-").concat(A));$=f(T(T({},L),{},{className:(0,oD.default)(uw(d,C),_(_({},M,M&&A),d,typeof d=="string")),style:P}),D)}if(ao.isValidElement($)&&bi($)){var W=xs($);W||($=ao.cloneElement($,{ref:D}))}return ao.createElement(H2,{ref:x},$)});return n.displayName="CSSMotion",n}var iv=bj(Zh);var $l=E(N());var av="add",sv="keep",lv="remove",uv="removed";function Sj(e){var t;return e&&ce(e)==="object"&&"key"in e?t=e:t={key:e},T(T({},t),{},{key:String(t.key)})}function cv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Sj)}function iD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=cv(e),a=cv(t);i.forEach(function(c){for(var u=!1,f=n;f1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==lv}),r.forEach(function(u){u.key===c&&(u.status=sv)})}),r}var Cj=["component","children","onVisibleChanged","onAllRemoved"],wj=["status"],Ej=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Rj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:iv,r=function(n){$r(i,n);var o=Ar(i);function i(){var a;at(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var _j=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}var Aj=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(sD=t),r!==void 0&&(Tj=r),"holderRender"in e&&(Ij=o),n&&($j(n)?b2(Dj(),n):Nj=n)};var kj=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:y,parentContext:g,iconPrefixCls:p,theme:x,componentDisabled:b,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:I,typography:D,checkbox:$,descriptions:L,divider:A,drawer:M,skeleton:W,steps:B,image:K,layout:G,list:V,mentions:H,modal:j,progress:k,result:z,slider:U,breadcrumb:oe,menu:Q,pagination:X,input:se,textArea:Z,empty:q,badge:J,radio:re,rate:ee,switch:te,transfer:de,avatar:fe,message:ue,tag:Ce,table:we,card:_e,tabs:ve,timeline:Y,timePicker:Ee,upload:$e,notification:et,tree:ke,colorPicker:Se,datePicker:Be,rangePicker:Fe,flex:Ue,wave:Re,dropdown:ae,warning:ge,tour:Te,tooltip:he,popover:Ze,popconfirm:ct,floatButtonGroup:_t,variant:Pt,inputNumber:mt,treeSelect:je}=e,Pe=cr.useCallback((ze,tt)=>{let{prefixCls:kt}=e;if(tt)return tt;let Dt=kt||g.getPrefixCls("");return ze?`${Dt}-${ze}`:Dt},[g.getPrefixCls,e.prefixCls]),qe=p||g.iconPrefixCls||Dd,Oe=r||g.csp;qh(qe,Oe);let Me=ow(x,g.theme,{prefixCls:Pe("")}),Ve={csp:Oe,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||y,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:h??m,popupOverflow:v,getPrefixCls:Pe,iconPrefixCls:qe,theme:Me,segmented:S,statistic:w,spin:C,calendar:R,carousel:P,cascader:O,collapse:I,typography:D,checkbox:$,descriptions:L,divider:A,drawer:M,skeleton:W,steps:B,image:K,input:se,textArea:Z,layout:G,list:V,mentions:H,modal:j,progress:k,result:z,slider:U,breadcrumb:oe,menu:Q,pagination:X,empty:q,badge:J,radio:re,rate:ee,switch:te,transfer:de,avatar:fe,message:ue,tag:Ce,table:we,card:_e,tabs:ve,timeline:Y,timePicker:Ee,upload:$e,notification:et,tree:ke,colorPicker:Se,datePicker:Be,rangePicker:Fe,flex:Ue,wave:Re,dropdown:ae,warning:ge,tour:Te,tooltip:he,popover:Ze,popconfirm:ct,floatButtonGroup:_t,variant:Pt,inputNumber:mt,treeSelect:je},xe=Object.assign({},g);Object.keys(Ve).forEach(ze=>{Ve[ze]!==void 0&&(xe[ze]=Ve[ze])}),Pj.forEach(ze=>{let tt=e[ze];tt&&(xe[ze]=tt)}),typeof n<"u"&&(xe.button=Object.assign({autoInsertSpace:n},xe.button));let nt=qi(()=>xe,xe,(ze,tt)=>{let kt=Object.keys(ze),Dt=Object.keys(tt);return kt.length!==Dt.length||kt.some(rr=>ze[rr]!==tt[rr])}),{layer:Tt}=cr.useContext(wi),Ie=cr.useMemo(()=>({prefixCls:qe,csp:Oe,layer:Tt?"antd":void 0}),[qe,Oe,Tt]),be=cr.createElement(cr.Fragment,null,cr.createElement(aD,{dropdownMatchSelectWidth:m}),t),Ke=cr.useMemo(()=>{var ze,tt,kt,Dt;return wa(((ze=Ei.Form)===null||ze===void 0?void 0:ze.defaultValidateMessages)||{},((kt=(tt=nt.locale)===null||tt===void 0?void 0:tt.Form)===null||kt===void 0?void 0:kt.defaultValidateMessages)||{},((Dt=nt.form)===null||Dt===void 0?void 0:Dt.validateMessages)||{},a?.validateMessages||{})},[nt,a?.validateMessages]);Object.keys(Ke).length>0&&(be=cr.createElement(FI.Provider,{value:Ke},be)),s&&(be=cr.createElement(qI,{locale:s,_ANT_MARK__:UI},be)),(qe||Oe)&&(be=cr.createElement(iu.Provider,{value:Ie},be)),l&&(be=cr.createElement(C2,{size:l},be)),be=cr.createElement(gw,null,be);let Le=cr.useMemo(()=>{let ze=Me||{},{algorithm:tt,token:kt,components:Dt,cssVar:rr}=ze,Ft=_j(ze,["algorithm","token","components","cssVar"]),Tr=tt&&(!Array.isArray(tt)||tt.length>0)?Es(tt):Td,nr={};Object.entries(Dt||{}).forEach(([wn,Qt])=>{let Lt=Object.assign({},Qt);"algorithm"in Lt&&(Lt.algorithm===!0?Lt.theme=Tr:(Array.isArray(Lt.algorithm)||typeof Lt.algorithm=="function")&&(Lt.theme=Es(Lt.algorithm)),delete Lt.algorithm),nr[wn]=Lt});let xr=Object.assign(Object.assign({},Ra),kt);return Object.assign(Object.assign({},Ft),{theme:Tr,token:xr,components:nr,override:Object.assign({override:xr},nr),cssVar:rr})},[Me]);return x&&(be=cr.createElement(Id.Provider,{value:Le},be)),nt.warning&&(be=cr.createElement(kI.Provider,{value:nt.warning},be)),b!==void 0&&(be=cr.createElement(S2,{disabled:b},be)),cr.createElement(ot.Provider,{value:nt},be)},mu=e=>{let t=cr.useContext(ot),r=cr.useContext(au);return cr.createElement(kj,Object.assign({parentContext:t,legacyLocale:r},e))};mu.ConfigContext=ot;mu.SizeContext=Il;mu.config=Aj;mu.useConfig=w2;Object.defineProperty(mu,"SizeContext",{get:()=>Il});var Da=mu;var hv=E(N());var Mj={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"},lD=Mj;var Ml=E(N()),gD=E(Ne());var pD=E(N());function cD(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Fj(e){return cD(e)instanceof ShadowRoot}function Al(e){return Fj(e)?cD(e):null}var kl=E(N());function Lj(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function fD(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}function hw(e){return ce(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ce(e.icon)==="object"||typeof e.icon=="function")}function uD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Lj(r)]=n}return t},{})}function dv(e,t,r){return r?kl.default.createElement(e.tag,T(T({key:t},uD(e.attrs)),r),(e.children||[]).map(function(n,o){return dv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):kl.default.createElement(e.tag,T({key:t},uD(e.attrs)),(e.children||[]).map(function(n,o){return dv(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function vw(e){return Ri(e)[0]}function pv(e){return e?Array.isArray(e)?e:[e]:[]}var zj=` .anticon { display: inline-flex; align-items: center; @@ -363,9 +363,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,fD=function(t){var r=(0,$l.useContext)(iu),n=r.csp,o=r.prefixCls,i=r.layer,a=Lj;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { +`,dD=function(t){var r=(0,kl.useContext)(iu),n=r.csp,o=r.prefixCls,i=r.layer,a=zj;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { `).concat(a,` -}`)),(0,$l.useEffect)(function(){var s=t.current,l=Dl(s);xn(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])};var zj=["icon","className","onClick","style","primaryColor","secondaryColor"],kd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Wj(e){var t=e.primaryColor,r=e.secondaryColor;kd.primaryColor=t,kd.secondaryColor=r||gw(t),kd.calculated=!!r}function Bj(){return T({},kd)}var dv=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Ve(t,zj),c=dD.useRef(),u=kd;if(a&&(u={primaryColor:a,secondaryColor:s||gw(a)}),fD(c),uD(mw(r),"icon should be icon definiton, but got ".concat(r)),!mw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=T(T({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),uv(f.icon,"svg-".concat(f.name),T(T({className:n,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};dv.displayName="IconReact";dv.getTwoToneColors=Bj;dv.setTwoToneColors=Wj;var Md=dv;function hw(e){var t=fv(e),r=M(t,2),n=r[0],o=r[1];return Md.setTwoToneColors({primaryColor:n,secondaryColor:o})}function pD(){var e=Md.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var jj=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];hw(Ns.primary);var pv=Al.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Ve(e,jj),u=Al.useContext(iu),f=u.prefixCls,d=f===void 0?"anticon":f,m=u.rootClassName,h=(0,mD.default)(m,d,_(_({},"".concat(d,"-").concat(n.name),!!n.name),"".concat(d,"-spin"),!!o||n.name==="loading"),r),v=a;v===void 0&&s&&(v=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,g=fv(l),p=M(g,2),x=p[0],b=p[1];return Al.createElement("span",ue({role:"img","aria-label":n.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),Al.createElement(Md,{icon:n,primaryColor:x,secondaryColor:b,style:y}))});pv.displayName="AntdIcon";pv.getTwoToneColor=pD;pv.setTwoToneColor=hw;var zt=pv;var Vj=function(t,r){return mv.createElement(zt,ue({},t,{ref:r,icon:sD}))},Hj=mv.forwardRef(Vj),gD=Hj;var gv=E(N());var Uj={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"},hD=Uj;var qj=function(t,r){return gv.createElement(zt,ue({},t,{ref:r,icon:hD}))},Gj=gv.forwardRef(qj),gu=Gj;var vv=E(N());var Kj={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"},hv=Kj;var Xj=function(t,r){return vv.createElement(zt,ue({},t,{ref:r,icon:hv}))},Yj=vv.forwardRef(Xj),yv=Yj;var Qj=`accept acceptCharset accessKey action allowFullScreen allowTransparency +}`)),(0,kl.useEffect)(function(){var s=t.current,l=Al(s);yn(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])};var Wj=["icon","className","onClick","style","primaryColor","secondaryColor"],Md={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Bj(e){var t=e.primaryColor,r=e.secondaryColor;Md.primaryColor=t,Md.secondaryColor=r||vw(t),Md.calculated=!!r}function jj(){return T({},Md)}var mv=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=He(t,Wj),c=pD.useRef(),u=Md;if(a&&(u={primaryColor:a,secondaryColor:s||vw(a)}),dD(c),fD(hw(r),"icon should be icon definiton, but got ".concat(r)),!hw(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=T(T({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),dv(f.icon,"svg-".concat(f.name),T(T({className:n,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};mv.displayName="IconReact";mv.getTwoToneColors=jj;mv.setTwoToneColors=Bj;var Fd=mv;function yw(e){var t=pv(e),r=F(t,2),n=r[0],o=r[1];return Fd.setTwoToneColors({primaryColor:n,secondaryColor:o})}function mD(){var e=Fd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Vj=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];yw(Ns.primary);var gv=Ml.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=He(e,Vj),u=Ml.useContext(iu),f=u.prefixCls,d=f===void 0?"anticon":f,m=u.rootClassName,h=(0,gD.default)(m,d,_(_({},"".concat(d,"-").concat(n.name),!!n.name),"".concat(d,"-spin"),!!o||n.name==="loading"),r),v=a;v===void 0&&s&&(v=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,g=pv(l),p=F(g,2),x=p[0],b=p[1];return Ml.createElement("span",le({role:"img","aria-label":n.name},c,{ref:t,tabIndex:v,onClick:s,className:h}),Ml.createElement(Fd,{icon:n,primaryColor:x,secondaryColor:b,style:y}))});gv.displayName="AntdIcon";gv.getTwoToneColor=mD;gv.setTwoToneColor=yw;var zt=gv;var Hj=function(t,r){return hv.createElement(zt,le({},t,{ref:r,icon:lD}))},Uj=hv.forwardRef(Hj),hD=Uj;var vv=E(N());var qj={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"},vD=qj;var Gj=function(t,r){return vv.createElement(zt,le({},t,{ref:r,icon:vD}))},Kj=vv.forwardRef(Gj),gu=Kj;var xv=E(N());var Xj={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"},yv=Xj;var Yj=function(t,r){return xv.createElement(zt,le({},t,{ref:r,icon:yv}))},Qj=xv.forwardRef(Yj),bv=Qj;var Jj=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -376,69 +376,69 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,Jj=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,Zj=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Zj="".concat(Qj," ").concat(Jj).split(/[\s\n]+/),e8="aria-",t8="data-";function vD(e,t){return e.indexOf(t)===0}function Go(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=T({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||vD(o,e8))||r.data&&vD(o,t8)||r.attr&&Zj.includes(o))&&(n[o]=e[o])}),n}var Fd=E(N());function xv(e){return e&&Fd.default.isValidElement(e)&&e.type===Fd.default.Fragment}var r8=(e,t,r)=>Fd.default.isValidElement(e)?Fd.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Ko(e,t){return r8(e,e,t)}var n8=e=>{let[,,,,t]=xr();return t?`${e}-css-var`:""},Xo=n8;var st={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(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=st.F1&&r<=st.F12)return!1;switch(r){case st.ALT:case st.CAPS_LOCK:case st.CONTEXT_MENU:case st.CTRL:case st.DOWN:case st.END:case st.ESC:case st.HOME:case st.INSERT:case st.LEFT:case st.MAC_FF_META:case st.META:case st.NUMLOCK:case st.NUM_CENTER:case st.PAGE_DOWN:case st.PAGE_UP:case st.PAUSE:case st.PRINT_SCREEN:case st.RIGHT:case st.SHIFT:case st.UP:case st.WIN_KEY:case st.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=st.ZERO&&t<=st.NINE||t>=st.NUM_ZERO&&t<=st.NUM_MULTIPLY||t>=st.A&&t<=st.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case st.SPACE:case st.QUESTION_MARK:case st.NUM_PLUS:case st.NUM_MINUS:case st.NUM_PERIOD:case st.NUM_DIVISION:case st.SEMICOLON:case st.DASH:case st.EQUALS:case st.COMMA:case st.PERIOD:case st.SLASH:case st.APOSTROPHE:case st.SINGLE_QUOTE:case st.OPEN_SQUARE_BRACKET:case st.BACKSLASH:case st.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Qe=st;var bv=E(N());var o8={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"},yD=o8;var i8=function(t,r){return bv.createElement(zt,ue({},t,{ref:r,icon:yD}))},a8=bv.forwardRef(i8),kl=a8;var bD=E(N());var xD=E(N()),s8=xD.default.createContext(void 0),Sv=s8;var Da=100,l8=10,c8=Da*l8,gfe=c8+Da,SD={Modal:Da,Drawer:Da,Popover:Da,Popconfirm:Da,Tooltip:Da,Tour:Da,FloatButton:Da},u8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function f8(e){return e in SD}var Cv=(e,t)=>{let[,r]=xr(),n=bD.default.useContext(Sv),o=f8(e),i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+SD[e]:a+=u8[e],i=[n===void 0?t:a,a]}return i};var x8=E(N()),qfe=E(Hi());function wv(e,t){this.v=e,this.k=t}function un(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}un=function(a,s,l,c){if(s)o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l;else{var u=function(d,m){un(a,d,function(h){return this._invoke(d,m,h)})};u("next",0),u("throw",1),u("return",2)}},un(e,t,r,n)}function Ld(){var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(m,h,v,y){var g=h&&h.prototype instanceof s?h:s,p=Object.create(g.prototype);return un(p,"_invoke",function(x,b,S){var w,C,R,P=0,O=S||[],I=!1,D={p:0,n:0,v:e,a:$,f:$.bind(e,4),d:function(k,z){return w=k,C=0,R=e,D.n=z,a}};function $(F,k){for(C=F,R=k,t=0;!I&&P&&!z&&t3?(z=G===k)&&(R=B[(C=B[4])?5:(C=3,3)],B[4]=B[5]=e):B[0]<=j&&((z=F<2&&jk||k>G)&&(B[4]=F,B[5]=k,D.n=G,C=0))}if(z||F>1)return a;throw I=!0,k}return function(F,k,z){if(P>1)throw TypeError("Generator is already running");for(I&&k===1&&$(k,z),C=k,R=z;(t=C<2?e:R)||!I;){w||(C?C<3?(C>1&&(D.n=-1),$(C,R)):D.n=R:D.v=R);try{if(P=2,w){if(C||(F="next"),t=w[F]){if(!(t=t.call(w,R)))throw TypeError("iterator result is not an object");if(!t.done)return t;R=t.value,C<2&&(C=0)}else C===1&&(t=w.return)&&t.call(w),C<2&&(R=TypeError("The iterator does not provide a '"+F+"' method"),C=1);w=e}else if((t=(I=D.n<0)?R:x.call(b,D))!==a)break}catch(B){w=e,C=1,R=B}finally{P=1}}return{value:t,done:I}}}(m,v,y),!0),p}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(un(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function d(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,c):(m.__proto__=c,un(m,o,"GeneratorFunction")),m.prototype=Object.create(f),m}return l.prototype=c,un(f,"constructor",c),un(c,"constructor",l),l.displayName="GeneratorFunction",un(c,o,"GeneratorFunction"),un(f),un(f,o,"Generator"),un(f,n,function(){return this}),un(f,"toString",function(){return"[object Generator]"}),(Ld=function(){return{w:i,m:d}})()}function hu(e,t){function r(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof wv?t.resolve(c.v).then(function(u){r("next",u,a,s)},function(u){r("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return r("throw",u,a,s)})}catch(u){s(u)}}var n;this.next||(un(hu.prototype),un(hu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),un(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){r(o,a,l,c)})}return n=n?n.then(s,s):s()},!0)}function Ev(e,t,r,n,o){return new hu(Ld().w(e,t,r,n),o||Promise)}function CD(e,t,r,n,o){var i=Ev(e,t,r,n,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function wD(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function vw(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(fe(e)+" is not iterable")}function Et(){"use strict";var e=Ld(),t=e.m(Et),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,d){return l(c.a,o[f],d)},delegateYield:function(f,d,m){return s.resultName=d,l(c.d,vw(f),m)},finish:function(f){return l(c.f,f)}},l=function(f,d,m){c.p=s.prev,c.n=s.next;try{return f(d,m)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Et=function(){return{wrap:function(l,c,u,f){return e.w(i(l),c,u,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new wv(l,c)},AsyncIterator:hu,async:function(l,c,u,f,d){return(n(c)?Ev:CD)(i(l),c,u,f,d)},keys:wD,values:vw}})()}function ED(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Gr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){ED(i,n,o,a,s,"next",l)}function s(l){ED(i,n,o,a,s,"throw",l)}a(void 0)})}}var d8=E(Hi()),zd=T({},d8),p8=zd.version,yw=zd.render,m8=zd.unmountComponentAtNode,Ov;try{RD=Number((p8||"").split(".")[0]),RD>=18&&(Ov=zd.createRoot)}catch{}var RD;function OD(e){var t=zd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&fe(t)==="object"&&(t.usingClientEntryPoint=e)}var Rv="__rc_react_root__";function g8(e,t){OD(!0);var r=t[Rv]||Ov(t);OD(!1),r.render(e),t[Rv]=r}function h8(e,t){yw?.(e,t)}function _D(e,t){if(Ov){g8(e,t);return}h8(e,t)}function v8(e){return xw.apply(this,arguments)}function xw(){return xw=Gr(Et().mark(function e(t){return Et().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Rv])===null||o===void 0||o.unmount(),delete t[Rv]}));case 1:case"end":return n.stop()}},e)})),xw.apply(this,arguments)}function y8(e){m8(e)}function PD(e){return bw.apply(this,arguments)}function bw(){return bw=Gr(Et().mark(function e(t){return Et().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Ov===void 0){n.next=2;break}return n.abrupt("return",v8(t));case 2:y8(t);case 3:case"end":return n.stop()}},e)})),bw.apply(this,arguments)}var b8=(e,t)=>(_D(e,t),()=>PD(t)),TD=b8;function ND(e){return e&&(TD=e),TD}var Sw=()=>({height:0,opacity:0}),ID=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},S8=e=>({height:e?e.offsetHeight:0}),Cw=(e,t)=>t?.deadline===!0||t.propertyName==="height",C8=(e=Is)=>({motionName:`${e}-motion-collapse`,onAppearStart:Sw,onEnterStart:Sw,onAppearActive:ID,onEnterActive:ID,onLeaveStart:S8,onLeaveActive:Sw,onAppearEnd:Cw,onEnterEnd:Cw,onLeaveEnd:Cw,motionDeadline:500});var _v=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var DD=C8;var Wt=E(N()),Kv=E(Ne());function Kr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Ml=E(N()),LD=E(Ne());var Pv=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 o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};var w8=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}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},$D=ew("Wave",e=>[w8(e)]);var Tv=E(N());var vu=`${Is}-wave-target`;var fn=E(N()),kD=E(Ne());function ww(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function AD(e){let{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return ww(t)?t:ww(r)?r:ww(n)?n:null}function Ew(e){return Number.isNaN(e)?0:e}var E8=e=>{let{className:t,target:r,component:n,registerUnmount:o}=e,i=fn.useRef(null),a=fn.useRef(null);fn.useEffect(()=>{a.current=o()},[]);let[s,l]=fn.useState(null),[c,u]=fn.useState([]),[f,d]=fn.useState(0),[m,h]=fn.useState(0),[v,y]=fn.useState(0),[g,p]=fn.useState(0),[x,b]=fn.useState(!1),S={left:f,top:m,width:v,height:g,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(S["--wave-color"]=s);function w(){let R=getComputedStyle(r);l(AD(r));let P=R.position==="static",{borderLeftWidth:O,borderTopWidth:I}=R;d(P?r.offsetLeft:Ew(-parseFloat(O))),h(P?r.offsetTop:Ew(-parseFloat(I))),y(r.offsetWidth),p(r.offsetHeight);let{borderTopLeftRadius:D,borderTopRightRadius:$,borderBottomLeftRadius:F,borderBottomRightRadius:k}=R;u([D,$,k,F].map(z=>Ew(parseFloat(z))))}if(fn.useEffect(()=>{if(r){let R=dt(()=>{w(),b(!0)}),P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(w),P.observe(r)),()=>{dt.cancel(R),P?.disconnect()}}},[]),!x)return null;let C=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(vu);return fn.createElement(qo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,P)=>{var O,I;if(P.deadline||P.propertyName==="opacity"){let D=(O=i.current)===null||O===void 0?void 0:O.parentElement;(I=a.current)===null||I===void 0||I.call(a).then(()=>{D?.remove()})}return!1}},({className:R},P)=>fn.createElement("div",{ref:zr(i,P),className:(0,kD.default)(t,R,{"wave-quick":C}),style:S}))},R8=(e,t)=>{var r;let{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);let i=ND(),a=null;function s(){return a}a=i(fn.createElement(E8,Object.assign({},t,{target:e,registerUnmount:s})),o)},MD=R8;var O8=(e,t,r)=>{let{wave:n}=Tv.useContext(rt),[,o,i]=xr(),a=wt(c=>{let u=e.current;if(n?.disabled||!u)return;let f=u.querySelector(`.${vu}`)||u,{showEffect:d}=n||{};(d||MD)(f,{className:t,token:o,component:r,event:c,hashId:i})}),s=Tv.useRef(null);return c=>{dt.cancel(s.current),s.current=dt(()=>{a(c)})}},FD=O8;var _8=e=>{let{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=(0,Ml.useContext)(rt),i=(0,Ml.useRef)(null),a=o("wave"),[,s]=$D(a),l=FD(i,(0,LD.default)(a,s),n);if(Ml.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=d=>{!Pv(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!Ml.default.isValidElement(t))return t??null;let c=Si(t)?zr(xs(t),i):i;return Ko(t,{ref:c})},Nv=_8;var Rw=E(N());var P8=e=>{let t=Rw.default.useContext(Tl);return Rw.default.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},so=P8;var $s=E(N()),zD=E(Ne());var WD=$s.createContext(null),Yo=(e,t)=>{let r=$s.useContext(WD),n=$s.useMemo(()=>{if(!r)return"";let{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return(0,zD.default)(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},BD=e=>{let{children:t}=e;return $s.createElement(WD.Provider,{value:null},t)};var $a=E(N()),jD=E(Ne());var T8=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{getPrefixCls:t,direction:r}=$a.useContext(rt),{prefixCls:n,size:o,className:i}=e,a=T8(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=xr(),c=$a.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=(0,jD.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return $a.createElement(Ow.Provider,{value:o},$a.createElement("div",Object.assign({},a,{className:u})))},VD=N8;var yu=E(N());var HD=/^[\u4E00-\u9FA5]{2}$/,Iv=HD.test.bind(HD);function UD(e){return typeof e=="string"}function Dv(e){return e==="text"||e==="link"}function I8(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&UD(e.type)&&Iv(e.props.children)?Ko(e,{children:e.props.children.split("").join(r)}):UD(e)?Iv(e)?yu.default.createElement("span",null,e.split("").join(r)):yu.default.createElement("span",null,e):xv(e)?yu.default.createElement("span",null,e):e}function qD(e,t){let r=!1,n=[];return yu.default.Children.forEach(e,o=>{let i=typeof o,a=i==="string"||i==="number";if(r&&a){let s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=a}),yu.default.Children.map(n,o=>I8(o,t))}var kde=["default","primary","danger"].concat(ee(Ro));var As=E(N());var Tw=E(Ne());var $v=E(N()),GD=E(Ne()),D8=(0,$v.forwardRef)((e,t)=>{let{className:r,style:n,children:o,prefixCls:i}=e,a=(0,GD.default)(`${i}-icon`,r);return $v.default.createElement("span",{ref:t,className:a,style:n},o)}),Wd=D8;var KD=(0,As.forwardRef)((e,t)=>{let{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=(0,Tw.default)(`${r}-loading-icon`,n);return As.default.createElement(Wd,{prefixCls:r,className:a,style:o,ref:t},As.default.createElement(kl,{className:i}))}),_w=()=>({width:0,opacity:0,transform:"scale(0)"}),Pw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),$8=e=>{let{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?As.default.createElement(KD,{prefixCls:t,className:o,style:i}):As.default.createElement(qo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:_w,onAppearActive:Pw,onEnterStart:_w,onEnterActive:Pw,onLeaveStart:Pw,onLeaveActive:_w},({className:l,style:c},u)=>{let f=Object.assign(Object.assign({},i),c);return As.default.createElement(KD,{prefixCls:t,className:(0,Tw.default)(o,l),style:f,ref:u})})},XD=$8;var YD=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),A8=e=>{let{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:i}=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}},YD(`${t}-primary`,o),YD(`${t}-danger`,i)]}},QD=A8;var $w=E(N());var k8=["b"],M8=["v"],Nw=function(t){return Math.round(Number(t||0))},F8=function(t){if(t instanceof gt)return t;if(t&&fe(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=Ve(r,k8);return T(T({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Qo=function(e){Dr(r,e);var t=$r(r);function r(n){return it(this,r),t.call(this,F8(n))}return at(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Nw(o.s*100),a=Nw(o.b*100),s=Nw(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=Ve(o,M8);return T(T({},a),{},{b:i,a:this.a})}}]),r}(gt);var Iw=function(t){return t instanceof Qo?t:new Qo(t)},L8=Iw("#1677ff");var Z8=E(Ne());var z8=E(Ne()),W8=E(N());var ZD=E(N());var Dw=E(N());var B8=E(Ne()),j8=E(N());var V8=E(N());var JD=E(N());var Y8=E(N());var J8=E(N());var t$=E(N());var Q8=E(Ne());var e$=E(N());var eV=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",tV=(e,t)=>e?eV(e,t):"",n$=function(){function e(t){it(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new Qo(this.colors[0].color.metaColor)):this.metaColor=new Qo(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return at(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return tV(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:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{let i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();var P$=E(N());var lV=E(Ne());var rV=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,e8="".concat(Jj," ").concat(Zj).split(/[\s\n]+/),t8="aria-",r8="data-";function yD(e,t){return e.indexOf(t)===0}function qo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=T({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||yD(o,t8))||r.data&&yD(o,r8)||r.attr&&e8.includes(o))&&(n[o]=e[o])}),n}var Ld=E(N());function Sv(e){return e&&Ld.default.isValidElement(e)&&e.type===Ld.default.Fragment}var n8=(e,t,r)=>Ld.default.isValidElement(e)?Ld.default.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Go(e,t){return n8(e,e,t)}var o8=e=>{let[,,,,t]=vr();return t?`${e}-css-var`:""},Ko=o8;var lt={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(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=lt.F1&&r<=lt.F12)return!1;switch(r){case lt.ALT:case lt.CAPS_LOCK:case lt.CONTEXT_MENU:case lt.CTRL:case lt.DOWN:case lt.END:case lt.ESC:case lt.HOME:case lt.INSERT:case lt.LEFT:case lt.MAC_FF_META:case lt.META:case lt.NUMLOCK:case lt.NUM_CENTER:case lt.PAGE_DOWN:case lt.PAGE_UP:case lt.PAUSE:case lt.PRINT_SCREEN:case lt.RIGHT:case lt.SHIFT:case lt.UP:case lt.WIN_KEY:case lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=lt.ZERO&&t<=lt.NINE||t>=lt.NUM_ZERO&&t<=lt.NUM_MULTIPLY||t>=lt.A&&t<=lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case lt.SPACE:case lt.QUESTION_MARK:case lt.NUM_PLUS:case lt.NUM_MINUS:case lt.NUM_PERIOD:case lt.NUM_DIVISION:case lt.SEMICOLON:case lt.DASH:case lt.EQUALS:case lt.COMMA:case lt.PERIOD:case lt.SLASH:case lt.APOSTROPHE:case lt.SINGLE_QUOTE:case lt.OPEN_SQUARE_BRACKET:case lt.BACKSLASH:case lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Qe=lt;var Cv=E(N());var i8={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"},xD=i8;var a8=function(t,r){return Cv.createElement(zt,le({},t,{ref:r,icon:xD}))},s8=Cv.forwardRef(a8),Fl=s8;var SD=E(N());var bD=E(N()),l8=bD.default.createContext(void 0),wv=l8;var $a=100,c8=10,u8=$a*c8,hfe=u8+$a,CD={Modal:$a,Drawer:$a,Popover:$a,Popconfirm:$a,Tooltip:$a,Tour:$a,FloatButton:$a},f8={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function d8(e){return e in CD}var Ev=(e,t)=>{let[,r]=vr(),n=SD.default.useContext(wv),o=d8(e),i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+CD[e]:a+=f8[e],i=[n===void 0?t:a,a]}return i};var b8=E(N()),Gfe=E(Ui());function Rv(e,t){this.v=e,this.k=t}function ln(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}ln=function(a,s,l,c){if(s)o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l;else{var u=function(d,m){ln(a,d,function(h){return this._invoke(d,m,h)})};u("next",0),u("throw",1),u("return",2)}},ln(e,t,r,n)}function zd(){var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(m,h,v,y){var g=h&&h.prototype instanceof s?h:s,p=Object.create(g.prototype);return ln(p,"_invoke",function(x,b,S){var w,C,R,P=0,O=S||[],I=!1,D={p:0,n:0,v:e,a:$,f:$.bind(e,4),d:function(A,M){return w=A,C=0,R=e,D.n=M,a}};function $(L,A){for(C=L,R=A,t=0;!I&&P&&!M&&t3?(M=K===A)&&(R=W[(C=W[4])?5:(C=3,3)],W[4]=W[5]=e):W[0]<=B&&((M=L<2&&BA||A>K)&&(W[4]=L,W[5]=A,D.n=K,C=0))}if(M||L>1)return a;throw I=!0,A}return function(L,A,M){if(P>1)throw TypeError("Generator is already running");for(I&&A===1&&$(A,M),C=A,R=M;(t=C<2?e:R)||!I;){w||(C?C<3?(C>1&&(D.n=-1),$(C,R)):D.n=R:D.v=R);try{if(P=2,w){if(C||(L="next"),t=w[L]){if(!(t=t.call(w,R)))throw TypeError("iterator result is not an object");if(!t.done)return t;R=t.value,C<2&&(C=0)}else C===1&&(t=w.return)&&t.call(w),C<2&&(R=TypeError("The iterator does not provide a '"+L+"' method"),C=1);w=e}else if((t=(I=D.n<0)?R:x.call(b,D))!==a)break}catch(W){w=e,C=1,R=W}finally{P=1}}return{value:t,done:I}}}(m,v,y),!0),p}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ln(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function d(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,c):(m.__proto__=c,ln(m,o,"GeneratorFunction")),m.prototype=Object.create(f),m}return l.prototype=c,ln(f,"constructor",c),ln(c,"constructor",l),l.displayName="GeneratorFunction",ln(c,o,"GeneratorFunction"),ln(f),ln(f,o,"Generator"),ln(f,n,function(){return this}),ln(f,"toString",function(){return"[object Generator]"}),(zd=function(){return{w:i,m:d}})()}function hu(e,t){function r(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof Rv?t.resolve(c.v).then(function(u){r("next",u,a,s)},function(u){r("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return r("throw",u,a,s)})}catch(u){s(u)}}var n;this.next||(ln(hu.prototype),ln(hu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ln(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){r(o,a,l,c)})}return n=n?n.then(s,s):s()},!0)}function Ov(e,t,r,n,o){return new hu(zd().w(e,t,r,n),o||Promise)}function wD(e,t,r,n,o){var i=Ov(e,t,r,n,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function ED(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function xw(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(ce(e)+" is not iterable")}function Et(){"use strict";var e=zd(),t=e.m(Et),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,d){return l(c.a,o[f],d)},delegateYield:function(f,d,m){return s.resultName=d,l(c.d,xw(f),m)},finish:function(f){return l(c.f,f)}},l=function(f,d,m){c.p=s.prev,c.n=s.next;try{return f(d,m)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Et=function(){return{wrap:function(l,c,u,f){return e.w(i(l),c,u,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new Rv(l,c)},AsyncIterator:hu,async:function(l,c,u,f,d){return(n(c)?Ov:wD)(i(l),c,u,f,d)},keys:ED,values:xw}})()}function RD(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Ur(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){RD(i,n,o,a,s,"next",l)}function s(l){RD(i,n,o,a,s,"throw",l)}a(void 0)})}}var p8=E(Ui()),Wd=T({},p8),m8=Wd.version,bw=Wd.render,g8=Wd.unmountComponentAtNode,Pv;try{OD=Number((m8||"").split(".")[0]),OD>=18&&(Pv=Wd.createRoot)}catch{}var OD;function _D(e){var t=Wd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ce(t)==="object"&&(t.usingClientEntryPoint=e)}var _v="__rc_react_root__";function h8(e,t){_D(!0);var r=t[_v]||Pv(t);_D(!1),r.render(e),t[_v]=r}function v8(e,t){bw?.(e,t)}function PD(e,t){if(Pv){h8(e,t);return}v8(e,t)}function y8(e){return Sw.apply(this,arguments)}function Sw(){return Sw=Ur(Et().mark(function e(t){return Et().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[_v])===null||o===void 0||o.unmount(),delete t[_v]}));case 1:case"end":return n.stop()}},e)})),Sw.apply(this,arguments)}function x8(e){g8(e)}function TD(e){return Cw.apply(this,arguments)}function Cw(){return Cw=Ur(Et().mark(function e(t){return Et().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Pv===void 0){n.next=2;break}return n.abrupt("return",y8(t));case 2:x8(t);case 3:case"end":return n.stop()}},e)})),Cw.apply(this,arguments)}var S8=(e,t)=>(PD(e,t),()=>TD(t)),ND=S8;function ID(e){return e&&(ND=e),ND}var ww=()=>({height:0,opacity:0}),DD=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},C8=e=>({height:e?e.offsetHeight:0}),Ew=(e,t)=>t?.deadline===!0||t.propertyName==="height",w8=(e=Is)=>({motionName:`${e}-motion-collapse`,onAppearStart:ww,onEnterStart:ww,onAppearActive:DD,onEnterActive:DD,onLeaveStart:C8,onLeaveActive:ww,onAppearEnd:Ew,onEnterEnd:Ew,onLeaveEnd:Ew,motionDeadline:500});var Tv=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var $D=w8;var Wt=E(N()),Yv=E(Ne());function qr(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Ll=E(N()),zD=E(Ne());var Nv=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 o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};var E8=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}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},AD=rw("Wave",e=>[E8(e)]);var Iv=E(N());var vu=`${Is}-wave-target`;var cn=E(N()),MD=E(Ne());function Rw(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function kD(e){let{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Rw(t)?t:Rw(r)?r:Rw(n)?n:null}function Ow(e){return Number.isNaN(e)?0:e}var R8=e=>{let{className:t,target:r,component:n,registerUnmount:o}=e,i=cn.useRef(null),a=cn.useRef(null);cn.useEffect(()=>{a.current=o()},[]);let[s,l]=cn.useState(null),[c,u]=cn.useState([]),[f,d]=cn.useState(0),[m,h]=cn.useState(0),[v,y]=cn.useState(0),[g,p]=cn.useState(0),[x,b]=cn.useState(!1),S={left:f,top:m,width:v,height:g,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(S["--wave-color"]=s);function w(){let R=getComputedStyle(r);l(kD(r));let P=R.position==="static",{borderLeftWidth:O,borderTopWidth:I}=R;d(P?r.offsetLeft:Ow(-parseFloat(O))),h(P?r.offsetTop:Ow(-parseFloat(I))),y(r.offsetWidth),p(r.offsetHeight);let{borderTopLeftRadius:D,borderTopRightRadius:$,borderBottomLeftRadius:L,borderBottomRightRadius:A}=R;u([D,$,A,L].map(M=>Ow(parseFloat(M))))}if(cn.useEffect(()=>{if(r){let R=dt(()=>{w(),b(!0)}),P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(w),P.observe(r)),()=>{dt.cancel(R),P?.disconnect()}}},[]),!x)return null;let C=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(vu);return cn.createElement(Uo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,P)=>{var O,I;if(P.deadline||P.propertyName==="opacity"){let D=(O=i.current)===null||O===void 0?void 0:O.parentElement;(I=a.current)===null||I===void 0||I.call(a).then(()=>{D?.remove()})}return!1}},({className:R},P)=>cn.createElement("div",{ref:zr(i,P),className:(0,MD.default)(t,R,{"wave-quick":C}),style:S}))},O8=(e,t)=>{var r;let{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);let i=ID(),a=null;function s(){return a}a=i(cn.createElement(R8,Object.assign({},t,{target:e,registerUnmount:s})),o)},FD=O8;var _8=(e,t,r)=>{let{wave:n}=Iv.useContext(ot),[,o,i]=vr(),a=wt(c=>{let u=e.current;if(n?.disabled||!u)return;let f=u.querySelector(`.${vu}`)||u,{showEffect:d}=n||{};(d||FD)(f,{className:t,token:o,component:r,event:c,hashId:i})}),s=Iv.useRef(null);return c=>{dt.cancel(s.current),s.current=dt(()=>{a(c)})}},LD=_8;var P8=e=>{let{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=(0,Ll.useContext)(ot),i=(0,Ll.useRef)(null),a=o("wave"),[,s]=AD(a),l=LD(i,(0,zD.default)(a,s),n);if(Ll.default.useEffect(()=>{let u=i.current;if(!u||u.nodeType!==1||r)return;let f=d=>{!Nv(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!Ll.default.isValidElement(t))return t??null;let c=bi(t)?zr(xs(t),i):i;return Go(t,{ref:c})},Dv=P8;var _w=E(N());var T8=e=>{let t=_w.default.useContext(Il);return _w.default.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},so=T8;var $s=E(N()),WD=E(Ne());var BD=$s.createContext(null),Xo=(e,t)=>{let r=$s.useContext(BD),n=$s.useMemo(()=>{if(!r)return"";let{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return(0,WD.default)(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},jD=e=>{let{children:t}=e;return $s.createElement(BD.Provider,{value:null},t)};var Aa=E(N()),VD=E(Ne());var N8=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{getPrefixCls:t,direction:r}=Aa.useContext(ot),{prefixCls:n,size:o,className:i}=e,a=N8(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=vr(),c=Aa.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=(0,VD.default)(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return Aa.createElement(Pw.Provider,{value:o},Aa.createElement("div",Object.assign({},a,{className:u})))},HD=I8;var yu=E(N());var UD=/^[\u4E00-\u9FA5]{2}$/,$v=UD.test.bind(UD);function qD(e){return typeof e=="string"}function Av(e){return e==="text"||e==="link"}function D8(e,t){if(e==null)return;let r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&qD(e.type)&&$v(e.props.children)?Go(e,{children:e.props.children.split("").join(r)}):qD(e)?$v(e)?yu.default.createElement("span",null,e.split("").join(r)):yu.default.createElement("span",null,e):Sv(e)?yu.default.createElement("span",null,e):e}function GD(e,t){let r=!1,n=[];return yu.default.Children.forEach(e,o=>{let i=typeof o,a=i==="string"||i==="number";if(r&&a){let s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=a}),yu.default.Children.map(n,o=>D8(o,t))}var Mde=["default","primary","danger"].concat(ne(Ro));var As=E(N());var Iw=E(Ne());var kv=E(N()),KD=E(Ne()),$8=(0,kv.forwardRef)((e,t)=>{let{className:r,style:n,children:o,prefixCls:i}=e,a=(0,KD.default)(`${i}-icon`,r);return kv.default.createElement("span",{ref:t,className:a,style:n},o)}),Bd=$8;var XD=(0,As.forwardRef)((e,t)=>{let{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=(0,Iw.default)(`${r}-loading-icon`,n);return As.default.createElement(Bd,{prefixCls:r,className:a,style:o,ref:t},As.default.createElement(Fl,{className:i}))}),Tw=()=>({width:0,opacity:0,transform:"scale(0)"}),Nw=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),A8=e=>{let{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?As.default.createElement(XD,{prefixCls:t,className:o,style:i}):As.default.createElement(Uo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Tw,onAppearActive:Nw,onEnterStart:Tw,onEnterActive:Nw,onLeaveStart:Nw,onLeaveActive:Tw},({className:l,style:c},u)=>{let f=Object.assign(Object.assign({},i),c);return As.default.createElement(XD,{prefixCls:t,className:(0,Iw.default)(o,l),style:f,ref:u})})},YD=A8;var QD=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),k8=e=>{let{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:i}=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}},QD(`${t}-primary`,o),QD(`${t}-danger`,i)]}},JD=k8;var kw=E(N());var M8=["b"],F8=["v"],Dw=function(t){return Math.round(Number(t||0))},L8=function(t){if(t instanceof ht)return t;if(t&&ce(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=He(r,M8);return T(T({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Yo=function(e){$r(r,e);var t=Ar(r);function r(n){return at(this,r),t.call(this,L8(n))}return st(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Dw(o.s*100),a=Dw(o.b*100),s=Dw(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=He(o,F8);return T(T({},a),{},{b:i,a:this.a})}}]),r}(ht);var $w=function(t){return t instanceof Yo?t:new Yo(t)},z8=$w("#1677ff");var eV=E(Ne());var W8=E(Ne()),B8=E(N());var e$=E(N());var Aw=E(N());var j8=E(Ne()),V8=E(N());var H8=E(N());var ZD=E(N());var Q8=E(N());var Z8=E(N());var r$=E(N());var J8=E(Ne());var t$=E(N());var tV=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",rV=(e,t)=>e?tV(e,t):"",o$=function(){function e(t){at(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new Yo(this.colors[0].color.metaColor)):this.metaColor=new Yo(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return st(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return rV(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:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{let i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();var T$=E(N());var cV=E(Ne());var nV=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Aw=rV;var nV=e=>({animationDuration:e,animationFillMode:"both"}),oV=e=>({animationDuration:e,animationFillMode:"both"}),ks=(e,t,r,n,o=!1)=>{let i=o?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Mw=nV;var oV=e=>({animationDuration:e,animationFillMode:"both"}),iV=e=>({animationDuration:e,animationFillMode:"both"}),ks=(e,t,r,n,o=!1)=>{let i=o?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear - `]:Object.assign(Object.assign({},nV(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},oV(n)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},oV(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},iV(n)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}};var o$=new yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i$=new yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),kw=(e,t=!1)=>{let{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[ks(n,o$,i$,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}};var i$=new xt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a$=new xt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Fw=(e,t=!1)=>{let{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[ks(n,i$,a$,e.motionDurationMid,t),{[` ${o}${n}-enter, ${o}${n}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};var a$=new yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s$=new yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l$=new yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c$=new yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),u$=new yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f$=new yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d$=new yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p$=new yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),iV={"move-up":{inKeyframes:d$,outKeyframes:p$},"move-down":{inKeyframes:a$,outKeyframes:s$},"move-left":{inKeyframes:l$,outKeyframes:c$},"move-right":{inKeyframes:u$,outKeyframes:f$}},Av=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=iV[t];return[ks(n,o,i,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};var s$=new xt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l$=new xt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),c$=new xt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u$=new xt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),f$=new xt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d$=new xt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),p$=new xt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m$=new xt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),aV={"move-up":{inKeyframes:p$,outKeyframes:m$},"move-down":{inKeyframes:s$,outKeyframes:l$},"move-left":{inKeyframes:c$,outKeyframes:u$},"move-right":{inKeyframes:f$,outKeyframes:d$}},Mv=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=aV[t];return[ks(n,o,i,e.motionDurationMid),{[` ${n}-enter, ${n}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var kv=new yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Mv=new yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Fv=new yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Lv=new yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),m$=new yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),g$=new yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),h$=new yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),v$=new yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),aV={"slide-up":{inKeyframes:kv,outKeyframes:Mv},"slide-down":{inKeyframes:Fv,outKeyframes:Lv},"slide-left":{inKeyframes:m$,outKeyframes:g$},"slide-right":{inKeyframes:h$,outKeyframes:v$}},zv=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=aV[t];return[ks(n,o,i,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Fv=new xt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Lv=new xt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),zv=new xt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Wv=new xt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),g$=new xt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),h$=new xt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),v$=new xt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),y$=new xt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),sV={"slide-up":{inKeyframes:Fv,outKeyframes:Lv},"slide-down":{inKeyframes:zv,outKeyframes:Wv},"slide-left":{inKeyframes:g$,outKeyframes:h$},"slide-right":{inKeyframes:v$,outKeyframes:y$}},Bv=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=sV[t];return[ks(n,o,i,e.motionDurationMid),{[` ${n}-enter, ${n}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var y$=new yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),x$=new yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Mw=new yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fw=new yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),b$=new yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),S$=new yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),C$=new yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),w$=new yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),E$=new yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),R$=new yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),O$=new yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_$=new yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),sV={zoom:{inKeyframes:y$,outKeyframes:x$},"zoom-big":{inKeyframes:Mw,outKeyframes:Fw},"zoom-big-fast":{inKeyframes:Mw,outKeyframes:Fw},"zoom-left":{inKeyframes:C$,outKeyframes:w$},"zoom-right":{inKeyframes:E$,outKeyframes:R$},"zoom-up":{inKeyframes:b$,outKeyframes:S$},"zoom-down":{inKeyframes:O$,outKeyframes:_$}},Lw=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=sV[t];return[ks(n,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var x$=new xt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),b$=new xt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Lw=new xt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zw=new xt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),S$=new xt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),C$=new xt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),w$=new xt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),E$=new xt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),R$=new xt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),O$=new xt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),_$=new xt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),P$=new xt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),lV={zoom:{inKeyframes:x$,outKeyframes:b$},"zoom-big":{inKeyframes:Lw,outKeyframes:zw},"zoom-big-fast":{inKeyframes:Lw,outKeyframes:zw},"zoom-left":{inKeyframes:w$,outKeyframes:E$},"zoom-right":{inKeyframes:R$,outKeyframes:O$},"zoom-up":{inKeyframes:S$,outKeyframes:C$},"zoom-down":{inKeyframes:_$,outKeyframes:P$}},Ww=(e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=lV[t];return[ks(n,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${n}-enter, ${n}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var T$=(e,t)=>{let{r,g:n,b:o,a:i}=e.toRgb(),a=new Qo(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+n*.587+o*.114>192};var Wv=e=>{let{paddingInline:t,onlyIconSize:r}=e;return ut(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},Bv=e=>{var t,r,n,o,i,a;let s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:lu(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:lu(l),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:lu(c),m=T$(new n$(e.colorBgSolid),"#fff")?"#000":"#fff",h=Ro.reduce((v,y)=>Object.assign(Object.assign({},v),{[`${y}ShadowColor`]:`0 ${oe(e.controlOutlineWidth)} 0 ${Nl(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,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:m,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)})};var cV=e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${oe(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`]:Pa(),"> a":{color:"currentColor"},"&:not(:disabled)":z2(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${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()}}}}}},N$=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),uV=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),fV=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),dV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),jv=(e,t,r,n,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},N$(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),pV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},dV(e))}),mV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Vv=(e,t,r,n)=>{let i=n&&["link","text"].includes(n)?mV:pV;return Object.assign(Object.assign({},i(e)),N$(e.componentCls,t,r))},Hv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},Vv(e,n,o))}),Uv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},Vv(e,n,o))}),qv=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Gv=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Vv(e,r,n))}),Xi=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},Vv(e,n,o,r))}),gV=e=>{let{componentCls:t}=e;return Ro.reduce((r,n)=>{let o=e[`${n}6`],i=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:o,boxShadow:e[`${n}ShadowColor`]},Hv(e,e.colorTextLightSolid,o,{background:a},{background:c})),Uv(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),qv(e)),Gv(e,i,{background:s},{background:l})),Xi(e,o,"link",{color:a},{color:c})),Xi(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},hV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Hv(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),qv(e)),Gv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),jv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Xi(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),vV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Uv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),qv(e)),Gv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Xi(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Xi(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),jv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),yV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Hv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Uv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),qv(e)),Gv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Xi(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Xi(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),jv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),xV=e=>Object.assign(Object.assign({},Xi(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),jv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),bV=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:hV(e),[`${t}-color-primary`]:vV(e),[`${t}-color-dangerous`]:yV(e),[`${t}-color-link`]:xV(e)},gV(e))},SV=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Uv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Xi(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Hv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Xi(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),zw=(e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${oe(l)} ${oe(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:uV(e)},{[`${r}${r}-round${t}`]:fV(e)}]},CV=e=>{let t=ut(e,{fontSize:e.contentFontSize});return zw(t,e.componentCls)},wV=e=>{let t=ut(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return zw(t,`${e.componentCls}-sm`)},EV=e=>{let t=ut(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return zw(t,`${e.componentCls}-lg`)},RV=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},I$=Gt("Button",e=>{let t=Wv(e);return[cV(t),CV(t),wV(t),EV(t),RV(t),bV(t),SV(t),QD(t)]},Bv,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function OV(e,t,r){let{focusElCls:n,focus:o,borderElCls:i}=r,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function _V(e,t,r){let{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ms(e,t={focus:!0}){let{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},OV(e,n,t)),_V(r,n,t))}}function PV(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function TV(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 D$(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},PV(e,t)),TV(e.componentCls,t))}}var NV=e=>{let{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,i=o(n).mul(-1).equal(),a=s=>{let l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},$$=tw(["Button","compact"],e=>{let t=Wv(e);return[Ms(t),D$(t),NV(t)]},Bv);var IV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;let{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:f,styles:d,disabled:m,className:h,rootClassName:v,children:y,icon:g,iconPosition:p="start",ghost:x=!1,block:b=!1,htmlType:S="button",classNames:w,style:C={},autoInsertSpace:R,autoFocus:P}=e,O=IV(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:D}=Wt.default.useContext(rt),[$,F]=(0,Wt.useMemo)(()=>{if(a&&s)return[a,s];if(l||c){let _e=$V[I]||[];return c?["danger",_e[1]]:_e}return D?.color&&D?.variant?[D.color,D.variant]:["default","outlined"]},[l,a,s,c,D?.variant,D?.color]),z=$==="danger"?"dangerous":$,{getPrefixCls:B,direction:j,autoInsertSpace:G,className:V,style:H,classNames:K,styles:W}=oo("button"),A=(r=R??G)!==null&&r!==void 0?r:!0,L=B("btn",i),[q,ne,Y]=I$(L),X=(0,Wt.useContext)(qr),ae=m??X,J=(0,Wt.useContext)(Ow),U=(0,Wt.useMemo)(()=>DV(o),[o]),[Q,te]=(0,Wt.useState)(U.loading),[Z,re]=(0,Wt.useState)(!1),de=(0,Wt.useRef)(null),le=bi(t,de),pe=Wt.Children.count(y)===1&&!g&&!Dv(F),Oe=(0,Wt.useRef)(!0);Wt.default.useEffect(()=>(Oe.current=!1,()=>{Oe.current=!0}),[]),(0,Wt.useEffect)(()=>{let _e=null;U.delay>0?_e=setTimeout(()=>{_e=null,te(!0)},U.delay):te(U.loading);function he(){_e&&(clearTimeout(_e),_e=null)}return he},[U]),(0,Wt.useEffect)(()=>{if(!de.current||!A)return;let _e=de.current.textContent||"";pe&&Iv(_e)?Z||re(!0):Z&&re(!1)}),(0,Wt.useEffect)(()=>{P&&de.current&&de.current.focus()},[]);let Ce=Wt.default.useCallback(_e=>{var he;if(Q||ae){_e.preventDefault();return}(he=e.onClick)===null||he===void 0||he.call(e,("href"in e,_e))},[e.onClick,Q,ae]),{compactSize:$e,compactItemClassnames:ce}=Yo(L,j),ie={large:"lg",small:"sm",middle:void 0},Re=so(_e=>{var he,Ze;return(Ze=(he=f??$e)!==null&&he!==void 0?he:J)!==null&&Ze!==void 0?Ze:_e}),Le=Re&&(n=ie[Re])!==null&&n!==void 0?n:"",Ge=Q?"loading":g,Me=Kr(O,["navigate"]),Ie=(0,Kv.default)(L,ne,Y,{[`${L}-${u}`]:u!=="default"&&u,[`${L}-${I}`]:I,[`${L}-dangerous`]:c,[`${L}-color-${z}`]:z,[`${L}-variant-${F}`]:F,[`${L}-${Le}`]:Le,[`${L}-icon-only`]:!y&&y!==0&&!!Ge,[`${L}-background-ghost`]:x&&!Dv(F),[`${L}-loading`]:Q,[`${L}-two-chinese-chars`]:Z&&A&&!Q,[`${L}-block`]:b,[`${L}-rtl`]:j==="rtl",[`${L}-icon-end`]:p==="end"},ce,h,v,V),je=Object.assign(Object.assign({},H),C),We=(0,Kv.default)(w?.icon,K.icon),He=Object.assign(Object.assign({},d?.icon||{}),W.icon||{}),ye=g&&!Q?Wt.default.createElement(Wd,{prefixCls:L,className:We,style:He},g):o&&typeof o=="object"&&o.icon?Wt.default.createElement(Wd,{prefixCls:L,className:We,style:He},o.icon):Wt.default.createElement(XD,{existIcon:!!g,prefixCls:L,loading:Q,mount:Oe.current}),se=y||y===0?qD(y,pe&&A):null;if(Me.href!==void 0)return q(Wt.default.createElement("a",Object.assign({},Me,{className:(0,Kv.default)(Ie,{[`${L}-disabled`]:ae}),href:ae?void 0:Me.href,style:je,onClick:Ce,ref:le,tabIndex:ae?-1:0}),ye,se));let xe=Wt.default.createElement("button",Object.assign({},O,{type:S,className:Ie,style:je,onClick:Ce,disabled:ae,ref:le}),ye,se,ce&&Wt.default.createElement($$,{prefixCls:L}));return Dv(F)||(xe=Wt.default.createElement(Nv,{component:"Button",disabled:Q},xe)),q(xe)}),Ww=AV;Ww.Group=VD;Ww.__ANT_BUTTON=!0;var A$=Ww;var Bd=A$;var Jo=E(N()),V$=E(Hi());var k$=E(N()),kV=k$.createContext(null),Xv=kV;var Fl=E(N());var M$=[];function Bw(e,t){var r=Fl.useState(function(){if(!Yt())return null;var h=document.createElement("div");return h}),n=M(r,1),o=n[0],i=Fl.useRef(!1),a=Fl.useContext(Xv),s=Fl.useState(M$),l=M(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(h){u(function(v){var y=[h].concat(ee(v));return y})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return vt(function(){return e?a?a(d):d():m(),m},[e]),vt(function(){c.length&&(c.forEach(function(h){return h()}),u(M$))},[c]),[o,f]}var W$=E(N());function MV(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.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,";"):"";xn(` + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var N$=(e,t)=>{let{r,g:n,b:o,a:i}=e.toRgb(),a=new Yo(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+n*.587+o*.114>192};var jv=e=>{let{paddingInline:t,onlyIconSize:r}=e;return ft(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},Vv=e=>{var t,r,n,o,i,a;let s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:lu(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:lu(l),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:lu(c),m=N$(new o$(e.colorBgSolid),"#fff")?"#000":"#fff",h=Ro.reduce((v,y)=>Object.assign(Object.assign({},v),{[`${y}ShadowColor`]:`0 ${ie(e.controlOutlineWidth)} 0 ${Dl(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,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:m,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)})};var uV=e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ie(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`]:Ta(),"> a":{color:"currentColor"},"&:not(:disabled)":W2(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${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()}}}}}},I$=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),fV=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),dV=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),pV=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Hv=(e,t,r,n,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},I$(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),mV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},pV(e))}),gV=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Uv=(e,t,r,n)=>{let i=n&&["link","text"].includes(n)?gV:mV;return Object.assign(Object.assign({},i(e)),I$(e.componentCls,t,r))},qv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},Uv(e,n,o))}),Gv=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},Uv(e,n,o))}),Kv=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Xv=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Uv(e,r,n))}),Yi=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},Uv(e,n,o,r))}),hV=e=>{let{componentCls:t}=e;return Ro.reduce((r,n)=>{let o=e[`${n}6`],i=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:o,boxShadow:e[`${n}ShadowColor`]},qv(e,e.colorTextLightSolid,o,{background:a},{background:c})),Gv(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Kv(e)),Xv(e,i,{background:s},{background:l})),Yi(e,o,"link",{color:a},{color:c})),Yi(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},vV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},qv(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Kv(e)),Xv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Hv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Yi(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),yV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Gv(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Kv(e)),Xv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Yi(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Yi(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Hv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),xV=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},qv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Gv(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Kv(e)),Xv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Yi(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Yi(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Hv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bV=e=>Object.assign(Object.assign({},Yi(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Hv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),SV=e=>{let{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:vV(e),[`${t}-color-primary`]:yV(e),[`${t}-color-dangerous`]:xV(e),[`${t}-color-link`]:bV(e)},hV(e))},CV=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Gv(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Yi(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),qv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Yi(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Bw=(e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${ie(l)} ${ie(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:fV(e)},{[`${r}${r}-round${t}`]:dV(e)}]},wV=e=>{let t=ft(e,{fontSize:e.contentFontSize});return Bw(t,e.componentCls)},EV=e=>{let t=ft(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Bw(t,`${e.componentCls}-sm`)},RV=e=>{let t=ft(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Bw(t,`${e.componentCls}-lg`)},OV=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},D$=Gt("Button",e=>{let t=jv(e);return[uV(t),wV(t),EV(t),RV(t),OV(t),SV(t),CV(t),JD(t)]},Vv,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function _V(e,t,r){let{focusElCls:n,focus:o,borderElCls:i}=r,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function PV(e,t,r){let{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ms(e,t={focus:!0}){let{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},_V(e,n,t)),PV(r,n,t))}}function TV(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function NV(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 $$(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},TV(e,t)),NV(e.componentCls,t))}}var IV=e=>{let{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,i=o(n).mul(-1).equal(),a=s=>{let l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},A$=nw(["Button","compact"],e=>{let t=jv(e);return[Ms(t),$$(t),IV(t)]},Vv);var DV=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;let{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:f,styles:d,disabled:m,className:h,rootClassName:v,children:y,icon:g,iconPosition:p="start",ghost:x=!1,block:b=!1,htmlType:S="button",classNames:w,style:C={},autoInsertSpace:R,autoFocus:P}=e,O=DV(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:D}=Wt.default.useContext(ot),[$,L]=(0,Wt.useMemo)(()=>{if(a&&s)return[a,s];if(l||c){let Te=AV[I]||[];return c?["danger",Te[1]]:Te}return D?.color&&D?.variant?[D.color,D.variant]:["default","outlined"]},[l,a,s,c,D?.variant,D?.color]),M=$==="danger"?"dangerous":$,{getPrefixCls:W,direction:B,autoInsertSpace:K,className:G,style:V,classNames:H,styles:j}=oo("button"),k=(r=R??K)!==null&&r!==void 0?r:!0,z=W("btn",i),[U,oe,Q]=D$(z),X=(0,Wt.useContext)(Hr),se=m??X,Z=(0,Wt.useContext)(Pw),q=(0,Wt.useMemo)(()=>$V(o),[o]),[J,re]=(0,Wt.useState)(q.loading),[ee,te]=(0,Wt.useState)(!1),de=(0,Wt.useRef)(null),fe=xi(t,de),ue=Wt.Children.count(y)===1&&!g&&!Av(L),Ce=(0,Wt.useRef)(!0);Wt.default.useEffect(()=>(Ce.current=!1,()=>{Ce.current=!0}),[]),(0,Wt.useEffect)(()=>{let Te=null;q.delay>0?Te=setTimeout(()=>{Te=null,re(!0)},q.delay):re(q.loading);function he(){Te&&(clearTimeout(Te),Te=null)}return he},[q]),(0,Wt.useEffect)(()=>{if(!de.current||!k)return;let Te=de.current.textContent||"";ue&&$v(Te)?ee||te(!0):ee&&te(!1)}),(0,Wt.useEffect)(()=>{P&&de.current&&de.current.focus()},[]);let we=Wt.default.useCallback(Te=>{var he;if(J||se){Te.preventDefault();return}(he=e.onClick)===null||he===void 0||he.call(e,("href"in e,Te))},[e.onClick,J,se]),{compactSize:_e,compactItemClassnames:ve}=Xo(z,B),Y={large:"lg",small:"sm",middle:void 0},Ee=so(Te=>{var he,Ze;return(Ze=(he=f??_e)!==null&&he!==void 0?he:Z)!==null&&Ze!==void 0?Ze:Te}),$e=Ee&&(n=Y[Ee])!==null&&n!==void 0?n:"",et=J?"loading":g,ke=qr(O,["navigate"]),Se=(0,Yv.default)(z,oe,Q,{[`${z}-${u}`]:u!=="default"&&u,[`${z}-${I}`]:I,[`${z}-dangerous`]:c,[`${z}-color-${M}`]:M,[`${z}-variant-${L}`]:L,[`${z}-${$e}`]:$e,[`${z}-icon-only`]:!y&&y!==0&&!!et,[`${z}-background-ghost`]:x&&!Av(L),[`${z}-loading`]:J,[`${z}-two-chinese-chars`]:ee&&k&&!J,[`${z}-block`]:b,[`${z}-rtl`]:B==="rtl",[`${z}-icon-end`]:p==="end"},ve,h,v,G),Be=Object.assign(Object.assign({},V),C),Fe=(0,Yv.default)(w?.icon,H.icon),Ue=Object.assign(Object.assign({},d?.icon||{}),j.icon||{}),Re=g&&!J?Wt.default.createElement(Bd,{prefixCls:z,className:Fe,style:Ue},g):o&&typeof o=="object"&&o.icon?Wt.default.createElement(Bd,{prefixCls:z,className:Fe,style:Ue},o.icon):Wt.default.createElement(YD,{existIcon:!!g,prefixCls:z,loading:J,mount:Ce.current}),ae=y||y===0?GD(y,ue&&k):null;if(ke.href!==void 0)return U(Wt.default.createElement("a",Object.assign({},ke,{className:(0,Yv.default)(Se,{[`${z}-disabled`]:se}),href:se?void 0:ke.href,style:Be,onClick:we,ref:fe,tabIndex:se?-1:0}),Re,ae));let ge=Wt.default.createElement("button",Object.assign({},O,{type:S,className:Se,style:Be,onClick:we,disabled:se,ref:fe}),Re,ae,ve&&Wt.default.createElement(A$,{prefixCls:z}));return Av(L)||(ge=Wt.default.createElement(Dv,{component:"Button",disabled:J},ge)),U(ge)}),jw=kV;jw.Group=HD;jw.__ANT_BUTTON=!0;var k$=jw;var jd=k$;var Qo=E(N()),H$=E(Ui());var M$=E(N()),MV=M$.createContext(null),Qv=MV;var zl=E(N());var F$=[];function Vw(e,t){var r=zl.useState(function(){if(!Yt())return null;var h=document.createElement("div");return h}),n=F(r,1),o=n[0],i=zl.useRef(!1),a=zl.useContext(Qv),s=zl.useState(F$),l=F(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(h){u(function(v){var y=[h].concat(ne(v));return y})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return yt(function(){return e?a?a(d):d():m(),m},[e]),yt(function(){c.length&&(c.forEach(function(h){return h()}),u(F$))},[c]),[o,f]}var B$=E(N());function FV(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.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,";"):"";yn(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(f,` -}`),t)}catch(h){console.error(h),o=l,i=c}}document.body.appendChild(r);var d=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,m=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),qi(t),{width:d,height:m}}function F$(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:MV(e)}function L$(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var FV="rc-util-locker-".concat(Date.now()),z$=0;function jw(e){var t=!!e,r=W$.useState(function(){return z$+=1,"".concat(FV,"_").concat(z$)}),n=M(r,1),o=n[0];vt(function(){if(t){var i=F$(document.body).width,a=L$();xn(` +}`),t)}catch(h){console.error(h),o=l,i=c}}document.body.appendChild(r);var d=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,m=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Gi(t),{width:d,height:m}}function L$(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:FV(e)}function z$(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var LV="rc-util-locker-".concat(Date.now()),W$=0;function Hw(e){var t=!!e,r=B$.useState(function(){return W$+=1,"".concat(LV,"_").concat(W$)}),n=F(r,1),o=n[0];yt(function(){if(t){var i=L$(document.body).width,a=z$();yn(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` -}`),o)}else qi(o);return function(){qi(o)}},[t,o])}var B$=!1;function Vw(e){return typeof e=="boolean"&&(B$=e),B$}var j$=function(t){return t===!1?!1:!Yt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},LV=Jo.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=Jo.useState(r),u=M(c,2),f=u[0],d=u[1],m=f||r;Jo.useEffect(function(){(s||r)&&d(r)},[r,s]);var h=Jo.useState(function(){return j$(o)}),v=M(h,2),y=v[0],g=v[1];Jo.useEffect(function(){var D=j$(o);g(D??null)});var p=Bw(m&&!y,i),x=M(p,2),b=x[0],S=x[1],w=y??b;jw(n&&r&&Yt()&&(w===b||w===document.body));var C=null;if(l&&Si(l)&&t){var R=l;C=R.ref}var P=bi(C,t);if(!m||!Yt()||y===void 0)return null;var O=w===!1||Vw(),I=l;return t&&(I=Jo.cloneElement(l,{ref:P})),Jo.createElement(Xv.Provider,{value:S},O?I:(0,V$.createPortal)(I,w))}),H$=LV;var Hw=H$;var jd=E(N());function zV(){var e=T({},jd);return e.useId}var U$=0;var q$=zV(),Yv=q$?function(t){var r=q$();return t||r}:function(t){var r=jd.useState("ssr-id"),n=M(r,2),o=n[0],i=n[1];return jd.useEffect(function(){var a=U$;U$+=1,i("rc_unique_".concat(a))},[]),t||o};var i1=E(N());var Aa=E(N());var MA=E(N());var Kn=E(N());var G$=E(N()),_i="RC_FORM_INTERNAL_HOOKS",Kt=function(){Vt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},WV=G$.createContext({getFieldValue:Kt,getFieldsValue:Kt,getFieldError:Kt,getFieldWarning:Kt,getFieldsError:Kt,isFieldsTouched:Kt,isFieldTouched:Kt,isFieldValidating:Kt,isFieldsValidating:Kt,resetFields:Kt,setFields:Kt,setFieldValue:Kt,setFieldsValue:Kt,validateFields:Kt,submit:Kt,getInternalHooks:function(){return Kt(),{dispatch:Kt,initEntityValue:Kt,registerField:Kt,useSubscribe:Kt,setInitialValues:Kt,destroyForm:Kt,setCallbacks:Kt,registerWatch:Kt,getFields:Kt,setValidateMessages:Kt,setPreserve:Kt,getInitialValue:Kt}}}),Pi=WV;var K$=E(N()),BV=K$.createContext(null),Fs=BV;function Vd(e){return e==null?[]:Array.isArray(e)?e:[e]}function X$(e){return e&&!!e._init}function Qv(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Jv=Qv();function Y$(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Q$(e,t,r){if(vd())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Ss(o,r.prototype),o}function Zv(e){var t=typeof Map=="function"?new Map:void 0;return Zv=function(n){if(n===null||!Y$(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return Q$(n,arguments,El(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ss(o,n)},Zv(e)}var jV=/%[sdj%]/g,eA=function(){};typeof process<"u"&&process.env;function ey(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Xr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function VV(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function At(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||VV(t)&&typeof e=="string"&&!e)}function HV(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,ee(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function J$(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,st.max?o.push(Xr(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(Xr(i.messages[f].range,t.fullField,t.min,t.max))},oA=YV;var QV=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||At(r,a||t.type))&&o.push(Xr(i.messages.required,t.fullField))},ty=QV;var ry,iA=function(){if(ry)return ry;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(r).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},u.v6=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(a).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,h=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',b="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(m,"|").concat(h,"|").concat(v).concat(y).concat(g,")").concat(p).concat(x);return ry=new RegExp("(?:^".concat(b,"$)"),"i"),ry};var aA={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Hd={integer:function(t){return Hd.number(t)&&parseInt(t,10)===t},float:function(t){return Hd.number(t)&&!Hd.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return fe(t)==="object"&&!Hd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(aA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(iA())},hex:function(t){return typeof t=="string"&&!!t.match(aA.hex)}},JV=function(t,r,n,o,i){if(t.required&&r===void 0){ty(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Hd[s](r)||o.push(Xr(i.messages.types[s],t.fullField,t.type)):s&&fe(r)!==t.type&&o.push(Xr(i.messages.types[s],t.fullField,t.type))},sA=JV;var ZV=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(Xr(i.messages.whitespace,t.fullField))},lA=ZV;var ot={required:ty,whitespace:lA,type:sA,range:oA,enum:rA,pattern:nA};var eH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();ot.required(t,r,o,a,i)}n(a)},cA=eH;var tH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();ot.required(t,r,o,a,i,"array"),r!=null&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},uA=tH;var rH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},fA=rH;var nH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r,"date")&&!t.required)return n();if(ot.required(t,r,o,a,i),!At(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),ot.type(t,l,o,a,i),l&&ot.range(t,l.getTime(),o,a,i)}}n(a)},dA=nH;var oH="enum",iH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot[oH](t,r,o,a,i)}n(a)},pA=iH;var aH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},mA=aH;var sH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},gA=sH;var lH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},hA=lH;var cH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),At(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i))}n(a)},vA=cH;var uH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();ot.required(t,r,o,a,i),r!==void 0&&ot.type(t,r,o,a,i)}n(a)},yA=uH;var fH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r,"string")&&!t.required)return n();ot.required(t,r,o,a,i),At(r,"string")||ot.pattern(t,r,o,a,i)}n(a)},xA=fH;var dH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();ot.required(t,r,o,a,i),At(r)||ot.type(t,r,o,a,i)}n(a)},bA=dH;var pH=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":fe(r);ot.required(t,r,o,a,i,s),n(a)},SA=pH;var mH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r,"string")&&!t.required)return n();ot.required(t,r,o,a,i,"string"),At(r,"string")||(ot.type(t,r,o,a,i),ot.range(t,r,o,a,i),ot.pattern(t,r,o,a,i),t.whitespace===!0&&ot.whitespace(t,r,o,a,i))}n(a)},CA=mH;var gH=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(r,a)&&!t.required)return n();ot.required(t,r,o,s,i,a),At(r,a)||ot.type(t,r,o,s,i)}n(s)},ny=gH;var bu={string:CA,method:hA,number:vA,boolean:fA,regexp:bA,integer:gA,float:mA,array:uA,object:yA,enum:pA,pattern:xA,date:dA,url:ny,hex:ny,email:ny,required:SA,any:cA};var Ud=function(){function e(t){it(this,e),_(this,"rules",null),_(this,"_messages",Jv),this.define(t)}return at(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(fe(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];n.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=qw(Qv(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var v=[],y={};function g(x){if(Array.isArray(x)){var b;v=(b=v).concat.apply(b,ee(x))}else v.push(x)}for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(C)?C:[C];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&y.message!==void 0&&(R=[].concat(y.message));var P=R.map(Uw(y,a));if(s.first&&P.length)return m[y.field]=1,v(P);if(!g)v(P);else{if(y.required&&!h.value)return y.message!==void 0?P=[].concat(y.message).map(Uw(y,a)):s.error&&(P=[s.error(y,Xr(s.messages.required,y.field))]),v(P);var O={};y.defaultField&&Object.keys(h.value).map(function($){O[$]=y.defaultField}),O=T(T({},O),h.rule.fields);var I={};Object.keys(O).forEach(function($){var F=O[$],k=Array.isArray(F)?F:[F];I[$]=k.map(p.bind(null,$))});var D=new e(I);D.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),D.validate(h.value,h.rule.options||s,function($){var F=[];P&&P.length&&F.push.apply(F,ee(P)),$&&$.length&&F.push.apply(F,ee($)),v(F.length?F:null)})}}var b;if(y.asyncValidator)b=y.asyncValidator(y,h.value,x,h.source,s);else if(y.validator){try{b=y.validator(y,h.value,x,h.source,s)}catch(C){var S,w;(S=(w=console).error)===null||S===void 0||S.call(w,C),s.suppressValidatorError||setTimeout(function(){throw C},0),x(C.message)}b===!0?x():b===!1?x(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):b instanceof Array?x(b):b instanceof Error&&x(b.message)}b&&b.then&&b.then(function(){return x()},function(C){return x(C)})},function(h){c(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!bu.hasOwnProperty(r.type))throw new Error(Xr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?bu.required:bu[this.getType(r)]||void 0}}]),e}();_(Ud,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");bu[t]=r});_(Ud,"warning",eA);_(Ud,"messages",Jv);_(Ud,"validators",bu);var wA=Ud;var iy=E(N());var Oo="'${name}' is not a valid ${type}",oy={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:Oo,method:Oo,array:Oo,object:Oo,number:Oo,date:Oo,boolean:Oo,integer:Oo,float:Oo,regexp:Oo,email:Oo,url:Oo,hex:Oo},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}"}};var EA=wA;function hH(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var RA="CODE_LOGIC_ERROR";function Gw(e,t,r,n,o){return Kw.apply(this,arguments)}function Kw(){return Kw=Gr(Et().mark(function e(t,r,n,o,i){var a,s,l,c,u,f,d,m,h;return Et().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=T({},n),delete a.ruleIndex,EA.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(RA)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new EA(_({},t,[a])),u=Ca(oy,o.validateMessages),c.messages(u),f=[],y.prev=10,y.next=13,Promise.resolve(c.validate(_({},t,r),T({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(g,p){var x=g.message,b=x===RA?u.default:x;return iy.isValidElement(b)?iy.cloneElement(b,{key:"error_".concat(p)}):b}));case 18:if(!(!f.length&&l)){y.next=23;break}return y.next=21,Promise.all(r.map(function(g,p){return Gw("".concat(t,".").concat(p),g,l,o,i)}));case 21:return d=y.sent,y.abrupt("return",d.reduce(function(g,p){return[].concat(ee(g),ee(p))},[]));case 23:return m=T(T({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=f.map(function(g){return typeof g=="string"?hH(g,m):g}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),Kw.apply(this,arguments)}function OA(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,f){var d=u.validator,m=T(T({},u),{},{ruleIndex:f});return d&&(m.validator=function(h,v,y){var g=!1,p=function(){for(var S=arguments.length,w=new Array(S),C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Jw(t,n,r)})}function Jw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function _A(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||fe(e)!=="object"||fe(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return ee(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function PA(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&fe(t.target)==="object"&&e in t.target?t.target[e]:t}function Zw(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(ee(e.slice(0,r)),[o],ee(e.slice(r,t)),ee(e.slice(t+1,n))):i<0?[].concat(ee(e.slice(0,t)),ee(e.slice(t+1,r+1)),[o],ee(e.slice(r+1,n))):e}var xH=["name"],Zo=[];function e1(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var t1=function(e){Dr(r,e);var t=$r(r);function r(n){var o;if(it(this,r),o=t.call(this,n),_(Ye(o),"state",{resetCount:0}),_(Ye(o),"cancelRegisterFunc",null),_(Ye(o),"mounted",!1),_(Ye(o),"touched",!1),_(Ye(o),"dirty",!1),_(Ye(o),"validatePromise",void 0),_(Ye(o),"prevValidating",void 0),_(Ye(o),"errors",Zo),_(Ye(o),"warnings",Zo),_(Ye(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,cr(f)),o.cancelRegisterFunc=null}),_(Ye(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(ee(d),ee(c)):[]}),_(Ye(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),_(Ye(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),_(Ye(o),"metaCache",null),_(Ye(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=T(T({},o.getMeta()),{},{destroy:l});ws(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),_(Ye(o),"onStoreChange",function(l,c,u){var f=o.props,d=f.shouldUpdate,m=f.dependencies,h=m===void 0?[]:m,v=f.onReset,y=u.store,g=o.getNamePath(),p=o.getValue(l),x=o.getValue(y),b=c&&Ls(c,g);switch(u.type==="valueUpdate"&&u.source==="external"&&!ws(p,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Zo,o.warnings=Zo,o.triggerMetaEvent()),u.type){case"reset":if(!c||b){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Zo,o.warnings=Zo,o.triggerMetaEvent(),v?.(),o.refresh();return}break;case"remove":{if(d&&e1(d,l,y,p,x,u)){o.reRender();return}break}case"setField":{var S=u.data;if(b){"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||Zo),"warnings"in S&&(o.warnings=S.warnings||Zo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&Ls(c,g,!0)){o.reRender();return}if(d&&!g.length&&e1(d,l,y,p,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=h.map(cr);if(w.some(function(C){return Ls(u.relatedFields,C)})){o.reRender();return}break}default:if(b||(!h.length||g.length||d)&&e1(d,l,y,p,x,u)){o.reRender();return}break}d===!0&&o.reRender()}),_(Ye(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},d=f.triggerName,m=f.validateOnly,h=m===void 0?!1:m,v=Promise.resolve().then(Gr(Et().mark(function y(){var g,p,x,b,S,w,C;return Et().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(g=o.props,p=g.validateFirst,x=p===void 0?!1:p,b=g.messageVariables,S=g.validateDebounce,w=o.getRules(),d&&(w=w.filter(function(O){return O}).filter(function(O){var I=O.validateTrigger;if(!I)return!0;var D=Vd(I);return D.includes(d)})),!(S&&d)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,S)});case 8:if(o.validatePromise===v){P.next=10;break}return P.abrupt("return",[]);case 10:return C=OA(c,u,w,l,x,b),C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zo;if(o.validatePromise===v){var I;o.validatePromise=null;var D=[],$=[];(I=O.forEach)===null||I===void 0||I.call(O,function(F){var k=F.rule.warningOnly,z=F.errors,B=z===void 0?Zo:z;k?$.push.apply($,ee(B)):D.push.apply(D,ee(B))}),o.errors=D,o.warnings=$,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",C);case 13:case"end":return P.stop()}},y)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=Zo,o.warnings=Zo,o.triggerMetaEvent(),o.reRender()),v}),_(Ye(o),"isFieldValidating",function(){return!!o.validatePromise}),_(Ye(o),"isFieldTouched",function(){return o.touched}),_(Ye(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(_i),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),_(Ye(o),"getErrors",function(){return o.errors}),_(Ye(o),"getWarnings",function(){return o.warnings}),_(Ye(o),"isListField",function(){return o.props.isListField}),_(Ye(o),"isList",function(){return o.props.isList}),_(Ye(o),"isPreserve",function(){return o.props.preserve}),_(Ye(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),_(Ye(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return T(T({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=xi(l);return u.length!==1||!Kn.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),_(Ye(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return bn(l||c(!0),u)}),_(Ye(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,y=c.getValueProps,g=c.fieldContext,p=d!==void 0?d:g.validateTrigger,x=o.getNamePath(),b=g.getInternalHooks,S=g.getFieldsValue,w=b(_i),C=w.dispatch,R=o.getValue(),P=y||function(F){return _({},v,F)},O=l[f],I=u!==void 0?P(R):{},D=T(T({},l),I);D[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,k=arguments.length,z=new Array(k),B=0;B=0&&O<=I.length?(u.keys=[].concat(ee(u.keys.slice(0,O)),[u.id],ee(u.keys.slice(O))),x([].concat(ee(I.slice(0,O)),[P],ee(I.slice(O))))):(u.keys=[].concat(ee(u.keys),[u.id]),x([].concat(ee(I),[P]))),u.id+=1},remove:function(P){var O=S(),I=new Set(Array.isArray(P)?P:[P]);I.size<=0||(u.keys=u.keys.filter(function(D,$){return!I.has($)}),x(O.filter(function(D,$){return!I.has($)})))},move:function(P,O){if(P!==O){var I=S();P<0||P>=I.length||O<0||O>=I.length||(u.keys=Zw(u.keys,P,O),x(Zw(I,P,O)))}}},C=p||[];return Array.isArray(C)||(C=[]),n(C.map(function(R,P){var O=u.keys[P];return O===void 0&&(u.keys[P]=u.id,O=u.keys[P],u.id+=1),{name:P,key:O,isListField:!0}}),w,y)})))}var TA=SH;var sy=E(N());function NA(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var IA="__@field_split__";function r1(e){return e.map(function(t){return"".concat(fe(t),":").concat(t)}).join(IA)}var CH=function(){function e(){it(this,e),_(this,"kvs",new Map)}return at(e,[{key:"set",value:function(r,n){this.kvs.set(r1(r),n)}},{key:"get",value:function(r){return this.kvs.get(r1(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(r1(r))}},{key:"map",value:function(r){return ee(this.kvs.entries()).map(function(n){var o=M(n,2),i=o[0],a=o[1],s=i.split(IA);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=M(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e}(),Ll=CH;var wH=["name"],EH=at(function e(t){var r=this;it(this,e),_(this,"formHooked",!1),_(this,"forceRootUpdate",void 0),_(this,"subscribable",!0),_(this,"store",{}),_(this,"fieldEntities",[]),_(this,"initialValues",{}),_(this,"callbacks",{}),_(this,"validateMessages",null),_(this,"preserve",null),_(this,"lastValidatePromise",null),_(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}}),_(this,"getInternalHooks",function(n){return n===_i?(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}):(Vt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_(this,"useSubscribe",function(n){r.subscribable=n}),_(this,"prevWithoutPreserves",null),_(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,a=Ca(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Gn(a,l,bn(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),_(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Ll;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),_(this,"getInitialValue",function(n){var o=bn(r.initialValues,n);return n.length?Ca(o):o}),_(this,"setCallbacks",function(n){r.callbacks=n}),_(this,"setValidateMessages",function(n){r.validateMessages=n}),_(this,"setPreserve",function(n){r.preserve=n}),_(this,"watchList",[]),_(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),_(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(o,i,n)})}}),_(this,"timeoutId",null),_(this,"warningUnhooked",function(){}),_(this,"updateStore",function(n){r.store=n}),_(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),_(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ll;return r.getFieldEntities(n).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),_(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var a=cr(i);return o.get(a)||{INVALIDATE_NAME_PATH:cr(i)}})}),_(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&fe(n)==="object"&&(s=n.strict,a=n.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,d,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.call(v))return}else if(!i&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(m);else{var y="getMeta"in u?u.getMeta():null;a(y)&&c.push(m)}}),Qw(r.store,c.map(cr))}),_(this,"getFieldValue",function(n){r.warningUnhooked();var o=cr(n);return bn(r.store,o)}),_(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:cr(n[a]),errors:[],warnings:[]}})}),_(this,"getFieldError",function(n){r.warningUnhooked();var o=cr(n),i=r.getFieldsError([o])[0];return i.errors}),_(this,"getFieldWarning",function(n){r.warningUnhooked();var o=cr(n),i=r.getFieldsError([o])[0];return i.warnings}),_(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new Ll,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),m=r.getInitialValue(d);if(m!==void 0)Vt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var h=o.get(d);if(h&&h.size>1)Vt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(d),y=u.isListField();!y&&(!n.skipExist||v===void 0)&&r.updateStore(Gn(r.store,d,ee(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,ee(ee(c).map(function(f){return f.entity})))}})):s=i,a(s)}),_(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(Ca(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(cr);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Gn(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),_(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(a){var s=a.name,l=Ve(a,wH),c=cr(s);i.push(c),"value"in l&&r.updateStore(Gn(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),_(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=T(T({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),_(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),a=bn(r.store,i);a===void 0&&r.updateStore(Gn(r.store,i,o))}}),_(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),_(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(f){return!Jw(f.getNamePath(),o)})){var u=r.store;r.updateStore(Gn(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),_(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}default:}}),_(this,"notifyObservers",function(n,o,i){if(r.subscribable){var a=T(T({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,a)})}else r.forceRootUpdate()}),_(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ee(i))}),i}),_(this,"updateValue",function(n,o){var i=cr(n),a=r.store;r.updateStore(Gn(r.store,i,o)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=Qw(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(ee(s)))}),_(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=Ca(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),_(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),_(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],a=new Ll;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=cr(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(n),i}),_(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(o){var s=new Ll;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Ls(n,u)});l.length&&i(l,a)}}),_(this,"validateFields",function(n,o){r.warningUnhooked();var i,a;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,a=o):a=n;var s=!!i,l=s?i.map(cr):[],c=[],u=String(Date.now()),f=new Set,d=a||{},m=d.recursive,h=d.dirty;r.getFieldEntities(!0).forEach(function(p){if(s||l.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(h&&!p.isFieldDirty())){var x=p.getNamePath();if(f.add(x.join(u)),!s||Ls(l,x,m)){var b=p.validateRules(T({validateMessages:T(T({},oy),r.validateMessages)},a));c.push(b.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var w,C=[],R=[];return(w=S.forEach)===null||w===void 0||w.call(S,function(P){var O=P.rule.warningOnly,I=P.errors;O?R.push.apply(R,ee(I)):C.push.apply(C,ee(I))}),C.length?Promise.reject({name:x,errors:C,warnings:R}):{name:x,errors:C,warnings:R}}))}}});var v=NA(c);r.lastValidatePromise=v,v.catch(function(p){return p}).then(function(p){var x=p.map(function(b){var S=b.name;return S});r.notifyObservers(r.store,x,{type:"validateFinish"}),r.triggerOnFieldsChange(x,p)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(p){var x=p.filter(function(b){return b&&b.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:x,outOfDate:r.lastValidatePromise!==v})});y.catch(function(p){return p});var g=l.filter(function(p){return f.has(p.join(u))});return r.triggerOnFieldsChange(g),y}),_(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function RH(e){var t=sy.useRef(),r=sy.useState({}),n=M(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new EH(i);t.current=a.getForm()}return[t.current]}var ly=RH;var dn=E(N());var zs=E(N()),n1=zs.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),o1=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=zs.useContext(n1),s=zs.useRef({});return zs.createElement(n1.Provider,{value:T(T({},a),{},{validateMessages:T(T({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=T(T({},s.current),{},_({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=T({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)};var DA=n1;var OH=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],_H=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,m=d===void 0?"onChange":d,h=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,g=t.onFinishFailed,p=t.clearOnDestroy,x=Ve(t,OH),b=dn.useRef(null),S=dn.useContext(DA),w=ly(a),C=M(w,1),R=C[0],P=R.getInternalHooks(_i),O=P.useSubscribe,I=P.setInitialValues,D=P.setCallbacks,$=P.setValidateMessages,F=P.setPreserve,k=P.destroyForm;dn.useImperativeHandle(r,function(){return T(T({},R),{},{nativeElement:b.current})}),dn.useEffect(function(){return S.registerForm(n,R),function(){S.unregisterForm(n)}},[S,R,n]),$(T(T({},S.validateMessages),f)),D({onValuesChange:h,onFieldsChange:function(A){if(S.triggerFormChange(n,A),v){for(var L=arguments.length,q=new Array(L>1?L-1:0),ne=1;ne{let n=Aa.useContext(pn),o=Aa.useMemo(()=>{let i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return Aa.createElement(pn.Provider,{value:o},e)},LA=Aa.createContext(void 0);var IH=e=>{let{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=i1.default.createElement(FA,{override:!0,status:!0},o)),t&&(o=i1.default.createElement(BD,null,o)),o},Ws=IH;var lo=E(N());function DH(e){return t=>lo.createElement(Ia,{theme:{token:{motion:!1,zIndexPopupBase:0}}},lo.createElement(e,Object.assign({},t)))}var $H=(e,t,r,n,o)=>DH(a=>{let{prefixCls:s,style:l}=a,c=lo.useRef(null),[u,f]=lo.useState(0),[d,m]=lo.useState(0),[h,v]=ar(!1,{value:a.open}),{getPrefixCls:y}=lo.useContext(rt),g=y(n||"select",s);lo.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){let b=new ResizeObserver(w=>{let C=w[0].target;f(C.offsetHeight+8),m(C.offsetWidth)}),S=setInterval(()=>{var w;let C=o?`.${o(g)}`:`.${g}-dropdown`,R=(w=c.current)===null||w===void 0?void 0:w.querySelector(C);R&&(clearInterval(S),b.observe(R))},10);return()=>{clearInterval(S),b.disconnect()}}},[]);let p=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});return r&&(p=r(p)),t&&Object.assign(p,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),lo.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:d}},lo.createElement(e,Object.assign({},p)))}),zA=$H;var oi=E(N()),Q1=E(Ne());var fr=E(N());var R1=E(Ne());var Su=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))};var bt=E(N());var a1=E(N()),WA=E(Ne()),AH=function(t){var r=t.className,n=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(o):n;return a1.createElement("span",{className:r,onMouseDown:function(u){u.preventDefault(),a?.(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:a1.createElement("span",{className:(0,WA.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Bs=AH;var cy=E(N()),BA=function(t,r,n,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=cy.default.useMemo(function(){if(fe(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=cy.default.useMemo(function(){return!!(!a&&o&&(n.length||s)&&!(l==="combobox"&&s===""))},[o,a,n.length,s,l]);return{allowClear:u,clearIcon:cy.default.createElement(Bs,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var uy=E(N()),s1=uy.createContext(null);function fy(){return uy.useContext(s1)}var Cu=E(N());function l1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=Cu.useState(!1),r=M(t,2),n=r[0],o=r[1],i=Cu.useRef(null),a=function(){window.clearTimeout(i.current)};Cu.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[n,s,a]}var Gd=E(N());function Kd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=Gd.useRef(null),r=Gd.useRef(null);Gd.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}var dy=E(N());function c1(e,t,r,n){var o=dy.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},dy.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var ka=E(N()),vy=E(N());function jA(e){return e&&![Qe.ESC,Qe.SHIFT,Qe.BACKSPACE,Qe.TAB,Qe.WIN_KEY,Qe.ALT,Qe.META,Qe.WIN_KEY_RIGHT,Qe.CTRL,Qe.SEMICOLON,Qe.EQUALS,Qe.CAPS_LOCK,Qe.CONTEXT_MENU,Qe.F1,Qe.F2,Qe.F3,Qe.F4,Qe.F5,Qe.F6,Qe.F7,Qe.F8,Qe.F9,Qe.F10,Qe.F11,Qe.F12].includes(e)}var Po=E(N()),d1=E(N()),ck=E(Ne());var ei=E(N()),Yi=E(N()),QA=E(Ne());var zl=E(N()),VA=E(Ne());var kH=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],wu=void 0;function MH(e,t){var r=e.prefixCls,n=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,d=e.children,m=e.display,h=e.order,v=e.component,y=v===void 0?"div":v,g=Ve(e,kH),p=a&&!m;function x(R){l(c,R)}zl.useEffect(function(){return function(){x(null)}},[]);var b=i&&o!==wu?i(o,{index:h}):d,S;n||(S={opacity:p?0:1,height:p?0:wu,overflowY:p?"hidden":wu,order:a?h:wu,pointerEvents:p?"none":wu,position:p?"absolute":wu});var w={};p&&(w["aria-hidden"]=!0);var C=zl.createElement(y,ue({className:(0,VA.default)(!n&&r,u),style:T(T({},S),f)},w,g,{ref:t}),b);return a&&(C=zl.createElement(no,{onResize:function(P){var O=P.offsetWidth;x(O)},disabled:s},C)),C}var HA=zl.forwardRef(MH);HA.displayName="Item";var Eu=HA;var py=E(N()),UA=E(Hi());function u1(e){if(typeof MessageChannel>"u")dt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function qA(){var e=py.useRef(null),t=function(n){e.current||(e.current=[],u1(function(){(0,UA.unstable_batchedUpdates)(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(n)};return t}function Wl(e,t){var r=py.useState(t),n=M(r,2),o=n[0],i=n[1],a=wt(function(s){e(function(){i(s)})});return[o,a]}var js=E(N()),KA=E(Ne());var GA=E(N()),Bl=GA.default.createContext(null);var FH=["component"],LH=["className"],zH=["className"],WH=function(t,r){var n=js.useContext(Bl);if(!n){var o=t.component,i=o===void 0?"div":o,a=Ve(t,FH);return js.createElement(i,ue({},a,{ref:r}))}var s=n.className,l=Ve(n,LH),c=t.className,u=Ve(t,zH);return js.createElement(Bl.Provider,{value:null},js.createElement(Eu,ue({ref:r,className:(0,KA.default)(s,c)},l,u)))},XA=js.forwardRef(WH);XA.displayName="RawItem";var YA=XA;var BH=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],JA="responsive",ZA="invalidate";function jH(e){return"+ ".concat(e.length," ...")}function VH(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,d=e.style,m=e.className,h=e.maxCount,v=e.renderRest,y=e.renderRawRest,g=e.suffix,p=e.component,x=p===void 0?"div":p,b=e.itemComponent,S=e.onVisibleChange,w=Ve(e,BH),C=f==="full",R=qA(),P=Wl(R,null),O=M(P,2),I=O[0],D=O[1],$=I||0,F=Wl(R,new Map),k=M(F,2),z=k[0],B=k[1],j=Wl(R,0),G=M(j,2),V=G[0],H=G[1],K=Wl(R,0),W=M(K,2),A=W[0],L=W[1],q=Wl(R,0),ne=M(q,2),Y=ne[0],X=ne[1],ae=(0,Yi.useState)(null),J=M(ae,2),U=J[0],Q=J[1],te=(0,Yi.useState)(null),Z=M(te,2),re=Z[0],de=Z[1],le=ei.useMemo(function(){return re===null&&C?Number.MAX_SAFE_INTEGER:re||0},[re,I]),pe=(0,Yi.useState)(!1),Oe=M(pe,2),Ce=Oe[0],$e=Oe[1],ce="".concat(n,"-item"),ie=Math.max(V,A),Re=h===JA,Le=i.length&&Re,Ge=h===ZA,Me=Le||typeof h=="number"&&i.length>h,Ie=(0,Yi.useMemo)(function(){var De=i;return Le?I===null&&C?De=i:De=i.slice(0,Math.min(i.length,$/u)):typeof h=="number"&&(De=i.slice(0,h)),De},[i,u,I,h,Le]),je=(0,Yi.useMemo)(function(){return Le?i.slice(le+1):i.slice(Ie.length)},[i,Ie,Le,le]),We=(0,Yi.useCallback)(function(De,Ee){var be;return typeof l=="function"?l(De):(be=l&&De?.[l])!==null&&be!==void 0?be:Ee},[l]),He=(0,Yi.useCallback)(a||function(De){return De},[a]);function ye(De,Ee,be){re===De&&(Ee===void 0||Ee===U)||(de(De),be||($e(De$){ye(ht-1,De-Mt-Y+A);break}}g&&Ze(0)+Y>$&&Q(null)}},[$,z,A,Y,We,Ie]);var lt=Ce&&!!je.length,Rt={};U!==null&&Le&&(Rt={position:"absolute",left:U,top:0});var Tt={prefixCls:ce,responsive:Le,component:b,invalidate:Ge},pt=s?function(De,Ee){var be=We(De,Ee);return ei.createElement(Bl.Provider,{key:be,value:T(T({},Tt),{},{order:Ee,item:De,itemKey:be,registerSize:xe,display:Ee<=le})},s(De,Ee))}:function(De,Ee){var be=We(De,Ee);return ei.createElement(Eu,ue({},Tt,{order:Ee,key:be,item:De,renderItem:He,itemKey:be,registerSize:xe,display:Ee<=le}))},Ae={order:lt?le:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:_e,display:lt},we=v||jH,et=y?ei.createElement(Bl.Provider,{value:T(T({},Tt),Ae)},y(je)):ei.createElement(Eu,ue({},Tt,Ae),typeof we=="function"?we(je):we),Pe=ei.createElement(x,ue({className:(0,QA.default)(!Ge&&n,m),style:d,ref:t},w),Ie.map(pt),Me?et:null,g&&ei.createElement(Eu,ue({},Tt,{responsive:Re,responsiveDisabled:!Le,order:le,className:"".concat(ce,"-suffix"),registerSize:he,display:!0,style:Rt}),g));return Re?ei.createElement(no,{onResize:se,disabled:!Le},Pe):Pe}var Xd=ei.forwardRef(VH);Xd.displayName="Overflow";Xd.Item=YA;Xd.RESPONSIVE=JA;Xd.INVALIDATE=ZA;var ek=Xd;var tk=ek;var Ru=E(N()),nk=E(Ne());function HH(e,t,r){var n=T(T({},e),r?t:{});return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(n[o]=function(){for(var a,s=arguments.length,l=new Array(s),c=0;cx&&(Oe="".concat(Ce.slice(0,x),"..."))}var $e=function(ie){ie&&ie.stopPropagation(),R(Z)};return typeof w=="function"?X(le,Oe,re,pe,$e):Y(Z,Oe,re,pe,$e)},J=function(Z){if(!o.length)return null;var re=typeof S=="function"?S(Z):S;return typeof w=="function"?X(void 0,re,!1,!1,void 0,!0):Y({title:re},re,!1)},U=Po.createElement("div",{className:"".concat(L,"-search"),style:{width:G},onFocus:function(){A(!0)},onBlur:function(){A(!1)}},Po.createElement(my,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:u,autoFocus:m,autoComplete:h,editable:ne,activeDescendantId:v,value:q,onKeyDown:I,onMouseDown:D,onChange:P,onPaste:O,onCompositionStart:$,onCompositionEnd:F,onBlur:k,tabIndex:y,attrs:Go(t,!0)}),Po.createElement("span",{ref:z,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},q,"\xA0")),Q=Po.createElement(tk,{prefixCls:"".concat(L,"-overflow"),data:o,renderItem:ae,renderRest:J,suffix:U,itemKey:XH,maxCount:p});return Po.createElement("span",{className:"".concat(L,"-wrap")},Q,!o.length&&!q&&Po.createElement("span",{className:"".concat(L,"-placeholder")},c))},uk=YH;var ti=E(N());var QH=function(t){var r=t.inputElement,n=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,d=t.values,m=t.placeholder,h=t.tabIndex,v=t.showSearch,y=t.searchValue,g=t.activeValue,p=t.maxLength,x=t.onInputKeyDown,b=t.onInputMouseDown,S=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,R=t.onInputCompositionEnd,P=t.onInputBlur,O=t.title,I=ti.useState(!1),D=M(I,2),$=D[0],F=D[1],k=u==="combobox",z=k||v,B=d[0],j=y||"";k&&g&&!$&&(j=g),ti.useEffect(function(){k&&F(!1)},[k,g]);var G=u!=="combobox"&&!f&&!v?!1:!!j,V=O===void 0?gy(B):O,H=ti.useMemo(function(){return B?null:ti.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:G?{visibility:"hidden"}:void 0},m)},[B,G,m,n]);return ti.createElement("span",{className:"".concat(n,"-selection-wrap")},ti.createElement("span",{className:"".concat(n,"-selection-search")},ti.createElement(my,{ref:i,prefixCls:n,id:o,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:z,activeDescendantId:c,value:j,onKeyDown:x,onMouseDown:b,onChange:function(W){F(!0),S(W)},onPaste:w,onCompositionStart:C,onCompositionEnd:R,onBlur:P,tabIndex:h,attrs:Go(t,!0),maxLength:k?p:void 0})),!k&&B?ti.createElement("span",{className:"".concat(n,"-selection-item"),title:V,style:G?{visibility:"hidden"}:void 0},B.label):null,H)},fk=QH;var JH=function(t,r){var n=(0,vy.useRef)(null),o=(0,vy.useRef)(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,d=t.autoClearSearchValue,m=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,g=t.onInputBlur,p=t.domRef;ka.useImperativeHandle(r,function(){return{focus:function(V){n.current.focus(V)},blur:function(){n.current.blur()}}});var x=Kd(0),b=M(x,2),S=b[0],w=b[1],C=function(V){var H=V.which,K=n.current instanceof HTMLTextAreaElement;!K&&a&&(H===Qe.UP||H===Qe.DOWN)&&V.preventDefault(),y&&y(V),H===Qe.ENTER&&s==="tags"&&!o.current&&!a&&h?.(V.target.value),!(K&&!a&&~[Qe.UP,Qe.DOWN,Qe.LEFT,Qe.RIGHT].indexOf(H))&&jA(H)&&v(!0)},R=function(){w(!0)},P=(0,vy.useRef)(null),O=function(V){m(V,!0,o.current)!==!1&&v(!0)},I=function(){o.current=!0},D=function(V){o.current=!1,s!=="combobox"&&O(V.target.value)},$=function(V){var H=V.target.value;if(c&&P.current&&/[\r\n]/.test(P.current)){var K=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(K,P.current)}P.current=null,O(H)},F=function(V){var H=V.clipboardData,K=H?.getData("text");P.current=K||""},k=function(V){var H=V.target;if(H!==n.current){var K=document.body.style.msTouchAction!==void 0;K?setTimeout(function(){n.current.focus()}):n.current.focus()}},z=function(V){var H=S();V.target!==n.current&&!H&&!(s==="combobox"&&u)&&V.preventDefault(),(s!=="combobox"&&(!l||!H)||!a)&&(a&&d!==!1&&m("",!0,!1),v())},B={inputRef:n,onInputKeyDown:C,onInputMouseDown:R,onInputChange:$,onInputPaste:F,onInputCompositionStart:I,onInputCompositionEnd:D,onInputBlur:g},j=s==="multiple"||s==="tags"?ka.createElement(uk,ue({},t,B)):ka.createElement(fk,ue({},t,B));return ka.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:k,onMouseDown:z},f&&ka.createElement("div",{className:"".concat(i,"-prefix")},f),j)},ZH=ka.forwardRef(JH),dk=ZH;var xy=E(Ne());var xt=E(N());var vk=E(Ne());var ri=E(N());var pk=E(Ne()),yy=E(N());function p1(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,d=yy.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],y=h[0],g=h[1],p=v[0],x=v[1];y===p||!["t","b"].includes(y)?m.top=f:y==="t"?m.top=0:m.bottom=0,g===x||!["l","r"].includes(g)?m.left=c:g==="l"?m.left=0:m.right=0}return yy.createElement("div",{ref:d,className:(0,pk.default)("".concat(t,"-arrow"),a),style:m},s)}var mk=E(Ne());var m1=E(N());function g1(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?m1.createElement(qo,ue({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return m1.createElement("div",{style:{zIndex:n},className:(0,mk.default)("".concat(t,"-mask"),s)})}):null}var gk=E(N()),e9=gk.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),hk=e9;var t9=ri.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,m=e.arrow,h=e.arrowPos,v=e.align,y=e.motion,g=e.maskMotion,p=e.forceRender,x=e.getPopupContainer,b=e.autoDestroy,S=e.portal,w=e.zIndex,C=e.onMouseEnter,R=e.onMouseLeave,P=e.onPointerEnter,O=e.onPointerDownCapture,I=e.ready,D=e.offsetX,$=e.offsetY,F=e.offsetR,k=e.offsetB,z=e.onAlign,B=e.onPrepare,j=e.stretch,G=e.targetWidth,V=e.targetHeight,H=typeof r=="function"?r():r,K=l||c,W=x?.length>0,A=ri.useState(!x||!W),L=M(A,2),q=L[0],ne=L[1];if(vt(function(){!q&&W&&a&&ne(!0)},[q,W,a]),!q)return null;var Y="auto",X={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(I||!l){var ae,J=v.points,U=v.dynamicInset||((ae=v._experimental)===null||ae===void 0?void 0:ae.dynamicInset),Q=U&&J[0][1]==="r",te=U&&J[0][0]==="b";Q?(X.right=F,X.left=Y):(X.left=D,X.right=Y),te?(X.bottom=k,X.top=Y):(X.top=$,X.bottom=Y)}var Z={};return j&&(j.includes("height")&&V?Z.height=V:j.includes("minHeight")&&V&&(Z.minHeight=V),j.includes("width")&&G?Z.width=G:j.includes("minWidth")&&G&&(Z.minWidth=G)),l||(Z.pointerEvents="none"),ri.createElement(S,{open:p||K,getContainer:x&&function(){return x(a)},autoDestroy:b},ri.createElement(g1,{prefixCls:o,open:l,zIndex:w,mask:d,motion:g}),ri.createElement(no,{onResize:z,disabled:!l},function(re){return ri.createElement(qo,ue({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:B,onEnterPrepare:B,visible:l,onVisibleChanged:function(le){var pe;y==null||(pe=y.onVisibleChanged)===null||pe===void 0||pe.call(y,le),s(le)}}),function(de,le){var pe=de.className,Oe=de.style,Ce=(0,vk.default)(o,pe,n);return ri.createElement("div",{ref:zr(re,t,le),className:Ce,style:T(T(T(T({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},X),Z),Oe),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:R,onPointerEnter:P,onClick:f,onPointerDownCapture:O},m&&ri.createElement(p1,{prefixCls:o,arrow:m,arrowPos:h,align:v}),ri.createElement(hk,{cache:!l&&!u},H))})}))}),yk=t9;var Ou=E(N()),r9=Ou.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Si(r),i=Ou.useCallback(function(s){hd(t,n?n(s):s)},[n]),a=bi(i,xs(r));return o?Ou.cloneElement(r,{ref:a}):r}),xk=r9;var bk=E(N()),n9=bk.createContext(null),h1=n9;var Ck=E(N());function Sk(e){return e?Array.isArray(e)?e:[e]:[]}function v1(e,t,r,n){return Ck.useMemo(function(){var o=Sk(r??t),i=Sk(n??t),a=new Set(o),s=new Set(i);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 jl=E(N());function o9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?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 wk(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Qd(e){return _u(parseFloat(e),0)}function x1(e,t){var r=T({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Vs(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=n.getBoundingClientRect(),d=n.offsetHeight,m=n.clientHeight,h=n.offsetWidth,v=n.clientWidth,y=Qd(s),g=Qd(l),p=Qd(c),x=Qd(u),b=_u(Math.round(f.width/h*1e3)/1e3),S=_u(Math.round(f.height/d*1e3)/1e3),w=(h-v-p-x)*b,C=(d-m-y-g)*S,R=y*S,P=g*S,O=p*b,I=x*b,D=0,$=0;if(i==="clip"){var F=Qd(a);D=F*b,$=F*S}var k=f.x+O-D,z=f.y+R-$,B=k+f.width+2*D-O-I-w,j=z+f.height+2*$-R-P-C;r.left=Math.max(r.left,k),r.top=Math.max(r.top,z),r.right=Math.min(r.right,B),r.bottom=Math.min(r.bottom,j)}}),r}function Ek(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Rk(e,t){var r=t||[],n=M(r,2),o=n[0],i=n[1];return[Ek(e.width,o),Ek(e.height,i)]}function Ok(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Pu(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Hs(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function b1(e,t,r,n,o,i,a){var s=jl.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=M(s,2),c=l[0],u=l[1],f=jl.useRef(0),d=jl.useMemo(function(){return t?Jd(t):[]},[t]),m=jl.useRef({}),h=function(){m.current={}};e||h();var v=wt(function(){if(t&&r&&e){let zn=function(ic,qa){var ac=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie,Dp=A.x+ic,$p=A.y+qa,K0=Dp+Q,Je=$p+U,ct=Math.max(Dp,ac.left),hr=Math.max($p,ac.top),Fr=Math.min(K0,ac.right),vr=Math.min(Je,ac.bottom);return Math.max(0,(Fr-ct)*(vr-hr))},oc=function(){rr=A.y+be,pr=rr+U,mr=A.x+Ee,Mn=mr+Q};var SR=zn,CR=oc,p,x,b,S,w=t,C=w.ownerDocument,R=Vs(w),P=R.getComputedStyle(w),O=P.width,I=P.height,D=P.position,$=w.style.left,F=w.style.top,k=w.style.right,z=w.style.bottom,B=w.style.overflow,j=T(T({},o[n]),i),G=C.createElement("div");(p=w.parentElement)===null||p===void 0||p.appendChild(G),G.style.left="".concat(w.offsetLeft,"px"),G.style.top="".concat(w.offsetTop,"px"),G.style.position=D,G.style.height="".concat(w.offsetHeight,"px"),G.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var V;if(Array.isArray(r))V={x:r[0],y:r[1],width:0,height:0};else{var H,K,W=r.getBoundingClientRect();W.x=(H=W.x)!==null&&H!==void 0?H:W.left,W.y=(K=W.y)!==null&&K!==void 0?K:W.top,V={x:W.x,y:W.y,width:W.width,height:W.height}}var A=w.getBoundingClientRect();A.x=(x=A.x)!==null&&x!==void 0?x:A.left,A.y=(b=A.y)!==null&&b!==void 0?b:A.top;var L=C.documentElement,q=L.clientWidth,ne=L.clientHeight,Y=L.scrollWidth,X=L.scrollHeight,ae=L.scrollTop,J=L.scrollLeft,U=A.height,Q=A.width,te=V.height,Z=V.width,re={left:0,top:0,right:q,bottom:ne},de={left:-J,top:-ae,right:Y-J,bottom:X-ae},le=j.htmlRegion,pe="visible",Oe="visibleFirst";le!=="scroll"&&le!==Oe&&(le=pe);var Ce=le===Oe,$e=x1(de,d),ce=x1(re,d),ie=le===pe?ce:$e,Re=Ce?ce:ie;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Le=w.getBoundingClientRect();w.style.left=$,w.style.top=F,w.style.right=k,w.style.bottom=z,w.style.overflow=B,(S=w.parentElement)===null||S===void 0||S.removeChild(G);var Ge=_u(Math.round(Q/parseFloat(O)*1e3)/1e3),Me=_u(Math.round(U/parseFloat(I)*1e3)/1e3);if(Ge===0||Me===0||Cl(r)&&!Pv(r))return;var Ie=j.offset,je=j.targetOffset,We=Rk(A,Ie),He=M(We,2),ye=He[0],se=He[1],xe=Rk(V,je),_e=M(xe,2),he=_e[0],Ze=_e[1];V.x-=he,V.y-=Ze;var lt=j.points||[],Rt=M(lt,2),Tt=Rt[0],pt=Rt[1],Ae=Ok(pt),we=Ok(Tt),et=Pu(V,Ae),Pe=Pu(A,we),De=T({},j),Ee=et.x-Pe.x+ye,be=et.y-Pe.y+se,ht=zn(Ee,be),Mt=zn(Ee,be,ce),Fe=Pu(V,["t","l"]),Se=Pu(A,["t","l"]),Ke=Pu(V,["b","r"]),Be=Pu(A,["b","r"]),ze=j.overflow||{},tt=ze.adjustX,kt=ze.adjustY,Nt=ze.shiftX,tr=ze.shiftY,Ft=function(qa){return typeof qa=="boolean"?qa:qa>=0},rr,pr,mr,Mn;oc();var gr=Ft(kt),Lt=we[0]===Ae[0];if(gr&&we[0]==="t"&&(pr>Re.bottom||m.current.bt)){var Te=be;Lt?Te-=U-te:Te=Fe.y-Be.y-se;var Ue=zn(Ee,Te),ke=zn(Ee,Te,ce);Ue>ht||Ue===ht&&(!Ce||ke>=Mt)?(m.current.bt=!0,be=Te,se=-se,De.points=[Hs(we,0),Hs(Ae,0)]):m.current.bt=!1}if(gr&&we[0]==="b"&&(rrht||nt===ht&&(!Ce||It>=Mt)?(m.current.tb=!0,be=ve,se=-se,De.points=[Hs(we,0),Hs(Ae,0)]):m.current.tb=!1}var Dt=Ft(tt),gn=we[1]===Ae[1];if(Dt&&we[1]==="l"&&(Mn>Re.right||m.current.rl)){var kr=Ee;gn?kr-=Q-Z:kr=Fe.x-Be.x-ye;var jr=zn(kr,be),Pr=zn(kr,be,ce);jr>ht||jr===ht&&(!Ce||Pr>=Mt)?(m.current.rl=!0,Ee=kr,ye=-ye,De.points=[Hs(we,1),Hs(Ae,1)]):m.current.rl=!1}if(Dt&&we[1]==="r"&&(mrht||Yn===ht&&(!Ce||Fn>=Mt)?(m.current.lr=!0,Ee=Vr,ye=-ye,De.points=[Hs(we,1),Hs(Ae,1)]):m.current.lr=!1}oc();var tn=Nt===!0?0:Nt;typeof tn=="number"&&(mrce.right&&(Ee-=Mn-ce.right-ye,V.x>ce.right-tn&&(Ee+=V.x-ce.right+tn)));var En=tr===!0?0:tr;typeof En=="number"&&(rrce.bottom&&(be-=pr-ce.bottom-se,V.y>ce.bottom-En&&(be+=V.y-ce.bottom+En)));var Va=A.x+Ee,Ha=Va+Q,Io=A.y+be,nc=Io+U,Ua=V.x,St=Ua+Z,ft=V.y,rn=ft+te,nn=Math.max(Va,Ua),Sr=Math.min(Ha,St),Mr=(nn+Sr)/2,mo=Mr-Va,Qn=Math.max(Io,ft),Do=Math.min(nc,rn),$i=(Qn+Do)/2,ci=$i-Io;a?.(t,De);var Ai=Le.right-A.x-(Ee+A.width),Ln=Le.bottom-A.y-(be+A.height);Ge===1&&(Ee=Math.round(Ee),Ai=Math.round(Ai)),Me===1&&(be=Math.round(be),Ln=Math.round(Ln));var G0={ready:!0,offsetX:Ee/Ge,offsetY:be/Me,offsetR:Ai/Ge,offsetB:Ln/Me,arrowX:mo/Ge,arrowY:ci/Me,scaleX:Ge,scaleY:Me,align:De};u(G0)}}),y=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},g=function(){u(function(x){return T(T({},x),{},{ready:!1})})};return vt(g,[n]),vt(function(){e||g()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function S1(e,t,r,n,o){vt(function(){if(e&&t&&r){let d=function(){n(),o()};var f=d,i=t,a=r,s=Jd(i),l=Jd(a),c=Vs(a),u=new Set([c].concat(ee(s),ee(l)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}var Zd=E(N());function C1(e,t,r,n,o,i,a,s){var l=Zd.useRef(e);l.current=e;var c=Zd.useRef(!1);Zd.useEffect(function(){if(t&&n&&(!o||i)){var f=function(){c.current=!1},d=function(b){var S;l.current&&!a(((S=b.composedPath)===null||S===void 0||(S=S.call(b))===null||S===void 0?void 0:S[0])||b.target)&&!c.current&&s(!1)},m=Vs(n);m.addEventListener("pointerdown",f,!0),m.addEventListener("mousedown",d,!0),m.addEventListener("contextmenu",d,!0);var h=Dl(r);if(h&&(h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0)),0)var v,y,g,p;return function(){m.removeEventListener("pointerdown",f,!0),m.removeEventListener("mousedown",d,!0),m.removeEventListener("contextmenu",d,!0),h&&(h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var i9=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function a9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hw,t=xt.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,d=r.defaultPopupVisible,m=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,g=y===void 0?.1:y,p=r.focusDelay,x=r.blurDelay,b=r.mask,S=r.maskClosable,w=S===void 0?!0:S,C=r.getPopupContainer,R=r.forceRender,P=r.autoDestroy,O=r.destroyPopupOnHide,I=r.popup,D=r.popupClassName,$=r.popupStyle,F=r.popupPlacement,k=r.builtinPlacements,z=k===void 0?{}:k,B=r.popupAlign,j=r.zIndex,G=r.stretch,V=r.getPopupClassNameFromAlign,H=r.fresh,K=r.alignPoint,W=r.onPopupClick,A=r.onPopupAlign,L=r.arrow,q=r.popupMotion,ne=r.maskMotion,Y=r.popupTransitionName,X=r.popupAnimation,ae=r.maskTransitionName,J=r.maskAnimation,U=r.className,Q=r.getTriggerDOMNode,te=Ve(r,i9),Z=P||O||!1,re=xt.useState(!1),de=M(re,2),le=de[0],pe=de[1];vt(function(){pe(Su())},[]);var Oe=xt.useRef({}),Ce=xt.useContext(h1),$e=xt.useMemo(function(){return{registerSubPopup:function(ct,hr){Oe.current[ct]=hr,Ce?.registerSubPopup(ct,hr)}}},[Ce]),ce=Yv(),ie=xt.useState(null),Re=M(ie,2),Le=Re[0],Ge=Re[1],Me=xt.useRef(null),Ie=wt(function(Je){Me.current=Je,Cl(Je)&&Le!==Je&&Ge(Je),Ce?.registerSubPopup(ce,Je)}),je=xt.useState(null),We=M(je,2),He=We[0],ye=We[1],se=xt.useRef(null),xe=wt(function(Je){Cl(Je)&&He!==Je&&(ye(Je),se.current=Je)}),_e=xt.Children.only(a),he=_e?.props||{},Ze={},lt=wt(function(Je){var ct,hr,Fr=He;return Fr?.contains(Je)||((ct=Dl(Fr))===null||ct===void 0?void 0:ct.host)===Je||Je===Fr||Le?.contains(Je)||((hr=Dl(Le))===null||hr===void 0?void 0:hr.host)===Je||Je===Le||Object.values(Oe.current).some(function(vr){return vr?.contains(Je)||Je===vr})}),Rt=y1(i,q,X,Y),Tt=y1(i,ne,J,ae),pt=xt.useState(d||!1),Ae=M(pt,2),we=Ae[0],et=Ae[1],Pe=f??we,De=wt(function(Je){f===void 0&&et(Je)});vt(function(){et(f||!1)},[f]);var Ee=xt.useRef(Pe);Ee.current=Pe;var be=xt.useRef([]);be.current=[];var ht=wt(function(Je){var ct;De(Je),((ct=be.current[be.current.length-1])!==null&&ct!==void 0?ct:Pe)!==Je&&(be.current.push(Je),m?.(Je))}),Mt=xt.useRef(),Fe=function(){clearTimeout(Mt.current)},Se=function(ct){var hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Fe(),hr===0?ht(ct):Mt.current=setTimeout(function(){ht(ct)},hr*1e3)};xt.useEffect(function(){return Fe},[]);var Ke=xt.useState(!1),Be=M(Ke,2),ze=Be[0],tt=Be[1];vt(function(Je){(!Je||Pe)&&tt(!0)},[Pe]);var kt=xt.useState(null),Nt=M(kt,2),tr=Nt[0],Ft=Nt[1],rr=xt.useState(null),pr=M(rr,2),mr=pr[0],Mn=pr[1],gr=function(ct){Mn([ct.clientX,ct.clientY])},Lt=b1(Pe,Le,K&&mr!==null?mr:He,F,z,B,A),Te=M(Lt,11),Ue=Te[0],ke=Te[1],ve=Te[2],nt=Te[3],It=Te[4],Dt=Te[5],gn=Te[6],kr=Te[7],jr=Te[8],Pr=Te[9],Vr=Te[10],Yn=v1(le,l,c,u),Fn=M(Yn,2),tn=Fn[0],En=Fn[1],Va=tn.has("click"),Ha=En.has("click")||En.has("contextMenu"),Io=wt(function(){ze||Vr()}),nc=function(){Ee.current&&K&&Ha&&Se(!1)};S1(Pe,He,Le,Io,nc),vt(function(){Io()},[mr,F]),vt(function(){Pe&&!(z!=null&&z[F])&&Io()},[JSON.stringify(B)]);var Ua=xt.useMemo(function(){var Je=wk(z,i,Pr,K);return(0,xy.default)(Je,V?.(Pr))},[Pr,V,z,i,K]);xt.useImperativeHandle(n,function(){return{nativeElement:se.current,popupElement:Me.current,forceAlign:Io}});var St=xt.useState(0),ft=M(St,2),rn=ft[0],nn=ft[1],Sr=xt.useState(0),Mr=M(Sr,2),mo=Mr[0],Qn=Mr[1],Do=function(){if(G&&He){var ct=He.getBoundingClientRect();nn(ct.width),Qn(ct.height)}},$i=function(){Do(),Io()},ci=function(ct){tt(!1),Vr(),h?.(ct)},Ai=function(){return new Promise(function(ct){Do(),Ft(function(){return ct})})};vt(function(){tr&&(Vr(),tr(),Ft(null))},[tr]);function Ln(Je,ct,hr,Fr){Ze[Je]=function(vr){var Ap;Fr?.(vr),Se(ct,hr);for(var X0=arguments.length,wR=new Array(X0>1?X0-1:0),kp=1;kp1?hr-1:0),vr=1;vr1?hr-1:0),vr=1;vr1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],i=w1(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,d){Array.isArray(f)&&f.forEach(function(m){if(d||!(l in m)){var h=m[s];o.push({key:Tk(m,o.length),groupOption:d,data:m,label:m[a],value:h})}else{var v=m[c];v===void 0&&n&&(v=m.label),o.push({key:Tk(m,o.length),group:!0,data:m,label:v}),u(m[l],!0)}})}return u(e,!1),o}function tp(e){var t=T({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Ik=function(t,r,n){if(!r||!r.length)return null;var o=!1,i=function s(l,c){var u=_h(c),f=u[0],d=u.slice(1);if(!f)return[l];var m=l.split(f);return o=o||m.length>1,m.reduce(function(h,v){return[].concat(ee(h),ee(s(v,d)))},[]).filter(Boolean)},a=i(t,r);return o?typeof n<"u"?a.slice(0,n):a:null};var Dk=E(N()),f9=Dk.createContext(null),Tu=f9;var $k=E(N());function E1(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return $k.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(fe(i))?i:a}).join(", ")),r.length>n?", ...":null)}var d9=["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"],p9=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],rp=function(t){return t==="tags"||t==="multiple"},m9=bt.forwardRef(function(e,t){var r,n=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,d=e.emptyOptions,m=e.notFoundContent,h=m===void 0?"Not Found":m,v=e.onClear,y=e.mode,g=e.disabled,p=e.loading,x=e.getInputElement,b=e.getRawInputElement,S=e.open,w=e.defaultOpen,C=e.onDropdownVisibleChange,R=e.activeValue,P=e.onActiveValueChange,O=e.activeDescendantId,I=e.searchValue,D=e.autoClearSearchValue,$=e.onSearch,F=e.onSearchSplit,k=e.tokenSeparators,z=e.allowClear,B=e.prefix,j=e.suffixIcon,G=e.clearIcon,V=e.OptionList,H=e.animation,K=e.transitionName,W=e.dropdownStyle,A=e.dropdownClassName,L=e.dropdownMatchSelectWidth,q=e.dropdownRender,ne=e.dropdownAlign,Y=e.placement,X=e.builtinPlacements,ae=e.getPopupContainer,J=e.showAction,U=J===void 0?[]:J,Q=e.onFocus,te=e.onBlur,Z=e.onKeyUp,re=e.onKeyDown,de=e.onMouseDown,le=Ve(e,d9),pe=rp(y),Oe=(a!==void 0?a:pe)||y==="combobox",Ce=T({},le);p9.forEach(function(St){delete Ce[St]}),c?.forEach(function(St){delete Ce[St]});var $e=bt.useState(!1),ce=M($e,2),ie=ce[0],Re=ce[1];bt.useEffect(function(){Re(Su())},[]);var Le=bt.useRef(null),Ge=bt.useRef(null),Me=bt.useRef(null),Ie=bt.useRef(null),je=bt.useRef(null),We=bt.useRef(!1),He=l1(),ye=M(He,3),se=ye[0],xe=ye[1],_e=ye[2];bt.useImperativeHandle(t,function(){var St,ft;return{focus:(St=Ie.current)===null||St===void 0?void 0:St.focus,blur:(ft=Ie.current)===null||ft===void 0?void 0:ft.blur,scrollTo:function(nn){var Sr;return(Sr=je.current)===null||Sr===void 0?void 0:Sr.scrollTo(nn)},nativeElement:Le.current||Ge.current}});var he=bt.useMemo(function(){var St;if(y!=="combobox")return I;var ft=(St=u[0])===null||St===void 0?void 0:St.value;return typeof ft=="string"||typeof ft=="number"?String(ft):""},[I,y,u]),Ze=y==="combobox"&&typeof x=="function"&&x()||null,lt=typeof b=="function"&&b(),Rt=bi(Ge,lt==null||(r=lt.props)===null||r===void 0?void 0:r.ref),Tt=bt.useState(!1),pt=M(Tt,2),Ae=pt[0],we=pt[1];vt(function(){we(!0)},[]);var et=ar(!1,{defaultValue:w,value:S}),Pe=M(et,2),De=Pe[0],Ee=Pe[1],be=Ae?De:!1,ht=!h&&d;(g||ht&&be&&y==="combobox")&&(be=!1);var Mt=ht?!1:be,Fe=bt.useCallback(function(St){var ft=St!==void 0?St:!be;g||(Ee(ft),be!==ft&&C?.(ft))},[g,be,Ee,C]),Se=bt.useMemo(function(){return(k||[]).some(function(St){return[` +}`),o)}else Gi(o);return function(){Gi(o)}},[t,o])}var j$=!1;function Uw(e){return typeof e=="boolean"&&(j$=e),j$}var V$=function(t){return t===!1?!1:!Yt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},zV=Qo.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=Qo.useState(r),u=F(c,2),f=u[0],d=u[1],m=f||r;Qo.useEffect(function(){(s||r)&&d(r)},[r,s]);var h=Qo.useState(function(){return V$(o)}),v=F(h,2),y=v[0],g=v[1];Qo.useEffect(function(){var D=V$(o);g(D??null)});var p=Vw(m&&!y,i),x=F(p,2),b=x[0],S=x[1],w=y??b;Hw(n&&r&&Yt()&&(w===b||w===document.body));var C=null;if(l&&bi(l)&&t){var R=l;C=R.ref}var P=xi(C,t);if(!m||!Yt()||y===void 0)return null;var O=w===!1||Uw(),I=l;return t&&(I=Qo.cloneElement(l,{ref:P})),Qo.createElement(Qv.Provider,{value:S},O?I:(0,H$.createPortal)(I,w))}),U$=zV;var qw=U$;var Vd=E(N());function WV(){var e=T({},Vd);return e.useId}var q$=0;var G$=WV(),Jv=G$?function(t){var r=G$();return t||r}:function(t){var r=Vd.useState("ssr-id"),n=F(r,2),o=n[0],i=n[1];return Vd.useEffect(function(){var a=q$;q$+=1,i("rc_unique_".concat(a))},[]),t||o};var s1=E(N());var ka=E(N());var FA=E(N());var Gn=E(N());var K$=E(N()),Oi="RC_FORM_INTERNAL_HOOKS",Kt=function(){Vt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},BV=K$.createContext({getFieldValue:Kt,getFieldsValue:Kt,getFieldError:Kt,getFieldWarning:Kt,getFieldsError:Kt,isFieldsTouched:Kt,isFieldTouched:Kt,isFieldValidating:Kt,isFieldsValidating:Kt,resetFields:Kt,setFields:Kt,setFieldValue:Kt,setFieldsValue:Kt,validateFields:Kt,submit:Kt,getInternalHooks:function(){return Kt(),{dispatch:Kt,initEntityValue:Kt,registerField:Kt,useSubscribe:Kt,setInitialValues:Kt,destroyForm:Kt,setCallbacks:Kt,registerWatch:Kt,getFields:Kt,setValidateMessages:Kt,setPreserve:Kt,getInitialValue:Kt}}}),_i=BV;var X$=E(N()),jV=X$.createContext(null),Fs=jV;function Hd(e){return e==null?[]:Array.isArray(e)?e:[e]}function Y$(e){return e&&!!e._init}function Zv(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ey=Zv();function Q$(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function J$(e,t,r){if(yd())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Ss(o,r.prototype),o}function ty(e){var t=typeof Map=="function"?new Map:void 0;return ty=function(n){if(n===null||!Q$(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return J$(n,arguments,Ol(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ss(o,n)},ty(e)}var VV=/%[sdj%]/g,tA=function(){};typeof process<"u"&&process.env;function ry(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Gr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function HV(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function At(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||HV(t)&&typeof e=="string"&&!e)}function UV(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,ne(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function Z$(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,st.max?o.push(Gr(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(Gr(i.messages[f].range,t.fullField,t.min,t.max))},iA=QV;var JV=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||At(r,a||t.type))&&o.push(Gr(i.messages.required,t.fullField))},ny=JV;var oy,aA=function(){if(oy)return oy;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(r).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(r).concat(t(S)),"g")},u.v6=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(a).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,h=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',b="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(m,"|").concat(h,"|").concat(v).concat(y).concat(g,")").concat(p).concat(x);return oy=new RegExp("(?:^".concat(b,"$)"),"i"),oy};var sA={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ud={integer:function(t){return Ud.number(t)&&parseInt(t,10)===t},float:function(t){return Ud.number(t)&&!Ud.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ce(t)==="object"&&!Ud.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(sA.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(aA())},hex:function(t){return typeof t=="string"&&!!t.match(sA.hex)}},ZV=function(t,r,n,o,i){if(t.required&&r===void 0){ny(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Ud[s](r)||o.push(Gr(i.messages.types[s],t.fullField,t.type)):s&&ce(r)!==t.type&&o.push(Gr(i.messages.types[s],t.fullField,t.type))},lA=ZV;var eH=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(Gr(i.messages.whitespace,t.fullField))},cA=eH;var it={required:ny,whitespace:cA,type:lA,range:iA,enum:nA,pattern:oA};var tH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i)}n(a)},uA=tH;var rH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();it.required(t,r,o,a,i,"array"),r!=null&&(it.type(t,r,o,a,i),it.range(t,r,o,a,i))}n(a)},fA=rH;var nH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&it.type(t,r,o,a,i)}n(a)},dA=nH;var oH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r,"date")&&!t.required)return n();if(it.required(t,r,o,a,i),!At(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),it.type(t,l,o,a,i),l&&it.range(t,l.getTime(),o,a,i)}}n(a)},pA=oH;var iH="enum",aH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&it[iH](t,r,o,a,i)}n(a)},mA=aH;var sH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&(it.type(t,r,o,a,i),it.range(t,r,o,a,i))}n(a)},gA=sH;var lH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&(it.type(t,r,o,a,i),it.range(t,r,o,a,i))}n(a)},hA=lH;var cH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&it.type(t,r,o,a,i)}n(a)},vA=cH;var uH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&(it.type(t,r,o,a,i),it.range(t,r,o,a,i))}n(a)},yA=uH;var fH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),r!==void 0&&it.type(t,r,o,a,i)}n(a)},xA=fH;var dH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r,"string")&&!t.required)return n();it.required(t,r,o,a,i),At(r,"string")||it.pattern(t,r,o,a,i)}n(a)},bA=dH;var pH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r)&&!t.required)return n();it.required(t,r,o,a,i),At(r)||it.type(t,r,o,a,i)}n(a)},SA=pH;var mH=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":ce(r);it.required(t,r,o,a,i,s),n(a)},CA=mH;var gH=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(At(r,"string")&&!t.required)return n();it.required(t,r,o,a,i,"string"),At(r,"string")||(it.type(t,r,o,a,i),it.range(t,r,o,a,i),it.pattern(t,r,o,a,i),t.whitespace===!0&&it.whitespace(t,r,o,a,i))}n(a)},wA=gH;var hH=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(At(r,a)&&!t.required)return n();it.required(t,r,o,s,i,a),At(r,a)||it.type(t,r,o,s,i)}n(s)},iy=hH;var bu={string:wA,method:vA,number:yA,boolean:dA,regexp:SA,integer:hA,float:gA,array:fA,object:xA,enum:mA,pattern:bA,date:pA,url:iy,hex:iy,email:iy,required:CA,any:uA};var qd=function(){function e(t){at(this,e),_(this,"rules",null),_(this,"_messages",ey),this.define(t)}return st(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ce(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];n.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=Kw(Zv(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var v=[],y={};function g(x){if(Array.isArray(x)){var b;v=(b=v).concat.apply(b,ne(x))}else v.push(x)}for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(C)?C:[C];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&y.message!==void 0&&(R=[].concat(y.message));var P=R.map(Gw(y,a));if(s.first&&P.length)return m[y.field]=1,v(P);if(!g)v(P);else{if(y.required&&!h.value)return y.message!==void 0?P=[].concat(y.message).map(Gw(y,a)):s.error&&(P=[s.error(y,Gr(s.messages.required,y.field))]),v(P);var O={};y.defaultField&&Object.keys(h.value).map(function($){O[$]=y.defaultField}),O=T(T({},O),h.rule.fields);var I={};Object.keys(O).forEach(function($){var L=O[$],A=Array.isArray(L)?L:[L];I[$]=A.map(p.bind(null,$))});var D=new e(I);D.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),D.validate(h.value,h.rule.options||s,function($){var L=[];P&&P.length&&L.push.apply(L,ne(P)),$&&$.length&&L.push.apply(L,ne($)),v(L.length?L:null)})}}var b;if(y.asyncValidator)b=y.asyncValidator(y,h.value,x,h.source,s);else if(y.validator){try{b=y.validator(y,h.value,x,h.source,s)}catch(C){var S,w;(S=(w=console).error)===null||S===void 0||S.call(w,C),s.suppressValidatorError||setTimeout(function(){throw C},0),x(C.message)}b===!0?x():b===!1?x(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):b instanceof Array?x(b):b instanceof Error&&x(b.message)}b&&b.then&&b.then(function(){return x()},function(C){return x(C)})},function(h){c(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!bu.hasOwnProperty(r.type))throw new Error(Gr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?bu.required:bu[this.getType(r)]||void 0}}]),e}();_(qd,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");bu[t]=r});_(qd,"warning",tA);_(qd,"messages",ey);_(qd,"validators",bu);var EA=qd;var sy=E(N());var Oo="'${name}' is not a valid ${type}",ay={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:Oo,method:Oo,array:Oo,object:Oo,number:Oo,date:Oo,boolean:Oo,integer:Oo,float:Oo,regexp:Oo,email:Oo,url:Oo,hex:Oo},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}"}};var RA=EA;function vH(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var OA="CODE_LOGIC_ERROR";function Xw(e,t,r,n,o){return Yw.apply(this,arguments)}function Yw(){return Yw=Ur(Et().mark(function e(t,r,n,o,i){var a,s,l,c,u,f,d,m,h;return Et().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=T({},n),delete a.ruleIndex,RA.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(OA)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new RA(_({},t,[a])),u=wa(ay,o.validateMessages),c.messages(u),f=[],y.prev=10,y.next=13,Promise.resolve(c.validate(_({},t,r),T({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(g,p){var x=g.message,b=x===OA?u.default:x;return sy.isValidElement(b)?sy.cloneElement(b,{key:"error_".concat(p)}):b}));case 18:if(!(!f.length&&l)){y.next=23;break}return y.next=21,Promise.all(r.map(function(g,p){return Xw("".concat(t,".").concat(p),g,l,o,i)}));case 21:return d=y.sent,y.abrupt("return",d.reduce(function(g,p){return[].concat(ne(g),ne(p))},[]));case 23:return m=T(T({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=f.map(function(g){return typeof g=="string"?vH(g,m):g}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),Yw.apply(this,arguments)}function _A(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,f){var d=u.validator,m=T(T({},u),{},{ruleIndex:f});return d&&(m.validator=function(h,v,y){var g=!1,p=function(){for(var S=arguments.length,w=new Array(S),C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return e1(t,n,r)})}function e1(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function PA(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ce(e)!=="object"||ce(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return ne(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function TA(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ce(t.target)==="object"&&e in t.target?t.target[e]:t}function t1(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(ne(e.slice(0,r)),[o],ne(e.slice(r,t)),ne(e.slice(t+1,n))):i<0?[].concat(ne(e.slice(0,t)),ne(e.slice(t+1,r+1)),[o],ne(e.slice(r+1,n))):e}var bH=["name"],Jo=[];function r1(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var n1=function(e){$r(r,e);var t=Ar(r);function r(n){var o;if(at(this,r),o=t.call(this,n),_(Ye(o),"state",{resetCount:0}),_(Ye(o),"cancelRegisterFunc",null),_(Ye(o),"mounted",!1),_(Ye(o),"touched",!1),_(Ye(o),"dirty",!1),_(Ye(o),"validatePromise",void 0),_(Ye(o),"prevValidating",void 0),_(Ye(o),"errors",Jo),_(Ye(o),"warnings",Jo),_(Ye(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,ur(f)),o.cancelRegisterFunc=null}),_(Ye(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(ne(d),ne(c)):[]}),_(Ye(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),_(Ye(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),_(Ye(o),"metaCache",null),_(Ye(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=T(T({},o.getMeta()),{},{destroy:l});ws(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),_(Ye(o),"onStoreChange",function(l,c,u){var f=o.props,d=f.shouldUpdate,m=f.dependencies,h=m===void 0?[]:m,v=f.onReset,y=u.store,g=o.getNamePath(),p=o.getValue(l),x=o.getValue(y),b=c&&Ls(c,g);switch(u.type==="valueUpdate"&&u.source==="external"&&!ws(p,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent()),u.type){case"reset":if(!c||b){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent(),v?.(),o.refresh();return}break;case"remove":{if(d&&r1(d,l,y,p,x,u)){o.reRender();return}break}case"setField":{var S=u.data;if(b){"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||Jo),"warnings"in S&&(o.warnings=S.warnings||Jo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&Ls(c,g,!0)){o.reRender();return}if(d&&!g.length&&r1(d,l,y,p,x,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=h.map(ur);if(w.some(function(C){return Ls(u.relatedFields,C)})){o.reRender();return}break}default:if(b||(!h.length||g.length||d)&&r1(d,l,y,p,x,u)){o.reRender();return}break}d===!0&&o.reRender()}),_(Ye(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},d=f.triggerName,m=f.validateOnly,h=m===void 0?!1:m,v=Promise.resolve().then(Ur(Et().mark(function y(){var g,p,x,b,S,w,C;return Et().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(g=o.props,p=g.validateFirst,x=p===void 0?!1:p,b=g.messageVariables,S=g.validateDebounce,w=o.getRules(),d&&(w=w.filter(function(O){return O}).filter(function(O){var I=O.validateTrigger;if(!I)return!0;var D=Hd(I);return D.includes(d)})),!(S&&d)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,S)});case 8:if(o.validatePromise===v){P.next=10;break}return P.abrupt("return",[]);case 10:return C=_A(c,u,w,l,x,b),C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jo;if(o.validatePromise===v){var I;o.validatePromise=null;var D=[],$=[];(I=O.forEach)===null||I===void 0||I.call(O,function(L){var A=L.rule.warningOnly,M=L.errors,W=M===void 0?Jo:M;A?$.push.apply($,ne(W)):D.push.apply(D,ne(W))}),o.errors=D,o.warnings=$,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",C);case 13:case"end":return P.stop()}},y)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=Jo,o.warnings=Jo,o.triggerMetaEvent(),o.reRender()),v}),_(Ye(o),"isFieldValidating",function(){return!!o.validatePromise}),_(Ye(o),"isFieldTouched",function(){return o.touched}),_(Ye(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Oi),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),_(Ye(o),"getErrors",function(){return o.errors}),_(Ye(o),"getWarnings",function(){return o.warnings}),_(Ye(o),"isListField",function(){return o.props.isListField}),_(Ye(o),"isList",function(){return o.props.isList}),_(Ye(o),"isPreserve",function(){return o.props.preserve}),_(Ye(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),_(Ye(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return T(T({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=yi(l);return u.length!==1||!Gn.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),_(Ye(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return xn(l||c(!0),u)}),_(Ye(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,y=c.getValueProps,g=c.fieldContext,p=d!==void 0?d:g.validateTrigger,x=o.getNamePath(),b=g.getInternalHooks,S=g.getFieldsValue,w=b(Oi),C=w.dispatch,R=o.getValue(),P=y||function(L){return _({},v,L)},O=l[f],I=u!==void 0?P(R):{},D=T(T({},l),I);D[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var L,A=arguments.length,M=new Array(A),W=0;W=0&&O<=I.length?(u.keys=[].concat(ne(u.keys.slice(0,O)),[u.id],ne(u.keys.slice(O))),x([].concat(ne(I.slice(0,O)),[P],ne(I.slice(O))))):(u.keys=[].concat(ne(u.keys),[u.id]),x([].concat(ne(I),[P]))),u.id+=1},remove:function(P){var O=S(),I=new Set(Array.isArray(P)?P:[P]);I.size<=0||(u.keys=u.keys.filter(function(D,$){return!I.has($)}),x(O.filter(function(D,$){return!I.has($)})))},move:function(P,O){if(P!==O){var I=S();P<0||P>=I.length||O<0||O>=I.length||(u.keys=t1(u.keys,P,O),x(t1(I,P,O)))}}},C=p||[];return Array.isArray(C)||(C=[]),n(C.map(function(R,P){var O=u.keys[P];return O===void 0&&(u.keys[P]=u.id,O=u.keys[P],u.id+=1),{name:P,key:O,isListField:!0}}),w,y)})))}var NA=CH;var cy=E(N());function IA(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var DA="__@field_split__";function o1(e){return e.map(function(t){return"".concat(ce(t),":").concat(t)}).join(DA)}var wH=function(){function e(){at(this,e),_(this,"kvs",new Map)}return st(e,[{key:"set",value:function(r,n){this.kvs.set(o1(r),n)}},{key:"get",value:function(r){return this.kvs.get(o1(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(o1(r))}},{key:"map",value:function(r){return ne(this.kvs.entries()).map(function(n){var o=F(n,2),i=o[0],a=o[1],s=i.split(DA);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=F(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e}(),Wl=wH;var EH=["name"],RH=st(function e(t){var r=this;at(this,e),_(this,"formHooked",!1),_(this,"forceRootUpdate",void 0),_(this,"subscribable",!0),_(this,"store",{}),_(this,"fieldEntities",[]),_(this,"initialValues",{}),_(this,"callbacks",{}),_(this,"validateMessages",null),_(this,"preserve",null),_(this,"lastValidatePromise",null),_(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}}),_(this,"getInternalHooks",function(n){return n===Oi?(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}):(Vt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_(this,"useSubscribe",function(n){r.subscribable=n}),_(this,"prevWithoutPreserves",null),_(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,a=wa(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=qn(a,l,xn(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),_(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Wl;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),_(this,"getInitialValue",function(n){var o=xn(r.initialValues,n);return n.length?wa(o):o}),_(this,"setCallbacks",function(n){r.callbacks=n}),_(this,"setValidateMessages",function(n){r.validateMessages=n}),_(this,"setPreserve",function(n){r.preserve=n}),_(this,"watchList",[]),_(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),_(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(o,i,n)})}}),_(this,"timeoutId",null),_(this,"warningUnhooked",function(){}),_(this,"updateStore",function(n){r.store=n}),_(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),_(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Wl;return r.getFieldEntities(n).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),_(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var a=ur(i);return o.get(a)||{INVALIDATE_NAME_PATH:ur(i)}})}),_(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&ce(n)==="object"&&(s=n.strict,a=n.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,d,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.call(v))return}else if(!i&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(m);else{var y="getMeta"in u?u.getMeta():null;a(y)&&c.push(m)}}),Zw(r.store,c.map(ur))}),_(this,"getFieldValue",function(n){r.warningUnhooked();var o=ur(n);return xn(r.store,o)}),_(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:ur(n[a]),errors:[],warnings:[]}})}),_(this,"getFieldError",function(n){r.warningUnhooked();var o=ur(n),i=r.getFieldsError([o])[0];return i.errors}),_(this,"getFieldWarning",function(n){r.warningUnhooked();var o=ur(n),i=r.getFieldsError([o])[0];return i.warnings}),_(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new Wl,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),m=r.getInitialValue(d);if(m!==void 0)Vt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var h=o.get(d);if(h&&h.size>1)Vt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=r.getFieldValue(d),y=u.isListField();!y&&(!n.skipExist||v===void 0)&&r.updateStore(qn(r.store,d,ne(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,ne(ne(c).map(function(f){return f.entity})))}})):s=i,a(s)}),_(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(wa(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(ur);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(qn(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),_(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(a){var s=a.name,l=He(a,EH),c=ur(s);i.push(c),"value"in l&&r.updateStore(qn(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),_(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=T(T({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),_(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),a=xn(r.store,i);a===void 0&&r.updateStore(qn(r.store,i,o))}}),_(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),_(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(f){return!e1(f.getNamePath(),o)})){var u=r.store;r.updateStore(qn(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),_(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}default:}}),_(this,"notifyObservers",function(n,o,i){if(r.subscribable){var a=T(T({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,a)})}else r.forceRootUpdate()}),_(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ne(i))}),i}),_(this,"updateValue",function(n,o){var i=ur(n),a=r.store;r.updateStore(qn(r.store,i,o)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=Zw(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(ne(s)))}),_(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=wa(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),_(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),_(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],a=new Wl;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=ur(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(n),i}),_(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(o){var s=new Wl;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Ls(n,u)});l.length&&i(l,a)}}),_(this,"validateFields",function(n,o){r.warningUnhooked();var i,a;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,a=o):a=n;var s=!!i,l=s?i.map(ur):[],c=[],u=String(Date.now()),f=new Set,d=a||{},m=d.recursive,h=d.dirty;r.getFieldEntities(!0).forEach(function(p){if(s||l.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(h&&!p.isFieldDirty())){var x=p.getNamePath();if(f.add(x.join(u)),!s||Ls(l,x,m)){var b=p.validateRules(T({validateMessages:T(T({},ay),r.validateMessages)},a));c.push(b.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var w,C=[],R=[];return(w=S.forEach)===null||w===void 0||w.call(S,function(P){var O=P.rule.warningOnly,I=P.errors;O?R.push.apply(R,ne(I)):C.push.apply(C,ne(I))}),C.length?Promise.reject({name:x,errors:C,warnings:R}):{name:x,errors:C,warnings:R}}))}}});var v=IA(c);r.lastValidatePromise=v,v.catch(function(p){return p}).then(function(p){var x=p.map(function(b){var S=b.name;return S});r.notifyObservers(r.store,x,{type:"validateFinish"}),r.triggerOnFieldsChange(x,p)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(p){var x=p.filter(function(b){return b&&b.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:x,outOfDate:r.lastValidatePromise!==v})});y.catch(function(p){return p});var g=l.filter(function(p){return f.has(p.join(u))});return r.triggerOnFieldsChange(g),y}),_(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function OH(e){var t=cy.useRef(),r=cy.useState({}),n=F(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new RH(i);t.current=a.getForm()}return[t.current]}var uy=OH;var un=E(N());var zs=E(N()),i1=zs.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),a1=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=zs.useContext(i1),s=zs.useRef({});return zs.createElement(i1.Provider,{value:T(T({},a),{},{validateMessages:T(T({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=T(T({},s.current),{},_({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=T({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)};var $A=i1;var _H=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],PH=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,m=d===void 0?"onChange":d,h=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,g=t.onFinishFailed,p=t.clearOnDestroy,x=He(t,_H),b=un.useRef(null),S=un.useContext($A),w=uy(a),C=F(w,1),R=C[0],P=R.getInternalHooks(Oi),O=P.useSubscribe,I=P.setInitialValues,D=P.setCallbacks,$=P.setValidateMessages,L=P.setPreserve,A=P.destroyForm;un.useImperativeHandle(r,function(){return T(T({},R),{},{nativeElement:b.current})}),un.useEffect(function(){return S.registerForm(n,R),function(){S.unregisterForm(n)}},[S,R,n]),$(T(T({},S.validateMessages),f)),D({onValuesChange:h,onFieldsChange:function(k){if(S.triggerFormChange(n,k),v){for(var z=arguments.length,U=new Array(z>1?z-1:0),oe=1;oe{let n=ka.useContext(fn),o=ka.useMemo(()=>{let i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return ka.createElement(fn.Provider,{value:o},e)},zA=ka.createContext(void 0);var DH=e=>{let{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=s1.default.createElement(LA,{override:!0,status:!0},o)),t&&(o=s1.default.createElement(jD,null,o)),o},Ws=DH;var lo=E(N());function $H(e){return t=>lo.createElement(Da,{theme:{token:{motion:!1,zIndexPopupBase:0}}},lo.createElement(e,Object.assign({},t)))}var AH=(e,t,r,n,o)=>$H(a=>{let{prefixCls:s,style:l}=a,c=lo.useRef(null),[u,f]=lo.useState(0),[d,m]=lo.useState(0),[h,v]=sr(!1,{value:a.open}),{getPrefixCls:y}=lo.useContext(ot),g=y(n||"select",s);lo.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){let b=new ResizeObserver(w=>{let C=w[0].target;f(C.offsetHeight+8),m(C.offsetWidth)}),S=setInterval(()=>{var w;let C=o?`.${o(g)}`:`.${g}-dropdown`,R=(w=c.current)===null||w===void 0?void 0:w.querySelector(C);R&&(clearInterval(S),b.observe(R))},10);return()=>{clearInterval(S),b.disconnect()}}},[]);let p=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});return r&&(p=r(p)),t&&Object.assign(p,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),lo.createElement("div",{ref:c,style:{paddingBottom:u,position:"relative",minWidth:d}},lo.createElement(e,Object.assign({},p)))}),WA=AH;var ni=E(N()),Z1=E(Ne());var dr=E(N());var _1=E(Ne());var Su=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))};var bt=E(N());var l1=E(N()),BA=E(Ne()),kH=function(t){var r=t.className,n=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(o):n;return l1.createElement("span",{className:r,onMouseDown:function(u){u.preventDefault(),a?.(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:l1.createElement("span",{className:(0,BA.default)(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},Bs=kH;var fy=E(N()),jA=function(t,r,n,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=fy.default.useMemo(function(){if(ce(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=fy.default.useMemo(function(){return!!(!a&&o&&(n.length||s)&&!(l==="combobox"&&s===""))},[o,a,n.length,s,l]);return{allowClear:u,clearIcon:fy.default.createElement(Bs,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"\xD7")}};var dy=E(N()),c1=dy.createContext(null);function py(){return dy.useContext(c1)}var Cu=E(N());function u1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=Cu.useState(!1),r=F(t,2),n=r[0],o=r[1],i=Cu.useRef(null),a=function(){window.clearTimeout(i.current)};Cu.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[n,s,a]}var Kd=E(N());function Xd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=Kd.useRef(null),r=Kd.useRef(null);Kd.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}var my=E(N());function f1(e,t,r,n){var o=my.useRef(null);o.current={open:t,triggerOpen:r,customizedTrigger:n},my.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var Ma=E(N()),xy=E(N());function VA(e){return e&&![Qe.ESC,Qe.SHIFT,Qe.BACKSPACE,Qe.TAB,Qe.WIN_KEY,Qe.ALT,Qe.META,Qe.WIN_KEY_RIGHT,Qe.CTRL,Qe.SEMICOLON,Qe.EQUALS,Qe.CAPS_LOCK,Qe.CONTEXT_MENU,Qe.F1,Qe.F2,Qe.F3,Qe.F4,Qe.F5,Qe.F6,Qe.F7,Qe.F8,Qe.F9,Qe.F10,Qe.F11,Qe.F12].includes(e)}var Po=E(N()),m1=E(N()),uk=E(Ne());var Zo=E(N()),Qi=E(N()),JA=E(Ne());var Bl=E(N()),HA=E(Ne());var MH=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],wu=void 0;function FH(e,t){var r=e.prefixCls,n=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,d=e.children,m=e.display,h=e.order,v=e.component,y=v===void 0?"div":v,g=He(e,MH),p=a&&!m;function x(R){l(c,R)}Bl.useEffect(function(){return function(){x(null)}},[]);var b=i&&o!==wu?i(o,{index:h}):d,S;n||(S={opacity:p?0:1,height:p?0:wu,overflowY:p?"hidden":wu,order:a?h:wu,pointerEvents:p?"none":wu,position:p?"absolute":wu});var w={};p&&(w["aria-hidden"]=!0);var C=Bl.createElement(y,le({className:(0,HA.default)(!n&&r,u),style:T(T({},S),f)},w,g,{ref:t}),b);return a&&(C=Bl.createElement(no,{onResize:function(P){var O=P.offsetWidth;x(O)},disabled:s},C)),C}var UA=Bl.forwardRef(FH);UA.displayName="Item";var Eu=UA;var gy=E(N()),qA=E(Ui());function d1(e){if(typeof MessageChannel>"u")dt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function GA(){var e=gy.useRef(null),t=function(n){e.current||(e.current=[],d1(function(){(0,qA.unstable_batchedUpdates)(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(n)};return t}function jl(e,t){var r=gy.useState(t),n=F(r,2),o=n[0],i=n[1],a=wt(function(s){e(function(){i(s)})});return[o,a]}var js=E(N()),XA=E(Ne());var KA=E(N()),Vl=KA.default.createContext(null);var LH=["component"],zH=["className"],WH=["className"],BH=function(t,r){var n=js.useContext(Vl);if(!n){var o=t.component,i=o===void 0?"div":o,a=He(t,LH);return js.createElement(i,le({},a,{ref:r}))}var s=n.className,l=He(n,zH),c=t.className,u=He(t,WH);return js.createElement(Vl.Provider,{value:null},js.createElement(Eu,le({ref:r,className:(0,XA.default)(s,c)},l,u)))},YA=js.forwardRef(BH);YA.displayName="RawItem";var QA=YA;var jH=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ZA="responsive",ek="invalidate";function VH(e){return"+ ".concat(e.length," ...")}function HH(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,d=e.style,m=e.className,h=e.maxCount,v=e.renderRest,y=e.renderRawRest,g=e.suffix,p=e.component,x=p===void 0?"div":p,b=e.itemComponent,S=e.onVisibleChange,w=He(e,jH),C=f==="full",R=GA(),P=jl(R,null),O=F(P,2),I=O[0],D=O[1],$=I||0,L=jl(R,new Map),A=F(L,2),M=A[0],W=A[1],B=jl(R,0),K=F(B,2),G=K[0],V=K[1],H=jl(R,0),j=F(H,2),k=j[0],z=j[1],U=jl(R,0),oe=F(U,2),Q=oe[0],X=oe[1],se=(0,Qi.useState)(null),Z=F(se,2),q=Z[0],J=Z[1],re=(0,Qi.useState)(null),ee=F(re,2),te=ee[0],de=ee[1],fe=Zo.useMemo(function(){return te===null&&C?Number.MAX_SAFE_INTEGER:te||0},[te,I]),ue=(0,Qi.useState)(!1),Ce=F(ue,2),we=Ce[0],_e=Ce[1],ve="".concat(n,"-item"),Y=Math.max(G,k),Ee=h===ZA,$e=i.length&&Ee,et=h===ek,ke=$e||typeof h=="number"&&i.length>h,Se=(0,Qi.useMemo)(function(){var Me=i;return $e?I===null&&C?Me=i:Me=i.slice(0,Math.min(i.length,$/u)):typeof h=="number"&&(Me=i.slice(0,h)),Me},[i,u,I,h,$e]),Be=(0,Qi.useMemo)(function(){return $e?i.slice(fe+1):i.slice(Se.length)},[i,Se,$e,fe]),Fe=(0,Qi.useCallback)(function(Me,Ve){var xe;return typeof l=="function"?l(Me):(xe=l&&Me?.[l])!==null&&xe!==void 0?xe:Ve},[l]),Ue=(0,Qi.useCallback)(a||function(Me){return Me},[a]);function Re(Me,Ve,xe){te===Me&&(Ve===void 0||Ve===q)||(de(Me),xe||(_e(Me$){Re(nt-1,Me-Tt-Q+k);break}}g&&Ze(0)+Q>$&&J(null)}},[$,M,k,Q,Fe,Se]);var ct=we&&!!Be.length,_t={};q!==null&&$e&&(_t={position:"absolute",left:q,top:0});var Pt={prefixCls:ve,responsive:$e,component:b,invalidate:et},mt=s?function(Me,Ve){var xe=Fe(Me,Ve);return Zo.createElement(Vl.Provider,{key:xe,value:T(T({},Pt),{},{order:Ve,item:Me,itemKey:xe,registerSize:ge,display:Ve<=fe})},s(Me,Ve))}:function(Me,Ve){var xe=Fe(Me,Ve);return Zo.createElement(Eu,le({},Pt,{order:Ve,key:xe,item:Me,renderItem:Ue,itemKey:xe,registerSize:ge,display:Ve<=fe}))},je={order:ct?fe:Number.MAX_SAFE_INTEGER,className:"".concat(ve,"-rest"),registerSize:Te,display:ct},Pe=v||VH,qe=y?Zo.createElement(Vl.Provider,{value:T(T({},Pt),je)},y(Be)):Zo.createElement(Eu,le({},Pt,je),typeof Pe=="function"?Pe(Be):Pe),Oe=Zo.createElement(x,le({className:(0,JA.default)(!et&&n,m),style:d,ref:t},w),Se.map(mt),ke?qe:null,g&&Zo.createElement(Eu,le({},Pt,{responsive:Ee,responsiveDisabled:!$e,order:fe,className:"".concat(ve,"-suffix"),registerSize:he,display:!0,style:_t}),g));return Ee?Zo.createElement(no,{onResize:ae,disabled:!$e},Oe):Oe}var Yd=Zo.forwardRef(HH);Yd.displayName="Overflow";Yd.Item=QA;Yd.RESPONSIVE=ZA;Yd.INVALIDATE=ek;var tk=Yd;var rk=tk;var Ru=E(N()),ok=E(Ne());function UH(e,t,r){var n=T(T({},e),r?t:{});return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(n[o]=function(){for(var a,s=arguments.length,l=new Array(s),c=0;cx&&(Ce="".concat(we.slice(0,x),"..."))}var _e=function(Y){Y&&Y.stopPropagation(),R(ee)};return typeof w=="function"?X(fe,Ce,te,ue,_e):Q(ee,Ce,te,ue,_e)},Z=function(ee){if(!o.length)return null;var te=typeof S=="function"?S(ee):S;return typeof w=="function"?X(void 0,te,!1,!1,void 0,!0):Q({title:te},te,!1)},q=Po.createElement("div",{className:"".concat(z,"-search"),style:{width:K},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},Po.createElement(hy,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:u,autoFocus:m,autoComplete:h,editable:oe,activeDescendantId:v,value:U,onKeyDown:I,onMouseDown:D,onChange:P,onPaste:O,onCompositionStart:$,onCompositionEnd:L,onBlur:A,tabIndex:y,attrs:qo(t,!0)}),Po.createElement("span",{ref:M,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},U,"\xA0")),J=Po.createElement(rk,{prefixCls:"".concat(z,"-overflow"),data:o,renderItem:se,renderRest:Z,suffix:q,itemKey:YH,maxCount:p});return Po.createElement("span",{className:"".concat(z,"-wrap")},J,!o.length&&!U&&Po.createElement("span",{className:"".concat(z,"-placeholder")},c))},fk=QH;var ei=E(N());var JH=function(t){var r=t.inputElement,n=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,d=t.values,m=t.placeholder,h=t.tabIndex,v=t.showSearch,y=t.searchValue,g=t.activeValue,p=t.maxLength,x=t.onInputKeyDown,b=t.onInputMouseDown,S=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,R=t.onInputCompositionEnd,P=t.onInputBlur,O=t.title,I=ei.useState(!1),D=F(I,2),$=D[0],L=D[1],A=u==="combobox",M=A||v,W=d[0],B=y||"";A&&g&&!$&&(B=g),ei.useEffect(function(){A&&L(!1)},[A,g]);var K=u!=="combobox"&&!f&&!v?!1:!!B,G=O===void 0?vy(W):O,V=ei.useMemo(function(){return W?null:ei.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:K?{visibility:"hidden"}:void 0},m)},[W,K,m,n]);return ei.createElement("span",{className:"".concat(n,"-selection-wrap")},ei.createElement("span",{className:"".concat(n,"-selection-search")},ei.createElement(hy,{ref:i,prefixCls:n,id:o,open:f,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:c,value:B,onKeyDown:x,onMouseDown:b,onChange:function(j){L(!0),S(j)},onPaste:w,onCompositionStart:C,onCompositionEnd:R,onBlur:P,tabIndex:h,attrs:qo(t,!0),maxLength:A?p:void 0})),!A&&W?ei.createElement("span",{className:"".concat(n,"-selection-item"),title:G,style:K?{visibility:"hidden"}:void 0},W.label):null,V)},dk=JH;var ZH=function(t,r){var n=(0,xy.useRef)(null),o=(0,xy.useRef)(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,d=t.autoClearSearchValue,m=t.onSearch,h=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,g=t.onInputBlur,p=t.domRef;Ma.useImperativeHandle(r,function(){return{focus:function(G){n.current.focus(G)},blur:function(){n.current.blur()}}});var x=Xd(0),b=F(x,2),S=b[0],w=b[1],C=function(G){var V=G.which,H=n.current instanceof HTMLTextAreaElement;!H&&a&&(V===Qe.UP||V===Qe.DOWN)&&G.preventDefault(),y&&y(G),V===Qe.ENTER&&s==="tags"&&!o.current&&!a&&h?.(G.target.value),!(H&&!a&&~[Qe.UP,Qe.DOWN,Qe.LEFT,Qe.RIGHT].indexOf(V))&&VA(V)&&v(!0)},R=function(){w(!0)},P=(0,xy.useRef)(null),O=function(G){m(G,!0,o.current)!==!1&&v(!0)},I=function(){o.current=!0},D=function(G){o.current=!1,s!=="combobox"&&O(G.target.value)},$=function(G){var V=G.target.value;if(c&&P.current&&/[\r\n]/.test(P.current)){var H=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(H,P.current)}P.current=null,O(V)},L=function(G){var V=G.clipboardData,H=V?.getData("text");P.current=H||""},A=function(G){var V=G.target;if(V!==n.current){var H=document.body.style.msTouchAction!==void 0;H?setTimeout(function(){n.current.focus()}):n.current.focus()}},M=function(G){var V=S();G.target!==n.current&&!V&&!(s==="combobox"&&u)&&G.preventDefault(),(s!=="combobox"&&(!l||!V)||!a)&&(a&&d!==!1&&m("",!0,!1),v())},W={inputRef:n,onInputKeyDown:C,onInputMouseDown:R,onInputChange:$,onInputPaste:L,onInputCompositionStart:I,onInputCompositionEnd:D,onInputBlur:g},B=s==="multiple"||s==="tags"?Ma.createElement(fk,le({},t,W)):Ma.createElement(dk,le({},t,W));return Ma.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:A,onMouseDown:M},f&&Ma.createElement("div",{className:"".concat(i,"-prefix")},f),B)},e9=Ma.forwardRef(ZH),pk=e9;var Sy=E(Ne());var vt=E(N());var yk=E(Ne());var ti=E(N());var mk=E(Ne()),by=E(N());function g1(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,d=by.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],v=r.points[1],y=h[0],g=h[1],p=v[0],x=v[1];y===p||!["t","b"].includes(y)?m.top=f:y==="t"?m.top=0:m.bottom=0,g===x||!["l","r"].includes(g)?m.left=c:g==="l"?m.left=0:m.right=0}return by.createElement("div",{ref:d,className:(0,mk.default)("".concat(t,"-arrow"),a),style:m},s)}var gk=E(Ne());var h1=E(N());function v1(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?h1.createElement(Uo,le({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return h1.createElement("div",{style:{zIndex:n},className:(0,gk.default)("".concat(t,"-mask"),s)})}):null}var hk=E(N()),t9=hk.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),vk=t9;var r9=ti.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,m=e.arrow,h=e.arrowPos,v=e.align,y=e.motion,g=e.maskMotion,p=e.forceRender,x=e.getPopupContainer,b=e.autoDestroy,S=e.portal,w=e.zIndex,C=e.onMouseEnter,R=e.onMouseLeave,P=e.onPointerEnter,O=e.onPointerDownCapture,I=e.ready,D=e.offsetX,$=e.offsetY,L=e.offsetR,A=e.offsetB,M=e.onAlign,W=e.onPrepare,B=e.stretch,K=e.targetWidth,G=e.targetHeight,V=typeof r=="function"?r():r,H=l||c,j=x?.length>0,k=ti.useState(!x||!j),z=F(k,2),U=z[0],oe=z[1];if(yt(function(){!U&&j&&a&&oe(!0)},[U,j,a]),!U)return null;var Q="auto",X={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(I||!l){var se,Z=v.points,q=v.dynamicInset||((se=v._experimental)===null||se===void 0?void 0:se.dynamicInset),J=q&&Z[0][1]==="r",re=q&&Z[0][0]==="b";J?(X.right=L,X.left=Q):(X.left=D,X.right=Q),re?(X.bottom=A,X.top=Q):(X.top=$,X.bottom=Q)}var ee={};return B&&(B.includes("height")&&G?ee.height=G:B.includes("minHeight")&&G&&(ee.minHeight=G),B.includes("width")&&K?ee.width=K:B.includes("minWidth")&&K&&(ee.minWidth=K)),l||(ee.pointerEvents="none"),ti.createElement(S,{open:p||H,getContainer:x&&function(){return x(a)},autoDestroy:b},ti.createElement(v1,{prefixCls:o,open:l,zIndex:w,mask:d,motion:g}),ti.createElement(no,{onResize:M,disabled:!l},function(te){return ti.createElement(Uo,le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:W,onEnterPrepare:W,visible:l,onVisibleChanged:function(fe){var ue;y==null||(ue=y.onVisibleChanged)===null||ue===void 0||ue.call(y,fe),s(fe)}}),function(de,fe){var ue=de.className,Ce=de.style,we=(0,yk.default)(o,ue,n);return ti.createElement("div",{ref:zr(te,t,fe),className:we,style:T(T(T(T({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},X),ee),Ce),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:R,onPointerEnter:P,onClick:f,onPointerDownCapture:O},m&&ti.createElement(g1,{prefixCls:o,arrow:m,arrowPos:h,align:v}),ti.createElement(vk,{cache:!l&&!u},V))})}))}),xk=r9;var Ou=E(N()),n9=Ou.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=bi(r),i=Ou.useCallback(function(s){vd(t,n?n(s):s)},[n]),a=xi(i,xs(r));return o?Ou.cloneElement(r,{ref:a}):r}),bk=n9;var Sk=E(N()),o9=Sk.createContext(null),y1=o9;var wk=E(N());function Ck(e){return e?Array.isArray(e)?e:[e]:[]}function x1(e,t,r,n){return wk.useMemo(function(){var o=Ck(r??t),i=Ck(n??t),a=new Set(o),s=new Set(i);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 Hl=E(N());function i9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?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 Ek(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Jd(e){return _u(parseFloat(e),0)}function S1(e,t){var r=T({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Vs(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=n.getBoundingClientRect(),d=n.offsetHeight,m=n.clientHeight,h=n.offsetWidth,v=n.clientWidth,y=Jd(s),g=Jd(l),p=Jd(c),x=Jd(u),b=_u(Math.round(f.width/h*1e3)/1e3),S=_u(Math.round(f.height/d*1e3)/1e3),w=(h-v-p-x)*b,C=(d-m-y-g)*S,R=y*S,P=g*S,O=p*b,I=x*b,D=0,$=0;if(i==="clip"){var L=Jd(a);D=L*b,$=L*S}var A=f.x+O-D,M=f.y+R-$,W=A+f.width+2*D-O-I-w,B=M+f.height+2*$-R-P-C;r.left=Math.max(r.left,A),r.top=Math.max(r.top,M),r.right=Math.min(r.right,W),r.bottom=Math.min(r.bottom,B)}}),r}function Rk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Ok(e,t){var r=t||[],n=F(r,2),o=n[0],i=n[1];return[Rk(e.width,o),Rk(e.height,i)]}function _k(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Pu(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Hs(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function C1(e,t,r,n,o,i,a){var s=Hl.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=F(s,2),c=l[0],u=l[1],f=Hl.useRef(0),d=Hl.useMemo(function(){return t?Zd(t):[]},[t]),m=Hl.useRef({}),h=function(){m.current={}};e||h();var v=wt(function(){if(t&&r&&e){let Qn=function(ic,qa){var ac=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee,Ap=H.x+ic,kp=H.y+qa,Y0=Ap+re,Je=kp+J,ut=Math.max(Ap,ac.left),mr=Math.max(kp,ac.top),Fr=Math.min(Y0,ac.right),gr=Math.min(Je,ac.bottom);return Math.max(0,(Fr-ut)*(gr-mr))},tl=function(){nr=H.y+nt,xr=nr+J,wn=H.x+xe,Qt=wn+re};var wR=Qn,$p=tl,p,x,b,S,w=t,C=w.ownerDocument,R=Vs(w),P=R.getComputedStyle(w),O=P.position,I=w.style.left,D=w.style.top,$=w.style.right,L=w.style.bottom,A=w.style.overflow,M=T(T({},o[n]),i),W=C.createElement("div");(p=w.parentElement)===null||p===void 0||p.appendChild(W),W.style.left="".concat(w.offsetLeft,"px"),W.style.top="".concat(w.offsetTop,"px"),W.style.position=O,W.style.height="".concat(w.offsetHeight,"px"),W.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var B;if(Array.isArray(r))B={x:r[0],y:r[1],width:0,height:0};else{var K,G,V=r.getBoundingClientRect();V.x=(K=V.x)!==null&&K!==void 0?K:V.left,V.y=(G=V.y)!==null&&G!==void 0?G:V.top,B={x:V.x,y:V.y,width:V.width,height:V.height}}var H=w.getBoundingClientRect(),j=R.getComputedStyle(w),k=j.height,z=j.width;H.x=(x=H.x)!==null&&x!==void 0?x:H.left,H.y=(b=H.y)!==null&&b!==void 0?b:H.top;var U=C.documentElement,oe=U.clientWidth,Q=U.clientHeight,X=U.scrollWidth,se=U.scrollHeight,Z=U.scrollTop,q=U.scrollLeft,J=H.height,re=H.width,ee=B.height,te=B.width,de={left:0,top:0,right:oe,bottom:Q},fe={left:-q,top:-Z,right:X-q,bottom:se-Z},ue=M.htmlRegion,Ce="visible",we="visibleFirst";ue!=="scroll"&&ue!==we&&(ue=Ce);var _e=ue===we,ve=S1(fe,d),Y=S1(de,d),Ee=ue===Ce?Y:ve,$e=_e?Y:Ee;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var et=w.getBoundingClientRect();w.style.left=I,w.style.top=D,w.style.right=$,w.style.bottom=L,w.style.overflow=A,(S=w.parentElement)===null||S===void 0||S.removeChild(W);var ke=_u(Math.round(re/parseFloat(z)*1e3)/1e3),Se=_u(Math.round(J/parseFloat(k)*1e3)/1e3);if(ke===0||Se===0||El(r)&&!Nv(r))return;var Be=M.offset,Fe=M.targetOffset,Ue=Ok(H,Be),Re=F(Ue,2),ae=Re[0],ge=Re[1],Te=Ok(B,Fe),he=F(Te,2),Ze=he[0],ct=he[1];B.x-=Ze,B.y-=ct;var _t=M.points||[],Pt=F(_t,2),mt=Pt[0],je=Pt[1],Pe=_k(je),qe=_k(mt),Oe=Pu(B,Pe),Me=Pu(H,qe),Ve=T({},M),xe=Oe.x-Me.x+ae,nt=Oe.y-Me.y+ge,Tt=Qn(xe,nt),Ie=Qn(xe,nt,Y),be=Pu(B,["t","l"]),Ke=Pu(H,["t","l"]),Le=Pu(B,["b","r"]),ze=Pu(H,["b","r"]),tt=M.overflow||{},kt=tt.adjustX,Dt=tt.adjustY,rr=tt.shiftX,Ft=tt.shiftY,Tr=function(qa){return typeof qa=="boolean"?qa:qa>=0},nr,xr,wn,Qt;tl();var Lt=Tr(Dt),Ae=qe[0]===Pe[0];if(Lt&&qe[0]==="t"&&(xr>$e.bottom||m.current.bt)){var We=nt;Ae?We-=J-ee:We=be.y-ze.y-ge;var De=Qn(xe,We),ye=Qn(xe,We,Y);De>Tt||De===Tt&&(!_e||ye>=Ie)?(m.current.bt=!0,nt=We,ge=-ge,Ve.points=[Hs(qe,0),Hs(Pe,0)]):m.current.bt=!1}if(Lt&&qe[0]==="b"&&(nr<$e.top||m.current.tb)){var rt=nt;Ae?rt+=J-ee:rt=Le.y-Ke.y-ge;var Nt=Qn(xe,rt),Mt=Qn(xe,rt,Y);Nt>Tt||Nt===Tt&&(!_e||Mt>=Ie)?(m.current.tb=!0,nt=rt,ge=-ge,Ve.points=[Hs(qe,0),Hs(Pe,0)]):m.current.tb=!1}var pn=Tr(kt),en=qe[1]===Pe[1];if(pn&&qe[1]==="l"&&(Qt>$e.right||m.current.rl)){var br=xe;en?br-=re-te:br=be.x-ze.x-ae;var Sr=Qn(br,nt),En=Qn(br,nt,Y);Sr>Tt||Sr===Tt&&(!_e||En>=Ie)?(m.current.rl=!0,xe=br,ae=-ae,Ve.points=[Hs(qe,1),Hs(Pe,1)]):m.current.rl=!1}if(pn&&qe[1]==="r"&&(wn<$e.left||m.current.lr)){var mn=xe;en?mn+=re-te:mn=Le.x-Ke.x-ae;var Rn=Qn(mn,nt),Xn=Qn(mn,nt,Y);Rn>Tt||Rn===Tt&&(!_e||Xn>=Ie)?(m.current.lr=!0,xe=mn,ae=-ae,Ve.points=[Hs(qe,1),Hs(Pe,1)]):m.current.lr=!1}tl();var On=rr===!0?0:rr;typeof On=="number"&&(wnY.right&&(xe-=Qt-Y.right-ae,B.x>Y.right-On&&(xe+=B.x-Y.right+On)));var Di=Ft===!0?0:Ft;typeof Di=="number"&&(nrY.bottom&&(nt-=xr-Y.bottom-ge,B.y>Y.bottom-Di&&(nt+=B.y-Y.bottom+Di)));var $i=H.x+xe,Ai=$i+re,Ha=H.y+nt,el=Ha+J,St=B.x,pt=St+te,Kr=B.y,tn=Kr+ee,Cr=Math.max($i,St),Mr=Math.min(Ai,pt),mo=(Cr+Mr)/2,Yn=mo-$i,Io=Math.max(Ha,Kr),ki=Math.min(el,tn),li=(Io+ki)/2,Ua=li-Ha;a?.(t,Ve);var Ln=et.right-H.x-(xe+H.width),nf=et.bottom-H.y-(nt+H.height);ke===1&&(xe=Math.round(xe),Ln=Math.round(Ln)),Se===1&&(nt=Math.round(nt),nf=Math.round(nf));var X0={ready:!0,offsetX:xe/ke,offsetY:nt/Se,offsetR:Ln/ke,offsetB:nf/Se,arrowX:Yn/ke,arrowY:Ua/Se,scaleX:ke,scaleY:Se,align:Ve};u(X0)}}),y=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},g=function(){u(function(x){return T(T({},x),{},{ready:!1})})};return yt(g,[n]),yt(function(){e||g()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function w1(e,t,r,n,o){yt(function(){if(e&&t&&r){let d=function(){n(),o()};var f=d,i=t,a=r,s=Zd(i),l=Zd(a),c=Vs(a),u=new Set([c].concat(ne(s),ne(l)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}var ep=E(N());function E1(e,t,r,n,o,i,a,s){var l=ep.useRef(e);l.current=e;var c=ep.useRef(!1);ep.useEffect(function(){if(t&&n&&(!o||i)){var f=function(){c.current=!1},d=function(b){var S;l.current&&!a(((S=b.composedPath)===null||S===void 0||(S=S.call(b))===null||S===void 0?void 0:S[0])||b.target)&&!c.current&&s(!1)},m=Vs(n);m.addEventListener("pointerdown",f,!0),m.addEventListener("mousedown",d,!0),m.addEventListener("contextmenu",d,!0);var h=Al(r);if(h&&(h.addEventListener("mousedown",d,!0),h.addEventListener("contextmenu",d,!0)),0)var v,y,g,p;return function(){m.removeEventListener("pointerdown",f,!0),m.removeEventListener("mousedown",d,!0),m.removeEventListener("contextmenu",d,!0),h&&(h.removeEventListener("mousedown",d,!0),h.removeEventListener("contextmenu",d,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var a9=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function s9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qw,t=vt.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,d=r.defaultPopupVisible,m=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,g=y===void 0?.1:y,p=r.focusDelay,x=r.blurDelay,b=r.mask,S=r.maskClosable,w=S===void 0?!0:S,C=r.getPopupContainer,R=r.forceRender,P=r.autoDestroy,O=r.destroyPopupOnHide,I=r.popup,D=r.popupClassName,$=r.popupStyle,L=r.popupPlacement,A=r.builtinPlacements,M=A===void 0?{}:A,W=r.popupAlign,B=r.zIndex,K=r.stretch,G=r.getPopupClassNameFromAlign,V=r.fresh,H=r.alignPoint,j=r.onPopupClick,k=r.onPopupAlign,z=r.arrow,U=r.popupMotion,oe=r.maskMotion,Q=r.popupTransitionName,X=r.popupAnimation,se=r.maskTransitionName,Z=r.maskAnimation,q=r.className,J=r.getTriggerDOMNode,re=He(r,a9),ee=P||O||!1,te=vt.useState(!1),de=F(te,2),fe=de[0],ue=de[1];yt(function(){ue(Su())},[]);var Ce=vt.useRef({}),we=vt.useContext(y1),_e=vt.useMemo(function(){return{registerSubPopup:function(ut,mr){Ce.current[ut]=mr,we?.registerSubPopup(ut,mr)}}},[we]),ve=Jv(),Y=vt.useState(null),Ee=F(Y,2),$e=Ee[0],et=Ee[1],ke=vt.useRef(null),Se=wt(function(Je){ke.current=Je,El(Je)&&$e!==Je&&et(Je),we?.registerSubPopup(ve,Je)}),Be=vt.useState(null),Fe=F(Be,2),Ue=Fe[0],Re=Fe[1],ae=vt.useRef(null),ge=wt(function(Je){El(Je)&&Ue!==Je&&(Re(Je),ae.current=Je)}),Te=vt.Children.only(a),he=Te?.props||{},Ze={},ct=wt(function(Je){var ut,mr,Fr=Ue;return Fr?.contains(Je)||((ut=Al(Fr))===null||ut===void 0?void 0:ut.host)===Je||Je===Fr||$e?.contains(Je)||((mr=Al($e))===null||mr===void 0?void 0:mr.host)===Je||Je===$e||Object.values(Ce.current).some(function(gr){return gr?.contains(Je)||Je===gr})}),_t=b1(i,U,X,Q),Pt=b1(i,oe,Z,se),mt=vt.useState(d||!1),je=F(mt,2),Pe=je[0],qe=je[1],Oe=f??Pe,Me=wt(function(Je){f===void 0&&qe(Je)});yt(function(){qe(f||!1)},[f]);var Ve=vt.useRef(Oe);Ve.current=Oe;var xe=vt.useRef([]);xe.current=[];var nt=wt(function(Je){var ut;Me(Je),((ut=xe.current[xe.current.length-1])!==null&&ut!==void 0?ut:Oe)!==Je&&(xe.current.push(Je),m?.(Je))}),Tt=vt.useRef(),Ie=function(){clearTimeout(Tt.current)},be=function(ut){var mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ie(),mr===0?nt(ut):Tt.current=setTimeout(function(){nt(ut)},mr*1e3)};vt.useEffect(function(){return Ie},[]);var Ke=vt.useState(!1),Le=F(Ke,2),ze=Le[0],tt=Le[1];yt(function(Je){(!Je||Oe)&&tt(!0)},[Oe]);var kt=vt.useState(null),Dt=F(kt,2),rr=Dt[0],Ft=Dt[1],Tr=vt.useState(null),nr=F(Tr,2),xr=nr[0],wn=nr[1],Qt=function(ut){wn([ut.clientX,ut.clientY])},Lt=C1(Oe,$e,H&&xr!==null?xr:Ue,L,M,W,k),Ae=F(Lt,11),We=Ae[0],De=Ae[1],ye=Ae[2],rt=Ae[3],Nt=Ae[4],Mt=Ae[5],pn=Ae[6],en=Ae[7],br=Ae[8],Sr=Ae[9],En=Ae[10],mn=x1(fe,l,c,u),Rn=F(mn,2),Xn=Rn[0],On=Rn[1],Di=Xn.has("click"),$i=On.has("click")||On.has("contextMenu"),Ai=wt(function(){ze||En()}),Ha=function(){Ve.current&&H&&$i&&be(!1)};w1(Oe,Ue,$e,Ai,Ha),yt(function(){Ai()},[xr,L]),yt(function(){Oe&&!(M!=null&&M[L])&&Ai()},[JSON.stringify(W)]);var el=vt.useMemo(function(){var Je=Ek(M,i,Sr,H);return(0,Sy.default)(Je,G?.(Sr))},[Sr,G,M,i,H]);vt.useImperativeHandle(n,function(){return{nativeElement:ae.current,popupElement:ke.current,forceAlign:Ai}});var St=vt.useState(0),pt=F(St,2),Kr=pt[0],tn=pt[1],Cr=vt.useState(0),Mr=F(Cr,2),mo=Mr[0],Yn=Mr[1],Io=function(){if(K&&Ue){var ut=Ue.getBoundingClientRect();tn(ut.width),Yn(ut.height)}},ki=function(){Io(),Ai()},li=function(ut){tt(!1),En(),h?.(ut)},Ua=function(){return new Promise(function(ut){Io(),Ft(function(){return ut})})};yt(function(){rr&&(En(),rr(),Ft(null))},[rr]);function Ln(Je,ut,mr,Fr){Ze[Je]=function(gr){var Mp;Fr?.(gr),be(ut,mr);for(var Q0=arguments.length,ER=new Array(Q0>1?Q0-1:0),Fp=1;Fp1?mr-1:0),gr=1;gr1?mr-1:0),gr=1;gr1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,o=[],i=R1(r,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,d){Array.isArray(f)&&f.forEach(function(m){if(d||!(l in m)){var h=m[s];o.push({key:Nk(m,o.length),groupOption:d,data:m,label:m[a],value:h})}else{var v=m[c];v===void 0&&n&&(v=m.label),o.push({key:Nk(m,o.length),group:!0,data:m,label:v}),u(m[l],!0)}})}return u(e,!1),o}function rp(e){var t=T({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Vt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Dk=function(t,r,n){if(!r||!r.length)return null;var o=!1,i=function s(l,c){var u=Th(c),f=u[0],d=u.slice(1);if(!f)return[l];var m=l.split(f);return o=o||m.length>1,m.reduce(function(h,v){return[].concat(ne(h),ne(s(v,d)))},[]).filter(Boolean)},a=i(t,r);return o?typeof n<"u"?a.slice(0,n):a:null};var $k=E(N()),d9=$k.createContext(null),Tu=d9;var Ak=E(N());function O1(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return Ak.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(ce(i))?i:a}).join(", ")),r.length>n?", ...":null)}var p9=["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"],m9=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],np=function(t){return t==="tags"||t==="multiple"},g9=bt.forwardRef(function(e,t){var r,n=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,d=e.emptyOptions,m=e.notFoundContent,h=m===void 0?"Not Found":m,v=e.onClear,y=e.mode,g=e.disabled,p=e.loading,x=e.getInputElement,b=e.getRawInputElement,S=e.open,w=e.defaultOpen,C=e.onDropdownVisibleChange,R=e.activeValue,P=e.onActiveValueChange,O=e.activeDescendantId,I=e.searchValue,D=e.autoClearSearchValue,$=e.onSearch,L=e.onSearchSplit,A=e.tokenSeparators,M=e.allowClear,W=e.prefix,B=e.suffixIcon,K=e.clearIcon,G=e.OptionList,V=e.animation,H=e.transitionName,j=e.dropdownStyle,k=e.dropdownClassName,z=e.dropdownMatchSelectWidth,U=e.dropdownRender,oe=e.dropdownAlign,Q=e.placement,X=e.builtinPlacements,se=e.getPopupContainer,Z=e.showAction,q=Z===void 0?[]:Z,J=e.onFocus,re=e.onBlur,ee=e.onKeyUp,te=e.onKeyDown,de=e.onMouseDown,fe=He(e,p9),ue=np(y),Ce=(a!==void 0?a:ue)||y==="combobox",we=T({},fe);m9.forEach(function(St){delete we[St]}),c?.forEach(function(St){delete we[St]});var _e=bt.useState(!1),ve=F(_e,2),Y=ve[0],Ee=ve[1];bt.useEffect(function(){Ee(Su())},[]);var $e=bt.useRef(null),et=bt.useRef(null),ke=bt.useRef(null),Se=bt.useRef(null),Be=bt.useRef(null),Fe=bt.useRef(!1),Ue=u1(),Re=F(Ue,3),ae=Re[0],ge=Re[1],Te=Re[2];bt.useImperativeHandle(t,function(){var St,pt;return{focus:(St=Se.current)===null||St===void 0?void 0:St.focus,blur:(pt=Se.current)===null||pt===void 0?void 0:pt.blur,scrollTo:function(tn){var Cr;return(Cr=Be.current)===null||Cr===void 0?void 0:Cr.scrollTo(tn)},nativeElement:$e.current||et.current}});var he=bt.useMemo(function(){var St;if(y!=="combobox")return I;var pt=(St=u[0])===null||St===void 0?void 0:St.value;return typeof pt=="string"||typeof pt=="number"?String(pt):""},[I,y,u]),Ze=y==="combobox"&&typeof x=="function"&&x()||null,ct=typeof b=="function"&&b(),_t=xi(et,ct==null||(r=ct.props)===null||r===void 0?void 0:r.ref),Pt=bt.useState(!1),mt=F(Pt,2),je=mt[0],Pe=mt[1];yt(function(){Pe(!0)},[]);var qe=sr(!1,{defaultValue:w,value:S}),Oe=F(qe,2),Me=Oe[0],Ve=Oe[1],xe=je?Me:!1,nt=!h&&d;(g||nt&&xe&&y==="combobox")&&(xe=!1);var Tt=nt?!1:xe,Ie=bt.useCallback(function(St){var pt=St!==void 0?St:!xe;g||(Ve(pt),xe!==pt&&C?.(pt))},[g,xe,Ve,C]),be=bt.useMemo(function(){return(A||[]).some(function(St){return[` `,`\r -`].includes(St)})},[k]),Ke=bt.useContext(Tu)||{},Be=Ke.maxCount,ze=Ke.rawValues,tt=function(ft,rn,nn){if(!(pe&&ep(Be)&&ze?.size>=Be)){var Sr=!0,Mr=ft;P?.(null);var mo=Ik(ft,k,ep(Be)?Be-ze.size:void 0),Qn=nn?null:mo;return y!=="combobox"&&Qn&&(Mr="",F?.(Qn),Fe(!1),Sr=!1),$&&he!==Mr&&$(Mr,{source:rn?"typing":"effect"}),Sr}},kt=function(ft){!ft||!ft.trim()||$(ft,{source:"submit"})};bt.useEffect(function(){!be&&!pe&&y!=="combobox"&&tt("",!1,!1)},[be]),bt.useEffect(function(){De&&g&&Ee(!1),g&&!We.current&&xe(!1)},[g]);var Nt=Kd(),tr=M(Nt,2),Ft=tr[0],rr=tr[1],pr=bt.useRef(!1),mr=function(ft){var rn=Ft(),nn=ft.key,Sr=nn==="Enter";if(Sr&&(y!=="combobox"&&ft.preventDefault(),be||Fe(!0)),rr(!!he),nn==="Backspace"&&!rn&&pe&&!he&&u.length){for(var Mr=ee(u),mo=null,Qn=Mr.length-1;Qn>=0;Qn-=1){var Do=Mr[Qn];if(!Do.disabled){Mr.splice(Qn,1),mo=Do;break}}mo&&f(Mr,{type:"remove",values:[mo]})}for(var $i=arguments.length,ci=new Array($i>1?$i-1:0),Ai=1;Ai<$i;Ai++)ci[Ai-1]=arguments[Ai];if(be&&(!Sr||!pr.current)){var Ln;Sr&&(pr.current=!0),(Ln=je.current)===null||Ln===void 0||Ln.onKeyDown.apply(Ln,[ft].concat(ci))}re?.apply(void 0,[ft].concat(ci))},Mn=function(ft){for(var rn=arguments.length,nn=new Array(rn>1?rn-1:0),Sr=1;Sr1?mo-1:0),Do=1;Do"u"?"undefined":fe(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),T1=g9;var Cy=E(N()),wy=function(e,t,r,n){var o=(0,Cy.useRef)(!1),i=(0,Cy.useRef)(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=(0,Cy.useRef)({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function N1(e,t,r,n,o,i,a){var s=(0,Vl.useRef)(0),l=(0,Vl.useRef)(null),c=(0,Vl.useRef)(null),u=(0,Vl.useRef)(!1),f=wy(t,r,n,o);function d(p,x){if(dt.cancel(l.current),!f(!1,x)){var b=p;if(!b._virtualHandled)b._virtualHandled=!0;else return;s.current+=x,c.current=x,T1||b.preventDefault(),l.current=dt(function(){var S=u.current?10:1;a(s.current*S,!1),s.current=0})}}function m(p,x){a(x,!0),T1||p.preventDefault()}var h=(0,Vl.useRef)(null),v=(0,Vl.useRef)(null);function y(p){if(e){dt.cancel(v.current),v.current=dt(function(){h.current=null},2);var x=p.deltaX,b=p.deltaY,S=p.shiftKey,w=x,C=b;(h.current==="sx"||!h.current&&S&&b&&!x)&&(w=b,C=0,h.current="sx");var R=Math.abs(w),P=Math.abs(C);h.current===null&&(h.current=i&&R>P?"x":"y"),h.current==="y"?d(p,C):m(p,w)}}function g(p){e&&(u.current=p.detail===c.current)}return[y,g]}var jk=E(N());function Vk(e,t,r,n){var o=jk.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=M(o,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,d=a.get(u),m=a.get(f);if(d===void 0||m===void 0)for(var h=e.length,v=s.length;v0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var g=!1;s.current.forEach(function(p,x){if(p&&p.offsetParent){var b=p.offsetHeight,S=getComputedStyle(p),w=S.marginTop,C=S.marginBottom,R=Uk(w),P=Uk(C),O=b+R+P;l.current.get(x)!==O&&(l.current.set(x,O),g=!0)}}),g&&a(function(p){return p+1})};if(m)h();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&h()})}}function d(m,h){var v=e(m),y=s.current.get(v);h?(s.current.set(v,h),f()):s.current.delete(v),!y!=!h&&(h?t?.(m):r?.(m))}return(0,Iu.useEffect)(function(){return u},[]),[d,f,l.current,i]}var Du=E(N()),Gk=14/15;function D1(e,t,r){var n=(0,Du.useRef)(!1),o=(0,Du.useRef)(0),i=(0,Du.useRef)(0),a=(0,Du.useRef)(null),s=(0,Du.useRef)(null),l,c=function(m){if(n.current){var h=Math.ceil(m.touches[0].pageX),v=Math.ceil(m.touches[0].pageY),y=o.current-h,g=i.current-v,p=Math.abs(y)>Math.abs(g);p?o.current=h:i.current=v;var x=r(p,p?y:g,!1,m);x&&m.preventDefault(),clearInterval(s.current),x&&(s.current=setInterval(function(){p?y*=Gk:g*=Gk;var b=Math.floor(p?y:g);(!r(p,b,!0)||Math.abs(b)<=.1)&&clearInterval(s.current)},16))}},u=function(){n.current=!1,l()},f=function(m){l(),m.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},vt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var Xk=E(N());function Kk(e){return Math.floor(Math.pow(e,.5))}function Ey(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function $1(e,t,r){Xk.useEffect(function(){var n=t.current;if(e&&n){var o=!1,i,a,s=function(){dt.cancel(i)},l=function d(){s(),i=dt(function(){r(a),d()})},c=function(m){if(!(m.target.draggable||m.button!==0)){var h=m;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},u=function(){o=!1,s()},f=function(m){if(o){var h=Ey(m,!1),v=n.getBoundingClientRect(),y=v.top,g=v.bottom;if(h<=y){var p=y-h;a=-Kk(p),l()}else if(h>=g){var x=h-g;a=Kk(x),l()}else s()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",u),n.ownerDocument.addEventListener("mousemove",f),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",u),n.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var Ry=E(N());var v9=10;function A1(e,t,r,n,o,i,a,s){var l=Ry.useRef(),c=Ry.useState(null),u=M(c,2),f=u[0],d=u[1];return vt(function(){if(f&&f.times=0;F-=1){var k=o(t[F]),z=r.get(k);if(z===void 0){p=!0;break}if($-=z,$<=0)break}switch(S){case"top":b=C-y;break;case"bottom":b=R-g+y;break;default:{var B=e.current.scrollTop,j=B+g;Cj&&(x="bottom")}}b!==null&&a(b),b!==f.lastTop&&(p=!0)}p&&d(T(T({},f),{},{times:f.times+1,targetAlign:x,lastTop:b}))}},[f,e.current]),function(m){if(m==null){s();return}if(dt.cancel(l.current),typeof m=="number")a(m);else if(m&&fe(m)==="object"){var h,v=m.align;"index"in m?h=m.index:h=t.findIndex(function(p){return o(p)===m.key});var y=m.offset,g=y===void 0?0:y;d({times:0,index:h,offset:g,originAlign:v})}}}var k1=E(Ne());var ur=E(N());var y9=ur.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,d=e.style,m=e.thumbStyle,h=e.showScrollBar,v=ur.useState(!1),y=M(v,2),g=y[0],p=y[1],x=ur.useState(null),b=M(x,2),S=b[0],w=b[1],C=ur.useState(null),R=M(C,2),P=R[0],O=R[1],I=!n,D=ur.useRef(),$=ur.useRef(),F=ur.useState(h),k=M(F,2),z=k[0],B=k[1],j=ur.useRef(),G=function(){h===!0||h===!1||(clearTimeout(j.current),B(!0),j.current=setTimeout(function(){B(!1)},3e3))},V=i-f||0,H=f-u||0,K=ur.useMemo(function(){if(o===0||V===0)return 0;var J=o/V;return J*H},[o,V,H]),W=function(U){U.stopPropagation(),U.preventDefault()},A=ur.useRef({top:K,dragging:g,pageY:S,startTop:P});A.current={top:K,dragging:g,pageY:S,startTop:P};var L=function(U){p(!0),w(Ey(U,c)),O(A.current.top),a(),U.stopPropagation(),U.preventDefault()};ur.useEffect(function(){var J=function(Z){Z.preventDefault()},U=D.current,Q=$.current;return U.addEventListener("touchstart",J,{passive:!1}),Q.addEventListener("touchstart",L,{passive:!1}),function(){U.removeEventListener("touchstart",J),Q.removeEventListener("touchstart",L)}},[]);var q=ur.useRef();q.current=V;var ne=ur.useRef();ne.current=H,ur.useEffect(function(){if(g){var J,U=function(Z){var re=A.current,de=re.dragging,le=re.pageY,pe=re.startTop;dt.cancel(J);var Oe=D.current.getBoundingClientRect(),Ce=f/(c?Oe.width:Oe.height);if(de){var $e=(Ey(Z,c)-le)*Ce,ce=pe;!I&&c?ce-=$e:ce+=$e;var ie=q.current,Re=ne.current,Le=Re?ce/Re:0,Ge=Math.ceil(Le*ie);Ge=Math.max(Ge,0),Ge=Math.min(Ge,ie),J=dt(function(){l(Ge,c)})}},Q=function(){p(!1),s()};return window.addEventListener("mousemove",U,{passive:!0}),window.addEventListener("touchmove",U,{passive:!0}),window.addEventListener("mouseup",Q,{passive:!0}),window.addEventListener("touchend",Q,{passive:!0}),function(){window.removeEventListener("mousemove",U),window.removeEventListener("touchmove",U),window.removeEventListener("mouseup",Q),window.removeEventListener("touchend",Q),dt.cancel(J)}}},[g]),ur.useEffect(function(){return G(),function(){clearTimeout(j.current)}},[o]),ur.useImperativeHandle(t,function(){return{delayHidden:G}});var Y="".concat(r,"-scrollbar"),X={position:"absolute",visibility:z?null:"hidden"},ae={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ae.height="100%",ae.width=u,I?ae.left=K:ae.right=K):(X.width=8,X.top=0,X.bottom=0,I?X.right=0:X.left=0,ae.width="100%",ae.height=u,ae.top=K),ur.createElement("div",{ref:D,className:(0,k1.default)(Y,_(_(_({},"".concat(Y,"-horizontal"),c),"".concat(Y,"-vertical"),!c),"".concat(Y,"-visible"),z)),style:T(T({},X),d),onMouseDown:W,onMouseMove:G},ur.createElement("div",{ref:$,className:(0,k1.default)("".concat(Y,"-thumb"),_({},"".concat(Y,"-thumb-moving"),g)),style:T(T({},ae),m),onMouseDown:L}))}),M1=y9;var x9=20;function F1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,x9),Math.floor(r)}var b9=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],S9=[],C9={overflowY:"auto",overflowAnchor:"none"};function w9(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,d=e.itemKey,m=e.virtual,h=e.direction,v=e.scrollWidth,y=e.component,g=y===void 0?"div":y,p=e.onScroll,x=e.onVirtualScroll,b=e.onVisibleChange,S=e.innerProps,w=e.extraRender,C=e.styles,R=e.showScrollBar,P=R===void 0?"optional":R,O=Ve(e,b9),I=Ar.useCallback(function(Te){return typeof d=="function"?d(Te):Te?.[d]},[d]),D=I1(I,null,null),$=M(D,4),F=$[0],k=$[1],z=$[2],B=$[3],j=!!(m!==!1&&i&&a),G=Ar.useMemo(function(){return Object.values(z.maps).reduce(function(Te,Ue){return Te+Ue},0)},[z.id,z.maps]),V=j&&u&&(Math.max(a*u.length,G)>i||!!v),H=h==="rtl",K=(0,Yk.default)(n,_({},"".concat(n,"-rtl"),H),o),W=u||S9,A=(0,co.useRef)(),L=(0,co.useRef)(),q=(0,co.useRef)(),ne=(0,co.useState)(0),Y=M(ne,2),X=Y[0],ae=Y[1],J=(0,co.useState)(0),U=M(J,2),Q=U[0],te=U[1],Z=(0,co.useState)(!1),re=M(Z,2),de=re[0],le=re[1],pe=function(){le(!0)},Oe=function(){le(!1)},Ce={getKey:I};function $e(Te){ae(function(Ue){var ke;typeof Te=="function"?ke=Te(Ue):ke=Te;var ve=we(ke);return A.current.scrollTop=ve,ve})}var ce=(0,co.useRef)({start:0,end:W.length}),ie=(0,co.useRef)(),Re=P1(W,I),Le=M(Re,1),Ge=Le[0];ie.current=Ge;var Me=Ar.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!V){var Te;return{scrollHeight:((Te=L.current)===null||Te===void 0?void 0:Te.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var Ue=0,ke,ve,nt,It=W.length,Dt=0;Dt=X&&ke===void 0&&(ke=Dt,ve=Ue),Pr>X+i&&nt===void 0&&(nt=Dt),Ue=Pr}return ke===void 0&&(ke=0,ve=0,nt=Math.ceil(i/a)),nt===void 0&&(nt=W.length-1),nt=Math.min(nt+1,W.length-1),{scrollHeight:Ue,start:ke,end:nt,offset:ve}},[V,j,X,W,B,i]),Ie=Me.scrollHeight,je=Me.start,We=Me.end,He=Me.offset;ce.current.start=je,ce.current.end=We,Ar.useLayoutEffect(function(){var Te=z.getRecord();if(Te.size===1){var Ue=Array.from(Te)[0],ke=W[je];if(ke){var ve=I(ke);if(ve===Ue){var nt=z.get(Ue),It=nt-a;$e(function(Dt){return Dt+It})}}}z.resetRecord()},[Ie]);var ye=Ar.useState({width:0,height:i}),se=M(ye,2),xe=se[0],_e=se[1],he=function(Ue){_e({width:Ue.offsetWidth,height:Ue.offsetHeight})},Ze=(0,co.useRef)(),lt=(0,co.useRef)(),Rt=Ar.useMemo(function(){return F1(xe.width,v)},[xe.width,v]),Tt=Ar.useMemo(function(){return F1(xe.height,Ie)},[xe.height,Ie]),pt=Ie-i,Ae=(0,co.useRef)(pt);Ae.current=pt;function we(Te){var Ue=Te;return Number.isNaN(Ae.current)||(Ue=Math.min(Ue,Ae.current)),Ue=Math.max(Ue,0),Ue}var et=X<=0,Pe=X>=pt,De=Q<=0,Ee=Q>=v,be=wy(et,Pe,De,Ee),ht=function(){return{x:H?-Q:Q,y:X}},Mt=(0,co.useRef)(ht()),Fe=wt(function(Te){if(x){var Ue=T(T({},ht()),Te);(Mt.current.x!==Ue.x||Mt.current.y!==Ue.y)&&(x(Ue),Mt.current=Ue)}});function Se(Te,Ue){var ke=Te;Ue?((0,L1.flushSync)(function(){te(ke)}),Fe()):$e(ke)}function Ke(Te){var Ue=Te.currentTarget.scrollTop;Ue!==X&&$e(Ue),p?.(Te),Fe()}var Be=function(Ue){var ke=Ue,ve=v?v-xe.width:0;return ke=Math.max(ke,0),ke=Math.min(ke,ve),ke},ze=wt(function(Te,Ue){Ue?((0,L1.flushSync)(function(){te(function(ke){var ve=ke+(H?-Te:Te);return Be(ve)})}),Fe()):$e(function(ke){var ve=ke+Te;return ve})}),tt=N1(j,et,Pe,De,Ee,!!v,ze),kt=M(tt,2),Nt=kt[0],tr=kt[1];D1(j,A,function(Te,Ue,ke,ve){var nt=ve;return be(Te,Ue,ke)?!1:!nt||!nt._virtualHandled?(nt&&(nt._virtualHandled=!0),Nt({preventDefault:function(){},deltaX:Te?Ue:0,deltaY:Te?0:Ue}),!0):!1}),$1(V,A,function(Te){$e(function(Ue){return Ue+Te})}),vt(function(){function Te(ke){var ve=et&&ke.detail<0,nt=Pe&&ke.detail>0;j&&!ve&&!nt&&ke.preventDefault()}var Ue=A.current;return Ue.addEventListener("wheel",Nt,{passive:!1}),Ue.addEventListener("DOMMouseScroll",tr,{passive:!0}),Ue.addEventListener("MozMousePixelScroll",Te,{passive:!1}),function(){Ue.removeEventListener("wheel",Nt),Ue.removeEventListener("DOMMouseScroll",tr),Ue.removeEventListener("MozMousePixelScroll",Te)}},[j,et,Pe]),vt(function(){if(v){var Te=Be(Q);te(Te),Fe({x:Te})}},[xe.width,v]);var Ft=function(){var Ue,ke;(Ue=Ze.current)===null||Ue===void 0||Ue.delayHidden(),(ke=lt.current)===null||ke===void 0||ke.delayHidden()},rr=A1(A,W,z,a,I,function(){return k(!0)},$e,Ft);Ar.useImperativeHandle(t,function(){return{nativeElement:q.current,getScrollInfo:ht,scrollTo:function(Ue){function ke(ve){return ve&&fe(ve)==="object"&&("left"in ve||"top"in ve)}ke(Ue)?(Ue.left!==void 0&&te(Be(Ue.left)),rr(Ue.top)):rr(Ue)}}}),vt(function(){if(b){var Te=W.slice(je,We+1);b(Te,W)}},[je,We,W]);var pr=Vk(W,I,z,a),mr=w?.({start:je,end:We,virtual:V,offsetX:Q,offsetY:He,rtl:H,getSize:pr}),Mn=_1(W,je,We,v,Q,F,f,Ce),gr=null;i&&(gr=T(_({},l?"height":"maxHeight",i),C9),j&&(gr.overflowY="hidden",v&&(gr.overflowX="hidden"),de&&(gr.pointerEvents="none")));var Lt={};return H&&(Lt.dir="rtl"),Ar.createElement("div",ue({ref:q,style:T(T({},c),{},{position:"relative"}),className:K},Lt,O),Ar.createElement(no,{onResize:he},Ar.createElement(g,{className:"".concat(n,"-holder"),style:gr,ref:A,onScroll:Ke,onMouseEnter:Ft},Ar.createElement(Lk,{prefixCls:n,height:Ie,offsetX:Q,offsetY:He,scrollWidth:v,onInnerResize:k,ref:L,innerProps:S,rtl:H,extra:mr},Mn))),V&&Ie>i&&Ar.createElement(M1,{ref:Ze,prefixCls:n,scrollOffset:X,scrollRange:Ie,rtl:H,onScroll:Se,onStartMove:pe,onStopMove:Oe,spinSize:Tt,containerSize:xe.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:P}),V&&v>xe.width&&Ar.createElement(M1,{ref:lt,prefixCls:n,scrollOffset:Q,scrollRange:v,rtl:H,onScroll:Se,onStartMove:pe,onStopMove:Oe,spinSize:Rt,containerSize:xe.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:P}))}var Qk=Ar.forwardRef(w9);Qk.displayName="List";var Jk=Qk;var Zk=Jk;var Ut=E(N()),W1=E(N());function eM(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var E9=["disabled","title","children","style","className"];function tM(e){return typeof e=="string"||typeof e=="number"}var R9=function(t,r){var n=fy(),o=n.prefixCls,i=n.id,a=n.open,s=n.multiple,l=n.mode,c=n.searchValue,u=n.toggleOpen,f=n.notFoundContent,d=n.onPopupScroll,m=Ut.useContext(Tu),h=m.maxCount,v=m.flattenOptions,y=m.onActiveValue,g=m.defaultActiveFirstOption,p=m.onSelect,x=m.menuItemSelectedIcon,b=m.rawValues,S=m.fieldNames,w=m.virtual,C=m.direction,R=m.listHeight,P=m.listItemHeight,O=m.optionRender,I="".concat(o,"-item"),D=Ui(function(){return v},[a,v],function(J,U){return U[0]&&J[1]!==U[1]}),$=Ut.useRef(null),F=Ut.useMemo(function(){return s&&ep(h)&&b?.size>=h},[s,h,b?.size]),k=function(U){U.preventDefault()},z=function(U){var Q;(Q=$.current)===null||Q===void 0||Q.scrollTo(typeof U=="number"?{index:U}:U)},B=Ut.useCallback(function(J){return l==="combobox"?!1:b.has(J)},[l,ee(b).toString(),b.size]),j=function(U){for(var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=D.length,Z=0;Z1&&arguments[1]!==void 0?arguments[1]:!1;K(U);var te={source:Q?"keyboard":"mouse"},Z=D[U];if(!Z){y(null,-1,te);return}y(Z.value,U,te)};(0,W1.useEffect)(function(){W(g!==!1?j(0):-1)},[D.length,c]);var A=Ut.useCallback(function(J){return l==="combobox"?String(J).toLowerCase()===c.toLowerCase():b.has(J)},[l,c,ee(b).toString(),b.size]);(0,W1.useEffect)(function(){var J=setTimeout(function(){if(!s&&a&&b.size===1){var Q=Array.from(b)[0],te=D.findIndex(function(Z){var re=Z.data;return c?String(re.value).startsWith(c):re.value===Q});te!==-1&&(W(te),z(te))}});if(a){var U;(U=$.current)===null||U===void 0||U.scrollTo(void 0)}return function(){return clearTimeout(J)}},[a,c]);var L=function(U){U!==void 0&&p(U,{selected:!b.has(U)}),s||u(!1)};if(Ut.useImperativeHandle(r,function(){return{onKeyDown:function(U){var Q=U.which,te=U.ctrlKey;switch(Q){case Qe.N:case Qe.P:case Qe.UP:case Qe.DOWN:{var Z=0;if(Q===Qe.UP?Z=-1:Q===Qe.DOWN?Z=1:eM()&&te&&(Q===Qe.N?Z=1:Q===Qe.P&&(Z=-1)),Z!==0){var re=j(H+Z,Z);z(re),W(re,!0)}break}case Qe.TAB:case Qe.ENTER:{var de,le=D[H];le&&!(le!=null&&(de=le.data)!==null&&de!==void 0&&de.disabled)&&!F?L(le.value):L(void 0),a&&U.preventDefault();break}case Qe.ESC:u(!1),a&&U.stopPropagation()}},onKeyUp:function(){},scrollTo:function(U){z(U)}}}),D.length===0)return Ut.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:k},f);var q=Object.keys(S).map(function(J){return S[J]}),ne=function(U){return U.label};function Y(J,U){var Q=J.group;return{role:Q?"presentation":"option",id:"".concat(i,"_list_").concat(U)}}var X=function(U){var Q=D[U];if(!Q)return null;var te=Q.data||{},Z=te.value,re=Q.group,de=Go(te,!0),le=ne(Q);return Q?Ut.createElement("div",ue({"aria-label":typeof le=="string"&&!re?le:null},de,{key:U},Y(Q,U),{"aria-selected":A(Z)}),Z):null},ae={role:"listbox",id:"".concat(i,"_list")};return Ut.createElement(Ut.Fragment,null,w&&Ut.createElement("div",ue({},ae,{style:{height:0,width:0,overflow:"hidden"}}),X(H-1),X(H),X(H+1)),Ut.createElement(Zk,{itemKey:"key",ref:$,data:D,height:R,itemHeight:P,fullHeight:!1,onMouseDown:k,onScroll:d,virtual:w,direction:C,innerProps:w?null:ae},function(J,U){var Q=J.group,te=J.groupOption,Z=J.data,re=J.label,de=J.value,le=Z.key;if(Q){var pe,Oe=(pe=Z.title)!==null&&pe!==void 0?pe:tM(re)?re.toString():void 0;return Ut.createElement("div",{className:(0,z1.default)(I,"".concat(I,"-group"),Z.className),title:Oe},re!==void 0?re:le)}var Ce=Z.disabled,$e=Z.title,ce=Z.children,ie=Z.style,Re=Z.className,Le=Ve(Z,E9),Ge=Kr(Le,q),Me=B(de),Ie=Ce||!Me&&F,je="".concat(I,"-option"),We=(0,z1.default)(I,je,Re,_(_(_(_({},"".concat(je,"-grouped"),te),"".concat(je,"-active"),H===U&&!Ie),"".concat(je,"-disabled"),Ie),"".concat(je,"-selected"),Me)),He=ne(J),ye=!x||typeof x=="function"||Me,se=typeof He=="number"?He:He||de,xe=tM(se)?se.toString():void 0;return $e!==void 0&&(xe=$e),Ut.createElement("div",ue({},Go(Ge),w?{}:Y(J,U),{"aria-selected":A(de),className:We,title:xe,onMouseMove:function(){H===U||Ie||W(U)},onClick:function(){Ie||L(de)},style:ie}),Ut.createElement("div",{className:"".concat(je,"-content")},typeof O=="function"?O(J,{index:U}):se),Ut.isValidElement(x)||Me,ye&&Ut.createElement(Bs,{className:"".concat(I,"-option-state"),customizeIcon:x,customizeIconProps:{value:de,disabled:Ie,isSelected:Me}},Me?"\u2713":null))}))},O9=Ut.forwardRef(R9),rM=O9;var $u=E(N()),nM=function(e,t){var r=$u.useRef({values:new Map,options:new Map}),n=$u.useMemo(function(){var i=r.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var d;return T(T({},f),{},{label:(d=a.get(f.value))===null||d===void 0?void 0:d.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),r.current.values=c,r.current.options=u,l},[e,t]),o=$u.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,o]};var oM=E(N());function B1(e,t){return Yd(e).join("").toUpperCase().includes(t)}var iM=function(e,t,r,n,o){return oM.useMemo(function(){if(!r||n===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof n=="function",u=r.toUpperCase(),f=c?n:function(m,h){return o?B1(h[o],u):h[i]?B1(h[a!=="children"?a:"label"],u):B1(h[s],u)},d=c?function(m){return tp(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var h=f(r,d(m));if(h)l.push(m);else{var v=m[i].filter(function(y){return f(r,d(y))});v.length&&l.push(T(T({},m),{},_({},i,v)))}return}f(r,d(m))&&l.push(m)}),l},[e,n,o,r,t])};var Oy=E(N());var aM=0,_9=Yt();function P9(){var e;return _9?(e=aM,aM+=1):e="TEST_OR_SSR",e}function j1(e){var t=Oy.useState(),r=M(t,2),n=r[0],o=r[1];return Oy.useEffect(function(){o("rc_select_".concat(P9()))},[]),e||n}var lM=E(N());var sM=E(N());var T9=["children","value"],N9=["children"];function I9(e){var t=e,r=t.key,n=t.props,o=n.children,i=n.value,a=Ve(n,T9);return T({key:r,value:i!==void 0?i:r,children:o},a)}function _y(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xi(e).map(function(r,n){if(!sM.isValidElement(r)||!r.type)return null;var o=r,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Ve(s,N9);return t||!i?I9(r):T(T({key:"__RC_SELECT_GRP__".concat(a===null?n:a,"__"),label:a},c),{},{options:_y(l)})}).filter(function(r){return r})}var D9=function(t,r,n,o,i){return lM.useMemo(function(){var a=t,s=!t;s&&(a=_y(r));var l=new Map,c=new Map,u=function(m,h,v){v&&typeof v=="string"&&m.set(h[v],h)},f=function d(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v0?Fe(Be.options):Be.options}):Be})},ye=fr.useMemo(function(){return p?He(We):We},[We,p,ae]),se=fr.useMemo(function(){return Nk(ye,{fieldNames:ne,childrenAsData:L})},[ye,ne,L]),xe=function(Se){var Ke=re(Se);if(Oe(Ke),V&&(Ke.length!==ie.length||Ke.some(function(tt,kt){var Nt;return((Nt=ie[kt])===null||Nt===void 0?void 0:Nt.value)!==tt?.value}))){var Be=G?Ke:Ke.map(function(tt){return tt.value}),ze=Ke.map(function(tt){return tp(Re(tt.value))});V(A?Be:Be[0],A?ze:ze[0])}},_e=fr.useState(null),he=M(_e,2),Ze=he[0],lt=he[1],Rt=fr.useState(0),Tt=M(Rt,2),pt=Tt[0],Ae=Tt[1],we=R!==void 0?R:n!=="combobox",et=fr.useCallback(function(Fe,Se){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Be=Ke.source,ze=Be===void 0?"keyboard":Be;Ae(Se),a&&n==="combobox"&&Fe!==null&&ze==="keyboard"&<(String(Fe))},[a,n]),Pe=function(Se,Ke,Be){var ze=function(){var gr,Lt=Re(Se);return[G?{label:Lt?.[ne.label],value:Se,key:(gr=Lt?.key)!==null&&gr!==void 0?gr:Se}:Se,tp(Lt)]};if(Ke&&m){var tt=ze(),kt=M(tt,2),Nt=kt[0],tr=kt[1];m(Nt,tr)}else if(!Ke&&h&&Be!=="clear"){var Ft=ze(),rr=M(Ft,2),pr=rr[0],mr=rr[1];h(pr,mr)}},De=Ty(function(Fe,Se){var Ke,Be=A?Se.selected:!0;Be?Ke=A?[].concat(ee(ie),[Fe]):[Fe]:Ke=ie.filter(function(ze){return ze.value!==Fe}),xe(Ke),Pe(Fe,Be),n==="combobox"?lt(""):(!rp||d)&&(J(""),lt(""))}),Ee=function(Se,Ke){xe(Se);var Be=Ke.type,ze=Ke.values;(Be==="remove"||Be==="clear")&&ze.forEach(function(tt){Pe(tt.value,!1,Be)})},be=function(Se,Ke){if(J(Se),lt(null),Ke.source==="submit"){var Be=(Se||"").trim();if(Be){var ze=Array.from(new Set([].concat(ee(Ge),[Be])));xe(ze),Pe(Be,!0),J("")}return}Ke.source!=="blur"&&(n==="combobox"&&xe(Se),u?.(Se))},ht=function(Se){var Ke=Se;n!=="tags"&&(Ke=Se.map(function(ze){var tt=te.get(ze);return tt?.value}).filter(function(ze){return ze!==void 0}));var Be=Array.from(new Set([].concat(ee(Ge),ee(Ke))));xe(Be),Be.forEach(function(ze){Pe(ze,!0)})},Mt=fr.useMemo(function(){var Fe=O!==!1&&y!==!1;return T(T({},U),{},{flattenOptions:se,onActiveValue:et,defaultActiveFirstOption:we,onSelect:De,menuItemSelectedIcon:P,rawValues:Ge,fieldNames:ne,virtual:Fe,direction:I,listHeight:$,listItemHeight:k,childrenAsData:L,maxCount:H,optionRender:w})},[H,U,se,et,we,De,P,Ge,ne,O,y,I,$,k,L,w]);return fr.createElement(Tu.Provider,{value:Mt},fr.createElement(O1,ue({},K,{id:W,prefixCls:i,ref:t,omitDomProps:k9,mode:n,displayValues:Le,onDisplayValuesChange:Ee,direction:I,searchValue:ae,onSearch:be,autoClearSearchValue:d,onSearchSplit:ht,dropdownMatchSelectWidth:y,OptionList:rM,emptyOptions:!se.length,activeValue:Ze,activeDescendantId:"".concat(W,"_list_").concat(pt)})))}),V1=F9;V1.Option=op;V1.OptGroup=np;var uM=V1;var fM=uM;var dM=E(Ne());function Qi(e,t,r){return(0,dM.default)({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}var Ji=(e,t)=>t||e;var ku=E(N());var qs=E(N()),ap=E(Ne());var uo=E(N());var L9=()=>{let[,e]=xr(),[t]=wa("Empty"),n=new gt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return uo.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},uo.createElement("title",null,t?.description||"Empty"),uo.createElement("g",{fill:"none",fillRule:"evenodd"},uo.createElement("g",{transform:"translate(24 31.67)"},uo.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),uo.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"}),uo.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)"}),uo.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"}),uo.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"})),uo.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"}),uo.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},uo.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),uo.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},pM=L9;var Us=E(N()),mM=E(N());var z9=()=>{let[,e]=xr(),[t]=wa("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,mM.useMemo)(()=>({borderColor:new gt(r).onBackground(i).toHexString(),shadowColor:new gt(n).onBackground(i).toHexString(),contentColor:new gt(o).onBackground(i).toHexString()}),[r,n,o,i]);return Us.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Us.createElement("title",null,t?.description||"Empty"),Us.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Us.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),Us.createElement("g",{fillRule:"nonzero",stroke:a},Us.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"}),Us.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:l}))))},gM=z9;var W9=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:i,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:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},hM=Gt("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e,o=ut(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[W9(o)]});var B9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{className:t,rootClassName:r,prefixCls:n,image:o=vM,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=B9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:d,direction:m,className:h,style:v,classNames:y,styles:g}=oo("empty"),p=d("empty",n),[x,b,S]=hM(p),[w]=wa("Empty"),C=typeof i<"u"?i:w?.description,R=typeof C=="string"?C:"empty",P=null;return typeof o=="string"?P=qs.createElement("img",{alt:R,src:o}):P=o,x(qs.createElement("div",Object.assign({className:(0,ap.default)(b,S,p,h,{[`${p}-normal`]:o===yM,[`${p}-rtl`]:m==="rtl"},t,r,y.root,c?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},g.root),v),u?.root),l)},f),qs.createElement("div",{className:(0,ap.default)(`${p}-image`,y.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),g.image),u?.image)},P),C&&qs.createElement("div",{className:(0,ap.default)(`${p}-description`,y.description,c?.description),style:Object.assign(Object.assign({},g.description),u?.description)},C),a&&qs.createElement("div",{className:(0,ap.default)(`${p}-footer`,y.footer,c?.footer),style:Object.assign(Object.assign({},g.footer),u?.footer)},a)))};H1.PRESENTED_IMAGE_DEFAULT=vM;H1.PRESENTED_IMAGE_SIMPLE=yM;var Au=H1;var j9=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,ku.useContext)(rt),n=r("empty");switch(t){case"Table":case"List":return ku.default.createElement(Au,{image:Au.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ku.default.createElement(Au,{image:Au.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return ku.default.createElement(Au,null)}},xM=j9;var U1=E(N());var V9=(e,t,r=void 0)=>{var n,o;let{variant:i,[e]:a}=U1.useContext(rt),s=U1.useContext(LA),l=a?.variant,c;typeof t<"u"?c=t:r===!1?c="borderless":c=(o=(n=s??l)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";let u=zC.includes(c);return[c,u]},Gs=V9;var H9=e=>{let r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function U9(e,t){return e||H9(t)}var bM=U9;var SM=e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},q9=e=>{let{antCls:t,componentCls:r}=e,n=`${r}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${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({},sr(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,[` +`].includes(St)})},[A]),Ke=bt.useContext(Tu)||{},Le=Ke.maxCount,ze=Ke.rawValues,tt=function(pt,Kr,tn){if(!(ue&&tp(Le)&&ze?.size>=Le)){var Cr=!0,Mr=pt;P?.(null);var mo=Dk(pt,A,tp(Le)?Le-ze.size:void 0),Yn=tn?null:mo;return y!=="combobox"&&Yn&&(Mr="",L?.(Yn),Ie(!1),Cr=!1),$&&he!==Mr&&$(Mr,{source:Kr?"typing":"effect"}),Cr}},kt=function(pt){!pt||!pt.trim()||$(pt,{source:"submit"})};bt.useEffect(function(){!xe&&!ue&&y!=="combobox"&&tt("",!1,!1)},[xe]),bt.useEffect(function(){Me&&g&&Ve(!1),g&&!Fe.current&&ge(!1)},[g]);var Dt=Xd(),rr=F(Dt,2),Ft=rr[0],Tr=rr[1],nr=bt.useRef(!1),xr=function(pt){var Kr=Ft(),tn=pt.key,Cr=tn==="Enter";if(Cr&&(y!=="combobox"&&pt.preventDefault(),xe||Ie(!0)),Tr(!!he),tn==="Backspace"&&!Kr&&ue&&!he&&u.length){for(var Mr=ne(u),mo=null,Yn=Mr.length-1;Yn>=0;Yn-=1){var Io=Mr[Yn];if(!Io.disabled){Mr.splice(Yn,1),mo=Io;break}}mo&&f(Mr,{type:"remove",values:[mo]})}for(var ki=arguments.length,li=new Array(ki>1?ki-1:0),Ua=1;Ua1?Kr-1:0),Cr=1;Cr1?mo-1:0),Io=1;Io"u"?"undefined":ce(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),I1=h9;var Ey=E(N()),Ry=function(e,t,r,n){var o=(0,Ey.useRef)(!1),i=(0,Ey.useRef)(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=(0,Ey.useRef)({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function D1(e,t,r,n,o,i,a){var s=(0,Ul.useRef)(0),l=(0,Ul.useRef)(null),c=(0,Ul.useRef)(null),u=(0,Ul.useRef)(!1),f=Ry(t,r,n,o);function d(p,x){if(dt.cancel(l.current),!f(!1,x)){var b=p;if(!b._virtualHandled)b._virtualHandled=!0;else return;s.current+=x,c.current=x,I1||b.preventDefault(),l.current=dt(function(){var S=u.current?10:1;a(s.current*S,!1),s.current=0})}}function m(p,x){a(x,!0),I1||p.preventDefault()}var h=(0,Ul.useRef)(null),v=(0,Ul.useRef)(null);function y(p){if(e){dt.cancel(v.current),v.current=dt(function(){h.current=null},2);var x=p.deltaX,b=p.deltaY,S=p.shiftKey,w=x,C=b;(h.current==="sx"||!h.current&&S&&b&&!x)&&(w=b,C=0,h.current="sx");var R=Math.abs(w),P=Math.abs(C);h.current===null&&(h.current=i&&R>P?"x":"y"),h.current==="y"?d(p,C):m(p,w)}}function g(p){e&&(u.current=p.detail===c.current)}return[y,g]}var Vk=E(N());function Hk(e,t,r,n){var o=Vk.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=F(o,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,d=a.get(u),m=a.get(f);if(d===void 0||m===void 0)for(var h=e.length,v=s.length;v0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var g=!1;s.current.forEach(function(p,x){if(p&&p.offsetParent){var b=p.offsetHeight,S=getComputedStyle(p),w=S.marginTop,C=S.marginBottom,R=qk(w),P=qk(C),O=b+R+P;l.current.get(x)!==O&&(l.current.set(x,O),g=!0)}}),g&&a(function(p){return p+1})};if(m)h();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&h()})}}function d(m,h){var v=e(m),y=s.current.get(v);h?(s.current.set(v,h),f()):s.current.delete(v),!y!=!h&&(h?t?.(m):r?.(m))}return(0,Iu.useEffect)(function(){return u},[]),[d,f,l.current,i]}var Du=E(N()),Kk=14/15;function A1(e,t,r){var n=(0,Du.useRef)(!1),o=(0,Du.useRef)(0),i=(0,Du.useRef)(0),a=(0,Du.useRef)(null),s=(0,Du.useRef)(null),l,c=function(m){if(n.current){var h=Math.ceil(m.touches[0].pageX),v=Math.ceil(m.touches[0].pageY),y=o.current-h,g=i.current-v,p=Math.abs(y)>Math.abs(g);p?o.current=h:i.current=v;var x=r(p,p?y:g,!1,m);x&&m.preventDefault(),clearInterval(s.current),x&&(s.current=setInterval(function(){p?y*=Kk:g*=Kk;var b=Math.floor(p?y:g);(!r(p,b,!0)||Math.abs(b)<=.1)&&clearInterval(s.current)},16))}},u=function(){n.current=!1,l()},f=function(m){l(),m.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},yt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var Yk=E(N());function Xk(e){return Math.floor(Math.pow(e,.5))}function Oy(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function k1(e,t,r){Yk.useEffect(function(){var n=t.current;if(e&&n){var o=!1,i,a,s=function(){dt.cancel(i)},l=function d(){s(),i=dt(function(){r(a),d()})},c=function(m){if(!(m.target.draggable||m.button!==0)){var h=m;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},u=function(){o=!1,s()},f=function(m){if(o){var h=Oy(m,!1),v=n.getBoundingClientRect(),y=v.top,g=v.bottom;if(h<=y){var p=y-h;a=-Xk(p),l()}else if(h>=g){var x=h-g;a=Xk(x),l()}else s()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",u),n.ownerDocument.addEventListener("mousemove",f),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",u),n.ownerDocument.removeEventListener("mousemove",f),s()}}},[e])}var _y=E(N());var y9=10;function M1(e,t,r,n,o,i,a,s){var l=_y.useRef(),c=_y.useState(null),u=F(c,2),f=u[0],d=u[1];return yt(function(){if(f&&f.times=0;L-=1){var A=o(t[L]),M=r.get(A);if(M===void 0){p=!0;break}if($-=M,$<=0)break}switch(S){case"top":b=C-y;break;case"bottom":b=R-g+y;break;default:{var W=e.current.scrollTop,B=W+g;CB&&(x="bottom")}}b!==null&&a(b),b!==f.lastTop&&(p=!0)}p&&d(T(T({},f),{},{times:f.times+1,targetAlign:x,lastTop:b}))}},[f,e.current]),function(m){if(m==null){s();return}if(dt.cancel(l.current),typeof m=="number")a(m);else if(m&&ce(m)==="object"){var h,v=m.align;"index"in m?h=m.index:h=t.findIndex(function(p){return o(p)===m.key});var y=m.offset,g=y===void 0?0:y;d({times:0,index:h,offset:g,originAlign:v})}}}var F1=E(Ne());var fr=E(N());var x9=fr.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,d=e.style,m=e.thumbStyle,h=e.showScrollBar,v=fr.useState(!1),y=F(v,2),g=y[0],p=y[1],x=fr.useState(null),b=F(x,2),S=b[0],w=b[1],C=fr.useState(null),R=F(C,2),P=R[0],O=R[1],I=!n,D=fr.useRef(),$=fr.useRef(),L=fr.useState(h),A=F(L,2),M=A[0],W=A[1],B=fr.useRef(),K=function(){h===!0||h===!1||(clearTimeout(B.current),W(!0),B.current=setTimeout(function(){W(!1)},3e3))},G=i-f||0,V=f-u||0,H=fr.useMemo(function(){if(o===0||G===0)return 0;var Z=o/G;return Z*V},[o,G,V]),j=function(q){q.stopPropagation(),q.preventDefault()},k=fr.useRef({top:H,dragging:g,pageY:S,startTop:P});k.current={top:H,dragging:g,pageY:S,startTop:P};var z=function(q){p(!0),w(Oy(q,c)),O(k.current.top),a(),q.stopPropagation(),q.preventDefault()};fr.useEffect(function(){var Z=function(ee){ee.preventDefault()},q=D.current,J=$.current;return q.addEventListener("touchstart",Z,{passive:!1}),J.addEventListener("touchstart",z,{passive:!1}),function(){q.removeEventListener("touchstart",Z),J.removeEventListener("touchstart",z)}},[]);var U=fr.useRef();U.current=G;var oe=fr.useRef();oe.current=V,fr.useEffect(function(){if(g){var Z,q=function(ee){var te=k.current,de=te.dragging,fe=te.pageY,ue=te.startTop;dt.cancel(Z);var Ce=D.current.getBoundingClientRect(),we=f/(c?Ce.width:Ce.height);if(de){var _e=(Oy(ee,c)-fe)*we,ve=ue;!I&&c?ve-=_e:ve+=_e;var Y=U.current,Ee=oe.current,$e=Ee?ve/Ee:0,et=Math.ceil($e*Y);et=Math.max(et,0),et=Math.min(et,Y),Z=dt(function(){l(et,c)})}},J=function(){p(!1),s()};return window.addEventListener("mousemove",q,{passive:!0}),window.addEventListener("touchmove",q,{passive:!0}),window.addEventListener("mouseup",J,{passive:!0}),window.addEventListener("touchend",J,{passive:!0}),function(){window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",J),window.removeEventListener("touchend",J),dt.cancel(Z)}}},[g]),fr.useEffect(function(){return K(),function(){clearTimeout(B.current)}},[o]),fr.useImperativeHandle(t,function(){return{delayHidden:K}});var Q="".concat(r,"-scrollbar"),X={position:"absolute",visibility:M?null:"hidden"},se={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,se.height="100%",se.width=u,I?se.left=H:se.right=H):(X.width=8,X.top=0,X.bottom=0,I?X.right=0:X.left=0,se.width="100%",se.height=u,se.top=H),fr.createElement("div",{ref:D,className:(0,F1.default)(Q,_(_(_({},"".concat(Q,"-horizontal"),c),"".concat(Q,"-vertical"),!c),"".concat(Q,"-visible"),M)),style:T(T({},X),d),onMouseDown:j,onMouseMove:K},fr.createElement("div",{ref:$,className:(0,F1.default)("".concat(Q,"-thumb"),_({},"".concat(Q,"-thumb-moving"),g)),style:T(T({},se),m),onMouseDown:z}))}),L1=x9;var b9=20;function z1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,b9),Math.floor(r)}var S9=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],C9=[],w9={overflowY:"auto",overflowAnchor:"none"};function E9(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,d=e.itemKey,m=e.virtual,h=e.direction,v=e.scrollWidth,y=e.component,g=y===void 0?"div":y,p=e.onScroll,x=e.onVirtualScroll,b=e.onVisibleChange,S=e.innerProps,w=e.extraRender,C=e.styles,R=e.showScrollBar,P=R===void 0?"optional":R,O=He(e,S9),I=kr.useCallback(function(Ae){return typeof d=="function"?d(Ae):Ae?.[d]},[d]),D=$1(I,null,null),$=F(D,4),L=$[0],A=$[1],M=$[2],W=$[3],B=!!(m!==!1&&i&&a),K=kr.useMemo(function(){return Object.values(M.maps).reduce(function(Ae,We){return Ae+We},0)},[M.id,M.maps]),G=B&&u&&(Math.max(a*u.length,K)>i||!!v),V=h==="rtl",H=(0,Qk.default)(n,_({},"".concat(n,"-rtl"),V),o),j=u||C9,k=(0,co.useRef)(),z=(0,co.useRef)(),U=(0,co.useRef)(),oe=(0,co.useState)(0),Q=F(oe,2),X=Q[0],se=Q[1],Z=(0,co.useState)(0),q=F(Z,2),J=q[0],re=q[1],ee=(0,co.useState)(!1),te=F(ee,2),de=te[0],fe=te[1],ue=function(){fe(!0)},Ce=function(){fe(!1)},we={getKey:I};function _e(Ae){se(function(We){var De;typeof Ae=="function"?De=Ae(We):De=Ae;var ye=Pe(De);return k.current.scrollTop=ye,ye})}var ve=(0,co.useRef)({start:0,end:j.length}),Y=(0,co.useRef)(),Ee=N1(j,I),$e=F(Ee,1),et=$e[0];Y.current=et;var ke=kr.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!G){var Ae;return{scrollHeight:((Ae=z.current)===null||Ae===void 0?void 0:Ae.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var We=0,De,ye,rt,Nt=j.length,Mt=0;Mt=X&&De===void 0&&(De=Mt,ye=We),Sr>X+i&&rt===void 0&&(rt=Mt),We=Sr}return De===void 0&&(De=0,ye=0,rt=Math.ceil(i/a)),rt===void 0&&(rt=j.length-1),rt=Math.min(rt+1,j.length-1),{scrollHeight:We,start:De,end:rt,offset:ye}},[G,B,X,j,W,i]),Se=ke.scrollHeight,Be=ke.start,Fe=ke.end,Ue=ke.offset;ve.current.start=Be,ve.current.end=Fe,kr.useLayoutEffect(function(){var Ae=M.getRecord();if(Ae.size===1){var We=Array.from(Ae)[0],De=j[Be];if(De){var ye=I(De);if(ye===We){var rt=M.get(We),Nt=rt-a;_e(function(Mt){return Mt+Nt})}}}M.resetRecord()},[Se]);var Re=kr.useState({width:0,height:i}),ae=F(Re,2),ge=ae[0],Te=ae[1],he=function(We){Te({width:We.offsetWidth,height:We.offsetHeight})},Ze=(0,co.useRef)(),ct=(0,co.useRef)(),_t=kr.useMemo(function(){return z1(ge.width,v)},[ge.width,v]),Pt=kr.useMemo(function(){return z1(ge.height,Se)},[ge.height,Se]),mt=Se-i,je=(0,co.useRef)(mt);je.current=mt;function Pe(Ae){var We=Ae;return Number.isNaN(je.current)||(We=Math.min(We,je.current)),We=Math.max(We,0),We}var qe=X<=0,Oe=X>=mt,Me=J<=0,Ve=J>=v,xe=Ry(qe,Oe,Me,Ve),nt=function(){return{x:V?-J:J,y:X}},Tt=(0,co.useRef)(nt()),Ie=wt(function(Ae){if(x){var We=T(T({},nt()),Ae);(Tt.current.x!==We.x||Tt.current.y!==We.y)&&(x(We),Tt.current=We)}});function be(Ae,We){var De=Ae;We?((0,W1.flushSync)(function(){re(De)}),Ie()):_e(De)}function Ke(Ae){var We=Ae.currentTarget.scrollTop;We!==X&&_e(We),p?.(Ae),Ie()}var Le=function(We){var De=We,ye=v?v-ge.width:0;return De=Math.max(De,0),De=Math.min(De,ye),De},ze=wt(function(Ae,We){We?((0,W1.flushSync)(function(){re(function(De){var ye=De+(V?-Ae:Ae);return Le(ye)})}),Ie()):_e(function(De){var ye=De+Ae;return ye})}),tt=D1(B,qe,Oe,Me,Ve,!!v,ze),kt=F(tt,2),Dt=kt[0],rr=kt[1];A1(B,k,function(Ae,We,De,ye){var rt=ye;return xe(Ae,We,De)?!1:!rt||!rt._virtualHandled?(rt&&(rt._virtualHandled=!0),Dt({preventDefault:function(){},deltaX:Ae?We:0,deltaY:Ae?0:We}),!0):!1}),k1(G,k,function(Ae){_e(function(We){return We+Ae})}),yt(function(){function Ae(De){var ye=qe&&De.detail<0,rt=Oe&&De.detail>0;B&&!ye&&!rt&&De.preventDefault()}var We=k.current;return We.addEventListener("wheel",Dt,{passive:!1}),We.addEventListener("DOMMouseScroll",rr,{passive:!0}),We.addEventListener("MozMousePixelScroll",Ae,{passive:!1}),function(){We.removeEventListener("wheel",Dt),We.removeEventListener("DOMMouseScroll",rr),We.removeEventListener("MozMousePixelScroll",Ae)}},[B,qe,Oe]),yt(function(){if(v){var Ae=Le(J);re(Ae),Ie({x:Ae})}},[ge.width,v]);var Ft=function(){var We,De;(We=Ze.current)===null||We===void 0||We.delayHidden(),(De=ct.current)===null||De===void 0||De.delayHidden()},Tr=M1(k,j,M,a,I,function(){return A(!0)},_e,Ft);kr.useImperativeHandle(t,function(){return{nativeElement:U.current,getScrollInfo:nt,scrollTo:function(We){function De(ye){return ye&&ce(ye)==="object"&&("left"in ye||"top"in ye)}De(We)?(We.left!==void 0&&re(Le(We.left)),Tr(We.top)):Tr(We)}}}),yt(function(){if(b){var Ae=j.slice(Be,Fe+1);b(Ae,j)}},[Be,Fe,j]);var nr=Hk(j,I,M,a),xr=w?.({start:Be,end:Fe,virtual:G,offsetX:J,offsetY:Ue,rtl:V,getSize:nr}),wn=T1(j,Be,Fe,v,J,L,f,we),Qt=null;i&&(Qt=T(_({},l?"height":"maxHeight",i),w9),B&&(Qt.overflowY="hidden",v&&(Qt.overflowX="hidden"),de&&(Qt.pointerEvents="none")));var Lt={};return V&&(Lt.dir="rtl"),kr.createElement("div",le({ref:U,style:T(T({},c),{},{position:"relative"}),className:H},Lt,O),kr.createElement(no,{onResize:he},kr.createElement(g,{className:"".concat(n,"-holder"),style:Qt,ref:k,onScroll:Ke,onMouseEnter:Ft},kr.createElement(zk,{prefixCls:n,height:Se,offsetX:J,offsetY:Ue,scrollWidth:v,onInnerResize:A,ref:z,innerProps:S,rtl:V,extra:xr},wn))),G&&Se>i&&kr.createElement(L1,{ref:Ze,prefixCls:n,scrollOffset:X,scrollRange:Se,rtl:V,onScroll:be,onStartMove:ue,onStopMove:Ce,spinSize:Pt,containerSize:ge.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:P}),G&&v>ge.width&&kr.createElement(L1,{ref:ct,prefixCls:n,scrollOffset:J,scrollRange:v,rtl:V,onScroll:be,onStartMove:ue,onStopMove:Ce,spinSize:_t,containerSize:ge.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:P}))}var Jk=kr.forwardRef(E9);Jk.displayName="List";var Zk=Jk;var eM=Zk;var Ut=E(N()),j1=E(N());function tM(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var R9=["disabled","title","children","style","className"];function rM(e){return typeof e=="string"||typeof e=="number"}var O9=function(t,r){var n=py(),o=n.prefixCls,i=n.id,a=n.open,s=n.multiple,l=n.mode,c=n.searchValue,u=n.toggleOpen,f=n.notFoundContent,d=n.onPopupScroll,m=Ut.useContext(Tu),h=m.maxCount,v=m.flattenOptions,y=m.onActiveValue,g=m.defaultActiveFirstOption,p=m.onSelect,x=m.menuItemSelectedIcon,b=m.rawValues,S=m.fieldNames,w=m.virtual,C=m.direction,R=m.listHeight,P=m.listItemHeight,O=m.optionRender,I="".concat(o,"-item"),D=qi(function(){return v},[a,v],function(Z,q){return q[0]&&Z[1]!==q[1]}),$=Ut.useRef(null),L=Ut.useMemo(function(){return s&&tp(h)&&b?.size>=h},[s,h,b?.size]),A=function(q){q.preventDefault()},M=function(q){var J;(J=$.current)===null||J===void 0||J.scrollTo(typeof q=="number"?{index:q}:q)},W=Ut.useCallback(function(Z){return l==="combobox"?!1:b.has(Z)},[l,ne(b).toString(),b.size]),B=function(q){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=D.length,ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1;H(q);var re={source:J?"keyboard":"mouse"},ee=D[q];if(!ee){y(null,-1,re);return}y(ee.value,q,re)};(0,j1.useEffect)(function(){j(g!==!1?B(0):-1)},[D.length,c]);var k=Ut.useCallback(function(Z){return l==="combobox"?String(Z).toLowerCase()===c.toLowerCase():b.has(Z)},[l,c,ne(b).toString(),b.size]);(0,j1.useEffect)(function(){var Z=setTimeout(function(){if(!s&&a&&b.size===1){var J=Array.from(b)[0],re=D.findIndex(function(ee){var te=ee.data;return c?String(te.value).startsWith(c):te.value===J});re!==-1&&(j(re),M(re))}});if(a){var q;(q=$.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[a,c]);var z=function(q){q!==void 0&&p(q,{selected:!b.has(q)}),s||u(!1)};if(Ut.useImperativeHandle(r,function(){return{onKeyDown:function(q){var J=q.which,re=q.ctrlKey;switch(J){case Qe.N:case Qe.P:case Qe.UP:case Qe.DOWN:{var ee=0;if(J===Qe.UP?ee=-1:J===Qe.DOWN?ee=1:tM()&&re&&(J===Qe.N?ee=1:J===Qe.P&&(ee=-1)),ee!==0){var te=B(V+ee,ee);M(te),j(te,!0)}break}case Qe.TAB:case Qe.ENTER:{var de,fe=D[V];fe&&!(fe!=null&&(de=fe.data)!==null&&de!==void 0&&de.disabled)&&!L?z(fe.value):z(void 0),a&&q.preventDefault();break}case Qe.ESC:u(!1),a&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){M(q)}}}),D.length===0)return Ut.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:A},f);var U=Object.keys(S).map(function(Z){return S[Z]}),oe=function(q){return q.label};function Q(Z,q){var J=Z.group;return{role:J?"presentation":"option",id:"".concat(i,"_list_").concat(q)}}var X=function(q){var J=D[q];if(!J)return null;var re=J.data||{},ee=re.value,te=J.group,de=qo(re,!0),fe=oe(J);return J?Ut.createElement("div",le({"aria-label":typeof fe=="string"&&!te?fe:null},de,{key:q},Q(J,q),{"aria-selected":k(ee)}),ee):null},se={role:"listbox",id:"".concat(i,"_list")};return Ut.createElement(Ut.Fragment,null,w&&Ut.createElement("div",le({},se,{style:{height:0,width:0,overflow:"hidden"}}),X(V-1),X(V),X(V+1)),Ut.createElement(eM,{itemKey:"key",ref:$,data:D,height:R,itemHeight:P,fullHeight:!1,onMouseDown:A,onScroll:d,virtual:w,direction:C,innerProps:w?null:se},function(Z,q){var J=Z.group,re=Z.groupOption,ee=Z.data,te=Z.label,de=Z.value,fe=ee.key;if(J){var ue,Ce=(ue=ee.title)!==null&&ue!==void 0?ue:rM(te)?te.toString():void 0;return Ut.createElement("div",{className:(0,B1.default)(I,"".concat(I,"-group"),ee.className),title:Ce},te!==void 0?te:fe)}var we=ee.disabled,_e=ee.title,ve=ee.children,Y=ee.style,Ee=ee.className,$e=He(ee,R9),et=qr($e,U),ke=W(de),Se=we||!ke&&L,Be="".concat(I,"-option"),Fe=(0,B1.default)(I,Be,Ee,_(_(_(_({},"".concat(Be,"-grouped"),re),"".concat(Be,"-active"),V===q&&!Se),"".concat(Be,"-disabled"),Se),"".concat(Be,"-selected"),ke)),Ue=oe(Z),Re=!x||typeof x=="function"||ke,ae=typeof Ue=="number"?Ue:Ue||de,ge=rM(ae)?ae.toString():void 0;return _e!==void 0&&(ge=_e),Ut.createElement("div",le({},qo(et),w?{}:Q(Z,q),{"aria-selected":k(de),className:Fe,title:ge,onMouseMove:function(){V===q||Se||j(q)},onClick:function(){Se||z(de)},style:Y}),Ut.createElement("div",{className:"".concat(Be,"-content")},typeof O=="function"?O(Z,{index:q}):ae),Ut.isValidElement(x)||ke,Re&&Ut.createElement(Bs,{className:"".concat(I,"-option-state"),customizeIcon:x,customizeIconProps:{value:de,disabled:Se,isSelected:ke}},ke?"\u2713":null))}))},_9=Ut.forwardRef(O9),nM=_9;var $u=E(N()),oM=function(e,t){var r=$u.useRef({values:new Map,options:new Map}),n=$u.useMemo(function(){var i=r.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var d;return T(T({},f),{},{label:(d=a.get(f.value))===null||d===void 0?void 0:d.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),r.current.values=c,r.current.options=u,l},[e,t]),o=$u.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,o]};var iM=E(N());function V1(e,t){return Qd(e).join("").toUpperCase().includes(t)}var aM=function(e,t,r,n,o){return iM.useMemo(function(){if(!r||n===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof n=="function",u=r.toUpperCase(),f=c?n:function(m,h){return o?V1(h[o],u):h[i]?V1(h[a!=="children"?a:"label"],u):V1(h[s],u)},d=c?function(m){return rp(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var h=f(r,d(m));if(h)l.push(m);else{var v=m[i].filter(function(y){return f(r,d(y))});v.length&&l.push(T(T({},m),{},_({},i,v)))}return}f(r,d(m))&&l.push(m)}),l},[e,n,o,r,t])};var Py=E(N());var sM=0,P9=Yt();function T9(){var e;return P9?(e=sM,sM+=1):e="TEST_OR_SSR",e}function H1(e){var t=Py.useState(),r=F(t,2),n=r[0],o=r[1];return Py.useEffect(function(){o("rc_select_".concat(T9()))},[]),e||n}var cM=E(N());var lM=E(N());var N9=["children","value"],I9=["children"];function D9(e){var t=e,r=t.key,n=t.props,o=n.children,i=n.value,a=He(n,N9);return T({key:r,value:i!==void 0?i:r,children:o},a)}function Ty(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return yi(e).map(function(r,n){if(!lM.isValidElement(r)||!r.type)return null;var o=r,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=He(s,I9);return t||!i?D9(r):T(T({key:"__RC_SELECT_GRP__".concat(a===null?n:a,"__"),label:a},c),{},{options:Ty(l)})}).filter(function(r){return r})}var $9=function(t,r,n,o,i){return cM.useMemo(function(){var a=t,s=!t;s&&(a=Ty(r));var l=new Map,c=new Map,u=function(m,h,v){v&&typeof v=="string"&&m.set(h[v],h)},f=function d(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v0?Ie(Le.options):Le.options}):Le})},Re=dr.useMemo(function(){return p?Ue(Fe):Fe},[Fe,p,se]),ae=dr.useMemo(function(){return Ik(Re,{fieldNames:oe,childrenAsData:z})},[Re,oe,z]),ge=function(be){var Ke=te(be);if(Ce(Ke),G&&(Ke.length!==Y.length||Ke.some(function(tt,kt){var Dt;return((Dt=Y[kt])===null||Dt===void 0?void 0:Dt.value)!==tt?.value}))){var Le=K?Ke:Ke.map(function(tt){return tt.value}),ze=Ke.map(function(tt){return rp(Ee(tt.value))});G(k?Le:Le[0],k?ze:ze[0])}},Te=dr.useState(null),he=F(Te,2),Ze=he[0],ct=he[1],_t=dr.useState(0),Pt=F(_t,2),mt=Pt[0],je=Pt[1],Pe=R!==void 0?R:n!=="combobox",qe=dr.useCallback(function(Ie,be){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Le=Ke.source,ze=Le===void 0?"keyboard":Le;je(be),a&&n==="combobox"&&Ie!==null&&ze==="keyboard"&&ct(String(Ie))},[a,n]),Oe=function(be,Ke,Le){var ze=function(){var Qt,Lt=Ee(be);return[K?{label:Lt?.[oe.label],value:be,key:(Qt=Lt?.key)!==null&&Qt!==void 0?Qt:be}:be,rp(Lt)]};if(Ke&&m){var tt=ze(),kt=F(tt,2),Dt=kt[0],rr=kt[1];m(Dt,rr)}else if(!Ke&&h&&Le!=="clear"){var Ft=ze(),Tr=F(Ft,2),nr=Tr[0],xr=Tr[1];h(nr,xr)}},Me=Iy(function(Ie,be){var Ke,Le=k?be.selected:!0;Le?Ke=k?[].concat(ne(Y),[Ie]):[Ie]:Ke=Y.filter(function(ze){return ze.value!==Ie}),ge(Ke),Oe(Ie,Le),n==="combobox"?ct(""):(!np||d)&&(Z(""),ct(""))}),Ve=function(be,Ke){ge(be);var Le=Ke.type,ze=Ke.values;(Le==="remove"||Le==="clear")&&ze.forEach(function(tt){Oe(tt.value,!1,Le)})},xe=function(be,Ke){if(Z(be),ct(null),Ke.source==="submit"){var Le=(be||"").trim();if(Le){var ze=Array.from(new Set([].concat(ne(et),[Le])));ge(ze),Oe(Le,!0),Z("")}return}Ke.source!=="blur"&&(n==="combobox"&&ge(be),u?.(be))},nt=function(be){var Ke=be;n!=="tags"&&(Ke=be.map(function(ze){var tt=re.get(ze);return tt?.value}).filter(function(ze){return ze!==void 0}));var Le=Array.from(new Set([].concat(ne(et),ne(Ke))));ge(Le),Le.forEach(function(ze){Oe(ze,!0)})},Tt=dr.useMemo(function(){var Ie=O!==!1&&y!==!1;return T(T({},q),{},{flattenOptions:ae,onActiveValue:qe,defaultActiveFirstOption:Pe,onSelect:Me,menuItemSelectedIcon:P,rawValues:et,fieldNames:oe,virtual:Ie,direction:I,listHeight:$,listItemHeight:A,childrenAsData:z,maxCount:V,optionRender:w})},[V,q,ae,qe,Pe,Me,P,et,oe,O,y,I,$,A,z,w]);return dr.createElement(Tu.Provider,{value:Tt},dr.createElement(P1,le({},H,{id:j,prefixCls:i,ref:t,omitDomProps:M9,mode:n,displayValues:$e,onDisplayValuesChange:Ve,direction:I,searchValue:se,onSearch:xe,autoClearSearchValue:d,onSearchSplit:nt,dropdownMatchSelectWidth:y,OptionList:nM,emptyOptions:!ae.length,activeValue:Ze,activeDescendantId:"".concat(j,"_list_").concat(mt)})))}),U1=L9;U1.Option=ip;U1.OptGroup=op;var fM=U1;var dM=fM;var pM=E(Ne());function Ji(e,t,r){return(0,pM.default)({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}var Zi=(e,t)=>t||e;var ku=E(N());var qs=E(N()),sp=E(Ne());var uo=E(N());var z9=()=>{let[,e]=vr(),[t]=Ea("Empty"),n=new ht(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return uo.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},uo.createElement("title",null,t?.description||"Empty"),uo.createElement("g",{fill:"none",fillRule:"evenodd"},uo.createElement("g",{transform:"translate(24 31.67)"},uo.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),uo.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"}),uo.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)"}),uo.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"}),uo.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"})),uo.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"}),uo.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},uo.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),uo.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},mM=z9;var Us=E(N()),gM=E(N());var W9=()=>{let[,e]=vr(),[t]=Ea("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=(0,gM.useMemo)(()=>({borderColor:new ht(r).onBackground(i).toHexString(),shadowColor:new ht(n).onBackground(i).toHexString(),contentColor:new ht(o).onBackground(i).toHexString()}),[r,n,o,i]);return Us.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Us.createElement("title",null,t?.description||"Empty"),Us.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Us.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),Us.createElement("g",{fillRule:"nonzero",stroke:a},Us.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"}),Us.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:l}))))},hM=W9;var B9=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:i,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:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},vM=Gt("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e,o=ft(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[B9(o)]});var j9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{className:t,rootClassName:r,prefixCls:n,image:o=yM,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=e,f=j9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:d,direction:m,className:h,style:v,classNames:y,styles:g}=oo("empty"),p=d("empty",n),[x,b,S]=vM(p),[w]=Ea("Empty"),C=typeof i<"u"?i:w?.description,R=typeof C=="string"?C:"empty",P=null;return typeof o=="string"?P=qs.createElement("img",{alt:R,src:o}):P=o,x(qs.createElement("div",Object.assign({className:(0,sp.default)(b,S,p,h,{[`${p}-normal`]:o===xM,[`${p}-rtl`]:m==="rtl"},t,r,y.root,c?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},g.root),v),u?.root),l)},f),qs.createElement("div",{className:(0,sp.default)(`${p}-image`,y.image,c?.image),style:Object.assign(Object.assign(Object.assign({},s),g.image),u?.image)},P),C&&qs.createElement("div",{className:(0,sp.default)(`${p}-description`,y.description,c?.description),style:Object.assign(Object.assign({},g.description),u?.description)},C),a&&qs.createElement("div",{className:(0,sp.default)(`${p}-footer`,y.footer,c?.footer),style:Object.assign(Object.assign({},g.footer),u?.footer)},a)))};q1.PRESENTED_IMAGE_DEFAULT=yM;q1.PRESENTED_IMAGE_SIMPLE=xM;var Au=q1;var V9=e=>{let{componentName:t}=e,{getPrefixCls:r}=(0,ku.useContext)(ot),n=r("empty");switch(t){case"Table":case"List":return ku.default.createElement(Au,{image:Au.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ku.default.createElement(Au,{image:Au.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return ku.default.createElement(Au,null)}},bM=V9;var G1=E(N());var H9=(e,t,r=void 0)=>{var n,o;let{variant:i,[e]:a}=G1.useContext(ot),s=G1.useContext(zA),l=a?.variant,c;typeof t<"u"?c=t:r===!1?c="borderless":c=(o=(n=s??l)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";let u=BC.includes(c);return[c,u]},Gs=H9;var U9=e=>{let r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function q9(e,t){return e||U9(t)}var SM=q9;var CM=e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},G9=e=>{let{antCls:t,componentCls:r}=e,n=`${r}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${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({},lr(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,[` ${o}${s}bottomLeft, ${i}${s}bottomLeft - `]:{animationName:kv},[` + `]:{animationName:Fv},[` ${o}${s}topLeft, ${i}${s}topLeft, ${o}${s}topRight, ${i}${s}topRight - `]:{animationName:Fv},[`${a}${s}bottomLeft`]:{animationName:Mv},[` + `]:{animationName:zv},[`${a}${s}bottomLeft`]:{animationName:Lv},[` ${a}${s}topLeft, ${a}${s}topRight - `]:{animationName:Lv},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},SM(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"},_a),"&-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({},SM(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},zv(e,"slide-up"),zv(e,"slide-down"),Av(e,"move-up"),Av(e,"move-down")]},CM=q9;var G9=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(r).sub(n).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:oe(t),itemLineHeight:oe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},K9=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},X9=e=>{let{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:o,paddingXS:i,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:"100%",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 ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Pa()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Y9=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,o=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=K9(e),s=t?`${r}-${t}`:"",l=G9(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},X9(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:`${oe(n)} 0`,lineHeight:oe(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:oe(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:oe(i),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item, + `]:{animationName:Wv},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},CM(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"},Pa),"&-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({},CM(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Bv(e,"slide-up"),Bv(e,"slide-down"),Mv(e,"move-up"),Mv(e,"move-down")]},wM=G9;var K9=e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(r).sub(n).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:ie(t),itemLineHeight:ie(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},X9=e=>{let{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},Y9=e=>{let{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:o,paddingXS:i,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:"100%",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 ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Ta()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},Q9=(e,t)=>{let{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,o=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,a=X9(e),s=t?`${r}-${t}`:"",l=K9(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},Y9(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:`${ie(n)} 0`,lineHeight:ie(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:ie(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ie(i),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item, ${r}-prefix + ${r}-selection-wrap - `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-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(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:oe(i),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 q1(e,t){let{componentCls:r}=e,n=t?`${r}-${t}`:"",o={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[` + `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-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(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:ie(i),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 K1(e,t){let{componentCls:r}=e,n=t?`${r}-${t}`:"",o={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[` &${r}-show-arrow ${r}-selector, &${r}-allow-clear ${r}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Y9(e,t),o]}var Q9=e=>{let{componentCls:t}=e,r=ut(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=ut(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[q1(e),q1(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},q1(n,"lg")]},wM=Q9;function G1(e,t){let{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:o}=e,i=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({},sr(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:oe(i)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Q9(e,t),o]}var J9=e=>{let{componentCls:t}=e,r=ft(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=ft(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[K1(e),K1(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},K1(n,"lg")]},EM=J9;function X1(e,t){let{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:o}=e,i=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({},lr(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:ie(i)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${r}-selection-item, ${r}-selection-placeholder - `]:{display:"block",padding:0,lineHeight:oe(i),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`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + `]:{display:"block",padding:0,lineHeight:ie(i),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`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${r}-show-arrow ${r}-selection-item, &${r}-show-arrow ${r}-selection-search, &${r}-show-arrow ${r}-selection-placeholder - `]:{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 ${oe(n)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:oe(i)}}},[`&${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 ${oe(n)}`,"&:after":{display:"none"}}}}}}}function K1(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[G1(e),G1(ut(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${oe(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{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 ${ie(n)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:ie(i)}}},[`&${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 ${ie(n)}`,"&:after":{display:"none"}}}}}}}function Y1(e){let{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[X1(e),X1(ft(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ie(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},G1(ut(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var EM=e=>{let{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:d,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:g,colorPrimaryHover:p,colorPrimary:x,controlOutline:b}=e,S=s*2,w=n*2,C=Math.min(o-S,o-w),R=Math.min(i-S,i-w),P=Math.min(a-S,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:m,optionPadding:`${(o-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:R,multipleItemHeightLG:P,multipleSelectorBgDisabled:y,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:x,activeOutlineColor:b,selectAffixPadding:s}};var PM=(e,t)=>{let{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${oe(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 ${oe(o)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},RM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},PM(e,t))}),J9=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},PM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),RM(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),RM(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:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),TM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${oe(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}}}},OM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},TM(e,t))}),Z9=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},TM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),OM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),OM(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),e7=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${oe(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:`${oe(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}}}}),NM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${oe(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&: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,outline:0},[`${r}-prefix`]:{color:t.color}}}},_M=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},NM(e,t))}),t7=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},NM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),_M(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),_M(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:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),r7=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},J9(e)),Z9(e)),e7(e)),t7(e))}),IM=r7;var n7=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"}}}},o7=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"}}}},i7=e=>{let{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e,i={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},sr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},n7(e)),o7(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},_a),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},_a),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},Pa()),{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`,[o]:{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","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},a7=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},i7(e),K1(e),wM(e),CM(e),{[`${t}-rtl`]:{direction:"rtl"}},Ms(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},DM=Gt("Select",(e,{rootPrefixCls:t})=>{let r=ut(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[a7(r),IM(r)]},EM,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Zi=E(N());var Ny=E(N());var s7={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"},$M=s7;var l7=function(t,r){return Ny.createElement(zt,ue({},t,{ref:r,icon:$M}))},c7=Ny.forwardRef(l7),Iy=c7;var Dy=E(N());var u7={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"},AM=u7;var f7=function(t,r){return Dy.createElement(zt,ue({},t,{ref:r,icon:AM}))},d7=Dy.forwardRef(f7),$y=d7;var Ay=E(N());var p7={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"},kM=p7;var m7=function(t,r){return Ay.createElement(zt,ue({},t,{ref:r,icon:kM}))},g7=Ay.forwardRef(m7),ky=g7;function X1({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:o,multiple:i,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:f}){let d=t??Zi.createElement(gu,null),m=g=>e===null&&!a&&!u?null:Zi.createElement(Zi.Fragment,null,l!==!1&&g,a&&c),h=null;if(e!==void 0)h=m(e);else if(o)h=m(Zi.createElement(kl,{spin:!0}));else{let g=`${s}-suffix`;h=({open:p,showSearch:x})=>m(p&&x?Zi.createElement(ky,{className:g}):Zi.createElement($y,{className:g}))}let v=null;r!==void 0?v=r:i?v=Zi.createElement(Iy,null):v=null;let y=null;return n!==void 0?y=n:y=Zi.createElement(yv,null),{clearIcon:d,suffixIcon:h,itemIcon:v,removeIcon:y}}function Y1(e,t){return t!==void 0?t:e!==null}var h7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n,o,i,a;let{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:f,popupClassName:d,dropdownClassName:m,listHeight:h=256,placement:v,listItemHeight:y,size:g,disabled:p,notFoundContent:x,status:b,builtinPlacements:S,dropdownMatchSelectWidth:w,popupMatchSelectWidth:C,direction:R,style:P,allowClear:O,variant:I,dropdownStyle:D,transitionName:$,tagRender:F,maxCount:k,prefix:z,dropdownRender:B,popupRender:j,onDropdownVisibleChange:G,onOpenChange:V,styles:H,classNames:K}=e,W=h7(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:A,getPrefixCls:L,renderEmpty:q,direction:ne,virtual:Y,popupMatchSelectWidth:X,popupOverflow:ae}=oi.useContext(rt),{showSearch:J,style:U,styles:Q,className:te,classNames:Z}=oo("select"),[,re]=xr(),de=y??re?.controlHeight,le=L("select",s),pe=L(),Oe=R??ne,{compactSize:Ce,compactItemClassnames:$e}=Yo(le,Oe),[ce,ie]=Gs("select",I,l),Re=Xo(le),[Le,Ge,Me]=DM(le,Re),Ie=oi.useMemo(()=>{let{mode:Be}=e;if(Be!=="combobox")return Be===MM?"combobox":Be},[e.mode]),je=Ie==="multiple"||Ie==="tags",We=Y1(e.suffixIcon,e.showArrow),He=(r=C??w)!==null&&r!==void 0?r:X,ye=((n=H?.popup)===null||n===void 0?void 0:n.root)||((o=Q.popup)===null||o===void 0?void 0:o.root)||D,se=j||B,xe=V||G,{status:_e,hasFeedback:he,isFormItemInput:Ze,feedbackIcon:lt}=oi.useContext(pn),Rt=Ji(_e,b),Tt;x!==void 0?Tt=x:Ie==="combobox"?Tt=null:Tt=q?.("Select")||oi.createElement(xM,{componentName:"Select"});let{suffixIcon:pt,itemIcon:Ae,removeIcon:we,clearIcon:et}=X1(Object.assign(Object.assign({},W),{multiple:je,hasFeedback:he,feedbackIcon:lt,showSuffixIcon:We,prefixCls:le,componentName:"Select"})),Pe=O===!0?{clearIcon:et}:O,De=Kr(W,["suffixIcon","itemIcon"]),Ee=(0,Q1.default)(((i=K?.popup)===null||i===void 0?void 0:i.root)||((a=Z?.popup)===null||a===void 0?void 0:a.root)||d||m,{[`${le}-dropdown-${Oe}`]:Oe==="rtl"},u,Z.root,K?.root,Me,Re,Ge),be=so(Be=>{var ze;return(ze=g??Ce)!==null&&ze!==void 0?ze:Be}),ht=oi.useContext(qr),Mt=p??ht,Fe=(0,Q1.default)({[`${le}-lg`]:be==="large",[`${le}-sm`]:be==="small",[`${le}-rtl`]:Oe==="rtl",[`${le}-${ce}`]:ie,[`${le}-in-form-item`]:Ze},Qi(le,Rt,he),$e,te,c,Z.root,K?.root,u,Me,Re,Ge),Se=oi.useMemo(()=>v!==void 0?v:Oe==="rtl"?"bottomRight":"bottomLeft",[v,Oe]),[Ke]=Cv("SelectLike",ye?.zIndex);return Le(oi.createElement(fM,Object.assign({ref:t,virtual:Y,showSearch:J},De,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Q.root),H?.root),U),P),dropdownMatchSelectWidth:He,transitionName:_v(pe,"slide-up",$),builtinPlacements:bM(S,ae),listHeight:h,listItemHeight:de,mode:Ie,prefixCls:le,placement:Se,direction:Oe,prefix:z,suffixIcon:pt,menuItemSelectedIcon:Ae,removeIcon:we,allowClear:Pe,notFoundContent:Tt,className:Fe,getPopupContainer:f||A,dropdownClassName:Ee,disabled:Mt,dropdownStyle:Object.assign(Object.assign({},ye),{zIndex:Ke}),maxCount:je?k:void 0,tagRender:je?F:void 0,dropdownRender:se,onDropdownVisibleChange:xe})))},Mu=oi.forwardRef(v7),y7=zA(Mu,"dropdownAlign");Mu.SECRET_COMBOBOX_MODE_DO_NOT_USE=MM;Mu.Option=op;Mu.OptGroup=np;Mu._InternalPanelDoNotUseOrYouWillBeFired=y7;var sp=Mu;var FM=E(N());function J1(){let[,e]=FM.useReducer(t=>t+1,0);return e}var Sn=E(N()),Wy=E(Ne());var Z1=E(Ne()),eE=E(N());function Fu(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return eE.createElement("div",{className:(0,Z1.default)("".concat(r,"-content"),a),style:s},eE.createElement("div",{className:(0,Z1.default)("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var zM=E(Ne()),Hl=E(N()),Wu=E(N());var Lu={shiftX:64,adjustY:1},zu={adjustX:1,shiftY:!0},ii=[0,0],LM={left:{points:["cr","cl"],overflow:zu,offset:[-4,0],targetOffset:ii},right:{points:["cl","cr"],overflow:zu,offset:[4,0],targetOffset:ii},top:{points:["bc","tc"],overflow:Lu,offset:[0,-4],targetOffset:ii},bottom:{points:["tc","bc"],overflow:Lu,offset:[0,4],targetOffset:ii},topLeft:{points:["bl","tl"],overflow:Lu,offset:[0,-4],targetOffset:ii},leftTop:{points:["tr","tl"],overflow:zu,offset:[-4,0],targetOffset:ii},topRight:{points:["br","tr"],overflow:Lu,offset:[0,-4],targetOffset:ii},rightTop:{points:["tl","tr"],overflow:zu,offset:[4,0],targetOffset:ii},bottomRight:{points:["tr","br"],overflow:Lu,offset:[0,4],targetOffset:ii},rightBottom:{points:["bl","br"],overflow:zu,offset:[4,0],targetOffset:ii},bottomLeft:{points:["tl","bl"],overflow:Lu,offset:[0,4],targetOffset:ii},leftBottom:{points:["br","bl"],overflow:zu,offset:[-4,0],targetOffset:ii}};var x7=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],b7=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,m=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,p=t.motion,x=t.placement,b=x===void 0?"right":x,S=t.align,w=S===void 0?{}:S,C=t.destroyTooltipOnHide,R=C===void 0?!1:C,P=t.defaultVisible,O=t.getTooltipContainer,I=t.overlayInnerStyle,D=t.arrowContent,$=t.overlay,F=t.id,k=t.showArrow,z=k===void 0?!0:k,B=t.classNames,j=t.styles,G=Ve(t,x7),V=Yv(F),H=(0,Wu.useRef)(null);(0,Wu.useImperativeHandle)(r,function(){return H.current});var K=T({},G);"visible"in t&&(K.popupVisible=t.visible);var W=function(){return Hl.createElement(Fu,{key:"content",prefixCls:d,id:V,bodyClassName:B?.body,overlayInnerStyle:T(T({},I),j?.body)},$)},A=function(){var q=Hl.Children.only(m),ne=q?.props||{},Y=T(T({},ne),{},{"aria-describedby":$?V:null});return Hl.cloneElement(m,Y)};return Hl.createElement(by,ue({popupClassName:(0,zM.default)(n,B?.root),prefixCls:d,popup:W,action:i,builtinPlacements:LM,popupPlacement:b,ref:H,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:p,defaultPopupVisible:P,autoDestroy:R,mouseLeaveDelay:c,popupStyle:T(T({},u),j?.root),mouseEnterDelay:s,arrow:z},K),A())},WM=(0,Wu.forwardRef)(b7);var BM=WM;function jM(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-c,d=u,m=2*o-s,h=l,v=2*o-i,y=a,g=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),p=n*(Math.sqrt(2)-1),x=`polygon(${p}px 100%, 50% ${p}px, ${2*o-p}px 100%, ${p}px 100%)`,b=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${d} L ${m} ${h} A ${n} ${n} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:g,arrowPath:b,arrowPolygon:x}}var VM=(e,t,r)=>{let{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${oe(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};var tE=8;function Fy(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?tE:n}}function My(e,t){return e?t:{}}function rE(e,t,r){let{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},VM(e,t,o)),{"&:before":{background:t}})]},My(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),My(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),My(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),My(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function S7(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};let o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}let a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}var HM={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"]}},C7={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"]}},w7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function nE(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(HM).forEach(c=>{let u=n&&C7[c]||HM[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,w7.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}let d=Fy({contentRadius:i,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-s;break}f.overflow=S7(c,d,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var Bu=E(N()),GM=E(Ne());var E7=e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:m}=e,h=t(a).add(m).add(d).equal(),v=t(a).mul(2).add(m).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:v,minHeight:l,padding:`${oe(e.calc(u).div(2).equal())} ${oe(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,tE)}},[`${r}-content`]:{position:"relative"}}),Vh(e,(y,{darkColor:g})=>({[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:g},[`${r}-arrow`]:{"--antd-arrow-background-color":g}}}))),{"&-rtl":{direction:"rtl"}})},rE(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},R7=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Fy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),jM(ut(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ly=(e,t=!0)=>Gt("Tooltip",n=>{let{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=ut(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[E7(s),Lw(n,"zoom-big-fast")]},R7,{resetStyle:!1,injectStyle:t})(e);var qM=E(Ne());var O7=Ro.map(e=>`${e}-inverse`);function UM(e,t=!0){return t?[].concat(ee(O7),ee(Ro)).includes(e):Ro.includes(e)}function zy(e,t){let r=UM(t),n=(0,qM.default)({[`${e}-${t}`]:t&&r}),o={},i={};return t&&!r&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}var _7=e=>{let{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=Bu.useContext(rt),l=s("tooltip",t),[c,u,f]=Ly(l),d=zy(l,i),m=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),v=(0,GM.default)(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,d.className);return c(Bu.createElement("div",{className:v,style:m},Bu.createElement("div",{className:`${l}-arrow`}),Bu.createElement(Fu,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},KM=_7;var P7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;let{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:d,destroyOnHidden:m,arrow:h=!0,title:v,overlay:y,builtinPlacements:g,arrowPointAtCenter:p=!1,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:S,placement:w="top",mouseEnterDelay:C=.1,mouseLeaveDelay:R=.1,overlayStyle:P,rootClassName:O,overlayClassName:I,styles:D,classNames:$}=e,F=P7(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=!!h,[,z]=xr(),{getPopupContainer:B,getPrefixCls:j,direction:G,className:V,style:H,classNames:K,styles:W}=oo("tooltip"),A=Ph("Tooltip"),L=Sn.useRef(null),q=()=>{var We;(We=L.current)===null||We===void 0||We.forceAlign()};Sn.useImperativeHandle(t,()=>{var We,He;return{forceAlign:q,forcePopupAlign:()=>{A.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(We=L.current)===null||We===void 0?void 0:We.nativeElement,popupElement:(He=L.current)===null||He===void 0?void 0:He.popupElement}});let[ne,Y]=ar(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),X=!v&&!y&&v!==0,ae=We=>{var He,ye;Y(X?!1:We),X||((He=e.onOpenChange)===null||He===void 0||He.call(e,We),(ye=e.onVisibleChange)===null||ye===void 0||ye.call(e,We))},J=Sn.useMemo(()=>{var We,He;let ye=p;return typeof h=="object"&&(ye=(He=(We=h.pointAtCenter)!==null&&We!==void 0?We:h.arrowPointAtCenter)!==null&&He!==void 0?He:p),g||nE({arrowPointAtCenter:ye,autoAdjustOverflow:x,arrowWidth:k?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})},[p,h,g,z]),U=Sn.useMemo(()=>v===0?v:y||v||"",[y,v]),Q=Sn.createElement(Ws,{space:!0},typeof U=="function"?U():U),te=j("tooltip",o),Z=j(),re=e["data-popover-inject"],de=ne;!("open"in e)&&!("visible"in e)&&X&&(de=!1);let le=Sn.isValidElement(c)&&!xv(c)?c:Sn.createElement("span",null,c),pe=le.props,Oe=!pe.className||typeof pe.className=="string"?(0,Wy.default)(pe.className,i||`${te}-open`):pe.className,[Ce,$e,ce]=Ly(te,!re),ie=zy(te,s),Re=ie.arrowStyle,Le=(0,Wy.default)(I,{[`${te}-rtl`]:G==="rtl"},ie.className,O,$e,ce,V,K.root,$?.root),Ge=(0,Wy.default)(K.body,$?.body),[Me,Ie]=Cv("Tooltip",F.zIndex),je=Sn.createElement(BM,Object.assign({},F,{zIndex:Me,showArrow:k,placement:w,mouseEnterDelay:C,mouseLeaveDelay:R,prefixCls:te,classNames:{root:Le,body:Ge},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Re),W.root),H),P),D?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},W.body),l),D?.body),ie.overlayStyle)},getTooltipContainer:S||a||B,ref:L,builtinPlacements:J,overlay:Q,visible:de,onVisibleChange:ae,afterVisibleChange:u??f,arrowContent:Sn.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:_v(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!d}),de?Ko(le,{className:Oe}):le);return Ce(Sn.createElement(Sv.Provider,{value:Ie},je))}),XM=T7;XM._InternalPanelDoNotUseOrYouWillBeFired=KM;var Ma=XM;var YM=E(Ne());var By=E(N()),Ul=E(N()),N7=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],I7=(0,Ul.forwardRef)(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,d=e.title,m=e.onChange,h=Ve(e,N7),v=(0,Ul.useRef)(null),y=(0,Ul.useRef)(null),g=ar(c,{value:a}),p=M(g,2),x=p[0],b=p[1];(0,Ul.useImperativeHandle)(t,function(){return{focus:function(R){var P;(P=v.current)===null||P===void 0||P.focus(R)},blur:function(){var R;(R=v.current)===null||R===void 0||R.blur()},input:v.current,nativeElement:y.current}});var S=(0,YM.default)(n,o,_(_({},"".concat(n,"-checked"),x),"".concat(n,"-disabled"),s)),w=function(R){s||("checked"in e||b(R.target.checked),m?.({target:T(T({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return By.createElement("span",{className:S,title:d,style:i,ref:y},By.createElement("input",ue({},h,{className:"".concat(n,"-input"),ref:v,onChange:w,disabled:s,checked:!!x,type:f})),By.createElement("span",{className:"".concat(n,"-inner")}))}),QM=I7;var JM=E(N());function oE(e){let t=JM.default.useRef(null),r=()=>{dt.cancel(t.current),t.current=null};return[()=>{r(),t.current=dt(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}function Fa(e){return ut(e,{inputAffixPadding:e.paddingXXS})}var La=e=>{let{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:g,colorWarningOutline:p,colorBgContainer:x,inputFontSize:b,inputFontSizeLG:S,inputFontSizeSM:w}=e,C=b||r,R=w||C,P=S||s,O=Math.round((t-C*n)/2*10)/10-o,I=Math.round((i-R*n)/2*10)/10-o,D=Math.ceil((a-P*l)/2*10)/10-o;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(D,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:d,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${p}`,hoverBg:x,activeBg:x,inputFontSize:C,inputFontSizeLG:P,inputFontSizeSM:R}};var D7=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),iE=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({},D7(ut(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),oF=(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}}),ZM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},oF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),jy=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oF(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},iE(e))}),ZM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ZM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),eF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Vy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},eF(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),eF(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},iE(e))}})}),Hy=(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)}},iF=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},tF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},iF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Uy=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iF(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},iE(e))}),tF(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),tF(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),rF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),qy=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},rF(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),rF(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),aF=(e,t)=>({background:e.colorBgContainer,borderWidth:`${oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),nF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},aF(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`}}),Gy=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aF(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"}}),nF(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),nF(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var aE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var sF=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${oe(t)} ${oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},lF=e=>({padding:`${oe(e.paddingBlockSM)} ${oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),lp=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${oe(e.paddingBlock)} ${oe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},aE(e.colorTextPlaceholder)),{"&-lg":Object.assign({},sF(e)),"&-sm":Object.assign({},lF(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),sE=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({},sF(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},lF(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 ${oe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${oe(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:`${oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${oe(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"},pu()),{[`${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},[` + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},X1(ft(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var RM=e=>{let{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:d,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:g,colorPrimaryHover:p,colorPrimary:x,controlOutline:b}=e,S=s*2,w=n*2,C=Math.min(o-S,o-w),R=Math.min(i-S,i-w),P=Math.min(a-S,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:m,optionPadding:`${(o-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:R,multipleItemHeightLG:P,multipleSelectorBgDisabled:y,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:p,activeBorderColor:x,activeOutlineColor:b,selectAffixPadding:s}};var TM=(e,t)=>{let{componentCls:r,antCls:n,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${ie(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 ${ie(o)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},OM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},TM(e,t))}),Z9=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},TM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),OM(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),OM(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:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),NM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${ie(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}}}},_M=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},NM(e,t))}),e7=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},NM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),_M(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),_M(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),t7=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ie(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:`${ie(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}}}}),IM=(e,t)=>{let{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${ie(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&: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,outline:0},[`${r}-prefix`]:{color:t.color}}}},PM=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},IM(e,t))}),r7=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},IM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),PM(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),PM(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:`${ie(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),n7=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Z9(e)),e7(e)),t7(e)),r7(e))}),DM=n7;var o7=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"}}}},i7=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"}}}},a7=e=>{let{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:o}=e,i={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},lr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},o7(e)),i7(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Pa),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Pa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},Ta()),{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`,[o]:{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","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},s7=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},a7(e),Y1(e),EM(e),wM(e),{[`${t}-rtl`]:{direction:"rtl"}},Ms(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},$M=Gt("Select",(e,{rootPrefixCls:t})=>{let r=ft(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[s7(r),DM(r)]},RM,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ea=E(N());var Dy=E(N());var l7={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"},AM=l7;var c7=function(t,r){return Dy.createElement(zt,le({},t,{ref:r,icon:AM}))},u7=Dy.forwardRef(c7),$y=u7;var Ay=E(N());var f7={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"},kM=f7;var d7=function(t,r){return Ay.createElement(zt,le({},t,{ref:r,icon:kM}))},p7=Ay.forwardRef(d7),ky=p7;var My=E(N());var m7={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"},MM=m7;var g7=function(t,r){return My.createElement(zt,le({},t,{ref:r,icon:MM}))},h7=My.forwardRef(g7),Fy=h7;function Q1({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:o,multiple:i,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:f}){let d=t??ea.createElement(gu,null),m=g=>e===null&&!a&&!u?null:ea.createElement(ea.Fragment,null,l!==!1&&g,a&&c),h=null;if(e!==void 0)h=m(e);else if(o)h=m(ea.createElement(Fl,{spin:!0}));else{let g=`${s}-suffix`;h=({open:p,showSearch:x})=>m(p&&x?ea.createElement(Fy,{className:g}):ea.createElement(ky,{className:g}))}let v=null;r!==void 0?v=r:i?v=ea.createElement($y,null):v=null;let y=null;return n!==void 0?y=n:y=ea.createElement(bv,null),{clearIcon:d,suffixIcon:h,itemIcon:v,removeIcon:y}}function J1(e,t){return t!==void 0?t:e!==null}var v7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n,o,i,a;let{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:f,popupClassName:d,dropdownClassName:m,listHeight:h=256,placement:v,listItemHeight:y,size:g,disabled:p,notFoundContent:x,status:b,builtinPlacements:S,dropdownMatchSelectWidth:w,popupMatchSelectWidth:C,direction:R,style:P,allowClear:O,variant:I,dropdownStyle:D,transitionName:$,tagRender:L,maxCount:A,prefix:M,dropdownRender:W,popupRender:B,onDropdownVisibleChange:K,onOpenChange:G,styles:V,classNames:H}=e,j=v7(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:k,getPrefixCls:z,renderEmpty:U,direction:oe,virtual:Q,popupMatchSelectWidth:X,popupOverflow:se}=ni.useContext(ot),{showSearch:Z,style:q,styles:J,className:re,classNames:ee}=oo("select"),[,te]=vr(),de=y??te?.controlHeight,fe=z("select",s),ue=z(),Ce=R??oe,{compactSize:we,compactItemClassnames:_e}=Xo(fe,Ce),[ve,Y]=Gs("select",I,l),Ee=Ko(fe),[$e,et,ke]=$M(fe,Ee),Se=ni.useMemo(()=>{let{mode:Le}=e;if(Le!=="combobox")return Le===FM?"combobox":Le},[e.mode]),Be=Se==="multiple"||Se==="tags",Fe=J1(e.suffixIcon,e.showArrow),Ue=(r=C??w)!==null&&r!==void 0?r:X,Re=((n=V?.popup)===null||n===void 0?void 0:n.root)||((o=J.popup)===null||o===void 0?void 0:o.root)||D,ae=B||W,ge=G||K,{status:Te,hasFeedback:he,isFormItemInput:Ze,feedbackIcon:ct}=ni.useContext(fn),_t=Zi(Te,b),Pt;x!==void 0?Pt=x:Se==="combobox"?Pt=null:Pt=U?.("Select")||ni.createElement(bM,{componentName:"Select"});let{suffixIcon:mt,itemIcon:je,removeIcon:Pe,clearIcon:qe}=Q1(Object.assign(Object.assign({},j),{multiple:Be,hasFeedback:he,feedbackIcon:ct,showSuffixIcon:Fe,prefixCls:fe,componentName:"Select"})),Oe=O===!0?{clearIcon:qe}:O,Me=qr(j,["suffixIcon","itemIcon"]),Ve=(0,Z1.default)(((i=H?.popup)===null||i===void 0?void 0:i.root)||((a=ee?.popup)===null||a===void 0?void 0:a.root)||d||m,{[`${fe}-dropdown-${Ce}`]:Ce==="rtl"},u,ee.root,H?.root,ke,Ee,et),xe=so(Le=>{var ze;return(ze=g??we)!==null&&ze!==void 0?ze:Le}),nt=ni.useContext(Hr),Tt=p??nt,Ie=(0,Z1.default)({[`${fe}-lg`]:xe==="large",[`${fe}-sm`]:xe==="small",[`${fe}-rtl`]:Ce==="rtl",[`${fe}-${ve}`]:Y,[`${fe}-in-form-item`]:Ze},Ji(fe,_t,he),_e,re,c,ee.root,H?.root,u,ke,Ee,et),be=ni.useMemo(()=>v!==void 0?v:Ce==="rtl"?"bottomRight":"bottomLeft",[v,Ce]),[Ke]=Ev("SelectLike",Re?.zIndex);return $e(ni.createElement(dM,Object.assign({ref:t,virtual:Q,showSearch:Z},Me,{style:Object.assign(Object.assign(Object.assign(Object.assign({},J.root),V?.root),q),P),dropdownMatchSelectWidth:Ue,transitionName:Tv(ue,"slide-up",$),builtinPlacements:SM(S,se),listHeight:h,listItemHeight:de,mode:Se,prefixCls:fe,placement:be,direction:Ce,prefix:M,suffixIcon:mt,menuItemSelectedIcon:je,removeIcon:Pe,allowClear:Oe,notFoundContent:Pt,className:Ie,getPopupContainer:f||k,dropdownClassName:Ve,disabled:Tt,dropdownStyle:Object.assign(Object.assign({},Re),{zIndex:Ke}),maxCount:Be?A:void 0,tagRender:Be?L:void 0,dropdownRender:ae,onDropdownVisibleChange:ge})))},Mu=ni.forwardRef(y7),x7=WA(Mu,"dropdownAlign");Mu.SECRET_COMBOBOX_MODE_DO_NOT_USE=FM;Mu.Option=ip;Mu.OptGroup=op;Mu._InternalPanelDoNotUseOrYouWillBeFired=x7;var lp=Mu;var LM=E(N());function eE(){let[,e]=LM.useReducer(t=>t+1,0);return e}var bn=E(N()),jy=E(Ne());var tE=E(Ne()),rE=E(N());function Fu(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return rE.createElement("div",{className:(0,tE.default)("".concat(r,"-content"),a),style:s},rE.createElement("div",{className:(0,tE.default)("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var WM=E(Ne()),ql=E(N()),Wu=E(N());var Lu={shiftX:64,adjustY:1},zu={adjustX:1,shiftY:!0},oi=[0,0],zM={left:{points:["cr","cl"],overflow:zu,offset:[-4,0],targetOffset:oi},right:{points:["cl","cr"],overflow:zu,offset:[4,0],targetOffset:oi},top:{points:["bc","tc"],overflow:Lu,offset:[0,-4],targetOffset:oi},bottom:{points:["tc","bc"],overflow:Lu,offset:[0,4],targetOffset:oi},topLeft:{points:["bl","tl"],overflow:Lu,offset:[0,-4],targetOffset:oi},leftTop:{points:["tr","tl"],overflow:zu,offset:[-4,0],targetOffset:oi},topRight:{points:["br","tr"],overflow:Lu,offset:[0,-4],targetOffset:oi},rightTop:{points:["tl","tr"],overflow:zu,offset:[4,0],targetOffset:oi},bottomRight:{points:["tr","br"],overflow:Lu,offset:[0,4],targetOffset:oi},rightBottom:{points:["bl","br"],overflow:zu,offset:[4,0],targetOffset:oi},bottomLeft:{points:["tl","bl"],overflow:Lu,offset:[0,4],targetOffset:oi},leftBottom:{points:["br","bl"],overflow:zu,offset:[-4,0],targetOffset:oi}};var b7=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],S7=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,m=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,g=t.animation,p=t.motion,x=t.placement,b=x===void 0?"right":x,S=t.align,w=S===void 0?{}:S,C=t.destroyTooltipOnHide,R=C===void 0?!1:C,P=t.defaultVisible,O=t.getTooltipContainer,I=t.overlayInnerStyle,D=t.arrowContent,$=t.overlay,L=t.id,A=t.showArrow,M=A===void 0?!0:A,W=t.classNames,B=t.styles,K=He(t,b7),G=Jv(L),V=(0,Wu.useRef)(null);(0,Wu.useImperativeHandle)(r,function(){return V.current});var H=T({},K);"visible"in t&&(H.popupVisible=t.visible);var j=function(){return ql.createElement(Fu,{key:"content",prefixCls:d,id:G,bodyClassName:W?.body,overlayInnerStyle:T(T({},I),B?.body)},$)},k=function(){var U=ql.Children.only(m),oe=U?.props||{},Q=T(T({},oe),{},{"aria-describedby":$?G:null});return ql.cloneElement(m,Q)};return ql.createElement(Cy,le({popupClassName:(0,WM.default)(n,W?.root),prefixCls:d,popup:j,action:i,builtinPlacements:zM,popupPlacement:b,ref:V,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:g,popupMotion:p,defaultPopupVisible:P,autoDestroy:R,mouseLeaveDelay:c,popupStyle:T(T({},u),B?.root),mouseEnterDelay:s,arrow:M},H),k())},BM=(0,Wu.forwardRef)(S7);var jM=BM;function VM(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-c,d=u,m=2*o-s,h=l,v=2*o-i,y=a,g=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),p=n*(Math.sqrt(2)-1),x=`polygon(${p}px 100%, 50% ${p}px, ${2*o-p}px 100%, ${p}px 100%)`,b=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${d} L ${m} ${h} A ${n} ${n} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:g,arrowPath:b,arrowPolygon:x}}var HM=(e,t,r)=>{let{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ie(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}};var nE=8;function zy(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?nE:n}}function Ly(e,t){return e?t:{}}function oE(e,t,r){let{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},HM(e,t,o)),{"&:before":{background:t}})]},Ly(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ly(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ie(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ly(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Ly(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function C7(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};let o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}let a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}var UM={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"]}},w7={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"]}},E7=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function iE(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(UM).forEach(c=>{let u=n&&w7[c]||UM[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,E7.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}let d=zy({contentRadius:i,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-s;break}f.overflow=C7(c,d,t,r),a&&(f.htmlRegion="visibleFirst")}),l}var Bu=E(N()),KM=E(Ne());var R7=e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:d,sizePopupArrow:m}=e,h=t(a).add(m).add(d).equal(),v=t(a).mul(2).add(m).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:v,minHeight:l,padding:`${ie(e.calc(u).div(2).equal())} ${ie(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,nE)}},[`${r}-content`]:{position:"relative"}}),Uh(e,(y,{darkColor:g})=>({[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:g},[`${r}-arrow`]:{"--antd-arrow-background-color":g}}}))),{"&-rtl":{direction:"rtl"}})},oE(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},O7=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},zy({contentRadius:e.borderRadius,limitVerticalRadius:!0})),VM(ft(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Wy=(e,t=!0)=>Gt("Tooltip",n=>{let{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=ft(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[R7(s),Ww(n,"zoom-big-fast")]},O7,{resetStyle:!1,injectStyle:t})(e);var GM=E(Ne());var _7=Ro.map(e=>`${e}-inverse`);function qM(e,t=!0){return t?[].concat(ne(_7),ne(Ro)).includes(e):Ro.includes(e)}function By(e,t){let r=qM(t),n=(0,GM.default)({[`${e}-${t}`]:t&&r}),o={},i={};return t&&!r&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}var P7=e=>{let{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=Bu.useContext(ot),l=s("tooltip",t),[c,u,f]=Wy(l),d=By(l,i),m=d.arrowStyle,h=Object.assign(Object.assign({},a),d.overlayStyle),v=(0,KM.default)(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,d.className);return c(Bu.createElement("div",{className:v,style:m},Bu.createElement("div",{className:`${l}-arrow`}),Bu.createElement(Fu,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},XM=P7;var T7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r,n;let{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:d,destroyOnHidden:m,arrow:h=!0,title:v,overlay:y,builtinPlacements:g,arrowPointAtCenter:p=!1,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:S,placement:w="top",mouseEnterDelay:C=.1,mouseLeaveDelay:R=.1,overlayStyle:P,rootClassName:O,overlayClassName:I,styles:D,classNames:$}=e,L=T7(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"]),A=!!h,[,M]=vr(),{getPopupContainer:W,getPrefixCls:B,direction:K,className:G,style:V,classNames:H,styles:j}=oo("tooltip"),k=Nh("Tooltip"),z=bn.useRef(null),U=()=>{var Fe;(Fe=z.current)===null||Fe===void 0||Fe.forceAlign()};bn.useImperativeHandle(t,()=>{var Fe,Ue;return{forceAlign:U,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:(Fe=z.current)===null||Fe===void 0?void 0:Fe.nativeElement,popupElement:(Ue=z.current)===null||Ue===void 0?void 0:Ue.popupElement}});let[oe,Q]=sr(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),X=!v&&!y&&v!==0,se=Fe=>{var Ue,Re;Q(X?!1:Fe),X||((Ue=e.onOpenChange)===null||Ue===void 0||Ue.call(e,Fe),(Re=e.onVisibleChange)===null||Re===void 0||Re.call(e,Fe))},Z=bn.useMemo(()=>{var Fe,Ue;let Re=p;return typeof h=="object"&&(Re=(Ue=(Fe=h.pointAtCenter)!==null&&Fe!==void 0?Fe:h.arrowPointAtCenter)!==null&&Ue!==void 0?Ue:p),g||iE({arrowPointAtCenter:Re,autoAdjustOverflow:x,arrowWidth:A?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})},[p,h,g,M]),q=bn.useMemo(()=>v===0?v:y||v||"",[y,v]),J=bn.createElement(Ws,{space:!0},typeof q=="function"?q():q),re=B("tooltip",o),ee=B(),te=e["data-popover-inject"],de=oe;!("open"in e)&&!("visible"in e)&&X&&(de=!1);let fe=bn.isValidElement(c)&&!Sv(c)?c:bn.createElement("span",null,c),ue=fe.props,Ce=!ue.className||typeof ue.className=="string"?(0,jy.default)(ue.className,i||`${re}-open`):ue.className,[we,_e,ve]=Wy(re,!te),Y=By(re,s),Ee=Y.arrowStyle,$e=(0,jy.default)(I,{[`${re}-rtl`]:K==="rtl"},Y.className,O,_e,ve,G,H.root,$?.root),et=(0,jy.default)(H.body,$?.body),[ke,Se]=Ev("Tooltip",L.zIndex),Be=bn.createElement(jM,Object.assign({},L,{zIndex:ke,showArrow:A,placement:w,mouseEnterDelay:C,mouseLeaveDelay:R,prefixCls:re,classNames:{root:$e,body:et},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ee),j.root),V),P),D?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},j.body),l),D?.body),Y.overlayStyle)},getTooltipContainer:S||a||W,ref:z,builtinPlacements:Z,overlay:J,visible:de,onVisibleChange:se,afterVisibleChange:u??f,arrowContent:bn.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:Tv(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!d}),de?Go(fe,{className:Ce}):fe);return we(bn.createElement(wv.Provider,{value:Se},Be))}),YM=N7;YM._InternalPanelDoNotUseOrYouWillBeFired=XM;var Fa=YM;var QM=E(Ne());var Vy=E(N()),Gl=E(N()),I7=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],D7=(0,Gl.forwardRef)(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,d=e.title,m=e.onChange,h=He(e,I7),v=(0,Gl.useRef)(null),y=(0,Gl.useRef)(null),g=sr(c,{value:a}),p=F(g,2),x=p[0],b=p[1];(0,Gl.useImperativeHandle)(t,function(){return{focus:function(R){var P;(P=v.current)===null||P===void 0||P.focus(R)},blur:function(){var R;(R=v.current)===null||R===void 0||R.blur()},input:v.current,nativeElement:y.current}});var S=(0,QM.default)(n,o,_(_({},"".concat(n,"-checked"),x),"".concat(n,"-disabled"),s)),w=function(R){s||("checked"in e||b(R.target.checked),m?.({target:T(T({},e),{},{type:f,checked:R.target.checked}),stopPropagation:function(){R.stopPropagation()},preventDefault:function(){R.preventDefault()},nativeEvent:R.nativeEvent}))};return Vy.createElement("span",{className:S,title:d,style:i,ref:y},Vy.createElement("input",le({},h,{className:"".concat(n,"-input"),ref:v,onChange:w,disabled:s,checked:!!x,type:f})),Vy.createElement("span",{className:"".concat(n,"-inner")}))}),JM=D7;var ZM=E(N());function aE(e){let t=ZM.default.useRef(null),r=()=>{dt.cancel(t.current),t.current=null};return[()=>{r(),t.current=dt(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}function La(e){return ft(e,{inputAffixPadding:e.paddingXXS})}var za=e=>{let{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:g,colorWarningOutline:p,colorBgContainer:x,inputFontSize:b,inputFontSizeLG:S,inputFontSizeSM:w}=e,C=b||r,R=w||C,P=S||s,O=Math.round((t-C*n)/2*10)/10-o,I=Math.round((i-R*n)/2*10)/10-o,D=Math.ceil((a-P*l)/2*10)/10-o;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(D,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:d,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${p}`,hoverBg:x,activeBg:x,inputFontSize:C,inputFontSizeLG:P,inputFontSizeSM:R}};var $7=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),sE=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({},$7(ft(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),iF=(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}}),eF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},iF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Hy=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iF(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},sE(e))}),eF(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),eF(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),tF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Uy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},tF(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),tF(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},sE(e))}})}),qy=(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)}},aF=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},rF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},aF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Gy=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aF(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},sE(e))}),rF(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rF(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),nF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Ky=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},nF(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),nF(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:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),sF=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),oF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sF(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`}}),Xy=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sF(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"}}),oF(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),oF(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)});var lE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var lF=e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${ie(t)} ${ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},cF=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),cp=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},lE(e.colorTextPlaceholder)),{"&-lg":Object.assign({},lF(e)),"&-sm":Object.assign({},cF(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),cE=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({},lF(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},cF(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 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(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:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${ie(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"},pu()),{[`${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},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${r}-picker-range @@ -451,39 +451,39 @@ html body { & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${r}-select:last-child > ${r}-select-selector, & > ${r}-cascader-picker:last-child ${t}, - & > ${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}}}})}},$7=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),lp(e)),jy(e)),Uy(e)),Hy(e)),Gy(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},A7=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 ${oe(e.inputAffixPadding)}`}}}},k7=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},lp(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}}}),A7(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},M7=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},sr(e)),sE(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}}},Vy(e)),qy(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}}})})}},F7=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &: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,"&: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, + & > ${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}}}})}},A7=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),cp(e)),Hy(e)),Gy(e)),qy(e)),Xy(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},k7=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 ${ie(e.inputAffixPadding)}`}}}},M7=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},cp(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}}}),k7(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},F7=e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},lr(e)),cE(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}}},Uy(e)),Ky(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}}})})}},L7=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &: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,"&: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, > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},L7=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ky=Gt(["Input","Shared"],e=>{let t=ut(e,Fa(e));return[$7(t),k7(t)]},La,{resetFont:!1}),Xy=Gt(["Input","Component"],e=>{let t=ut(e,Fa(e));return[M7(t),F7(t),L7(t),Ms(t)]},La,{resetFont:!1});var z7=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},sr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},sr(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({},sr(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`]:Object.assign({},JC(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${oe(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:`${oe(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}})},{[` + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},z7=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Yy=Gt(["Input","Shared"],e=>{let t=ft(e,La(e));return[A7(t),M7(t)]},za,{resetFont:!1}),Qy=Gt(["Input","Component"],e=>{let t=ft(e,La(e));return[F7(t),L7(t),z7(t),Ms(t)]},za,{resetFont:!1});var W7=e=>{let{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},lr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},lr(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({},lr(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`]:Object.assign({},ew(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ie(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:`${ie(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}})},{[` ${r}:not(${r}-disabled), ${t}:not(${t}-disabled) `]:{[`&: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}`}}},[` ${r}-checked:not(${r}-disabled), ${t}-checked:not(${t}-disabled) - `]:{[`&: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 W7(e,t){let r=ut(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[z7(r)]}var Yy=Gt("Checkbox",(e,{prefixCls:t})=>[W7(t,e)]);var Jr=E(N()),lE=E(Ne());var cF=E(N()),B7=cF.default.createContext(null),Qy=B7;var j7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;let{prefixCls:n,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:d}=e,m=j7(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:y}=Jr.useContext(rt),g=Jr.useContext(Qy),{isFormItemInput:p}=Jr.useContext(pn),x=Jr.useContext(qr),b=(r=g?.disabled||d)!==null&&r!==void 0?r:x,S=Jr.useRef(m.value),w=Jr.useRef(null),C=zr(t,w);Jr.useEffect(()=>{g?.registerValue(m.value)},[]),Jr.useEffect(()=>{if(!f)return m.value!==S.current&&(g?.cancelValue(S.current),g?.registerValue(m.value),S.current=m.value),()=>g?.cancelValue(m.value)},[m.value]),Jr.useEffect(()=>{var j;!((j=w.current)===null||j===void 0)&&j.input&&(w.current.input.indeterminate=s)},[s]);let R=h("checkbox",n),P=Xo(R),[O,I,D]=Yy(R,P),$=Object.assign({},m);g&&!f&&($.onChange=(...j)=>{m.onChange&&m.onChange.apply(m,j),g.toggleOption&&g.toggleOption({label:a,value:m.value})},$.name=g.name,$.checked=g.value.includes(m.value));let F=(0,lE.default)(`${R}-wrapper`,{[`${R}-rtl`]:v==="rtl",[`${R}-wrapper-checked`]:$.checked,[`${R}-wrapper-disabled`]:b,[`${R}-wrapper-in-form-item`]:p},y?.className,o,i,D,P,I),k=(0,lE.default)({[`${R}-indeterminate`]:s},vu,I),[z,B]=oE($.onClick);return O(Jr.createElement(Nv,{component:"Checkbox",disabled:b},Jr.createElement("label",{className:F,style:Object.assign(Object.assign({},y?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:z},Jr.createElement(QM,Object.assign({},$,{onClick:B,prefixCls:R,className:k,disabled:b,ref:C})),a!=null&&Jr.createElement("span",{className:`${R}-label`},a))))},H7=Jr.forwardRef(V7),Jy=H7;var In=E(N()),cE=E(Ne());var U7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{defaultValue:r,children:n,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=U7(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=In.useContext(rt),[m,h]=In.useState(u.value||r||[]),[v,y]=In.useState([]);In.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);let g=In.useMemo(()=>o.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[o]),p=k=>{y(z=>z.filter(B=>B!==k))},x=k=>{y(z=>[].concat(ee(z),[k]))},b=k=>{let z=m.indexOf(k.value),B=ee(m);z===-1?B.push(k.value):B.splice(z,1),"value"in u||h(B),c?.(B.filter(j=>v.includes(j)).sort((j,G)=>{let V=g.findIndex(K=>K.value===j),H=g.findIndex(K=>K.value===G);return V-H}))},S=f("checkbox",i),w=`${S}-group`,C=Xo(S),[R,P,O]=Yy(S,C),I=Kr(u,["value","disabled"]),D=o.length?g.map(k=>In.createElement(Jy,{prefixCls:S,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:m.includes(k.value),onChange:k.onChange,className:(0,cE.default)(`${w}-item`,k.className),style:k.style,title:k.title,id:k.id,required:k.required},k.label)):n,$=In.useMemo(()=>({toggleOption:b,value:m,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:p}),[b,m,u.disabled,u.name,x,p]),F=(0,cE.default)(w,{[`${w}-rtl`]:d==="rtl"},a,s,O,C,P);return R(In.createElement("div",Object.assign({className:F,style:l},I,{ref:t}),In.createElement(Qy.Provider,{value:$},D)))});var uF=q7;var uE=Jy;uE.Group=uF;uE.__ANT_CHECKBOX=!0;var cp=uE;var Rr=E(N());var Zy=E(N());var G7={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"},fF=G7;var K7=function(t,r){return Zy.createElement(zt,ue({},t,{ref:r,icon:fF}))},X7=Zy.forwardRef(K7),dF=X7;var Kl=E(Ne());function up(){return typeof BigInt=="function"}function e0(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ni(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(n)}}function t0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ea(e){var t=String(e);if(t0(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&ju(t)?t.length-t.indexOf(".")-1:0}function za(e){var t=String(e);if(t0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(up()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Ni("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();var mF=function(){function e(t){if(it(this,e),_(this,"origin",""),_(this,"number",void 0),_(this,"empty",void 0),e0(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return at(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":za(this.number):this.origin}}]),e}();function r0(e){return up()?new pF(e):new mF(e)}function fp(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Ni(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var f=r0(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return fp(f.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var Ii=r0;var _F=E(Ne());var Wa=E(Ne()),Cn=E(N());function hF(e){return!!(e.addonBefore||e.addonAfter)}function vF(e){return!!(e.prefix||e.suffix||e.allowClear)}function gF(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Vu(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=gF(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=gF(t,e,n),r(o);return}r(o)}}function ql(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Y7=Cn.default.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,d=e.className,m=e.style,h=e.disabled,v=e.readOnly,y=e.focused,g=e.triggerFocus,p=e.allowClear,x=e.value,b=e.handleReset,S=e.hidden,w=e.classes,C=e.classNames,R=e.dataAttrs,P=e.styles,O=e.components,I=e.onClear,D=a??i,$=O?.affixWrapper||"span",F=O?.groupWrapper||"span",k=O?.wrapper||"span",z=O?.groupAddon||"span",B=(0,Cn.useRef)(null),j=function(Z){var re;(re=B.current)!==null&&re!==void 0&&re.contains(Z.target)&&g?.()},G=vF(e),V=(0,Cn.cloneElement)(D,{value:x,className:(0,Wa.default)((r=D.props)===null||r===void 0?void 0:r.className,!G&&C?.variant)||null}),H=(0,Cn.useRef)(null);if(Cn.default.useImperativeHandle(t,function(){return{nativeElement:H.current||B.current}}),G){var K=null;if(p){var W=!h&&!v&&x,A="".concat(s,"-clear-icon"),L=fe(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"\u2716";K=Cn.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(Z){b?.(Z),I?.()},onMouseDown:function(Z){return Z.preventDefault()},className:(0,Wa.default)(A,_(_({},"".concat(A,"-hidden"),!W),"".concat(A,"-has-suffix"),!!c))},L)}var q="".concat(s,"-affix-wrapper"),ne=(0,Wa.default)(q,_(_(_(_(_({},"".concat(s,"-disabled"),h),"".concat(q,"-disabled"),h),"".concat(q,"-focused"),y),"".concat(q,"-readonly"),v),"".concat(q,"-input-with-clear-btn"),c&&p&&x),w?.affixWrapper,C?.affixWrapper,C?.variant),Y=(c||p)&&Cn.default.createElement("span",{className:(0,Wa.default)("".concat(s,"-suffix"),C?.suffix),style:P?.suffix},K,c);V=Cn.default.createElement($,ue({className:ne,style:P?.affixWrapper,onClick:j},R?.affixWrapper,{ref:B}),l&&Cn.default.createElement("span",{className:(0,Wa.default)("".concat(s,"-prefix"),C?.prefix),style:P?.prefix},l),V,Y)}if(hF(e)){var X="".concat(s,"-group"),ae="".concat(X,"-addon"),J="".concat(X,"-wrapper"),U=(0,Wa.default)("".concat(s,"-wrapper"),X,w?.wrapper,C?.wrapper),Q=(0,Wa.default)(J,_({},"".concat(J,"-disabled"),h),w?.group,C?.groupWrapper);V=Cn.default.createElement(F,{className:Q,ref:H},Cn.default.createElement(k,{className:U},u&&Cn.default.createElement(z,{className:ae},u),V,f&&Cn.default.createElement(z,{className:ae},f)))}return Cn.default.cloneElement(V,{className:(0,Wa.default)((n=V.props)===null||n===void 0?void 0:n.className,d)||null,style:T(T({},(o=V.props)===null||o===void 0?void 0:o.style),m),hidden:S})}),Gl=Y7;var n0=E(Ne());var Br=E(N());var yF=E(N()),Q7=["show"];function dp(e,t){return yF.useMemo(function(){var r={};t&&(r.show=fe(t)==="object"&&t.formatter?t.formatter:!!t),r=T(T({},r),e);var n=r,o=n.show,i=Ve(n,Q7);return T(T({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var J7=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Z7=(0,Br.forwardRef)(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,m=e.className,h=e.maxLength,v=e.suffix,y=e.showCount,g=e.count,p=e.type,x=p===void 0?"text":p,b=e.classes,S=e.classNames,w=e.styles,C=e.onCompositionStart,R=e.onCompositionEnd,P=Ve(e,J7),O=(0,Br.useState)(!1),I=M(O,2),D=I[0],$=I[1],F=(0,Br.useRef)(!1),k=(0,Br.useRef)(!1),z=(0,Br.useRef)(null),B=(0,Br.useRef)(null),j=function(ie){z.current&&ql(z.current,ie)},G=ar(e.defaultValue,{value:e.value}),V=M(G,2),H=V[0],K=V[1],W=H==null?"":String(H),A=(0,Br.useState)(null),L=M(A,2),q=L[0],ne=L[1],Y=dp(g,y),X=Y.max||h,ae=Y.strategy(W),J=!!X&&ae>X;(0,Br.useImperativeHandle)(t,function(){var ce;return{focus:j,blur:function(){var Re;(Re=z.current)===null||Re===void 0||Re.blur()},setSelectionRange:function(Re,Le,Ge){var Me;(Me=z.current)===null||Me===void 0||Me.setSelectionRange(Re,Le,Ge)},select:function(){var Re;(Re=z.current)===null||Re===void 0||Re.select()},input:z.current,nativeElement:((ce=B.current)===null||ce===void 0?void 0:ce.nativeElement)||z.current}}),(0,Br.useEffect)(function(){k.current&&(k.current=!1),$(function(ce){return ce&&f?!1:ce})},[f]);var U=function(ie,Re,Le){var Ge=Re;if(!F.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Re)>Y.max){if(Ge=Y.exceedFormatter(Re,{max:Y.max}),Re!==Ge){var Me,Ie;ne([((Me=z.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((Ie=z.current)===null||Ie===void 0?void 0:Ie.selectionEnd)||0])}}else if(Le.source==="compositionEnd")return;K(Ge),z.current&&Vu(z.current,ie,n,Ge)};(0,Br.useEffect)(function(){if(q){var ce;(ce=z.current)===null||ce===void 0||ce.setSelectionRange.apply(ce,ee(q))}},[q]);var Q=function(ie){U(ie,ie.target.value,{source:"change"})},te=function(ie){F.current=!1,U(ie,ie.currentTarget.value,{source:"compositionEnd"}),R?.(ie)},Z=function(ie){a&&ie.key==="Enter"&&!k.current&&(k.current=!0,a(ie)),s?.(ie)},re=function(ie){ie.key==="Enter"&&(k.current=!1),l?.(ie)},de=function(ie){$(!0),o?.(ie)},le=function(ie){k.current&&(k.current=!1),$(!1),i?.(ie)},pe=function(ie){K(""),j(),z.current&&Vu(z.current,ie,n)},Oe=J&&"".concat(u,"-out-of-range"),Ce=function(){var ie=Kr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Br.default.createElement("input",ue({autoComplete:r},ie,{onChange:Q,onFocus:de,onBlur:le,onKeyDown:Z,onKeyUp:re,className:(0,n0.default)(u,_({},"".concat(u,"-disabled"),f),S?.input),style:w?.input,ref:z,size:d,type:x,onCompositionStart:function(Le){F.current=!0,C?.(Le)},onCompositionEnd:te}))},$e=function(){var ie=Number(X)>0;if(v||Y.show){var Re=Y.showFormatter?Y.showFormatter({value:W,count:ae,maxLength:X}):"".concat(ae).concat(ie?" / ".concat(X):"");return Br.default.createElement(Br.default.Fragment,null,Y.show&&Br.default.createElement("span",{className:(0,n0.default)("".concat(u,"-show-count-suffix"),_({},"".concat(u,"-show-count-has-suffix"),!!v),S?.count),style:T({},w?.count)},Re),v)}return null};return Br.default.createElement(Gl,ue({},P,{prefixCls:u,className:(0,n0.default)(m,Oe),handleReset:pe,value:W,focused:D,triggerFocus:j,suffix:$e(),disabled:f,classes:b,classNames:S,styles:w,ref:B}),Ce())}),xF=Z7;var bF=xF;function fE(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,o){if(t[o])return t[o];var i=n[o];return typeof i=="function"?i.bind(n):i}}):e}var _t=E(N());var SF=E(N());function dE(e,t){var r=(0,SF.useRef)(null);function n(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);r.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&r.current&&t)try{var i=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-r.current.afterTxt.length;else{var f=s[c-1],d=i.indexOf(f,c-1);d!==-1&&(u=d+1)}e.setSelectionRange(u,u)}catch(m){Vt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[n,o]}var ai=E(N()),pE=E(Ne());var CF=E(N());var eU=function(){var t=(0,CF.useState)(!1),r=M(t,2),n=r[0],o=r[1];return vt(function(){o(Su())},[]),n},wF=eU;var tU=200,rU=600;function mE(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=ai.useRef(),l=ai.useRef([]),c=ai.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,b){x.preventDefault(),u(),c.current(b);function S(){c.current(b),s.current=setTimeout(S,tU)}s.current=setTimeout(S,rU)};ai.useEffect(function(){return function(){u(),l.current.forEach(function(p){return dt.cancel(p)})}},[]);var d=wF();if(d)return null;var m="".concat(t,"-handler"),h=(0,pE.default)(m,"".concat(m,"-up"),_({},"".concat(m,"-up-disabled"),o)),v=(0,pE.default)(m,"".concat(m,"-down"),_({},"".concat(m,"-down-disabled"),i)),y=function(){return l.current.push(dt(u))},g={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return ai.createElement("div",{className:"".concat(m,"-wrap")},ai.createElement("span",ue({},g,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),r||ai.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),ai.createElement("span",ue({},g,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),n||ai.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function gE(e){var t=typeof e=="number"?za(e):Ni(e).fullStr,r=t.includes(".");return r?Ni(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var o0=E(N());var EF=function(){var e=(0,o0.useRef)(0),t=function(){dt.cancel(e.current)};return(0,o0.useEffect)(function(){return t},[]),function(r){t(),e.current=dt(function(){r()})}};var nU=["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"],oU=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],RF=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},OF=function(t){var r=Ii(t);return r.isInvalidate()?null:r},iU=_t.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,d=e.readOnly,m=e.upHandler,h=e.downHandler,v=e.keyboard,y=e.changeOnWheel,g=y===void 0?!1:y,p=e.controls,x=p===void 0?!0:p,b=e.classNames,S=e.stringMode,w=e.parser,C=e.formatter,R=e.precision,P=e.decimalSeparator,O=e.onChange,I=e.onInput,D=e.onPressEnter,$=e.onStep,F=e.changeOnBlur,k=F===void 0?!0:F,z=e.domRef,B=Ve(e,nU),j="".concat(r,"-input"),G=_t.useRef(null),V=_t.useState(!1),H=M(V,2),K=H[0],W=H[1],A=_t.useRef(!1),L=_t.useRef(!1),q=_t.useRef(!1),ne=_t.useState(function(){return Ii(u??c)}),Y=M(ne,2),X=Y[0],ae=Y[1];function J(Ae){u===void 0&&ae(Ae)}var U=_t.useCallback(function(Ae,we){if(!we)return R>=0?R:Math.max(ea(Ae),ea(l))},[R,l]),Q=_t.useCallback(function(Ae){var we=String(Ae);if(w)return w(we);var et=we;return P&&(et=et.replace(P,".")),et.replace(/[^\w.-]+/g,"")},[w,P]),te=_t.useRef(""),Z=_t.useCallback(function(Ae,we){if(C)return C(Ae,{userTyping:we,input:String(te.current)});var et=typeof Ae=="number"?za(Ae):Ae;if(!we){var Pe=U(et,we);if(ju(et)&&(P||Pe>=0)){var De=P||".";et=fp(et,De,Pe)}}return et},[C,U,P]),re=_t.useState(function(){var Ae=c??u;return X.isInvalidate()&&["string","number"].includes(fe(Ae))?Number.isNaN(Ae)?"":Ae:Z(X.toString(),!1)}),de=M(re,2),le=de[0],pe=de[1];te.current=le;function Oe(Ae,we){pe(Z(Ae.isInvalidate()?Ae.toString(!1):Ae.toString(!we),we))}var Ce=_t.useMemo(function(){return OF(a)},[a,R]),$e=_t.useMemo(function(){return OF(i)},[i,R]),ce=_t.useMemo(function(){return!Ce||!X||X.isInvalidate()?!1:Ce.lessEquals(X)},[Ce,X]),ie=_t.useMemo(function(){return!$e||!X||X.isInvalidate()?!1:X.lessEquals($e)},[$e,X]),Re=dE(G.current,K),Le=M(Re,2),Ge=Le[0],Me=Le[1],Ie=function(we){return Ce&&!we.lessEquals(Ce)?Ce:$e&&!$e.lessEquals(we)?$e:null},je=function(we){return!Ie(we)},We=function(we,et){var Pe=we,De=je(Pe)||Pe.isEmpty();if(!Pe.isEmpty()&&!et&&(Pe=Ie(Pe)||Pe,De=!0),!d&&!f&&De){var Ee=Pe.toString(),be=U(Ee,et);return be>=0&&(Pe=Ii(fp(Ee,".",be)),je(Pe)||(Pe=Ii(fp(Ee,".",be,!0)))),Pe.equals(X)||(J(Pe),O?.(Pe.isEmpty()?null:RF(S,Pe)),u===void 0&&Oe(Pe,et)),Pe}return X},He=EF(),ye=function Ae(we){if(Ge(),te.current=we,pe(we),!L.current){var et=Q(we),Pe=Ii(et);Pe.isNaN()||We(Pe,!0)}I?.(we),He(function(){var De=we;w||(De=we.replace(/。/g,".")),De!==we&&Ae(De)})},se=function(){L.current=!0},xe=function(){L.current=!1,ye(G.current.value)},_e=function(we){ye(we.target.value)},he=function(we){var et;if(!(we&&ce||!we&&ie)){A.current=!1;var Pe=Ii(q.current?gE(l):l);we||(Pe=Pe.negate());var De=(X||Ii(0)).add(Pe.toString()),Ee=We(De,!1);$?.(RF(S,Ee),{offset:q.current?gE(l):l,type:we?"up":"down"}),(et=G.current)===null||et===void 0||et.focus()}},Ze=function(we){var et=Ii(Q(le)),Pe;et.isNaN()?Pe=We(X,we):Pe=We(et,we),u!==void 0?Oe(X,!1):Pe.isNaN()||Oe(Pe,!1)},lt=function(){A.current=!0},Rt=function(we){var et=we.key,Pe=we.shiftKey;A.current=!0,q.current=Pe,et==="Enter"&&(L.current||(A.current=!1),Ze(!1),D?.(we)),v!==!1&&!L.current&&["Up","ArrowUp","Down","ArrowDown"].includes(et)&&(he(et==="Up"||et==="ArrowUp"),we.preventDefault())},Tt=function(){A.current=!1,q.current=!1};_t.useEffect(function(){if(g&&K){var Ae=function(Pe){he(Pe.deltaY<0),Pe.preventDefault()},we=G.current;if(we)return we.addEventListener("wheel",Ae,{passive:!1}),function(){return we.removeEventListener("wheel",Ae)}}});var pt=function(){k&&Ze(!1),W(!1),A.current=!1};return Rl(function(){X.isInvalidate()||Oe(X,!1)},[R,C]),Rl(function(){var Ae=Ii(u);ae(Ae);var we=Ii(Q(le));(!Ae.equals(we)||!A.current||C)&&Oe(Ae,A.current)},[u]),Rl(function(){C&&Me()},[le]),_t.createElement("div",{ref:z,className:(0,_F.default)(r,n,_(_(_(_(_({},"".concat(r,"-focused"),K),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),d),"".concat(r,"-not-a-number"),X.isNaN()),"".concat(r,"-out-of-range"),!X.isInvalidate()&&!je(X))),style:o,onFocus:function(){W(!0)},onBlur:pt,onKeyDown:Rt,onKeyUp:Tt,onCompositionStart:se,onCompositionEnd:xe,onBeforeInput:lt},x&&_t.createElement(mE,{prefixCls:r,upNode:m,downNode:h,upDisabled:ce,downDisabled:ie,onStep:he}),_t.createElement("div",{className:"".concat(j,"-wrap")},_t.createElement("input",ue({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},B,{ref:zr(G,t),className:j,value:le,onChange:_e,disabled:f,readOnly:d}))))}),aU=_t.forwardRef(function(e,t){var r=e.disabled,n=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.classNames,m=Ve(e,oU),h=_t.useRef(null),v=_t.useRef(null),y=_t.useRef(null),g=function(x){y.current&&ql(y.current,x)};return _t.useImperativeHandle(t,function(){return fE(y.current,{focus:g,nativeElement:h.current.nativeElement||v.current})}),_t.createElement(Gl,{className:f,triggerFocus:g,prefixCls:i,value:a,disabled:r,style:n,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},_t.createElement(iU,ue({prefixCls:i,disabled:r,ref:y,domRef:v,className:d?.input},m)))}),PF=aU;var TF=PF;var NF=e=>{var t;let r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",n=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},La(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new gt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?n:0})};var IF=({componentCls:e,borderRadiusSM:t,borderRadiusLG:r},n)=>{let o=n==="lg"?r:t;return{[`&-${n}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},sU=e=>{let{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:m,colorIcon:h,motionDurationMid:v,handleHoverColor:y,handleOpacity:g,paddingInline:p,paddingBlock:x,handleBg:b,handleActiveBg:S,colorTextDisabled:w,borderRadiusSM:C,borderRadiusLG:R,controlWidth:P,handleBorderColor:O,filledHandleBg:I,lineHeightLG:D,calc:$}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sr(e)),lp(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),jy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${oe(r)} ${n} ${O}`}}})),Uy(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${oe(r)} ${n} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),Gy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${oe(r)} ${n} ${O}`}}})),Hy(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:D,borderRadius:R,[`input${t}-input`]:{height:$(s).sub($(r).mul(2)).equal(),padding:`${oe(d)} ${oe(m)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:$(l).sub($(r).mul(2)).equal(),padding:`${oe(f)} ${oe(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},sr(e)),sE(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:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Vy(e)),qy(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({},sr(e)),{width:"100%",padding:`${oe(x)} ${oe(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),aE(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:g,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `]:{[`&: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 B7(e,t){let r=ft(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[W7(r)]}var Jy=Gt("Checkbox",(e,{prefixCls:t})=>[B7(t,e)]);var Qr=E(N()),uE=E(Ne());var uF=E(N()),j7=uF.default.createContext(null),Zy=j7;var V7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;let{prefixCls:n,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:d}=e,m=V7(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:y}=Qr.useContext(ot),g=Qr.useContext(Zy),{isFormItemInput:p}=Qr.useContext(fn),x=Qr.useContext(Hr),b=(r=g?.disabled||d)!==null&&r!==void 0?r:x,S=Qr.useRef(m.value),w=Qr.useRef(null),C=zr(t,w);Qr.useEffect(()=>{g?.registerValue(m.value)},[]),Qr.useEffect(()=>{if(!f)return m.value!==S.current&&(g?.cancelValue(S.current),g?.registerValue(m.value),S.current=m.value),()=>g?.cancelValue(m.value)},[m.value]),Qr.useEffect(()=>{var B;!((B=w.current)===null||B===void 0)&&B.input&&(w.current.input.indeterminate=s)},[s]);let R=h("checkbox",n),P=Ko(R),[O,I,D]=Jy(R,P),$=Object.assign({},m);g&&!f&&($.onChange=(...B)=>{m.onChange&&m.onChange.apply(m,B),g.toggleOption&&g.toggleOption({label:a,value:m.value})},$.name=g.name,$.checked=g.value.includes(m.value));let L=(0,uE.default)(`${R}-wrapper`,{[`${R}-rtl`]:v==="rtl",[`${R}-wrapper-checked`]:$.checked,[`${R}-wrapper-disabled`]:b,[`${R}-wrapper-in-form-item`]:p},y?.className,o,i,D,P,I),A=(0,uE.default)({[`${R}-indeterminate`]:s},vu,I),[M,W]=aE($.onClick);return O(Qr.createElement(Dv,{component:"Checkbox",disabled:b},Qr.createElement("label",{className:L,style:Object.assign(Object.assign({},y?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:M},Qr.createElement(JM,Object.assign({},$,{onClick:W,prefixCls:R,className:A,disabled:b,ref:C})),a!=null&&Qr.createElement("span",{className:`${R}-label`},a))))},U7=Qr.forwardRef(H7),e0=U7;var $n=E(N()),fE=E(Ne());var q7=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{defaultValue:r,children:n,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=q7(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:d}=$n.useContext(ot),[m,h]=$n.useState(u.value||r||[]),[v,y]=$n.useState([]);$n.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);let g=$n.useMemo(()=>o.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[o]),p=A=>{y(M=>M.filter(W=>W!==A))},x=A=>{y(M=>[].concat(ne(M),[A]))},b=A=>{let M=m.indexOf(A.value),W=ne(m);M===-1?W.push(A.value):W.splice(M,1),"value"in u||h(W),c?.(W.filter(B=>v.includes(B)).sort((B,K)=>{let G=g.findIndex(H=>H.value===B),V=g.findIndex(H=>H.value===K);return G-V}))},S=f("checkbox",i),w=`${S}-group`,C=Ko(S),[R,P,O]=Jy(S,C),I=qr(u,["value","disabled"]),D=o.length?g.map(A=>$n.createElement(e0,{prefixCls:S,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:m.includes(A.value),onChange:A.onChange,className:(0,fE.default)(`${w}-item`,A.className),style:A.style,title:A.title,id:A.id,required:A.required},A.label)):n,$=$n.useMemo(()=>({toggleOption:b,value:m,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:p}),[b,m,u.disabled,u.name,x,p]),L=(0,fE.default)(w,{[`${w}-rtl`]:d==="rtl"},a,s,O,C,P);return R($n.createElement("div",Object.assign({className:L,style:l},I,{ref:t}),$n.createElement(Zy.Provider,{value:$},D)))});var fF=G7;var dE=e0;dE.Group=fF;dE.__ANT_CHECKBOX=!0;var up=dE;var Or=E(N());var t0=E(N());var K7={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"},dF=K7;var X7=function(t,r){return t0.createElement(zt,le({},t,{ref:r,icon:dF}))},Y7=t0.forwardRef(X7),pF=Y7;var Yl=E(Ne());function fp(){return typeof BigInt=="function"}function r0(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ti(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(n)}}function n0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ta(e){var t=String(e);if(n0(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&ju(t)?t.length-t.indexOf(".")-1:0}function Wa(e){var t=String(e);if(n0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(fp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Ti("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();var gF=function(){function e(t){if(at(this,e),_(this,"origin",""),_(this,"number",void 0),_(this,"empty",void 0),r0(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return st(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Wa(this.number):this.origin}}]),e}();function o0(e){return fp()?new mF(e):new gF(e)}function dp(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Ti(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var f=o0(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return dp(f.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var Ni=o0;var PF=E(Ne());var Ba=E(Ne()),Sn=E(N());function vF(e){return!!(e.addonBefore||e.addonAfter)}function yF(e){return!!(e.prefix||e.suffix||e.allowClear)}function hF(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Vu(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=hF(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=hF(t,e,n),r(o);return}r(o)}}function Kl(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Q7=Sn.default.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,d=e.className,m=e.style,h=e.disabled,v=e.readOnly,y=e.focused,g=e.triggerFocus,p=e.allowClear,x=e.value,b=e.handleReset,S=e.hidden,w=e.classes,C=e.classNames,R=e.dataAttrs,P=e.styles,O=e.components,I=e.onClear,D=a??i,$=O?.affixWrapper||"span",L=O?.groupWrapper||"span",A=O?.wrapper||"span",M=O?.groupAddon||"span",W=(0,Sn.useRef)(null),B=function(ee){var te;(te=W.current)!==null&&te!==void 0&&te.contains(ee.target)&&g?.()},K=yF(e),G=(0,Sn.cloneElement)(D,{value:x,className:(0,Ba.default)((r=D.props)===null||r===void 0?void 0:r.className,!K&&C?.variant)||null}),V=(0,Sn.useRef)(null);if(Sn.default.useImperativeHandle(t,function(){return{nativeElement:V.current||W.current}}),K){var H=null;if(p){var j=!h&&!v&&x,k="".concat(s,"-clear-icon"),z=ce(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"\u2716";H=Sn.default.createElement("button",{type:"button",tabIndex:-1,onClick:function(ee){b?.(ee),I?.()},onMouseDown:function(ee){return ee.preventDefault()},className:(0,Ba.default)(k,_(_({},"".concat(k,"-hidden"),!j),"".concat(k,"-has-suffix"),!!c))},z)}var U="".concat(s,"-affix-wrapper"),oe=(0,Ba.default)(U,_(_(_(_(_({},"".concat(s,"-disabled"),h),"".concat(U,"-disabled"),h),"".concat(U,"-focused"),y),"".concat(U,"-readonly"),v),"".concat(U,"-input-with-clear-btn"),c&&p&&x),w?.affixWrapper,C?.affixWrapper,C?.variant),Q=(c||p)&&Sn.default.createElement("span",{className:(0,Ba.default)("".concat(s,"-suffix"),C?.suffix),style:P?.suffix},H,c);G=Sn.default.createElement($,le({className:oe,style:P?.affixWrapper,onClick:B},R?.affixWrapper,{ref:W}),l&&Sn.default.createElement("span",{className:(0,Ba.default)("".concat(s,"-prefix"),C?.prefix),style:P?.prefix},l),G,Q)}if(vF(e)){var X="".concat(s,"-group"),se="".concat(X,"-addon"),Z="".concat(X,"-wrapper"),q=(0,Ba.default)("".concat(s,"-wrapper"),X,w?.wrapper,C?.wrapper),J=(0,Ba.default)(Z,_({},"".concat(Z,"-disabled"),h),w?.group,C?.groupWrapper);G=Sn.default.createElement(L,{className:J,ref:V},Sn.default.createElement(A,{className:q},u&&Sn.default.createElement(M,{className:se},u),G,f&&Sn.default.createElement(M,{className:se},f)))}return Sn.default.cloneElement(G,{className:(0,Ba.default)((n=G.props)===null||n===void 0?void 0:n.className,d)||null,style:T(T({},(o=G.props)===null||o===void 0?void 0:o.style),m),hidden:S})}),Xl=Q7;var i0=E(Ne());var Br=E(N());var xF=E(N()),J7=["show"];function pp(e,t){return xF.useMemo(function(){var r={};t&&(r.show=ce(t)==="object"&&t.formatter?t.formatter:!!t),r=T(T({},r),e);var n=r,o=n.show,i=He(n,J7);return T(T({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var Z7=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],eU=(0,Br.forwardRef)(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,m=e.className,h=e.maxLength,v=e.suffix,y=e.showCount,g=e.count,p=e.type,x=p===void 0?"text":p,b=e.classes,S=e.classNames,w=e.styles,C=e.onCompositionStart,R=e.onCompositionEnd,P=He(e,Z7),O=(0,Br.useState)(!1),I=F(O,2),D=I[0],$=I[1],L=(0,Br.useRef)(!1),A=(0,Br.useRef)(!1),M=(0,Br.useRef)(null),W=(0,Br.useRef)(null),B=function(Y){M.current&&Kl(M.current,Y)},K=sr(e.defaultValue,{value:e.value}),G=F(K,2),V=G[0],H=G[1],j=V==null?"":String(V),k=(0,Br.useState)(null),z=F(k,2),U=z[0],oe=z[1],Q=pp(g,y),X=Q.max||h,se=Q.strategy(j),Z=!!X&&se>X;(0,Br.useImperativeHandle)(t,function(){var ve;return{focus:B,blur:function(){var Ee;(Ee=M.current)===null||Ee===void 0||Ee.blur()},setSelectionRange:function(Ee,$e,et){var ke;(ke=M.current)===null||ke===void 0||ke.setSelectionRange(Ee,$e,et)},select:function(){var Ee;(Ee=M.current)===null||Ee===void 0||Ee.select()},input:M.current,nativeElement:((ve=W.current)===null||ve===void 0?void 0:ve.nativeElement)||M.current}}),(0,Br.useEffect)(function(){A.current&&(A.current=!1),$(function(ve){return ve&&f?!1:ve})},[f]);var q=function(Y,Ee,$e){var et=Ee;if(!L.current&&Q.exceedFormatter&&Q.max&&Q.strategy(Ee)>Q.max){if(et=Q.exceedFormatter(Ee,{max:Q.max}),Ee!==et){var ke,Se;oe([((ke=M.current)===null||ke===void 0?void 0:ke.selectionStart)||0,((Se=M.current)===null||Se===void 0?void 0:Se.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;H(et),M.current&&Vu(M.current,Y,n,et)};(0,Br.useEffect)(function(){if(U){var ve;(ve=M.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,ne(U))}},[U]);var J=function(Y){q(Y,Y.target.value,{source:"change"})},re=function(Y){L.current=!1,q(Y,Y.currentTarget.value,{source:"compositionEnd"}),R?.(Y)},ee=function(Y){a&&Y.key==="Enter"&&!A.current&&(A.current=!0,a(Y)),s?.(Y)},te=function(Y){Y.key==="Enter"&&(A.current=!1),l?.(Y)},de=function(Y){$(!0),o?.(Y)},fe=function(Y){A.current&&(A.current=!1),$(!1),i?.(Y)},ue=function(Y){H(""),B(),M.current&&Vu(M.current,Y,n)},Ce=Z&&"".concat(u,"-out-of-range"),we=function(){var Y=qr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Br.default.createElement("input",le({autoComplete:r},Y,{onChange:J,onFocus:de,onBlur:fe,onKeyDown:ee,onKeyUp:te,className:(0,i0.default)(u,_({},"".concat(u,"-disabled"),f),S?.input),style:w?.input,ref:M,size:d,type:x,onCompositionStart:function($e){L.current=!0,C?.($e)},onCompositionEnd:re}))},_e=function(){var Y=Number(X)>0;if(v||Q.show){var Ee=Q.showFormatter?Q.showFormatter({value:j,count:se,maxLength:X}):"".concat(se).concat(Y?" / ".concat(X):"");return Br.default.createElement(Br.default.Fragment,null,Q.show&&Br.default.createElement("span",{className:(0,i0.default)("".concat(u,"-show-count-suffix"),_({},"".concat(u,"-show-count-has-suffix"),!!v),S?.count),style:T({},w?.count)},Ee),v)}return null};return Br.default.createElement(Xl,le({},P,{prefixCls:u,className:(0,i0.default)(m,Ce),handleReset:ue,value:j,focused:D,triggerFocus:B,suffix:_e(),disabled:f,classes:b,classNames:S,styles:w,ref:W}),we())}),bF=eU;var SF=bF;function pE(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,o){if(t[o])return t[o];var i=n[o];return typeof i=="function"?i.bind(n):i}}):e}var Ot=E(N());var CF=E(N());function mE(e,t){var r=(0,CF.useRef)(null);function n(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);r.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&r.current&&t)try{var i=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-r.current.afterTxt.length;else{var f=s[c-1],d=i.indexOf(f,c-1);d!==-1&&(u=d+1)}e.setSelectionRange(u,u)}catch(m){Vt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[n,o]}var ii=E(N()),gE=E(Ne());var wF=E(N());var tU=function(){var t=(0,wF.useState)(!1),r=F(t,2),n=r[0],o=r[1];return yt(function(){o(Su())},[]),n},EF=tU;var rU=200,nU=600;function hE(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=ii.useRef(),l=ii.useRef([]),c=ii.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,b){x.preventDefault(),u(),c.current(b);function S(){c.current(b),s.current=setTimeout(S,rU)}s.current=setTimeout(S,nU)};ii.useEffect(function(){return function(){u(),l.current.forEach(function(p){return dt.cancel(p)})}},[]);var d=EF();if(d)return null;var m="".concat(t,"-handler"),h=(0,gE.default)(m,"".concat(m,"-up"),_({},"".concat(m,"-up-disabled"),o)),v=(0,gE.default)(m,"".concat(m,"-down"),_({},"".concat(m,"-down-disabled"),i)),y=function(){return l.current.push(dt(u))},g={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return ii.createElement("div",{className:"".concat(m,"-wrap")},ii.createElement("span",le({},g,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":o,className:h}),r||ii.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),ii.createElement("span",le({},g,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:v}),n||ii.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function vE(e){var t=typeof e=="number"?Wa(e):Ti(e).fullStr,r=t.includes(".");return r?Ti(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var a0=E(N());var RF=function(){var e=(0,a0.useRef)(0),t=function(){dt.cancel(e.current)};return(0,a0.useEffect)(function(){return t},[]),function(r){t(),e.current=dt(function(){r()})}};var oU=["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"],iU=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],OF=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},_F=function(t){var r=Ni(t);return r.isInvalidate()?null:r},aU=Ot.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,d=e.readOnly,m=e.upHandler,h=e.downHandler,v=e.keyboard,y=e.changeOnWheel,g=y===void 0?!1:y,p=e.controls,x=p===void 0?!0:p,b=e.classNames,S=e.stringMode,w=e.parser,C=e.formatter,R=e.precision,P=e.decimalSeparator,O=e.onChange,I=e.onInput,D=e.onPressEnter,$=e.onStep,L=e.changeOnBlur,A=L===void 0?!0:L,M=e.domRef,W=He(e,oU),B="".concat(r,"-input"),K=Ot.useRef(null),G=Ot.useState(!1),V=F(G,2),H=V[0],j=V[1],k=Ot.useRef(!1),z=Ot.useRef(!1),U=Ot.useRef(!1),oe=Ot.useState(function(){return Ni(u??c)}),Q=F(oe,2),X=Q[0],se=Q[1];function Z(je){u===void 0&&se(je)}var q=Ot.useCallback(function(je,Pe){if(!Pe)return R>=0?R:Math.max(ta(je),ta(l))},[R,l]),J=Ot.useCallback(function(je){var Pe=String(je);if(w)return w(Pe);var qe=Pe;return P&&(qe=qe.replace(P,".")),qe.replace(/[^\w.-]+/g,"")},[w,P]),re=Ot.useRef(""),ee=Ot.useCallback(function(je,Pe){if(C)return C(je,{userTyping:Pe,input:String(re.current)});var qe=typeof je=="number"?Wa(je):je;if(!Pe){var Oe=q(qe,Pe);if(ju(qe)&&(P||Oe>=0)){var Me=P||".";qe=dp(qe,Me,Oe)}}return qe},[C,q,P]),te=Ot.useState(function(){var je=c??u;return X.isInvalidate()&&["string","number"].includes(ce(je))?Number.isNaN(je)?"":je:ee(X.toString(),!1)}),de=F(te,2),fe=de[0],ue=de[1];re.current=fe;function Ce(je,Pe){ue(ee(je.isInvalidate()?je.toString(!1):je.toString(!Pe),Pe))}var we=Ot.useMemo(function(){return _F(a)},[a,R]),_e=Ot.useMemo(function(){return _F(i)},[i,R]),ve=Ot.useMemo(function(){return!we||!X||X.isInvalidate()?!1:we.lessEquals(X)},[we,X]),Y=Ot.useMemo(function(){return!_e||!X||X.isInvalidate()?!1:X.lessEquals(_e)},[_e,X]),Ee=mE(K.current,H),$e=F(Ee,2),et=$e[0],ke=$e[1],Se=function(Pe){return we&&!Pe.lessEquals(we)?we:_e&&!_e.lessEquals(Pe)?_e:null},Be=function(Pe){return!Se(Pe)},Fe=function(Pe,qe){var Oe=Pe,Me=Be(Oe)||Oe.isEmpty();if(!Oe.isEmpty()&&!qe&&(Oe=Se(Oe)||Oe,Me=!0),!d&&!f&&Me){var Ve=Oe.toString(),xe=q(Ve,qe);return xe>=0&&(Oe=Ni(dp(Ve,".",xe)),Be(Oe)||(Oe=Ni(dp(Ve,".",xe,!0)))),Oe.equals(X)||(Z(Oe),O?.(Oe.isEmpty()?null:OF(S,Oe)),u===void 0&&Ce(Oe,qe)),Oe}return X},Ue=RF(),Re=function je(Pe){if(et(),re.current=Pe,ue(Pe),!z.current){var qe=J(Pe),Oe=Ni(qe);Oe.isNaN()||Fe(Oe,!0)}I?.(Pe),Ue(function(){var Me=Pe;w||(Me=Pe.replace(/。/g,".")),Me!==Pe&&je(Me)})},ae=function(){z.current=!0},ge=function(){z.current=!1,Re(K.current.value)},Te=function(Pe){Re(Pe.target.value)},he=function(Pe){var qe;if(!(Pe&&ve||!Pe&&Y)){k.current=!1;var Oe=Ni(U.current?vE(l):l);Pe||(Oe=Oe.negate());var Me=(X||Ni(0)).add(Oe.toString()),Ve=Fe(Me,!1);$?.(OF(S,Ve),{offset:U.current?vE(l):l,type:Pe?"up":"down"}),(qe=K.current)===null||qe===void 0||qe.focus()}},Ze=function(Pe){var qe=Ni(J(fe)),Oe;qe.isNaN()?Oe=Fe(X,Pe):Oe=Fe(qe,Pe),u!==void 0?Ce(X,!1):Oe.isNaN()||Ce(Oe,!1)},ct=function(){k.current=!0},_t=function(Pe){var qe=Pe.key,Oe=Pe.shiftKey;k.current=!0,U.current=Oe,qe==="Enter"&&(z.current||(k.current=!1),Ze(!1),D?.(Pe)),v!==!1&&!z.current&&["Up","ArrowUp","Down","ArrowDown"].includes(qe)&&(he(qe==="Up"||qe==="ArrowUp"),Pe.preventDefault())},Pt=function(){k.current=!1,U.current=!1};Ot.useEffect(function(){if(g&&H){var je=function(Oe){he(Oe.deltaY<0),Oe.preventDefault()},Pe=K.current;if(Pe)return Pe.addEventListener("wheel",je,{passive:!1}),function(){return Pe.removeEventListener("wheel",je)}}});var mt=function(){A&&Ze(!1),j(!1),k.current=!1};return _l(function(){X.isInvalidate()||Ce(X,!1)},[R,C]),_l(function(){var je=Ni(u);se(je);var Pe=Ni(J(fe));(!je.equals(Pe)||!k.current||C)&&Ce(je,k.current)},[u]),_l(function(){C&&ke()},[fe]),Ot.createElement("div",{ref:M,className:(0,PF.default)(r,n,_(_(_(_(_({},"".concat(r,"-focused"),H),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),d),"".concat(r,"-not-a-number"),X.isNaN()),"".concat(r,"-out-of-range"),!X.isInvalidate()&&!Be(X))),style:o,onFocus:function(){j(!0)},onBlur:mt,onKeyDown:_t,onKeyUp:Pt,onCompositionStart:ae,onCompositionEnd:ge,onBeforeInput:ct},x&&Ot.createElement(hE,{prefixCls:r,upNode:m,downNode:h,upDisabled:ve,downDisabled:Y,onStep:he}),Ot.createElement("div",{className:"".concat(B,"-wrap")},Ot.createElement("input",le({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},W,{ref:zr(K,t),className:B,value:fe,onChange:Te,disabled:f,readOnly:d}))))}),sU=Ot.forwardRef(function(e,t){var r=e.disabled,n=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.classNames,m=He(e,iU),h=Ot.useRef(null),v=Ot.useRef(null),y=Ot.useRef(null),g=function(x){y.current&&Kl(y.current,x)};return Ot.useImperativeHandle(t,function(){return pE(y.current,{focus:g,nativeElement:h.current.nativeElement||v.current})}),Ot.createElement(Xl,{className:f,triggerFocus:g,prefixCls:i,value:a,disabled:r,style:n,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},Ot.createElement(aU,le({prefixCls:i,disabled:r,ref:y,domRef:v,className:d?.input},m)))}),TF=sU;var NF=TF;var IF=e=>{var t;let r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",n=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},za(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ht(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?n:0})};var DF=({componentCls:e,borderRadiusSM:t,borderRadiusLG:r},n)=>{let o=n==="lg"?r:t;return{[`&-${n}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},lU=e=>{let{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:m,colorIcon:h,motionDurationMid:v,handleHoverColor:y,handleOpacity:g,paddingInline:p,paddingBlock:x,handleBg:b,handleActiveBg:S,colorTextDisabled:w,borderRadiusSM:C,borderRadiusLG:R,controlWidth:P,handleBorderColor:O,filledHandleBg:I,lineHeightLG:D,calc:$}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),cp(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),Hy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${ie(r)} ${n} ${O}`}}})),Gy(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${ie(r)} ${n} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),Xy(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${ie(r)} ${n} ${O}`}}})),qy(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:D,borderRadius:R,[`input${t}-input`]:{height:$(s).sub($(r).mul(2)).equal(),padding:`${ie(d)} ${ie(m)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:$(l).sub($(r).mul(2)).equal(),padding:`${ie(f)} ${ie(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},lr(e)),cE(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:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Uy(e)),Ky(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({},lr(e)),{width:"100%",padding:`${ie(x)} ${ie(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),lE(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:g,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${oe(r)} ${n} ${O}`,transition:`all ${v} linear`,"&:active":{background:S},"&:hover":{height:"60%",[` + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ie(r)} ${n} ${O}`,transition:`all ${v} linear`,"&:active":{background:S},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Pa()),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},IF(e,"lg")),IF(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + `]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Ta()),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},DF(e,"lg")),DF(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:w}})}]},lU=e=>{let{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:o,controlWidth:i,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:`${oe(r)} 0`}},lp(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${oe(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${oe(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:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:o,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()}})}},DF=Gt("InputNumber",e=>{let t=ut(e,Fa(e));return[sU(t),lU(t),Ms(t)]},NF,{unitless:{handleOpacity:!0}});var cU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{getPrefixCls:r,direction:n}=Rr.useContext(rt),o=Rr.useRef(null);Rr.useImperativeHandle(t,()=>o.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:d,suffix:m,bordered:h,readOnly:v,status:y,controls:g,variant:p}=e,x=cU(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),b=r("input-number",c),S=Xo(b),[w,C,R]=DF(b,S),{compactSize:P,compactItemClassnames:O}=Yo(b,n),I=Rr.createElement(dF,{className:`${b}-handler-up-inner`}),D=Rr.createElement($y,{className:`${b}-handler-down-inner`}),$=typeof g=="boolean"?g:void 0;typeof g=="object"&&(I=typeof g.upIcon>"u"?I:Rr.createElement("span",{className:`${b}-handler-up-inner`},g.upIcon),D=typeof g.downIcon>"u"?D:Rr.createElement("span",{className:`${b}-handler-down-inner`},g.downIcon));let{hasFeedback:F,status:k,isFormItemInput:z,feedbackIcon:B}=Rr.useContext(pn),j=Ji(k,y),G=so(Y=>{var X;return(X=s??P)!==null&&X!==void 0?X:Y}),V=Rr.useContext(qr),H=l??V,[K,W]=Gs("inputNumber",p,h),A=F&&Rr.createElement(Rr.Fragment,null,B),L=(0,Kl.default)({[`${b}-lg`]:G==="large",[`${b}-sm`]:G==="small",[`${b}-rtl`]:n==="rtl",[`${b}-in-form-item`]:z},C),q=`${b}-group`,ne=Rr.createElement(TF,Object.assign({ref:o,disabled:H,className:(0,Kl.default)(R,S,i,a,O),upHandler:I,downHandler:D,prefixCls:b,readOnly:v,controls:$,prefix:d,suffix:A||m,addonBefore:u&&Rr.createElement(Ws,{form:!0,space:!0},u),addonAfter:f&&Rr.createElement(Ws,{form:!0,space:!0},f),classNames:{input:L,variant:(0,Kl.default)({[`${b}-${K}`]:W},Qi(b,j,F)),affixWrapper:(0,Kl.default)({[`${b}-affix-wrapper-sm`]:G==="small",[`${b}-affix-wrapper-lg`]:G==="large",[`${b}-affix-wrapper-rtl`]:n==="rtl",[`${b}-affix-wrapper-without-controls`]:g===!1||H},C),wrapper:(0,Kl.default)({[`${q}-rtl`]:n==="rtl"},C),groupWrapper:(0,Kl.default)({[`${b}-group-wrapper-sm`]:G==="small",[`${b}-group-wrapper-lg`]:G==="large",[`${b}-group-wrapper-rtl`]:n==="rtl",[`${b}-group-wrapper-${K}`]:W},Qi(`${b}-group-wrapper`,j,F),C)}},x));return w(ne)}),AF=$F,uU=e=>Rr.createElement(Ia,{theme:{components:{InputNumber:{handleVisible:!0}}}},Rr.createElement($F,Object.assign({},e)));AF._InternalPanelDoNotUseOrYouWillBeFired=uU;var i0=AF;var fo=E(N()),Xl=E(Ne());var kF=E(N());var fU=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:kF.default.createElement(gu,null)}),t},a0=fU;var s0=E(N());function pp(e,t){let r=(0,s0.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return(0,s0.useEffect)(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function MF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var dU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:d,className:m,style:h,styles:v,rootClassName:y,onChange:g,classNames:p,variant:x}=e,b=dU(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:w,allowClear:C,autoComplete:R,className:P,style:O,classNames:I,styles:D}=oo("input"),$=S("input",r),F=(0,fo.useRef)(null),k=Xo($),[z,B,j]=Ky($,y),[G]=Xy($,k),{compactSize:V,compactItemClassnames:H}=Yo($,w),K=so(pe=>{var Oe;return(Oe=i??V)!==null&&Oe!==void 0?Oe:pe}),W=fo.default.useContext(qr),A=a??W,{status:L,hasFeedback:q,feedbackIcon:ne}=(0,fo.useContext)(pn),Y=Ji(L,o),X=MF(e)||!!q,ae=(0,fo.useRef)(X),J=pp(F,!0),U=pe=>{J(),s?.(pe)},Q=pe=>{J(),l?.(pe)},te=pe=>{J(),g?.(pe)},Z=(q||c)&&fo.default.createElement(fo.default.Fragment,null,c,q&&ne),re=a0(u??C),[de,le]=Gs("input",x,n);return z(G(fo.default.createElement(bF,Object.assign({ref:zr(t,F),prefixCls:$,autoComplete:R},b,{disabled:A,onBlur:U,onFocus:Q,style:Object.assign(Object.assign({},O),h),styles:Object.assign(Object.assign({},D),v),suffix:Z,allowClear:re,className:(0,Xl.default)(m,y,j,k,H,P),onChange:te,addonBefore:d&&fo.default.createElement(Ws,{form:!0,space:!0},d),addonAfter:f&&fo.default.createElement(Ws,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},p),I),{input:(0,Xl.default)({[`${$}-sm`]:K==="small",[`${$}-lg`]:K==="large",[`${$}-rtl`]:w==="rtl"},p?.input,I.input,B),variant:(0,Xl.default)({[`${$}-${de}`]:le},Qi($,Y)),affixWrapper:(0,Xl.default)({[`${$}-affix-wrapper-sm`]:K==="small",[`${$}-affix-wrapper-lg`]:K==="large",[`${$}-affix-wrapper-rtl`]:w==="rtl"},B),wrapper:(0,Xl.default)({[`${$}-group-rtl`]:w==="rtl"},B),groupWrapper:(0,Xl.default)({[`${$}-group-wrapper-sm`]:K==="small",[`${$}-group-wrapper-lg`]:K==="large",[`${$}-group-wrapper-rtl`]:w==="rtl",[`${$}-group-wrapper-${de}`]:le},Qi(`${$}-group-wrapper`,Y,q),B)})}))))}),Ks=pU;var wE=E(Ne());var Pt=E(N());var Xn=E(N()),LF=E(Hi());function l0(e,t,r){return(e-t)/(r-t)}function Hu(e,t,r,n){var o=l0(t,r,n),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function ta(e,t){return Array.isArray(e)?e[t]:e}var FF=E(Ne());var Uu=E(N());var hE=E(N()),mU=hE.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),po=mU,vE=hE.createContext({});var gU=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],hU=Uu.forwardRef(function(e,t){var r=e.prefixCls,n=e.value,o=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,d=e.onChangeComplete,m=e.onFocus,h=e.onMouseEnter,v=Ve(e,gU),y=Uu.useContext(po),g=y.min,p=y.max,x=y.direction,b=y.disabled,S=y.keyboard,w=y.range,C=y.tabIndex,R=y.ariaLabelForHandle,P=y.ariaLabelledByForHandle,O=y.ariaRequired,I=y.ariaValueTextFormatterForHandle,D=y.styles,$=y.classNames,F="".concat(r,"-handle"),k=function(L){b||i(L,o)},z=function(L){m?.(L,o)},B=function(L){h(L,o)},j=function(L){if(!b&&S){var q=null;switch(L.which||L.keyCode){case Qe.LEFT:q=x==="ltr"||x==="btt"?-1:1;break;case Qe.RIGHT:q=x==="ltr"||x==="btt"?1:-1;break;case Qe.UP:q=x!=="ttb"?1:-1;break;case Qe.DOWN:q=x!=="ttb"?-1:1;break;case Qe.HOME:q="min";break;case Qe.END:q="max";break;case Qe.PAGE_UP:q=2;break;case Qe.PAGE_DOWN:q=-2;break;case Qe.BACKSPACE:case Qe.DELETE:a(o);break}q!==null&&(L.preventDefault(),f(q,o))}},G=function(L){switch(L.which||L.keyCode){case Qe.LEFT:case Qe.RIGHT:case Qe.UP:case Qe.DOWN:case Qe.HOME:case Qe.END:case Qe.PAGE_UP:case Qe.PAGE_DOWN:d?.();break}},V=Hu(x,n,g,p),H={};if(o!==null){var K;H={tabIndex:b?null:ta(C,o),role:"slider","aria-valuemin":g,"aria-valuemax":p,"aria-valuenow":n,"aria-disabled":b,"aria-label":ta(R,o),"aria-labelledby":ta(P,o),"aria-required":ta(O,o),"aria-valuetext":(K=ta(I,o))===null||K===void 0?void 0:K(n),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:k,onTouchStart:k,onFocus:z,onMouseEnter:B,onKeyDown:j,onKeyUp:G}}var W=Uu.createElement("div",ue({ref:t,className:(0,FF.default)(F,_(_(_({},"".concat(F,"-").concat(o+1),o!==null&&w),"".concat(F,"-dragging"),c),"".concat(F,"-dragging-delete"),u),$.handle),style:T(T(T({},V),s),D.handle)},H,v));return l&&(W=l(W,{index:o,prefixCls:r,value:n,dragging:c,draggingDelete:u})),W}),yE=hU;var vU=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],yU=Xn.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,d=Ve(e,vU),m=Xn.useRef({}),h=Xn.useState(!1),v=M(h,2),y=v[0],g=v[1],p=Xn.useState(-1),x=M(p,2),b=x[0],S=x[1],w=function(I){S(I),g(!0)},C=function(I,D){w(D),f?.(I)},R=function(I,D){w(D)};Xn.useImperativeHandle(t,function(){return{focus:function(I){var D;(D=m.current[I])===null||D===void 0||D.focus()},hideHelp:function(){(0,LF.flushSync)(function(){g(!1)})}}});var P=T({prefixCls:r,onStartMove:o,onOffsetChange:i,render:s,onFocus:C,onMouseEnter:R},d);return Xn.createElement(Xn.Fragment,null,a.map(function(O,I){var D=c===I;return Xn.createElement(yE,ue({ref:function(F){F?m.current[I]=F:delete m.current[I]},dragging:D,draggingDelete:D&&u,style:ta(n,I),key:I,value:O,valueIndex:I},P))}),l&&y&&Xn.createElement(yE,ue({key:"a11y"},P,{value:a[b],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),zF=yU;var xE=E(N());var WF=E(Ne()),c0=E(N());var xU=function(t){var r=t.prefixCls,n=t.style,o=t.children,i=t.value,a=t.onClick,s=c0.useContext(po),l=s.min,c=s.max,u=s.direction,f=s.includedStart,d=s.includedEnd,m=s.included,h="".concat(r,"-text"),v=Hu(u,i,l,c);return c0.createElement("span",{className:(0,WF.default)(h,_({},"".concat(h,"-active"),m&&f<=i&&i<=d)),style:T(T({},v),n),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(i)}},o)},BF=xU;var bU=function(t){var r=t.prefixCls,n=t.marks,o=t.onClick,i="".concat(r,"-mark");return n.length?xE.createElement("div",{className:i},n.map(function(a){var s=a.value,l=a.style,c=a.label;return xE.createElement(BF,{key:s,prefixCls:i,style:l,value:s,onClick:o},c)})):null},jF=bU;var Yl=E(N());var VF=E(Ne()),u0=E(N());var SU=function(t){var r=t.prefixCls,n=t.value,o=t.style,i=t.activeStyle,a=u0.useContext(po),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,d=a.includedEnd,m="".concat(r,"-dot"),h=u&&f<=n&&n<=d,v=T(T({},Hu(c,n,s,l)),typeof o=="function"?o(n):o);return h&&(v=T(T({},v),typeof i=="function"?i(n):i)),u0.createElement("span",{className:(0,VF.default)(m,_({},"".concat(m,"-active"),h)),style:v})},HF=SU;var CU=function(t){var r=t.prefixCls,n=t.marks,o=t.dots,i=t.style,a=t.activeStyle,s=Yl.useContext(po),l=s.min,c=s.max,u=s.step,f=Yl.useMemo(function(){var d=new Set;if(n.forEach(function(h){d.add(h.value)}),o&&u!==null)for(var m=l;m<=c;)d.add(m),m+=u;return Array.from(d)},[l,c,u,o,n]);return Yl.createElement("div",{className:"".concat(r,"-step")},f.map(function(d){return Yl.createElement(HF,{prefixCls:r,key:d,value:d,style:i,activeStyle:a})}))},UF=CU;var GF=E(Ne()),ra=E(N());var qF=E(Ne()),f0=E(N());var wU=function(t){var r=t.prefixCls,n=t.style,o=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=f0.useContext(po),u=c.direction,f=c.min,d=c.max,m=c.disabled,h=c.range,v=c.classNames,y="".concat(r,"-track"),g=l0(o,f,d),p=l0(i,f,d),x=function(C){!m&&s&&s(C,-1)},b={};switch(u){case"rtl":b.right="".concat(g*100,"%"),b.width="".concat(p*100-g*100,"%");break;case"btt":b.bottom="".concat(g*100,"%"),b.height="".concat(p*100-g*100,"%");break;case"ttb":b.top="".concat(g*100,"%"),b.height="".concat(p*100-g*100,"%");break;default:b.left="".concat(g*100,"%"),b.width="".concat(p*100-g*100,"%")}var S=l||(0,qF.default)(y,_(_({},"".concat(y,"-").concat(a+1),a!==null&&h),"".concat(r,"-track-draggable"),s),v.track);return f0.createElement("div",{className:S,style:T(T({},b),n),onMouseDown:x,onTouchStart:x})},bE=wU;var EU=function(t){var r=t.prefixCls,n=t.style,o=t.values,i=t.startPoint,a=t.onStartMove,s=ra.useContext(po),l=s.included,c=s.range,u=s.min,f=s.styles,d=s.classNames,m=ra.useMemo(function(){if(!c){if(o.length===0)return[];var v=i??u,y=o[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var g=[],p=0;pRU&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var p,x=h[y],b=x+v,S=[];n.forEach(function(O){S.push(O.value)}),S.push(e,t),S.push(s(x));var w=v>0?1:-1;g==="unit"?S.push(s(x+w*r)):S.push(s(b)),S=S.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=x:O>=x}),g==="unit"&&(S=S.filter(function(O){return O!==x}));var C=g==="unit"?x:b;p=S[0];var R=Math.abs(p-C);if(S.forEach(function(O){var I=Math.abs(O-C);I1){var P=ee(h);return P[y]=p,m(P,v-w,y,g)}return p}else{if(v==="min")return e;if(v==="max")return t}},u=function(h,v,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",p=h[y],x=c(h,v,y,g);return{value:x,changed:x!==p}},f=function(h){return i===null&&h===0||typeof i=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",p=h.map(l),x=p[y],b=c(p,v,y,g);if(p[y]=b,o===!1){var S=i||0;y>0&&p[y-1]!==x&&(p[y]=Math.max(p[y],p[y-1]+S)),y0;P-=1)for(var O=!0;f(p[P]-p[P-1])&&O;){var I=u(p,-1,P-1);p[P-1]=I.value,O=I.changed}for(var D=p.length-1;D>0;D-=1)for(var $=!0;f(p[D]-p[D-1])&&$;){var F=u(p,-1,D-1);p[D-1]=F.value,$=F.changed}for(var k=0;k=0?B:!1},[B,We]),ye=Pt.useMemo(function(){return Object.keys(Y||{}).map(function(ke){var ve=Y[ke],nt={value:Number(ke)};return ve&&fe(ve)==="object"&&!Pt.isValidElement(ve)&&("label"in ve||"style"in ve)?(nt.style=ve.style,nt.label=ve.label):nt.label=ve,nt}).filter(function(ke){var ve=ke.label;return ve||typeof ve=="number"}).sort(function(ke,ve){return ke.value-ve.value})},[Y]),se=SE(Ie,je,We,ye,k,He),xe=M(se,2),_e=xe[0],he=xe[1],Ze=ar(C,{value:w}),lt=M(Ze,2),Rt=lt[0],Tt=lt[1],pt=Pt.useMemo(function(){var ke=Rt==null?[]:Array.isArray(Rt)?Rt:[Rt],ve=M(ke,1),nt=ve[0],It=nt===void 0?Ie:nt,Dt=Rt===null?[]:[It];if(ie){if(Dt=ee(ke),P||Rt===void 0){var gn=P>=0?P+1:2;for(Dt=Dt.slice(0,gn);Dt.length=0&&pe.current.focus(ke)}Nt(null)},[kt]);var Ft=Pt.useMemo(function(){return Le&&We===null?!1:Le},[Le,We]),rr=wt(function(ke,ve){Se(ke,ve),I?.(Ae(pt))}),pr=be!==-1;Pt.useEffect(function(){if(!pr){var ke=pt.lastIndexOf(ht);pe.current.focus(ke)}},[pr]);var mr=Pt.useMemo(function(){return ee(Fe).sort(function(ke,ve){return ke-ve})},[Fe]),Mn=Pt.useMemo(function(){return ie?[mr[0],mr[mr.length-1]]:[Ie,mr[0]]},[mr,ie,Ie]),gr=M(Mn,2),Lt=gr[0],Te=gr[1];Pt.useImperativeHandle(t,function(){return{focus:function(){pe.current.focus(0)},blur:function(){var ve,nt=document,It=nt.activeElement;(ve=Oe.current)!==null&&ve!==void 0&&ve.contains(It)&&It?.blur()}}}),Pt.useEffect(function(){m&&pe.current.focus(0)},[]);var Ue=Pt.useMemo(function(){return{min:Ie,max:je,direction:Ce,disabled:u,keyboard:d,step:We,included:H,includedStart:Lt,includedEnd:Te,range:ie,tabIndex:te,ariaLabelForHandle:Z,ariaLabelledByForHandle:re,ariaRequired:de,ariaValueTextFormatterForHandle:le,styles:s||{},classNames:a||{}}},[Ie,je,Ce,u,d,We,H,Lt,Te,ie,te,Z,re,de,le,s,a]);return Pt.createElement(po.Provider,{value:Ue},Pt.createElement("div",{ref:Oe,className:(0,wE.default)(n,o,_(_(_(_({},"".concat(n,"-disabled"),u),"".concat(n,"-vertical"),G),"".concat(n,"-horizontal"),!G),"".concat(n,"-with-marks"),ye.length)),style:i,onMouseDown:Be,id:l},Pt.createElement("div",{className:(0,wE.default)("".concat(n,"-rail"),a?.rail),style:T(T({},L),s?.rail)}),U!==!1&&Pt.createElement(KF,{prefixCls:n,style:W,values:pt,startPoint:K,onStartMove:Ft?rr:void 0}),Pt.createElement(UF,{prefixCls:n,marks:ye,dots:X,style:q,activeStyle:ne}),Pt.createElement(zF,{ref:pe,prefixCls:n,style:A,values:Fe,draggingIndex:be,draggingDelete:Mt,onStartMove:rr,onOffsetChange:tr,onFocus:h,onBlur:v,handleRender:ae,activeHandleRender:J,onChangeComplete:et,onDelete:Re?Pe:void 0}),Pt.createElement(jF,{prefixCls:n,marks:ye,onClick:Ke})))}),JF=_U;var ZF=JF;var na=E(N()),Ku=E(Ne());var eL=E(N()),PU=(0,eL.createContext)({}),tL=PU;var qu=E(N()),EE=E(N());var TU=qu.forwardRef((e,t)=>{let{open:r,draggingDelete:n,value:o}=e,i=(0,EE.useRef)(null),a=r&&!n,s=(0,EE.useRef)(null);function l(){dt.cancel(s.current),s.current=null}function c(){s.current=dt(()=>{var u;(u=i.current)===null||u===void 0||u.forceAlign(),s.current=null})}return qu.useEffect(()=>(a?c():l(),l),[a,e.title,o]),qu.createElement(Ma,Object.assign({ref:zr(i,t)},e,{open:a}))}),RE=TU;var NU=e=>{let{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:d,handleActiveOutlineColor:m,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},sr(e)),{position:"relative",height:n,margin:`${oe(a)} ${oe(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${oe(i)} ${oe(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${oe(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${oe(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` + `]:{color:w}})}]},cU=e=>{let{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:o,controlWidth:i,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:`${ie(r)} 0`}},cp(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ie(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ie(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:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:o,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()}})}},$F=Gt("InputNumber",e=>{let t=ft(e,La(e));return[lU(t),cU(t),Ms(t)]},IF,{unitless:{handleOpacity:!0}});var uU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{getPrefixCls:r,direction:n}=Or.useContext(ot),o=Or.useRef(null);Or.useImperativeHandle(t,()=>o.current);let{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:d,suffix:m,bordered:h,readOnly:v,status:y,controls:g,variant:p}=e,x=uU(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),b=r("input-number",c),S=Ko(b),[w,C,R]=$F(b,S),{compactSize:P,compactItemClassnames:O}=Xo(b,n),I=Or.createElement(pF,{className:`${b}-handler-up-inner`}),D=Or.createElement(ky,{className:`${b}-handler-down-inner`}),$=typeof g=="boolean"?g:void 0;typeof g=="object"&&(I=typeof g.upIcon>"u"?I:Or.createElement("span",{className:`${b}-handler-up-inner`},g.upIcon),D=typeof g.downIcon>"u"?D:Or.createElement("span",{className:`${b}-handler-down-inner`},g.downIcon));let{hasFeedback:L,status:A,isFormItemInput:M,feedbackIcon:W}=Or.useContext(fn),B=Zi(A,y),K=so(Q=>{var X;return(X=s??P)!==null&&X!==void 0?X:Q}),G=Or.useContext(Hr),V=l??G,[H,j]=Gs("inputNumber",p,h),k=L&&Or.createElement(Or.Fragment,null,W),z=(0,Yl.default)({[`${b}-lg`]:K==="large",[`${b}-sm`]:K==="small",[`${b}-rtl`]:n==="rtl",[`${b}-in-form-item`]:M},C),U=`${b}-group`,oe=Or.createElement(NF,Object.assign({ref:o,disabled:V,className:(0,Yl.default)(R,S,i,a,O),upHandler:I,downHandler:D,prefixCls:b,readOnly:v,controls:$,prefix:d,suffix:k||m,addonBefore:u&&Or.createElement(Ws,{form:!0,space:!0},u),addonAfter:f&&Or.createElement(Ws,{form:!0,space:!0},f),classNames:{input:z,variant:(0,Yl.default)({[`${b}-${H}`]:j},Ji(b,B,L)),affixWrapper:(0,Yl.default)({[`${b}-affix-wrapper-sm`]:K==="small",[`${b}-affix-wrapper-lg`]:K==="large",[`${b}-affix-wrapper-rtl`]:n==="rtl",[`${b}-affix-wrapper-without-controls`]:g===!1||V},C),wrapper:(0,Yl.default)({[`${U}-rtl`]:n==="rtl"},C),groupWrapper:(0,Yl.default)({[`${b}-group-wrapper-sm`]:K==="small",[`${b}-group-wrapper-lg`]:K==="large",[`${b}-group-wrapper-rtl`]:n==="rtl",[`${b}-group-wrapper-${H}`]:j},Ji(`${b}-group-wrapper`,B,L),C)}},x));return w(oe)}),kF=AF,fU=e=>Or.createElement(Da,{theme:{components:{InputNumber:{handleVisible:!0}}}},Or.createElement(AF,Object.assign({},e)));kF._InternalPanelDoNotUseOrYouWillBeFired=fU;var s0=kF;var fo=E(N()),Ql=E(Ne());var MF=E(N());var dU=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:MF.default.createElement(gu,null)}),t},l0=dU;var c0=E(N());function mp(e,t){let r=(0,c0.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return(0,c0.useEffect)(()=>(t&&n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function FF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var pU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:d,className:m,style:h,styles:v,rootClassName:y,onChange:g,classNames:p,variant:x}=e,b=pU(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:w,allowClear:C,autoComplete:R,className:P,style:O,classNames:I,styles:D}=oo("input"),$=S("input",r),L=(0,fo.useRef)(null),A=Ko($),[M,W,B]=Yy($,y),[K]=Qy($,A),{compactSize:G,compactItemClassnames:V}=Xo($,w),H=so(ue=>{var Ce;return(Ce=i??G)!==null&&Ce!==void 0?Ce:ue}),j=fo.default.useContext(Hr),k=a??j,{status:z,hasFeedback:U,feedbackIcon:oe}=(0,fo.useContext)(fn),Q=Zi(z,o),X=FF(e)||!!U,se=(0,fo.useRef)(X),Z=mp(L,!0),q=ue=>{Z(),s?.(ue)},J=ue=>{Z(),l?.(ue)},re=ue=>{Z(),g?.(ue)},ee=(U||c)&&fo.default.createElement(fo.default.Fragment,null,c,U&&oe),te=l0(u??C),[de,fe]=Gs("input",x,n);return M(K(fo.default.createElement(SF,Object.assign({ref:zr(t,L),prefixCls:$,autoComplete:R},b,{disabled:k,onBlur:q,onFocus:J,style:Object.assign(Object.assign({},O),h),styles:Object.assign(Object.assign({},D),v),suffix:ee,allowClear:te,className:(0,Ql.default)(m,y,B,A,V,P),onChange:re,addonBefore:d&&fo.default.createElement(Ws,{form:!0,space:!0},d),addonAfter:f&&fo.default.createElement(Ws,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},p),I),{input:(0,Ql.default)({[`${$}-sm`]:H==="small",[`${$}-lg`]:H==="large",[`${$}-rtl`]:w==="rtl"},p?.input,I.input,W),variant:(0,Ql.default)({[`${$}-${de}`]:fe},Ji($,Q)),affixWrapper:(0,Ql.default)({[`${$}-affix-wrapper-sm`]:H==="small",[`${$}-affix-wrapper-lg`]:H==="large",[`${$}-affix-wrapper-rtl`]:w==="rtl"},W),wrapper:(0,Ql.default)({[`${$}-group-rtl`]:w==="rtl"},W),groupWrapper:(0,Ql.default)({[`${$}-group-wrapper-sm`]:H==="small",[`${$}-group-wrapper-lg`]:H==="large",[`${$}-group-wrapper-rtl`]:w==="rtl",[`${$}-group-wrapper-${de}`]:fe},Ji(`${$}-group-wrapper`,Q,U),W)})}))))}),Ks=mU;var RE=E(Ne());var It=E(N());var Kn=E(N()),zF=E(Ui());function u0(e,t,r){return(e-t)/(r-t)}function Hu(e,t,r,n){var o=u0(t,r,n),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function ra(e,t){return Array.isArray(e)?e[t]:e}var LF=E(Ne());var Uu=E(N());var yE=E(N()),gU=yE.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),po=gU,xE=yE.createContext({});var hU=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],vU=Uu.forwardRef(function(e,t){var r=e.prefixCls,n=e.value,o=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,d=e.onChangeComplete,m=e.onFocus,h=e.onMouseEnter,v=He(e,hU),y=Uu.useContext(po),g=y.min,p=y.max,x=y.direction,b=y.disabled,S=y.keyboard,w=y.range,C=y.tabIndex,R=y.ariaLabelForHandle,P=y.ariaLabelledByForHandle,O=y.ariaRequired,I=y.ariaValueTextFormatterForHandle,D=y.styles,$=y.classNames,L="".concat(r,"-handle"),A=function(z){b||i(z,o)},M=function(z){m?.(z,o)},W=function(z){h(z,o)},B=function(z){if(!b&&S){var U=null;switch(z.which||z.keyCode){case Qe.LEFT:U=x==="ltr"||x==="btt"?-1:1;break;case Qe.RIGHT:U=x==="ltr"||x==="btt"?1:-1;break;case Qe.UP:U=x!=="ttb"?1:-1;break;case Qe.DOWN:U=x!=="ttb"?-1:1;break;case Qe.HOME:U="min";break;case Qe.END:U="max";break;case Qe.PAGE_UP:U=2;break;case Qe.PAGE_DOWN:U=-2;break;case Qe.BACKSPACE:case Qe.DELETE:a(o);break}U!==null&&(z.preventDefault(),f(U,o))}},K=function(z){switch(z.which||z.keyCode){case Qe.LEFT:case Qe.RIGHT:case Qe.UP:case Qe.DOWN:case Qe.HOME:case Qe.END:case Qe.PAGE_UP:case Qe.PAGE_DOWN:d?.();break}},G=Hu(x,n,g,p),V={};if(o!==null){var H;V={tabIndex:b?null:ra(C,o),role:"slider","aria-valuemin":g,"aria-valuemax":p,"aria-valuenow":n,"aria-disabled":b,"aria-label":ra(R,o),"aria-labelledby":ra(P,o),"aria-required":ra(O,o),"aria-valuetext":(H=ra(I,o))===null||H===void 0?void 0:H(n),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:M,onMouseEnter:W,onKeyDown:B,onKeyUp:K}}var j=Uu.createElement("div",le({ref:t,className:(0,LF.default)(L,_(_(_({},"".concat(L,"-").concat(o+1),o!==null&&w),"".concat(L,"-dragging"),c),"".concat(L,"-dragging-delete"),u),$.handle),style:T(T(T({},G),s),D.handle)},V,v));return l&&(j=l(j,{index:o,prefixCls:r,value:n,dragging:c,draggingDelete:u})),j}),bE=vU;var yU=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],xU=Kn.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,d=He(e,yU),m=Kn.useRef({}),h=Kn.useState(!1),v=F(h,2),y=v[0],g=v[1],p=Kn.useState(-1),x=F(p,2),b=x[0],S=x[1],w=function(I){S(I),g(!0)},C=function(I,D){w(D),f?.(I)},R=function(I,D){w(D)};Kn.useImperativeHandle(t,function(){return{focus:function(I){var D;(D=m.current[I])===null||D===void 0||D.focus()},hideHelp:function(){(0,zF.flushSync)(function(){g(!1)})}}});var P=T({prefixCls:r,onStartMove:o,onOffsetChange:i,render:s,onFocus:C,onMouseEnter:R},d);return Kn.createElement(Kn.Fragment,null,a.map(function(O,I){var D=c===I;return Kn.createElement(bE,le({ref:function(L){L?m.current[I]=L:delete m.current[I]},dragging:D,draggingDelete:D&&u,style:ra(n,I),key:I,value:O,valueIndex:I},P))}),l&&y&&Kn.createElement(bE,le({key:"a11y"},P,{value:a[b],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),WF=xU;var SE=E(N());var BF=E(Ne()),f0=E(N());var bU=function(t){var r=t.prefixCls,n=t.style,o=t.children,i=t.value,a=t.onClick,s=f0.useContext(po),l=s.min,c=s.max,u=s.direction,f=s.includedStart,d=s.includedEnd,m=s.included,h="".concat(r,"-text"),v=Hu(u,i,l,c);return f0.createElement("span",{className:(0,BF.default)(h,_({},"".concat(h,"-active"),m&&f<=i&&i<=d)),style:T(T({},v),n),onMouseDown:function(g){g.stopPropagation()},onClick:function(){a(i)}},o)},jF=bU;var SU=function(t){var r=t.prefixCls,n=t.marks,o=t.onClick,i="".concat(r,"-mark");return n.length?SE.createElement("div",{className:i},n.map(function(a){var s=a.value,l=a.style,c=a.label;return SE.createElement(jF,{key:s,prefixCls:i,style:l,value:s,onClick:o},c)})):null},VF=SU;var Jl=E(N());var HF=E(Ne()),d0=E(N());var CU=function(t){var r=t.prefixCls,n=t.value,o=t.style,i=t.activeStyle,a=d0.useContext(po),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,d=a.includedEnd,m="".concat(r,"-dot"),h=u&&f<=n&&n<=d,v=T(T({},Hu(c,n,s,l)),typeof o=="function"?o(n):o);return h&&(v=T(T({},v),typeof i=="function"?i(n):i)),d0.createElement("span",{className:(0,HF.default)(m,_({},"".concat(m,"-active"),h)),style:v})},UF=CU;var wU=function(t){var r=t.prefixCls,n=t.marks,o=t.dots,i=t.style,a=t.activeStyle,s=Jl.useContext(po),l=s.min,c=s.max,u=s.step,f=Jl.useMemo(function(){var d=new Set;if(n.forEach(function(h){d.add(h.value)}),o&&u!==null)for(var m=l;m<=c;)d.add(m),m+=u;return Array.from(d)},[l,c,u,o,n]);return Jl.createElement("div",{className:"".concat(r,"-step")},f.map(function(d){return Jl.createElement(UF,{prefixCls:r,key:d,value:d,style:i,activeStyle:a})}))},qF=wU;var KF=E(Ne()),na=E(N());var GF=E(Ne()),p0=E(N());var EU=function(t){var r=t.prefixCls,n=t.style,o=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=p0.useContext(po),u=c.direction,f=c.min,d=c.max,m=c.disabled,h=c.range,v=c.classNames,y="".concat(r,"-track"),g=u0(o,f,d),p=u0(i,f,d),x=function(C){!m&&s&&s(C,-1)},b={};switch(u){case"rtl":b.right="".concat(g*100,"%"),b.width="".concat(p*100-g*100,"%");break;case"btt":b.bottom="".concat(g*100,"%"),b.height="".concat(p*100-g*100,"%");break;case"ttb":b.top="".concat(g*100,"%"),b.height="".concat(p*100-g*100,"%");break;default:b.left="".concat(g*100,"%"),b.width="".concat(p*100-g*100,"%")}var S=l||(0,GF.default)(y,_(_({},"".concat(y,"-").concat(a+1),a!==null&&h),"".concat(r,"-track-draggable"),s),v.track);return p0.createElement("div",{className:S,style:T(T({},b),n),onMouseDown:x,onTouchStart:x})},CE=EU;var RU=function(t){var r=t.prefixCls,n=t.style,o=t.values,i=t.startPoint,a=t.onStartMove,s=na.useContext(po),l=s.included,c=s.range,u=s.min,f=s.styles,d=s.classNames,m=na.useMemo(function(){if(!c){if(o.length===0)return[];var v=i??u,y=o[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var g=[],p=0;pOU&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var p,x=h[y],b=x+v,S=[];n.forEach(function(O){S.push(O.value)}),S.push(e,t),S.push(s(x));var w=v>0?1:-1;g==="unit"?S.push(s(x+w*r)):S.push(s(b)),S=S.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=x:O>=x}),g==="unit"&&(S=S.filter(function(O){return O!==x}));var C=g==="unit"?x:b;p=S[0];var R=Math.abs(p-C);if(S.forEach(function(O){var I=Math.abs(O-C);I1){var P=ne(h);return P[y]=p,m(P,v-w,y,g)}return p}else{if(v==="min")return e;if(v==="max")return t}},u=function(h,v,y){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",p=h[y],x=c(h,v,y,g);return{value:x,changed:x!==p}},f=function(h){return i===null&&h===0||typeof i=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",p=h.map(l),x=p[y],b=c(p,v,y,g);if(p[y]=b,o===!1){var S=i||0;y>0&&p[y-1]!==x&&(p[y]=Math.max(p[y],p[y-1]+S)),y0;P-=1)for(var O=!0;f(p[P]-p[P-1])&&O;){var I=u(p,-1,P-1);p[P-1]=I.value,O=I.changed}for(var D=p.length-1;D>0;D-=1)for(var $=!0;f(p[D]-p[D-1])&&$;){var L=u(p,-1,D-1);p[D-1]=L.value,$=L.changed}for(var A=0;A=0?W:!1},[W,Fe]),Re=It.useMemo(function(){return Object.keys(Q||{}).map(function(De){var ye=Q[De],rt={value:Number(De)};return ye&&ce(ye)==="object"&&!It.isValidElement(ye)&&("label"in ye||"style"in ye)?(rt.style=ye.style,rt.label=ye.label):rt.label=ye,rt}).filter(function(De){var ye=De.label;return ye||typeof ye=="number"}).sort(function(De,ye){return De.value-ye.value})},[Q]),ae=wE(Se,Be,Fe,Re,A,Ue),ge=F(ae,2),Te=ge[0],he=ge[1],Ze=sr(C,{value:w}),ct=F(Ze,2),_t=ct[0],Pt=ct[1],mt=It.useMemo(function(){var De=_t==null?[]:Array.isArray(_t)?_t:[_t],ye=F(De,1),rt=ye[0],Nt=rt===void 0?Se:rt,Mt=_t===null?[]:[Nt];if(Y){if(Mt=ne(De),P||_t===void 0){var pn=P>=0?P+1:2;for(Mt=Mt.slice(0,pn);Mt.length=0&&ue.current.focus(De)}Dt(null)},[kt]);var Ft=It.useMemo(function(){return $e&&Fe===null?!1:$e},[$e,Fe]),Tr=wt(function(De,ye){be(De,ye),I?.(je(mt))}),nr=xe!==-1;It.useEffect(function(){if(!nr){var De=mt.lastIndexOf(nt);ue.current.focus(De)}},[nr]);var xr=It.useMemo(function(){return ne(Ie).sort(function(De,ye){return De-ye})},[Ie]),wn=It.useMemo(function(){return Y?[xr[0],xr[xr.length-1]]:[Se,xr[0]]},[xr,Y,Se]),Qt=F(wn,2),Lt=Qt[0],Ae=Qt[1];It.useImperativeHandle(t,function(){return{focus:function(){ue.current.focus(0)},blur:function(){var ye,rt=document,Nt=rt.activeElement;(ye=Ce.current)!==null&&ye!==void 0&&ye.contains(Nt)&&Nt?.blur()}}}),It.useEffect(function(){m&&ue.current.focus(0)},[]);var We=It.useMemo(function(){return{min:Se,max:Be,direction:we,disabled:u,keyboard:d,step:Fe,included:V,includedStart:Lt,includedEnd:Ae,range:Y,tabIndex:re,ariaLabelForHandle:ee,ariaLabelledByForHandle:te,ariaRequired:de,ariaValueTextFormatterForHandle:fe,styles:s||{},classNames:a||{}}},[Se,Be,we,u,d,Fe,V,Lt,Ae,Y,re,ee,te,de,fe,s,a]);return It.createElement(po.Provider,{value:We},It.createElement("div",{ref:Ce,className:(0,RE.default)(n,o,_(_(_(_({},"".concat(n,"-disabled"),u),"".concat(n,"-vertical"),K),"".concat(n,"-horizontal"),!K),"".concat(n,"-with-marks"),Re.length)),style:i,onMouseDown:Le,id:l},It.createElement("div",{className:(0,RE.default)("".concat(n,"-rail"),a?.rail),style:T(T({},z),s?.rail)}),q!==!1&&It.createElement(XF,{prefixCls:n,style:j,values:mt,startPoint:H,onStartMove:Ft?Tr:void 0}),It.createElement(qF,{prefixCls:n,marks:Re,dots:X,style:U,activeStyle:oe}),It.createElement(WF,{ref:ue,prefixCls:n,style:k,values:Ie,draggingIndex:xe,draggingDelete:Tt,onStartMove:Tr,onOffsetChange:rr,onFocus:h,onBlur:v,handleRender:se,activeHandleRender:Z,onChangeComplete:qe,onDelete:Ee?Oe:void 0}),It.createElement(VF,{prefixCls:n,marks:Re,onClick:Ke})))}),ZF=PU;var eL=ZF;var oa=E(N()),Ku=E(Ne());var tL=E(N()),TU=(0,tL.createContext)({}),rL=TU;var qu=E(N()),OE=E(N());var NU=qu.forwardRef((e,t)=>{let{open:r,draggingDelete:n,value:o}=e,i=(0,OE.useRef)(null),a=r&&!n,s=(0,OE.useRef)(null);function l(){dt.cancel(s.current),s.current=null}function c(){s.current=dt(()=>{var u;(u=i.current)===null||u===void 0||u.forceAlign(),s.current=null})}return qu.useEffect(()=>(a?c():l(),l),[a,e.title,o]),qu.createElement(Fa,Object.assign({ref:zr(i,t)},e,{open:a}))}),_E=NU;var IU=e=>{let{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:d,handleActiveOutlineColor:m,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{position:"relative",height:n,margin:`${ie(a)} ${ie(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ie(i)} ${ie(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ie(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ie(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${y}, inset-block-start ${y}, width ${y}, height ${y}, box-shadow ${y}, outline ${y} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),width:c(f).add(c(v).mul(2)).equal(),height:c(f).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${oe(v)} ${d}`,outline:`6px solid ${m}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${oe(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(v).mul(-1).equal(),width:c(f).add(c(v).mul(2)).equal(),height:c(f).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ie(v)} ${d}`,outline:`6px solid ${m}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${ie(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${oe(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` + `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${ie(h)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},rL=(e,t)=>{let{componentCls:r,railSize:n,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",m=s(n).mul(3).sub(o).div(2).equal(),h=s(o).sub(n).div(2).equal(),v=t?{borderWidth:`${oe(h)} 0`,transform:`translateY(${oe(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${oe(h)}`,transform:`translateX(${oe(e.calc(h).mul(-1).equal())})`};return{[l]:n,[u]:s(n).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[u]:n},[`${r}-track,${r}-tracks`]:{[u]:n},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[f]:m},[`${r}-mark`]:{insetInlineStart:0,top:0,[d]:s(n).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[d]:n,[c]:"100%",[u]:n},[`${r}-dot`]:{position:"absolute",[f]:s(n).sub(i).div(2).equal()}}},IU=e=>{let{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},rL(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},DU=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},rL(e,!1)),{height:"100%"})}},$U=e=>{let r=e.controlHeightLG/4,n=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new gt(a).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new gt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},nL=Gt("Slider",e=>{let t=ut(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[NU(t),IU(t),DU(t)]},$U);var Gu=E(N());function mp(){let[e,t]=Gu.useState(!1),r=Gu.useRef(null),n=()=>{dt.cancel(r.current)},o=i=>{n(),i?t(i):r.current=dt(()=>{t(i)})};return Gu.useEffect(()=>n,[]),[e,o]}var AU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);otypeof r=="number"?r.toString():""}var MU=na.default.forwardRef((e,t)=>{let{prefixCls:r,range:n,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:d,tooltip:m={},onChangeComplete:h,classNames:v,styles:y}=e,g=AU(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:p}=e,{getPrefixCls:x,direction:b,className:S,style:w,classNames:C,styles:R,getPopupContainer:P}=oo("slider"),O=na.default.useContext(qr),I=s??O,{handleRender:D,direction:$}=na.default.useContext(tL),k=($||b)==="rtl",[z,B]=mp(),[j,G]=mp(),V=Object.assign({},m),{open:H,placement:K,getPopupContainer:W,prefixCls:A,formatter:L}=V,q=H??u,ne=(z||j)&&q!==!1,Y=kU(L,c),[X,ae]=mp(),J=ie=>{h?.(ie),ae(!1)},U=(ie,Re)=>ie||(Re?k?"left":"right":"top"),Q=x("slider",r),[te,Z,re]=nL(Q),de=(0,Ku.default)(o,S,C.root,v?.root,i,{[`${Q}-rtl`]:k,[`${Q}-lock`]:X},Z,re);k&&!g.vertical&&(g.reverse=!g.reverse),na.default.useEffect(()=>{let ie=()=>{dt(()=>{G(!1)},1)};return document.addEventListener("mouseup",ie),()=>{document.removeEventListener("mouseup",ie)}},[]);let le=n&&!q,pe=D||((ie,Re)=>{let{index:Le}=Re,Ge=ie.props;function Me(He,ye,se){var xe,_e,he,Ze;se&&((_e=(xe=g)[He])===null||_e===void 0||_e.call(xe,ye)),(Ze=(he=Ge)[He])===null||Ze===void 0||Ze.call(he,ye)}let Ie=Object.assign(Object.assign({},Ge),{onMouseEnter:He=>{B(!0),Me("onMouseEnter",He)},onMouseLeave:He=>{B(!1),Me("onMouseLeave",He)},onMouseDown:He=>{G(!0),ae(!0),Me("onMouseDown",He)},onFocus:He=>{var ye;G(!0),(ye=g.onFocus)===null||ye===void 0||ye.call(g,He),Me("onFocus",He,!0)},onBlur:He=>{var ye;G(!1),(ye=g.onBlur)===null||ye===void 0||ye.call(g,He),Me("onBlur",He,!0)}}),je=na.default.cloneElement(ie,Ie),We=(!!q||ne)&&Y!==null;return le?je:na.default.createElement(RE,Object.assign({},V,{prefixCls:x("tooltip",A??l),title:Y?Y(Re.value):"",value:Re.value,open:We,placement:U(K??d,p),key:Le,classNames:{root:`${Q}-tooltip`},getPopupContainer:W||f||P}),je)}),Oe=le?(ie,Re)=>{let Le=na.default.cloneElement(ie,{style:Object.assign(Object.assign({},ie.props.style),{visibility:"hidden"})});return na.default.createElement(RE,Object.assign({},V,{prefixCls:x("tooltip",A??l),title:Y?Y(Re.value):"",open:Y!==null&&ne,placement:U(K??d,p),key:"tooltip",classNames:{root:`${Q}-tooltip`},getPopupContainer:W||f||P,draggingDelete:Re.draggingDelete}),Le)}:void 0,Ce=Object.assign(Object.assign(Object.assign(Object.assign({},R.root),w),y?.root),a),$e=Object.assign(Object.assign({},R.tracks),y?.tracks),ce=(0,Ku.default)(C.tracks,v?.tracks);return te(na.default.createElement(ZF,Object.assign({},g,{classNames:Object.assign({handle:(0,Ku.default)(C.handle,v?.handle),rail:(0,Ku.default)(C.rail,v?.rail),track:(0,Ku.default)(C.track,v?.track)},ce?{tracks:ce}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},R.handle),y?.handle),rail:Object.assign(Object.assign({},R.rail),y?.rail),track:Object.assign(Object.assign({},R.track),y?.track)},Object.keys($e).length?{tracks:$e}:{}),step:g.step,range:n,className:de,style:Ce,disabled:I,ref:t,prefixCls:Q,handleRender:pe,activeHandleRender:Oe,onChangeComplete:J})))}),OE=MU;function _E(e){return["small","middle","large"].includes(e)}var p0=E(N()),sL=E(Ne());var oL=E(Ne()),PE=["wrap","nowrap","wrap-reverse"],TE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],NE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],FU=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&PE.includes(r)}},LU=(e,t)=>{let r={};return NE.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},zU=(e,t)=>{let r={};return TE.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function WU(e,t){return(0,oL.default)(Object.assign(Object.assign(Object.assign({},FU(e,t)),LU(e,t)),zU(e,t)))}var iL=WU;var BU=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},jU=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},VU=e=>{let{componentCls:t}=e,r={};return PE.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},HU=e=>{let{componentCls:t}=e,r={};return NE.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},UU=e=>{let{componentCls:t}=e,r={};return TE.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},qU=()=>({}),aL=Gt("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:n}=e,o=ut(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[BU(o),jU(o),VU(o),HU(o),UU(o)]},qU,{resetStyle:!1});var GU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,rootClassName:n,className:o,style:i,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=GU(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:m,getPrefixCls:h}=p0.default.useContext(rt),v=h("flex",r),[y,g,p]=aL(v),x=c??d?.vertical,b=(0,sL.default)(o,n,d?.className,v,g,p,iL(v,e),{[`${v}-rtl`]:m==="rtl",[`${v}-gap-${s}`]:_E(s),[`${v}-vertical`]:x}),S=Object.assign(Object.assign({},d?.style),i);return a&&(S.flex=a),s&&!_E(s)&&(S.gap=s),y(p0.default.createElement(u,Object.assign({ref:t,className:b,style:S},Kr(f,["justify","wrap","align"])),l))}),Ba=KU;var m0=E(N());var XU={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"},lL=XU;var YU=function(t,r){return m0.createElement(zt,ue({},t,{ref:r,icon:lL}))},QU=m0.forwardRef(YU),g0=QU;var IE=E(N()),gp=E(N()),cL=E(Ne());var JU=e=>{let{getPrefixCls:t,direction:r}=(0,gp.useContext)(rt),{prefixCls:n,className:o}=e,i=t("input-group",n),a=t("input"),[s,l,c]=Xy(a),u=(0,cL.default)(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},l,o),f=(0,gp.useContext)(pn),d=(0,gp.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(IE.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},IE.createElement(pn.Provider,{value:d},e.children)))},uL=JU;var dr=E(N()),mL=E(Ne());var ZU=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:"var(--ant-color-text)"},[`${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}}}},fL=Gt(["Input","OTP"],e=>{let t=ut(e,Fa(e));return[ZU(t)]},La);var si=E(N()),dL=E(Ne());var eq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{className:r,value:n,onChange:o,onActiveChange:i,index:a,mask:s}=e,l=eq(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=si.useContext(rt),u=c("otp"),f=typeof s=="string"?s:n,d=si.useRef(null);si.useImperativeHandle(t,()=>d.current);let m=g=>{o(a,g.target.value)},h=()=>{dt(()=>{var g;let p=(g=d.current)===null||g===void 0?void 0:g.input;document.activeElement===p&&p&&p.select()})},v=g=>{let{key:p,ctrlKey:x,metaKey:b}=g;p==="ArrowLeft"?i(a-1):p==="ArrowRight"?i(a+1):p==="z"&&(x||b)&&g.preventDefault(),h()},y=g=>{g.key==="Backspace"&&!n&&i(a-1),h()};return si.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&si.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),si.createElement(Ks,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:d,value:n,onInput:m,onFocus:h,onKeyDown:v,onKeyUp:y,onMouseDown:h,onMouseUp:h,className:(0,dL.default)(r,{[`${u}-mask-input`]:s})})))}),pL=tq;var rq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{index:t,prefixCls:r,separator:n}=e,o=typeof n=="function"?n(t):n;return o?dr.createElement("span",{className:`${r}-separator`},o):null},oq=dr.forwardRef((e,t)=>{let{prefixCls:r,length:n=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:d,autoFocus:m,mask:h,type:v,onInput:y,inputMode:g}=e,p=rq(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:b}=dr.useContext(rt),S=x("otp",r),w=Go(p,{aria:!0,data:!0,attr:!0}),[C,R,P]=fL(S),O=so(A=>o??A),I=dr.useContext(pn),D=Ji(I.status,d),$=dr.useMemo(()=>Object.assign(Object.assign({},I),{status:D,hasFeedback:!1,feedbackIcon:null}),[I,D]),F=dr.useRef(null),k=dr.useRef({});dr.useImperativeHandle(t,()=>({focus:()=>{var A;(A=k.current[0])===null||A===void 0||A.focus()},blur:()=>{var A;for(let L=0;Ll?l(A):A,[B,j]=dr.useState(()=>h0(z(i||"")));dr.useEffect(()=>{a!==void 0&&j(h0(a))},[a]);let G=wt(A=>{j(A),y&&y(A),s&&A.length===n&&A.every(L=>L)&&A.some((L,q)=>B[q]!==L)&&s(A.join(""))}),V=wt((A,L)=>{let q=ee(B);for(let Y=0;Y=0&&!q[Y];Y-=1)q.pop();let ne=z(q.map(Y=>Y||" ").join(""));return q=h0(ne).map((Y,X)=>Y===" "&&!q[X]?q[X]:Y),q}),H=(A,L)=>{var q;let ne=V(A,L),Y=Math.min(A+L.length,n-1);Y!==A&&ne[A]!==void 0&&((q=k.current[Y])===null||q===void 0||q.focus()),G(ne)},K=A=>{var L;(L=k.current[A])===null||L===void 0||L.focus()},W={variant:u,disabled:f,status:D,mask:h,type:v,inputMode:g};return C(dr.createElement("div",Object.assign({},w,{ref:F,className:(0,mL.default)(S,{[`${S}-sm`]:O==="small",[`${S}-lg`]:O==="large",[`${S}-rtl`]:b==="rtl"},P,R),role:"group"}),dr.createElement(pn.Provider,{value:$},Array.from({length:n}).map((A,L)=>{let q=`otp-${L}`,ne=B[L]||"";return dr.createElement(dr.Fragment,{key:q},dr.createElement(pL,Object.assign({ref:Y=>{k.current[L]=Y},index:L,size:O,htmlSize:1,className:`${S}-input`,onChange:H,value:ne,onActiveChange:K,autoFocus:L===0&&m},W)),Le?$n.createElement(g0,null):$n.createElement(vL,null),uq={click:"onClick",hover:"onMouseOver"},fq=$n.forwardRef((e,t)=>{let{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:i=cq}=e,a=$n.useContext(qr),s=r??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=(0,y0.useState)(()=>l?o.visible:!1),f=(0,y0.useRef)(null);$n.useEffect(()=>{l&&u(o.visible)},[l,o]);let d=pp(f),m=()=>{var O;if(s)return;c&&d();let I=!c;u(I),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,I))},h=O=>{let I=uq[n]||"",D=i(c),$={[I]:m,className:`${O}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault()},onMouseUp:F=>{F.preventDefault()}};return $n.cloneElement($n.isValidElement(D)?D:$n.createElement("span",null,D),$)},{className:v,prefixCls:y,inputPrefixCls:g,size:p}=e,x=lq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=$n.useContext(rt),S=b("input",g),w=b("input-password",y),C=o&&h(w),R=(0,yL.default)(w,v,{[`${w}-${p}`]:!!p}),P=Object.assign(Object.assign({},Kr(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:S,suffix:C});return p&&(P.size=p),$n.createElement(Ks,Object.assign({ref:zr(t,f)},P))}),xL=fq;var Di=E(N());var bL=E(Ne());var dq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,inputPrefixCls:n,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:m,onCompositionEnd:h,variant:v,onPressEnter:y}=e,g=dq(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:p,direction:x}=Di.useContext(rt),b=Di.useRef(!1),S=p("input-search",r),w=p("input",n),{compactSize:C}=Yo(S,x),R=so(W=>{var A;return(A=i??C)!==null&&A!==void 0?A:W}),P=Di.useRef(null),O=W=>{W?.target&&W.type==="click"&&f&&f(W.target.value,W,{source:"clear"}),d?.(W)},I=W=>{var A;document.activeElement===((A=P.current)===null||A===void 0?void 0:A.input)&&W.preventDefault()},D=W=>{var A,L;f&&f((L=(A=P.current)===null||A===void 0?void 0:A.input)===null||L===void 0?void 0:L.value,W,{source:"input"})},$=W=>{b.current||c||(y?.(W),D(W))},F=typeof s=="boolean"?Di.createElement(ky,null):null,k=`${S}-button`,z,B=s||{},j=B.type&&B.type.__ANT_BUTTON===!0;j||B.type==="button"?z=Ko(B,Object.assign({onMouseDown:I,onClick:W=>{var A,L;(L=(A=B?.props)===null||A===void 0?void 0:A.onClick)===null||L===void 0||L.call(A,W),D(W)},key:"enterButton"},j?{className:k,size:R}:{})):z=Di.createElement(Bd,{className:k,color:s?"primary":"default",size:R,disabled:u,key:"enterButton",onMouseDown:I,onClick:D,loading:c,icon:F,variant:v==="borderless"||v==="filled"||v==="underlined"?"text":s?"solid":void 0},s),l&&(z=[z,Ko(l,{key:"addonAfter"})]);let G=(0,bL.default)(S,{[`${S}-rtl`]:x==="rtl",[`${S}-${R}`]:!!R,[`${S}-with-button`]:!!s},o),V=W=>{b.current=!0,m?.(W)},H=W=>{b.current=!1,h?.(W)},K=Object.assign(Object.assign({},g),{className:G,prefixCls:w,type:"search",size:R,variant:v,onPressEnter:$,onCompositionStart:V,onCompositionEnd:H,addonAfter:z,suffix:a,onChange:O,disabled:u});return Di.createElement(Ks,Object.assign({ref:zr(P,t)},K))}),SL=pq;var No=E(N()),OL=E(N()),vp=E(Ne());var hp=E(Ne());var Zr=E(N());var CL=E(Ne());var wn=E(N());var mq=` + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},nL=(e,t)=>{let{componentCls:r,railSize:n,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",m=s(n).mul(3).sub(o).div(2).equal(),h=s(o).sub(n).div(2).equal(),v=t?{borderWidth:`${ie(h)} 0`,transform:`translateY(${ie(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${ie(h)}`,transform:`translateX(${ie(e.calc(h).mul(-1).equal())})`};return{[l]:n,[u]:s(n).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[u]:n},[`${r}-track,${r}-tracks`]:{[u]:n},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[f]:m},[`${r}-mark`]:{insetInlineStart:0,top:0,[d]:s(n).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[d]:n,[c]:"100%",[u]:n},[`${r}-dot`]:{position:"absolute",[f]:s(n).sub(i).div(2).equal()}}},DU=e=>{let{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},nL(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},$U=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},nL(e,!1)),{height:"100%"})}},AU=e=>{let r=e.controlHeightLG/4,n=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new ht(a).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new ht(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},oL=Gt("Slider",e=>{let t=ft(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[IU(t),DU(t),$U(t)]},AU);var Gu=E(N());function gp(){let[e,t]=Gu.useState(!1),r=Gu.useRef(null),n=()=>{dt.cancel(r.current)},o=i=>{n(),i?t(i):r.current=dt(()=>{t(i)})};return Gu.useEffect(()=>n,[]),[e,o]}var kU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);otypeof r=="number"?r.toString():""}var FU=oa.default.forwardRef((e,t)=>{let{prefixCls:r,range:n,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:d,tooltip:m={},onChangeComplete:h,classNames:v,styles:y}=e,g=kU(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:p}=e,{getPrefixCls:x,direction:b,className:S,style:w,classNames:C,styles:R,getPopupContainer:P}=oo("slider"),O=oa.default.useContext(Hr),I=s??O,{handleRender:D,direction:$}=oa.default.useContext(rL),A=($||b)==="rtl",[M,W]=gp(),[B,K]=gp(),G=Object.assign({},m),{open:V,placement:H,getPopupContainer:j,prefixCls:k,formatter:z}=G,U=V??u,oe=(M||B)&&U!==!1,Q=MU(z,c),[X,se]=gp(),Z=Y=>{h?.(Y),se(!1)},q=(Y,Ee)=>Y||(Ee?A?"left":"right":"top"),J=x("slider",r),[re,ee,te]=oL(J),de=(0,Ku.default)(o,S,C.root,v?.root,i,{[`${J}-rtl`]:A,[`${J}-lock`]:X},ee,te);A&&!g.vertical&&(g.reverse=!g.reverse),oa.default.useEffect(()=>{let Y=()=>{dt(()=>{K(!1)},1)};return document.addEventListener("mouseup",Y),()=>{document.removeEventListener("mouseup",Y)}},[]);let fe=n&&!U,ue=D||((Y,Ee)=>{let{index:$e}=Ee,et=Y.props;function ke(Ue,Re,ae){var ge,Te,he,Ze;ae&&((Te=(ge=g)[Ue])===null||Te===void 0||Te.call(ge,Re)),(Ze=(he=et)[Ue])===null||Ze===void 0||Ze.call(he,Re)}let Se=Object.assign(Object.assign({},et),{onMouseEnter:Ue=>{W(!0),ke("onMouseEnter",Ue)},onMouseLeave:Ue=>{W(!1),ke("onMouseLeave",Ue)},onMouseDown:Ue=>{K(!0),se(!0),ke("onMouseDown",Ue)},onFocus:Ue=>{var Re;K(!0),(Re=g.onFocus)===null||Re===void 0||Re.call(g,Ue),ke("onFocus",Ue,!0)},onBlur:Ue=>{var Re;K(!1),(Re=g.onBlur)===null||Re===void 0||Re.call(g,Ue),ke("onBlur",Ue,!0)}}),Be=oa.default.cloneElement(Y,Se),Fe=(!!U||oe)&&Q!==null;return fe?Be:oa.default.createElement(_E,Object.assign({},G,{prefixCls:x("tooltip",k??l),title:Q?Q(Ee.value):"",value:Ee.value,open:Fe,placement:q(H??d,p),key:$e,classNames:{root:`${J}-tooltip`},getPopupContainer:j||f||P}),Be)}),Ce=fe?(Y,Ee)=>{let $e=oa.default.cloneElement(Y,{style:Object.assign(Object.assign({},Y.props.style),{visibility:"hidden"})});return oa.default.createElement(_E,Object.assign({},G,{prefixCls:x("tooltip",k??l),title:Q?Q(Ee.value):"",open:Q!==null&&oe,placement:q(H??d,p),key:"tooltip",classNames:{root:`${J}-tooltip`},getPopupContainer:j||f||P,draggingDelete:Ee.draggingDelete}),$e)}:void 0,we=Object.assign(Object.assign(Object.assign(Object.assign({},R.root),w),y?.root),a),_e=Object.assign(Object.assign({},R.tracks),y?.tracks),ve=(0,Ku.default)(C.tracks,v?.tracks);return re(oa.default.createElement(eL,Object.assign({},g,{classNames:Object.assign({handle:(0,Ku.default)(C.handle,v?.handle),rail:(0,Ku.default)(C.rail,v?.rail),track:(0,Ku.default)(C.track,v?.track)},ve?{tracks:ve}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},R.handle),y?.handle),rail:Object.assign(Object.assign({},R.rail),y?.rail),track:Object.assign(Object.assign({},R.track),y?.track)},Object.keys(_e).length?{tracks:_e}:{}),step:g.step,range:n,className:de,style:we,disabled:I,ref:t,prefixCls:J,handleRender:ue,activeHandleRender:Ce,onChangeComplete:Z})))}),PE=FU;function TE(e){return["small","middle","large"].includes(e)}var g0=E(N()),lL=E(Ne());var iL=E(Ne()),NE=["wrap","nowrap","wrap-reverse"],IE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],DE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],LU=(e,t)=>{let r=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${r}`]:r&&NE.includes(r)}},zU=(e,t)=>{let r={};return DE.forEach(n=>{r[`${e}-align-${n}`]=t.align===n}),r[`${e}-align-stretch`]=!t.align&&!!t.vertical,r},WU=(e,t)=>{let r={};return IE.forEach(n=>{r[`${e}-justify-${n}`]=t.justify===n}),r};function BU(e,t){return(0,iL.default)(Object.assign(Object.assign(Object.assign({},LU(e,t)),zU(e,t)),WU(e,t)))}var aL=BU;var jU=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},VU=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},HU=e=>{let{componentCls:t}=e,r={};return NE.forEach(n=>{r[`${t}-wrap-${n}`]={flexWrap:n}}),r},UU=e=>{let{componentCls:t}=e,r={};return DE.forEach(n=>{r[`${t}-align-${n}`]={alignItems:n}}),r},qU=e=>{let{componentCls:t}=e,r={};return IE.forEach(n=>{r[`${t}-justify-${n}`]={justifyContent:n}}),r},GU=()=>({}),sL=Gt("Flex",e=>{let{paddingXS:t,padding:r,paddingLG:n}=e,o=ft(e,{flexGapSM:t,flexGap:r,flexGapLG:n});return[jU(o),VU(o),HU(o),UU(o),qU(o)]},GU,{resetStyle:!1});var KU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,rootClassName:n,className:o,style:i,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,f=KU(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:d,direction:m,getPrefixCls:h}=g0.default.useContext(ot),v=h("flex",r),[y,g,p]=sL(v),x=c??d?.vertical,b=(0,lL.default)(o,n,d?.className,v,g,p,aL(v,e),{[`${v}-rtl`]:m==="rtl",[`${v}-gap-${s}`]:TE(s),[`${v}-vertical`]:x}),S=Object.assign(Object.assign({},d?.style),i);return a&&(S.flex=a),s&&!TE(s)&&(S.gap=s),y(g0.default.createElement(u,Object.assign({ref:t,className:b,style:S},qr(f,["justify","wrap","align"])),l))}),ja=XU;var h0=E(N());var YU={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"},cL=YU;var QU=function(t,r){return h0.createElement(zt,le({},t,{ref:r,icon:cL}))},JU=h0.forwardRef(QU),v0=JU;var $E=E(N()),hp=E(N()),uL=E(Ne());var ZU=e=>{let{getPrefixCls:t,direction:r}=(0,hp.useContext)(ot),{prefixCls:n,className:o}=e,i=t("input-group",n),a=t("input"),[s,l,c]=Qy(a),u=(0,uL.default)(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},l,o),f=(0,hp.useContext)(fn),d=(0,hp.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s($E.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},$E.createElement(fn.Provider,{value:d},e.children)))},fL=ZU;var pr=E(N()),gL=E(Ne());var eq=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:"var(--ant-color-text)"},[`${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}}}},dL=Gt(["Input","OTP"],e=>{let t=ft(e,La(e));return[eq(t)]},za);var ai=E(N()),pL=E(Ne());var tq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{className:r,value:n,onChange:o,onActiveChange:i,index:a,mask:s}=e,l=tq(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=ai.useContext(ot),u=c("otp"),f=typeof s=="string"?s:n,d=ai.useRef(null);ai.useImperativeHandle(t,()=>d.current);let m=g=>{o(a,g.target.value)},h=()=>{dt(()=>{var g;let p=(g=d.current)===null||g===void 0?void 0:g.input;document.activeElement===p&&p&&p.select()})},v=g=>{let{key:p,ctrlKey:x,metaKey:b}=g;p==="ArrowLeft"?i(a-1):p==="ArrowRight"?i(a+1):p==="z"&&(x||b)&&g.preventDefault(),h()},y=g=>{g.key==="Backspace"&&!n&&i(a-1),h()};return ai.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&ai.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),ai.createElement(Ks,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:d,value:n,onInput:m,onFocus:h,onKeyDown:v,onKeyUp:y,onMouseDown:h,onMouseUp:h,className:(0,pL.default)(r,{[`${u}-mask-input`]:s})})))}),mL=rq;var nq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{index:t,prefixCls:r,separator:n}=e,o=typeof n=="function"?n(t):n;return o?pr.createElement("span",{className:`${r}-separator`},o):null},iq=pr.forwardRef((e,t)=>{let{prefixCls:r,length:n=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:d,autoFocus:m,mask:h,type:v,onInput:y,inputMode:g}=e,p=nq(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:b}=pr.useContext(ot),S=x("otp",r),w=qo(p,{aria:!0,data:!0,attr:!0}),[C,R,P]=dL(S),O=so(k=>o??k),I=pr.useContext(fn),D=Zi(I.status,d),$=pr.useMemo(()=>Object.assign(Object.assign({},I),{status:D,hasFeedback:!1,feedbackIcon:null}),[I,D]),L=pr.useRef(null),A=pr.useRef({});pr.useImperativeHandle(t,()=>({focus:()=>{var k;(k=A.current[0])===null||k===void 0||k.focus()},blur:()=>{var k;for(let z=0;zl?l(k):k,[W,B]=pr.useState(()=>y0(M(i||"")));pr.useEffect(()=>{a!==void 0&&B(y0(a))},[a]);let K=wt(k=>{B(k),y&&y(k),s&&k.length===n&&k.every(z=>z)&&k.some((z,U)=>W[U]!==z)&&s(k.join(""))}),G=wt((k,z)=>{let U=ne(W);for(let Q=0;Q=0&&!U[Q];Q-=1)U.pop();let oe=M(U.map(Q=>Q||" ").join(""));return U=y0(oe).map((Q,X)=>Q===" "&&!U[X]?U[X]:Q),U}),V=(k,z)=>{var U;let oe=G(k,z),Q=Math.min(k+z.length,n-1);Q!==k&&oe[k]!==void 0&&((U=A.current[Q])===null||U===void 0||U.focus()),K(oe)},H=k=>{var z;(z=A.current[k])===null||z===void 0||z.focus()},j={variant:u,disabled:f,status:D,mask:h,type:v,inputMode:g};return C(pr.createElement("div",Object.assign({},w,{ref:L,className:(0,gL.default)(S,{[`${S}-sm`]:O==="small",[`${S}-lg`]:O==="large",[`${S}-rtl`]:b==="rtl"},P,R),role:"group"}),pr.createElement(fn.Provider,{value:$},Array.from({length:n}).map((k,z)=>{let U=`otp-${z}`,oe=W[z]||"";return pr.createElement(pr.Fragment,{key:U},pr.createElement(mL,Object.assign({ref:Q=>{A.current[z]=Q},index:z,size:O,htmlSize:1,className:`${S}-input`,onChange:V,value:oe,onActiveChange:H,autoFocus:z===0&&m},j)),ze?kn.createElement(v0,null):kn.createElement(yL,null),fq={click:"onClick",hover:"onMouseOver"},dq=kn.forwardRef((e,t)=>{let{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:i=uq}=e,a=kn.useContext(Hr),s=r??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=(0,b0.useState)(()=>l?o.visible:!1),f=(0,b0.useRef)(null);kn.useEffect(()=>{l&&u(o.visible)},[l,o]);let d=mp(f),m=()=>{var O;if(s)return;c&&d();let I=!c;u(I),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,I))},h=O=>{let I=fq[n]||"",D=i(c),$={[I]:m,className:`${O}-icon`,key:"passwordIcon",onMouseDown:L=>{L.preventDefault()},onMouseUp:L=>{L.preventDefault()}};return kn.cloneElement(kn.isValidElement(D)?D:kn.createElement("span",null,D),$)},{className:v,prefixCls:y,inputPrefixCls:g,size:p}=e,x=cq(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=kn.useContext(ot),S=b("input",g),w=b("input-password",y),C=o&&h(w),R=(0,xL.default)(w,v,{[`${w}-${p}`]:!!p}),P=Object.assign(Object.assign({},qr(x,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:R,prefixCls:S,suffix:C});return p&&(P.size=p),kn.createElement(Ks,Object.assign({ref:zr(t,f)},P))}),bL=dq;var Ii=E(N());var SL=E(Ne());var pq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let{prefixCls:r,inputPrefixCls:n,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:m,onCompositionEnd:h,variant:v,onPressEnter:y}=e,g=pq(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:p,direction:x}=Ii.useContext(ot),b=Ii.useRef(!1),S=p("input-search",r),w=p("input",n),{compactSize:C}=Xo(S,x),R=so(j=>{var k;return(k=i??C)!==null&&k!==void 0?k:j}),P=Ii.useRef(null),O=j=>{j?.target&&j.type==="click"&&f&&f(j.target.value,j,{source:"clear"}),d?.(j)},I=j=>{var k;document.activeElement===((k=P.current)===null||k===void 0?void 0:k.input)&&j.preventDefault()},D=j=>{var k,z;f&&f((z=(k=P.current)===null||k===void 0?void 0:k.input)===null||z===void 0?void 0:z.value,j,{source:"input"})},$=j=>{b.current||c||(y?.(j),D(j))},L=typeof s=="boolean"?Ii.createElement(Fy,null):null,A=`${S}-button`,M,W=s||{},B=W.type&&W.type.__ANT_BUTTON===!0;B||W.type==="button"?M=Go(W,Object.assign({onMouseDown:I,onClick:j=>{var k,z;(z=(k=W?.props)===null||k===void 0?void 0:k.onClick)===null||z===void 0||z.call(k,j),D(j)},key:"enterButton"},B?{className:A,size:R}:{})):M=Ii.createElement(jd,{className:A,color:s?"primary":"default",size:R,disabled:u,key:"enterButton",onMouseDown:I,onClick:D,loading:c,icon:L,variant:v==="borderless"||v==="filled"||v==="underlined"?"text":s?"solid":void 0},s),l&&(M=[M,Go(l,{key:"addonAfter"})]);let K=(0,SL.default)(S,{[`${S}-rtl`]:x==="rtl",[`${S}-${R}`]:!!R,[`${S}-with-button`]:!!s},o),G=j=>{b.current=!0,m?.(j)},V=j=>{b.current=!1,h?.(j)},H=Object.assign(Object.assign({},g),{className:K,prefixCls:w,type:"search",size:R,variant:v,onPressEnter:$,onCompositionStart:G,onCompositionEnd:V,addonAfter:M,suffix:a,onChange:O,disabled:u});return Ii.createElement(Ks,Object.assign({ref:zr(P,t)},H))}),CL=mq;var No=E(N()),_L=E(N()),yp=E(Ne());var vp=E(Ne());var Jr=E(N());var wL=E(Ne());var Cn=E(N());var gq=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -494,30 +494,30 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,gq=["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"],DE={},To;function hq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&DE[r])return DE[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=gq.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(DE[r]=l),l}function $E(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;To||(To=document.createElement("textarea"),To.setAttribute("tab-index","-1"),To.setAttribute("aria-hidden","true"),To.setAttribute("name","hiddenTextarea"),document.body.appendChild(To)),e.getAttribute("wrap")?To.setAttribute("wrap",e.getAttribute("wrap")):To.removeAttribute("wrap");var o=hq(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;To.setAttribute("style","".concat(l,";").concat(mq)),To.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=To.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),r!==null||n!==null){To.value=" ";var m=To.scrollHeight-i;r!==null&&(c=m*r,s==="border-box"&&(c=c+i+a),d=Math.max(c,d)),n!==null&&(u=m*n,s==="border-box"&&(u=u+i+a),f=d>u?"":"hidden",d=Math.min(u,d))}var h={height:d,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var vq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],AE=0,kE=1,ME=2,yq=wn.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange,d=r.onInternalAutoSize,m=Ve(r,vq),h=ar(o,{value:i,postState:function(L){return L??""}}),v=M(h,2),y=v[0],g=v[1],p=function(L){g(L.target.value),f?.(L)},x=wn.useRef();wn.useImperativeHandle(t,function(){return{textArea:x.current}});var b=wn.useMemo(function(){return a&&fe(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=M(b,2),w=S[0],C=S[1],R=!!a,P=function(){try{if(document.activeElement===x.current){var L=x.current,q=L.selectionStart,ne=L.selectionEnd,Y=L.scrollTop;x.current.setSelectionRange(q,ne),x.current.scrollTop=Y}}catch{}},O=wn.useState(ME),I=M(O,2),D=I[0],$=I[1],F=wn.useState(),k=M(F,2),z=k[0],B=k[1],j=function(){$(AE)};vt(function(){R&&j()},[i,w,C,R]),vt(function(){if(D===AE)$(kE);else if(D===kE){var A=$E(x.current,!1,w,C);$(ME),B(A)}else P()},[D]);var G=wn.useRef(),V=function(){dt.cancel(G.current)},H=function(L){D===ME&&(s?.(L),a&&(V(),G.current=dt(function(){j()})))};wn.useEffect(function(){return V},[]);var K=R?z:null,W=T(T({},c),K);return(D===AE||D===kE)&&(W.overflowY="hidden",W.overflowX="hidden"),wn.createElement(no,{onResize:H,disabled:!(a||s)},wn.createElement("textarea",ue({},m,{ref:x,style:W,className:(0,CL.default)(n,l,_({},"".concat(n,"-disabled"),u)),disabled:u,value:y,onChange:p})))}),FE=yq;var xq=["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"],bq=Zr.default.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,m=e.prefixCls,h=m===void 0?"rc-textarea":m,v=e.showCount,y=e.count,g=e.className,p=e.style,x=e.disabled,b=e.hidden,S=e.classNames,w=e.styles,C=e.onResize,R=e.onClear,P=e.onPressEnter,O=e.readOnly,I=e.autoSize,D=e.onKeyDown,$=Ve(e,xq),F=ar(n,{value:o,defaultValue:n}),k=M(F,2),z=k[0],B=k[1],j=z==null?"":String(z),G=Zr.default.useState(!1),V=M(G,2),H=V[0],K=V[1],W=Zr.default.useRef(!1),A=Zr.default.useState(null),L=M(A,2),q=L[0],ne=L[1],Y=(0,Zr.useRef)(null),X=(0,Zr.useRef)(null),ae=function(){var se;return(se=X.current)===null||se===void 0?void 0:se.textArea},J=function(){ae().focus()};(0,Zr.useImperativeHandle)(t,function(){var ye;return{resizableTextArea:X.current,focus:J,blur:function(){ae().blur()},nativeElement:((ye=Y.current)===null||ye===void 0?void 0:ye.nativeElement)||ae()}}),(0,Zr.useEffect)(function(){K(function(ye){return!x&&ye})},[x]);var U=Zr.default.useState(null),Q=M(U,2),te=Q[0],Z=Q[1];Zr.default.useEffect(function(){if(te){var ye;(ye=ae()).setSelectionRange.apply(ye,ee(te))}},[te]);var re=dp(y,v),de=(r=re.max)!==null&&r!==void 0?r:c,le=Number(de)>0,pe=re.strategy(j),Oe=!!de&&pe>de,Ce=function(se,xe){var _e=xe;!W.current&&re.exceedFormatter&&re.max&&re.strategy(xe)>re.max&&(_e=re.exceedFormatter(xe,{max:re.max}),xe!==_e&&Z([ae().selectionStart||0,ae().selectionEnd||0])),B(_e),Vu(se.currentTarget,se,s,_e)},$e=function(se){W.current=!0,u?.(se)},ce=function(se){W.current=!1,Ce(se,se.currentTarget.value),f?.(se)},ie=function(se){Ce(se,se.target.value)},Re=function(se){se.key==="Enter"&&P&&P(se),D?.(se)},Le=function(se){K(!0),i?.(se)},Ge=function(se){K(!1),a?.(se)},Me=function(se){B(""),J(),Vu(ae(),se,s)},Ie=d,je;re.show&&(re.showFormatter?je=re.showFormatter({value:j,count:pe,maxLength:de}):je="".concat(pe).concat(le?" / ".concat(de):""),Ie=Zr.default.createElement(Zr.default.Fragment,null,Ie,Zr.default.createElement("span",{className:(0,hp.default)("".concat(h,"-data-count"),S?.count),style:w?.count},je)));var We=function(se){var xe;C?.(se),(xe=ae())!==null&&xe!==void 0&&xe.style.height&&ne(!0)},He=!I&&!v&&!l;return Zr.default.createElement(Gl,{ref:Y,value:j,allowClear:l,handleReset:Me,suffix:Ie,prefixCls:h,classNames:T(T({},S),{},{affixWrapper:(0,hp.default)(S?.affixWrapper,_(_({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:H,className:(0,hp.default)(g,Oe&&"".concat(h,"-out-of-range")),style:T(T({},p),q&&!He?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof je=="string"?je:void 0}},hidden:b,readOnly:O,onClear:R},Zr.default.createElement(FE,ue({},$,{autoSize:I,maxLength:c,onKeyDown:Re,onChange:ie,onFocus:Le,onBlur:Ge,onCompositionStart:$e,onCompositionEnd:ce,className:(0,hp.default)(S?.textarea),style:T(T({},w?.textarea),{},{resize:p?.resize}),disabled:x,prefixCls:h,onResize:We,ref:X,readOnly:O})))}),wL=bq;var EL=wL;var Sq=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"}},[` +`,hq=["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"],AE={},To;function vq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&AE[r])return AE[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=hq.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(AE[r]=l),l}function kE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;To||(To=document.createElement("textarea"),To.setAttribute("tab-index","-1"),To.setAttribute("aria-hidden","true"),To.setAttribute("name","hiddenTextarea"),document.body.appendChild(To)),e.getAttribute("wrap")?To.setAttribute("wrap",e.getAttribute("wrap")):To.removeAttribute("wrap");var o=vq(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;To.setAttribute("style","".concat(l,";").concat(gq)),To.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=To.scrollHeight;if(s==="border-box"?d+=a:s==="content-box"&&(d-=i),r!==null||n!==null){To.value=" ";var m=To.scrollHeight-i;r!==null&&(c=m*r,s==="border-box"&&(c=c+i+a),d=Math.max(c,d)),n!==null&&(u=m*n,s==="border-box"&&(u=u+i+a),f=d>u?"":"hidden",d=Math.min(u,d))}var h={height:d,overflowY:f,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var yq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ME=0,FE=1,LE=2,xq=Cn.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange,d=r.onInternalAutoSize,m=He(r,yq),h=sr(o,{value:i,postState:function(z){return z??""}}),v=F(h,2),y=v[0],g=v[1],p=function(z){g(z.target.value),f?.(z)},x=Cn.useRef();Cn.useImperativeHandle(t,function(){return{textArea:x.current}});var b=Cn.useMemo(function(){return a&&ce(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=F(b,2),w=S[0],C=S[1],R=!!a,P=function(){try{if(document.activeElement===x.current){var z=x.current,U=z.selectionStart,oe=z.selectionEnd,Q=z.scrollTop;x.current.setSelectionRange(U,oe),x.current.scrollTop=Q}}catch{}},O=Cn.useState(LE),I=F(O,2),D=I[0],$=I[1],L=Cn.useState(),A=F(L,2),M=A[0],W=A[1],B=function(){$(ME)};yt(function(){R&&B()},[i,w,C,R]),yt(function(){if(D===ME)$(FE);else if(D===FE){var k=kE(x.current,!1,w,C);$(LE),W(k)}else P()},[D]);var K=Cn.useRef(),G=function(){dt.cancel(K.current)},V=function(z){D===LE&&(s?.(z),a&&(G(),K.current=dt(function(){B()})))};Cn.useEffect(function(){return G},[]);var H=R?M:null,j=T(T({},c),H);return(D===ME||D===FE)&&(j.overflowY="hidden",j.overflowX="hidden"),Cn.createElement(no,{onResize:V,disabled:!(a||s)},Cn.createElement("textarea",le({},m,{ref:x,style:j,className:(0,wL.default)(n,l,_({},"".concat(n,"-disabled"),u)),disabled:u,value:y,onChange:p})))}),zE=xq;var bq=["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"],Sq=Jr.default.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,m=e.prefixCls,h=m===void 0?"rc-textarea":m,v=e.showCount,y=e.count,g=e.className,p=e.style,x=e.disabled,b=e.hidden,S=e.classNames,w=e.styles,C=e.onResize,R=e.onClear,P=e.onPressEnter,O=e.readOnly,I=e.autoSize,D=e.onKeyDown,$=He(e,bq),L=sr(n,{value:o,defaultValue:n}),A=F(L,2),M=A[0],W=A[1],B=M==null?"":String(M),K=Jr.default.useState(!1),G=F(K,2),V=G[0],H=G[1],j=Jr.default.useRef(!1),k=Jr.default.useState(null),z=F(k,2),U=z[0],oe=z[1],Q=(0,Jr.useRef)(null),X=(0,Jr.useRef)(null),se=function(){var ae;return(ae=X.current)===null||ae===void 0?void 0:ae.textArea},Z=function(){se().focus()};(0,Jr.useImperativeHandle)(t,function(){var Re;return{resizableTextArea:X.current,focus:Z,blur:function(){se().blur()},nativeElement:((Re=Q.current)===null||Re===void 0?void 0:Re.nativeElement)||se()}}),(0,Jr.useEffect)(function(){H(function(Re){return!x&&Re})},[x]);var q=Jr.default.useState(null),J=F(q,2),re=J[0],ee=J[1];Jr.default.useEffect(function(){if(re){var Re;(Re=se()).setSelectionRange.apply(Re,ne(re))}},[re]);var te=pp(y,v),de=(r=te.max)!==null&&r!==void 0?r:c,fe=Number(de)>0,ue=te.strategy(B),Ce=!!de&&ue>de,we=function(ae,ge){var Te=ge;!j.current&&te.exceedFormatter&&te.max&&te.strategy(ge)>te.max&&(Te=te.exceedFormatter(ge,{max:te.max}),ge!==Te&&ee([se().selectionStart||0,se().selectionEnd||0])),W(Te),Vu(ae.currentTarget,ae,s,Te)},_e=function(ae){j.current=!0,u?.(ae)},ve=function(ae){j.current=!1,we(ae,ae.currentTarget.value),f?.(ae)},Y=function(ae){we(ae,ae.target.value)},Ee=function(ae){ae.key==="Enter"&&P&&P(ae),D?.(ae)},$e=function(ae){H(!0),i?.(ae)},et=function(ae){H(!1),a?.(ae)},ke=function(ae){W(""),Z(),Vu(se(),ae,s)},Se=d,Be;te.show&&(te.showFormatter?Be=te.showFormatter({value:B,count:ue,maxLength:de}):Be="".concat(ue).concat(fe?" / ".concat(de):""),Se=Jr.default.createElement(Jr.default.Fragment,null,Se,Jr.default.createElement("span",{className:(0,vp.default)("".concat(h,"-data-count"),S?.count),style:w?.count},Be)));var Fe=function(ae){var ge;C?.(ae),(ge=se())!==null&&ge!==void 0&&ge.style.height&&oe(!0)},Ue=!I&&!v&&!l;return Jr.default.createElement(Xl,{ref:Q,value:B,allowClear:l,handleReset:ke,suffix:Se,prefixCls:h,classNames:T(T({},S),{},{affixWrapper:(0,vp.default)(S?.affixWrapper,_(_({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),l))}),disabled:x,focused:V,className:(0,vp.default)(g,Ce&&"".concat(h,"-out-of-range")),style:T(T({},p),U&&!Ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Be=="string"?Be:void 0}},hidden:b,readOnly:O,onClear:R},Jr.default.createElement(zE,le({},$,{autoSize:I,maxLength:c,onKeyDown:Ee,onChange:Y,onFocus:$e,onBlur:et,onCompositionStart:_e,onCompositionEnd:ve,className:(0,vp.default)(S?.textarea),style:T(T({},w?.textarea),{},{resize:p?.resize}),disabled:x,prefixCls:h,onResize:Fe,ref:X,readOnly:O})))}),EL=Sq;var RL=EL;var Cq=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"}},[` &-allow-clear > ${t}, &-affix-wrapper${n}-has-feedback ${t} - `]:{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}}}}}},RL=Gt(["Input","TextArea"],e=>{let t=ut(e,Fa(e));return[Sq(t)]},La,{resetFont:!1});var Cq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;let{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:d,styles:m,variant:h,showCount:v,onMouseDown:y,onResize:g}=e,p=Cq(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:b,allowClear:S,autoComplete:w,className:C,style:R,classNames:P,styles:O}=oo("textArea"),I=No.useContext(qr),D=a??I,{status:$,hasFeedback:F,feedbackIcon:k}=No.useContext(pn),z=Ji($,s),B=No.useRef(null);No.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=B.current)===null||re===void 0?void 0:re.resizableTextArea,focus:de=>{var le,pe;ql((pe=(le=B.current)===null||le===void 0?void 0:le.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,de)},blur:()=>{var de;return(de=B.current)===null||de===void 0?void 0:de.blur()}}});let j=x("input",n),G=Xo(j),[V,H,K]=Ky(j,u),[W]=RL(j,G),{compactSize:A,compactItemClassnames:L}=Yo(j,b),q=so(re=>{var de;return(de=i??A)!==null&&de!==void 0?de:re}),[ne,Y]=Gs("textArea",h,o),X=a0(l??S),[ae,J]=No.useState(!1),[U,Q]=No.useState(!1),te=re=>{J(!0),y?.(re);let de=()=>{J(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},Z=re=>{var de,le;if(g?.(re),ae&&typeof getComputedStyle=="function"){let pe=(le=(de=B.current)===null||de===void 0?void 0:de.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&Q(!0)}};return V(W(No.createElement(EL,Object.assign({autoComplete:w},p,{style:Object.assign(Object.assign({},R),d),styles:Object.assign(Object.assign({},O),m),disabled:D,allowClear:X,className:(0,vp.default)(K,G,f,u,L,C,U&&`${j}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),P),{textarea:(0,vp.default)({[`${j}-sm`]:q==="small",[`${j}-lg`]:q==="large"},H,c?.textarea,P.textarea,ae&&`${j}-mouse-active`),variant:(0,vp.default)({[`${j}-${ne}`]:Y},Qi(j,z)),affixWrapper:(0,vp.default)(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:b==="rtl",[`${j}-affix-wrapper-sm`]:q==="small",[`${j}-affix-wrapper-lg`]:q==="large",[`${j}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},H)}),prefixCls:j,suffix:F&&No.createElement("span",{className:`${j}-textarea-suffix`},k),showCount:v,ref:B,onResize:Z,onMouseDown:te}))))}),_L=wq;var Xu=Ks;Xu.Group=uL;Xu.Search=SL;Xu.TextArea=_L;Xu.Password=xL;Xu.OTP=gL;var yp=Xu;var en=E(N());var VE=E(Ne());var Ju=E(N()),FL=E(Ne());var Eq=E(N()),Rq=E(Ne());var xp=E(N()),LE={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},zE=function(){var t=(0,xp.useRef)([]),r=(0,xp.useRef)(null);return(0,xp.useEffect)(function(){var n=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),t.current};var bp=E(N()),AL=E(Ne());var x0=E(N());var PL=0,Oq=Yt();function _q(){var e;return Oq?(e=PL,PL+=1):e="TEST_OR_SSR",e}var TL=function(e){var t=x0.useState(),r=M(t,2),n=r[0],o=r[1];return x0.useEffect(function(){o("rc_progress_".concat(_q()))},[]),e||n};var li=E(N()),NL=function(t){var r=t.bg,n=t.children;return li.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function IL(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)})}var Pq=li.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,d=n&&fe(n)==="object",m=d?"#FFF":void 0,h=u/2,v=li.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!d)return v;var y="".concat(o,"-conic"),g=f?"".concat(180+f/2,"deg"):"0deg",p=IL(n,(360-f)/360),x=IL(n,1),b="conic-gradient(from ".concat(g,", ").concat(p.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return li.createElement(li.Fragment,null,li.createElement("mask",{id:y},v),li.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},li.createElement(NL,{bg:S},li.createElement(NL,{bg:b}))))}),DL=Pq;var Yu=100,b0=function(t,r,n,o,i,a,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=n/100*360*((360-a)/360),m=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*r;c==="round"&&o!==100&&(h+=u/2,h>=r&&(h=r-.01));var v=Yu/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(i+d+m,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"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}};var Tq=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function $L(e){var t=e??[];return Array.isArray(t)?t:[t]}var Nq=function(t){var r=T(T({},LE),t),n=r.id,o=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,f=r.trailColor,d=r.strokeLinecap,m=r.style,h=r.className,v=r.strokeColor,y=r.percent,g=Ve(r,Tq),p=Yu/2,x=TL(n),b="".concat(x,"-gradient"),S=p-a/2,w=Math.PI*2*S,C=c>0?90+c/2:-90,R=w*((360-c)/360),P=fe(i)==="object"?i:{count:i,gap:2},O=P.count,I=P.gap,D=$L(y),$=$L(v),F=$.find(function(H){return H&&fe(H)==="object"}),k=F&&fe(F)==="object",z=k?"butt":d,B=b0(w,R,0,100,C,c,u,f,z,a),j=zE(),G=function(){var K=0;return D.map(function(W,A){var L=$[A]||$[$.length-1],q=b0(w,R,K,W,C,c,u,L,z,a);return K+=W,bp.createElement(DL,{key:A,color:L,ptg:W,radius:S,prefixCls:o,gradientId:b,style:q,strokeLinecap:z,strokeWidth:a,gapDegree:c,ref:function(Y){j[A]=Y},size:Yu})}).reverse()},V=function(){var K=Math.round(O*(D[0]/100)),W=100/O,A=0;return new Array(O).fill(null).map(function(L,q){var ne=q<=K-1?$[0]:f,Y=ne&&fe(ne)==="object"?"url(#".concat(b,")"):void 0,X=b0(w,R,A,W,C,c,u,ne,"butt",a,I);return A+=(R-X.strokeDashoffset+I)*100/R,bp.createElement("circle",{key:q,className:"".concat(o,"-circle-path"),r:S,cx:p,cy:p,stroke:Y,strokeWidth:a,opacity:1,style:X,ref:function(J){j[q]=J}})})};return bp.createElement("svg",ue({className:(0,AL.default)("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Yu," ").concat(Yu),style:m,id:n,role:"presentation"},g),!O&&bp.createElement("circle",{className:"".concat(o,"-circle-trail"),r:S,cx:p,cy:p,stroke:f,strokeLinecap:z,strokeWidth:s||a,style:B}),O?V():G())},WE=Nq;function oa(e){return!e||e<0?0:e>100?100:e}function Qu({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}var kL=({percent:e,success:t,successPercent:r})=>{let n=oa(Qu({success:t,successPercent:r}));return[n,oa(oa(e)-n)]},ML=({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||Ra.green,t||null]},Xs=(e,t,r)=>{var n,o,i,a;let s=-1,l=-1;if(t==="step"){let c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){let c=r?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]};var Iq=3,Dq=e=>Iq/e*100,$q=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[d,m]=Xs(u,"circle"),{strokeWidth:h}=e;h===void 0&&(h=Math.max(Dq(d),6));let v={width:d,height:m,fontSize:d*.15+6},y=Ju.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),g=kL(e),p=o||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=ML({success:c,strokeColor:e.strokeColor}),S=(0,FL.default)(`${t}-inner`,{[`${t}-circle-gradient`]:x}),w=Ju.createElement(WE,{steps:f,percent:f?g[1]:g,strokeWidth:h,trailWidth:h,strokeColor:f?b[1]:b,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:p}),C=d<=20,R=Ju.createElement("div",{className:S,style:v},w,!C&&l);return C?Ju.createElement(Ma,{title:l},R):R},LL=$q;var Zu=E(N());var BL=E(Ne());var Sp="--progress-line-stroke-color",BE="--progress-percent",zL=e=>{let t=e?"100%":"-100%";return new yt(`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}})},Aq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},sr(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(${Sp})`]},height:"100%",width:`calc(1 / var(${BE}) * 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 ${oe(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:zL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:zL(!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}}})}},kq=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"}}}},Mq=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}}}}}},Fq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Lq=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),WL=Gt("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=ut(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Aq(r),kq(r),Mq(r),Fq(r)]},Lq);var zq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let t=[];return Object.keys(e).forEach(r=>{let n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},Bq=(e,t)=>{let{from:r=Ra.blue,to:n=Ra.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=zq(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=Wq(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[Sp]:l}}let a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[Sp]:a}},jq=e=>{let{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:d,type:m}=u,h=a&&typeof a!="string"?Bq(a,r):{[Sp]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=o??[-1,i||(o==="small"?6:8)],[g,p]=Xs(y,"line",{strokeWidth:i}),x={backgroundColor:c||void 0,borderRadius:v},b=Object.assign(Object.assign({width:`${oa(n)}%`,height:p,borderRadius:v},h),{[BE]:oa(n)/100}),S=Qu(e),w={width:`${oa(S)}%`,height:p,borderRadius:v,backgroundColor:f?.strokeColor},C={width:g<0?"100%":g},R=Zu.createElement("div",{className:`${t}-inner`,style:x},Zu.createElement("div",{className:(0,BL.default)(`${t}-bg`,`${t}-bg-${m}`),style:b},m==="inner"&&l),S!==void 0&&Zu.createElement("div",{className:`${t}-success-bg`,style:w})),P=m==="outer"&&d==="start",O=m==="outer"&&d==="end";return m==="outer"&&d==="center"?Zu.createElement("div",{className:`${t}-layout-bottom`},R,l):Zu.createElement("div",{className:`${t}-outer`,style:C},P&&l,R,O&&l)},jL=jq;var jE=E(N()),VL=E(Ne());var Vq=e=>{let{size:t,steps:r,rounding:n=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(o/100)),d=t??[t==="small"?2:14,i],[m,h]=Xs(d,"step",{steps:r,strokeWidth:i}),v=m/r,y=Array.from({length:r});for(let g=0;g{let{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:d,style:m,percentPosition:h={}}=e,v=Hq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:g="outer"}=h,p=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,b=en.useMemo(()=>{if(p){let G=typeof p=="string"?p:Object.values(p)[0];return new gt(G).isLight()}return!1},[a]),S=en.useMemo(()=>{var G,V;let H=Qu(e);return parseInt(H!==void 0?(G=H??0)===null||G===void 0?void 0:G.toString():(V=s??0)===null||V===void 0?void 0:V.toString(),10)},[s,e.success,e.successPercent]),w=en.useMemo(()=>!Uq.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:C,direction:R,progress:P}=en.useContext(rt),O=C("progress",r),[I,D,$]=WL(O),F=u==="line",k=F&&!i,z=en.useMemo(()=>{if(!c)return null;let G=Qu(e),V,H=d||(W=>`${W}%`),K=F&&b&&g==="inner";return g==="inner"||d||w!=="exception"&&w!=="success"?V=H(oa(s),oa(G)):w==="exception"?V=F?en.createElement(gu,null):en.createElement(yv,null):w==="success"&&(V=F?en.createElement(gD,null):en.createElement(Iy,null)),en.createElement("span",{className:(0,VE.default)(`${O}-text`,{[`${O}-text-bright`]:K,[`${O}-text-${y}`]:k,[`${O}-text-${g}`]:k}),title:typeof V=="string"?V:void 0},V)},[c,s,S,w,u,O,d]),B;u==="line"?B=i?en.createElement(HL,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:typeof i=="object"?i.count:i}),z):en.createElement(jL,Object.assign({},e,{strokeColor:p,prefixCls:O,direction:R,percentPosition:{align:y,type:g}}),z):(u==="circle"||u==="dashboard")&&(B=en.createElement(LL,Object.assign({},e,{strokeColor:p,prefixCls:O,progressStatus:w}),z));let j=(0,VE.default)(O,`${O}-status-${w}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&Xs(l,"circle")[0]<=20,[`${O}-line`]:k,[`${O}-line-align-${y}`]:k,[`${O}-line-position-${g}`]:k,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:R==="rtl"},P?.className,n,o,D,$);return I(en.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P?.style),m),className:j,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},Kr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),B))}),UL=qq;var qL=UL;var S0=E(N());var Gq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},GL=Gq;var Kq=function(t,r){return S0.createElement(zt,ue({},t,{ref:r,icon:GL}))},Xq=S0.forwardRef(Kq),KL=Xq;var C0=E(N());var Yq={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"},XL=Yq;var Qq=function(t,r){return C0.createElement(zt,ue({},t,{ref:r,icon:XL}))},Jq=C0.forwardRef(Qq),YL=Jq;var w0=E(N());var Zq={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},QL=Zq;var eG=function(t,r){return w0.createElement(zt,ue({},t,{ref:r,icon:QL}))},tG=w0.forwardRef(eG),JL=tG;var E0=E(N());var rG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ZL=rG;var nG=function(t,r){return E0.createElement(zt,ue({},t,{ref:r,icon:ZL}))},oG=E0.forwardRef(nG),e3=oG;var R0=E(N());var iG={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},t3=iG;var aG=function(t,r){return R0.createElement(zt,ue({},t,{ref:r,icon:t3}))},sG=R0.forwardRef(aG),r3=sG;var lG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},n3=lG;var I0=E(N());var br=E(N()),KE=E(Hi()),T0=E(Ne());var _0=E(N());var a3=E(Ne());var wp=E(N());var O0=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(Vt(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function cG(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function o3(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function HE(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(o,"[]"),a)});return}r.append(o,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(cG(e,t),o3(t)):e.onSuccess(o3(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(o){n[o]!==null&&t.setRequestHeader(o,n[o])}),t.send(r),{abort:function(){t.abort()}}}var uG=function(){var e=Gr(Et().mark(function t(r,n){var o,i,a,s,l,c,u,f;return Et().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=function(){return c=Gr(Et().mark(function v(y){return Et().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",new Promise(function(x){y.file(function(b){n(b)?(y.fullPath&&!b.webkitRelativePath&&(Object.defineProperties(b,{webkitRelativePath:{writable:!0}}),b.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(b,{webkitRelativePath:{writable:!1}})),x(b)):x(null)})}));case 1:case"end":return p.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Gr(Et().mark(function v(y){var g,p,x,b,S;return Et().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:g=y.createReader(),p=[];case 2:return C.next=5,new Promise(function(R){g.readEntries(R,function(){return R([])})});case 5:if(x=C.sent,b=x.length,b){C.next=9;break}return C.abrupt("break",12);case 9:for(S=0;S0||v.some(function(b){return b.kind==="file"}))&&u?.(),!h){x.next=11;break}return x.next=7,i3(Array.prototype.slice.call(v),function(b){return O0(b,n.props.accept)});case 7:y=x.sent,n.uploadFiles(y),x.next=14;break;case 11:g=ee(y).filter(function(b){return O0(b,m)}),d===!1&&(g=y.slice(0,1)),n.uploadFiles(g);case 14:case"end":return x.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),_(Ye(n),"onFilePaste",function(){var s=Gr(Et().mark(function l(c){var u,f;return Et().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u=n.props.pastable,u){m.next=3;break}return m.abrupt("return");case 3:if(c.type!=="paste"){m.next=6;break}return f=c.clipboardData,m.abrupt("return",n.onDataTransferFiles(f,function(){c.preventDefault()}));case 6:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ye(n),"onFileDragOver",function(s){s.preventDefault()}),_(Ye(n),"onFileDrop",function(){var s=Gr(Et().mark(function l(c){var u;return Et().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(c.preventDefault(),c.type!=="drop"){d.next=4;break}return u=c.dataTransfer,d.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return d.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ye(n),"uploadFiles",function(s){var l=ee(s),c=l.map(function(u){return u.uid=Cp(),n.processFile(u,l)});Promise.all(c).then(function(u){var f=n.props.onBatchStart;f?.(u.map(function(d){var m=d.origin,h=d.parsedFile;return{file:m,parsedFile:h}})),u.filter(function(d){return d.parsedFile!==null}).forEach(function(d){n.post(d)})})}),_(Ye(n),"processFile",function(){var s=Gr(Et().mark(function l(c,u){var f,d,m,h,v,y,g,p,x;return Et().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(f=n.props.beforeUpload,d=c,!f){S.next=14;break}return S.prev=3,S.next=6,f(c,u);case 6:d=S.sent,S.next=12;break;case 9:S.prev=9,S.t0=S.catch(3),d=!1;case 12:if(d!==!1){S.next=14;break}return S.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(m=n.props.action,typeof m!="function"){S.next=21;break}return S.next=18,m(c);case 18:h=S.sent,S.next=22;break;case 21:h=m;case 22:if(v=n.props.data,typeof v!="function"){S.next=29;break}return S.next=26,v(c);case 26:y=S.sent,S.next=30;break;case 29:y=v;case 30:return g=(fe(d)==="object"||typeof d=="string")&&d?d:c,g instanceof File?p=g:p=new File([g],c.name,{type:c.type}),x=p,x.uid=c.uid,S.abrupt("return",{origin:c,data:y,parsedFile:x,action:h});case 35:case"end":return S.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),_(Ye(n),"saveFileInput",function(s){n.fileInput=s}),n}return at(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,c=o.parsedFile;if(this._isMounted){var u=this.props,f=u.onStart,d=u.customRequest,m=u.name,h=u.headers,v=u.withCredentials,y=u.method,g=s.uid,p=d||HE,x={action:l,filename:m,data:a,file:c,headers:h,withCredentials:v,method:y||"post",onProgress:function(S){var w=i.props.onProgress;w?.(S,c)},onSuccess:function(S,w){var C=i.props.onSuccess;C?.(S,c,w),delete i.reqs[g]},onError:function(S,w){var C=i.props.onError;C?.(S,w,c),delete i.reqs[g]}};f(s),this.reqs[g]=p(x)}}},{key:"reset",value:function(){this.setState({uid:Cp()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,c=l===void 0?{}:l,u=o.disabled,f=o.id,d=o.name,m=o.style,h=o.styles,v=h===void 0?{}:h,y=o.multiple,g=o.accept,p=o.capture,x=o.children,b=o.directory,S=o.openFileDialogOnClick,w=o.onMouseEnter,C=o.onMouseLeave,R=o.hasControlInside,P=Ve(o,pG),O=(0,a3.default)(_(_(_({},a,!0),"".concat(a,"-disabled"),u),s,s)),I=b?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},D=u?{}:{onClick:S?this.onClick:function(){},onKeyDown:S?this.onKeyDown:function(){},onMouseEnter:w,onMouseLeave:C,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:R?void 0:"0"};return wp.default.createElement(i,ue({},D,{className:O,role:R?void 0:"button",style:m}),wp.default.createElement("input",ue({},Go(P,{aria:!0,data:!0}),{id:f,name:d,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(F){return F.stopPropagation()},key:this.state.uid,style:T({display:"none"},v.input),className:c.input,accept:g},I,{multiple:y,onChange:this.onChange},p!=null?{capture:p}:{})),x)}}]),r}(wp.Component),s3=mG;function UE(){}var l3=function(e){Dr(r,e);var t=$r(r);function r(){var n;it(this,r);for(var o=arguments.length,i=new Array(o),a=0;a{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${oe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + `]:{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}}}}}},OL=Gt(["Input","TextArea"],e=>{let t=ft(e,La(e));return[Cq(t)]},za,{resetFont:!1});var wq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var r;let{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:d,styles:m,variant:h,showCount:v,onMouseDown:y,onResize:g}=e,p=wq(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:b,allowClear:S,autoComplete:w,className:C,style:R,classNames:P,styles:O}=oo("textArea"),I=No.useContext(Hr),D=a??I,{status:$,hasFeedback:L,feedbackIcon:A}=No.useContext(fn),M=Zi($,s),W=No.useRef(null);No.useImperativeHandle(t,()=>{var te;return{resizableTextArea:(te=W.current)===null||te===void 0?void 0:te.resizableTextArea,focus:de=>{var fe,ue;Kl((ue=(fe=W.current)===null||fe===void 0?void 0:fe.resizableTextArea)===null||ue===void 0?void 0:ue.textArea,de)},blur:()=>{var de;return(de=W.current)===null||de===void 0?void 0:de.blur()}}});let B=x("input",n),K=Ko(B),[G,V,H]=Yy(B,u),[j]=OL(B,K),{compactSize:k,compactItemClassnames:z}=Xo(B,b),U=so(te=>{var de;return(de=i??k)!==null&&de!==void 0?de:te}),[oe,Q]=Gs("textArea",h,o),X=l0(l??S),[se,Z]=No.useState(!1),[q,J]=No.useState(!1),re=te=>{Z(!0),y?.(te);let de=()=>{Z(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},ee=te=>{var de,fe;if(g?.(te),se&&typeof getComputedStyle=="function"){let ue=(fe=(de=W.current)===null||de===void 0?void 0:de.nativeElement)===null||fe===void 0?void 0:fe.querySelector("textarea");ue&&getComputedStyle(ue).resize==="both"&&J(!0)}};return G(j(No.createElement(RL,Object.assign({autoComplete:w},p,{style:Object.assign(Object.assign({},R),d),styles:Object.assign(Object.assign({},O),m),disabled:D,allowClear:X,className:(0,yp.default)(H,K,f,u,z,C,q&&`${B}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),P),{textarea:(0,yp.default)({[`${B}-sm`]:U==="small",[`${B}-lg`]:U==="large"},V,c?.textarea,P.textarea,se&&`${B}-mouse-active`),variant:(0,yp.default)({[`${B}-${oe}`]:Q},Ji(B,M)),affixWrapper:(0,yp.default)(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:b==="rtl",[`${B}-affix-wrapper-sm`]:U==="small",[`${B}-affix-wrapper-lg`]:U==="large",[`${B}-textarea-show-count`]:v||((r=e.count)===null||r===void 0?void 0:r.show)},V)}),prefixCls:B,suffix:L&&No.createElement("span",{className:`${B}-textarea-suffix`},A),showCount:v,ref:W,onResize:ee,onMouseDown:re}))))}),PL=Eq;var Xu=Ks;Xu.Group=fL;Xu.Search=CL;Xu.TextArea=PL;Xu.Password=bL;Xu.OTP=hL;var xp=Xu;var Zr=E(N());var UE=E(Ne());var Ju=E(N()),LL=E(Ne());var Rq=E(N()),Oq=E(Ne());var bp=E(N()),WE={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},BE=function(){var t=(0,bp.useRef)([]),r=(0,bp.useRef)(null);return(0,bp.useEffect)(function(){var n=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),t.current};var Sp=E(N()),kL=E(Ne());var S0=E(N());var TL=0,_q=Yt();function Pq(){var e;return _q?(e=TL,TL+=1):e="TEST_OR_SSR",e}var NL=function(e){var t=S0.useState(),r=F(t,2),n=r[0],o=r[1];return S0.useEffect(function(){o("rc_progress_".concat(Pq()))},[]),e||n};var si=E(N()),IL=function(t){var r=t.bg,n=t.children;return si.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function DL(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)})}var Tq=si.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,d=n&&ce(n)==="object",m=d?"#FFF":void 0,h=u/2,v=si.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!d)return v;var y="".concat(o,"-conic"),g=f?"".concat(180+f/2,"deg"):"0deg",p=DL(n,(360-f)/360),x=DL(n,1),b="conic-gradient(from ".concat(g,", ").concat(p.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return si.createElement(si.Fragment,null,si.createElement("mask",{id:y},v),si.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},si.createElement(IL,{bg:S},si.createElement(IL,{bg:b}))))}),$L=Tq;var Yu=100,C0=function(t,r,n,o,i,a,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=n/100*360*((360-a)/360),m=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*r;c==="round"&&o!==100&&(h+=u/2,h>=r&&(h=r-.01));var v=Yu/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(i+d+m,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"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}};var Nq=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function AL(e){var t=e??[];return Array.isArray(t)?t:[t]}var Iq=function(t){var r=T(T({},WE),t),n=r.id,o=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,f=r.trailColor,d=r.strokeLinecap,m=r.style,h=r.className,v=r.strokeColor,y=r.percent,g=He(r,Nq),p=Yu/2,x=NL(n),b="".concat(x,"-gradient"),S=p-a/2,w=Math.PI*2*S,C=c>0?90+c/2:-90,R=w*((360-c)/360),P=ce(i)==="object"?i:{count:i,gap:2},O=P.count,I=P.gap,D=AL(y),$=AL(v),L=$.find(function(V){return V&&ce(V)==="object"}),A=L&&ce(L)==="object",M=A?"butt":d,W=C0(w,R,0,100,C,c,u,f,M,a),B=BE(),K=function(){var H=0;return D.map(function(j,k){var z=$[k]||$[$.length-1],U=C0(w,R,H,j,C,c,u,z,M,a);return H+=j,Sp.createElement($L,{key:k,color:z,ptg:j,radius:S,prefixCls:o,gradientId:b,style:U,strokeLinecap:M,strokeWidth:a,gapDegree:c,ref:function(Q){B[k]=Q},size:Yu})}).reverse()},G=function(){var H=Math.round(O*(D[0]/100)),j=100/O,k=0;return new Array(O).fill(null).map(function(z,U){var oe=U<=H-1?$[0]:f,Q=oe&&ce(oe)==="object"?"url(#".concat(b,")"):void 0,X=C0(w,R,k,j,C,c,u,oe,"butt",a,I);return k+=(R-X.strokeDashoffset+I)*100/R,Sp.createElement("circle",{key:U,className:"".concat(o,"-circle-path"),r:S,cx:p,cy:p,stroke:Q,strokeWidth:a,opacity:1,style:X,ref:function(Z){B[U]=Z}})})};return Sp.createElement("svg",le({className:(0,kL.default)("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Yu," ").concat(Yu),style:m,id:n,role:"presentation"},g),!O&&Sp.createElement("circle",{className:"".concat(o,"-circle-trail"),r:S,cx:p,cy:p,stroke:f,strokeLinecap:M,strokeWidth:s||a,style:W}),O?G():K())},jE=Iq;function ia(e){return!e||e<0?0:e>100?100:e}function Qu({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}var ML=({percent:e,success:t,successPercent:r})=>{let n=ia(Qu({success:t,successPercent:r}));return[n,ia(ia(e)-n)]},FL=({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||Oa.green,t||null]},Xs=(e,t,r)=>{var n,o,i,a;let s=-1,l=-1;if(t==="step"){let c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){let c=r?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]};var Dq=3,$q=e=>Dq/e*100,Aq=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[d,m]=Xs(u,"circle"),{strokeWidth:h}=e;h===void 0&&(h=Math.max($q(d),6));let v={width:d,height:m,fontSize:d*.15+6},y=Ju.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),g=ML(e),p=o||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=FL({success:c,strokeColor:e.strokeColor}),S=(0,LL.default)(`${t}-inner`,{[`${t}-circle-gradient`]:x}),w=Ju.createElement(jE,{steps:f,percent:f?g[1]:g,strokeWidth:h,trailWidth:h,strokeColor:f?b[1]:b,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:y,gapPosition:p}),C=d<=20,R=Ju.createElement("div",{className:S,style:v},w,!C&&l);return C?Ju.createElement(Fa,{title:l},R):R},zL=Aq;var Zu=E(N());var jL=E(Ne());var Cp="--progress-line-stroke-color",VE="--progress-percent",WL=e=>{let t=e?"100%":"-100%";return new xt(`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}})},kq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},lr(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(${Cp})`]},height:"100%",width:`calc(1 / var(${VE}) * 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 ${ie(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:WL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:WL(!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}}})}},Mq=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"}}}},Fq=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}}}}}},Lq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},zq=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),BL=Gt("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=ft(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[kq(r),Mq(r),Fq(r),Lq(r)]},zq);var Wq=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{let t=[];return Object.keys(e).forEach(r=>{let n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},jq=(e,t)=>{let{from:r=Oa.blue,to:n=Oa.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Wq(e,["from","to","direction"]);if(Object.keys(i).length!==0){let s=Bq(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[Cp]:l}}let a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[Cp]:a}},Vq=e=>{let{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:d,type:m}=u,h=a&&typeof a!="string"?jq(a,r):{[Cp]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=o??[-1,i||(o==="small"?6:8)],[g,p]=Xs(y,"line",{strokeWidth:i}),x={backgroundColor:c||void 0,borderRadius:v},b=Object.assign(Object.assign({width:`${ia(n)}%`,height:p,borderRadius:v},h),{[VE]:ia(n)/100}),S=Qu(e),w={width:`${ia(S)}%`,height:p,borderRadius:v,backgroundColor:f?.strokeColor},C={width:g<0?"100%":g},R=Zu.createElement("div",{className:`${t}-inner`,style:x},Zu.createElement("div",{className:(0,jL.default)(`${t}-bg`,`${t}-bg-${m}`),style:b},m==="inner"&&l),S!==void 0&&Zu.createElement("div",{className:`${t}-success-bg`,style:w})),P=m==="outer"&&d==="start",O=m==="outer"&&d==="end";return m==="outer"&&d==="center"?Zu.createElement("div",{className:`${t}-layout-bottom`},R,l):Zu.createElement("div",{className:`${t}-outer`,style:C},P&&l,R,O&&l)},VL=Vq;var HE=E(N()),HL=E(Ne());var Hq=e=>{let{size:t,steps:r,rounding:n=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(o/100)),d=t??[t==="small"?2:14,i],[m,h]=Xs(d,"step",{steps:r,strokeWidth:i}),v=m/r,y=Array.from({length:r});for(let g=0;g{let{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:d,style:m,percentPosition:h={}}=e,v=Uq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:g="outer"}=h,p=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,b=Zr.useMemo(()=>{if(p){let K=typeof p=="string"?p:Object.values(p)[0];return new ht(K).isLight()}return!1},[a]),S=Zr.useMemo(()=>{var K,G;let V=Qu(e);return parseInt(V!==void 0?(K=V??0)===null||K===void 0?void 0:K.toString():(G=s??0)===null||G===void 0?void 0:G.toString(),10)},[s,e.success,e.successPercent]),w=Zr.useMemo(()=>!qq.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:C,direction:R,progress:P}=Zr.useContext(ot),O=C("progress",r),[I,D,$]=BL(O),L=u==="line",A=L&&!i,M=Zr.useMemo(()=>{if(!c)return null;let K=Qu(e),G,V=d||(j=>`${j}%`),H=L&&b&&g==="inner";return g==="inner"||d||w!=="exception"&&w!=="success"?G=V(ia(s),ia(K)):w==="exception"?G=L?Zr.createElement(gu,null):Zr.createElement(bv,null):w==="success"&&(G=L?Zr.createElement(hD,null):Zr.createElement($y,null)),Zr.createElement("span",{className:(0,UE.default)(`${O}-text`,{[`${O}-text-bright`]:H,[`${O}-text-${y}`]:A,[`${O}-text-${g}`]:A}),title:typeof G=="string"?G:void 0},G)},[c,s,S,w,u,O,d]),W;u==="line"?W=i?Zr.createElement(UL,Object.assign({},e,{strokeColor:x,prefixCls:O,steps:typeof i=="object"?i.count:i}),M):Zr.createElement(VL,Object.assign({},e,{strokeColor:p,prefixCls:O,direction:R,percentPosition:{align:y,type:g}}),M):(u==="circle"||u==="dashboard")&&(W=Zr.createElement(zL,Object.assign({},e,{strokeColor:p,prefixCls:O,progressStatus:w}),M));let B=(0,UE.default)(O,`${O}-status-${w}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&Xs(l,"circle")[0]<=20,[`${O}-line`]:A,[`${O}-line-align-${y}`]:A,[`${O}-line-position-${g}`]:A,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:R==="rtl"},P?.className,n,o,D,$);return I(Zr.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P?.style),m),className:B,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},qr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),W))}),qL=Gq;var GL=qL;var w0=E(N());var Kq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},KL=Kq;var Xq=function(t,r){return w0.createElement(zt,le({},t,{ref:r,icon:KL}))},Yq=w0.forwardRef(Xq),XL=Yq;var E0=E(N());var Qq={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"},YL=Qq;var Jq=function(t,r){return E0.createElement(zt,le({},t,{ref:r,icon:YL}))},Zq=E0.forwardRef(Jq),QL=Zq;var R0=E(N());var eG={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},JL=eG;var tG=function(t,r){return R0.createElement(zt,le({},t,{ref:r,icon:JL}))},rG=R0.forwardRef(tG),ZL=rG;var O0=E(N());var nG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},e3=nG;var oG=function(t,r){return O0.createElement(zt,le({},t,{ref:r,icon:e3}))},iG=O0.forwardRef(oG),t3=iG;var _0=E(N());var aG={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},r3=aG;var sG=function(t,r){return _0.createElement(zt,le({},t,{ref:r,icon:r3}))},lG=_0.forwardRef(sG),n3=lG;var cG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},o3=cG;var $0=E(N());var yr=E(N()),YE=E(Ui()),I0=E(Ne());var T0=E(N());var s3=E(Ne());var Ep=E(N());var P0=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(Vt(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function uG(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function i3(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function qE(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(o,"[]"),a)});return}r.append(o,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(uG(e,t),i3(t)):e.onSuccess(i3(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(o){n[o]!==null&&t.setRequestHeader(o,n[o])}),t.send(r),{abort:function(){t.abort()}}}var fG=function(){var e=Ur(Et().mark(function t(r,n){var o,i,a,s,l,c,u,f;return Et().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=function(){return c=Ur(Et().mark(function v(y){return Et().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",new Promise(function(x){y.file(function(b){n(b)?(y.fullPath&&!b.webkitRelativePath&&(Object.defineProperties(b,{webkitRelativePath:{writable:!0}}),b.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(b,{webkitRelativePath:{writable:!1}})),x(b)):x(null)})}));case 1:case"end":return p.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Ur(Et().mark(function v(y){var g,p,x,b,S;return Et().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:g=y.createReader(),p=[];case 2:return C.next=5,new Promise(function(R){g.readEntries(R,function(){return R([])})});case 5:if(x=C.sent,b=x.length,b){C.next=9;break}return C.abrupt("break",12);case 9:for(S=0;S0||v.some(function(b){return b.kind==="file"}))&&u?.(),!h){x.next=11;break}return x.next=7,a3(Array.prototype.slice.call(v),function(b){return P0(b,n.props.accept)});case 7:y=x.sent,n.uploadFiles(y),x.next=14;break;case 11:g=ne(y).filter(function(b){return P0(b,m)}),d===!1&&(g=y.slice(0,1)),n.uploadFiles(g);case 14:case"end":return x.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),_(Ye(n),"onFilePaste",function(){var s=Ur(Et().mark(function l(c){var u,f;return Et().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u=n.props.pastable,u){m.next=3;break}return m.abrupt("return");case 3:if(c.type!=="paste"){m.next=6;break}return f=c.clipboardData,m.abrupt("return",n.onDataTransferFiles(f,function(){c.preventDefault()}));case 6:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ye(n),"onFileDragOver",function(s){s.preventDefault()}),_(Ye(n),"onFileDrop",function(){var s=Ur(Et().mark(function l(c){var u;return Et().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(c.preventDefault(),c.type!=="drop"){d.next=4;break}return u=c.dataTransfer,d.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return d.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),_(Ye(n),"uploadFiles",function(s){var l=ne(s),c=l.map(function(u){return u.uid=wp(),n.processFile(u,l)});Promise.all(c).then(function(u){var f=n.props.onBatchStart;f?.(u.map(function(d){var m=d.origin,h=d.parsedFile;return{file:m,parsedFile:h}})),u.filter(function(d){return d.parsedFile!==null}).forEach(function(d){n.post(d)})})}),_(Ye(n),"processFile",function(){var s=Ur(Et().mark(function l(c,u){var f,d,m,h,v,y,g,p,x;return Et().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(f=n.props.beforeUpload,d=c,!f){S.next=14;break}return S.prev=3,S.next=6,f(c,u);case 6:d=S.sent,S.next=12;break;case 9:S.prev=9,S.t0=S.catch(3),d=!1;case 12:if(d!==!1){S.next=14;break}return S.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(m=n.props.action,typeof m!="function"){S.next=21;break}return S.next=18,m(c);case 18:h=S.sent,S.next=22;break;case 21:h=m;case 22:if(v=n.props.data,typeof v!="function"){S.next=29;break}return S.next=26,v(c);case 26:y=S.sent,S.next=30;break;case 29:y=v;case 30:return g=(ce(d)==="object"||typeof d=="string")&&d?d:c,g instanceof File?p=g:p=new File([g],c.name,{type:c.type}),x=p,x.uid=c.uid,S.abrupt("return",{origin:c,data:y,parsedFile:x,action:h});case 35:case"end":return S.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),_(Ye(n),"saveFileInput",function(s){n.fileInput=s}),n}return st(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,c=o.parsedFile;if(this._isMounted){var u=this.props,f=u.onStart,d=u.customRequest,m=u.name,h=u.headers,v=u.withCredentials,y=u.method,g=s.uid,p=d||qE,x={action:l,filename:m,data:a,file:c,headers:h,withCredentials:v,method:y||"post",onProgress:function(S){var w=i.props.onProgress;w?.(S,c)},onSuccess:function(S,w){var C=i.props.onSuccess;C?.(S,c,w),delete i.reqs[g]},onError:function(S,w){var C=i.props.onError;C?.(S,w,c),delete i.reqs[g]}};f(s),this.reqs[g]=p(x)}}},{key:"reset",value:function(){this.setState({uid:wp()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,c=l===void 0?{}:l,u=o.disabled,f=o.id,d=o.name,m=o.style,h=o.styles,v=h===void 0?{}:h,y=o.multiple,g=o.accept,p=o.capture,x=o.children,b=o.directory,S=o.openFileDialogOnClick,w=o.onMouseEnter,C=o.onMouseLeave,R=o.hasControlInside,P=He(o,mG),O=(0,s3.default)(_(_(_({},a,!0),"".concat(a,"-disabled"),u),s,s)),I=b?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},D=u?{}:{onClick:S?this.onClick:function(){},onKeyDown:S?this.onKeyDown:function(){},onMouseEnter:w,onMouseLeave:C,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:R?void 0:"0"};return Ep.default.createElement(i,le({},D,{className:O,role:R?void 0:"button",style:m}),Ep.default.createElement("input",le({},qo(P,{aria:!0,data:!0}),{id:f,name:d,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(L){return L.stopPropagation()},key:this.state.uid,style:T({display:"none"},v.input),className:c.input,accept:g},I,{multiple:y,onChange:this.onChange},p!=null?{capture:p}:{})),x)}}]),r}(Ep.Component),l3=gG;function GE(){}var c3=function(e){$r(r,e);var t=Ar(r);function r(){var n;at(this,r);for(var o=arguments.length,i=new Array(o),a=0;a{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) - `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${oe(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, + `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ie(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},u3=gG;var hG=e=>{let{componentCls:t,iconCls:r,fontSize:n,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},pu()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},_a),{padding:`0 ${oe(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + `]:{color:e.colorTextDisabled}}}}}},f3=hG;var vG=e=>{let{componentCls:t,iconCls:r,fontSize:n,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},pu()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Pa),{padding:`0 ${ie(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${l}:focus-visible, &.picture ${l} - `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},f3=hG;var vG=e=>{let{componentCls:t}=e,r=new yt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new yt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:r},[`${o}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:kw(e)},r,n]},d3=vG;var p3=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[` + `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},d3=vG;var yG=e=>{let{componentCls:t}=e,r=new xt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new xt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:r},[`${o}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:Fw(e)},r,n]},p3=yG;var m3=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[` ${a}${a}-picture, ${a}${a}-picture-card, ${a}${a}-picture-circle - `]:{[s]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},_a),{width:n,height:n,lineHeight:oe(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${oe(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${Ns[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ns.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},m3=e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[` + `]:{[s]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Pa),{width:n,height:n,lineHeight:ie(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${ie(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${Ns[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ns.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},g3=e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},pu()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${oe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + `]:Object.assign(Object.assign({},pu()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ie(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ie(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ie(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${r}-eye, ${r}-download, ${r}-delete - `]:{zIndex:10,width:n,margin:`0 ${oe(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${oe(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var yG=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},g3=yG;var xG=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},sr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},bG=e=>({actionsColor:e.colorIcon}),h3=Gt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:o,calc:i}=e,a=ut(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[xG(a),u3(a),p3(a),m3(a),f3(a),d3(a),g3(a),Aw(a)]},bG);var qt=E(N());var GE=E(Ne());function Ep(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Rp(e,t){let r=ee(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function P0(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function v3(e,t){let r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}var SG=(e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},y3=e=>e.indexOf("image/")===0,x3=e=>{if(e.type&&!e.thumbUrl)return y3(e.type);let t=e.thumbUrl||e.url||"",r=SG(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Ys=200;function b3(e){return new Promise(t=>{if(!e.type||!y3(e.type)){t("");return}let r=document.createElement("canvas");r.width=Ys,r.height=Ys,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ys}px; height: ${Ys}px; z-index: 9999; display: none;`,document.body.appendChild(r);let n=r.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:i,height:a}=o,s=Ys,l=Ys,c=0,u=0;i>a?(l=a*(Ys/i),u=-(l-s)/2):(s=i*(Ys/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);let f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var Bt=E(N());var Qs=E(Ne());var CG=Bt.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:f,showPreviewIcon:d,showRemoveIcon:m,showDownloadIcon:h,previewIcon:v,removeIcon:y,downloadIcon:g,extra:p,onPreview:x,onDownload:b,onClose:S},w)=>{var C,R;let{status:P}=i,[O,I]=Bt.useState(P);Bt.useEffect(()=>{P!=="removed"&&I(P)},[P]);let[D,$]=Bt.useState(!1);Bt.useEffect(()=>{let U=setTimeout(()=>{$(!0)},300);return()=>{clearTimeout(U)}},[]);let F=l(i),k=Bt.createElement("div",{className:`${e}-icon`},F);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(O==="uploading"||!i.thumbUrl&&!i.url){let U=(0,Qs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!=="uploading"});k=Bt.createElement("div",{className:U},F)}else{let U=f?.(i)?Bt.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):F,Q=(0,Qs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(i)});k=Bt.createElement("a",{className:Q,onClick:te=>x(i,te),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},U)}let z=(0,Qs.default)(`${e}-list-item`,`${e}-list-item-${O}`),B=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,j=(typeof m=="function"?m(i):m)?c((typeof y=="function"?y(i):y)||Bt.createElement(KL,null),()=>S(i),e,n.removeFile,!0):null,G=(typeof h=="function"?h(i):h)&&O==="done"?c((typeof g=="function"?g(i):g)||Bt.createElement(YL,null),()=>b(i),e,n.downloadFile):null,V=o!=="picture-card"&&o!=="picture-circle"&&Bt.createElement("span",{key:"download-delete",className:(0,Qs.default)(`${e}-list-item-actions`,{picture:o==="picture"})},G,j),H=typeof p=="function"?p(i):p,K=H&&Bt.createElement("span",{className:`${e}-list-item-extra`},H),W=(0,Qs.default)(`${e}-list-item-name`),A=i.url?Bt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:i.name},B,{href:i.url,onClick:U=>x(i,U)}),i.name,K):Bt.createElement("span",{key:"view",className:W,onClick:U=>x(i,U),title:i.name},i.name,K),L=(typeof d=="function"?d(i):d)&&(i.url||i.thumbUrl)?Bt.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:U=>x(i,U),title:n.previewFile},typeof v=="function"?v(i):v||Bt.createElement(g0,null)):null,q=(o==="picture-card"||o==="picture-circle")&&O!=="uploading"&&Bt.createElement("span",{className:`${e}-list-item-actions`},L,O==="done"&&G,j),{getPrefixCls:ne}=Bt.useContext(rt),Y=ne(),X=Bt.createElement("div",{className:z},k,A,V,q,D&&Bt.createElement(qo,{motionName:`${Y}-fade`,visible:O==="uploading",motionDeadline:2e3},({className:U})=>{let Q="percent"in i?Bt.createElement(qL,Object.assign({},s,{type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]})):null;return Bt.createElement("div",{className:(0,Qs.default)(`${e}-list-item-progress`,U)},Q)})),ae=i.response&&typeof i.response=="string"?i.response:((C=i.error)===null||C===void 0?void 0:C.statusText)||((R=i.error)===null||R===void 0?void 0:R.message)||n.uploadError,J=O==="error"?Bt.createElement(Ma,{title:ae,getPopupContainer:U=>U.parentNode},X):X;return Bt.createElement("div",{className:(0,Qs.default)(`${e}-list-item-container`,t),style:r,ref:w},u?u(J,i,a,{download:b.bind(null,i),preview:x.bind(null,i),remove:S.bind(null,i)}):J)}),S3=CG;var wG=(e,t)=>{let{listType:r="text",previewFile:n=b3,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=x3,prefixCls:u,items:f=[],showPreviewIcon:d=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,progress:x={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:w,disabled:C}=e,R=J1(),[P,O]=qt.useState(!1),I=["picture-card","picture-circle"].includes(r);qt.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(W=>{!(W.originFileObj instanceof File||W.originFileObj instanceof Blob)||W.thumbUrl!==void 0||(W.thumbUrl="",n?.(W.originFileObj).then(A=>{W.thumbUrl=A||"",R()}))})},[r,f,n]),qt.useEffect(()=>{O(!0)},[]);let D=(W,A)=>{if(o)return A?.preventDefault(),o(W)},$=W=>{typeof i=="function"?i(W):W.url&&window.open(W.url)},F=W=>{a?.(W)},k=W=>{if(l)return l(W,r);let A=W.status==="uploading";if(r.startsWith("picture")){let L=r==="picture"?qt.createElement(kl,null):s.uploading,q=c?.(W)?qt.createElement(r3,null):qt.createElement(JL,null);return A?L:q}return A?qt.createElement(kl,null):qt.createElement(e3,null)},z=(W,A,L,q,ne)=>{let Y={type:"text",size:"small",title:q,onClick:X=>{var ae,J;A(),qt.isValidElement(W)&&((J=(ae=W.props).onClick)===null||J===void 0||J.call(ae,X))},className:`${L}-list-item-action`,disabled:ne?C:!1};return qt.isValidElement(W)?qt.createElement(Bd,Object.assign({},Y,{icon:Ko(W,Object.assign(Object.assign({},W.props),{onClick:()=>{}}))})):qt.createElement(Bd,Object.assign({},Y),qt.createElement("span",null,W))};qt.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:$}));let{getPrefixCls:B}=qt.useContext(rt),j=B("upload",u),G=B(),V=(0,GE.default)(`${j}-list`,`${j}-list-${r}`),H=qt.useMemo(()=>Kr(DD(G),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[G]),K=Object.assign(Object.assign({},I?{}:H),{motionDeadline:2e3,motionName:`${j}-${I?"animate-inline":"animate"}`,keys:ee(f.map(W=>({key:W.uid,file:W}))),motionAppear:P});return qt.createElement("div",{className:V},qt.createElement(dw,Object.assign({},K,{component:!1}),({key:W,file:A,className:L,style:q})=>qt.createElement(S3,{key:W,locale:s,prefixCls:j,className:L,style:q,file:A,items:f,progress:x,listType:r,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:m,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,iconRender:k,actionIconRender:z,itemRender:w,onPreview:D,onDownload:$,onClose:F})),b&&qt.createElement(qo,Object.assign({},K,{visible:S,forceRender:!0}),({className:W,style:A})=>Ko(b,L=>({className:(0,GE.default)(L.className,W),style:Object.assign(Object.assign(Object.assign({},A),{pointerEvents:W?"none":void 0}),L.style)}))))},EG=qt.forwardRef(wG),C3=EG;var RG=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},ef=`__LIST_IGNORE_${Date.now()}__`,OG=(e,t)=>{let{fileList:r,defaultFileList:n,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:d,locale:m,iconRender:h,isImageUrl:v,progress:y,prefixCls:g,className:p,type:x="select",children:b,style:S,itemRender:w,maxCount:C,data:R={},multiple:P=!1,hasControlInside:O=!0,action:I="",accept:D="",supportServerRender:$=!0,rootClassName:F}=e,k=br.useContext(qr),z=d??k,[B,j]=ar(n||[],{value:r,postState:se=>se??[]}),[G,V]=br.useState("drop"),H=br.useRef(null),K=br.useRef(null);br.useMemo(()=>{let se=Date.now();(r||[]).forEach((xe,_e)=>{!xe.uid&&!Object.isFrozen(xe)&&(xe.uid=`__AUTO__${se}_${_e}__`)})},[r]);let W=(se,xe,_e)=>{let he=ee(xe),Ze=!1;C===1?he=he.slice(-1):C&&(Ze=he.length>C,he=he.slice(0,C)),(0,KE.flushSync)(()=>{j(he)});let lt={file:se,fileList:he};_e&&(lt.event=_e),(!Ze||se.status==="removed"||he.some(Rt=>Rt.uid===se.uid))&&(0,KE.flushSync)(()=>{c?.(lt)})},A=(se,xe)=>RG(void 0,void 0,void 0,function*(){let{beforeUpload:_e,transformFile:he}=e,Ze=se;if(_e){let lt=yield _e(se,xe);if(lt===!1)return!1;if(delete se[ef],lt===ef)return Object.defineProperty(se,ef,{value:!0,configurable:!0}),!1;typeof lt=="object"&<&&(Ze=lt)}return he&&(Ze=yield he(Ze)),Ze}),L=se=>{let xe=se.filter(Ze=>!Ze.file[ef]);if(!xe.length)return;let _e=xe.map(Ze=>Ep(Ze.file)),he=ee(B);_e.forEach(Ze=>{he=Rp(Ze,he)}),_e.forEach((Ze,lt)=>{let Rt=Ze;if(xe[lt].parsedFile)Ze.status="uploading";else{let{originFileObj:Tt}=Ze,pt;try{pt=new File([Tt],Tt.name,{type:Tt.type})}catch{pt=new Blob([Tt],{type:Tt.type}),pt.name=Tt.name,pt.lastModifiedDate=new Date,pt.lastModified=new Date().getTime()}pt.uid=Ze.uid,Rt=pt}W(Rt,he)})},q=(se,xe,_e)=>{try{typeof se=="string"&&(se=JSON.parse(se))}catch{}if(!P0(xe,B))return;let he=Ep(xe);he.status="done",he.percent=100,he.response=se,he.xhr=_e;let Ze=Rp(he,B);W(he,Ze)},ne=(se,xe)=>{if(!P0(xe,B))return;let _e=Ep(xe);_e.status="uploading",_e.percent=se.percent;let he=Rp(_e,B);W(_e,he,se)},Y=(se,xe,_e)=>{if(!P0(_e,B))return;let he=Ep(_e);he.error=se,he.response=xe,he.status="error";let Ze=Rp(he,B);W(he,Ze)},X=se=>{let xe;Promise.resolve(typeof o=="function"?o(se):o).then(_e=>{var he;if(_e===!1)return;let Ze=v3(se,B);Ze&&(xe=Object.assign(Object.assign({},se),{status:"removed"}),B?.forEach(lt=>{let Rt=xe.uid!==void 0?"uid":"name";lt[Rt]===xe[Rt]&&!Object.isFrozen(lt)&&(lt.status="removed")}),(he=H.current)===null||he===void 0||he.abort(xe),W(xe,Ze))})},ae=se=>{V(se.type),se.type==="drop"&&u?.(se)};br.useImperativeHandle(t,()=>({onBatchStart:L,onSuccess:q,onProgress:ne,onError:Y,fileList:B,upload:H.current,nativeElement:K.current}));let{getPrefixCls:J,direction:U,upload:Q}=br.useContext(rt),te=J("upload",g),Z=Object.assign(Object.assign({onBatchStart:L,onError:Y,onProgress:ne,onSuccess:q},e),{data:R,multiple:P,action:I,accept:D,supportServerRender:$,prefixCls:te,disabled:z,beforeUpload:A,onChange:void 0,hasControlInside:O});delete Z.className,delete Z.style,(!b||z)&&delete Z.id;let re=`${te}-wrapper`,[de,le,pe]=h3(te,re),[Oe]=wa("Upload",Ri.Upload),{showRemoveIcon:Ce,showPreviewIcon:$e,showDownloadIcon:ce,removeIcon:ie,previewIcon:Re,downloadIcon:Le,extra:Ge}=typeof i=="boolean"?{}:i,Me=typeof Ce>"u"?!z:Ce,Ie=(se,xe)=>i?br.createElement(C3,{prefixCls:te,listType:a,items:B,previewFile:f,onPreview:s,onDownload:l,onRemove:X,showRemoveIcon:Me,showPreviewIcon:$e,showDownloadIcon:ce,removeIcon:ie,previewIcon:Re,downloadIcon:Le,iconRender:h,extra:Ge,locale:Object.assign(Object.assign({},Oe),m),isImageUrl:v,progress:y,appendAction:se,appendActionVisible:xe,itemRender:w,disabled:z}):se,je=(0,T0.default)(re,p,F,le,pe,Q?.className,{[`${te}-rtl`]:U==="rtl",[`${te}-picture-card-wrapper`]:a==="picture-card",[`${te}-picture-circle-wrapper`]:a==="picture-circle"}),We=Object.assign(Object.assign({},Q?.style),S);if(x==="drag"){let se=(0,T0.default)(le,te,`${te}-drag`,{[`${te}-drag-uploading`]:B.some(xe=>xe.status==="uploading"),[`${te}-drag-hover`]:G==="dragover",[`${te}-disabled`]:z,[`${te}-rtl`]:U==="rtl"});return de(br.createElement("span",{className:je,ref:K},br.createElement("div",{className:se,style:We,onDrop:ae,onDragOver:ae,onDragLeave:ae},br.createElement(qE,Object.assign({},Z,{ref:H,className:`${te}-btn`}),br.createElement("div",{className:`${te}-drag-container`},b))),Ie()))}let He=(0,T0.default)(te,`${te}-select`,{[`${te}-disabled`]:z,[`${te}-hidden`]:!b}),ye=br.createElement("div",{className:He,style:We},br.createElement(qE,Object.assign({},Z,{ref:H})));return de(a==="picture-card"||a==="picture-circle"?br.createElement("span",{className:je,ref:K},Ie(ye,!!b)):br.createElement("span",{className:je,ref:K},ye,Ie()))},_G=br.forwardRef(OG),N0=_G;var PG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{style:r,height:n,hasControlInside:o=!1}=e,i=PG(e,["style","height","hasControlInside"]);return I0.createElement(N0,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),w3=TG;var XE=N0;XE.Dragger=w3;XE.LIST_IGNORE=ef;var YE=XE;var _r=E(Or(),1),MG=()=>{let[e,t]=(0,_3.useState)(Xe.data.useSliderForNumberWidget),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()},n=()=>{location.href="https://gitee.com/zombieyang/sd-ppp/raw/main/static/sd-ppp2_PS.ccx?_="+Date.now()};return(0,_r.jsxs)("div",{className:"settings-container",children:[(0,_r.jsx)("h2",{children:me("SDPPP Settings/Misc")}),(0,_r.jsxs)("div",{className:"settings-section",children:[(0,_r.jsx)("div",{className:"settings-label",children:(0,_r.jsx)("label",{children:me("Comfy URL (You can copy it to connect ComfyUI in the plugin):")})}),(0,_r.jsx)("div",{className:"settings-control",children:location.href.split("?")[0].split("#")[0]})]}),(0,_r.jsxs)("div",{className:"settings-section settings-row",children:[(0,_r.jsx)("div",{className:"settings-label",children:(0,_r.jsx)("label",{children:me("Photoshop plugin")})}),(0,_r.jsx)("div",{className:"settings-control",children:(0,_r.jsx)("button",{onClick:r,className:"download-button",children:me("Download")})})]}),(0,_r.jsxs)("div",{className:"settings-section settings-row",children:[(0,_r.jsx)("div",{className:"settings-label",children:(0,_r.jsxs)("label",{children:[me("Photoshop plugin")," 2.0 Beta(CHN only)"]})}),(0,_r.jsx)("div",{className:"settings-control",children:(0,_r.jsx)("button",{onClick:n,className:"download-button",children:me("Download")})})]}),(0,_r.jsxs)("div",{className:"settings-section settings-row",children:[(0,_r.jsx)("div",{className:"settings-label",children:(0,_r.jsx)("label",{htmlFor:"maxImageSize",children:me("use slider for number widget:")})}),(0,_r.jsx)("div",{className:"settings-control",children:(0,_r.jsx)(cp,{id:"useSliderForNumberWidget",checked:e,onChange:o=>{t(o.target.checked),Xe.setUseSliderForNumberWidget(o.target.checked),an.storeSetting("sdppp.useSliderForNumberWidget",o.target.checked)}})})]})]})},P3=MG;var A5=E(N(),1);var Ql=E(N(),1);var T3=E(N(),1);function $0(e){return e=e||12,{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var An=E(Or(),1);function JE({widgetTableStructure:e,widgetTableValue:t,widgetTableErrors:r,onWidgetRender:n,onWidgetChange:o,onTitleRender:i}){let[a,s]=(0,Ql.useState)(0),l=(0,Ql.useMemo)(()=>e.nodeIndexes.map(d=>{let m=e.nodes[d],h=(p,x,b)=>p.keepRender?x.outputType==="error"?(p.result.push((0,An.jsx)("span",{className:"list-error-label",children:t[m.id][b]})),p):(n?.(p,m,x,b),p):p,v=Object.values(e.groups).find(p=>p.nodeIDs.includes(m.id)),y=v?.color||"rgba(127, 127, 127, .4)";if(a&&v?.id!==a)return null;let g=m.uiWeightSum<=8&&m.widgets.length==1&&(m.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,An.jsxs)("div",{className:"workflow-edit-field",children:[(0,An.jsx)("div",{className:"workflow-edit-field-title",title:m.title,style:{...$0(g?4:12),borderColor:y},children:i?i(m.title,m):(0,An.jsx)("span",{children:m.title})}),m.widgets.reduce(h,{keepRender:!0,result:[]}).result.map((p,x)=>(0,An.jsx)(QE,{children:p},x)),r[m.id]?(0,An.jsx)("span",{className:"list-error-label",children:r[m.id]}):""]},m.id)}).filter(Boolean),[e,t,r,n,o,i,a]),[c,u]=(0,Ql.useMemo)(()=>[Object.keys(r).filter(d=>e.nodes[parseInt(d)]),Object.keys(r).filter(d=>!e.nodes[parseInt(d)])],[r,e]),f=null;return u.length>0?f=(0,An.jsx)("span",{className:"list-error-label",children:r[+u[0]]}):c.length>0&&(f=(0,An.jsx)("span",{className:"list-error-label",children:r[+c[0]]})),(0,An.jsxs)(An.Fragment,{children:[f,Object.keys(e.nodes).length?"":(0,An.jsx)("span",{className:"list-error-label",children:me("no suitable node to control in this workflow")}),(0,An.jsx)("div",{className:"workflow-edit-content",children:l})]})}var QE=class extends Ql.default.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}render(){return this.state.hasError?(0,An.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var Jl=E(N(),1);var N3=E(N(),1);function Js(e){return(0,N3.useMemo)(()=>$0(e),[e])}var Zs=E(Or(),1),I3=({inputMin:e,inputMax:t,inputStep:r,name:n,value:o=0,uiWeight:i=1,extraOptions:a,onValueChange:s})=>{let l=Js(i||12),[c,u]=(0,Jl.useState)(+o.toFixed(3));(0,Jl.useEffect)(()=>{u(+o.toFixed(3))},[o]);let f=(0,Jl.useCallback)(h=>{if(h!==null){let v=+h.toFixed(3);u(v)}},[]),d=(0,Jl.useCallback)(()=>{s(c)},[c,s]);return!((t-e)/r>1e3)&&i>=1&&a?.useSliderForNumberWidget?(0,Zs.jsxs)(Ba,{style:{width:"100%",...l},align:"center",children:[(0,Zs.jsx)(OE,{style:{flex:1},min:e,max:t,step:r,value:c,onChange:f,onChangeComplete:d}),(0,Zs.jsx)(i0,{style:{width:80},min:e,max:t,step:r,value:c,onChange:f,onBlur:d,controls:!1})]}):(0,Zs.jsxs)(Ba,{style:{width:"100%",...l},align:"center",children:[n&&(0,Zs.jsx)("span",{style:{flex:1},children:n}),(0,Zs.jsx)(i0,{style:{width:"100%",flex:2},min:e,max:t,step:r,value:c,onChange:f,onBlur:d,controls:!1})]})};var Op=E(Or(),1),D3=({onSelectUpdate:e,options:t,value:r,name:n,uiWeight:o})=>{let i=s=>{let l=t.indexOf(s);e(s,l)},a=Js(o||12);return(0,Op.jsxs)(Ba,{style:{width:"100%",...a},align:"center",children:[n&&(0,Op.jsx)("span",{style:{flex:1},children:n}),(0,Op.jsx)(sp,{value:r,options:t.map(s=>({value:s,label:s})),style:{flex:2,minWidth:"100%"},onSelect:i,placeholder:me("select..."),showSearch:!0,filterOption:(s,l)=>(l?.label??"").toLowerCase().includes(s.toLowerCase())})]})};var A3=E(Or(),1),$3=({value:e,name:t,onValueChange:r,uiWeight:n})=>{let o=a=>{r(a.target.checked)},i=Js(n||12);return(0,A3.jsx)(cp,{checked:!!e,onChange:o,style:{...i},children:t||""})};var ZE=E(Or(),1),{TextArea:FG}=yp,k3=({value:e="",onValueChange:t,uiWeight:r})=>{let n=Js(r||12);return(0,ZE.jsx)("div",{className:"widget-container",style:n,children:(0,ZE.jsx)(FG,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var _p=E(N(),1);var A0=E(Or(),1);function M3({title:e,onTitleChange:t}){let[r,n]=(0,_p.useState)(!1),[o,i]=(0,_p.useState)(e);(0,_p.useEffect)(()=>{i(e)},[e]);let a=()=>{n(!0)};return r?(0,A0.jsx)(yp,{autoFocus:!0,value:o,onChange:u=>{i(u.target.value)},onBlur:()=>{n(!1),o!==e&&t&&t(o)},onKeyDown:u=>{u.key==="Enter"?(n(!1),o!==e&&t&&t(o)):u.key==="Escape"&&(n(!1),i(e))},size:"small",className:"workflow-edit-field-title-input"}):(0,A0.jsx)(Ma,{title:me("click to edit"),children:(0,A0.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:o})})}var F3=E(N()),LG=(0,F3.createContext)({}),k0=LG;var tc=E(N()),I5=E(Ne());var L3={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};var mn=Math.round;function eR(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var z3=(e,t,r)=>r===0?e:e/100;function Pp(e,t){let r=t||255;return e>r?r:e<0?0:e}var Zl=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var n=i;let o=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(i("rgb"))this.fromRgbString(o);else if(i("hsl"))this.fromHslString(o);else if(i("hsv")||i("hsb"))this.fromHsvString(o);else{let a=L3[o.toLowerCase()];a&&this.fromHexString(parseInt(a,36).toString(16).padStart(6,"0"))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Pp(t.r),this.g=Pp(t.g),this.b=Pp(t.b),this.a=typeof t.a=="number"?Pp(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=mn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){let n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:mn(i("r")),g:mn(i("g")),b:mn(i("b")),a:mn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>mn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=mn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=mn(this.getSaturation()*100),n=mn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){let o=this.clone();return o[t]=Pp(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){let d=mn(n*255);this.r=d,this.g=d,this.b=d}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=n-c/2;this.r=mn((i+f)*255),this.g=mn((a+f)*255),this.b=mn((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;let i=mn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=mn(n*(1-r)*255),u=mn(n*(1-r*l)*255),f=mn(n*(1-r*(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;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=eR(t,z3);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=eR(t,z3);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=eR(t,(n,o)=>o.includes("%")?mn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var M0=2,W3=.16,zG=.05,WG=.05,BG=.15,H3=5,U3=4,jG=[{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 B3(e,t,r){let n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-M0*t:Math.round(e.h)+M0*t:n=r?Math.round(e.h)+M0*t:Math.round(e.h)-M0*t,n<0?n+=360:n>=360&&(n-=360),n}function j3(e,t,r){if(e.h===0&&e.s===0)return e.s;let n;return r?n=e.s-W3*t:t===U3?n=e.s+W3:n=e.s+zG*t,n>1&&(n=1),r&&t===H3&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function V3(e,t,r){let n;return r?n=e.v+WG*t:n=e.v-BG*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function F0(e,t={}){let r=[],n=new Zl(e),o=n.toHsv();for(let i=H3;i>0;i-=1){let a=new Zl({h:B3(o,i,!0),s:j3(o,i,!0),v:V3(o,i,!0)});r.push(a)}r.push(n);for(let i=1;i<=U3;i+=1){let a=new Zl({h:B3(o,i),s:j3(o,i),v:V3(o,i)});r.push(a)}return t.theme==="dark"?jG.map(({index:i,amount:a})=>new Zl(t.backgroundColor||"#141414").mix(r[i],a).toHexString()):r.map(i=>i.toHexString())}var q3=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];q3.primary=q3[5];var G3=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];G3.primary=G3[5];var K3=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];K3.primary=K3[5];var X3=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];X3.primary=X3[5];var Y3=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Y3.primary=Y3[5];var Q3=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Q3.primary=Q3[5];var J3=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];J3.primary=J3[5];var Z3=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Z3.primary=Z3[5];var L0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];L0.primary=L0[5];var e5=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];e5.primary=e5[5];var t5=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];t5.primary=t5[5];var r5=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];r5.primary=r5[5];var n5=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];n5.primary=n5[5];var o5=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];o5.primary=o5[5];var i5=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];i5.primary=i5[5];var a5=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];a5.primary=a5[5];var s5=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];s5.primary=s5[5];var l5=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];l5.primary=l5[5];var c5=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];c5.primary=c5[5];var u5=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];u5.primary=u5[5];var f5=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];f5.primary=f5[5];var d5=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];d5.primary=d5[5];var p5=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];p5.primary=p5[5];var m5=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];m5.primary=m5[5];var g5=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];g5.primary=g5[5];var h5=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];h5.primary=h5[5];var T5=E(N());function tR(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rR(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}var v5="data-rc-order",y5="data-rc-priority",VG="rc-util-key",nR=new Map;function x5({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:VG}function oR(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function HG(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function iR(e){return Array.from((nR.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function b5(e,t={}){if(!tR())return null;let{csp:r,prepend:n,priority:o=0}=t,i=HG(n),a=i==="prependQueue",s=document.createElement("style");s.setAttribute(v5,i),a&&o&&s.setAttribute(y5,`${o}`),r?.nonce&&(s.nonce=r?.nonce),s.innerHTML=e;let l=oR(t),{firstChild:c}=l;if(n){if(a){let u=(t.styles||iR(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(v5)))return!1;let d=Number(f.getAttribute(y5)||0);return o>=d});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function UG(e,t={}){let{styles:r}=t;return r||=iR(oR(t)),r.find(n=>n.getAttribute(x5(t))===e)}function qG(e,t){let r=nR.get(e);if(!r||!rR(document,r)){let n=b5("",t),{parentNode:o}=n;nR.set(e,o),e.removeChild(n)}}function S5(e,t,r={}){let n=oR(r),o=iR(n),i={...r,styles:o};qG(n,i);let a=UG(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp?.nonce&&(a.nonce=i.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;let s=b5(e,i);return s.setAttribute(x5(i),t),s}function C5(e){return e?.getRootNode?.()}function GG(e){return C5(e)instanceof ShadowRoot}function w5(e){return GG(e)?C5(e):null}var aR={},KG=[],XG=e=>{KG.push(e)};function YG(e,t){}function QG(e,t){}function JG(){aR={}}function E5(e,t,r){!t&&!aR[r]&&(e(!1,r),aR[r]=!0)}function z0(e,t){E5(YG,e,t)}function ZG(e,t){E5(QG,e,t)}z0.preMessage=XG;z0.resetWarned=JG;z0.noteOnce=ZG;var R5=z0;var ec=E(N());function eK(e){return e.replace(/-(.)/g,(t,r)=>r.toUpperCase())}function _5(e,t){R5(e,`[@ant-design/icons] ${t}`)}function sR(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function O5(e={}){return Object.keys(e).reduce((t,r)=>{let n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[eK(r)]=n}return t},{})}function W0(e,t,r){return r?ec.default.createElement(e.tag,{key:t,...O5(e.attrs),...r},(e.children||[]).map((n,o)=>W0(n,`${t}-${e.tag}-${o}`))):ec.default.createElement(e.tag,{key:t,...O5(e.attrs)},(e.children||[]).map((n,o)=>W0(n,`${t}-${e.tag}-${o}`)))}function lR(e){return F0(e)[0]}function B0(e){return e?Array.isArray(e)?e:[e]:[]}var tK=` + `]:{zIndex:10,width:n,margin:`0 ${ie(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ie(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ie(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var xG=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},h3=xG;var bG=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},lr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},SG=e=>({actionsColor:e.colorIcon}),v3=Gt("Upload",e=>{let{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:o,calc:i}=e,a=ft(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[bG(a),f3(a),m3(a),g3(a),d3(a),p3(a),h3(a),Mw(a)]},SG);var qt=E(N());var XE=E(Ne());function Rp(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Op(e,t){let r=ne(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function N0(e,t){let r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function y3(e,t){let r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}var CG=(e="")=>{let t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},x3=e=>e.indexOf("image/")===0,b3=e=>{if(e.type&&!e.thumbUrl)return x3(e.type);let t=e.thumbUrl||e.url||"",r=CG(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Ys=200;function S3(e){return new Promise(t=>{if(!e.type||!x3(e.type)){t("");return}let r=document.createElement("canvas");r.width=Ys,r.height=Ys,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ys}px; height: ${Ys}px; z-index: 9999; display: none;`,document.body.appendChild(r);let n=r.getContext("2d"),o=new Image;if(o.onload=()=>{let{width:i,height:a}=o,s=Ys,l=Ys,c=0,u=0;i>a?(l=a*(Ys/i),u=-(l-s)/2):(s=i*(Ys/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);let f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var Bt=E(N());var Qs=E(Ne());var wG=Bt.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:f,showPreviewIcon:d,showRemoveIcon:m,showDownloadIcon:h,previewIcon:v,removeIcon:y,downloadIcon:g,extra:p,onPreview:x,onDownload:b,onClose:S},w)=>{var C,R;let{status:P}=i,[O,I]=Bt.useState(P);Bt.useEffect(()=>{P!=="removed"&&I(P)},[P]);let[D,$]=Bt.useState(!1);Bt.useEffect(()=>{let q=setTimeout(()=>{$(!0)},300);return()=>{clearTimeout(q)}},[]);let L=l(i),A=Bt.createElement("div",{className:`${e}-icon`},L);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(O==="uploading"||!i.thumbUrl&&!i.url){let q=(0,Qs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!=="uploading"});A=Bt.createElement("div",{className:q},L)}else{let q=f?.(i)?Bt.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):L,J=(0,Qs.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(i)});A=Bt.createElement("a",{className:J,onClick:re=>x(i,re),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}let M=(0,Qs.default)(`${e}-list-item`,`${e}-list-item-${O}`),W=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,B=(typeof m=="function"?m(i):m)?c((typeof y=="function"?y(i):y)||Bt.createElement(XL,null),()=>S(i),e,n.removeFile,!0):null,K=(typeof h=="function"?h(i):h)&&O==="done"?c((typeof g=="function"?g(i):g)||Bt.createElement(QL,null),()=>b(i),e,n.downloadFile):null,G=o!=="picture-card"&&o!=="picture-circle"&&Bt.createElement("span",{key:"download-delete",className:(0,Qs.default)(`${e}-list-item-actions`,{picture:o==="picture"})},K,B),V=typeof p=="function"?p(i):p,H=V&&Bt.createElement("span",{className:`${e}-list-item-extra`},V),j=(0,Qs.default)(`${e}-list-item-name`),k=i.url?Bt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:j,title:i.name},W,{href:i.url,onClick:q=>x(i,q)}),i.name,H):Bt.createElement("span",{key:"view",className:j,onClick:q=>x(i,q),title:i.name},i.name,H),z=(typeof d=="function"?d(i):d)&&(i.url||i.thumbUrl)?Bt.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:q=>x(i,q),title:n.previewFile},typeof v=="function"?v(i):v||Bt.createElement(v0,null)):null,U=(o==="picture-card"||o==="picture-circle")&&O!=="uploading"&&Bt.createElement("span",{className:`${e}-list-item-actions`},z,O==="done"&&K,B),{getPrefixCls:oe}=Bt.useContext(ot),Q=oe(),X=Bt.createElement("div",{className:M},A,k,G,U,D&&Bt.createElement(Uo,{motionName:`${Q}-fade`,visible:O==="uploading",motionDeadline:2e3},({className:q})=>{let J="percent"in i?Bt.createElement(GL,Object.assign({},s,{type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]})):null;return Bt.createElement("div",{className:(0,Qs.default)(`${e}-list-item-progress`,q)},J)})),se=i.response&&typeof i.response=="string"?i.response:((C=i.error)===null||C===void 0?void 0:C.statusText)||((R=i.error)===null||R===void 0?void 0:R.message)||n.uploadError,Z=O==="error"?Bt.createElement(Fa,{title:se,getPopupContainer:q=>q.parentNode},X):X;return Bt.createElement("div",{className:(0,Qs.default)(`${e}-list-item-container`,t),style:r,ref:w},u?u(Z,i,a,{download:b.bind(null,i),preview:x.bind(null,i),remove:S.bind(null,i)}):Z)}),C3=wG;var EG=(e,t)=>{let{listType:r="text",previewFile:n=S3,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=b3,prefixCls:u,items:f=[],showPreviewIcon:d=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,progress:x={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:S=!0,itemRender:w,disabled:C}=e,R=eE(),[P,O]=qt.useState(!1),I=["picture-card","picture-circle"].includes(r);qt.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(j=>{!(j.originFileObj instanceof File||j.originFileObj instanceof Blob)||j.thumbUrl!==void 0||(j.thumbUrl="",n?.(j.originFileObj).then(k=>{j.thumbUrl=k||"",R()}))})},[r,f,n]),qt.useEffect(()=>{O(!0)},[]);let D=(j,k)=>{if(o)return k?.preventDefault(),o(j)},$=j=>{typeof i=="function"?i(j):j.url&&window.open(j.url)},L=j=>{a?.(j)},A=j=>{if(l)return l(j,r);let k=j.status==="uploading";if(r.startsWith("picture")){let z=r==="picture"?qt.createElement(Fl,null):s.uploading,U=c?.(j)?qt.createElement(n3,null):qt.createElement(ZL,null);return k?z:U}return k?qt.createElement(Fl,null):qt.createElement(t3,null)},M=(j,k,z,U,oe)=>{let Q={type:"text",size:"small",title:U,onClick:X=>{var se,Z;k(),qt.isValidElement(j)&&((Z=(se=j.props).onClick)===null||Z===void 0||Z.call(se,X))},className:`${z}-list-item-action`,disabled:oe?C:!1};return qt.isValidElement(j)?qt.createElement(jd,Object.assign({},Q,{icon:Go(j,Object.assign(Object.assign({},j.props),{onClick:()=>{}}))})):qt.createElement(jd,Object.assign({},Q),qt.createElement("span",null,j))};qt.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:$}));let{getPrefixCls:W}=qt.useContext(ot),B=W("upload",u),K=W(),G=(0,XE.default)(`${B}-list`,`${B}-list-${r}`),V=qt.useMemo(()=>qr($D(K),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[K]),H=Object.assign(Object.assign({},I?{}:V),{motionDeadline:2e3,motionName:`${B}-${I?"animate-inline":"animate"}`,keys:ne(f.map(j=>({key:j.uid,file:j}))),motionAppear:P});return qt.createElement("div",{className:G},qt.createElement(mw,Object.assign({},H,{component:!1}),({key:j,file:k,className:z,style:U})=>qt.createElement(C3,{key:j,locale:s,prefixCls:B,className:z,style:U,file:k,items:f,progress:x,listType:r,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:m,showDownloadIcon:h,removeIcon:v,previewIcon:y,downloadIcon:g,extra:p,iconRender:A,actionIconRender:M,itemRender:w,onPreview:D,onDownload:$,onClose:L})),b&&qt.createElement(Uo,Object.assign({},H,{visible:S,forceRender:!0}),({className:j,style:k})=>Go(b,z=>({className:(0,XE.default)(z.className,j),style:Object.assign(Object.assign(Object.assign({},k),{pointerEvents:j?"none":void 0}),z.style)}))))},RG=qt.forwardRef(EG),w3=RG;var OG=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(f){a(f)}}function l(u){try{c(n.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})},ef=`__LIST_IGNORE_${Date.now()}__`,_G=(e,t)=>{let{fileList:r,defaultFileList:n,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:d,locale:m,iconRender:h,isImageUrl:v,progress:y,prefixCls:g,className:p,type:x="select",children:b,style:S,itemRender:w,maxCount:C,data:R={},multiple:P=!1,hasControlInside:O=!0,action:I="",accept:D="",supportServerRender:$=!0,rootClassName:L}=e,A=yr.useContext(Hr),M=d??A,[W,B]=sr(n||[],{value:r,postState:ae=>ae??[]}),[K,G]=yr.useState("drop"),V=yr.useRef(null),H=yr.useRef(null);yr.useMemo(()=>{let ae=Date.now();(r||[]).forEach((ge,Te)=>{!ge.uid&&!Object.isFrozen(ge)&&(ge.uid=`__AUTO__${ae}_${Te}__`)})},[r]);let j=(ae,ge,Te)=>{let he=ne(ge),Ze=!1;C===1?he=he.slice(-1):C&&(Ze=he.length>C,he=he.slice(0,C)),(0,YE.flushSync)(()=>{B(he)});let ct={file:ae,fileList:he};Te&&(ct.event=Te),(!Ze||ae.status==="removed"||he.some(_t=>_t.uid===ae.uid))&&(0,YE.flushSync)(()=>{c?.(ct)})},k=(ae,ge)=>OG(void 0,void 0,void 0,function*(){let{beforeUpload:Te,transformFile:he}=e,Ze=ae;if(Te){let ct=yield Te(ae,ge);if(ct===!1)return!1;if(delete ae[ef],ct===ef)return Object.defineProperty(ae,ef,{value:!0,configurable:!0}),!1;typeof ct=="object"&&ct&&(Ze=ct)}return he&&(Ze=yield he(Ze)),Ze}),z=ae=>{let ge=ae.filter(Ze=>!Ze.file[ef]);if(!ge.length)return;let Te=ge.map(Ze=>Rp(Ze.file)),he=ne(W);Te.forEach(Ze=>{he=Op(Ze,he)}),Te.forEach((Ze,ct)=>{let _t=Ze;if(ge[ct].parsedFile)Ze.status="uploading";else{let{originFileObj:Pt}=Ze,mt;try{mt=new File([Pt],Pt.name,{type:Pt.type})}catch{mt=new Blob([Pt],{type:Pt.type}),mt.name=Pt.name,mt.lastModifiedDate=new Date,mt.lastModified=new Date().getTime()}mt.uid=Ze.uid,_t=mt}j(_t,he)})},U=(ae,ge,Te)=>{try{typeof ae=="string"&&(ae=JSON.parse(ae))}catch{}if(!N0(ge,W))return;let he=Rp(ge);he.status="done",he.percent=100,he.response=ae,he.xhr=Te;let Ze=Op(he,W);j(he,Ze)},oe=(ae,ge)=>{if(!N0(ge,W))return;let Te=Rp(ge);Te.status="uploading",Te.percent=ae.percent;let he=Op(Te,W);j(Te,he,ae)},Q=(ae,ge,Te)=>{if(!N0(Te,W))return;let he=Rp(Te);he.error=ae,he.response=ge,he.status="error";let Ze=Op(he,W);j(he,Ze)},X=ae=>{let ge;Promise.resolve(typeof o=="function"?o(ae):o).then(Te=>{var he;if(Te===!1)return;let Ze=y3(ae,W);Ze&&(ge=Object.assign(Object.assign({},ae),{status:"removed"}),W?.forEach(ct=>{let _t=ge.uid!==void 0?"uid":"name";ct[_t]===ge[_t]&&!Object.isFrozen(ct)&&(ct.status="removed")}),(he=V.current)===null||he===void 0||he.abort(ge),j(ge,Ze))})},se=ae=>{G(ae.type),ae.type==="drop"&&u?.(ae)};yr.useImperativeHandle(t,()=>({onBatchStart:z,onSuccess:U,onProgress:oe,onError:Q,fileList:W,upload:V.current,nativeElement:H.current}));let{getPrefixCls:Z,direction:q,upload:J}=yr.useContext(ot),re=Z("upload",g),ee=Object.assign(Object.assign({onBatchStart:z,onError:Q,onProgress:oe,onSuccess:U},e),{data:R,multiple:P,action:I,accept:D,supportServerRender:$,prefixCls:re,disabled:M,beforeUpload:k,onChange:void 0,hasControlInside:O});delete ee.className,delete ee.style,(!b||M)&&delete ee.id;let te=`${re}-wrapper`,[de,fe,ue]=v3(re,te),[Ce]=Ea("Upload",Ei.Upload),{showRemoveIcon:we,showPreviewIcon:_e,showDownloadIcon:ve,removeIcon:Y,previewIcon:Ee,downloadIcon:$e,extra:et}=typeof i=="boolean"?{}:i,ke=typeof we>"u"?!M:we,Se=(ae,ge)=>i?yr.createElement(w3,{prefixCls:re,listType:a,items:W,previewFile:f,onPreview:s,onDownload:l,onRemove:X,showRemoveIcon:ke,showPreviewIcon:_e,showDownloadIcon:ve,removeIcon:Y,previewIcon:Ee,downloadIcon:$e,iconRender:h,extra:et,locale:Object.assign(Object.assign({},Ce),m),isImageUrl:v,progress:y,appendAction:ae,appendActionVisible:ge,itemRender:w,disabled:M}):ae,Be=(0,I0.default)(te,p,L,fe,ue,J?.className,{[`${re}-rtl`]:q==="rtl",[`${re}-picture-card-wrapper`]:a==="picture-card",[`${re}-picture-circle-wrapper`]:a==="picture-circle"}),Fe=Object.assign(Object.assign({},J?.style),S);if(x==="drag"){let ae=(0,I0.default)(fe,re,`${re}-drag`,{[`${re}-drag-uploading`]:W.some(ge=>ge.status==="uploading"),[`${re}-drag-hover`]:K==="dragover",[`${re}-disabled`]:M,[`${re}-rtl`]:q==="rtl"});return de(yr.createElement("span",{className:Be,ref:H},yr.createElement("div",{className:ae,style:Fe,onDrop:se,onDragOver:se,onDragLeave:se},yr.createElement(KE,Object.assign({},ee,{ref:V,className:`${re}-btn`}),yr.createElement("div",{className:`${re}-drag-container`},b))),Se()))}let Ue=(0,I0.default)(re,`${re}-select`,{[`${re}-disabled`]:M,[`${re}-hidden`]:!b}),Re=yr.createElement("div",{className:Ue,style:Fe},yr.createElement(KE,Object.assign({},ee,{ref:V})));return de(a==="picture-card"||a==="picture-circle"?yr.createElement("span",{className:Be,ref:H},Se(Re,!!b)):yr.createElement("span",{className:Be,ref:H},Re,Se()))},PG=yr.forwardRef(_G),D0=PG;var TG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{var{style:r,height:n,hasControlInside:o=!1}=e,i=TG(e,["style","height","hasControlInside"]);return $0.createElement(D0,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),E3=NG;var QE=D0;QE.Dragger=E3;QE.LIST_IGNORE=ef;var JE=QE;var Pr=E(_r(),1),FG=()=>{let[e,t]=(0,P3.useState)(Xe.data.useSliderForNumberWidget),r=()=>{location.href="/sd-ppp-static/sd-ppp_PS.ccx?_="+Date.now()},n=()=>{location.href="https://gitee.com/zombieyang/sd-ppp/raw/main/static/sd-ppp2_PS.ccx?_="+Date.now()};return(0,Pr.jsxs)("div",{className:"settings-container",children:[(0,Pr.jsx)("h2",{children:pe("SDPPP Settings/Misc")}),(0,Pr.jsxs)("div",{className:"settings-section",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{children:pe("Comfy URL (You can copy it to connect ComfyUI in the plugin):")})}),(0,Pr.jsx)("div",{className:"settings-control",children:location.href.split("?")[0].split("#")[0]})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{children:pe("Photoshop plugin")})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:r,className:"download-button",children:pe("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsxs)("label",{children:[pe("Photoshop plugin")," 2.0 Beta(CHN only)"]})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)("button",{onClick:n,className:"download-button",children:pe("Download")})})]}),(0,Pr.jsxs)("div",{className:"settings-section settings-row",children:[(0,Pr.jsx)("div",{className:"settings-label",children:(0,Pr.jsx)("label",{htmlFor:"maxImageSize",children:pe("use slider for number widget:")})}),(0,Pr.jsx)("div",{className:"settings-control",children:(0,Pr.jsx)(up,{id:"useSliderForNumberWidget",checked:e,onChange:o=>{t(o.target.checked),Xe.setUseSliderForNumberWidget(o.target.checked),nn.storeSetting("sdppp.useSliderForNumberWidget",o.target.checked)}})})]})]})},T3=FG;var k5=E(N(),1);var Zl=E(N(),1);var N3=E(N(),1);function k0(e){return e=e||12,{flex:`${e} 0 calc(${e/12*100}% - 10px)`,maxWidth:"100%"}}var Mn=E(_r(),1);function eR({widgetTableStructure:e,widgetTableValue:t,widgetTableErrors:r,onWidgetRender:n,onWidgetChange:o,onTitleRender:i}){let[a,s]=(0,Zl.useState)(0),l=(0,Zl.useMemo)(()=>e.nodeIndexes.map(d=>{let m=e.nodes[d],h=(p,x,b)=>p.keepRender?x.outputType==="error"?(p.result.push((0,Mn.jsx)("span",{className:"list-error-label",children:t[m.id][b]})),p):(n?.(p,m,x,b),p):p,v=Object.values(e.groups).find(p=>p.nodeIDs.includes(m.id)),y=v?.color||"rgba(127, 127, 127, .4)";if(a&&v?.id!==a)return null;let g=m.uiWeightSum<=8&&m.widgets.length==1&&(m.widgets[0].outputType!=="number"||!e.extraOptions?.useSliderForNumberWidget);return(0,Mn.jsxs)("div",{className:"workflow-edit-field",children:[(0,Mn.jsx)("div",{className:"workflow-edit-field-title",title:m.title,style:{...k0(g?4:12),borderColor:y},children:i?i(m.title,m):(0,Mn.jsx)("span",{children:m.title})}),m.widgets.reduce(h,{keepRender:!0,result:[]}).result.map((p,x)=>(0,Mn.jsx)(ZE,{children:p},x)),r[m.id]?(0,Mn.jsx)("span",{className:"list-error-label",children:r[m.id]}):""]},m.id)}).filter(Boolean),[e,t,r,n,o,i,a]),[c,u]=(0,Zl.useMemo)(()=>[Object.keys(r).filter(d=>e.nodes[parseInt(d)]),Object.keys(r).filter(d=>!e.nodes[parseInt(d)])],[r,e]),f=null;return u.length>0?f=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+u[0]]}):c.length>0&&(f=(0,Mn.jsx)("span",{className:"list-error-label",children:r[+c[0]]})),(0,Mn.jsxs)(Mn.Fragment,{children:[f,Object.keys(e.nodes).length?"":(0,Mn.jsx)("span",{className:"list-error-label",children:pe("no suitable node to control in this workflow")}),(0,Mn.jsx)("div",{className:"workflow-edit-content",children:l})]})}var ZE=class extends Zl.default.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.setState({hasError:!0,error:t})}render(){return this.state.hasError?(0,Mn.jsx)("span",{className:"list-error-label",children:this.state.error?.stack||this.state.error?.message||this.state.error?.toString()}):this.props.children}};var ec=E(N(),1);var I3=E(N(),1);function Js(e){return(0,I3.useMemo)(()=>k0(e),[e])}var Zs=E(_r(),1),D3=({inputMin:e,inputMax:t,inputStep:r,name:n,value:o=0,uiWeight:i=1,extraOptions:a,onValueChange:s})=>{let l=Js(i||12),[c,u]=(0,ec.useState)(+o.toFixed(3));(0,ec.useEffect)(()=>{u(+o.toFixed(3))},[o]);let f=(0,ec.useCallback)(h=>{if(h!==null){let v=+h.toFixed(3);u(v)}},[]),d=(0,ec.useCallback)(()=>{s(c)},[c,s]);return!((t-e)/r>1e3)&&i>=1&&a?.useSliderForNumberWidget?(0,Zs.jsxs)(ja,{style:{width:"100%",...l},align:"center",children:[(0,Zs.jsx)(PE,{style:{flex:1},min:e,max:t,step:r,value:c,onChange:f,onChangeComplete:d}),(0,Zs.jsx)(s0,{style:{width:80},min:e,max:t,step:r,value:c,onChange:f,onBlur:d,controls:!1})]}):(0,Zs.jsxs)(ja,{style:{width:"100%",...l},align:"center",children:[n&&(0,Zs.jsx)("span",{style:{flex:1},children:n}),(0,Zs.jsx)(s0,{style:{width:"100%",flex:2},min:e,max:t,step:r,value:c,onChange:f,onBlur:d,controls:!1})]})};var _p=E(_r(),1),$3=({onSelectUpdate:e,options:t,value:r,name:n,uiWeight:o})=>{let i=s=>{let l=t.indexOf(s);e(s,l)},a=Js(o||12);return(0,_p.jsxs)(ja,{style:{width:"100%",...a},align:"center",children:[n&&(0,_p.jsx)("span",{style:{flex:1},children:n}),(0,_p.jsx)(lp,{value:r,options:t.map(s=>({value:s,label:s})),style:{flex:2,minWidth:"100%"},onSelect:i,placeholder:pe("select..."),showSearch:!0,filterOption:(s,l)=>(l?.label??"").toLowerCase().includes(s.toLowerCase())})]})};var k3=E(_r(),1),A3=({value:e,name:t,onValueChange:r,uiWeight:n})=>{let o=a=>{r(a.target.checked)},i=Js(n||12);return(0,k3.jsx)(up,{checked:!!e,onChange:o,style:{...i},children:t||""})};var tR=E(_r(),1),{TextArea:LG}=xp,M3=({value:e="",onValueChange:t,uiWeight:r})=>{let n=Js(r||12);return(0,tR.jsx)("div",{className:"widget-container",style:n,children:(0,tR.jsx)(LG,{value:e,onChange:i=>{t(i.target.value)},autoSize:{minRows:1}})})};var Pp=E(N(),1);var M0=E(_r(),1);function F3({title:e,onTitleChange:t}){let[r,n]=(0,Pp.useState)(!1),[o,i]=(0,Pp.useState)(e);(0,Pp.useEffect)(()=>{i(e)},[e]);let a=()=>{n(!0)};return r?(0,M0.jsx)(xp,{autoFocus:!0,value:o,onChange:u=>{i(u.target.value)},onBlur:()=>{n(!1),o!==e&&t&&t(o)},onKeyDown:u=>{u.key==="Enter"?(n(!1),o!==e&&t&&t(o)):u.key==="Escape"&&(n(!1),i(e))},size:"small",className:"workflow-edit-field-title-input"}):(0,M0.jsx)(Fa,{title:pe("click to edit"),children:(0,M0.jsx)("span",{onClick:a,style:{cursor:"pointer"},children:o})})}var L3=E(N()),zG=(0,L3.createContext)({}),F0=zG;var nc=E(N()),D5=E(Ne());var z3={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};var dn=Math.round;function rR(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}var W3=(e,t,r)=>r===0?e:e/100;function Tp(e,t){let r=t||255;return e>r?r:e<0?0:e}var tc=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let i=function(a){return o.startsWith(a)};var n=i;let o=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(i("rgb"))this.fromRgbString(o);else if(i("hsl"))this.fromHslString(o);else if(i("hsv")||i("hsb"))this.fromHsvString(o);else{let a=z3[o.toLowerCase()];a&&this.fromHexString(parseInt(a,36).toString(16).padStart(6,"0"))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Tp(t.r),this.g=Tp(t.g),this.b=Tp(t.b),this.a=typeof t.a=="number"?Tp(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){let a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}let r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=dn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){let n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:dn(i("r")),g:dn(i("g")),b:dn(i("b")),a:dn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>dn((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){let i=dn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=dn(this.getSaturation()*100),n=dn(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){let o=this.clone();return o[t]=Tp(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){let d=dn(n*255);this.r=d,this.g=d,this.b=d}let i=0,a=0,s=0,l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);let f=n-c/2;this.r=dn((i+f)*255),this.g=dn((a+f)*255),this.b=dn((s+f)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;let i=dn(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;let a=t/60,s=Math.floor(a),l=a-s,c=dn(n*(1-r)*255),u=dn(n*(1-r*l)*255),f=dn(n*(1-r*(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;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){let r=rR(t,W3);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=rR(t,W3);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=rR(t,(n,o)=>o.includes("%")?dn(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var L0=2,B3=.16,WG=.05,BG=.05,jG=.15,U3=5,q3=4,VG=[{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 j3(e,t,r){let n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-L0*t:Math.round(e.h)+L0*t:n=r?Math.round(e.h)+L0*t:Math.round(e.h)-L0*t,n<0?n+=360:n>=360&&(n-=360),n}function V3(e,t,r){if(e.h===0&&e.s===0)return e.s;let n;return r?n=e.s-B3*t:t===q3?n=e.s+B3:n=e.s+WG*t,n>1&&(n=1),r&&t===U3&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function H3(e,t,r){let n;return r?n=e.v+BG*t:n=e.v-jG*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function z0(e,t={}){let r=[],n=new tc(e),o=n.toHsv();for(let i=U3;i>0;i-=1){let a=new tc({h:j3(o,i,!0),s:V3(o,i,!0),v:H3(o,i,!0)});r.push(a)}r.push(n);for(let i=1;i<=q3;i+=1){let a=new tc({h:j3(o,i),s:V3(o,i),v:H3(o,i)});r.push(a)}return t.theme==="dark"?VG.map(({index:i,amount:a})=>new tc(t.backgroundColor||"#141414").mix(r[i],a).toHexString()):r.map(i=>i.toHexString())}var G3=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];G3.primary=G3[5];var K3=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];K3.primary=K3[5];var X3=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];X3.primary=X3[5];var Y3=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Y3.primary=Y3[5];var Q3=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Q3.primary=Q3[5];var J3=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];J3.primary=J3[5];var Z3=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Z3.primary=Z3[5];var e5=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];e5.primary=e5[5];var W0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];W0.primary=W0[5];var t5=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];t5.primary=t5[5];var r5=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];r5.primary=r5[5];var n5=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];n5.primary=n5[5];var o5=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];o5.primary=o5[5];var i5=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];i5.primary=i5[5];var a5=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];a5.primary=a5[5];var s5=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];s5.primary=s5[5];var l5=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];l5.primary=l5[5];var c5=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];c5.primary=c5[5];var u5=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];u5.primary=u5[5];var f5=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];f5.primary=f5[5];var d5=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];d5.primary=d5[5];var p5=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];p5.primary=p5[5];var m5=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];m5.primary=m5[5];var g5=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];g5.primary=g5[5];var h5=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];h5.primary=h5[5];var v5=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];v5.primary=v5[5];var N5=E(N());function nR(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oR(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}var y5="data-rc-order",x5="data-rc-priority",HG="rc-util-key",iR=new Map;function b5({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:HG}function aR(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function UG(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sR(e){return Array.from((iR.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function S5(e,t={}){if(!nR())return null;let{csp:r,prepend:n,priority:o=0}=t,i=UG(n),a=i==="prependQueue",s=document.createElement("style");s.setAttribute(y5,i),a&&o&&s.setAttribute(x5,`${o}`),r?.nonce&&(s.nonce=r?.nonce),s.innerHTML=e;let l=aR(t),{firstChild:c}=l;if(n){if(a){let u=(t.styles||sR(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(y5)))return!1;let d=Number(f.getAttribute(x5)||0);return o>=d});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function qG(e,t={}){let{styles:r}=t;return r||=sR(aR(t)),r.find(n=>n.getAttribute(b5(t))===e)}function GG(e,t){let r=iR.get(e);if(!r||!oR(document,r)){let n=S5("",t),{parentNode:o}=n;iR.set(e,o),e.removeChild(n)}}function C5(e,t,r={}){let n=aR(r),o=sR(n),i={...r,styles:o};GG(n,i);let a=qG(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp?.nonce&&(a.nonce=i.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;let s=S5(e,i);return s.setAttribute(b5(i),t),s}function w5(e){return e?.getRootNode?.()}function KG(e){return w5(e)instanceof ShadowRoot}function E5(e){return KG(e)?w5(e):null}var lR={},XG=[],YG=e=>{XG.push(e)};function QG(e,t){}function JG(e,t){}function ZG(){lR={}}function R5(e,t,r){!t&&!lR[r]&&(e(!1,r),lR[r]=!0)}function B0(e,t){R5(QG,e,t)}function eK(e,t){R5(JG,e,t)}B0.preMessage=YG;B0.resetWarned=ZG;B0.noteOnce=eK;var O5=B0;var rc=E(N());function tK(e){return e.replace(/-(.)/g,(t,r)=>r.toUpperCase())}function P5(e,t){O5(e,`[@ant-design/icons] ${t}`)}function cR(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function _5(e={}){return Object.keys(e).reduce((t,r)=>{let n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[tK(r)]=n}return t},{})}function j0(e,t,r){return r?rc.default.createElement(e.tag,{key:t,..._5(e.attrs),...r},(e.children||[]).map((n,o)=>j0(n,`${t}-${e.tag}-${o}`))):rc.default.createElement(e.tag,{key:t,..._5(e.attrs)},(e.children||[]).map((n,o)=>j0(n,`${t}-${e.tag}-${o}`)))}function uR(e){return z0(e)[0]}function V0(e){return e?Array.isArray(e)?e:[e]:[]}var rK=` .anticon { display: inline-flex; align-items: center; @@ -572,10 +572,10 @@ html body { transform: rotate(360deg); } } -`,P5=e=>{let{csp:t,prefixCls:r,layer:n}=(0,ec.useContext)(k0),o=tK;r&&(o=o.replace(/anticon/g,r)),n&&(o=`@layer ${n} { +`,T5=e=>{let{csp:t,prefixCls:r,layer:n}=(0,rc.useContext)(F0),o=rK;r&&(o=o.replace(/anticon/g,r)),n&&(o=`@layer ${n} { ${o} -}`),(0,ec.useEffect)(()=>{let i=e.current,a=w5(i);S5(o,"@ant-design-icons",{prepend:!n,csp:t,attachTo:a})},[])};var Tp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function rK({primaryColor:e,secondaryColor:t}){Tp.primaryColor=e,Tp.secondaryColor=t||lR(e),Tp.calculated=!!t}function nK(){return{...Tp}}var j0=e=>{let{icon:t,className:r,onClick:n,style:o,primaryColor:i,secondaryColor:a,...s}=e,l=T5.useRef(),c=Tp;if(i&&(c={primaryColor:i,secondaryColor:a||lR(i)}),P5(l),_5(sR(t),`icon should be icon definiton, but got ${t}`),!sR(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),W0(u.icon,`svg-${u.name}`,{className:r,onClick:n,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};j0.displayName="IconReact";j0.getTwoToneColors=nK;j0.setTwoToneColors=rK;var Np=j0;function cR(e){let[t,r]=B0(e);return Np.setTwoToneColors({primaryColor:t,secondaryColor:r})}function N5(){let e=Np.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function uR(){return uR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:r,icon:n,spin:o,rotate:i,tabIndex:a,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:f}=tc.useContext(k0),d=(0,I5.default)(f,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!o||n.name==="loading"},r),m=a;m===void 0&&s&&(m=-1);let h=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[v,y]=B0(l);return tc.createElement("span",uR({role:"img","aria-label":n.name},c,{ref:t,tabIndex:m,onClick:s,className:d}),tc.createElement(Np,{icon:n,primaryColor:v,secondaryColor:y,style:h}))});V0.displayName="AntdIcon";V0.getTwoToneColor=N5;V0.setTwoToneColor=cR;var H0=V0;var U0=E(N());function fR(){return fR=Object.assign?Object.assign.bind():function(e){for(var t=1;tU0.createElement(H0,fR({},e,{ref:t,icon:hv})),iK=U0.forwardRef(oK),dR=iK;var q0=E(N());function pR(){return pR=Object.assign?Object.assign.bind():function(e){for(var t=1;tq0.createElement(H0,pR({},e,{ref:t,icon:n3})),sK=q0.forwardRef(aK),mR=sK;var ja=E(Or(),1),D5=({value:e,onValueChange:t,options:r,nodeID:n})=>{let o=a=>{if(a.file.status==="done"){let s=a.file.response.name;t?.(s)}},i=mt.graph.nodes.find(a=>a.id===e);return(0,ja.jsxs)(Ba,{gap:5,align:"stretch",vertical:!0,children:[(0,ja.jsxs)(Ba,{gap:5,vertical:!0,children:[(0,ja.jsx)(sp,{style:{flex:1},value:e,onChange:a=>{t?.(a)},options:r.map(a=>({label:a.split("/").pop(),value:a}))}),(0,ja.jsx)(YE,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:a=>({image:a}),children:(0,ja.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,ja.jsx)(mR,{})," ",me("upload")]})})]}),e&&(0,ja.jsx)("img",{src:`./api/view?filename=${e}&type=input&subfolder=${e.startsWith("clipspace/")?"clipspace/":""}&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain",cursor:"pointer"},onClick:a=>{mt.constructor.copyToClipspace(mt.graph.nodes.find(s=>s.id===n)),mt.constructor.clipspace_return_node=mt.graph.nodes.find(s=>s.id===n),mt.constructor.open_maskeditor()}})]})};var ia=E(Or(),1),$5=window.comfyAPI.api.api,tf=class extends A5.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},widgetTableStructure:Xe.data.widgetTableStructure,widgetTableValue:Xe.data.widgetTableValue,widgetTableErrors:Xe.data.widgetTableErrors};eventListeners=[];unsubscribes=[];constructor(t){super(t);let r=(a,s)=>{$5.addEventListener(a,s),this.eventListeners.push({event:a,handler:s})};r("progress",({detail:a})=>{if(!a||isNaN(a.value/a.max))return;let s=Math.round(a.value/a.max*100);this.setState({comfyStatus:{...this.state.comfyStatus,progress:s}})}),r("status",a=>{a.detail?.exec_info&&this.setState({comfyStatus:{...this.state.comfyStatus,queueSize:a.detail.exec_info.queue_remaining}})}),r("execution_error",({detail:a})=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:a.exception_message,executingNodeTitle:""}})}),r("execution_start",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:"",progress:0,executingNodeTitle:""}})}),r("executing",a=>{let s=a.detail,l=app.graph.nodes.find(c=>c.id==s);l&&this.setState({comfyStatus:{...this.state.comfyStatus,executingNodeTitle:l.title}})}),r("execution_success",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})}),r("execution_interrupted",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})});let n=a=>{this.setState({widgetTableStructure:a})};Xe.subscribe("/widgetTableStructure",n);let o=a=>{this.setState({widgetTableValue:a})};Xe.subscribe("/widgetTableValue",o);let i=a=>{this.setState({widgetTableErrors:a})};Xe.subscribe("/widgetTableErrors",i),this.unsubscribes.push(()=>{Xe.unsubscribe(n),Xe.unsubscribe(o),Xe.unsubscribe(i)})}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{$5.removeEventListener(t,r)}),this.unsubscribes.forEach(t=>t())}render(){let t={widgetTableStructure:this.state.widgetTableStructure,widgetTableValue:this.state.widgetTableValue,widgetTableErrors:this.state.widgetTableErrors,onWidgetChange:async(n,o,i,a)=>{let s=app.graph.nodes.find(l=>l.id==n);s&&rm(s,o,i)},onWidgetRender:(n,o,i,a)=>{if(i.outputType==="number"){let s=i.options?.min??0,l=i.options?.max??100,c=i.options?.step??1;return n.result.push((0,ia.jsx)(I3,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,name:i.name,value:parseFloat(this.state.widgetTableValue[o.id][a]),onValueChange:u=>{t.onWidgetChange(o.id,a,u,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}else{if(i.outputType==="combo")return n.result.push((0,ia.jsx)(D3,{uiWeight:i.uiWeight||12,options:i.options?.values||[],name:i.name,onSelectUpdate:s=>{t.onWidgetChange(o.id,a,s,o)},value:this.state.widgetTableValue[o.id][a],extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="toggle")return n.result.push((0,ia.jsx)($3,{uiWeight:i.uiWeight||12,name:i.name,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="string"||i.outputType==="customtext"||i.outputType==="text")return n.result.push((0,ia.jsx)(k3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return n.result.push((0,ia.jsx)("p",{children:me("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return n.result.push((0,ia.jsx)(D5,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(o.id,a,s,o)},nodeID:o.id,extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}return!0},onTitleRender:(n,o)=>(0,ia.jsx)(M3,{title:n,onTitleChange:i=>{jn.instance.setNodeTitle({node_id:o.id,title:i})}})},r=12;return(0,ia.jsx)(Ia,{theme:{components:{Input:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"},Select:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)",colorBgElevated:"var(--p-form-field-background)",colorTextDescription:"var(--p-form-field-color)",controlItemBgActive:"var(--p-form-field-background)",controlItemBgHover:"var(--p-form-field-border-color)"},Checkbox:{fontSize:r,colorText:"var(--p-form-field-color)"},Radio:{fontSize:r},Slider:{fontSize:r},Switch:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)"},InputNumber:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"}}},children:(0,ia.jsx)(JE,{...t})})}};var kn=E(Or(),1),k5=document.createElement("style");k5.innerHTML=ZT;document.head.appendChild(k5);function gR({onClose:e,tab:t}){let[r,n]=(0,rf.useState)("1"),[o,i]=(0,rf.useState)(0);return(0,rf.useEffect)(()=>{n(t)},[t]),(0,rf.useEffect)(()=>{let a=document.getElementById("graph-canvas"),s=0,l,c=()=>{if(s++,s%3===0&&a){let u=document.querySelector(".side-bar-panel");u&&u.style.display!=="none"?i(u.clientWidth):i(0)}l=requestAnimationFrame(c)};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}},[]),(0,kn.jsx)(Ia,{theme:{token:{colorText:"var(--fg-color)",colorBgContainer:"var(--comfy-input-bg)",colorBgElevated:"var(--comfy-input-bg)",colorFillSecondary:"var(--comfy-input-bg)",controlItemBgHover:"var(--comfy-input-bg)",colorBgTextHover:"var(--comfy-input-bg)",colorBorder:"var(--p-inputtext-border-color)"}},children:(0,kn.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,kn.jsxs)("div",{className:"sdppp-menu-header",children:[(0,kn.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,kn.jsx)("button",{onClick:()=>n("1"),className:r==="1"?"active":"",children:me("Simplify Workflow")}),(0,kn.jsx)("button",{onClick:()=>n("2"),className:r==="2"?"active":"",children:me("Photoshop")})]}),(0,kn.jsx)("span",{children:"Powered by SDPPP"}),(0,kn.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,kn.jsx)(dR,{})})]}),(0,kn.jsxs)("div",{className:"sdppp-menu-content",children:[(0,kn.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:r==="1"?"block":"none"},children:(0,kn.jsx)(tf,{})}),(0,kn.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:r==="2"?"block":"none"},children:(0,kn.jsx)(P3,{})})]})]})})}var rc=E(Or(),1);function hR({onMaximize:e,onPhotoshop:t}){return(0,rc.jsxs)("div",{className:"sdppp-side-container",children:[(0,rc.jsxs)("div",{className:"sdppp-side-header",children:[(0,rc.jsx)("button",{className:"sdppp-photoshop-icon",onClick:t}),(0,rc.jsx)("button",{className:"pi pi-window-maximize",onClick:e})]}),(0,rc.jsx)(tf,{})]})}var M5=null,lK=null,vR=null;async function bR(e){if(!M5){let t=document.createElement("div");t.id="sdppp-popup-root",t.style.display="none",document.getElementById("graph-canvas-container")?.prepend(t),e.extensionManager.registerSidebarTab({id:"sdppp",title:"SD-PPP",tooltip:"SD-PPP Workflow UI",icon:"sdppp-side-icon",type:"custom",render:r=>{lK||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,yR.createRoot)(r).render((0,xR.createElement)(hR,{onMaximize:()=>{n("1")},onPhotoshop:()=>{n("2")}}))),t.style.display="none";function n(o){M5?vR.props.tab=o:(vR=(0,xR.createElement)(gR,{onClose:()=>{t.style.display="none"},tab:o}),(0,yR.createRoot)(t).render(vR)),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}})}}an.addEventListener("graphChanged",e=>{let r=(mt.workflowManager||mt.extensionManager.workflow).activeWorkflow;if(e.detail.id!==r.activeState.id)return;let n=Xe.data.widgetTableStructure,o=nm(mt.graph,r);B5(o,n)&&Xe.setWidgetTableStructure(o),Xe.setWidgetTableValue(vf(mt.graph))});an.addEventListener("executed",()=>{Xe.setWidgetTableValue(vf(mt.graph))});var F5=0,L5=!0,z5="";function W5(){requestAnimationFrame(W5);let e=mt.workflowManager||mt.extensionManager.workflow,t=e.activeWorkflow,r=t?.id||0,n=t?.path||"",o=t?.isPersisted||!0;if(r===F5&&n===z5&&o===L5)return;F5=r,z5=n,L5=o;let i=nm(mt.graph,t),a=vf(mt.graph);Xe.setWidgetTableStructure(i),Xe.setWidgetTableValue(a),setTimeout(()=>{if(t!==e.activeWorkflow)return;let s=nm(mt.graph,t),l=vf(mt.graph);B5(s,i)&&Xe.setWidgetTableStructure(s),Xe.setWidgetTableValue(l)},800)}requestAnimationFrame(W5);function B5(e,t){return e.nodeIndexes.length!==t.nodeIndexes.length||JSON.stringify(e.nodeIndexes)!==JSON.stringify(t.nodeIndexes)||JSON.stringify(e.groups)!==JSON.stringify(t.groups)||JSON.stringify(e.nodes)!==JSON.stringify(t.nodes)}async function cK(e,t,r){t.addEventListener("progress",({detail:s})=>{if(!s||isNaN(s.value/s.max))return;let l=Math.round(s.value/s.max*100);Xe.setProgress(l)}),t.addEventListener("status",s=>{s.detail?.exec_info&&Xe.setQueueSize(s.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:s})=>{if(Xe.setExecutingNodeTitle(""),Xe.setLastError(s.exception_message),s.node_id){let l=e.graph.nodes.find(c=>c.id==s.node_id);Xe.setWidgetTableErrors({[s.node_id]:`[${l?.title||s.node_id}]`+s.exception_message})}});let n=[];t.addEventListener("execution_start",({detail:s})=>{if(Xe.setLastError(""),Xe.setWidgetTableErrors({}),Xe.setProgress(0),Xe.setExecutingNodeTitle(""),n.length){let l=n.shift();l&&o.set(s.prompt_id,l)}}),t.addEventListener("executing",s=>{let l=s.detail,c=graph.nodes.find(u=>u.id==l);c&&Xe.setExecutingNodeTitle(c.title)}),t.addEventListener("execution_success",s=>{Xe.setProgress(0),Xe.setExecutingNodeTitle(""),al.get(s.detail.prompt_id)&&al.delete(s.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{Xe.setProgress(0),Xe.setExecutingNodeTitle("")});let o=new Map;t.addEventListener("executed",s=>{if(s.detail.output&&Array.isArray(s.detail.output.images)&&s.detail.output.images.length>0){let l=null;if(al.get(s.detail.prompt_id)?l=al.get(s.detail.prompt_id):l=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!l)return;e.graph.nodes.filter(c=>c.type=="Send Images To Photoshop").filter(c=>c.mode==0).length||i?.sendImage(l,{document_identify:Xt.getSpecialDocumentForPreview(),layer_identifies:s.detail.output.images.map(()=>Xt.getSpecialLayerForSend()[0]),boundaries:s.detail.output.images.map(()=>""),image_urls:s.detail.output.images.map(c=>location.origin+"/api/view?type="+c.type+"&filename="+c.filename),new_layer_name:im(Xe.data.widgetTableStructure.widgetTablePath)})}}),bR(e);var i=new jn;i.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){},async beforeRegisterNodeDef(s,l,c){try{xO(s,l)}catch(u){Ip.push(u.stack||u.message||u)}}})}var Ip=[];(async function(){if(!(typeof gradioApp<"u")){try{let e=window.comfyAPI?.app?.app,t=window.comfyAPI?.ui?.$el,r=window.comfyAPI?.api?.api;if(!e||!r||!t)throw new Error("comfyAPI is not initialized, maybe comfyUI is too old");await NR(),await cK(e,r,t),import("./sdppp-custom.js").then(n=>{n.default(aa)})}catch(e){Ip.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Ip.length&&(console.error(Ip[0]),alert(`sd-ppp init failed: -`+Ip.join(` +}`),(0,rc.useEffect)(()=>{let i=e.current,a=E5(i);C5(o,"@ant-design-icons",{prepend:!n,csp:t,attachTo:a})},[])};var Np={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function nK({primaryColor:e,secondaryColor:t}){Np.primaryColor=e,Np.secondaryColor=t||uR(e),Np.calculated=!!t}function oK(){return{...Np}}var H0=e=>{let{icon:t,className:r,onClick:n,style:o,primaryColor:i,secondaryColor:a,...s}=e,l=N5.useRef(),c=Np;if(i&&(c={primaryColor:i,secondaryColor:a||uR(i)}),T5(l),P5(cR(t),`icon should be icon definiton, but got ${t}`),!cR(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),j0(u.icon,`svg-${u.name}`,{className:r,onClick:n,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};H0.displayName="IconReact";H0.getTwoToneColors=oK;H0.setTwoToneColors=nK;var Ip=H0;function fR(e){let[t,r]=V0(e);return Ip.setTwoToneColors({primaryColor:t,secondaryColor:r})}function I5(){let e=Ip.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function dR(){return dR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:r,icon:n,spin:o,rotate:i,tabIndex:a,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:f}=nc.useContext(F0),d=(0,D5.default)(f,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!o||n.name==="loading"},r),m=a;m===void 0&&s&&(m=-1);let h=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[v,y]=V0(l);return nc.createElement("span",dR({role:"img","aria-label":n.name},c,{ref:t,tabIndex:m,onClick:s,className:d}),nc.createElement(Ip,{icon:n,primaryColor:v,secondaryColor:y,style:h}))});U0.displayName="AntdIcon";U0.getTwoToneColor=I5;U0.setTwoToneColor=fR;var q0=U0;var G0=E(N());function pR(){return pR=Object.assign?Object.assign.bind():function(e){for(var t=1;tG0.createElement(q0,pR({},e,{ref:t,icon:yv})),aK=G0.forwardRef(iK),mR=aK;var K0=E(N());function gR(){return gR=Object.assign?Object.assign.bind():function(e){for(var t=1;tK0.createElement(q0,gR({},e,{ref:t,icon:o3})),lK=K0.forwardRef(sK),hR=lK;var Va=E(_r(),1),$5=({value:e,onValueChange:t,options:r,nodeID:n})=>{let o=a=>{if(a.file.status==="done"){let s=a.file.response.name;t?.(s)}},i=gt.graph.nodes.find(a=>a.id===e);return(0,Va.jsxs)(ja,{gap:5,align:"stretch",vertical:!0,children:[(0,Va.jsxs)(ja,{gap:5,vertical:!0,children:[(0,Va.jsx)(lp,{style:{flex:1},value:e,onChange:a=>{t?.(a)},options:r.map(a=>({label:a.split("/").pop(),value:a}))}),(0,Va.jsx)(JE,{action:"./api/upload/image",onChange:o,showUploadList:!1,data:a=>({image:a}),children:(0,Va.jsxs)("button",{type:"button",className:"ant-btn",children:[(0,Va.jsx)(hR,{})," ",pe("upload")]})})]}),e&&(0,Va.jsx)("img",{src:`./api/view?filename=${e}&type=input&subfolder=${e.startsWith("clipspace/")?"clipspace/":""}&rand=`+Math.random(),width:"100%",style:{aspectRatio:"1/1",objectFit:"contain",cursor:"pointer"},onClick:a=>{gt.constructor.copyToClipspace(gt.graph.nodes.find(s=>s.id===n)),gt.constructor.clipspace_return_node=gt.graph.nodes.find(s=>s.id===n),gt.constructor.open_maskeditor()}})]})};var aa=E(_r(),1),A5=window.comfyAPI.api.api,tf=class extends k5.default.Component{state={comfyStatus:{sid:"",ssid:"",progress:0,queueSize:0,lastError:"",executingNodeTitle:""},widgetTableStructure:Xe.data.widgetTableStructure,widgetTableValue:Xe.data.widgetTableValue,widgetTableErrors:Xe.data.widgetTableErrors};eventListeners=[];unsubscribes=[];constructor(t){super(t);let r=(a,s)=>{A5.addEventListener(a,s),this.eventListeners.push({event:a,handler:s})};r("progress",({detail:a})=>{if(!a||isNaN(a.value/a.max))return;let s=Math.round(a.value/a.max*100);this.setState({comfyStatus:{...this.state.comfyStatus,progress:s}})}),r("status",a=>{a.detail?.exec_info&&this.setState({comfyStatus:{...this.state.comfyStatus,queueSize:a.detail.exec_info.queue_remaining}})}),r("execution_error",({detail:a})=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:a.exception_message,executingNodeTitle:""}})}),r("execution_start",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,lastError:"",progress:0,executingNodeTitle:""}})}),r("executing",a=>{let s=a.detail,l=app.graph.nodes.find(c=>c.id==s);l&&this.setState({comfyStatus:{...this.state.comfyStatus,executingNodeTitle:l.title}})}),r("execution_success",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})}),r("execution_interrupted",()=>{this.setState({comfyStatus:{...this.state.comfyStatus,progress:0,executingNodeTitle:""}})});let n=a=>{this.setState({widgetTableStructure:a})};Xe.subscribe("/widgetTableStructure",n);let o=a=>{this.setState({widgetTableValue:a})};Xe.subscribe("/widgetTableValue",o);let i=a=>{this.setState({widgetTableErrors:a})};Xe.subscribe("/widgetTableErrors",i),this.unsubscribes.push(()=>{Xe.unsubscribe(n),Xe.unsubscribe(o),Xe.unsubscribe(i)})}componentWillUnmount(){this.eventListeners.forEach(({event:t,handler:r})=>{A5.removeEventListener(t,r)}),this.unsubscribes.forEach(t=>t())}render(){let t={widgetTableStructure:this.state.widgetTableStructure,widgetTableValue:this.state.widgetTableValue,widgetTableErrors:this.state.widgetTableErrors,onWidgetChange:async(n,o,i,a)=>{let s=app.graph.nodes.find(l=>l.id==n);s&&om(s,o,i)},onWidgetRender:(n,o,i,a)=>{if(i.outputType==="number"){let s=i.options?.min??0,l=i.options?.max??100,c=i.options?.step??1;return n.result.push((0,aa.jsx)(D3,{uiWeight:i.uiWeight||12,inputMin:s,inputMax:l,inputStep:c,name:i.name,value:parseFloat(this.state.widgetTableValue[o.id][a]),onValueChange:u=>{t.onWidgetChange(o.id,a,u,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}else{if(i.outputType==="combo")return n.result.push((0,aa.jsx)($3,{uiWeight:i.uiWeight||12,options:i.options?.values||[],name:i.name,onSelectUpdate:s=>{t.onWidgetChange(o.id,a,s,o)},value:this.state.widgetTableValue[o.id][a],extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="toggle")return n.result.push((0,aa.jsx)(A3,{uiWeight:i.uiWeight||12,name:i.name,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="string"||i.outputType==="customtext"||i.outputType==="text")return n.result.push((0,aa.jsx)(M3,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],onValueChange:s=>{t.onWidgetChange(o.id,a,s,o)},extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0;if(i.outputType==="PS_LAYER"||i.outputType==="PS_DOCUMENT")return n.result.push((0,aa.jsx)("p",{children:pe("only supported in Photoshop")})),!0;if(i.outputType=="IMAGE_PATH"||i.outputType=="MASK_PATH")return n.result.push((0,aa.jsx)($5,{uiWeight:i.uiWeight||12,value:this.state.widgetTableValue[o.id][a],options:i.options?.values||[],onValueChange:async s=>{t.onWidgetChange(o.id,a,s,o)},nodeID:o.id,extraOptions:this.state.widgetTableStructure.extraOptions},a)),!0}return!0},onTitleRender:(n,o)=>(0,aa.jsx)(F3,{title:n,onTitleChange:i=>{Bn.instance.setNodeTitle({node_id:o.id,title:i})}})},r=12;return(0,aa.jsx)(Da,{theme:{components:{Input:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"},Select:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)",colorBgElevated:"var(--p-form-field-background)",colorTextDescription:"var(--p-form-field-color)",controlItemBgActive:"var(--p-form-field-background)",controlItemBgHover:"var(--p-form-field-border-color)"},Checkbox:{fontSize:r,colorText:"var(--p-form-field-color)"},Radio:{fontSize:r},Slider:{fontSize:r},Switch:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)"},InputNumber:{fontSize:r,colorBgContainer:"var(--p-form-field-background)",colorText:"var(--p-form-field-color)",colorBorder:"var(--p-form-field-border-color)"}}},children:(0,aa.jsx)(eR,{...t})})}};var Fn=E(_r(),1),M5=document.createElement("style");M5.innerHTML=eN;document.head.appendChild(M5);function vR({onClose:e,tab:t}){let[r,n]=(0,rf.useState)("1"),[o,i]=(0,rf.useState)(0);return(0,rf.useEffect)(()=>{n(t)},[t]),(0,rf.useEffect)(()=>{let a=document.getElementById("graph-canvas"),s=0,l,c=()=>{if(s++,s%3===0&&a){let u=document.querySelector(".side-bar-panel");u&&u.style.display!=="none"?i(u.clientWidth):i(0)}l=requestAnimationFrame(c)};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}},[]),(0,Fn.jsx)(Da,{theme:{token:{colorText:"var(--fg-color)",colorBgContainer:"var(--comfy-input-bg)",colorBgElevated:"var(--comfy-input-bg)",colorFillSecondary:"var(--comfy-input-bg)",controlItemBgHover:"var(--comfy-input-bg)",colorBgTextHover:"var(--comfy-input-bg)",colorBorder:"var(--p-inputtext-border-color)"}},children:(0,Fn.jsxs)("div",{className:"sdppp-menu-container",style:{paddingLeft:o},children:[(0,Fn.jsxs)("div",{className:"sdppp-menu-header",children:[(0,Fn.jsxs)("div",{className:"sdppp-menu-header-left",children:[(0,Fn.jsx)("button",{onClick:()=>n("1"),className:r==="1"?"active":"",children:pe("Simplify Workflow")}),(0,Fn.jsx)("button",{onClick:()=>n("2"),className:r==="2"?"active":"",children:pe("Photoshop")})]}),(0,Fn.jsx)("span",{children:"Powered by SDPPP"}),(0,Fn.jsx)("button",{className:"sdppp-menu-close-button",onClick:e,children:(0,Fn.jsx)(mR,{})})]}),(0,Fn.jsxs)("div",{className:"sdppp-menu-content",children:[(0,Fn.jsx)("div",{className:"sdppp-menu-workflow-edit-wrap",style:{display:r==="1"?"block":"none"},children:(0,Fn.jsx)(tf,{})}),(0,Fn.jsx)("div",{className:"sdppp-menu-settings-wrap",style:{display:r==="2"?"block":"none"},children:(0,Fn.jsx)(T3,{})})]})]})})}var oc=E(_r(),1);function yR({onMaximize:e,onPhotoshop:t}){return(0,oc.jsxs)("div",{className:"sdppp-side-container",children:[(0,oc.jsxs)("div",{className:"sdppp-side-header",children:[(0,oc.jsx)("button",{className:"sdppp-photoshop-icon",onClick:t}),(0,oc.jsx)("button",{className:"pi pi-window-maximize",onClick:e})]}),(0,oc.jsx)(tf,{})]})}var F5=null,cK=null,xR=null;async function CR(e){if(!F5){let t=document.createElement("div");t.id="sdppp-popup-root",t.style.display="none",document.getElementById("graph-canvas-container")?.prepend(t),e.extensionManager.registerSidebarTab({id:"sdppp",title:"SD-PPP",tooltip:"SD-PPP Workflow UI",icon:"sdppp-side-icon",type:"custom",render:r=>{cK||(r.style.width="100%",r.style.height="auto",r.style.padding="8px",(0,bR.createRoot)(r).render((0,SR.createElement)(yR,{onMaximize:()=>{n("1")},onPhotoshop:()=>{n("2")}}))),t.style.display="none";function n(o){F5?xR.props.tab=o:(xR=(0,SR.createElement)(vR,{onClose:()=>{t.style.display="none"},tab:o}),(0,bR.createRoot)(t).render(xR)),t.style.display="flex",document.querySelector(".sdppp-side-icon")?.parentElement?.click()}}})}}nn.addEventListener("graphChanged",e=>{let r=(gt.workflowManager||gt.extensionManager.workflow).activeWorkflow;if(e.detail.id!==r.activeState.id)return;let n=Xe.data.widgetTableStructure,o=im(gt.graph,r);j5(o,n)&&Xe.setWidgetTableStructure(o),Xe.setWidgetTableValue(yf(gt.graph))});nn.addEventListener("executed",()=>{Xe.setWidgetTableValue(yf(gt.graph))});var L5=0,z5=!0,W5="";function B5(){requestAnimationFrame(B5);let e=gt.workflowManager||gt.extensionManager.workflow,t=e.activeWorkflow,r=t?.id||0,n=t?.path||"",o=t?.isPersisted||!0;if(r===L5&&n===W5&&o===z5)return;L5=r,W5=n,z5=o;let i=im(gt.graph,t),a=yf(gt.graph);Xe.setWidgetTableStructure(i),Xe.setWidgetTableValue(a),setTimeout(()=>{if(t!==e.activeWorkflow)return;let s=im(gt.graph,t),l=yf(gt.graph);j5(s,i)&&Xe.setWidgetTableStructure(s),Xe.setWidgetTableValue(l)},800)}requestAnimationFrame(B5);function j5(e,t){return e.nodeIndexes.length!==t.nodeIndexes.length||JSON.stringify(e.nodeIndexes)!==JSON.stringify(t.nodeIndexes)||JSON.stringify(e.groups)!==JSON.stringify(t.groups)||JSON.stringify(e.nodes)!==JSON.stringify(t.nodes)}async function uK(e,t,r){t.addEventListener("progress",({detail:s})=>{if(!s||isNaN(s.value/s.max))return;let l=Math.round(s.value/s.max*100);Xe.setProgress(l)}),t.addEventListener("status",s=>{s.detail?.exec_info&&Xe.setQueueSize(s.detail.exec_info.queue_remaining)}),t.addEventListener("execution_error",({detail:s})=>{if(Xe.setExecutingNodeTitle(""),Xe.setLastError(s.exception_message),s.node_id){let l=e.graph.nodes.find(c=>c.id==s.node_id);Xe.setWidgetTableErrors({[s.node_id]:`[${l?.title||s.node_id}]`+s.exception_message})}});let n=[];t.addEventListener("execution_start",({detail:s})=>{if(Xe.setLastError(""),Xe.setWidgetTableErrors({}),Xe.setProgress(0),Xe.setExecutingNodeTitle(""),n.length){let l=n.shift();l&&o.set(s.prompt_id,l)}}),t.addEventListener("executing",s=>{let l=s.detail,c=graph.nodes.find(u=>u.id==l);c&&Xe.setExecutingNodeTitle(c.title)}),t.addEventListener("execution_success",s=>{Xe.setProgress(0),Xe.setExecutingNodeTitle(""),ll.get(s.detail.prompt_id)&&ll.delete(s.detail.prompt_id)}),t.addEventListener("execution_interrupted",()=>{Xe.setProgress(0),Xe.setExecutingNodeTitle("")});let o=new Map;t.addEventListener("executed",s=>{if(s.detail.output&&Array.isArray(s.detail.output.images)&&s.detail.output.images.length>0){let l=null;if(ll.get(s.detail.prompt_id)?l=ll.get(s.detail.prompt_id):l=location.search.match(/webview_fromsid=([^&]+)/)?.[1]||"",!l)return;e.graph.nodes.filter(c=>c.type=="Send Images To Photoshop").filter(c=>c.mode==0).length||i?.sendImage(l,{document_identify:Xt.getSpecialDocumentForPreview(),layer_identifies:s.detail.output.images.map(()=>Xt.getSpecialLayerForSend()[0]),boundaries:s.detail.output.images.map(()=>""),image_urls:s.detail.output.images.map(c=>location.origin+"/api/view?type="+c.type+"&filename="+c.filename),new_layer_name:sm(Xe.data.widgetTableStructure.widgetTablePath)})}}),CR(e);var i=new Bn;i.connect(),e.registerExtension({name:"Comfy.SD-PPP",async setup(){},async beforeRegisterNodeDef(s,l,c){try{bO(s,l)}catch(u){Dp.push(u.stack||u.message||u)}}})}var Dp=[];(async function(){if(!(typeof gradioApp<"u")){try{let e=window.comfyAPI?.app?.app,t=window.comfyAPI?.ui?.$el,r=window.comfyAPI?.api?.api;if(!e||!r||!t)throw new Error("comfyAPI is not initialized, maybe comfyUI is too old");await IR(),await uK(e,r,t),import("./sdppp-custom.js").then(n=>{n.default(sa)})}catch(e){Dp.push(e.stack||e.message||e)}await new Promise(e=>setTimeout(e,2e3)),Dp.length&&(console.error(Dp[0]),alert(`sd-ppp init failed: +`+Dp.join(` `)))}})(); /*! Bundled license information: diff --git a/javascript/sdppp-comfy2.js b/javascript/sdppp-comfy2.js index 74c8cfd..1e6f1b1 100644 --- a/javascript/sdppp-comfy2.js +++ b/javascript/sdppp-comfy2.js @@ -1,2666 +1,2606 @@ -var qs = Object.defineProperty; -var Os = (i, e, t) => e in i ? qs(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t; -var d0 = (i, e, t) => Os(i, typeof e != "symbol" ? e + "" : e, t); -const n = B; -(function(i, e) { - const t = B, a = i(); - for (; ; ) +var Tn = Object.defineProperty; +var On = (i, x, t) => x in i ? Tn(i, x, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[x] = t; +var v0 = (i, x, t) => On(i, typeof x != "symbol" ? x + "" : x, t); +var s = K; +(function(i, x) { + for (var t = K, a = i(); ; ) try { - if (parseInt(t(2386)) / 1 + parseInt(t(2130)) / 2 + -parseInt(t(629)) / 3 + -parseInt(t(1981)) / 4 + -parseInt(t(1358)) / 5 * (-parseInt(t(874)) / 6) + parseInt(t(841)) / 7 + -parseInt(t(1577)) / 8 === e) break; + var e = parseInt(t(2525)) / 1 + -parseInt(t(353)) / 2 * (-parseInt(t(1942)) / 3) + parseInt(t(871)) / 4 + -parseInt(t(607)) / 5 * (parseInt(t(1602)) / 6) + parseInt(t(2435)) / 7 * (-parseInt(t(1909)) / 8) + -parseInt(t(1012)) / 9 * (parseInt(t(1971)) / 10) + parseInt(t(1271)) / 11; + if (e === x) break; a.push(a.shift()); } catch { a.push(a.shift()); } -})(Ie, 751307); -const R0 = window.comfyAPI[n(1517)][n(1517)]; -window.comfyAPI.ui.$el; -const Ax = window.comfyAPI[n(1697)].api; -class As { - constructor(e) { - d0(this, "definition"); - const t = n; - this[t(1596)] = e; - const a = this.validate(); - if (!a.valid) throw new Error(t(2015) + a[t(1418)][t(2573)](", ")); +})(Ix, 385169); +const q0 = window[s(1975)][s(939)][s(939)]; +window[s(1975)].ui[s(2278)]; +const Oe = window[s(1975)][s(1634)][s(1634)]; +class An { + constructor(x) { + v0(this, "definition"); + var t = s; + this.definition = x; + const a = this[t(328)](); + if (!a[t(2538)]) throw new Error(t(1491) + a.errors.join(", ")); } - [n(2481)]() { - const e = n, t = []; - (!this[e(1596)][e(892)] || Object[e(2278)](this.definition[e(892)])[e(1200)] === 0) && t[e(818)](e(996)); - for (const [x, r] of this[e(1596)].edges) - !this[e(1596)][e(892)][x] && t[e(818)](e(2385) + x), !this.definition[e(892)][r] && t[e(818)](e(1940) + r); - const a = this[e(1273)](); - return !a[e(1954)] && t.push(...a[e(1418)]), { valid: t[e(1200)] === 0, errors: t }; + [s(328)]() { + var x = s; + const t = []; + (!this[x(2103)][x(719)] || Object.keys(this[x(2103)].nodes)[x(2021)] === 0) && t[x(2380)]("Graph must have at least one node"); + for (const [e, r] of this[x(2103)][x(1331)]) + !this.definition[x(719)][e] && t[x(2380)]("Edge references unknown source node: " + e), !this[x(2103)][x(719)][r] && t[x(2380)]("Edge references unknown target node: " + r); + const a = this[x(852)](); + return !a[x(2538)] && t[x(2380)](...a[x(1188)]), { valid: t[x(2021)] === 0, errors: t }; } - [n(1641)]() { - const e = n, t = /* @__PURE__ */ new Map(); - for (const a of Object.keys(this.definition.nodes)) - t[e(510)](a, []); - for (const [a, x] of this[e(1596)][e(1028)]) { - const r = t.get(a) || []; - r[e(818)](x), t.set(a, r); - } - return t; - } - [n(1273)]() { - const e = n, t = [], a = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set(), r = this[e(1641)](), s = (o, c) => { - const d = e; - if (x[d(2333)](o)) { - const f = c[d(2170)](o), l = c.slice(f)[d(2699)](o); - return t[d(818)](d(1405) + l[d(2573)](d(1983))), !0; - } - if (a[d(2333)](o)) return !1; - a[d(2295)](o), x[d(2295)](o); - const u = r[d(1261)](o) || []; - for (const f of u) - if (s(f, [...c, o])) return !0; - return x.delete(o), !1; - }; - for (const o of Object[e(2278)](this.definition[e(892)])) - !a.has(o) && s(o, []); - return { valid: t[e(1200)] === 0, errors: t }; - } - [n(1147)]() { - const e = n, t = /* @__PURE__ */ new Map(); - for (const a of Object[e(2278)](this.definition[e(892)])) + buildDirectedAdjacencyList() { + var x = s; + const t = /* @__PURE__ */ new Map(); + for (const a of Object[x(1040)](this[x(2103)][x(719)])) t.set(a, []); - for (const [a, x] of this.definition[e(1028)]) { - const r = t[e(1261)](a) || []; - r.push(x), t[e(510)](a, r); - const s = t.get(x) || []; - s[e(818)](a), t[e(510)](x, s); + for (const [a, e] of this.definition[x(1331)]) { + const r = t[x(2229)](a) || []; + r[x(2380)](e), t.set(a, r); } return t; } - [n(1361)](e) { - const t = n; - return this[t(1147)]()[t(1261)](e) || []; + [s(852)]() { + var x = s; + const t = [], a = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set(), r = this[x(2294)](), n = (o, c) => { + var u = x; + if (e.has(o)) { + const f = c[u(831)](o), l = c[u(1813)](f)[u(1355)](o); + return t.push("Cycle detected: " + l[u(2515)](" -> ")), !0; + } + if (a.has(o)) return !1; + a[u(1342)](o), e.add(o); + const d = r[u(2229)](o) || []; + for (const f of d) + if (n(f, [...c, o])) return !0; + return e[u(2434)](o), !1; + }; + for (const o of Object[x(1040)](this[x(2103)][x(719)])) + !a.has(o) && n(o, []); + return { valid: t[x(2021)] === 0, errors: t }; } - [n(2369)](e) { - const t = n; - return this[t(1596)][t(892)][e]; + [s(2392)]() { + var x = s; + const t = /* @__PURE__ */ new Map(); + for (const a of Object[x(1040)](this[x(2103)][x(719)])) + t[x(1951)](a, []); + for (const [a, e] of this.definition.edges) { + const r = t.get(a) || []; + r.push(e), t[x(1951)](a, r); + const n = t[x(2229)](e) || []; + n[x(2380)](a), t.set(e, n); + } + return t; } - [n(2718)]() { - const e = n; - return Object[e(2278)](this[e(1596)][e(892)]); + getNeighbors(x) { + var t = s; + return this[t(2392)]()[t(2229)](x) || []; } - [n(2145)](e, t) { - const a = n; - return this[a(1596)][a(1028)][a(2703)](([x, r]) => x === e && r === t || x === t && r === e); + getNode(x) { + var t = s; + return this[t(2103)].nodes[x]; } - findPath(e, t) { - const a = n; - if (e === t) return [e]; - const x = this[a(1147)](), r = [{ nodeId: e, path: [e] }], s = /* @__PURE__ */ new Set(); - for (; r.length > 0; ) { - const { nodeId: o, path: c } = r[a(2621)](); - if (s[a(2333)](o)) continue; - if (s[a(2295)](o), o === t) return c; - const d = x[a(1261)](o) || []; - for (const u of d) - !s[a(2333)](u) && r[a(818)]({ nodeId: u, path: [...c, u] }); + [s(551)]() { + var x = s; + return Object[x(1040)](this[x(2103)][x(719)]); + } + hasEdge(x, t) { + var a = s; + return this.definition[a(1331)][a(1373)](([e, r]) => e === x && r === t || e === t && r === x); + } + [s(2505)](x, t) { + var a = s; + if (x === t) return [x]; + const e = this[a(2392)](), r = [{ nodeId: x, path: [x] }], n = /* @__PURE__ */ new Set(); + for (; r[a(2021)] > 0; ) { + const { nodeId: o, path: c } = r[a(761)](); + if (n.has(o)) continue; + if (n[a(1342)](o), o === t) return c; + const u = e[a(2229)](o) || []; + for (const d of u) + !n.has(d) && r[a(2380)]({ nodeId: d, path: [...c, d] }); } return null; } - [n(1998)](e, t) { - return this[n(605)](e, t) !== null; + [s(2202)](x, t) { + var a = s; + return this[a(2505)](x, t) !== null; } - [n(1693)]() { - return { ...this.definition }; + [s(736)]() { + var x = s; + return { ...this[x(2103)] }; } } -const br = (i) => { - let e; - const t = /* @__PURE__ */ new Set(), a = (d, u) => { - const f = B, l = typeof d === f(1342) ? d(e) : d; - if (!Object.is(l, e)) { - const g = e; - e = u ?? (typeof l != "object" || l === null) ? l : Object.assign({}, e, l), t[f(1238)]((h) => h(e, g)); +const kr = (i) => { + let x; + const t = /* @__PURE__ */ new Set(), a = (u, d) => { + var f = K; + const l = typeof u == "function" ? u(x) : u; + if (!Object.is(l, x)) { + const v = x; + x = d ?? (typeof l !== f(1923) || l === null) ? l : Object[f(740)]({}, x, l), t[f(1222)]((h) => h(x, v)); } - }, x = () => e, r = () => c, s = (d) => { - const u = B; - return t[u(2295)](d), () => t[u(2653)](d); - }, o = { setState: a, getState: x, getInitialState: r, subscribe: s }, c = e = i(a, x, o); + }, e = () => x, r = () => c, n = (u) => { + var d = K; + return t[d(1342)](u), () => t[d(2434)](u); + }, o = { setState: a, getState: e, getInitialState: r, subscribe: n }, c = x = i(a, e, o); return o; -}, Ts = (i) => i ? br(i) : br; -var F0; +}, Dn = (i) => i ? kr(i) : kr; +var N0; (function(i) { - const e = n; - i[e(1088)] = (r) => { + var x = s; + i[x(1037)] = (r) => { }; function t(r) { } - i[e(1270)] = t; + i.assertIs = t; function a(r) { throw new Error(); } - i[e(920)] = a, i.arrayToEnum = (r) => { - const s = {}; + i.assertNever = a, i.arrayToEnum = (r) => { + const n = {}; for (const o of r) - s[o] = o; - return s; - }, i[e(1170)] = (r) => { - const s = e, o = i.objectKeys(r)[s(893)]((d) => typeof r[r[d]] != "number"), c = {}; - for (const d of o) - c[d] = r[d]; - return i[s(505)](c); - }, i[e(505)] = (r) => { - const s = e; - return i[s(765)](r)[s(2404)](function(o) { + n[o] = o; + return n; + }, i[x(2644)] = (r) => { + var n = x; + const o = i.objectKeys(r)[n(2397)]((u) => typeof r[r[u]] !== n(960)), c = {}; + for (const u of o) + c[u] = r[u]; + return i[n(1322)](c); + }, i.objectValues = (r) => { + var n = x; + return i[n(2574)](r)[n(632)](function(o) { return r[o]; }); - }, i[e(765)] = typeof Object[e(2278)] === e(1342) ? (r) => Object[e(2278)](r) : (r) => { - const s = e, o = []; + }, i.objectKeys = typeof Object[x(1040)] === x(1853) ? (r) => Object.keys(r) : (r) => { + var n = x; + const o = []; for (const c in r) - Object[s(1166)][s(2452)][s(2518)](r, c) && o[s(818)](c); + Object[n(2180)].hasOwnProperty[n(1547)](r, c) && o[n(2380)](c); return o; - }, i[e(714)] = (r, s) => { + }, i[x(1666)] = (r, n) => { for (const o of r) - if (s(o)) return o; - }, i[e(787)] = typeof Number.isInteger === e(1342) ? (r) => Number.isInteger(r) : (r) => typeof r == "number" && Number[e(1718)](r) && Math[e(1332)](r) === r; - function x(r, s = " | ") { - const o = e; - return r[o(2404)]((c) => typeof c == "string" ? "'" + c + "'" : c)[o(2573)](s); + if (n(o)) return o; + }, i.isInteger = typeof Number[x(2309)] === x(1853) ? (r) => Number[x(2309)](r) : (r) => typeof r == "number" && Number.isFinite(r) && Math[x(937)](r) === r; + function e(r, n = x(1001)) { + var o = x; + return r[o(632)]((c) => typeof c == "string" ? "'" + c + "'" : c)[o(2515)](n); } - i[e(827)] = x, i[e(1257)] = (r, s) => { - const o = e; - return typeof s === o(1323) ? s[o(879)]() : s; + i.joinValues = e, i.jsonStringifyReplacer = (r, n) => { + var o = x; + return typeof n === o(356) ? n[o(1892)]() : n; }; -})(F0 || (F0 = {})); -var wr; +})(N0 || (N0 = {})); +var Er; (function(i) { - i.mergeShapes = (e, t) => ({ ...e, ...t }); -})(wr || (wr = {})); -const _ = F0[n(1821)]([n(923), n(946), n(2074), "integer", n(1962), n(958), n(1633), "bigint", n(689), n(1342), "undefined", n(2382), n(1196), n(2437), "unknown", n(1001), n(849), n(1863), n(2404), n(510)]), Ex = (i) => { - const e = n; + var x = s; + i[x(1195)] = (t, a) => ({ ...t, ...a }); +})(Er || (Er = {})); +const e0 = N0[s(691)]([s(2348), s(1999), "number", "integer", s(1684), "boolean", "date", s(356), s(633), s(1853), s(1887), s(1382), s(1315), s(1923), s(2409), s(694), s(500), s(2109), s(632), s(1951)]), Ie = (i) => { + var x = s; switch (typeof i) { - case "undefined": - return _[e(2634)]; + case x(1887): + return e0.undefined; case "string": - return _[e(923)]; - case e(2074): - return Number[e(1584)](i) ? _[e(946)] : _[e(2074)]; - case e(958): - return _.boolean; - case e(1342): - return _.function; - case "bigint": - return _[e(1323)]; - case e(689): - return _[e(689)]; - case e(2437): - return Array[e(2344)](i) ? _[e(1196)] : i === null ? _[e(2382)] : i.then && typeof i.then === e(1342) && i[e(641)] && typeof i[e(641)] === e(1342) ? _[e(1001)] : typeof Map < "u" && i instanceof Map ? _[e(2404)] : typeof Set < "u" && i instanceof Set ? _.set : typeof Date !== e(2634) && i instanceof Date ? _.date : _[e(2437)]; + return e0[x(2348)]; + case x(960): + return Number[x(1230)](i) ? e0[x(1999)] : e0[x(960)]; + case x(2251): + return e0[x(2251)]; + case x(1853): + return e0[x(1853)]; + case x(356): + return e0.bigint; + case "symbol": + return e0[x(633)]; + case x(1923): + return Array.isArray(i) ? e0[x(1315)] : i === null ? e0.null : i[x(432)] && typeof i[x(432)] === x(1853) && i[x(947)] && typeof i[x(947)] === x(1853) ? e0[x(694)] : typeof Map !== x(1887) && i instanceof Map ? e0[x(632)] : typeof Set < "u" && i instanceof Set ? e0[x(1951)] : typeof Date !== x(1887) && i instanceof Date ? e0[x(1582)] : e0[x(1923)]; default: - return _[e(863)]; + return e0[x(2409)]; } -}, K = F0.arrayToEnum([n(2600), n(1836), n(938), n(2342), n(2161), "invalid_enum_value", "unrecognized_keys", n(2158), "invalid_return_type", n(1769), "invalid_string", n(2046), n(1151), n(658), n(1894), n(977)]); -class Px extends Error { - get errors() { - return this[n(2121)]; +}, B = N0.arrayToEnum([s(635), "invalid_literal", s(2290), s(1550), s(2450), s(401), s(1289), s(2579), s(1628), s(1225), s(1191), s(1287), "too_big", "invalid_intersection_types", s(590), s(1803)]); +class ke extends Error { + get [s(1188)]() { + return this.issues; } - constructor(e) { - const t = n; - super(), this.issues = [], this[t(715)] = (x) => { - const r = t; - this[r(2121)] = [...this.issues, x]; - }, this.addIssues = (x = []) => { - const r = t; - this[r(2121)] = [...this.issues, ...x]; + constructor(x) { + var t = s; + super(), this[t(1729)] = [], this[t(441)] = (e) => { + var r = t; + this.issues = [...this[r(1729)], e]; + }, this[t(1117)] = (e = []) => { + var r = t; + this[r(1729)] = [...this.issues, ...e]; }; - const a = new.target[t(1166)]; - Object[t(618)] ? Object[t(618)](this, a) : this[t(769)] = a, this[t(2200)] = t(783), this.issues = e; + const a = new.target.prototype; + Object[t(714)] ? Object.setPrototypeOf(this, a) : this[t(1416)] = a, this[t(940)] = t(888), this[t(1729)] = x; } - [n(822)](e) { - const t = e || function(r) { - return r[B(2353)]; - }, a = { _errors: [] }, x = (r) => { - const s = B; - for (const o of r[s(2121)]) - if (o.code === "invalid_union") o[s(1291)].map(x); - else if (o[s(1204)] === s(589)) x(o.returnTypeError); - else if (o[s(1204)] === "invalid_arguments") x(o[s(1794)]); - else if (o[s(1728)][s(1200)] === 0) a[s(2570)].push(t(o)); + [s(2093)](x) { + const t = x || function(r) { + var n = K; + return r[n(2089)]; + }, a = { _errors: [] }, e = (r) => { + var n = K; + for (const o of r[n(1729)]) + if (o[n(733)] === n(1550)) o.unionErrors[n(632)](e); + else if (o[n(733)] === n(1628)) e(o[n(2113)]); + else if (o.code === n(2579)) e(o[n(489)]); + else if (o[n(1796)][n(2021)] === 0) a._errors[n(2380)](t(o)); else { - let c = a, d = 0; - for (; d < o[s(1728)][s(1200)]; ) { - const u = o[s(1728)][d]; - d === o[s(1728)].length - 1 ? (c[u] = c[u] || { _errors: [] }, c[u][s(2570)][s(818)](t(o))) : c[u] = c[u] || { _errors: [] }, c = c[u], d++; + let c = a, u = 0; + for (; u < o[n(1796)][n(2021)]; ) { + const d = o[n(1796)][u]; + u === o[n(1796)][n(2021)] - 1 ? (c[d] = c[d] || { _errors: [] }, c[d][n(1130)].push(t(o))) : c[d] = c[d] || { _errors: [] }, c = c[d], u++; } } }; - return x(this), a; + return e(this), a; } - static [n(1386)](e) { - if (!(e instanceof Px)) throw new Error("Not a ZodError: " + e); + static [s(860)](x) { + var t = s; + if (!(x instanceof ke)) throw new Error(t(1126) + x); } - [n(879)]() { - return this[n(2353)]; + [s(1892)]() { + var x = s; + return this[x(2089)]; } - get [n(2353)]() { - const e = n; - return JSON[e(2301)](this[e(2121)], F0[e(1257)], 2); + get [s(2089)]() { + var x = s; + return JSON[x(990)](this[x(1729)], N0[x(600)], 2); } - get [n(2623)]() { - return this[n(2121)].length === 0; + get [s(758)]() { + var x = s; + return this[x(1729)][x(2021)] === 0; } - [n(2531)](e = (t) => t[n(2353)]) { - const t = n, a = {}, x = []; - for (const r of this[t(2121)]) - if (r[t(1728)].length > 0) { - const s = r[t(1728)][0]; - a[s] = a[s] || [], a[s].push(e(r)); - } else x[t(818)](e(r)); - return { formErrors: x, fieldErrors: a }; + [s(1996)](x = (t) => t[s(2089)]) { + var t = s; + const a = {}, e = []; + for (const r of this[t(1729)]) + if (r[t(1796)].length > 0) { + const n = r[t(1796)][0]; + a[n] = a[n] || [], a[n][t(2380)](x(r)); + } else e.push(x(r)); + return { formErrors: e, fieldErrors: a }; } get formErrors() { - return this.flatten(); + var x = s; + return this[x(1996)](); } } -Px.create = (i) => new Px(i); -const Tt = (i, e) => { - const t = n; +ke.create = (i) => new ke(i); +const Mt = (i, x) => { + var t = s; let a; - switch (i[t(1204)]) { - case K[t(2600)]: - i[t(2696)] === _[t(2634)] ? a = "Required" : a = t(506) + i.expected + ", received " + i[t(2696)]; + switch (i.code) { + case B[t(635)]: + i[t(656)] === e0[t(1887)] ? a = t(1068) : a = t(2301) + i[t(2599)] + t(707) + i[t(656)]; break; - case K[t(1836)]: - a = "Invalid literal value, expected " + JSON[t(2301)](i[t(2060)], F0[t(1257)]); + case B.invalid_literal: + a = "Invalid literal value, expected " + JSON.stringify(i[t(2599)], N0[t(600)]); break; - case K[t(699)]: - a = "Unrecognized key(s) in object: " + F0[t(827)](i[t(2278)], ", "); + case B[t(1289)]: + a = t(1226) + N0[t(2111)](i[t(1040)], ", "); break; - case K[t(2342)]: + case B[t(1550)]: a = "Invalid input"; break; - case K[t(2161)]: - a = t(2560) + F0[t(827)](i.options); + case B[t(2450)]: + a = t(750) + N0[t(2111)](i[t(778)]); break; - case K.invalid_enum_value: - a = t(2348) + F0[t(827)](i[t(2687)]) + t(1943) + i[t(2696)] + "'"; + case B.invalid_enum_value: + a = t(1294) + N0[t(2111)](i[t(778)]) + t(1679) + i[t(656)] + "'"; break; - case K[t(2158)]: - a = t(2007); + case B[t(2579)]: + a = t(1347); break; - case K.invalid_return_type: - a = t(1712); + case B[t(1628)]: + a = t(2595); break; - case K[t(1769)]: - a = t(1920); + case B[t(1225)]: + a = t(1288); break; - case K[t(2125)]: - typeof i[t(570)] === t(2437) ? t(1958) in i.validation ? (a = t(2397) + i[t(570)].includes + '"', typeof i[t(570)][t(1412)] === t(2074) && (a = a + " at one or more positions greater than or equal to " + i.validation.position)) : t(1817) in i[t(570)] ? a = t(520) + i[t(570)][t(1817)] + '"' : "endsWith" in i.validation ? a = t(2643) + i.validation.endsWith + '"' : F0[t(920)](i[t(570)]) : i[t(570)] !== t(1131) ? a = t(993) + i[t(570)] : a = "Invalid"; + case B[t(1191)]: + typeof i.validation === t(1923) ? t(553) in i.validation ? (a = t(986) + i.validation.includes + '"', typeof i.validation[t(1670)] == "number" && (a = a + t(2356) + i[t(391)][t(1670)])) : t(467) in i[t(391)] ? a = t(1918) + i[t(391)][t(467)] + '"' : t(956) in i[t(391)] ? a = 'Invalid input: must end with "' + i.validation[t(956)] + '"' : N0[t(1397)](i[t(391)]) : i[t(391)] !== "regex" ? a = t(766) + i[t(391)] : a = t(1589); break; - case K[t(2046)]: - i[t(2426)] === "array" ? a = t(2029) + (i[t(2175)] ? "exactly" : i.inclusive ? t(1542) : t(2635)) + " " + i[t(959)] + " element(s)" : i[t(2426)] === t(923) ? a = t(1399) + (i.exact ? "exactly" : i[t(2427)] ? t(1542) : t(2561)) + " " + i[t(959)] + t(2425) : i[t(2426)] === t(2074) ? a = t(620) + (i[t(2175)] ? t(925) : i[t(2427)] ? t(1329) : t(1961)) + i[t(959)] : i[t(2426)] === t(1323) ? a = t(620) + (i[t(2175)] ? "exactly equal to " : i[t(2427)] ? t(1329) : "greater than ") + i[t(959)] : i.type === t(1633) ? a = t(1612) + (i[t(2175)] ? t(925) : i[t(2427)] ? "greater than or equal to " : t(1961)) + new Date(Number(i[t(959)])) : a = t(1581); + case B.too_small: + i[t(338)] === t(1315) ? a = t(444) + (i[t(2295)] ? t(1102) : i.inclusive ? t(1216) : t(2475)) + " " + i.minimum + t(1560) : i[t(338)] === t(2348) ? a = "String must contain " + (i[t(2295)] ? t(1102) : i[t(1526)] ? t(1216) : t(995)) + " " + i[t(1848)] + " character(s)" : i[t(338)] === t(960) ? a = t(1391) + (i.exact ? t(1002) : i[t(1526)] ? t(912) : "greater than ") + i[t(1848)] : i[t(338)] === "bigint" ? a = t(1391) + (i.exact ? t(1002) : i.inclusive ? t(912) : t(301)) + i[t(1848)] : i[t(338)] === "date" ? a = t(2053) + (i.exact ? t(1002) : i[t(1526)] ? t(912) : t(301)) + new Date(Number(i[t(1848)])) : a = t(1506); break; - case K[t(1151)]: - i.type === "array" ? a = "Array must contain " + (i.exact ? t(485) : i[t(2427)] ? t(2345) : "less than") + " " + i[t(756)] + t(1145) : i[t(2426)] === t(923) ? a = t(1399) + (i[t(2175)] ? t(485) : i[t(2427)] ? t(2345) : "under") + " " + i[t(756)] + t(2425) : i[t(2426)] === t(2074) ? a = "Number must be " + (i[t(2175)] ? t(485) : i.inclusive ? t(508) : t(2177)) + " " + i[t(756)] : i.type === t(1323) ? a = t(583) + (i[t(2175)] ? t(485) : i[t(2427)] ? t(508) : "less than") + " " + i.maximum : i[t(2426)] === t(1633) ? a = t(1612) + (i[t(2175)] ? t(485) : i[t(2427)] ? "smaller than or equal to" : t(1908)) + " " + new Date(Number(i[t(756)])) : a = t(1581); + case B.too_big: + i[t(338)] === t(1315) ? a = t(444) + (i[t(2295)] ? "exactly" : i.inclusive ? t(1488) : t(445)) + " " + i[t(981)] + " element(s)" : i[t(338)] === t(2348) ? a = t(2607) + (i[t(2295)] ? t(1102) : i[t(1526)] ? t(1488) : t(1144)) + " " + i.maximum + t(1013) : i[t(338)] === "number" ? a = t(1391) + (i[t(2295)] ? t(1102) : i[t(1526)] ? t(2480) : t(445)) + " " + i[t(981)] : i[t(338)] === t(356) ? a = "BigInt must be " + (i.exact ? t(1102) : i[t(1526)] ? "less than or equal to" : t(445)) + " " + i.maximum : i[t(338)] === "date" ? a = "Date must be " + (i[t(2295)] ? "exactly" : i[t(1526)] ? "smaller than or equal to" : t(2167)) + " " + new Date(Number(i[t(981)])) : a = t(1506); break; - case K.custom: - a = t(1581); + case B[t(2290)]: + a = "Invalid input"; break; - case K[t(658)]: - a = t(2124); + case B.invalid_intersection_types: + a = t(1326); break; - case K[t(1894)]: - a = t(2605) + i[t(500)]; + case B[t(590)]: + a = t(1389) + i[t(2246)]; break; - case K[t(977)]: - a = t(1180); + case B[t(1803)]: + a = "Number must be finite"; break; default: - a = e[t(2183)], F0[t(920)](i); + a = x.defaultError, N0[t(1397)](i); } return { message: a }; }; -let Ds = Tt; -function js() { - return Ds; +let jn = Mt; +function Mn() { + return jn; } -const Ms = (i) => { - const e = n, { data: t, path: a, errorMaps: x, issueData: r } = i, s = [...a, ...r[e(1728)] || []], o = { ...r, path: s }; - if (r[e(2353)] !== void 0) return { ...r, path: s, message: r[e(2353)] }; +const Ln = (i) => { + var x = s; + const { data: t, path: a, errorMaps: e, issueData: r } = i, n = [...a, ...r.path || []], o = { ...r, path: n }; + if (r[x(2089)] !== void 0) return { ...r, path: n, message: r[x(2089)] }; let c = ""; - const d = x[e(893)]((u) => !!u)[e(2602)]()[e(1725)](); - for (const u of d) - c = u(o, { data: t, defaultError: c })[e(2353)]; - return { ...r, path: s, message: c }; + const u = e[x(2397)]((d) => !!d).slice()[x(1976)](); + for (const d of u) + c = d(o, { data: t, defaultError: c }).message; + return { ...r, path: n, message: c }; }; -function X(i, e) { - const t = n, a = js(), x = Ms({ issueData: e, data: i[t(726)], path: i[t(1728)], errorMaps: [i[t(2140)][t(568)], i[t(1865)], a, a === Tt ? void 0 : Tt].filter((r) => !!r) }); - i.common[t(2121)][t(818)](x); +function Y(i, x) { + var t = s; + const a = Mn(), e = Ln({ issueData: x, data: i[t(1073)], path: i[t(1796)], errorMaps: [i.common[t(2096)], i.schemaErrorMap, a, a === Mt ? void 0 : Mt][t(2397)]((r) => !!r) }); + i[t(975)].issues.push(e); } -class xx { +class ee { constructor() { - const e = n; - this[e(2391)] = "valid"; + this.value = "valid"; } - [n(2246)]() { - const e = n; - this[e(2391)] === e(1954) && (this[e(2391)] = e(2246)); + [s(1162)]() { + var x = s; + this[x(2038)] === "valid" && (this[x(2038)] = "dirty"); } - [n(2480)]() { - const e = n; - this[e(2391)] !== "aborted" && (this[e(2391)] = e(1786)); + [s(1198)]() { + var x = s; + this[x(2038)] !== x(806) && (this[x(2038)] = "aborted"); } - static [n(896)](e, t) { - const a = n, x = []; + static [s(2048)](x, t) { + var a = s; + const e = []; for (const r of t) { - if (r[a(1713)] === a(1786)) return h0; - r[a(1713)] === "dirty" && e.dirty(), x[a(818)](r[a(2391)]); + if (r[a(2296)] === "aborted") return h0; + r[a(2296)] === a(1162) && x.dirty(), e[a(2380)](r[a(2038)]); } - return { status: e[a(2391)], value: x }; + return { status: x.value, value: e }; } - static async [n(1045)](e, t) { - const a = n, x = []; + static async [s(2665)](x, t) { + var a = s; + const e = []; for (const r of t) { - const s = await r[a(1232)], o = await r[a(2391)]; - x[a(818)]({ key: s, value: o }); + const n = await r[a(1810)], o = await r.value; + e.push({ key: n, value: o }); } - return xx[a(516)](e, x); + return ee[a(1058)](x, e); } - static [n(516)](e, t) { - const a = n, x = {}; + static [s(1058)](x, t) { + var a = s; + const e = {}; for (const r of t) { - const { key: s, value: o } = r; - if (s[a(1713)] === a(1786) || o[a(1713)] === a(1786)) return h0; - s[a(1713)] === a(2246) && e[a(2246)](), o.status === a(2246) && e[a(2246)](), s[a(2391)] !== "__proto__" && (typeof o[a(2391)] < "u" || r.alwaysSet) && (x[s.value] = o[a(2391)]); + const { key: n, value: o } = r; + if (n[a(2296)] === "aborted" || o[a(2296)] === a(806)) return h0; + n[a(2296)] === a(1162) && x[a(1162)](), o[a(2296)] === a(1162) && x[a(1162)](), n[a(2038)] !== a(1416) && (typeof o.value < "u" || r[a(604)]) && (e[n[a(2038)]] = o[a(2038)]); } - return { status: e[a(2391)], value: x }; + return { status: x.value, value: e }; } } -const h0 = Object.freeze({ status: n(1786) }), Yx = (i) => ({ status: "dirty", value: i }), rx = (i) => ({ status: n(1954), value: i }), Sr = (i) => i[n(1713)] === n(1786), Pr = (i) => i.status === n(2246), Vx = (i) => i[n(1713)] === "valid", ge = (i) => typeof Promise < "u" && i instanceof Promise; -var e0; +const h0 = Object[s(568)]({ status: s(806) }), Qe = (i) => ({ status: s(1162), value: i }), re = (i) => ({ status: s(2538), value: i }), Ir = (i) => i[s(2296)] === "aborted", Pr = (i) => i[s(2296)] === "dirty", Ve = (i) => i.status === s(2538), px = (i) => typeof Promise < "u" && i instanceof Promise; +var a0; (function(i) { - const e = n; - i.errToObj = (t) => typeof t === e(923) ? { message: t } : t || {}, i[e(879)] = (t) => typeof t == "string" ? t : t == null ? void 0 : t[e(2353)]; -})(e0 || (e0 = {})); -class px { - constructor(e, t, a, x) { - const r = n; - this[r(681)] = [], this[r(548)] = e, this.data = t, this._path = a, this[r(2290)] = x; + var x = s; + i[x(2649)] = (t) => typeof t === x(2348) ? { message: t } : t || {}, i[x(1892)] = (t) => typeof t === x(2348) ? t : t == null ? void 0 : t[x(2089)]; +})(a0 || (a0 = {})); +class me { + constructor(x, t, a, e) { + var r = s; + this._cachedPath = [], this[r(2115)] = x, this[r(1073)] = t, this[r(2549)] = a, this._key = e; } - get [n(1728)]() { - const e = n; - return !this[e(681)][e(1200)] && (Array[e(2344)](this._key) ? this._cachedPath[e(818)](...this[e(1710)], ...this[e(2290)]) : this[e(681)][e(818)](...this[e(1710)], this[e(2290)])), this._cachedPath; + get path() { + var x = s; + return !this._cachedPath.length && (Array[x(1435)](this[x(1089)]) ? this[x(1804)][x(2380)](...this[x(2549)], ...this[x(1089)]) : this._cachedPath[x(2380)](...this[x(2549)], this[x(1089)])), this[x(1804)]; } } -const kr = (i, e) => { - const t = n; - if (Vx(e)) return { success: !0, data: e[t(2391)] }; - if (!i[t(2140)][t(2121)][t(1200)]) throw new Error("Validation failed but no issues detected."); +const Rr = (i, x) => { + var t = s; + if (Ve(x)) return { success: !0, data: x[t(2038)] }; + if (!i[t(975)][t(1729)][t(2021)]) throw new Error(t(1705)); return { success: !1, get error() { - const a = t; - if (this[a(2661)]) return this[a(2661)]; - const x = new Px(i[a(2140)][a(2121)]); - return this[a(2661)] = x, this[a(2661)]; + var a = t; + if (this._error) return this[a(1850)]; + const e = new ke(i[a(975)][a(1729)]); + return this[a(1850)] = e, this[a(1850)]; } }; }; -function y0(i) { - const e = n; +function b0(i) { + var x = s; if (!i) return {}; - const { errorMap: t, invalid_type_error: a, required_error: x, description: r } = i; - if (t && (a || x)) throw new Error(e(1302)); + const { errorMap: t, invalid_type_error: a, required_error: e, description: r } = i; + if (t && (a || e)) throw new Error(x(1562)); return t ? { errorMap: t, description: r } : { errorMap: (o, c) => { - const d = e, { message: u } = i; - return o[d(1204)] === d(533) ? { message: u ?? c[d(2183)] } : typeof c[d(726)] === d(2634) ? { message: u ?? x ?? c[d(2183)] } : o.code !== d(2600) ? { message: c[d(2183)] } : { message: u ?? a ?? c[d(2183)] }; + var u = x; + const { message: d } = i; + return o[u(733)] === u(401) ? { message: d ?? c.defaultError } : typeof c[u(1073)] > "u" ? { message: d ?? e ?? c[u(2234)] } : o[u(733)] !== u(635) ? { message: c[u(2234)] } : { message: d ?? a ?? c[u(2234)] }; }, description: r }; } -class k0 { - get [n(2256)]() { - const e = n; - return this[e(1423)][e(2256)]; +class E0 { + get [s(1941)]() { + var x = s; + return this[x(1821)][x(1941)]; } - [n(2182)](e) { - return Ex(e[n(726)]); + [s(337)](x) { + var t = s; + return Ie(x[t(1073)]); } - [n(1892)](e, t) { - const a = n; - return t || { common: e[a(548)][a(2140)], data: e.data, parsedType: Ex(e.data), schemaErrorMap: this[a(1423)][a(798)], path: e[a(1728)], parent: e[a(548)] }; + [s(2486)](x, t) { + var a = s; + return t || { common: x[a(2115)][a(975)], data: x[a(1073)], parsedType: Ie(x.data), schemaErrorMap: this[a(1821)][a(1788)], path: x[a(1796)], parent: x[a(2115)] }; } - [n(512)](e) { - const t = n; - return { status: new xx(), ctx: { common: e[t(548)][t(2140)], data: e[t(726)], parsedType: Ex(e[t(726)]), schemaErrorMap: this[t(1423)][t(798)], path: e[t(1728)], parent: e[t(548)] } }; + [s(1408)](x) { + var t = s; + return { status: new ee(), ctx: { common: x[t(2115)].common, data: x[t(1073)], parsedType: Ie(x.data), schemaErrorMap: this[t(1821)][t(1788)], path: x[t(1796)], parent: x[t(2115)] } }; } - _parseSync(e) { - const t = n, a = this[t(1586)](e); - if (ge(a)) throw new Error(t(1081)); + _parseSync(x) { + var t = s; + const a = this._parse(x); + if (px(a)) throw new Error(t(1385)); return a; } - [n(912)](e) { - const t = n, a = this[t(1586)](e); - return Promise[t(1987)](a); + [s(2628)](x) { + var t = s; + const a = this[t(796)](x); + return Promise[t(1890)](a); } - [n(2156)](e, t) { - const a = n, x = this[a(2732)](e, t); - if (x[a(2288)]) return x[a(726)]; - throw x.error; + [s(1325)](x, t) { + var a = s; + const e = this.safeParse(x, t); + if (e[a(2624)]) return e[a(1073)]; + throw e[a(503)]; } - safeParse(e, t) { - const a = n, x = { common: { issues: [], async: (t == null ? void 0 : t[a(1721)]) ?? !1, contextualErrorMap: t == null ? void 0 : t[a(798)] }, path: (t == null ? void 0 : t[a(1728)]) || [], schemaErrorMap: this[a(1423)].errorMap, parent: null, data: e, parsedType: Ex(e) }, r = this[a(1099)]({ data: e, path: x.path, parent: x }); - return kr(x, r); + safeParse(x, t) { + var a = s; + const e = { common: { issues: [], async: (t == null ? void 0 : t[a(2572)]) ?? !1, contextualErrorMap: t == null ? void 0 : t[a(1788)] }, path: (t == null ? void 0 : t[a(1796)]) || [], schemaErrorMap: this[a(1821)][a(1788)], parent: null, data: x, parsedType: Ie(x) }, r = this[a(1252)]({ data: x, path: e.path, parent: e }); + return Rr(e, r); } - [n(1903)](e) { - var x, r; - const t = n, a = { common: { issues: [], async: !!this["~standard"][t(1721)] }, path: [], schemaErrorMap: this._def[t(798)], parent: null, data: e, parsedType: Ex(e) }; - if (!this[t(2685)][t(1721)]) try { - const s = this[t(1099)]({ data: e, path: [], parent: a }); - return Vx(s) ? { value: s[t(2391)] } : { issues: a[t(2140)][t(2121)] }; - } catch (s) { - (r = (x = s == null ? void 0 : s.message) == null ? void 0 : x.toLowerCase()) != null && r.includes(t(1515)) && (this[t(2685)][t(1721)] = !0), a.common = { issues: [], async: !0 }; + [s(2527)](x) { + var e, r; + var t = s; + const a = { common: { issues: [], async: !!this["~standard"][t(2572)] }, path: [], schemaErrorMap: this[t(1821)][t(1788)], parent: null, data: x, parsedType: Ie(x) }; + if (!this[t(1508)][t(2572)]) try { + const n = this[t(1252)]({ data: x, path: [], parent: a }); + return Ve(n) ? { value: n.value } : { issues: a[t(975)][t(1729)] }; + } catch (n) { + (r = (e = n == null ? void 0 : n[t(2089)]) == null ? void 0 : e[t(1991)]()) != null && r[t(553)](t(1727)) && (this[t(1508)][t(2572)] = !0), a[t(975)] = { issues: [], async: !0 }; } - return this[t(912)]({ data: e, path: [], parent: a })[t(1413)]((s) => Vx(s) ? { value: s[t(2391)] } : { issues: a.common[t(2121)] }); + return this[t(2628)]({ data: x, path: [], parent: a })[t(432)]((n) => Ve(n) ? { value: n[t(2038)] } : { issues: a.common[t(1729)] }); } - async [n(790)](e, t) { - const a = n, x = await this[a(646)](e, t); - if (x[a(2288)]) return x[a(726)]; - throw x[a(2389)]; + async [s(955)](x, t) { + var a = s; + const e = await this[a(2433)](x, t); + if (e[a(2624)]) return e[a(1073)]; + throw e[a(503)]; } - async [n(646)](e, t) { - const a = n, x = { common: { issues: [], contextualErrorMap: t == null ? void 0 : t[a(798)], async: !0 }, path: (t == null ? void 0 : t[a(1728)]) || [], schemaErrorMap: this._def[a(798)], parent: null, data: e, parsedType: Ex(e) }, r = this[a(1586)]({ data: e, path: x[a(1728)], parent: x }), s = await (ge(r) ? r : Promise[a(1987)](r)); - return kr(x, s); + async safeParseAsync(x, t) { + var a = s; + const e = { common: { issues: [], contextualErrorMap: t == null ? void 0 : t.errorMap, async: !0 }, path: (t == null ? void 0 : t[a(1796)]) || [], schemaErrorMap: this[a(1821)].errorMap, parent: null, data: x, parsedType: Ie(x) }, r = this[a(796)]({ data: x, path: e[a(1796)], parent: e }), n = await (px(r) ? r : Promise[a(1890)](r)); + return Rr(e, n); } - [n(1628)](e, t) { - const a = n, x = (r) => typeof t === B(923) || typeof t > "u" ? { message: t } : typeof t == "function" ? t(r) : t; - return this[a(2262)]((r, s) => { - const o = a, c = e(r), d = () => s[o(715)]({ code: K[o(938)], ...x(r) }); - return typeof Promise < "u" && c instanceof Promise ? c[o(1413)]((u) => u ? !0 : (d(), !1)) : c ? !0 : (d(), !1); + refine(x, t) { + var a = s; + const e = (r) => { + var n = K; + return typeof t === n(2348) || typeof t === n(1887) ? { message: t } : typeof t === n(1853) ? t(r) : t; + }; + return this[a(1072)]((r, n) => { + var o = a; + const c = x(r), u = () => n.addIssue({ code: B[o(2290)], ...e(r) }); + return typeof Promise !== o(1887) && c instanceof Promise ? c.then((d) => d ? !0 : (u(), !1)) : c ? !0 : (u(), !1); }); } - [n(2508)](e, t) { - return this._refinement((a, x) => { - const r = B; - return e(a) ? !0 : (x[r(715)](typeof t == "function" ? t(a, x) : t), !1); + refinement(x, t) { + var a = s; + return this[a(1072)]((e, r) => { + var n = a; + return x(e) ? !0 : (r[n(441)](typeof t === n(1853) ? t(e, r) : t), !1); }); } - [n(2262)](e) { - const t = n; - return new qx({ schema: this, typeName: p0[t(2457)], effect: { type: "refinement", refinement: e } }); + _refinement(x) { + var t = s; + return new qe({ schema: this, typeName: p0[t(1762)], effect: { type: t(623), refinement: x } }); } - superRefine(e) { - return this[n(2262)](e); + [s(1947)](x) { + var t = s; + return this[t(1072)](x); } - constructor(e) { - const t = n; - this[t(760)] = this[t(646)], this[t(1423)] = e, this[t(2156)] = this[t(2156)].bind(this), this.safeParse = this.safeParse[t(1571)](this), this[t(790)] = this[t(790)][t(1571)](this), this[t(646)] = this[t(646)].bind(this), this[t(760)] = this.spa[t(1571)](this), this[t(1628)] = this[t(1628)].bind(this), this[t(2508)] = this.refinement[t(1571)](this), this[t(2213)] = this.superRefine[t(1571)](this), this[t(1360)] = this[t(1360)][t(1571)](this), this[t(981)] = this[t(981)][t(1571)](this), this[t(1282)] = this[t(1282)][t(1571)](this), this[t(1196)] = this.array[t(1571)](this), this[t(1001)] = this[t(1001)].bind(this), this.or = this.or.bind(this), this[t(2374)] = this[t(2374)][t(1571)](this), this[t(1110)] = this[t(1110)][t(1571)](this), this[t(610)] = this.brand.bind(this), this[t(1658)] = this[t(1658)].bind(this), this[t(641)] = this[t(641)][t(1571)](this), this[t(2592)] = this[t(2592)][t(1571)](this), this[t(1112)] = this.pipe[t(1571)](this), this[t(691)] = this[t(691)][t(1571)](this), this[t(2638)] = this[t(2638)].bind(this), this.isOptional = this.isOptional[t(1571)](this), this[t(2685)] = { version: 1, vendor: t(2373), validate: (a) => this[t(1903)](a) }; + constructor(x) { + var t = s; + this[t(2652)] = this[t(2433)], this[t(1821)] = x, this[t(1325)] = this[t(1325)][t(1748)](this), this[t(915)] = this.safeParse[t(1748)](this), this[t(955)] = this.parseAsync[t(1748)](this), this.safeParseAsync = this.safeParseAsync.bind(this), this.spa = this[t(2652)][t(1748)](this), this[t(1734)] = this.refine[t(1748)](this), this[t(623)] = this.refinement[t(1748)](this), this[t(1947)] = this[t(1947)][t(1748)](this), this.optional = this[t(1285)][t(1748)](this), this[t(1977)] = this[t(1977)][t(1748)](this), this[t(2591)] = this[t(2591)][t(1748)](this), this[t(1315)] = this[t(1315)][t(1748)](this), this[t(694)] = this[t(694)][t(1748)](this), this.or = this.or.bind(this), this[t(1267)] = this[t(1267)][t(1748)](this), this.transform = this.transform[t(1748)](this), this[t(1852)] = this[t(1852)][t(1748)](this), this[t(2641)] = this[t(2641)][t(1748)](this), this.catch = this.catch[t(1748)](this), this[t(1205)] = this.describe[t(1748)](this), this.pipe = this.pipe[t(1748)](this), this[t(1207)] = this[t(1207)][t(1748)](this), this.isNullable = this[t(977)][t(1748)](this), this.isOptional = this[t(1520)][t(1748)](this), this["~standard"] = { version: 1, vendor: t(1690), validate: (a) => this["~validate"](a) }; } - [n(1360)]() { - const e = n; - return Sx[e(1108)](this, this[e(1423)]); + [s(1285)]() { + return Se.create(this, this._def); } - nullable() { - const e = n; - return jx[e(1108)](this, this[e(1423)]); + [s(1977)]() { + var x = s; + return je[x(2196)](this, this[x(1821)]); } - [n(1282)]() { - const e = n; - return this[e(981)]()[e(1360)](); + [s(2591)]() { + var x = s; + return this[x(1977)]()[x(1285)](); } - [n(1196)]() { - return hx[n(1108)](this); + array() { + var x = s; + return pe[x(2196)](this); } - [n(1001)]() { - const e = n; - return Pe[e(1108)](this, this[e(1423)]); + promise() { + var x = s; + return wx[x(2196)](this, this[x(1821)]); } - or(e) { - const t = n; - return ye[t(1108)]([this, e], this[t(1423)]); + or(x) { + var t = s; + return vx[t(2196)]([this, x], this[t(1821)]); } - [n(2374)](e) { - const t = n; - return be[t(1108)](this, e, this[t(1423)]); + [s(1267)](x) { + var t = s; + return gx[t(2196)](this, x, this[t(1821)]); } - [n(1110)](e) { - const t = n; - return new qx({ ...y0(this[t(1423)]), schema: this, typeName: p0[t(2457)], effect: { type: t(1110), transform: e } }); + transform(x) { + var t = s; + return new qe({ ...b0(this[t(1821)]), schema: this, typeName: p0[t(1762)], effect: { type: t(1009), transform: x } }); } - default(e) { - const t = n, a = typeof e == "function" ? e : () => e; - return new ke({ ...y0(this[t(1423)]), innerType: this, defaultValue: a, typeName: p0[t(2510)] }); + [s(2641)](x) { + var t = s; + const a = typeof x === t(1853) ? x : () => x; + return new Sx({ ...b0(this[t(1821)]), innerType: this, defaultValue: a, typeName: p0[t(2520)] }); } - [n(610)]() { - const e = n; - return new jn({ typeName: p0.ZodBranded, type: this, ...y0(this[e(1423)]) }); + [s(1852)]() { + var x = s; + return new Ls({ typeName: p0[x(1442)], type: this, ...b0(this._def) }); } - catch(e) { - const t = n, a = typeof e === t(1342) ? e : () => e; - return new Ee({ ...y0(this._def), innerType: this, catchValue: a, typeName: p0.ZodCatch }); + [s(947)](x) { + var t = s; + const a = typeof x === t(1853) ? x : () => x; + return new kx({ ...b0(this[t(1821)]), innerType: this, catchValue: a, typeName: p0.ZodCatch }); } - [n(2592)](e) { - const t = n, a = this[t(2331)]; - return new a({ ...this[t(1423)], description: e }); + describe(x) { + var t = s; + const a = this[t(599)]; + return new a({ ...this[t(1821)], description: x }); } - [n(1112)](e) { - return _t.create(this, e); + [s(2207)](x) { + var t = s; + return rr[t(2196)](this, x); } - [n(691)]() { - return Ce[n(1108)](this); + [s(1207)]() { + var x = s; + return Ex[x(2196)](this); } - isOptional() { - return this.safeParse(void 0).success; + [s(1520)]() { + var x = s; + return this.safeParse(void 0)[x(2624)]; } - [n(2638)]() { - const e = n; - return this[e(2732)](null)[e(2288)]; + [s(977)]() { + var x = s; + return this.safeParse(null)[x(2624)]; } } -const Ls = /^c[^\s-]{8,}$/i, $s = /^[0-9a-z]+$/, zs = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Hs = /^[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, Us = /^[a-z0-9_-]{21}$/i, Vs = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Zs = /^[-+]?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)?)??$/, Ws = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Bs = n(683); -let ze; -const Ks = /^(?:(?: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])$/, Js = /^(?:(?: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])$/, Qs = /^(([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]))$/, Gs = /^(([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])$/, Ys = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Xs = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, An = n(1996), _s = new RegExp("^" + An + "$"); -function Tn(i) { - const e = n; - let t = e(2286); - i[e(1246)] ? t = t + e(1160) + i[e(1246)] + "}" : i[e(1246)] == null && (t = t + e(1575)); - const a = i[e(1246)] ? "+" : "?"; - return e(604) + t + ")" + a; +const $n = /^c[^\s-]{8,}$/i, zn = /^[0-9a-z]+$/, Hn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Un = /^[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, Vn = /^[a-z0-9_-]{21}$/i, Wn = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Zn = /^[-+]?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)?)??$/, Bn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Kn = s(2619); +let $x; +const Jn = /^(?:(?: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])$/, Gn = /^(?:(?: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])$/, Qn = /^(([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]))$/, Xn = /^(([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])$/, Yn = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, _n = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ds = s(1173), ei = new RegExp("^" + Ds + "$"); +function js(i) { + var x = s; + let t = x(2344); + i[x(1886)] ? t = t + x(1136) + i[x(1886)] + "}" : i.precision == null && (t = t + x(380)); + const a = i[x(1886)] ? "+" : "?"; + return x(674) + t + ")" + a; } function xi(i) { - return new RegExp("^" + Tn(i) + "$"); + return new RegExp("^" + js(i) + "$"); } -function ei(i) { - const e = n; - let t = An + "T" + Tn(i); +function ti(i) { + var x = s; + let t = Ds + "T" + js(i); const a = []; - return a[e(818)](i[e(2412)] ? "Z?" : "Z"), i[e(926)] && a[e(818)](e(2134)), t = t + "(" + a[e(2573)]("|") + ")", new RegExp("^" + t + "$"); + return a[x(2380)](i[x(2645)] ? "Z?" : "Z"), i[x(1636)] && a.push(x(2315)), t = t + "(" + a[x(2515)]("|") + ")", new RegExp("^" + t + "$"); } -function ti(i, e) { - return !!((e === "v4" || !e) && Ks[n(1313)](i) || (e === "v6" || !e) && Qs.test(i)); +function ri(i, x) { + var t = s; + return !!((x === "v4" || !x) && Jn[t(856)](i) || (x === "v6" || !x) && Qn[t(856)](i)); } -function ri(i, e) { - const t = n; - if (!Vs[t(1313)](i)) return !1; +function ai(i, x) { + var t = s; + if (!Wn[t(856)](i)) return !1; try { - const [a] = i.split("."); + const [a] = i[t(2183)]("."); if (!a) return !1; - const x = a.replace(/-/g, "+").replace(/_/g, "/")[t(1990)](a[t(1200)] + (4 - a.length % 4) % 4, "="), r = JSON[t(2156)](atob(x)); - return !(typeof r !== t(2437) || r === null || "typ" in r && (r == null ? void 0 : r[t(1424)]) !== t(1703) || !r[t(1984)] || e && r[t(1984)] !== e); + const e = a[t(2112)](/-/g, "+")[t(2112)](/_/g, "/")[t(1041)](a[t(2021)] + (4 - a[t(2021)] % 4) % 4, "="), r = JSON.parse(atob(e)); + return !(typeof r !== t(1923) || r === null || t(543) in r && (r == null ? void 0 : r[t(543)]) !== t(335) || !r[t(1036)] || x && r[t(1036)] !== x); } catch { return !1; } } -function ai(i, e) { - const t = n; - return !!((e === "v4" || !e) && Js[t(1313)](i) || (e === "v6" || !e) && Gs[t(1313)](i)); +function si(i, x) { + var t = s; + return !!((x === "v4" || !x) && Gn[t(856)](i) || (x === "v6" || !x) && Xn.test(i)); } -class wx extends k0 { - [n(1586)](e) { - const t = n; - if (this[t(1423)][t(858)] && (e.data = String(e[t(726)])), this[t(2182)](e) !== _[t(923)]) { - const s = this[t(1892)](e); - return X(s, { code: K[t(2600)], expected: _[t(923)], received: s[t(2350)] }), h0; +class we extends E0 { + [s(796)](x) { + var t = s; + if (this._def[t(779)] && (x[t(1073)] = String(x.data)), this._getType(x) !== e0.string) { + const n = this[t(2486)](x); + return Y(n, { code: B[t(635)], expected: e0[t(2348)], received: n[t(2268)] }), h0; } - const x = new xx(); + const e = new ee(); let r; - for (const s of this[t(1423)][t(2277)]) - if (s[t(651)] === t(606)) e[t(726)][t(1200)] < s[t(2391)] && (r = this[t(1892)](e, r), X(r, { code: K[t(2046)], minimum: s[t(2391)], type: t(923), inclusive: !0, exact: !1, message: s[t(2353)] }), x[t(2246)]()); - else if (s[t(651)] === t(599)) e[t(726)].length > s[t(2391)] && (r = this._getOrReturnCtx(e, r), X(r, { code: K[t(1151)], maximum: s.value, type: t(923), inclusive: !0, exact: !1, message: s[t(2353)] }), x[t(2246)]()); - else if (s.kind === "length") { - const o = e.data[t(1200)] > s[t(2391)], c = e[t(726)][t(1200)] < s[t(2391)]; - (o || c) && (r = this[t(1892)](e, r), o ? X(r, { code: K[t(1151)], maximum: s.value, type: t(923), inclusive: !0, exact: !0, message: s[t(2353)] }) : c && X(r, { code: K[t(2046)], minimum: s.value, type: "string", inclusive: !0, exact: !0, message: s[t(2353)] }), x[t(2246)]()); - } else if (s[t(651)] === t(1506)) !Ws[t(1313)](e[t(726)]) && (r = this[t(1892)](e, r), X(r, { validation: t(1506), code: K.invalid_string, message: s[t(2353)] }), x[t(2246)]()); - else if (s[t(651)] === t(1309)) !ze && (ze = new RegExp(Bs, "u")), !ze[t(1313)](e.data) && (r = this._getOrReturnCtx(e, r), X(r, { validation: t(1309), code: K[t(2125)], message: s[t(2353)] }), x.dirty()); - else if (s[t(651)] === t(2035)) !Hs[t(1313)](e[t(726)]) && (r = this[t(1892)](e, r), X(r, { validation: t(2035), code: K.invalid_string, message: s[t(2353)] }), x[t(2246)]()); - else if (s.kind === t(2517)) !Us.test(e[t(726)]) && (r = this[t(1892)](e, r), X(r, { validation: t(2517), code: K.invalid_string, message: s.message }), x[t(2246)]()); - else if (s[t(651)] === "cuid") !Ls[t(1313)](e.data) && (r = this[t(1892)](e, r), X(r, { validation: t(517), code: K[t(2125)], message: s[t(2353)] }), x[t(2246)]()); - else if (s[t(651)] === t(703)) !$s[t(1313)](e[t(726)]) && (r = this[t(1892)](e, r), X(r, { validation: t(703), code: K.invalid_string, message: s[t(2353)] }), x[t(2246)]()); - else if (s[t(651)] === t(1215)) !zs[t(1313)](e[t(726)]) && (r = this[t(1892)](e, r), X(r, { validation: t(1215), code: K.invalid_string, message: s[t(2353)] }), x[t(2246)]()); - else if (s[t(651)] === "url") try { - new URL(e[t(726)]); + for (const n of this[t(1821)][t(2055)]) + if (n[t(1495)] === t(1524)) x[t(1073)].length < n[t(2038)] && (r = this[t(2486)](x, r), Y(r, { code: B[t(1287)], minimum: n[t(2038)], type: t(2348), inclusive: !0, exact: !1, message: n[t(2089)] }), e.dirty()); + else if (n[t(1495)] === t(2537)) x.data.length > n.value && (r = this[t(2486)](x, r), Y(r, { code: B[t(718)], maximum: n.value, type: t(2348), inclusive: !0, exact: !1, message: n[t(2089)] }), e.dirty()); + else if (n[t(1495)] === "length") { + const o = x[t(1073)].length > n[t(2038)], c = x[t(1073)][t(2021)] < n[t(2038)]; + (o || c) && (r = this._getOrReturnCtx(x, r), o ? Y(r, { code: B[t(718)], maximum: n[t(2038)], type: t(2348), inclusive: !0, exact: !0, message: n[t(2089)] }) : c && Y(r, { code: B[t(1287)], minimum: n[t(2038)], type: "string", inclusive: !0, exact: !0, message: n[t(2089)] }), e[t(1162)]()); + } else if (n[t(1495)] === t(2500)) !Bn[t(856)](x[t(1073)]) && (r = this[t(2486)](x, r), Y(r, { validation: t(2500), code: B.invalid_string, message: n[t(2089)] }), e[t(1162)]()); + else if (n.kind === t(1071)) !$x && ($x = new RegExp(Kn, "u")), !$x.test(x[t(1073)]) && (r = this._getOrReturnCtx(x, r), Y(r, { validation: t(1071), code: B.invalid_string, message: n.message }), e[t(1162)]()); + else if (n[t(1495)] === t(616)) !Un[t(856)](x[t(1073)]) && (r = this[t(2486)](x, r), Y(r, { validation: t(616), code: B[t(1191)], message: n[t(2089)] }), e[t(1162)]()); + else if (n[t(1495)] === "nanoid") !Vn.test(x[t(1073)]) && (r = this._getOrReturnCtx(x, r), Y(r, { validation: t(1008), code: B.invalid_string, message: n.message }), e[t(1162)]()); + else if (n[t(1495)] === "cuid") !$n[t(856)](x.data) && (r = this[t(2486)](x, r), Y(r, { validation: t(1926), code: B[t(1191)], message: n[t(2089)] }), e[t(1162)]()); + else if (n[t(1495)] === t(548)) !zn.test(x[t(1073)]) && (r = this[t(2486)](x, r), Y(r, { validation: t(548), code: B.invalid_string, message: n[t(2089)] }), e.dirty()); + else if (n[t(1495)] === t(924)) !Hn[t(856)](x[t(1073)]) && (r = this[t(2486)](x, r), Y(r, { validation: t(924), code: B[t(1191)], message: n[t(2089)] }), e[t(1162)]()); + else if (n.kind === "url") try { + new URL(x.data); } catch { - r = this._getOrReturnCtx(e, r), X(r, { validation: t(2746), code: K[t(2125)], message: s[t(2353)] }), x[t(2246)](); + r = this[t(2486)](x, r), Y(r, { validation: t(1965), code: B[t(1191)], message: n[t(2089)] }), e[t(1162)](); } else - s[t(651)] === t(1131) ? (s[t(1131)].lastIndex = 0, !s[t(1131)].test(e[t(726)]) && (r = this._getOrReturnCtx(e, r), X(r, { validation: "regex", code: K[t(2125)], message: s[t(2353)] }), x[t(2246)]())) : s[t(651)] === t(2754) ? e.data = e[t(726)][t(2754)]() : s[t(651)] === t(1958) ? !e.data[t(1958)](s[t(2391)], s[t(1412)]) && (r = this[t(1892)](e, r), X(r, { code: K[t(2125)], validation: { includes: s[t(2391)], position: s.position }, message: s.message }), x.dirty()) : s[t(651)] === t(1466) ? e.data = e[t(726)][t(1466)]() : s[t(651)] === t(1834) ? e[t(726)] = e[t(726)].toUpperCase() : s[t(651)] === t(1817) ? !e.data[t(1817)](s[t(2391)]) && (r = this[t(1892)](e, r), X(r, { code: K[t(2125)], validation: { startsWith: s[t(2391)] }, message: s[t(2353)] }), x[t(2246)]()) : s.kind === t(2538) ? !e[t(726)][t(2538)](s[t(2391)]) && (r = this._getOrReturnCtx(e, r), X(r, { code: K[t(2125)], validation: { endsWith: s[t(2391)] }, message: s.message }), x[t(2246)]()) : s.kind === t(1089) ? !ei(s)[t(1313)](e.data) && (r = this[t(1892)](e, r), X(r, { code: K[t(2125)], validation: "datetime", message: s[t(2353)] }), x.dirty()) : s[t(651)] === t(1633) ? !_s[t(1313)](e[t(726)]) && (r = this[t(1892)](e, r), X(r, { code: K.invalid_string, validation: t(1633), message: s[t(2353)] }), x.dirty()) : s[t(651)] === "time" ? !xi(s)[t(1313)](e[t(726)]) && (r = this[t(1892)](e, r), X(r, { code: K[t(2125)], validation: t(2647), message: s[t(2353)] }), x[t(2246)]()) : s[t(651)] === t(1935) ? !Zs.test(e[t(726)]) && (r = this[t(1892)](e, r), X(r, { validation: t(1935), code: K[t(2125)], message: s[t(2353)] }), x.dirty()) : s[t(651)] === "ip" ? !ti(e[t(726)], s[t(876)]) && (r = this[t(1892)](e, r), X(r, { validation: "ip", code: K[t(2125)], message: s[t(2353)] }), x.dirty()) : s.kind === t(1801) ? !ri(e[t(726)], s.alg) && (r = this[t(1892)](e, r), X(r, { validation: t(1801), code: K[t(2125)], message: s[t(2353)] }), x[t(2246)]()) : s[t(651)] === t(2557) ? !ai(e[t(726)], s.version) && (r = this._getOrReturnCtx(e, r), X(r, { validation: "cidr", code: K.invalid_string, message: s[t(2353)] }), x[t(2246)]()) : s[t(651)] === t(2210) ? !Ys[t(1313)](e[t(726)]) && (r = this[t(1892)](e, r), X(r, { validation: t(2210), code: K.invalid_string, message: s.message }), x[t(2246)]()) : s[t(651)] === t(1805) ? !Xs.test(e[t(726)]) && (r = this._getOrReturnCtx(e, r), X(r, { validation: t(1805), code: K.invalid_string, message: s.message }), x[t(2246)]()) : F0[t(920)](s); - return { status: x[t(2391)], value: e[t(726)] }; + n[t(1495)] === t(994) ? (n[t(994)].lastIndex = 0, !n[t(994)][t(856)](x[t(1073)]) && (r = this[t(2486)](x, r), Y(r, { validation: t(994), code: B[t(1191)], message: n[t(2089)] }), e.dirty())) : n.kind === t(902) ? x[t(1073)] = x[t(1073)][t(902)]() : n[t(1495)] === t(553) ? !x[t(1073)][t(553)](n.value, n.position) && (r = this[t(2486)](x, r), Y(r, { code: B[t(1191)], validation: { includes: n[t(2038)], position: n[t(1670)] }, message: n[t(2089)] }), e[t(1162)]()) : n[t(1495)] === t(1991) ? x[t(1073)] = x[t(1073)][t(1991)]() : n.kind === t(1626) ? x[t(1073)] = x.data.toUpperCase() : n[t(1495)] === t(467) ? !x[t(1073)].startsWith(n[t(2038)]) && (r = this[t(2486)](x, r), Y(r, { code: B.invalid_string, validation: { startsWith: n[t(2038)] }, message: n[t(2089)] }), e[t(1162)]()) : n[t(1495)] === "endsWith" ? !x.data[t(956)](n[t(2038)]) && (r = this[t(2486)](x, r), Y(r, { code: B[t(1191)], validation: { endsWith: n[t(2038)] }, message: n[t(2089)] }), e[t(1162)]()) : n[t(1495)] === "datetime" ? !ti(n)[t(856)](x.data) && (r = this[t(2486)](x, r), Y(r, { code: B[t(1191)], validation: t(2559), message: n[t(2089)] }), e[t(1162)]()) : n[t(1495)] === t(1582) ? !ei[t(856)](x[t(1073)]) && (r = this[t(2486)](x, r), Y(r, { code: B[t(1191)], validation: t(1582), message: n.message }), e[t(1162)]()) : n[t(1495)] === t(2285) ? !xi(n)[t(856)](x.data) && (r = this[t(2486)](x, r), Y(r, { code: B[t(1191)], validation: t(2285), message: n[t(2089)] }), e[t(1162)]()) : n[t(1495)] === t(2003) ? !Zn[t(856)](x[t(1073)]) && (r = this[t(2486)](x, r), Y(r, { validation: t(2003), code: B[t(1191)], message: n[t(2089)] }), e[t(1162)]()) : n[t(1495)] === "ip" ? !ri(x[t(1073)], n[t(1098)]) && (r = this._getOrReturnCtx(x, r), Y(r, { validation: "ip", code: B[t(1191)], message: n.message }), e[t(1162)]()) : n[t(1495)] === "jwt" ? !ai(x[t(1073)], n[t(1036)]) && (r = this._getOrReturnCtx(x, r), Y(r, { validation: "jwt", code: B[t(1191)], message: n[t(2089)] }), e.dirty()) : n[t(1495)] === t(809) ? !si(x[t(1073)], n.version) && (r = this._getOrReturnCtx(x, r), Y(r, { validation: t(809), code: B[t(1191)], message: n.message }), e[t(1162)]()) : n[t(1495)] === t(2287) ? !Yn[t(856)](x[t(1073)]) && (r = this[t(2486)](x, r), Y(r, { validation: t(2287), code: B[t(1191)], message: n[t(2089)] }), e.dirty()) : n.kind === t(2307) ? !_n[t(856)](x[t(1073)]) && (r = this._getOrReturnCtx(x, r), Y(r, { validation: t(2307), code: B.invalid_string, message: n[t(2089)] }), e[t(1162)]()) : N0[t(1397)](n); + return { status: e[t(2038)], value: x[t(1073)] }; } - [n(2742)](e, t, a) { - const x = n; - return this.refinement((r) => e[x(1313)](r), { validation: t, code: K.invalid_string, ...e0[x(1236)](a) }); + [s(373)](x, t, a) { + var e = s; + return this[e(623)]((r) => x[e(856)](r), { validation: t, code: B.invalid_string, ...a0[e(2649)](a) }); } - [n(2707)](e) { - const t = n; - return new wx({ ...this[t(1423)], checks: [...this[t(1423)][t(2277)], e] }); + [s(606)](x) { + var t = s; + return new we({ ...this[t(1821)], checks: [...this[t(1821)].checks, x] }); } - [n(1506)](e) { - const t = n; - return this[t(2707)]({ kind: t(1506), ...e0[t(1236)](e) }); + [s(2500)](x) { + var t = s; + return this[t(606)]({ kind: t(2500), ...a0[t(2649)](x) }); } - url(e) { - const t = n; - return this._addCheck({ kind: "url", ...e0[t(1236)](e) }); + [s(1965)](x) { + var t = s; + return this._addCheck({ kind: t(1965), ...a0.errToObj(x) }); } - [n(1309)](e) { - const t = n; - return this[t(2707)]({ kind: "emoji", ...e0[t(1236)](e) }); + [s(1071)](x) { + var t = s; + return this[t(606)]({ kind: t(1071), ...a0.errToObj(x) }); } - [n(2035)](e) { - const t = n; - return this[t(2707)]({ kind: t(2035), ...e0[t(1236)](e) }); + [s(616)](x) { + var t = s; + return this[t(606)]({ kind: t(616), ...a0.errToObj(x) }); } - [n(2517)](e) { - const t = n; - return this[t(2707)]({ kind: t(2517), ...e0.errToObj(e) }); + [s(1008)](x) { + var t = s; + return this[t(606)]({ kind: t(1008), ...a0[t(2649)](x) }); } - cuid(e) { - const t = n; - return this[t(2707)]({ kind: t(517), ...e0[t(1236)](e) }); + [s(1926)](x) { + var t = s; + return this[t(606)]({ kind: t(1926), ...a0.errToObj(x) }); } - cuid2(e) { - const t = n; - return this[t(2707)]({ kind: t(703), ...e0.errToObj(e) }); + [s(548)](x) { + var t = s; + return this[t(606)]({ kind: t(548), ...a0[t(2649)](x) }); } - [n(1215)](e) { - const t = n; - return this[t(2707)]({ kind: t(1215), ...e0[t(1236)](e) }); + [s(924)](x) { + return this._addCheck({ kind: "ulid", ...a0.errToObj(x) }); } - [n(2210)](e) { - const t = n; - return this[t(2707)]({ kind: t(2210), ...e0[t(1236)](e) }); + [s(2287)](x) { + var t = s; + return this._addCheck({ kind: t(2287), ...a0[t(2649)](x) }); } - [n(1805)](e) { - const t = n; - return this[t(2707)]({ kind: t(1805), ...e0[t(1236)](e) }); + base64url(x) { + return this._addCheck({ kind: "base64url", ...a0.errToObj(x) }); } - [n(1801)](e) { - const t = n; - return this[t(2707)]({ kind: t(1801), ...e0[t(1236)](e) }); + [s(677)](x) { + var t = s; + return this[t(606)]({ kind: t(677), ...a0.errToObj(x) }); } - ip(e) { - const t = n; - return this[t(2707)]({ kind: "ip", ...e0[t(1236)](e) }); + ip(x) { + var t = s; + return this[t(606)]({ kind: "ip", ...a0[t(2649)](x) }); } - [n(2557)](e) { - const t = n; - return this[t(2707)]({ kind: "cidr", ...e0[t(1236)](e) }); + cidr(x) { + var t = s; + return this[t(606)]({ kind: t(809), ...a0[t(2649)](x) }); } - [n(1089)](e) { - const t = n; - return typeof e == "string" ? this[t(2707)]({ kind: t(1089), precision: null, offset: !1, local: !1, message: e }) : this._addCheck({ kind: t(1089), precision: typeof (e == null ? void 0 : e[t(1246)]) === t(2634) ? null : e == null ? void 0 : e[t(1246)], offset: (e == null ? void 0 : e[t(926)]) ?? !1, local: (e == null ? void 0 : e[t(2412)]) ?? !1, ...e0[t(1236)](e == null ? void 0 : e[t(2353)]) }); + datetime(x) { + var t = s; + return typeof x === t(2348) ? this[t(606)]({ kind: "datetime", precision: null, offset: !1, local: !1, message: x }) : this[t(606)]({ kind: t(2559), precision: typeof (x == null ? void 0 : x[t(1886)]) > "u" ? null : x == null ? void 0 : x[t(1886)], offset: (x == null ? void 0 : x[t(1636)]) ?? !1, local: (x == null ? void 0 : x[t(2645)]) ?? !1, ...a0[t(2649)](x == null ? void 0 : x[t(2089)]) }); } - [n(1633)](e) { - return this[n(2707)]({ kind: "date", message: e }); + [s(1582)](x) { + var t = s; + return this[t(606)]({ kind: "date", message: x }); } - [n(2647)](e) { - const t = n; - return typeof e === t(923) ? this._addCheck({ kind: "time", precision: null, message: e }) : this[t(2707)]({ kind: t(2647), precision: typeof (e == null ? void 0 : e[t(1246)]) === t(2634) ? null : e == null ? void 0 : e[t(1246)], ...e0.errToObj(e == null ? void 0 : e[t(2353)]) }); + [s(2285)](x) { + var t = s; + return typeof x === t(2348) ? this[t(606)]({ kind: t(2285), precision: null, message: x }) : this[t(606)]({ kind: t(2285), precision: typeof (x == null ? void 0 : x.precision) > "u" ? null : x == null ? void 0 : x[t(1886)], ...a0[t(2649)](x == null ? void 0 : x[t(2089)]) }); } - [n(1935)](e) { - const t = n; - return this._addCheck({ kind: t(1935), ...e0[t(1236)](e) }); + [s(2003)](x) { + var t = s; + return this._addCheck({ kind: t(2003), ...a0[t(2649)](x) }); } - [n(1131)](e, t) { - const a = n; - return this._addCheck({ kind: a(1131), regex: e, ...e0[a(1236)](t) }); + [s(994)](x, t) { + var a = s; + return this[a(606)]({ kind: a(994), regex: x, ...a0[a(2649)](t) }); } - includes(e, t) { - const a = n; - return this._addCheck({ kind: a(1958), value: e, position: t == null ? void 0 : t[a(1412)], ...e0[a(1236)](t == null ? void 0 : t[a(2353)]) }); + [s(553)](x, t) { + var a = s; + return this[a(606)]({ kind: a(553), value: x, position: t == null ? void 0 : t[a(1670)], ...a0[a(2649)](t == null ? void 0 : t[a(2089)]) }); } - startsWith(e, t) { - const a = n; - return this._addCheck({ kind: a(1817), value: e, ...e0[a(1236)](t) }); + startsWith(x, t) { + var a = s; + return this[a(606)]({ kind: a(467), value: x, ...a0[a(2649)](t) }); } - endsWith(e, t) { - const a = n; - return this[a(2707)]({ kind: a(2538), value: e, ...e0[a(1236)](t) }); + [s(956)](x, t) { + var a = s; + return this[a(606)]({ kind: a(956), value: x, ...a0[a(2649)](t) }); } - [n(606)](e, t) { - const a = n; - return this[a(2707)]({ kind: a(606), value: e, ...e0.errToObj(t) }); + [s(1524)](x, t) { + var a = s; + return this[a(606)]({ kind: a(1524), value: x, ...a0.errToObj(t) }); } - max(e, t) { - const a = n; - return this[a(2707)]({ kind: a(599), value: e, ...e0[a(1236)](t) }); + max(x, t) { + var a = s; + return this[a(606)]({ kind: a(2537), value: x, ...a0.errToObj(t) }); } - [n(1200)](e, t) { - const a = n; - return this[a(2707)]({ kind: a(1200), value: e, ...e0[a(1236)](t) }); + [s(2021)](x, t) { + var a = s; + return this._addCheck({ kind: "length", value: x, ...a0[a(2649)](t) }); } - [n(670)](e) { - const t = n; - return this.min(1, e0[t(1236)](e)); + [s(1609)](x) { + var t = s; + return this.min(1, a0[t(2649)](x)); } - [n(2754)]() { - const e = n; - return new wx({ ...this[e(1423)], checks: [...this._def[e(2277)], { kind: e(2754) }] }); + [s(902)]() { + var x = s; + return new we({ ...this[x(1821)], checks: [...this[x(1821)][x(2055)], { kind: x(902) }] }); } - [n(1466)]() { - const e = n; - return new wx({ ...this[e(1423)], checks: [...this._def[e(2277)], { kind: e(1466) }] }); + [s(1991)]() { + var x = s; + return new we({ ...this[x(1821)], checks: [...this._def[x(2055)], { kind: x(1991) }] }); } - [n(1834)]() { - const e = n; - return new wx({ ...this[e(1423)], checks: [...this[e(1423)][e(2277)], { kind: e(1834) }] }); + [s(1626)]() { + var x = s; + return new we({ ...this[x(1821)], checks: [...this[x(1821)][x(2055)], { kind: x(1626) }] }); } - get [n(1400)]() { - const e = n; - return !!this[e(1423)].checks[e(714)]((t) => t[e(651)] === "datetime"); + get [s(1154)]() { + var x = s; + return !!this[x(1821)][x(2055)].find((t) => t[x(1495)] === "datetime"); } - get [n(2624)]() { - const e = n; - return !!this[e(1423)].checks[e(714)]((t) => t[e(651)] === e(1633)); + get isDate() { + var x = s; + return !!this._def.checks[x(1666)]((t) => t[x(1495)] === x(1582)); } - get [n(1106)]() { - const e = n; - return !!this[e(1423)][e(2277)][e(714)]((t) => t[e(651)] === e(2647)); + get [s(1371)]() { + var x = s; + return !!this[x(1821)].checks[x(1666)]((t) => t[x(1495)] === x(2285)); } - get [n(525)]() { - const e = n; - return !!this[e(1423)][e(2277)][e(714)]((t) => t[e(651)] === "duration"); + get [s(818)]() { + var x = s; + return !!this[x(1821)][x(2055)].find((t) => t[x(1495)] === x(2003)); } - get isEmail() { - const e = n; - return !!this._def[e(2277)].find((t) => t[e(651)] === e(1506)); + get [s(842)]() { + var x = s; + return !!this[x(1821)][x(2055)][x(1666)]((t) => t[x(1495)] === x(2500)); } - get [n(559)]() { - const e = n; - return !!this[e(1423)].checks.find((t) => t.kind === e(2746)); + get isURL() { + var x = s; + return !!this[x(1821)].checks.find((t) => t[x(1495)] === x(1965)); } - get [n(2208)]() { - const e = n; - return !!this._def[e(2277)][e(714)]((t) => t[e(651)] === e(1309)); + get isEmoji() { + var x = s; + return !!this[x(1821)][x(2055)][x(1666)]((t) => t[x(1495)] === x(1071)); } - get isUUID() { - const e = n; - return !!this[e(1423)][e(2277)][e(714)]((t) => t[e(651)] === "uuid"); + get [s(935)]() { + var x = s; + return !!this._def[x(2055)].find((t) => t[x(1495)] === "uuid"); } - get [n(2194)]() { - const e = n; - return !!this[e(1423)][e(2277)].find((t) => t[e(651)] === "nanoid"); + get [s(639)]() { + var x = s; + return !!this[x(1821)].checks[x(1666)]((t) => t[x(1495)] === x(1008)); } - get [n(1169)]() { - const e = n; - return !!this[e(1423)][e(2277)].find((t) => t[e(651)] === e(517)); + get [s(2129)]() { + var x = s; + return !!this[x(1821)][x(2055)][x(1666)]((t) => t.kind === x(1926)); } - get [n(1176)]() { - const e = n; - return !!this._def[e(2277)][e(714)]((t) => t[e(651)] === e(703)); + get [s(1051)]() { + var x = s; + return !!this[x(1821)][x(2055)][x(1666)]((t) => t[x(1495)] === x(548)); } get isULID() { - const e = n; - return !!this[e(1423)][e(2277)].find((t) => t[e(651)] === e(1215)); + var x = s; + return !!this._def[x(2055)][x(1666)]((t) => t.kind === x(924)); } - get [n(1756)]() { - const e = n; - return !!this[e(1423)][e(2277)].find((t) => t[e(651)] === "ip"); + get [s(1344)]() { + var x = s; + return !!this[x(1821)][x(2055)][x(1666)]((t) => t[x(1495)] === "ip"); } - get isCIDR() { - const e = n; - return !!this[e(1423)][e(2277)][e(714)]((t) => t[e(651)] === "cidr"); + get [s(1304)]() { + var x = s; + return !!this[x(1821)].checks[x(1666)]((t) => t[x(1495)] === x(809)); } - get isBase64() { - const e = n; - return !!this._def.checks[e(714)]((t) => t[e(651)] === e(2210)); + get [s(2436)]() { + var x = s; + return !!this[x(1821)][x(2055)][x(1666)]((t) => t[x(1495)] === "base64"); } - get [n(1186)]() { - const e = n; - return !!this[e(1423)][e(2277)][e(714)]((t) => t[e(651)] === e(1805)); + get [s(2441)]() { + var x = s; + return !!this[x(1821)][x(2055)][x(1666)]((t) => t[x(1495)] === x(2307)); } - get minLength() { - const e = n; + get [s(549)]() { + var x = s; let t = null; - for (const a of this[e(1423)][e(2277)]) - a[e(651)] === e(606) && (t === null || a[e(2391)] > t) && (t = a[e(2391)]); + for (const a of this[x(1821)][x(2055)]) + a.kind === "min" && (t === null || a[x(2038)] > t) && (t = a[x(2038)]); return t; } - get [n(2692)]() { - const e = n; + get [s(2277)]() { + var x = s; let t = null; - for (const a of this[e(1423)][e(2277)]) - a[e(651)] === "max" && (t === null || a[e(2391)] < t) && (t = a[e(2391)]); + for (const a of this[x(1821)][x(2055)]) + a.kind === "max" && (t === null || a.value < t) && (t = a[x(2038)]); return t; } } -wx[n(1108)] = (i) => { - const e = n; - return new wx({ checks: [], typeName: p0[e(509)], coerce: (i == null ? void 0 : i[e(858)]) ?? !1, ...y0(i) }); +we[s(2196)] = (i) => { + var x = s; + return new we({ checks: [], typeName: p0.ZodString, coerce: (i == null ? void 0 : i[x(779)]) ?? !1, ...b0(i) }); }; -function ni(i, e) { - const t = n, a = (i[t(879)]()[t(2248)](".")[1] || "").length, x = (e.toString()[t(2248)](".")[1] || "")[t(1200)], r = a > x ? a : x, s = Number[t(1479)](i[t(1770)](r)[t(2188)](".", "")), o = Number[t(1479)](e[t(1770)](r)[t(2188)](".", "")); - return s % o / 10 ** r; +function ni(i, x) { + var t = s; + const a = (i[t(1892)]()[t(2183)](".")[1] || "").length, e = (x[t(1892)]()[t(2183)](".")[1] || "").length, r = a > e ? a : e, n = Number[t(412)](i[t(522)](r)[t(2112)](".", "")), o = Number.parseInt(x[t(522)](r)[t(2112)](".", "")); + return n % o / 10 ** r; } -class Zx extends k0 { +class We extends E0 { constructor() { - const e = n; - super(...arguments), this[e(606)] = this[e(1625)], this[e(599)] = this[e(1167)], this[e(1259)] = this.multipleOf; + var x = s; + super(...arguments), this[x(1524)] = this[x(1055)], this[x(2537)] = this[x(2289)], this.step = this[x(2246)]; } - _parse(e) { - const t = n; - if (this[t(1423)][t(858)] && (e.data = Number(e[t(726)])), this._getType(e) !== _[t(2074)]) { - const s = this[t(1892)](e); - return X(s, { code: K.invalid_type, expected: _[t(2074)], received: s[t(2350)] }), h0; + [s(796)](x) { + var t = s; + if (this[t(1821)][t(779)] && (x[t(1073)] = Number(x[t(1073)])), this[t(337)](x) !== e0[t(960)]) { + const n = this[t(2486)](x); + return Y(n, { code: B[t(635)], expected: e0.number, received: n.parsedType }), h0; } - let x; - const r = new xx(); - for (const s of this[t(1423)][t(2277)]) - s[t(651)] === t(1278) ? !F0[t(787)](e[t(726)]) && (x = this._getOrReturnCtx(e, x), X(x, { code: K[t(2600)], expected: t(2255), received: t(1962), message: s[t(2353)] }), r[t(2246)]()) : s.kind === t(606) ? (s[t(2427)] ? e.data < s.value : e[t(726)] <= s[t(2391)]) && (x = this[t(1892)](e, x), X(x, { code: K[t(2046)], minimum: s[t(2391)], type: "number", inclusive: s[t(2427)], exact: !1, message: s[t(2353)] }), r.dirty()) : s.kind === t(599) ? (s.inclusive ? e[t(726)] > s[t(2391)] : e[t(726)] >= s[t(2391)]) && (x = this[t(1892)](e, x), X(x, { code: K.too_big, maximum: s.value, type: t(2074), inclusive: s[t(2427)], exact: !1, message: s[t(2353)] }), r.dirty()) : s[t(651)] === "multipleOf" ? ni(e[t(726)], s[t(2391)]) !== 0 && (x = this._getOrReturnCtx(e, x), X(x, { code: K[t(1894)], multipleOf: s.value, message: s[t(2353)] }), r[t(2246)]()) : s.kind === t(2082) ? !Number[t(1718)](e[t(726)]) && (x = this._getOrReturnCtx(e, x), X(x, { code: K.not_finite, message: s[t(2353)] }), r[t(2246)]()) : F0[t(920)](s); - return { status: r[t(2391)], value: e[t(726)] }; + let e; + const r = new ee(); + for (const n of this[t(1821)][t(2055)]) + n.kind === t(2395) ? !N0[t(2309)](x.data) && (e = this._getOrReturnCtx(x, e), Y(e, { code: B.invalid_type, expected: t(893), received: t(1684), message: n[t(2089)] }), r.dirty()) : n.kind === "min" ? (n.inclusive ? x[t(1073)] < n[t(2038)] : x[t(1073)] <= n[t(2038)]) && (e = this[t(2486)](x, e), Y(e, { code: B[t(1287)], minimum: n[t(2038)], type: t(960), inclusive: n[t(1526)], exact: !1, message: n.message }), r.dirty()) : n.kind === t(2537) ? (n[t(1526)] ? x[t(1073)] > n.value : x[t(1073)] >= n[t(2038)]) && (e = this[t(2486)](x, e), Y(e, { code: B.too_big, maximum: n[t(2038)], type: t(960), inclusive: n[t(1526)], exact: !1, message: n[t(2089)] }), r.dirty()) : n.kind === t(2246) ? ni(x[t(1073)], n[t(2038)]) !== 0 && (e = this[t(2486)](x, e), Y(e, { code: B[t(590)], multipleOf: n.value, message: n[t(2089)] }), r[t(1162)]()) : n.kind === t(1233) ? !Number[t(2452)](x.data) && (e = this[t(2486)](x, e), Y(e, { code: B[t(1803)], message: n.message }), r[t(1162)]()) : N0[t(1397)](n); + return { status: r[t(2038)], value: x[t(1073)] }; } - [n(1625)](e, t) { - const a = n; - return this[a(2224)](a(606), e, !0, e0[a(879)](t)); + [s(1055)](x, t) { + var a = s; + return this[a(1914)](a(1524), x, !0, a0[a(1892)](t)); } - gt(e, t) { - const a = n; - return this[a(2224)](a(606), e, !1, e0[a(879)](t)); + gt(x, t) { + var a = s; + return this.setLimit(a(1524), x, !1, a0[a(1892)](t)); } - [n(1167)](e, t) { - const a = n; - return this.setLimit(a(599), e, !0, e0.toString(t)); + [s(2289)](x, t) { + var a = s; + return this[a(1914)](a(2537), x, !0, a0[a(1892)](t)); } - lt(e, t) { - const a = n; - return this[a(2224)](a(599), e, !1, e0[a(879)](t)); + lt(x, t) { + var a = s; + return this[a(1914)](a(2537), x, !1, a0[a(1892)](t)); } - [n(2224)](e, t, a, x) { - const r = n; - return new Zx({ ...this[r(1423)], checks: [...this[r(1423)].checks, { kind: e, value: t, inclusive: a, message: e0[r(879)](x) }] }); + [s(1914)](x, t, a, e) { + var r = s; + return new We({ ...this[r(1821)], checks: [...this._def[r(2055)], { kind: x, value: t, inclusive: a, message: a0.toString(e) }] }); } - [n(2707)](e) { - const t = n; - return new Zx({ ...this[t(1423)], checks: [...this[t(1423)][t(2277)], e] }); + [s(606)](x) { + var t = s; + return new We({ ...this[t(1821)], checks: [...this[t(1821)][t(2055)], x] }); } - [n(1278)](e) { - const t = n; - return this[t(2707)]({ kind: t(1278), message: e0[t(879)](e) }); + [s(2395)](x) { + var t = s; + return this[t(606)]({ kind: t(2395), message: a0[t(1892)](x) }); } - [n(935)](e) { - const t = n; - return this._addCheck({ kind: t(606), value: 0, inclusive: !1, message: e0.toString(e) }); + [s(1115)](x) { + var t = s; + return this[t(606)]({ kind: t(1524), value: 0, inclusive: !1, message: a0.toString(x) }); } - [n(1122)](e) { - const t = n; - return this[t(2707)]({ kind: "max", value: 0, inclusive: !1, message: e0[t(879)](e) }); + negative(x) { + var t = s; + return this[t(606)]({ kind: t(2537), value: 0, inclusive: !1, message: a0[t(1892)](x) }); } - [n(1179)](e) { - const t = n; - return this[t(2707)]({ kind: t(599), value: 0, inclusive: !0, message: e0[t(879)](e) }); + [s(1279)](x) { + var t = s; + return this[t(606)]({ kind: t(2537), value: 0, inclusive: !0, message: a0[t(1892)](x) }); } - [n(1544)](e) { - const t = n; - return this[t(2707)]({ kind: t(606), value: 0, inclusive: !0, message: e0[t(879)](e) }); + [s(1032)](x) { + var t = s; + return this[t(606)]({ kind: "min", value: 0, inclusive: !0, message: a0[t(1892)](x) }); } - [n(500)](e, t) { - const a = n; - return this[a(2707)]({ kind: a(500), value: e, message: e0.toString(t) }); + [s(2246)](x, t) { + var a = s; + return this[a(606)]({ kind: "multipleOf", value: x, message: a0.toString(t) }); } - [n(2082)](e) { - const t = n; - return this[t(2707)]({ kind: t(2082), message: e0[t(879)](e) }); + [s(1233)](x) { + var t = s; + return this._addCheck({ kind: t(1233), message: a0.toString(x) }); } - [n(2322)](e) { - const t = n; - return this[t(2707)]({ kind: t(606), inclusive: !0, value: Number[t(639)], message: e0.toString(e) })[t(2707)]({ kind: t(599), inclusive: !0, value: Number[t(2198)], message: e0[t(879)](e) }); + safe(x) { + var t = s; + return this[t(606)]({ kind: t(1524), inclusive: !0, value: Number.MIN_SAFE_INTEGER, message: a0[t(1892)](x) })._addCheck({ kind: t(2537), inclusive: !0, value: Number[t(2100)], message: a0[t(1892)](x) }); } - get [n(2686)]() { - const e = n; + get [s(1790)]() { + var x = s; let t = null; - for (const a of this[e(1423)][e(2277)]) - a[e(651)] === e(606) && (t === null || a[e(2391)] > t) && (t = a[e(2391)]); - return t; - } - get [n(1567)]() { - const e = n; - let t = null; - for (const a of this[e(1423)][e(2277)]) - a[e(651)] === "max" && (t === null || a[e(2391)] < t) && (t = a[e(2391)]); - return t; - } - get [n(828)]() { - const e = n; - return !!this[e(1423)].checks[e(714)]((t) => t[e(651)] === e(1278) || t[e(651)] === e(500) && F0[e(787)](t[e(2391)])); - } - get [n(1718)]() { - const e = n; - let t = null, a = null; - for (const x of this._def[e(2277)]) { - if (x.kind === "finite" || x[e(651)] === e(1278) || x.kind === "multipleOf") return !0; - x[e(651)] === e(606) ? (a === null || x[e(2391)] > a) && (a = x[e(2391)]) : x.kind === "max" && (t === null || x[e(2391)] < t) && (t = x[e(2391)]); - } - return Number[e(1718)](a) && Number[e(1718)](t); - } -} -Zx.create = (i) => { - const e = n; - return new Zx({ checks: [], typeName: p0[e(1948)], coerce: (i == null ? void 0 : i[e(858)]) || !1, ...y0(i) }); -}; -class te extends k0 { - constructor() { - const e = n; - super(...arguments), this[e(606)] = this.gte, this[e(599)] = this.lte; - } - [n(1586)](e) { - const t = n; - if (this._def[t(858)]) try { - e[t(726)] = BigInt(e[t(726)]); - } catch { - return this[t(2050)](e); - } - if (this._getType(e) !== _[t(1323)]) return this[t(2050)](e); - let x; - const r = new xx(); - for (const s of this[t(1423)][t(2277)]) - s.kind === t(606) ? (s[t(2427)] ? e[t(726)] < s[t(2391)] : e.data <= s[t(2391)]) && (x = this[t(1892)](e, x), X(x, { code: K.too_small, type: t(1323), minimum: s[t(2391)], inclusive: s[t(2427)], message: s[t(2353)] }), r[t(2246)]()) : s[t(651)] === t(599) ? (s[t(2427)] ? e[t(726)] > s[t(2391)] : e[t(726)] >= s[t(2391)]) && (x = this[t(1892)](e, x), X(x, { code: K.too_big, type: t(1323), maximum: s.value, inclusive: s.inclusive, message: s[t(2353)] }), r.dirty()) : s.kind === t(500) ? e[t(726)] % s[t(2391)] !== BigInt(0) && (x = this[t(1892)](e, x), X(x, { code: K[t(1894)], multipleOf: s.value, message: s.message }), r[t(2246)]()) : F0.assertNever(s); - return { status: r.value, value: e[t(726)] }; - } - [n(2050)](e) { - const t = n, a = this[t(1892)](e); - return X(a, { code: K.invalid_type, expected: _.bigint, received: a[t(2350)] }), h0; - } - [n(1625)](e, t) { - const a = n; - return this.setLimit("min", e, !0, e0[a(879)](t)); - } - gt(e, t) { - const a = n; - return this[a(2224)](a(606), e, !1, e0.toString(t)); - } - [n(1167)](e, t) { - const a = n; - return this[a(2224)](a(599), e, !0, e0[a(879)](t)); - } - lt(e, t) { - const a = n; - return this[a(2224)](a(599), e, !1, e0[a(879)](t)); - } - setLimit(e, t, a, x) { - const r = n; - return new te({ ...this[r(1423)], checks: [...this[r(1423)][r(2277)], { kind: e, value: t, inclusive: a, message: e0.toString(x) }] }); - } - _addCheck(e) { - const t = n; - return new te({ ...this[t(1423)], checks: [...this[t(1423)][t(2277)], e] }); - } - [n(935)](e) { - const t = n; - return this[t(2707)]({ kind: t(606), value: BigInt(0), inclusive: !1, message: e0[t(879)](e) }); - } - [n(1122)](e) { - const t = n; - return this._addCheck({ kind: t(599), value: BigInt(0), inclusive: !1, message: e0[t(879)](e) }); - } - [n(1179)](e) { - const t = n; - return this._addCheck({ kind: t(599), value: BigInt(0), inclusive: !0, message: e0.toString(e) }); - } - [n(1544)](e) { - return this._addCheck({ kind: "min", value: BigInt(0), inclusive: !0, message: e0.toString(e) }); - } - [n(500)](e, t) { - const a = n; - return this[a(2707)]({ kind: "multipleOf", value: e, message: e0[a(879)](t) }); - } - get [n(2686)]() { - const e = n; - let t = null; - for (const a of this[e(1423)][e(2277)]) - a[e(651)] === e(606) && (t === null || a.value > t) && (t = a[e(2391)]); + for (const a of this._def[x(2055)]) + a[x(1495)] === x(1524) && (t === null || a[x(2038)] > t) && (t = a[x(2038)]); return t; } get maxValue() { - const e = n; + var x = s; let t = null; - for (const a of this[e(1423)][e(2277)]) - a[e(651)] === e(599) && (t === null || a[e(2391)] < t) && (t = a[e(2391)]); + for (const a of this[x(1821)][x(2055)]) + a[x(1495)] === x(2537) && (t === null || a[x(2038)] < t) && (t = a[x(2038)]); + return t; + } + get [s(807)]() { + var x = s; + return !!this[x(1821)][x(2055)].find((t) => t[x(1495)] === x(2395) || t[x(1495)] === x(2246) && N0.isInteger(t[x(2038)])); + } + get [s(2452)]() { + var x = s; + let t = null, a = null; + for (const e of this[x(1821)][x(2055)]) { + if (e[x(1495)] === x(1233) || e.kind === x(2395) || e[x(1495)] === x(2246)) return !0; + e[x(1495)] === "min" ? (a === null || e[x(2038)] > a) && (a = e[x(2038)]) : e.kind === x(2537) && (t === null || e[x(2038)] < t) && (t = e.value); + } + return Number.isFinite(a) && Number[x(2452)](t); + } +} +We[s(2196)] = (i) => { + var x = s; + return new We({ checks: [], typeName: p0[x(1321)], coerce: (i == null ? void 0 : i.coerce) || !1, ...b0(i) }); +}; +class xx extends E0 { + constructor() { + var x = s; + super(...arguments), this[x(1524)] = this[x(1055)], this.max = this[x(2289)]; + } + [s(796)](x) { + var t = s; + if (this[t(1821)][t(779)]) try { + x[t(1073)] = BigInt(x.data); + } catch { + return this[t(2299)](x); + } + if (this[t(337)](x) !== e0[t(356)]) return this._getInvalidInput(x); + let e; + const r = new ee(); + for (const n of this[t(1821)].checks) + n[t(1495)] === t(1524) ? (n[t(1526)] ? x.data < n[t(2038)] : x.data <= n[t(2038)]) && (e = this[t(2486)](x, e), Y(e, { code: B.too_small, type: t(356), minimum: n.value, inclusive: n[t(1526)], message: n[t(2089)] }), r[t(1162)]()) : n[t(1495)] === t(2537) ? (n[t(1526)] ? x[t(1073)] > n[t(2038)] : x[t(1073)] >= n[t(2038)]) && (e = this[t(2486)](x, e), Y(e, { code: B.too_big, type: t(356), maximum: n[t(2038)], inclusive: n[t(1526)], message: n[t(2089)] }), r[t(1162)]()) : n.kind === "multipleOf" ? x[t(1073)] % n[t(2038)] !== BigInt(0) && (e = this[t(2486)](x, e), Y(e, { code: B[t(590)], multipleOf: n.value, message: n[t(2089)] }), r[t(1162)]()) : N0.assertNever(n); + return { status: r[t(2038)], value: x[t(1073)] }; + } + _getInvalidInput(x) { + var t = s; + const a = this[t(2486)](x); + return Y(a, { code: B.invalid_type, expected: e0[t(356)], received: a[t(2268)] }), h0; + } + [s(1055)](x, t) { + var a = s; + return this[a(1914)](a(1524), x, !0, a0[a(1892)](t)); + } + gt(x, t) { + var a = s; + return this[a(1914)](a(1524), x, !1, a0[a(1892)](t)); + } + [s(2289)](x, t) { + var a = s; + return this.setLimit(a(2537), x, !0, a0[a(1892)](t)); + } + lt(x, t) { + var a = s; + return this.setLimit("max", x, !1, a0[a(1892)](t)); + } + [s(1914)](x, t, a, e) { + var r = s; + return new xx({ ...this[r(1821)], checks: [...this[r(1821)][r(2055)], { kind: x, value: t, inclusive: a, message: a0.toString(e) }] }); + } + [s(606)](x) { + var t = s; + return new xx({ ...this[t(1821)], checks: [...this[t(1821)].checks, x] }); + } + [s(1115)](x) { + var t = s; + return this[t(606)]({ kind: t(1524), value: BigInt(0), inclusive: !1, message: a0[t(1892)](x) }); + } + [s(936)](x) { + var t = s; + return this[t(606)]({ kind: t(2537), value: BigInt(0), inclusive: !1, message: a0[t(1892)](x) }); + } + [s(1279)](x) { + var t = s; + return this[t(606)]({ kind: "max", value: BigInt(0), inclusive: !0, message: a0[t(1892)](x) }); + } + nonnegative(x) { + var t = s; + return this[t(606)]({ kind: "min", value: BigInt(0), inclusive: !0, message: a0[t(1892)](x) }); + } + [s(2246)](x, t) { + var a = s; + return this._addCheck({ kind: a(2246), value: x, message: a0[a(1892)](t) }); + } + get [s(1790)]() { + var x = s; + let t = null; + for (const a of this[x(1821)][x(2055)]) + a[x(1495)] === x(1524) && (t === null || a[x(2038)] > t) && (t = a[x(2038)]); + return t; + } + get [s(2573)]() { + var x = s; + let t = null; + for (const a of this[x(1821)][x(2055)]) + a[x(1495)] === x(2537) && (t === null || a[x(2038)] < t) && (t = a[x(2038)]); return t; } } -te[n(1108)] = (i) => { - const e = n; - return new te({ checks: [], typeName: p0[e(592)], coerce: (i == null ? void 0 : i[e(858)]) ?? !1, ...y0(i) }); +xx.create = (i) => { + var x = s; + return new xx({ checks: [], typeName: p0[x(1528)], coerce: (i == null ? void 0 : i[x(779)]) ?? !1, ...b0(i) }); }; -class Dt extends k0 { - [n(1586)](e) { - const t = n; - if (this[t(1423)][t(858)] && (e[t(726)] = !!e[t(726)]), this[t(2182)](e) !== _.boolean) { - const x = this._getOrReturnCtx(e); - return X(x, { code: K[t(2600)], expected: _[t(958)], received: x[t(2350)] }), h0; +class Lt extends E0 { + [s(796)](x) { + var t = s; + if (this[t(1821)][t(779)] && (x[t(1073)] = !!x.data), this[t(337)](x) !== e0[t(2251)]) { + const e = this[t(2486)](x); + return Y(e, { code: B[t(635)], expected: e0[t(2251)], received: e[t(2268)] }), h0; } - return rx(e[t(726)]); + return re(x[t(1073)]); } } -Dt[n(1108)] = (i) => new Dt({ typeName: p0.ZodBoolean, coerce: (i == null ? void 0 : i.coerce) || !1, ...y0(i) }); -class ve extends k0 { - [n(1586)](e) { - const t = n; - if (this[t(1423)][t(858)] && (e.data = new Date(e.data)), this[t(2182)](e) !== _[t(1633)]) { - const s = this[t(1892)](e); - return X(s, { code: K[t(2600)], expected: _[t(1633)], received: s[t(2350)] }), h0; +Lt[s(2196)] = (i) => { + var x = s; + return new Lt({ typeName: p0[x(2280)], coerce: (i == null ? void 0 : i.coerce) || !1, ...b0(i) }); +}; +class mx extends E0 { + [s(796)](x) { + var t = s; + if (this._def[t(779)] && (x.data = new Date(x.data)), this[t(337)](x) !== e0.date) { + const n = this._getOrReturnCtx(x); + return Y(n, { code: B.invalid_type, expected: e0.date, received: n[t(2268)] }), h0; } - if (Number[t(1584)](e[t(726)].getTime())) { - const s = this[t(1892)](e); - return X(s, { code: K[t(1769)] }), h0; + if (Number.isNaN(x[t(1073)][t(1223)]())) { + const n = this._getOrReturnCtx(x); + return Y(n, { code: B[t(1225)] }), h0; } - const x = new xx(); + const e = new ee(); let r; - for (const s of this[t(1423)][t(2277)]) - s.kind === t(606) ? e[t(726)][t(1549)]() < s.value && (r = this[t(1892)](e, r), X(r, { code: K[t(2046)], message: s[t(2353)], inclusive: !0, exact: !1, minimum: s[t(2391)], type: t(1633) }), x.dirty()) : s.kind === t(599) ? e[t(726)].getTime() > s[t(2391)] && (r = this._getOrReturnCtx(e, r), X(r, { code: K[t(1151)], message: s[t(2353)], inclusive: !0, exact: !1, maximum: s[t(2391)], type: t(1633) }), x[t(2246)]()) : F0[t(920)](s); - return { status: x.value, value: new Date(e[t(726)][t(1549)]()) }; + for (const n of this[t(1821)][t(2055)]) + n.kind === t(1524) ? x.data[t(1223)]() < n[t(2038)] && (r = this[t(2486)](x, r), Y(r, { code: B[t(1287)], message: n[t(2089)], inclusive: !0, exact: !1, minimum: n[t(2038)], type: t(1582) }), e[t(1162)]()) : n[t(1495)] === t(2537) ? x.data[t(1223)]() > n[t(2038)] && (r = this[t(2486)](x, r), Y(r, { code: B[t(718)], message: n[t(2089)], inclusive: !0, exact: !1, maximum: n[t(2038)], type: "date" }), e.dirty()) : N0[t(1397)](n); + return { status: e.value, value: new Date(x[t(1073)][t(1223)]()) }; } - [n(2707)](e) { - const t = n; - return new ve({ ...this[t(1423)], checks: [...this[t(1423)][t(2277)], e] }); + _addCheck(x) { + var t = s; + return new mx({ ...this._def, checks: [...this[t(1821)].checks, x] }); } - [n(606)](e, t) { - const a = n; - return this[a(2707)]({ kind: "min", value: e[a(1549)](), message: e0.toString(t) }); + [s(1524)](x, t) { + var a = s; + return this[a(606)]({ kind: a(1524), value: x[a(1223)](), message: a0[a(1892)](t) }); } - [n(599)](e, t) { - const a = n; - return this[a(2707)]({ kind: a(599), value: e[a(1549)](), message: e0[a(879)](t) }); + [s(2537)](x, t) { + var a = s; + return this[a(606)]({ kind: a(2537), value: x[a(1223)](), message: a0[a(1892)](t) }); } get minDate() { - const e = n; + var x = s; let t = null; - for (const a of this[e(1423)][e(2277)]) - a[e(651)] === e(606) && (t === null || a[e(2391)] > t) && (t = a[e(2391)]); + for (const a of this[x(1821)].checks) + a[x(1495)] === x(1524) && (t === null || a.value > t) && (t = a[x(2038)]); return t != null ? new Date(t) : null; } - get [n(1910)]() { - const e = n; + get [s(2139)]() { + var x = s; let t = null; - for (const a of this[e(1423)].checks) - a[e(651)] === e(599) && (t === null || a.value < t) && (t = a.value); + for (const a of this._def.checks) + a[x(1495)] === x(2537) && (t === null || a[x(2038)] < t) && (t = a[x(2038)]); return t != null ? new Date(t) : null; } } -ve.create = (i) => { - const e = n; - return new ve({ checks: [], coerce: (i == null ? void 0 : i[e(858)]) || !1, typeName: p0.ZodDate, ...y0(i) }); +mx.create = (i) => { + var x = s; + return new mx({ checks: [], coerce: (i == null ? void 0 : i[x(779)]) || !1, typeName: p0[x(566)], ...b0(i) }); }; -class Er extends k0 { - _parse(e) { - const t = n; - if (this[t(2182)](e) !== _[t(689)]) { - const x = this[t(1892)](e); - return X(x, { code: K[t(2600)], expected: _[t(689)], received: x[t(2350)] }), h0; +class Cr extends E0 { + _parse(x) { + var t = s; + if (this[t(337)](x) !== e0[t(633)]) { + const e = this._getOrReturnCtx(x); + return Y(e, { code: B[t(635)], expected: e0[t(633)], received: e[t(2268)] }), h0; } - return rx(e[t(726)]); + return re(x[t(1073)]); } } -Er.create = (i) => { - const e = n; - return new Er({ typeName: p0[e(1904)], ...y0(i) }); +Cr[s(2196)] = (i) => { + var x = s; + return new Cr({ typeName: p0[x(2354)], ...b0(i) }); }; -class jt extends k0 { - [n(1586)](e) { - const t = n; - if (this._getType(e) !== _.undefined) { - const x = this._getOrReturnCtx(e); - return X(x, { code: K[t(2600)], expected: _[t(2634)], received: x[t(2350)] }), h0; +class $t extends E0 { + [s(796)](x) { + var t = s; + if (this[t(337)](x) !== e0[t(1887)]) { + const e = this[t(2486)](x); + return Y(e, { code: B[t(635)], expected: e0[t(1887)], received: e[t(2268)] }), h0; } - return rx(e[t(726)]); + return re(x[t(1073)]); } } -jt.create = (i) => new jt({ typeName: p0.ZodUndefined, ...y0(i) }); -class Mt extends k0 { - [n(1586)](e) { - const t = n; - if (this[t(2182)](e) !== _[t(2382)]) { - const x = this._getOrReturnCtx(e); - return X(x, { code: K[t(2600)], expected: _[t(2382)], received: x[t(2350)] }), h0; +$t[s(2196)] = (i) => new $t({ typeName: p0.ZodUndefined, ...b0(i) }); +class zt extends E0 { + [s(796)](x) { + var t = s; + if (this[t(337)](x) !== e0[t(1382)]) { + const e = this[t(2486)](x); + return Y(e, { code: B[t(635)], expected: e0.null, received: e.parsedType }), h0; } - return rx(e[t(726)]); + return re(x[t(1073)]); } } -Mt.create = (i) => { - const e = n; - return new Mt({ typeName: p0[e(1090)], ...y0(i) }); +zt[s(2196)] = (i) => { + var x = s; + return new zt({ typeName: p0[x(914)], ...b0(i) }); }; -class Lt extends k0 { +class Ht extends E0 { constructor() { - const e = n; - super(...arguments), this[e(1292)] = !0; + var x = s; + super(...arguments), this[x(2080)] = !0; } - _parse(e) { - return rx(e[n(726)]); + [s(796)](x) { + var t = s; + return re(x[t(1073)]); } } -Lt[n(1108)] = (i) => new Lt({ typeName: p0.ZodAny, ...y0(i) }); -class $t extends k0 { +Ht[s(2196)] = (i) => new Ht({ typeName: p0.ZodAny, ...b0(i) }); +class Ut extends E0 { constructor() { - const e = n; - super(...arguments), this[e(1492)] = !0; + var x = s; + super(...arguments), this[x(2389)] = !0; } - [n(1586)](e) { - return rx(e[n(726)]); + [s(796)](x) { + var t = s; + return re(x[t(1073)]); } } -$t[n(1108)] = (i) => { - const e = n; - return new $t({ typeName: p0[e(2209)], ...y0(i) }); +Ut[s(2196)] = (i) => { + var x = s; + return new Ut({ typeName: p0[x(1736)], ...b0(i) }); }; -class Cx extends k0 { - [n(1586)](e) { - const t = n, a = this[t(1892)](e); - return X(a, { code: K[t(2600)], expected: _[t(1863)], received: a[t(2350)] }), h0; +class Pe extends E0 { + _parse(x) { + const t = this._getOrReturnCtx(x); + return Y(t, { code: B.invalid_type, expected: e0.never, received: t.parsedType }), h0; } } -Cx[n(1108)] = (i) => { - const e = n; - return new Cx({ typeName: p0[e(2298)], ...y0(i) }); +Pe[s(2196)] = (i) => { + var x = s; + return new Pe({ typeName: p0[x(592)], ...b0(i) }); }; -class Cr extends k0 { - [n(1586)](e) { - const t = n; - if (this[t(2182)](e) !== _[t(2634)]) { - const x = this[t(1892)](e); - return X(x, { code: K[t(2600)], expected: _[t(849)], received: x[t(2350)] }), h0; +class Vt extends E0 { + [s(796)](x) { + var t = s; + if (this._getType(x) !== e0[t(1887)]) { + const e = this[t(2486)](x); + return Y(e, { code: B[t(635)], expected: e0[t(500)], received: e[t(2268)] }), h0; } - return rx(e[t(726)]); + return re(x[t(1073)]); } } -Cr.create = (i) => { - const e = n; - return new Cr({ typeName: p0[e(826)], ...y0(i) }); -}; -class hx extends k0 { - [n(1586)](e) { - const t = n, { ctx: a, status: x } = this[t(512)](e), r = this[t(1423)]; - if (a[t(2350)] !== _[t(1196)]) return X(a, { code: K[t(2600)], expected: _.array, received: a[t(2350)] }), h0; - if (r[t(842)] !== null) { - const o = a[t(726)][t(1200)] > r[t(842)][t(2391)], c = a[t(726)][t(1200)] < r[t(842)][t(2391)]; - (o || c) && (X(a, { code: o ? K[t(1151)] : K[t(2046)], minimum: c ? r[t(842)][t(2391)] : void 0, maximum: o ? r[t(842)].value : void 0, type: t(1196), inclusive: !0, exact: !0, message: r.exactLength[t(2353)] }), x[t(2246)]()); +Vt[s(2196)] = (i) => new Vt({ typeName: p0.ZodVoid, ...b0(i) }); +class pe extends E0 { + [s(796)](x) { + var t = s; + const { ctx: a, status: e } = this._processInputParams(x), r = this[t(1821)]; + if (a[t(2268)] !== e0.array) return Y(a, { code: B[t(635)], expected: e0[t(1315)], received: a[t(2268)] }), h0; + if (r[t(836)] !== null) { + const o = a[t(1073)][t(2021)] > r[t(836)][t(2038)], c = a[t(1073)][t(2021)] < r[t(836)][t(2038)]; + (o || c) && (Y(a, { code: o ? B.too_big : B[t(1287)], minimum: c ? r[t(836)].value : void 0, maximum: o ? r.exactLength[t(2038)] : void 0, type: "array", inclusive: !0, exact: !0, message: r[t(836)].message }), e[t(1162)]()); } - if (r[t(1213)] !== null && a[t(726)][t(1200)] < r[t(1213)][t(2391)] && (X(a, { code: K[t(2046)], minimum: r.minLength.value, type: t(1196), inclusive: !0, exact: !1, message: r[t(1213)][t(2353)] }), x[t(2246)]()), r[t(2692)] !== null && a[t(726)][t(1200)] > r[t(2692)][t(2391)] && (X(a, { code: K[t(1151)], maximum: r[t(2692)][t(2391)], type: t(1196), inclusive: !0, exact: !1, message: r.maxLength[t(2353)] }), x.dirty()), a[t(2140)][t(1721)]) return Promise[t(1135)]([...a.data][t(2404)]((o, c) => { - const d = t; - return r[d(2426)][d(912)](new px(a, o, a[d(1728)], c)); - }))[t(1413)]((o) => xx[t(896)](x, o)); - const s = [...a[t(726)]][t(2404)]((o, c) => { - const d = t; - return r[d(2426)][d(1099)](new px(a, o, a.path, c)); + if (r[t(549)] !== null && a[t(1073)][t(2021)] < r[t(549)].value && (Y(a, { code: B[t(1287)], minimum: r.minLength[t(2038)], type: "array", inclusive: !0, exact: !1, message: r[t(549)][t(2089)] }), e.dirty()), r[t(2277)] !== null && a[t(1073)][t(2021)] > r.maxLength[t(2038)] && (Y(a, { code: B.too_big, maximum: r[t(2277)][t(2038)], type: t(1315), inclusive: !0, exact: !1, message: r.maxLength[t(2089)] }), e[t(1162)]()), a.common.async) return Promise[t(1897)]([...a[t(1073)]][t(632)]((o, c) => { + var u = t; + return r.type[u(2628)](new me(a, o, a[u(1796)], c)); + }))[t(432)]((o) => { + var c = t; + return ee[c(2048)](e, o); }); - return xx[t(896)](x, s); - } - get [n(2462)]() { - const e = n; - return this[e(1423)][e(2426)]; - } - min(e, t) { - const a = n; - return new hx({ ...this[a(1423)], minLength: { value: e, message: e0[a(879)](t) } }); - } - [n(599)](e, t) { - const a = n; - return new hx({ ...this[a(1423)], maxLength: { value: e, message: e0[a(879)](t) } }); - } - [n(1200)](e, t) { - const a = n; - return new hx({ ...this[a(1423)], exactLength: { value: e, message: e0.toString(t) } }); - } - [n(670)](e) { - return this.min(1, e); - } -} -hx[n(1108)] = (i, e) => { - const t = n; - return new hx({ type: i, minLength: null, maxLength: null, exactLength: null, typeName: p0[t(1473)], ...y0(e) }); -}; -function Ux(i) { - const e = n; - if (i instanceof W0) { - const t = {}; - for (const a in i[e(2129)]) { - const x = i[e(2129)][a]; - t[a] = Sx.create(Ux(x)); - } - return new W0({ ...i[e(1423)], shape: () => t }); - } else - return i instanceof hx ? new hx({ ...i[e(1423)], type: Ux(i.element) }) : i instanceof Sx ? Sx[e(1108)](Ux(i[e(2741)]())) : i instanceof jx ? jx[e(1108)](Ux(i[e(2741)]())) : i instanceof Tx ? Tx[e(1108)](i.items[e(2404)]((t) => Ux(t))) : i; -} -class W0 extends k0 { - constructor() { - const e = n; - super(...arguments), this[e(684)] = null, this[e(2207)] = this[e(1209)], this.augment = this.extend; - } - _getCached() { - const e = n; - if (this[e(684)] !== null) return this[e(684)]; - const t = this[e(1423)][e(2129)](), a = F0[e(765)](t); - return this[e(684)] = { shape: t, keys: a }, this[e(684)]; - } - [n(1586)](e) { - const t = n; - if (this._getType(e) !== _[t(2437)]) { - const u = this[t(1892)](e); - return X(u, { code: K[t(2600)], expected: _[t(2437)], received: u[t(2350)] }), h0; - } - const { status: x, ctx: r } = this[t(512)](e), { shape: s, keys: o } = this._getCached(), c = []; - if (!(this._def[t(1281)] instanceof Cx && this._def[t(2318)] === t(1959))) for (const u in r.data) - !o.includes(u) && c[t(818)](u); - const d = []; - for (const u of o) { - const f = s[u], l = r[t(726)][u]; - d.push({ key: { status: t(1954), value: u }, value: f[t(1586)](new px(r, l, r.path, u)), alwaysSet: u in r[t(726)] }); - } - if (this[t(1423)][t(1281)] instanceof Cx) { - const u = this[t(1423)][t(2318)]; - if (u === "passthrough") for (const f of c) - d[t(818)]({ key: { status: t(1954), value: f }, value: { status: "valid", value: r[t(726)][f] } }); - else if (u === "strict") c[t(1200)] > 0 && (X(r, { code: K.unrecognized_keys, keys: c }), x[t(2246)]()); - else if (u !== t(1959)) throw new Error(t(1559)); - } else { - const u = this._def[t(1281)]; - for (const f of c) { - const l = r[t(726)][f]; - d.push({ key: { status: t(1954), value: f }, value: u._parse(new px(r, l, r[t(1728)], f)), alwaysSet: f in r[t(726)] }); - } - } - return r[t(2140)][t(1721)] ? Promise[t(1987)]().then(async () => { - const u = t, f = []; - for (const l of d) { - const g = await l[u(1232)], h = await l[u(2391)]; - f.push({ key: g, value: h, alwaysSet: l[u(2203)] }); - } - return f; - })[t(1413)]((u) => xx[t(516)](x, u)) : xx[t(516)](x, d); - } - get shape() { - const e = n; - return this[e(1423)][e(2129)](); - } - [n(1370)](e) { - const t = n; - return e0[t(1236)], new W0({ ...this[t(1423)], unknownKeys: t(1370), ...e !== void 0 ? { errorMap: (a, x) => { - var o, c; - const r = t, s = ((c = (o = this[r(1423)])[r(798)]) == null ? void 0 : c.call(o, a, x)[r(2353)]) ?? x.defaultError; - return a[r(1204)] === r(699) ? { message: e0[r(1236)](e)[r(2353)] ?? s } : { message: s }; - } } : {} }); - } - [n(1959)]() { - const e = n; - return new W0({ ...this[e(1423)], unknownKeys: e(1959) }); - } - passthrough() { - const e = n; - return new W0({ ...this[e(1423)], unknownKeys: "passthrough" }); - } - extend(e) { - const t = n; - return new W0({ ...this[t(1423)], shape: () => ({ ...this._def.shape(), ...e }) }); - } - [n(1290)](e) { - const t = n; - return new W0({ unknownKeys: e[t(1423)][t(2318)], catchall: e[t(1423)].catchall, shape: () => ({ ...this._def[t(2129)](), ...e[t(1423)][t(2129)]() }), typeName: p0.ZodObject }); - } - setKey(e, t) { - return this[n(1851)]({ [e]: t }); - } - catchall(e) { - const t = n; - return new W0({ ...this[t(1423)], catchall: e }); - } - [n(894)](e) { - const t = n, a = {}; - for (const x of F0[t(765)](e)) - e[x] && this[t(2129)][x] && (a[x] = this[t(2129)][x]); - return new W0({ ...this[t(1423)], shape: () => a }); - } - [n(963)](e) { - const t = n, a = {}; - for (const x of F0.objectKeys(this[t(2129)])) - !e[x] && (a[x] = this.shape[x]); - return new W0({ ...this[t(1423)], shape: () => a }); - } - deepPartial() { - return Ux(this); - } - [n(1286)](e) { - const t = n, a = {}; - for (const x of F0[t(765)](this[t(2129)])) { - const r = this[t(2129)][x]; - e && !e[x] ? a[x] = r : a[x] = r[t(1360)](); - } - return new W0({ ...this[t(1423)], shape: () => a }); - } - [n(1040)](e) { - const t = n, a = {}; - for (const x of F0[t(765)](this.shape)) - if (e && !e[x]) a[x] = this[t(2129)][x]; - else { - let s = this[t(2129)][x]; - for (; s instanceof Sx; ) - s = s[t(1423)][t(1779)]; - a[x] = s; - } - return new W0({ ...this[t(1423)], shape: () => a }); - } - keyof() { - return Dn(F0[n(765)](this.shape)); - } -} -W0.create = (i, e) => { - const t = n; - return new W0({ shape: () => i, unknownKeys: t(1959), catchall: Cx[t(1108)](), typeName: p0[t(2725)], ...y0(e) }); -}, W0[n(1752)] = (i, e) => { - const t = n; - return new W0({ shape: () => i, unknownKeys: t(1370), catchall: Cx[t(1108)](), typeName: p0[t(2725)], ...y0(e) }); -}, W0[n(1852)] = (i, e) => { - const t = n; - return new W0({ shape: i, unknownKeys: t(1959), catchall: Cx[t(1108)](), typeName: p0[t(2725)], ...y0(e) }); -}; -class ye extends k0 { - _parse(e) { - const t = n, { ctx: a } = this[t(512)](e), x = this[t(1423)][t(2687)]; - function r(s) { - const o = t; - for (const d of s) - if (d[o(1532)].status === "valid") return d[o(1532)]; - for (const d of s) - if (d[o(1532)][o(1713)] === o(2246)) return a[o(2140)][o(2121)][o(818)](...d[o(536)][o(2140)][o(2121)]), d[o(1532)]; - const c = s.map((d) => new Px(d[o(536)][o(2140)][o(2121)])); - return X(a, { code: K[o(2342)], unionErrors: c }), h0; - } - if (a[t(2140)].async) return Promise[t(1135)](x[t(2404)](async (s) => { - const o = t, c = { ...a, common: { ...a.common, issues: [] }, parent: null }; - return { result: await s._parseAsync({ data: a[o(726)], path: a[o(1728)], parent: c }), ctx: c }; - }))[t(1413)](r); - { - let s; - const o = []; - for (const d of x) { - const u = { ...a, common: { ...a[t(2140)], issues: [] }, parent: null }, f = d[t(1099)]({ data: a[t(726)], path: a[t(1728)], parent: u }); - if (f[t(1713)] === t(1954)) return f; - f[t(1713)] === t(2246) && !s && (s = { result: f, ctx: u }), u[t(2140)][t(2121)].length && o[t(818)](u[t(2140)][t(2121)]); - } - if (s) return a[t(2140)][t(2121)][t(818)](...s[t(536)][t(2140)][t(2121)]), s[t(1532)]; - const c = o.map((d) => new Px(d)); - return X(a, { code: K[t(2342)], unionErrors: c }), h0; - } - } - get [n(2687)]() { - return this[n(1423)].options; - } -} -ye[n(1108)] = (i, e) => new ye({ options: i, typeName: p0.ZodUnion, ...y0(e) }); -const yx = (i) => { - const e = n; - return i instanceof Ht ? yx(i.schema) : i instanceof qx ? yx(i.innerType()) : i instanceof Se ? [i.value] : i instanceof Dx ? i[e(2687)] : i instanceof Ut ? F0.objectValues(i[e(1252)]) : i instanceof ke ? yx(i[e(1423)].innerType) : i instanceof jt ? [void 0] : i instanceof Mt ? [null] : i instanceof Sx ? [void 0, ...yx(i[e(2741)]())] : i instanceof jx ? [null, ...yx(i[e(2741)]())] : i instanceof jn || i instanceof Ce ? yx(i[e(2741)]()) : i instanceof Ee ? yx(i[e(1423)][e(1779)]) : []; -}; -class Xt extends k0 { - [n(1586)](e) { - const t = n, { ctx: a } = this._processInputParams(e); - if (a[t(2350)] !== _[t(2437)]) return X(a, { code: K[t(2600)], expected: _[t(2437)], received: a.parsedType }), h0; - const x = this[t(2260)], r = a[t(726)][x], s = this.optionsMap[t(1261)](r); - return s ? a[t(2140)].async ? s[t(912)]({ data: a[t(726)], path: a[t(1728)], parent: a }) : s[t(1099)]({ data: a[t(726)], path: a[t(1728)], parent: a }) : (X(a, { code: K.invalid_union_discriminator, options: Array[t(781)](this.optionsMap[t(2278)]()), path: [x] }), h0); - } - get discriminator() { - const e = n; - return this._def[e(2260)]; - } - get [n(2687)]() { - const e = n; - return this[e(1423)][e(2687)]; - } - get [n(594)]() { - const e = n; - return this[e(1423)][e(594)]; - } - static [n(1108)](e, t, a) { - const x = n, r = /* @__PURE__ */ new Map(); - for (const s of t) { - const o = yx(s.shape[e]); - if (!o.length) throw new Error(x(1499) + e + x(880)); - for (const c of o) { - if (r[x(2333)](c)) throw new Error(x(617) + String(e) + x(1510) + String(c)); - r[x(510)](c, s); - } - } - return new Xt({ typeName: p0[x(1378)], discriminator: e, options: t, optionsMap: r, ...y0(a) }); - } -} -function zt(i, e) { - const t = n, a = Ex(i), x = Ex(e); - if (i === e) return { valid: !0, data: i }; - if (a === _[t(2437)] && x === _[t(2437)]) { - const r = F0.objectKeys(e), s = F0[t(765)](i).filter((c) => r[t(2170)](c) !== -1), o = { ...i, ...e }; - for (const c of s) { - const d = zt(i[c], e[c]); - if (!d[t(1954)]) return { valid: !1 }; - o[c] = d[t(726)]; - } - return { valid: !0, data: o }; - } else if (a === _.array && x === _[t(1196)]) { - if (i[t(1200)] !== e[t(1200)]) return { valid: !1 }; - const r = []; - for (let s = 0; s < i[t(1200)]; s++) { - const o = i[s], c = e[s], d = zt(o, c); - if (!d[t(1954)]) return { valid: !1 }; - r.push(d.data); - } - return { valid: !0, data: r }; - } else return a === _[t(1633)] && x === _.date && +i == +e ? { valid: !0, data: i } : { valid: !1 }; -} -class be extends k0 { - _parse(e) { - const t = n, { status: a, ctx: x } = this[t(512)](e), r = (s, o) => { - const c = t; - if (Sr(s) || Sr(o)) return h0; - const d = zt(s.value, o[c(2391)]); - return d.valid ? ((Pr(s) || Pr(o)) && a[c(2246)](), { status: a[c(2391)], value: d[c(726)] }) : (X(x, { code: K[c(658)] }), h0); - }; - return x[t(2140)][t(1721)] ? Promise[t(1135)]([this[t(1423)].left[t(912)]({ data: x[t(726)], path: x.path, parent: x }), this[t(1423)][t(1343)]._parseAsync({ data: x[t(726)], path: x[t(1728)], parent: x })])[t(1413)](([s, o]) => r(s, o)) : r(this[t(1423)].left._parseSync({ data: x[t(726)], path: x[t(1728)], parent: x }), this[t(1423)][t(1343)][t(1099)]({ data: x[t(726)], path: x[t(1728)], parent: x })); - } -} -be[n(1108)] = (i, e, t) => new be({ left: i, right: e, typeName: p0.ZodIntersection, ...y0(t) }); -class Tx extends k0 { - _parse(e) { - const t = n, { status: a, ctx: x } = this[t(512)](e); - if (x[t(2350)] !== _[t(1196)]) return X(x, { code: K.invalid_type, expected: _[t(1196)], received: x.parsedType }), h0; - if (x[t(726)][t(1200)] < this[t(1423)][t(2637)].length) return X(x, { code: K[t(2046)], minimum: this._def[t(2637)][t(1200)], inclusive: !0, exact: !1, type: "array" }), h0; - !this[t(1423)][t(868)] && x.data.length > this[t(1423)][t(2637)][t(1200)] && (X(x, { code: K[t(1151)], maximum: this[t(1423)][t(2637)].length, inclusive: !0, exact: !1, type: t(1196) }), a[t(2246)]()); - const s = [...x[t(726)]][t(2404)]((o, c) => { - const d = t, u = this[d(1423)].items[c] || this[d(1423)].rest; - return u ? u._parse(new px(x, o, x[d(1728)], c)) : null; - })[t(893)]((o) => !!o); - return x[t(2140)].async ? Promise[t(1135)](s).then((o) => xx[t(896)](a, o)) : xx.mergeArray(a, s); - } - get [n(2637)]() { - return this[n(1423)].items; - } - rest(e) { - return new Tx({ ...this._def, rest: e }); - } -} -Tx[n(1108)] = (i, e) => { - const t = n; - if (!Array[t(2344)](i)) throw new Error(t(1509)); - return new Tx({ items: i, typeName: p0.ZodTuple, rest: null, ...y0(e) }); -}; -class we extends k0 { - get [n(1913)]() { - const e = n; - return this._def[e(1806)]; - } - get [n(2058)]() { - return this[n(1423)].valueType; - } - [n(1586)](e) { - const t = n, { status: a, ctx: x } = this[t(512)](e); - if (x[t(2350)] !== _[t(2437)]) return X(x, { code: K[t(2600)], expected: _[t(2437)], received: x.parsedType }), h0; - const r = [], s = this[t(1423)].keyType, o = this[t(1423)].valueType; - for (const c in x[t(726)]) - r[t(818)]({ key: s[t(1586)](new px(x, c, x.path, c)), value: o[t(1586)](new px(x, x[t(726)][c], x[t(1728)], c)), alwaysSet: c in x.data }); - return x[t(2140)][t(1721)] ? xx[t(1045)](a, r) : xx.mergeObjectSync(a, r); + const n = [...a.data].map((o, c) => { + var u = t; + return r[u(338)][u(1252)](new me(a, o, a.path, c)); + }); + return ee.mergeArray(e, n); } get element() { - const e = n; - return this[e(1423)][e(690)]; + var x = s; + return this[x(1821)][x(338)]; } - static create(e, t, a) { - const x = n; - return t instanceof k0 ? new we({ keyType: e, valueType: t, typeName: p0.ZodRecord, ...y0(a) }) : new we({ keyType: wx.create(), valueType: e, typeName: p0[x(1859)], ...y0(t) }); + min(x, t) { + var a = s; + return new pe({ ...this[a(1821)], minLength: { value: x, message: a0[a(1892)](t) } }); + } + [s(2537)](x, t) { + var a = s; + return new pe({ ...this[a(1821)], maxLength: { value: x, message: a0[a(1892)](t) } }); + } + [s(2021)](x, t) { + return new pe({ ...this._def, exactLength: { value: x, message: a0.toString(t) } }); + } + [s(1609)](x) { + var t = s; + return this[t(1524)](1, x); } } -class Ir extends k0 { - get [n(1913)]() { - return this[n(1423)].keyType; +pe.create = (i, x) => { + var t = s; + return new pe({ type: i, minLength: null, maxLength: null, exactLength: null, typeName: p0[t(2463)], ...b0(x) }); +}; +function Ue(i) { + var x = s; + if (i instanceof K0) { + const t = {}; + for (const a in i[x(2219)]) { + const e = i[x(2219)][a]; + t[a] = Se[x(2196)](Ue(e)); + } + return new K0({ ...i[x(1821)], shape: () => t }); + } else + return i instanceof pe ? new pe({ ...i[x(1821)], type: Ue(i.element) }) : i instanceof Se ? Se[x(2196)](Ue(i.unwrap())) : i instanceof je ? je[x(2196)](Ue(i[x(1808)]())) : i instanceof Ae ? Ae[x(2196)](i[x(2187)][x(632)]((t) => Ue(t))) : i; +} +class K0 extends E0 { + constructor() { + var x = s; + super(...arguments), this._cached = null, this.nonstrict = this[x(1685)], this.augment = this[x(1369)]; } - get [n(2058)]() { - return this[n(1423)].valueType; + _getCached() { + var x = s; + if (this[x(423)] !== null) return this[x(423)]; + const t = this._def[x(2219)](), a = N0[x(2574)](t); + return this[x(423)] = { shape: t, keys: a }, this[x(423)]; } - [n(1586)](e) { - const t = n, { status: a, ctx: x } = this[t(512)](e); - if (x[t(2350)] !== _[t(2404)]) return X(x, { code: K.invalid_type, expected: _[t(2404)], received: x.parsedType }), h0; - const r = this[t(1423)][t(1806)], s = this[t(1423)][t(690)], o = [...x[t(726)][t(586)]()].map(([c, d], u) => { - const f = t; - return { key: r[f(1586)](new px(x, c, x[f(1728)], [u, f(1232)])), value: s._parse(new px(x, d, x[f(1728)], [u, f(2391)])) }; + [s(796)](x) { + var t = s; + if (this[t(337)](x) !== e0[t(1923)]) { + const d = this[t(2486)](x); + return Y(d, { code: B[t(635)], expected: e0[t(1923)], received: d[t(2268)] }), h0; + } + const { status: e, ctx: r } = this[t(1408)](x), { shape: n, keys: o } = this[t(479)](), c = []; + if (!(this[t(1821)].catchall instanceof Pe && this[t(1821)][t(2046)] === t(688))) for (const d in r.data) + !o[t(553)](d) && c[t(2380)](d); + const u = []; + for (const d of o) { + const f = n[d], l = r[t(1073)][d]; + u[t(2380)]({ key: { status: "valid", value: d }, value: f[t(796)](new me(r, l, r[t(1796)], d)), alwaysSet: d in r[t(1073)] }); + } + if (this[t(1821)][t(2556)] instanceof Pe) { + const d = this[t(1821)][t(2046)]; + if (d === t(1685)) for (const f of c) + u[t(2380)]({ key: { status: t(2538), value: f }, value: { status: t(2538), value: r.data[f] } }); + else if (d === "strict") c[t(2021)] > 0 && (Y(r, { code: B[t(1289)], keys: c }), e.dirty()); + else if (d !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value."); + } else { + const d = this[t(1821)][t(2556)]; + for (const f of c) { + const l = r[t(1073)][f]; + u.push({ key: { status: t(2538), value: f }, value: d[t(796)](new me(r, l, r[t(1796)], f)), alwaysSet: f in r.data }); + } + } + return r[t(975)][t(2572)] ? Promise[t(1890)]()[t(432)](async () => { + var d = t; + const f = []; + for (const l of u) { + const v = await l[d(1810)], h = await l[d(2038)]; + f[d(2380)]({ key: v, value: h, alwaysSet: l[d(604)] }); + } + return f; + }).then((d) => { + var f = t; + return ee[f(1058)](e, d); + }) : ee.mergeObjectSync(e, u); + } + get [s(2219)]() { + var x = s; + return this[x(1821)][x(2219)](); + } + strict(x) { + var t = s; + return a0[t(2649)], new K0({ ...this._def, unknownKeys: t(565), ...x !== void 0 ? { errorMap: (a, e) => { + var o, c; + var r = t; + const n = ((c = (o = this._def).errorMap) == null ? void 0 : c.call(o, a, e)[r(2089)]) ?? e[r(2234)]; + return a[r(733)] === r(1289) ? { message: a0[r(2649)](x)[r(2089)] ?? n } : { message: n }; + } } : {} }); + } + [s(688)]() { + var x = s; + return new K0({ ...this[x(1821)], unknownKeys: x(688) }); + } + [s(1685)]() { + var x = s; + return new K0({ ...this[x(1821)], unknownKeys: x(1685) }); + } + extend(x) { + var t = s; + return new K0({ ...this[t(1821)], shape: () => ({ ...this[t(1821)][t(2219)](), ...x }) }); + } + merge(x) { + var t = s; + return new K0({ unknownKeys: x[t(1821)][t(2046)], catchall: x[t(1821)][t(2556)], shape: () => ({ ...this._def[t(2219)](), ...x[t(1821)][t(2219)]() }), typeName: p0.ZodObject }); + } + [s(1218)](x, t) { + var a = s; + return this[a(505)]({ [x]: t }); + } + [s(2556)](x) { + var t = s; + return new K0({ ...this[t(1821)], catchall: x }); + } + pick(x) { + var t = s; + const a = {}; + for (const e of N0.objectKeys(x)) + x[e] && this[t(2219)][e] && (a[e] = this[t(2219)][e]); + return new K0({ ...this._def, shape: () => a }); + } + [s(2388)](x) { + var t = s; + const a = {}; + for (const e of N0[t(2574)](this[t(2219)])) + !x[e] && (a[e] = this.shape[e]); + return new K0({ ...this[t(1821)], shape: () => a }); + } + deepPartial() { + return Ue(this); + } + [s(403)](x) { + var t = s; + const a = {}; + for (const e of N0[t(2574)](this[t(2219)])) { + const r = this[t(2219)][e]; + x && !x[e] ? a[e] = r : a[e] = r[t(1285)](); + } + return new K0({ ...this[t(1821)], shape: () => a }); + } + required(x) { + var t = s; + const a = {}; + for (const e of N0[t(2574)](this.shape)) + if (x && !x[e]) a[e] = this[t(2219)][e]; + else { + let n = this[t(2219)][e]; + for (; n instanceof Se; ) + n = n[t(1821)][t(2593)]; + a[e] = n; + } + return new K0({ ...this[t(1821)], shape: () => a }); + } + [s(384)]() { + var x = s; + return Ms(N0[x(2574)](this[x(2219)])); + } +} +K0.create = (i, x) => { + var t = s; + return new K0({ shape: () => i, unknownKeys: t(688), catchall: Pe[t(2196)](), typeName: p0[t(894)], ...b0(x) }); +}, K0[s(618)] = (i, x) => { + var t = s; + return new K0({ shape: () => i, unknownKeys: t(565), catchall: Pe.create(), typeName: p0[t(894)], ...b0(x) }); +}, K0[s(409)] = (i, x) => { + var t = s; + return new K0({ shape: i, unknownKeys: t(688), catchall: Pe[t(2196)](), typeName: p0[t(894)], ...b0(x) }); +}; +class vx extends E0 { + [s(796)](x) { + var t = s; + const { ctx: a } = this[t(1408)](x), e = this[t(1821)][t(778)]; + function r(n) { + var o = t; + for (const u of n) + if (u.result[o(2296)] === o(2538)) return u[o(1806)]; + for (const u of n) + if (u[o(1806)][o(2296)] === o(1162)) return a[o(975)][o(1729)][o(2380)](...u.ctx.common[o(1729)]), u.result; + const c = n[o(632)]((u) => new ke(u[o(334)][o(975)][o(1729)])); + return Y(a, { code: B[o(1550)], unionErrors: c }), h0; + } + if (a[t(975)][t(2572)]) return Promise.all(e[t(632)](async (n) => { + var o = t; + const c = { ...a, common: { ...a[o(975)], issues: [] }, parent: null }; + return { result: await n._parseAsync({ data: a[o(1073)], path: a[o(1796)], parent: c }), ctx: c }; + }))[t(432)](r); + { + let n; + const o = []; + for (const u of e) { + const d = { ...a, common: { ...a[t(975)], issues: [] }, parent: null }, f = u[t(1252)]({ data: a[t(1073)], path: a.path, parent: d }); + if (f.status === t(2538)) return f; + f[t(2296)] === t(1162) && !n && (n = { result: f, ctx: d }), d[t(975)][t(1729)][t(2021)] && o[t(2380)](d[t(975)][t(1729)]); + } + if (n) return a[t(975)][t(1729)].push(...n.ctx[t(975)][t(1729)]), n[t(1806)]; + const c = o[t(632)]((u) => new ke(u)); + return Y(a, { code: B[t(1550)], unionErrors: c }), h0; + } + } + get [s(778)]() { + var x = s; + return this[x(1821)][x(778)]; + } +} +vx[s(2196)] = (i, x) => { + var t = s; + return new vx({ options: i, typeName: p0[t(726)], ...b0(x) }); +}; +const ye = (i) => { + var x = s; + return i instanceof Zt ? ye(i[x(1174)]) : i instanceof qe ? ye(i[x(2593)]()) : i instanceof bx ? [i[x(2038)]] : i instanceof De ? i.options : i instanceof Bt ? N0.objectValues(i.enum) : i instanceof Sx ? ye(i[x(1821)][x(2593)]) : i instanceof $t ? [void 0] : i instanceof zt ? [null] : i instanceof Se ? [void 0, ...ye(i[x(1808)]())] : i instanceof je ? [null, ...ye(i[x(1808)]())] : i instanceof Ls ? ye(i.unwrap()) : i instanceof Ex ? ye(i[x(1808)]()) : i instanceof kx ? ye(i[x(1821)].innerType) : []; +}; +class tr extends E0 { + [s(796)](x) { + var t = s; + const { ctx: a } = this[t(1408)](x); + if (a[t(2268)] !== e0[t(1923)]) return Y(a, { code: B[t(635)], expected: e0[t(1923)], received: a[t(2268)] }), h0; + const e = this[t(2128)], r = a[t(1073)][e], n = this[t(808)][t(2229)](r); + return n ? a[t(975)][t(2572)] ? n._parseAsync({ data: a[t(1073)], path: a[t(1796)], parent: a }) : n[t(1252)]({ data: a[t(1073)], path: a[t(1796)], parent: a }) : (Y(a, { code: B.invalid_union_discriminator, options: Array[t(1147)](this[t(808)][t(1040)]()), path: [e] }), h0); + } + get [s(2128)]() { + var x = s; + return this[x(1821)][x(2128)]; + } + get [s(778)]() { + var x = s; + return this._def[x(778)]; + } + get [s(808)]() { + var x = s; + return this[x(1821)][x(808)]; + } + static [s(2196)](x, t, a) { + var e = s; + const r = /* @__PURE__ */ new Map(); + for (const n of t) { + const o = ye(n[e(2219)][x]); + if (!o[e(2021)]) throw new Error(e(1532) + x + e(2361)); + for (const c of o) { + if (r.has(c)) throw new Error("Discriminator property " + String(x) + e(1090) + String(c)); + r.set(c, n); + } + } + return new tr({ typeName: p0[e(872)], discriminator: x, options: t, optionsMap: r, ...b0(a) }); + } +} +function Wt(i, x) { + var t = s; + const a = Ie(i), e = Ie(x); + if (i === x) return { valid: !0, data: i }; + if (a === e0[t(1923)] && e === e0[t(1923)]) { + const r = N0[t(2574)](x), n = N0[t(2574)](i)[t(2397)]((c) => r.indexOf(c) !== -1), o = { ...i, ...x }; + for (const c of n) { + const u = Wt(i[c], x[c]); + if (!u[t(2538)]) return { valid: !1 }; + o[c] = u.data; + } + return { valid: !0, data: o }; + } else if (a === e0[t(1315)] && e === e0[t(1315)]) { + if (i[t(2021)] !== x[t(2021)]) return { valid: !1 }; + const r = []; + for (let n = 0; n < i[t(2021)]; n++) { + const o = i[n], c = x[n], u = Wt(o, c); + if (!u[t(2538)]) return { valid: !1 }; + r[t(2380)](u[t(1073)]); + } + return { valid: !0, data: r }; + } else return a === e0[t(1582)] && e === e0.date && +i == +x ? { valid: !0, data: i } : { valid: !1 }; +} +class gx extends E0 { + [s(796)](x) { + var t = s; + const { status: a, ctx: e } = this._processInputParams(x), r = (n, o) => { + var c = K; + if (Ir(n) || Ir(o)) return h0; + const u = Wt(n[c(2038)], o[c(2038)]); + return u[c(2538)] ? ((Pr(n) || Pr(o)) && a.dirty(), { status: a.value, value: u[c(1073)] }) : (Y(e, { code: B[c(811)] }), h0); + }; + return e[t(975)][t(2572)] ? Promise[t(1897)]([this[t(1821)][t(1755)]._parseAsync({ data: e.data, path: e[t(1796)], parent: e }), this._def[t(792)][t(2628)]({ data: e.data, path: e[t(1796)], parent: e })])[t(432)](([n, o]) => r(n, o)) : r(this._def[t(1755)][t(1252)]({ data: e.data, path: e[t(1796)], parent: e }), this._def[t(792)][t(1252)]({ data: e.data, path: e.path, parent: e })); + } +} +gx.create = (i, x, t) => new gx({ left: i, right: x, typeName: p0.ZodIntersection, ...b0(t) }); +class Ae extends E0 { + [s(796)](x) { + var t = s; + const { status: a, ctx: e } = this[t(1408)](x); + if (e.parsedType !== e0[t(1315)]) return Y(e, { code: B.invalid_type, expected: e0.array, received: e[t(2268)] }), h0; + if (e[t(1073)][t(2021)] < this[t(1821)][t(2187)].length) return Y(e, { code: B.too_small, minimum: this[t(1821)][t(2187)][t(2021)], inclusive: !0, exact: !1, type: t(1315) }), h0; + !this._def[t(1837)] && e[t(1073)].length > this[t(1821)][t(2187)][t(2021)] && (Y(e, { code: B[t(718)], maximum: this[t(1821)][t(2187)][t(2021)], inclusive: !0, exact: !1, type: "array" }), a[t(1162)]()); + const n = [...e[t(1073)]][t(632)]((o, c) => { + var u = t; + const d = this[u(1821)][u(2187)][c] || this[u(1821)][u(1837)]; + return d ? d._parse(new me(e, o, e[u(1796)], c)) : null; + })[t(2397)]((o) => !!o); + return e[t(975)][t(2572)] ? Promise[t(1897)](n)[t(432)]((o) => { + var c = t; + return ee[c(2048)](a, o); + }) : ee[t(2048)](a, n); + } + get [s(2187)]() { + var x = s; + return this._def[x(2187)]; + } + [s(1837)](x) { + var t = s; + return new Ae({ ...this[t(1821)], rest: x }); + } +} +Ae[s(2196)] = (i, x) => { + var t = s; + if (!Array[t(1435)](i)) throw new Error(t(1902)); + return new Ae({ items: i, typeName: p0[t(1614)], rest: null, ...b0(x) }); +}; +class yx extends E0 { + get [s(742)]() { + var x = s; + return this[x(1821)][x(2200)]; + } + get valueSchema() { + var x = s; + return this._def[x(1851)]; + } + [s(796)](x) { + var t = s; + const { status: a, ctx: e } = this[t(1408)](x); + if (e.parsedType !== e0[t(1923)]) return Y(e, { code: B.invalid_type, expected: e0[t(1923)], received: e.parsedType }), h0; + const r = [], n = this._def[t(2200)], o = this[t(1821)].valueType; + for (const c in e[t(1073)]) + r.push({ key: n._parse(new me(e, c, e.path, c)), value: o._parse(new me(e, e.data[c], e[t(1796)], c)), alwaysSet: c in e[t(1073)] }); + return e.common[t(2572)] ? ee[t(2665)](a, r) : ee[t(1058)](a, r); + } + get [s(1567)]() { + var x = s; + return this[x(1821)][x(1851)]; + } + static create(x, t, a) { + var e = s; + return t instanceof E0 ? new yx({ keyType: x, valueType: t, typeName: p0[e(1759)], ...b0(a) }) : new yx({ keyType: we[e(2196)](), valueType: x, typeName: p0.ZodRecord, ...b0(t) }); + } +} +class Fr extends E0 { + get [s(742)]() { + var x = s; + return this[x(1821)].keyType; + } + get [s(2418)]() { + var x = s; + return this[x(1821)][x(1851)]; + } + [s(796)](x) { + var t = s; + const { status: a, ctx: e } = this[t(1408)](x); + if (e[t(2268)] !== e0[t(632)]) return Y(e, { code: B[t(635)], expected: e0[t(632)], received: e[t(2268)] }), h0; + const r = this[t(1821)][t(2200)], n = this[t(1821)].valueType, o = [...e[t(1073)].entries()][t(632)](([c, u], d) => { + var f = t; + return { key: r[f(796)](new me(e, c, e.path, [d, f(1810)])), value: n._parse(new me(e, u, e.path, [d, f(2038)])) }; }); - if (x.common[t(1721)]) { + if (e[t(975)][t(2572)]) { const c = /* @__PURE__ */ new Map(); - return Promise[t(1987)]()[t(1413)](async () => { - const d = t; - for (const u of o) { - const f = await u[d(1232)], l = await u.value; - if (f[d(1713)] === "aborted" || l[d(1713)] === d(1786)) return h0; - (f.status === "dirty" || l[d(1713)] === d(2246)) && a.dirty(), c[d(510)](f[d(2391)], l[d(2391)]); + return Promise[t(1890)]()[t(432)](async () => { + var u = t; + for (const d of o) { + const f = await d[u(1810)], l = await d[u(2038)]; + if (f[u(2296)] === u(806) || l.status === u(806)) return h0; + (f.status === "dirty" || l[u(2296)] === u(1162)) && a[u(1162)](), c[u(1951)](f[u(2038)], l[u(2038)]); } - return { status: a[d(2391)], value: c }; + return { status: a[u(2038)], value: c }; }); } else { const c = /* @__PURE__ */ new Map(); - for (const d of o) { - const u = d[t(1232)], f = d[t(2391)]; - if (u[t(1713)] === t(1786) || f[t(1713)] === t(1786)) return h0; - (u[t(1713)] === t(2246) || f[t(1713)] === t(2246)) && a[t(2246)](), c[t(510)](u[t(2391)], f[t(2391)]); + for (const u of o) { + const d = u.key, f = u.value; + if (d[t(2296)] === t(806) || f[t(2296)] === t(806)) return h0; + (d[t(2296)] === "dirty" || f[t(2296)] === t(1162)) && a[t(1162)](), c[t(1951)](d[t(2038)], f[t(2038)]); } - return { status: a[t(2391)], value: c }; + return { status: a[t(2038)], value: c }; } } } -Ir[n(1108)] = (i, e, t) => new Ir({ valueType: e, keyType: i, typeName: p0.ZodMap, ...y0(t) }); -class re extends k0 { - [n(1586)](e) { - const t = n, { status: a, ctx: x } = this._processInputParams(e); - if (x[t(2350)] !== _[t(510)]) return X(x, { code: K[t(2600)], expected: _[t(510)], received: x[t(2350)] }), h0; - const r = this[t(1423)]; - r.minSize !== null && x[t(726)][t(1754)] < r[t(2022)][t(2391)] && (X(x, { code: K.too_small, minimum: r[t(2022)][t(2391)], type: t(510), inclusive: !0, exact: !1, message: r[t(2022)][t(2353)] }), a[t(2246)]()), r[t(1928)] !== null && x.data[t(1754)] > r[t(1928)].value && (X(x, { code: K.too_big, maximum: r[t(1928)].value, type: t(510), inclusive: !0, exact: !1, message: r[t(1928)][t(2353)] }), a[t(2246)]()); - const s = this[t(1423)][t(690)]; - function o(d) { - const u = t, f = /* @__PURE__ */ new Set(); - for (const l of d) { - if (l[u(1713)] === "aborted") return h0; - l.status === "dirty" && a[u(2246)](), f[u(2295)](l[u(2391)]); - } - return { status: a[u(2391)], value: f }; - } - const c = [...x[t(726)].values()][t(2404)]((d, u) => s[t(1586)](new px(x, d, x.path, u))); - return x[t(2140)].async ? Promise.all(c)[t(1413)]((d) => o(d)) : o(c); - } - [n(606)](e, t) { - const a = n; - return new re({ ...this[a(1423)], minSize: { value: e, message: e0[a(879)](t) } }); - } - [n(599)](e, t) { - const a = n; - return new re({ ...this[a(1423)], maxSize: { value: e, message: e0[a(879)](t) } }); - } - [n(1754)](e, t) { - const a = n; - return this[a(606)](e, t)[a(599)](e, t); - } - [n(670)](e) { - return this[n(606)](1, e); - } -} -re[n(1108)] = (i, e) => new re({ valueType: i, minSize: null, maxSize: null, typeName: p0.ZodSet, ...y0(e) }); -class Ht extends k0 { - get [n(727)]() { - const e = n; - return this[e(1423)][e(1803)](); - } - _parse(e) { - const t = n, { ctx: a } = this[t(512)](e); - return this[t(1423)][t(1803)]()._parse({ data: a[t(726)], path: a[t(1728)], parent: a }); - } -} -Ht[n(1108)] = (i, e) => { - const t = n; - return new Ht({ getter: i, typeName: p0[t(1676)], ...y0(e) }); +Fr[s(2196)] = (i, x, t) => { + var a = s; + return new Fr({ valueType: x, keyType: i, typeName: p0[a(570)], ...b0(t) }); }; -class Se extends k0 { - [n(1586)](e) { - const t = n; - if (e.data !== this._def.value) { - const a = this._getOrReturnCtx(e); - return X(a, { received: a.data, code: K.invalid_literal, expected: this[t(1423)][t(2391)] }), h0; +class tx extends E0 { + [s(796)](x) { + var t = s; + const { status: a, ctx: e } = this[t(1408)](x); + if (e.parsedType !== e0[t(1951)]) return Y(e, { code: B[t(635)], expected: e0.set, received: e[t(2268)] }), h0; + const r = this._def; + r[t(2037)] !== null && e.data.size < r.minSize[t(2038)] && (Y(e, { code: B[t(1287)], minimum: r[t(2037)][t(2038)], type: "set", inclusive: !0, exact: !1, message: r[t(2037)][t(2089)] }), a.dirty()), r[t(1215)] !== null && e[t(1073)].size > r[t(1215)][t(2038)] && (Y(e, { code: B[t(718)], maximum: r[t(1215)][t(2038)], type: t(1951), inclusive: !0, exact: !1, message: r.maxSize[t(2089)] }), a[t(1162)]()); + const n = this[t(1821)][t(1851)]; + function o(u) { + var d = t; + const f = /* @__PURE__ */ new Set(); + for (const l of u) { + if (l[d(2296)] === "aborted") return h0; + l.status === d(1162) && a[d(1162)](), f[d(1342)](l[d(2038)]); + } + return { status: a[d(2038)], value: f }; } - return { status: t(1954), value: e.data }; + const c = [...e[t(1073)][t(2166)]()][t(632)]((u, d) => n[t(796)](new me(e, u, e.path, d))); + return e.common[t(2572)] ? Promise.all(c)[t(432)]((u) => o(u)) : o(c); } - get [n(2391)]() { - const e = n; - return this[e(1423)][e(2391)]; + [s(1524)](x, t) { + var a = s; + return new tx({ ...this._def, minSize: { value: x, message: a0[a(1892)](t) } }); + } + [s(2537)](x, t) { + return new tx({ ...this._def, maxSize: { value: x, message: a0.toString(t) } }); + } + [s(1066)](x, t) { + var a = s; + return this[a(1524)](x, t).max(x, t); + } + [s(1609)](x) { + var t = s; + return this[t(1524)](1, x); } } -Se[n(1108)] = (i, e) => new Se({ value: i, typeName: p0.ZodLiteral, ...y0(e) }); -function Dn(i, e) { - const t = n; - return new Dx({ values: i, typeName: p0[t(488)], ...y0(e) }); +tx[s(2196)] = (i, x) => { + var t = s; + return new tx({ valueType: i, minSize: null, maxSize: null, typeName: p0[t(468)], ...b0(x) }); +}; +class Zt extends E0 { + get [s(1174)]() { + var x = s; + return this[x(1821)][x(801)](); + } + _parse(x) { + var t = s; + const { ctx: a } = this._processInputParams(x); + return this._def[t(801)]()[t(796)]({ data: a[t(1073)], path: a[t(1796)], parent: a }); + } } -class Dx extends k0 { - _parse(e) { - const t = n; - if (typeof e.data !== t(923)) { - const a = this[t(1892)](e), x = this._def[t(1109)]; - return X(a, { expected: F0[t(827)](x), received: a[t(2350)], code: K.invalid_type }), h0; +Zt[s(2196)] = (i, x) => { + var t = s; + return new Zt({ getter: i, typeName: p0[t(2293)], ...b0(x) }); +}; +class bx extends E0 { + [s(796)](x) { + var t = s; + if (x[t(1073)] !== this._def[t(2038)]) { + const a = this._getOrReturnCtx(x); + return Y(a, { received: a[t(1073)], code: B[t(1451)], expected: this[t(1821)][t(2038)] }), h0; } - if (!this[t(967)] && (this[t(967)] = new Set(this[t(1423)][t(1109)])), !this[t(967)].has(e[t(726)])) { - const a = this[t(1892)](e), x = this._def[t(1109)]; - return X(a, { received: a[t(726)], code: K[t(533)], options: x }), h0; + return { status: t(2538), value: x.data }; + } + get value() { + var x = s; + return this[x(1821)].value; + } +} +bx[s(2196)] = (i, x) => { + var t = s; + return new bx({ value: i, typeName: p0[t(2204)], ...b0(x) }); +}; +function Ms(i, x) { + var t = s; + return new De({ values: i, typeName: p0[t(2067)], ...b0(x) }); +} +class De extends E0 { + [s(796)](x) { + var t = s; + if (typeof x[t(1073)] !== t(2348)) { + const a = this[t(2486)](x), e = this[t(1821)][t(2166)]; + return Y(a, { expected: N0[t(2111)](e), received: a[t(2268)], code: B[t(635)] }), h0; } - return rx(e[t(726)]); + if (!this[t(1229)] && (this._cache = new Set(this[t(1821)][t(2166)])), !this[t(1229)][t(2561)](x.data)) { + const a = this[t(2486)](x), e = this[t(1821)][t(2166)]; + return Y(a, { received: a[t(1073)], code: B[t(401)], options: e }), h0; + } + return re(x[t(1073)]); } get options() { - const e = n; - return this._def[e(1109)]; + var x = s; + return this[x(1821)][x(2166)]; } - get [n(1252)]() { - const e = n, t = {}; - for (const a of this[e(1423)][e(1109)]) + get [s(1053)]() { + var x = s; + const t = {}; + for (const a of this[x(1821)].values) t[a] = a; return t; } - get [n(2558)]() { - const e = n, t = {}; - for (const a of this[e(1423)][e(1109)]) + get [s(890)]() { + var x = s; + const t = {}; + for (const a of this[x(1821)][x(2166)]) t[a] = a; return t; } - get Enum() { - const e = n, t = {}; - for (const a of this[e(1423)][e(1109)]) + get [s(573)]() { + var x = s; + const t = {}; + for (const a of this[x(1821)][x(2166)]) t[a] = a; return t; } - extract(e, t = this[n(1423)]) { - const a = n; - return Dx[a(1108)](e, { ...this[a(1423)], ...t }); + [s(1213)](x, t = this[s(1821)]) { + var a = s; + return De[a(2196)](x, { ...this[a(1821)], ...t }); } - exclude(e, t = this[n(1423)]) { - const a = n; - return Dx[a(1108)](this.options[a(893)]((x) => !e[a(1958)](x)), { ...this._def, ...t }); + [s(1787)](x, t = this[s(1821)]) { + var a = s; + return De.create(this.options.filter((e) => !x[a(553)](e)), { ...this[a(1821)], ...t }); } } -Dx[n(1108)] = Dn; -class Ut extends k0 { - [n(1586)](e) { - const t = n, a = F0[t(1170)](this[t(1423)][t(1109)]), x = this[t(1892)](e); - if (x.parsedType !== _[t(923)] && x[t(2350)] !== _.number) { - const r = F0.objectValues(a); - return X(x, { expected: F0[t(827)](r), received: x[t(2350)], code: K.invalid_type }), h0; +De[s(2196)] = Ms; +class Bt extends E0 { + [s(796)](x) { + var t = s; + const a = N0[t(2644)](this[t(1821)][t(2166)]), e = this._getOrReturnCtx(x); + if (e[t(2268)] !== e0[t(2348)] && e[t(2268)] !== e0[t(960)]) { + const r = N0.objectValues(a); + return Y(e, { expected: N0[t(2111)](r), received: e[t(2268)], code: B.invalid_type }), h0; } - if (!this[t(967)] && (this[t(967)] = new Set(F0.getValidEnumValues(this[t(1423)][t(1109)]))), !this[t(967)][t(2333)](e[t(726)])) { - const r = F0[t(505)](a); - return X(x, { received: x[t(726)], code: K.invalid_enum_value, options: r }), h0; + if (!this[t(1229)] && (this._cache = new Set(N0.getValidEnumValues(this[t(1821)][t(2166)]))), !this._cache.has(x[t(1073)])) { + const r = N0[t(1322)](a); + return Y(e, { received: e[t(1073)], code: B[t(401)], options: r }), h0; } - return rx(e.data); + return re(x.data); } - get [n(1252)]() { - const e = n; - return this[e(1423)][e(1109)]; + get enum() { + var x = s; + return this[x(1821)][x(2166)]; } } -Ut.create = (i, e) => { - const t = n; - return new Ut({ values: i, typeName: p0[t(1934)], ...y0(e) }); +Bt[s(2196)] = (i, x) => { + var t = s; + return new Bt({ values: i, typeName: p0[t(1477)], ...b0(x) }); }; -class Pe extends k0 { - [n(2741)]() { - return this._def.type; +class wx extends E0 { + [s(1808)]() { + var x = s; + return this._def[x(338)]; } - [n(1586)](e) { - const t = n, { ctx: a } = this[t(512)](e); - if (a[t(2350)] !== _.promise && a[t(2140)].async === !1) return X(a, { code: K[t(2600)], expected: _[t(1001)], received: a[t(2350)] }), h0; - const x = a.parsedType === _[t(1001)] ? a.data : Promise[t(1987)](a.data); - return rx(x[t(1413)]((r) => { - const s = t; - return this[s(1423)].type[s(790)](r, { path: a.path, errorMap: a[s(2140)][s(568)] }); + [s(796)](x) { + var t = s; + const { ctx: a } = this._processInputParams(x); + if (a[t(2268)] !== e0[t(694)] && a[t(975)].async === !1) return Y(a, { code: B[t(635)], expected: e0[t(694)], received: a.parsedType }), h0; + const e = a.parsedType === e0[t(694)] ? a[t(1073)] : Promise[t(1890)](a.data); + return re(e.then((r) => { + var n = t; + return this[n(1821)][n(338)][n(955)](r, { path: a[n(1796)], errorMap: a[n(975)][n(2096)] }); })); } } -Pe.create = (i, e) => { - const t = n; - return new Pe({ type: i, typeName: p0[t(2214)], ...y0(e) }); +wx[s(2196)] = (i, x) => { + var t = s; + return new wx({ type: i, typeName: p0[t(613)], ...b0(x) }); }; -class qx extends k0 { - [n(1779)]() { - const e = n; - return this[e(1423)][e(727)]; +class qe extends E0 { + [s(2593)]() { + var x = s; + return this._def[x(1174)]; } - [n(758)]() { - const e = n; - return this[e(1423)][e(727)][e(1423)][e(1253)] === p0[e(2457)] ? this._def.schema[e(758)]() : this[e(1423)][e(727)]; + sourceType() { + var x = s; + return this[x(1821)][x(1174)][x(1821)][x(2074)] === p0[x(1762)] ? this[x(1821)][x(1174)][x(2618)]() : this[x(1821)][x(1174)]; } - [n(1586)](e) { - const t = n, { status: a, ctx: x } = this[t(512)](e), r = this._def[t(543)] || null, s = { addIssue: (o) => { - const c = t; - X(x, o), o.fatal ? a[c(2480)]() : a[c(2246)](); + [s(796)](x) { + var t = s; + const { status: a, ctx: e } = this[t(1408)](x), r = this[t(1821)][t(1782)] || null, n = { addIssue: (o) => { + var c = t; + Y(e, o), o[c(910)] ? a[c(1198)]() : a[c(1162)](); }, get path() { - return x[t(1728)]; + var o = t; + return e[o(1796)]; } }; - if (s[t(715)] = s[t(715)][t(1571)](s), r[t(2426)] === t(2629)) { - const o = r.transform(x.data, s); - if (x[t(2140)][t(1721)]) return Promise[t(1987)](o)[t(1413)](async (c) => { - const d = t; - if (a.value === d(1786)) return h0; - const u = await this[d(1423)][d(727)][d(912)]({ data: c, path: x[d(1728)], parent: x }); - return u[d(1713)] === d(1786) ? h0 : u[d(1713)] === d(2246) || a[d(2391)] === d(2246) ? Yx(u[d(2391)]) : u; + if (n[t(441)] = n.addIssue[t(1748)](n), r[t(338)] === "preprocess") { + const o = r[t(1009)](e.data, n); + if (e[t(975)].async) return Promise[t(1890)](o).then(async (c) => { + var u = t; + if (a[u(2038)] === u(806)) return h0; + const d = await this[u(1821)][u(1174)][u(2628)]({ data: c, path: e.path, parent: e }); + return d.status === "aborted" ? h0 : d[u(2296)] === u(1162) || a[u(2038)] === u(1162) ? Qe(d[u(2038)]) : d; }); { - if (a[t(2391)] === t(1786)) return h0; - const c = this[t(1423)].schema._parseSync({ data: o, path: x[t(1728)], parent: x }); - return c.status === t(1786) ? h0 : c[t(1713)] === "dirty" ? Yx(c.value) : a[t(2391)] === t(2246) ? Yx(c[t(2391)]) : c; + if (a[t(2038)] === t(806)) return h0; + const c = this._def[t(1174)]._parseSync({ data: o, path: e[t(1796)], parent: e }); + return c.status === t(806) ? h0 : c[t(2296)] === t(1162) ? Qe(c[t(2038)]) : a[t(2038)] === "dirty" ? Qe(c.value) : c; } } - if (r.type === t(2508)) { + if (r.type === "refinement") { const o = (c) => { - const d = t, u = r[d(2508)](c, s); - if (x[d(2140)][d(1721)]) return Promise[d(1987)](u); - if (u instanceof Promise) throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead."); + var u = t; + const d = r[u(623)](c, n); + if (e.common[u(2572)]) return Promise.resolve(d); + if (d instanceof Promise) throw new Error(u(1443)); return c; }; - if (x[t(2140)][t(1721)] === !1) { - const c = this._def[t(727)][t(1099)]({ data: x.data, path: x[t(1728)], parent: x }); - return c[t(1713)] === "aborted" ? h0 : (c[t(1713)] === t(2246) && a[t(2246)](), o(c.value), { status: a[t(2391)], value: c[t(2391)] }); - } else return this._def[t(727)]._parseAsync({ data: x[t(726)], path: x[t(1728)], parent: x })[t(1413)]((c) => { - const d = t; - return c.status === d(1786) ? h0 : (c[d(1713)] === d(2246) && a[d(2246)](), o(c[d(2391)])[d(1413)](() => { - const u = d; - return { status: a[u(2391)], value: c[u(2391)] }; + if (e[t(975)][t(2572)] === !1) { + const c = this._def.schema[t(1252)]({ data: e[t(1073)], path: e[t(1796)], parent: e }); + return c[t(2296)] === t(806) ? h0 : (c[t(2296)] === t(1162) && a[t(1162)](), o(c[t(2038)]), { status: a.value, value: c[t(2038)] }); + } else return this[t(1821)][t(1174)]._parseAsync({ data: e[t(1073)], path: e[t(1796)], parent: e })[t(432)]((c) => { + var u = t; + return c[u(2296)] === u(806) ? h0 : (c.status === "dirty" && a[u(1162)](), o(c[u(2038)])[u(432)](() => { + var d = u; + return { status: a[d(2038)], value: c.value }; })); }); } - if (r[t(2426)] === t(1110)) - if (x[t(2140)][t(1721)] === !1) { - const o = this[t(1423)][t(727)]._parseSync({ data: x[t(726)], path: x[t(1728)], parent: x }); - if (!Vx(o)) return h0; - const c = r.transform(o[t(2391)], s); - if (c instanceof Promise) throw new Error(t(2079)); + if (r[t(338)] === t(1009)) + if (e[t(975)][t(2572)] === !1) { + const o = this[t(1821)][t(1174)][t(1252)]({ data: e[t(1073)], path: e[t(1796)], parent: e }); + if (!Ve(o)) return h0; + const c = r[t(1009)](o[t(2038)], n); + if (c instanceof Promise) throw new Error(t(2620)); return { status: a.value, value: c }; - } else return this[t(1423)][t(727)][t(912)]({ data: x[t(726)], path: x.path, parent: x })[t(1413)]((o) => { - const c = t; - return Vx(o) ? Promise.resolve(r[c(1110)](o[c(2391)], s))[c(1413)]((d) => ({ status: a.value, value: d })) : h0; + } else return this[t(1821)][t(1174)][t(2628)]({ data: e[t(1073)], path: e.path, parent: e }).then((o) => { + var c = t; + return Ve(o) ? Promise[c(1890)](r[c(1009)](o[c(2038)], n)).then((u) => ({ status: a.value, value: u })) : h0; }); - F0[t(920)](r); + N0[t(1397)](r); } } -qx[n(1108)] = (i, e, t) => { - const a = n; - return new qx({ schema: i, typeName: p0[a(2457)], effect: e, ...y0(t) }); -}, qx[n(1789)] = (i, e, t) => { - const a = n; - return new qx({ schema: e, effect: { type: a(2629), transform: i }, typeName: p0[a(2457)], ...y0(t) }); +qe[s(2196)] = (i, x, t) => { + var a = s; + return new qe({ schema: i, typeName: p0[a(1762)], effect: x, ...b0(t) }); +}, qe[s(1789)] = (i, x, t) => { + var a = s; + return new qe({ schema: x, effect: { type: a(1642), transform: i }, typeName: p0[a(1762)], ...b0(t) }); }; -class Sx extends k0 { - [n(1586)](e) { - const t = n; - return this._getType(e) === _[t(2634)] ? rx(void 0) : this[t(1423)][t(1779)][t(1586)](e); +class Se extends E0 { + _parse(x) { + var t = s; + return this[t(337)](x) === e0.undefined ? re(void 0) : this[t(1821)][t(2593)][t(796)](x); + } + [s(1808)]() { + var x = s; + return this[x(1821)][x(2593)]; + } +} +Se[s(2196)] = (i, x) => new Se({ innerType: i, typeName: p0.ZodOptional, ...b0(x) }); +class je extends E0 { + [s(796)](x) { + var t = s; + return this[t(337)](x) === e0[t(1382)] ? re(null) : this[t(1821)][t(2593)][t(796)](x); } unwrap() { - const e = n; - return this[e(1423)][e(1779)]; + var x = s; + return this[x(1821)][x(2593)]; } } -Sx[n(1108)] = (i, e) => { - const t = n; - return new Sx({ innerType: i, typeName: p0[t(1228)], ...y0(e) }); +je[s(2196)] = (i, x) => { + var t = s; + return new je({ innerType: i, typeName: p0[t(2386)], ...b0(x) }); }; -class jx extends k0 { - [n(1586)](e) { - const t = n; - return this[t(2182)](e) === _[t(2382)] ? rx(null) : this[t(1423)].innerType[t(1586)](e); +class Sx extends E0 { + _parse(x) { + var t = s; + const { ctx: a } = this[t(1408)](x); + let e = a[t(1073)]; + return a[t(2268)] === e0[t(1887)] && (e = this[t(1821)].defaultValue()), this[t(1821)].innerType[t(796)]({ data: e, path: a[t(1796)], parent: a }); } - [n(2741)]() { - const e = n; - return this[e(1423)][e(1779)]; + [s(1064)]() { + var x = s; + return this[x(1821)][x(2593)]; } } -jx[n(1108)] = (i, e) => { - const t = n; - return new jx({ innerType: i, typeName: p0[t(1732)], ...y0(e) }); +Sx[s(2196)] = (i, x) => { + var t = s; + return new Sx({ innerType: i, typeName: p0[t(2520)], defaultValue: typeof x[t(2641)] === t(1853) ? x.default : () => x.default, ...b0(x) }); }; -class ke extends k0 { - _parse(e) { - const t = n, { ctx: a } = this[t(512)](e); - let x = a.data; - return a[t(2350)] === _[t(2634)] && (x = this[t(1423)][t(2303)]()), this[t(1423)][t(1779)][t(1586)]({ data: x, path: a[t(1728)], parent: a }); +class kx extends E0 { + [s(796)](x) { + var t = s; + const { ctx: a } = this._processInputParams(x), e = { ...a, common: { ...a[t(975)], issues: [] } }, r = this._def[t(2593)]._parse({ data: e[t(1073)], path: e[t(1796)], parent: { ...e } }); + return px(r) ? r.then((n) => { + var o = t; + return { status: "valid", value: n[o(2296)] === "valid" ? n[o(2038)] : this[o(1821)][o(572)]({ get error() { + return new ke(e.common.issues); + }, input: e[o(1073)] }) }; + }) : { status: "valid", value: r.status === t(2538) ? r.value : this[t(1821)][t(572)]({ get error() { + var n = t; + return new ke(e[n(975)].issues); + }, input: e.data }) }; } - [n(1994)]() { - const e = n; - return this._def[e(1779)]; + [s(2227)]() { + var x = s; + return this._def[x(2593)]; } } -ke.create = (i, e) => { - const t = n; - return new ke({ innerType: i, typeName: p0[t(2510)], defaultValue: typeof e[t(1658)] === t(1342) ? e[t(1658)] : () => e[t(1658)], ...y0(e) }); +kx[s(2196)] = (i, x) => { + var t = s; + return new kx({ innerType: i, typeName: p0[t(2195)], catchValue: typeof x.catch === t(1853) ? x.catch : () => x[t(947)], ...b0(x) }); }; -class Ee extends k0 { - [n(1586)](e) { - const t = n, { ctx: a } = this._processInputParams(e), x = { ...a, common: { ...a[t(2140)], issues: [] } }, r = this[t(1423)][t(1779)][t(1586)]({ data: x[t(726)], path: x.path, parent: { ...x } }); - return ge(r) ? r[t(1413)]((s) => { - const o = t; - return { status: "valid", value: s[o(1713)] === "valid" ? s.value : this[o(1423)].catchValue({ get error() { - const c = o; - return new Px(x[c(2140)][c(2121)]); - }, input: x[o(726)] }) }; - }) : { status: "valid", value: r.status === t(1954) ? r[t(2391)] : this[t(1423)].catchValue({ get error() { - return new Px(x.common.issues); - }, input: x[t(726)] }) }; - } - [n(895)]() { - const e = n; - return this[e(1423)][e(1779)]; - } -} -Ee[n(1108)] = (i, e) => { - const t = n; - return new Ee({ innerType: i, typeName: p0[t(1150)], catchValue: typeof e.catch === t(1342) ? e[t(641)] : () => e.catch, ...y0(e) }); -}; -class Rr extends k0 { - [n(1586)](e) { - const t = n; - if (this[t(2182)](e) !== _[t(946)]) { - const x = this[t(1892)](e); - return X(x, { code: K[t(2600)], expected: _.nan, received: x.parsedType }), h0; +class Nr extends E0 { + _parse(x) { + var t = s; + if (this._getType(x) !== e0[t(1999)]) { + const e = this[t(2486)](x); + return Y(e, { code: B.invalid_type, expected: e0[t(1999)], received: e.parsedType }), h0; } - return { status: t(1954), value: e[t(726)] }; + return { status: t(2538), value: x[t(1073)] }; } } -Rr[n(1108)] = (i) => new Rr({ typeName: p0.ZodNaN, ...y0(i) }); -class jn extends k0 { - [n(1586)](e) { - const t = n, { ctx: a } = this[t(512)](e), x = a[t(726)]; - return this[t(1423)].type[t(1586)]({ data: x, path: a.path, parent: a }); +Nr[s(2196)] = (i) => new Nr({ typeName: p0.ZodNaN, ...b0(i) }); +class Ls extends E0 { + [s(796)](x) { + var t = s; + const { ctx: a } = this._processInputParams(x), e = a.data; + return this._def.type._parse({ data: e, path: a[t(1796)], parent: a }); } - [n(2741)]() { - return this[n(1423)].type; + [s(1808)]() { + var x = s; + return this[x(1821)].type; } } -class _t extends k0 { - _parse(e) { - const t = n, { status: a, ctx: x } = this[t(512)](e); - if (x[t(2140)][t(1721)]) +class rr extends E0 { + _parse(x) { + var t = s; + const { status: a, ctx: e } = this[t(1408)](x); + if (e[t(975)][t(2572)]) return (async () => { - const s = t, o = await this[s(1423)].in[s(912)]({ data: x[s(726)], path: x[s(1728)], parent: x }); - return o[s(1713)] === s(1786) ? h0 : o[s(1713)] === s(2246) ? (a.dirty(), Yx(o[s(2391)])) : this[s(1423)][s(2337)]._parseAsync({ data: o.value, path: x[s(1728)], parent: x }); + var n = t; + const o = await this._def.in[n(2628)]({ data: e[n(1073)], path: e[n(1796)], parent: e }); + return o.status === n(806) ? h0 : o.status === n(1162) ? (a[n(1162)](), Qe(o.value)) : this._def[n(516)][n(2628)]({ data: o[n(2038)], path: e[n(1796)], parent: e }); })(); { - const r = this[t(1423)].in[t(1099)]({ data: x[t(726)], path: x[t(1728)], parent: x }); - return r[t(1713)] === t(1786) ? h0 : r[t(1713)] === t(2246) ? (a.dirty(), { status: t(2246), value: r[t(2391)] }) : this[t(1423)][t(2337)][t(1099)]({ data: r[t(2391)], path: x[t(1728)], parent: x }); + const r = this[t(1821)].in[t(1252)]({ data: e[t(1073)], path: e.path, parent: e }); + return r.status === t(806) ? h0 : r.status === t(1162) ? (a[t(1162)](), { status: t(1162), value: r[t(2038)] }) : this[t(1821)][t(516)][t(1252)]({ data: r[t(2038)], path: e[t(1796)], parent: e }); } } - static [n(1108)](e, t) { - const a = n; - return new _t({ in: e, out: t, typeName: p0[a(1783)] }); + static [s(2196)](x, t) { + return new rr({ in: x, out: t, typeName: p0.ZodPipeline }); } } -class Ce extends k0 { - [n(1586)](e) { - const t = n, a = this._def[t(1779)][t(1586)](e), x = (r) => { - const s = t; - return Vx(r) && (r[s(2391)] = Object[s(2237)](r[s(2391)])), r; +class Ex extends E0 { + [s(796)](x) { + var t = s; + const a = this._def[t(2593)][t(796)](x), e = (r) => { + var n = t; + return Ve(r) && (r.value = Object[n(568)](r[n(2038)])), r; }; - return ge(a) ? a[t(1413)]((r) => x(r)) : x(a); + return px(a) ? a.then((r) => e(r)) : e(a); } - [n(2741)]() { - const e = n; - return this[e(1423)][e(1779)]; + [s(1808)]() { + return this._def.innerType; } } -Ce[n(1108)] = (i, e) => { - const t = n; - return new Ce({ innerType: i, typeName: p0[t(1833)], ...y0(e) }); +Ex[s(2196)] = (i, x) => { + var t = s; + return new Ex({ innerType: i, typeName: p0[t(2123)], ...b0(x) }); }; var p0; (function(i) { - const e = n; - i[e(509)] = e(509), i.ZodNumber = "ZodNumber", i[e(952)] = e(952), i.ZodBigInt = e(592), i[e(1918)] = "ZodBoolean", i.ZodDate = "ZodDate", i[e(1904)] = e(1904), i[e(1502)] = e(1502), i[e(1090)] = e(1090), i[e(1841)] = "ZodAny", i[e(2209)] = "ZodUnknown", i.ZodNever = e(2298), i[e(826)] = e(826), i[e(1473)] = e(1473), i[e(2725)] = e(2725), i[e(1227)] = e(1227), i[e(1378)] = e(1378), i.ZodIntersection = "ZodIntersection", i[e(1184)] = e(1184), i[e(1859)] = e(1859), i[e(2231)] = e(2231), i.ZodSet = e(1678), i.ZodFunction = e(2119), i.ZodLazy = "ZodLazy", i[e(1818)] = e(1818), i[e(488)] = e(488), i.ZodEffects = "ZodEffects", i[e(1934)] = e(1934), i[e(1228)] = "ZodOptional", i[e(1732)] = e(1732), i.ZodDefault = e(2510), i[e(1150)] = e(1150), i.ZodPromise = e(2214), i.ZodBranded = "ZodBranded", i[e(1783)] = e(1783), i.ZodReadonly = "ZodReadonly"; + var x = s; + i[x(394)] = x(394), i.ZodNumber = "ZodNumber", i[x(2105)] = x(2105), i[x(1528)] = x(1528), i[x(2280)] = x(2280), i.ZodDate = x(566), i[x(2354)] = x(2354), i[x(1469)] = x(1469), i[x(914)] = "ZodNull", i[x(1092)] = x(1092), i[x(1736)] = x(1736), i[x(592)] = x(592), i[x(687)] = x(687), i.ZodArray = "ZodArray", i[x(894)] = x(894), i[x(726)] = x(726), i[x(872)] = x(872), i.ZodIntersection = x(2575), i.ZodTuple = x(1614), i.ZodRecord = x(1759), i.ZodMap = x(570), i[x(468)] = "ZodSet", i.ZodFunction = x(775), i[x(2293)] = x(2293), i[x(2204)] = x(2204), i[x(2067)] = x(2067), i.ZodEffects = x(1762), i[x(1477)] = x(1477), i[x(2232)] = x(2232), i.ZodNullable = x(2386), i[x(2520)] = x(2520), i[x(2195)] = x(2195), i[x(613)] = "ZodPromise", i[x(1442)] = x(1442), i[x(1840)] = x(1840), i[x(2123)] = x(2123); })(p0 || (p0 = {})); -const I = wx[n(1108)], I0 = Zx[n(1108)], l0 = Dt[n(1108)], B0 = Lt.create, se = $t[n(1108)]; -Cx[n(1108)]; -const N0 = hx[n(1108)], O = W0.create, _0 = ye[n(1108)], Mn = Xt[n(1108)]; -be.create, Tx[n(1108)]; -const Y0 = we[n(1108)], r0 = Se.create, V0 = Dx[n(1108)]; -Pe[n(1108)]; -const W = Sx[n(1108)]; -jx.create; -var Qa, Ga; -class si { - constructor(e, t) { - d0(this, Ga); - d0(this, Qa); - const a = n; - this.graphInstance = e, this[a(582)] = t; +const S = we.create, t0 = We.create, x0 = Lt[s(2196)], D0 = Ht[s(2196)], sx = Ut.create; +Pe[s(2196)]; +const zx = Vt[s(2196)], I0 = pe[s(2196)], I = K0[s(2196)], J0 = vx.create, $s = tr[s(2196)]; +gx[s(2196)], Ae.create; +const H0 = yx.create, r0 = bx[s(2196)], F0 = De[s(2196)]; +wx[s(2196)]; +function Ix() { + var i = ["hasPath", "[^0-9]", "ZodLiteral", "getNeighbors", "emit", "pipe", "cardinal", ` if (typeof item == 'string') item = '"' + item; `, "maxReplaces", "#33CC00", "Failed to check workflow changeTracker state:", "cacheKey", "{5}", "types", "defaults", "setupNodeBindings", " var startErrs", "shape", ".length == 1) { ", "fail", "邮箱: {{email}}", "getNode", ".schemaPath === undefined) { ", "maxProperties", "initialize", "removeCatch", "unsetOutgoingRequestInterceptor", "get", "usePattern", ` , message: 'should pass "`, "ZodOptional", "Save", "defaultError", "#/definitions/schemaArray", "locale", "#6600CC", ".async; ", "closeWorkflow", "subscribe", "customRule", "Enter Google API Key", "2.1.0", "postProcess", "[vV]", "multipleOf", "__nwjs", "click to restore", "regexpUnescape", ".dataPath === undefined) ", "boolean", "cancel", "longer", "enabled", "pendingCount", "favorites", "创建图层失败", "toStringTag", "Get pixel of {{0}} failed", " - no connection available", "var ", ") && (missing", "graphChanged", "ucs2length", "save", "Forbidden (403)", "overflow", "parsedType", "sdppp/streamResponse", "getItem", "true", "translate", "isObject", "missingKey", "yhd", "Resize document for preview", "maxLength", "$el", "Loading...", "ZodBoolean", "Sending all images...", "Get content of layer {{0}}", "$async", " Object.keys(", "time", "cloneInstance", "base64", "getSchema", "lte", "custom", " not found for node ", "Outgoing message:", "ZodLazy", "buildDirectedAdjacencyList", "exact", "status", "$comment", "&", "_getInvalidInput", "createGlobalDispatcherForType", "Expected ", "observers", "listRoots", ".errors", "auth.guest_login_success", " = '' + ", "base64url", "' + ", "isInteger", "merge", "Not connected", " , params: { comparison: ", "#CCCC00", `"' `, "([+-]\\d{2}:?\\d{2})", "regexp", "logger must implement log, warn and error methods", "Server does not support resources (required for ", ") { if (vErrors === null) vErrors = ", "'", "No active document", " = true; else if (!Array.isArray(schema", "widgetable", "retryTimeout", "_requestHandlers", " , params: {} ", "正在上传...", "#99CC33", "作为智能对象导入", "#CC0066", "logging", "schema id ignored", "parseMissingKeyHandler", "workflow", "从 选区 获取遮罩", "[i], ", "getProperty", "uri", "isOpen", "done", 'id "', " from id ", " ) || ", "[0-5]\\d", "ListFormat", ") == -1 ", "Failed to check workflow state changes:", "string", "api/view?type=", "Invalid attempt to destructure non-iterable instance", "ids", ".length > ", "unknown keyword: ", "ZodSymbol", " if (!", " at one or more positions greater than or equal to ", "#9933FF", "defaultMeta", "{2})", " && !", "` could not be extracted from all schema options", "cimode", ".length; ", " = false; ", "未实现 (501)", " , message: 'can\\'t resolve reference ", "abortRequest", "#CC9900", " = undefined; ", "regExpQueue", "_addSchema", "dependencies", "no plural rule found for: ", "full", "onTimeout", "implementAction", "removeMiddleware", "startHeartbeat", "); if (!", "push", "Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.", "missed to pass in variable ", "ltr", " ) { ", "[ ]*{", "ZodNullable", "interpolate", "omit", "_unknown", "Click to get RunningHub APIKey", "broadcast", "buildAdjacencyList", "toJSON", "Send all", "int", "getLanguagePartFromCode", "filter", "resetTimeoutOnProgress", "hbo", "_compilations", "findIndex", "无法将文件作为文档打开: {{path}}", ")' returned an object instead of string.", "workflows", "querySelector", "keyPrefix", " is present' ", "registerProxyForwardHandler", "unknown", "documentElement", " , parentSchema: validate.schema", "getFallbackCodes", " = true; break; }", "rootData", "checkDataTypes", "compositeRule", "uiWeight", "valueSchema", "++) { var ", "jsonPointers", "PluralRules", "processCode", "shorter", "获取图层 {{0}} 的内容", "Meta-schema for $data reference (JSON Schema extension proposal)", "userinfo", "masks", "Get mask from Selection", " == 'function' ? ", "当前选区", "dir", "Error compiling schema, function code:", "safeParseAsync", "delete", "1631VwRMOC", "isBase64", "Uploading, if the image too large, may be stuck...", " = validate.schema", " , schema: ", " } } else { ", "isBase64url", "Invalid JSON-pointer: ", "resource", "yds", "normalize", "auz", "schema should be object or boolean", '.schemaPath = "', "order", "invalid_union_discriminator", "toQuotedString", "isFinite", "Fit to selection", "sourceCode", " === undefined ", "#/definitions/nonNegativeIntegerDefault0", "elicitation/create", "forkResourceStore", "maxTotalTimeout", "NOT_PATH", "getTransport", "curlayer_selection", "ZodArray", "Cannot register capabilities after connecting to transport", "'/' + ", "Current layer bounds only", "getClientCapabilities", "debugDisableHeartbeatResponse", "; else vErrors = null; } ", "meta", "#0099FF", ") continue; ", "if (!", "rootId", "more than", "Create guide frame", ") break; } ", "从 画布 获取图像", "other", "less than or equal to", "Current Tasks:", "Reverse", "reduce", "#CCCC33", "schemaExcl", "_getOrReturnCtx", "/*# sourceURL=", "unsetOutgoingNotificationInterceptor", ", schema", "errorDataPath", "debug", "rtl", "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", "markConnected", "PCT_ENCODED", "更多操作", "reloadResources", "getHandler", "execution_interrupted", "email", "label", " && !Array.isArray(", " ) : ( (", "minute", "findPath", "graph", "Failed", "sdppp/abort", "'then'", " !== undefined) { ", "suffix", "Exclude current layer", "joinArrays", "fragment", "join", "audio", "weeks", "#33CCFF", "ComfyManager not found, cannot reboot", "ZodDefault", "isFinite(", "warning", " } ", "作为新文档导入", "388930SUpJNd", "react", "~validate", "formData", " if (!(await ", "Core schema meta-schema", "propertyNames", "failed parsing options string in nesting for key ", "#FF9933", "layer not found {0}", "输入图像", "setupGeneralBroadcastHandler", "max", "valid", "validateStreamRequestorRequest", "ASCII", " } }", "Model with affordable price, abundant community applications", " try { await ", "nestingSuffix", "2.0", "needsPlural", "#00CC00", "Your powerful node-based workflow engine", "_path", " validate.errors = [", "ayn", "heartbeatInterval", "Connection closed", "nestingOptionsSeparator", " + '", "catchall", "setupGraphStoreSync", "bbz", "datetime", "postProcessPassResolved", "has", "broadcastCurrentState", "hasAction", "ValidationError", "findPathInternal", "{1,4}", "运行了 {{duration}} 秒,{{message}}", "#/definitions/nonNegativeInteger", "找不到图层: {{0}}", "ComfyUI server reconnecting", "markDisconnected", "async", "maxValue", "objectKeys", "ZodIntersection", "additionalProperties", "; if (", "ayp", "invalid_arguments", "domainHost", "_clientCapabilities", "3rdParty", "resolvedLanguage", "default is ignored in the schema root", "#33CCCC", " ", ") { for (var ", "checkState", "renderer", "{0,1}", "nullish", "\\$&", "innerType", " = ''; ", "Invalid function return type", "forwarded", "iterator", "responseSchema", "expected", "now", "assertRequestHandlerCapability", "index", "Array.isArray(", "days", "keywords", "fromCharCode", "String must contain ", "apc", " = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ", "getPathExpr", "#CC9933", "serialize", "].propertyName = ", "Failed to send cancellation: ", "Server does not support notifying about resources (required for ", "addMetaSchema", "load", "sourceType", "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.", " === undefined || ", "accept", "_opts", "success", "Keyword ", "headers", "Gemini 2.5 Flash 图像", "_parseAsync", "))))) {", "newlayer_curlayer", "Server does not support notifying of tool list changes (required for ", " if (errors === 0) return data; ", "sdppp-heartbeat", "#3399FF", "从 当前图层 获取遮罩", "nestingRegexp", "requestInitialStateForNode", "seconds", " = await ", "More actions", "default", "unescapeComponent", "util", "getValidEnumValues", "local", "registerDirectRequestHandlerGeneric", "inlineRef", "\\:\\:", "errToObj", "storage", " === 1) ", "spa", "valueOf", ") { ", "removeAdditional", " = false; else {", "strictDefaults", "newlayer_canvas", ", rootData) ", " = typeof ", "heartbeatTimeoutTimer", " var err = ", " } else { errors = ", "compiling", "mergeObjectAsync", " === undefined) ", "hasRequestHandler", ") && ", "fallbackNS", "Select boundary", "_timeoutInfo", "zero", "#FF3333", """, "hasDefaultValue", "missingSchema", "[\\+\\-\\.]", "isInitialized", "unknownFormats", " if (! ", '"failed to compile', " == errors) { ", "executeHandlerAsync", "Task cancelled", "AbortSignal is already aborted", "errSchemaPath", "failing", "#66CC33", "greater than ", "_schemas", " }; return validate; ", "Cloud:", "ruleErr", "mode", "stats", "exists", "extendTranslation", "http://json-schema.org/draft-07/schema#", "notice", "Unknown", "[^]", "获取选区失败", " == null) ", " = false; else if (", "Task incomplete, current status: {{status}}", "schemas", "Generating", "missingKeyHandler", "getRule", "languageChanged", "execution_success", "{0,6}", " % 1)", "_meta", " validate.errors = vErrors; return false; ", "validate", " instanceof RegExp) && ", "select", "unsetRequestHandler", "调整预览文档尺寸", "No linked layer for {{0}}", "ctx", "JWT", "setNotificationHandler", "_getType", "type", "nest", "[GraphStoreSynchronizer] Error processing store update for ", " var err = ", "Get image from Canvas", " = true; } else { ", "title", "Please select the mask to get", "oninitialized", "getNodeTitle", "交集或缩放目标为空", "显示发送的图片", "_options", "ydd", "lowerCaseLng", "50uMyCfy", "implementInternalAction", "跳转到最后一个", "bigint", "if ( ", "iri", "mcp-mesh-router", "hours", "typeof ", "设为当前选区", "en-US", "_resetTimeout", " && Object.prototype.hasOwnProperty.call(", "addMiddleware", "ayh", "反向裁剪", "获取 API Key", ".dataPath = (dataPath || '') + ", "initialState", "originalError", "_regex", "Username: {{username}}", " if (!", "curr", '" is used in schema at path "', "tolerant", "lngs", "(\\.\\d+)?", '"; ', "执行失败", "_onerror", "keyof", "convert widget {0} failed:", "anyOf", "每批图像数", " || ", "stateUpdate", "substr", "validation", "addNamespaces", "logging/setLevel", "ZodString", "if (", " , params: { allowedValues: schema", "整个画布", " for nesting ", "languageOnly", "useRawValueToEscape", "invalid_enum_value", "Prompt", "partial", "$dataMetaSchema", "xmn", "+Shift 单次获取", "CurLayer", "Success", "lazycreate", "$schema must be a string", "sdppp/streamRequest", "parseInt", "_notificationHandlers", "isClone", "count", "如何获取APIKey", "Document {{0}} not found", "__internal_requestInitialState_", "WARNING DEPRECATED: ", "subfolder", "refVal", "[^\\%\\/\\@]", "_cached", "curlayer", "Boundary", "=0; ", "模型物美价廉,海量社区应用", "Rectangle coordinates required for create action", "Cloud-based model service platform", "网关超时 (504)", " Math.abs(Math.round(division", "then", "Converting circular structure to JSON", "sqr", "无法打开图像文件: {{error}}", "reconnecting", "$id", "生成中", "skipKeywords", "round", "addIssue", "找不到文档: {{0}}", "cancelled", "Array must contain ", "less than", "entries", "Show Preview ({{count}} images)", "else", "coerceToTypes", "formatters", "req_", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ", "charAt", ".patternProperties", "[\\@]", "loopRequired", "生成中...", "_getId", "get_layer_info: layer_identify required", "Creating task...", " !== ", "getResource", "run", "output", "shu", "errs_", "startsWith", "ZodSet", "partialBundledLanguages", "pick", "IPV6ADDRESS", "Unknown error ({{code}})", "prompt_ids: ", "__internal_", '[\\"]', "Google Gemini 图像生成器", "Stop and cancel all", "processors", "_getCached", "清除参考线框架", "How to get APIKey", "loadGraphData", "canReachThroughConnectedNodes", "strictKeywords", "remove", "输入设置", 'custom keyword "', "nonExplicitSupportedLngs", "argumentsError", "{2}", "]] !== undefined ", "mesh:workflow", "reference", "请选择要获取的图像", "waiters", "assistant", ".validateSchema(", "Please select the image to get", "); errors = vErrors.length; for (var ", "void", "yih", "readOnly", "error", "useDefaults", "augment", "unescapePrefix", " is already defined", "unescapeSuffix", "more", "setOutgoingNotificationInterceptor", " , schemaPath: ", ") { ", "var refVal", "#FF0033", "sdppp_workflow_alias", "out", "Invalid name: {{0}}", "not", "prepend", "wss", "getDataByLanguage", "toFixed", "abortAllRequests", "postMessage", " , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' ", "absolutePath", "running", "parent schema must have all required keywords: ", "sdppp/broadcast", "Received a response for an unknown message ID: ", "substring", '" for languages "', "performWorkflowReset: ", " == 'number' ? ( (", "process", "usedLng", "InternalError", "[object Number]", "Clear all", "getBestMatchFromCodes", "', depsCount: ", "createInstance", "typ", "/", " == ", "[A-Za-z0-9\\-\\.\\_\\~", "/type", "cuid2", "minLength", " var vErrors = null; ", "getNodeIds", "#FFCC00", "includes", "此处粘贴 WebApp ID", "disconnect", "interpolator", "executed", "[\\:\\/\\?\\#\\[\\]\\@]", "Select AI Service Provider", "; ", "粘贴你的模型名称", "prev", "_limitProperties", "workflow-run", "strict", "ZodDate", "color: inherit", "freeze", "is an invalid additional property", "ZodMap", "pluralCategories", "catchValue", "Enum", "saveMissing", "setupStreamProtocolHandlers", "throwIfAborted", "批次数量", "stopAll", "openWorkflows", "namespace", "reason", " = 'else'; ", "prompt_id", "week", " ms", "getStats", "changeTracker", "加载中...", "auto", "not_multiple_of", "default is ignored for: ", "ZodNever", "app.queuePrompt caught", " division", "海量模型,稳定服务", "[GraphStoreSynchronizer] Error broadcasting state update for ", " if (true) { ", "; if (vErrors !== null) { if (", "constructor", "jsonStringifyReplacer", "heartbeatTimer", "Jump to last", "nodeIndexes", "alwaysSet", "applyPostProcessor", "_addCheck", "424825zqgWaG", "actionManager", "#00CCFF", "/additionalProperties", "Inpaint (reverse crop)", "async format in sync schema", "ZodPromise", "invalid-input", "dataVar", "uuid", " , data: ", "strictCreate", "创建操作需要矩形坐标", "#0099CC", "widgets", "interpolationkey", "refinement", "_loadingSchemas", "skipInterpolation", "toHash", "cmp", "__proxy_forward", "_instructions", "\\' is invalid' ", "color: ", "map", "symbol", "Clear", "invalid_type", "empty", " === null) ", "initializeResponseQueue", "isNANOID", "decline", "#CC3399", "getState", ".call(this, ", "connectionManager", " , message: 'should be equal to constant' ", " && self._opts.unknownFormats.indexOf(", "sendPromptListChanged", "images", "Method not found", "MiddlewareError", "init: i18next is already initialized. You should call init just once!", "nestingPrefix", "sdpppX2", "exclusiveMinimum", "put", "received", "Batch Count", "manuallyExtractDefaults", " = true; else if (typeof ", "[BroadcastManager] Error forwarding ", ", limit: ", "#FF0099", "broadcastReceived", "; } ", "rejecting language code not found in supportedLngs: ", "Please select AI service", "(new RegExp(", "getFixedT", "del", " = equal(", "host", ".length , ", "channel", "([01]\\d|2[0-3]):[0-5]\\d(:", "addEventListener", "[A-Za-z]", "jwt", " === null || (", "reset", " ) ", " if (Array.isArray(", " var ", "MCP error ", "selection", "Email: {{email}}", "ConnectionClosed", "ZodVoid", "strip", "setupAbortHandler", "next", "arrayToEnum", "]; ", " for (var ", "promise", ".validate;", ")) { ", "race", "cleanCode", "hasNotificationHandler", "implements", " = [", "getNodeStore", "removeRequestHandler", "defaultValue", "###", "sendLoggingMessage", ", received ", "Note", "Set text to layer", "_onprogress", "addResourceBundle", " ) { ", "执行成功", "setPrototypeOf", "heartbeatTimeout", "extendRefs", "} else { errors = ", "too_big", "nodes", "escapeValue", "addMessageEventListener", " , params: { passingSchemas: ", " / ", "newlayer_selection", "idx", "ZodUnion", "No Intl support, please use an Intl polyfill!", "updateMissing", " = ", "Execute", "abv", "sampling/createMessage", "code", "zh-CN", " var i = ", "getDefinition", " if ( ", ") vErrors.length = ", "setComfyOrgAPIKey", "assign", " == 'object' && Array.isArray(", "keySchema", "#9900CC", "coerceTypes", "registerCapabilities", "0?[1-9]", "contains", "mountedTransports", "schema $id ignored", "Invalid discriminator value. Expected ", "def", "PS shortcuts may be blocked by plugin...", "getCurrentNodeId", "Layer {{0}} is not a group", " !== undefined ", "apply", "sourceNodeId", "isEmpty", "sort", "initialized", "shift", "passingSchemas", "saveMissingPlurals", "$schema", " for interpolating ", "Invalid ", "customRules", "setupStreamResponseHandler", "isPersisted", " to ", "ajp", "Workflow not found", ` + '" schema' `, "ESCAPE", "ZodFunction", "基础 URL", ".replace(/~/g, '~0').replace(/\\//g, '~1')", "options", "coerce", "uxp", "hasOwnProperty", "token", "hour", "非法的名称: {{0}}", "任务执行失败: {{error}}", "addLookupKeys", " outer: for (;i--;) { for (j = i; j--;) { if (equal(", " , message: 'should NOT be valid' ", "prompts", "Running for {{duration}} seconds, {{message}}", "当前图层范围", "right", " throw new ValidationError(vErrors); ", "getSuffix", "validateSchema", "_parse", "No crop", "ifClause", "isValidLookup", " var schema", "getter", ") > 1e-", "broadcastHandlers", "exec_info", "lastIndex", "aborted", "isInt", "optionsMap", "cidr", "maxTokens", "invalid_intersection_types", "Invalid boundary: left must be less than right, top must be less than bottom", "Workflow stopped by user", " = false; if (e instanceof ValidationError) ", "setter", "resources/subscribe", "params", "isDuration", "refs", "hasOutgoingNotificationInterceptor", "unshift", "Back", ".data = ", "nodeTransports", "context", "服务不可用 (503)", "Create document failed", " ) ", "messageType", "+Alt 按选区裁剪", "indexOf", " than ", "comfy-user", "fullFilename", " === false) ", "exactLength", "Action {{0}} not found", " properties' ", "extensionManager", " } else { ", "unicodeSupport", "isEmail", "resources/list", "not-basic", "property ", "utils", "暂无图片", "required", "requestInfo", "正向裁剪", "requestHandlers", "detectCycles", "range", "请选择要获取的遮罩", "splice", "test", "Input Image", "setInterval", "Server does not support logging (required for ", "assert", "maxRetries", "notifications/cancelled", "fromCodePoint", "Press Enter to open app: {{appName}}", "errorHandlers", "resources/read", "__DEFAULT__", "user", "should NOT have additional properties", "Maximum total timeout exceeded", "230856yNZybf", "ZodDiscriminatedUnion", "_clientVersion", "body", "fewer", "Content", "definitions", "; if (!", "=== 选项 ===", "当前图层除外", "Current layer bounds", "获取结果失败: {{error}}", "reset=false but needsReset: ", "roots", "comfy-entry", "#3333FF", "currentOnly", "ZodError", "Error", "Values", "comfyAPI is not initialized, maybe comfyUI is too old", "setState", "integer", "ZodObject", "getSuffixes", "pctDecChars", " && ( ", "_cleanupTimeout", " , params: { i: i, j: j } ", " for (var ", "notifications/progress", "trim", "skipCopy", "Save all", "formatParams", "languageDetector", "flags", "Unknown message type: ", " = e.errors; else throw e; } ", "fatal", " delete ", "greater than or equal to ", "pctEncChar", "ZodNull", "safeParse", "+Shift 调整更多选项;Ctrl 单次获取。", "store", "exec", "schemaId", "; } catch (e) { ", "[0-9A-Fa-f]", "lastPongReceived", "forwardBroadcast", "ulid", "formatLanguageCode", "#6633FF", "var pattern", "pga", " if (typeof itemIndices[item] == 'number') { ", "Cannot access data ", "failed", "pop", "pluralSeparator", "capabilities", "isUUID", "negative", "floor", "Clear guide frame", "app", "name", "' : '", "msec", "#FF3399", ".type", "resetRegExp", "mins", "catch", "适配至选区", "apd", "men", "__esModule", "cycles", "' , dataPath: (dataPath || '') + ", "registerStreamRequestorHandler", "parseAsync", "endsWith", " = false; else { ", "Sending...", "assertCanSetRequestHandler", "number", "Get API Key", "schema is invalid: ", " items' ", "PS图片", "addRule", "languageUtils", "prefix", " = true , j; if (i > 1) { ", "patternProperties", "getRegExp", "Gateway timeout (504)", "toLoad", "]; return false; ", "contentMediaType", "common", "outgoingNotificationInterceptors", "isNullable", "comfy", "relativetime", "send", "maximum", "allOf", "_setupTimeout", "parentData", "resources/templates/list", 'Invalid input: must include "', "#9933CC", "prevValid", "(typeof ", "stringify", " = +", "#00CC66", "/properties", "regex", "over", "signal", ";if (", "Sending image...", " , message: 'should contain a valid item' ", "segment", " | ", "exactly equal to ", "json", "backend", "extra", "createStreamState", " break; ", "nanoid", "transform", "Client does not support elicitation (required for ", "hasLanguageSomeTranslations", "1803402LWSLVv", " character(s)", " for language ", "请登陆后使用插件", "从 当前图层 获取图像", "async schema in sync schema", "; }", "Download", "pluralRulesCache", "sdppp_widgetable_title", "sec", '" was not yet loaded', "Auto run after canvas change", "[i]; ", "scheme", "image", "missingRefs", "second", "removeNotificationHandler", "detail", "nonnegative", "silent", "createTemporary", "handle", "alg", "assertEqual", "selectColor", "Failed to get result: {{error}}", "keys", "padEnd", "init: no languageDetector is used and no lng is defined", "enable", "queue_remaining", "Failed to request initial state for ", "(Queue:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "executeOutgoingRequestInterceptor", "escapeComponent", "syncStoresToNewConnection", "Node not found", "isCUID2", "smartobject", "enum", "DEBUG", "gte", "#99CC00", "messages", "mergeObjectSync", "cacheInBuiltFormats", "toASCII", "prepareLoading", " == 'boolean') ", "resourceStore", "removeDefault", "graphInstance", "size", "dev", "Required", "messagePoster", "No backend was added via i18next.use. Will not load resources.", "emoji", "_refinement", "data", "removeItem", "assertNotificationCapability", "image.document.new", "false", "messageQueue", "workflowManager", "[j])) { ", "_requestMessageId", "_limitItems", ` , message: 'should match "' + `, "Overflow: input needs wider integers to process", " after ", "Running", "inline", "waitingReads", "_key", " has duplicate value ", "nodeStores", "ZodAny", "/patternProperties/", "jpr", "buffer", "options.loadSchema should be a function", "pluralResolver", "version", "should have required property \\'", " = errors;", "updateKey", "exactly", "yud", "SDPPP可能未安装或和插件版本不匹配 (404)", "#FF6633", " , params: { multipleOf: ", "Disk", "选择 AI 服务提供商", "无效边界: 左边必须小于右边,上边必须小于下边", "请输入您的 Google API Key", "=startErrs", " = !(false ", ".hasOwnProperty(", "queueLoad", "positive", "returnNull", "addIssues", "文件未找到: {{path}}", "Delete current", "Request interceptor failed for ", "Quality {{percent}}%", "Request handler failed: ", "key '", "ref/prompt", "messageHandlers", "Not a ZodError: ", "cleanupConnection", " === 0 || ", "A request handler for ", "_errors", "RequestTimeout", "目标边界为空", "log", "resolvedOptions", "InvalidRequest", "\\.\\d{", "]; } else { ", " if (", "Failed to create document from file", "getCapabilities", "#CC0033", "missed to resolve ", "#0066CC", "under", "requestsHandled", "'[' + ", "from", 'unknown format "', "从文件打开图像", " , schema: validate.schema", "returnDetails", " == 'boolean' || ", "verbose", "isDatetime", "humanize", " = undefined;", "compile", "Waiting in queue", "_requestHandlerAbortControllers", "未知错误({{code}})", "services", "dirty", "{0,4}", " , message: 'should be equal to one of the allowed values' ", ", validate.root.schema);", "openWorkflow", "#FF00CC", "syncWorkflows", "abh", "escapeFragment", "Failed to open file as document: {{path}}", "isNotification", "((\\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])))", "schema", "exports", "#0066FF", "ComfyUI加载失败,HTTP状态码:{{code}}", "strictNumbers", "_limit", "' && !(typeof ", "postProcessor", "callValidate", "schema $id is different from id", ".schema = ", '" resolves to more than one schema', "posterIdentifier", " === '' || ", "errors", " should be boolean' ", " if (errors === ", "invalid_string", " reference.", " must be number or boolean", "exclIsNumber", "mergeShapes", "No connection available for node ", "env", "abort", "externalListenMessageCallback", "hasLoadedNamespace: i18next was not initialized", "Validation", " || ! Object.prototype.hasOwnProperty.call(", "extractFromKey", "absolute", "describe", "fullPath", "readonly", "filename", "logout", "如何获取APIKey和API Secret", "$$$$", " console.log(", "extract", "queue", "maxSize", "at least", "http://json-schema.org/schema", "setKey", "color", "[^\\%]", " , message: 'should be ", "forEach", "getTime", "Gateway error (502)", "invalid_date", "Unrecognized key(s) in object: ", " == 'object' && !(", " === false || ", "_cache", "isNaN", "lastIndexOf", "Error handling incoming message:", "finite", "stream", "useCustomRule", "after app.queuePrompt errors: ", "kPanelBrightnessMediumGray", "logger", " return errors === 0; ", "Action ", "]; } ", "Paste WebApp ID here", "initializeNodeStores", "'].definition; var ", "formatSeparator", "finished", "2025-06-18", "content", "#CC00CC", ", deps: '", "Node definition not found for ", "_parseSync", "Create document for preview", "http", "clearItems", "); if (", "RelativeTimeFormat", "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ", "resolveRef", "Task execution failed: {{error}}", "document {0} not found", " == 'string' || ", "loadResources", " { keyword: '", "重启ComfyUI失败", "removed", "and", "_errorDataPathProperty", "Server error (500)", "Selection", "2690457bFjuYt", "Error in direct request ", "正在等待图片上传...", "sdppp/directRequest", "waiting for queue prompt", "arz", "#/definitions/stringArray", "separator", "nonpositive", "disable", " : ", "can't resolve reference ", "createAsyncIterator", "defaultNS", "optional", "translation", "too_small", "Invalid date", "unrecognized_keys", "authInfo", " , schema: ", " ); if (isAdditional", "removeEventListener", "Invalid enum value. Expected ", "McpError", "ignoreJSONStructure", "#3300CC", "returnedObjectHandler", "varReplace", "prp", "appendNamespaceToMissingKey", "usedKey", "getDefaultValueFromField", "isCIDR", "deprecate", "one", " != 'boolean' && ", "forward", "ComfyUI failed to load, HTTP status code: {{code}}", "addResource", "getRunningRequestsCount", "创建预览文档", "uri-reference", "errs__", "array", "useDefault", "仅选区范围", "const", "propsKeywords", "languageChanging", "ZodNumber", "objectValues", "relative-json-pointer", "sessionId", "parse", "Intersection results could not be merged", ".validate; var ", "Cannot forward to node ", "item", "namespaces", "edges", "http://json-schema.org/draft-07/schema", "handleIncomingMessage", " , parentSchema: validate.schema", "[^\\%\\[\\]\\:]", " != 'boolean') ", "fast", "])) { ", "port", ".call( ", " !== undefined && typeof ", "add", "[\\-\\.\\_\\~]", "isIP", "translator", "setOutgoingRequestInterceptor", "Invalid function arguments", "asyncIterator", "notifications/prompts/list_changed", "schemaPath", "day", "disconnected", "ComfyUI loading...", "RH Coins:", "concat", ", '", "No handler for streamRequestor: ", "pending", "fromNode", "mountTo", "cleanup", "Incoming message:", "nodeId", "%[EFef]", "missingInterpolationHandler", "No edge defined from ", "sendResourceListChanged", "[\\:\\@\\/\\?]", "extend", "+Alt 反转遮罩", "isTime", "store:update:", "some", "usedParams", "NumberFormat", "res", "prompts/list", "parentElement", "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", "Server does not support sampling (required for ", " ( ( ", "null", "loaded", "dataProperties", "Synchronous parse encountered promise.", "HeartbeatTimeoutError", "[\\:\\@]", " not found on node ", "Number must be a multiple of ", "正在创建任务...", "Number must be ", "inlineRefs", "there was no format function for ", "Failed to open image file: {{error}}", "给发送的图片创建文档", "roots/list", "assertNever", "_capabilities", "source", "cacheUserLanguage", "notifications/message", "#00CC99", "sendStreamRequestorRequest", "arq", "%c ", "[0]; ", "isRoot", "_processInputParams", "[\\:]", ") { errors = ", "examples", ") ) { ", "localRefs", "getConnectionCount", "_formats", "__proto__", "Close", "obj", "reconnected", "shared", "#0033FF", "tools", "没有活动文档", "resource_link", "keyword schema is invalid: ", "#33CC33", "MethodNotFound", "Get layer info", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (", " != 'number' || ", "detect", "sampling", "transport", "Comfy.userId", "isArray", " self._opts.$comment(", "acq", "mesh:comfy", 'schema with key or id "', "Entire Canvas", "Set as Current Layer", "ZodBranded", "Async refinement encountered during synchronous parse operation. Use .parseAsync instead.", "preload", "Uploading...", "-arab", "Elicitation response content does not match requested schema: ", "init", "getPath", "protocol", "invalid_literal", " else if (", " , params: { pattern: ", "反向裁剪(Inpaint)", " = refVal[", "#CC33FF", "minItems", " in ", "backendConnector", "colors", "Uncaught error in notification handler: ", "connectedNodes", "pathname", "i18next:", " != 'string') || ", "./api/userdata/workflows%2F.index.json", "Comfy Manager未安装,无法重启", "coerced", "ZodUndefined", "; } var err = ", " !== undefined) ; ", "Host's domain name can not be converted to ASCII via punycode: ", "sam", "nss", '$ref: validation keywords used in schema at path "', "Channel connecting...", "ZodNativeEnum", "onprogress", "handleIncomingRequest", "start", " { - const s = e; - if (typeof r !== s(923)) return; - const o = t[s(1524)][r]; - if (!o) throw new Error(s(2159) + r + s(1514) + this.nodeId); - return async (c, d) => { - const u = s, f = this.getConnectionInfo(); - if (!f) throw new Error("No connection available for node " + this[u(582)]); - const { connection: l, path: g } = f, h = this[u(2586)].getCurrentNodeId(); - if (!o.stream) { - const y = B0(); - let w; - if (g[u(1200)] === 2) w = await l[u(1352)](u(1500), { action: r, data: c, sourceNodeId: h }, y); + var x = s; + const t = this[x(1065)].getDefinition()[x(2223)](this[x(1363)]); + if (!t) throw new Error(x(1251) + this[x(1363)]); + return new Proxy({}, { get: (e, r) => { + var n = x; + if (typeof r != "string") return; + const o = t.actions[r], c = r[n(467)](n(474)); + if (!o && !c) throw new Error(n(1240) + r + " not found for node " + this[n(1363)]); + return async (u, d) => { + var f = n; + const l = this[f(1713)](); + if (!l) throw new Error(f(1196) + this[f(1363)]); + const { transport: v, path: h } = l, m = this.graphInstance[f(753)](); + if (!(o != null && o.stream)) { + const w = D0(); + let E; + if (h[f(2021)] === 2) E = await v[f(1658)]({ method: f(1274), params: { action: r, data: u, sourceNodeId: m } }, w); else try { - w = await l[u(1352)](u(1500), { action: u(2100), data: { targetNodeId: this[u(582)], targetAction: r, targetData: c, forwardPath: g[u(2602)](1) }, sourceNodeId: h }, y); - } catch (S) { - throw console[u(2389)](u(2310), S), console[u(2389)]({ targetNodeId: this[u(582)], targetAction: r, targetData: c, forwardPath: g[u(2602)](1) }), S; + E = await v.request({ method: "sdppp/directRequest", params: { action: f(628), data: { targetNodeId: this[f(1363)], targetAction: r, targetData: u, forwardPath: h[f(1813)](1) }, sourceNodeId: m } }, w); + } catch (O) { + throw console[f(503)](f(1272) + r + ":", O), console.error({ targetNodeId: this.nodeId, targetAction: r, targetData: u, forwardPath: h[f(1813)](1) }), O; } - return w; + return E; } - let m; - return g.length === 2 ? m = l[u(2676)]({ action: r, data: c, sourceNodeId: h }, o[u(1570)], d) : m = l[u(2676)]({ action: u(2100), data: { targetNodeId: this[u(582)], targetAction: r, targetData: c, forwardPath: g[u(2602)](1) }, sourceNodeId: h }, o[u(1570)], d), m; + let y; + return h[f(2021)] === 2 ? y = v.streamRequest({ action: r, data: u, sourceNodeId: m }, o[f(2598)], d) : y = v.streamRequest({ action: f(628), data: { targetNodeId: this[f(1363)], targetAction: r, targetData: u, forwardPath: h.slice(1) }, sourceNodeId: m }, o[f(2598)], d), y; }; } }); } - getConnectionInfo() { - const e = n; - return this[e(2586)][e(685)](this.nodeId); + [s(1713)]() { + var x = s; + return this[x(1065)][x(1715)](this[x(1363)]); } } -const zx = /* @__PURE__ */ new Map(), Fx = /* @__PURE__ */ new Map(); -var Ya; -class Ln { - constructor(e) { - d0(this, Ya); - const t = n; - this[t(2036)] = e; +var es, xs, ts; +class zs { + constructor(x) { + v0(this, ts); + v0(this, xs); + v0(this, es); + var t = s; + this[t(1065)] = x, this[t(608)] = x.actionManager, this[t(2084)] = x[t(2084)]; } - initializeConsumer({ store: e, storeName: t, onStateUpdate: a, requestInitialState: x }) { - const r = n; - this.endpoint[r(2593)](O({ method: r0("sdppp/updateStore/" + t), params: B0() }), (o) => { - const c = r; + [(ts = s(1065), xs = s(608), es = s(2084), s(1832))]({ store: x, storeName: t, onStateUpdate: a, requestInitialState: e }) { + var r = s; + this[r(2084)].registerHandler(r(1372) + t, (n) => { + var o = r; try { - a(o.params); - } catch (d) { - console[c(2389)]("Error updating store " + t + ":", d); + n[o(757)] !== this[o(1065)][o(753)]() && a(n[o(389)]); + } catch (c) { + console[o(503)](o(340) + t + ":", c); } }); - const s = async (o = 0, c = 5, d = 100) => { - const u = r; - try { - await x(); - } catch { - if (o < c) { - const l = d * Math[u(2672)](2, o) + Math[u(861)]() * 100; - setTimeout(() => { - s(o + 1, c, d); - }, l); - } else console[u(1808)](u(595) + t + u(2415) + c + u(2705)); - } - }; - setTimeout(() => s(), 50); } - initializeProducer({ store: e, storeName: t, sendStateUpdate: a, onInitialStateRequested: x }) { - const r = n, s = t + "_" + Date[r(1381)]() + "_" + Math[r(861)](), o = async (d, u = !1) => { - const f = r; - if (this[f(1564)]()) try { - await a(d), zx[f(2333)](s) && zx[f(2653)](s); - } catch (l) { - const g = l instanceof Error ? l[f(2353)] : String(l); - !g[f(1958)](f(1974)) && !g[f(1958)]("transport") && console[f(2389)](f(1624) + t + ":", l), (g.includes(f(1974)) || g.includes(f(2728))) && zx[f(510)](s, d); + initializeProducer({ store: x, storeName: t, sendStateUpdate: a, onInitialStateRequested: e }) { + var r = s; + const n = this[r(1065)][r(753)](), o = async (d, f = !1) => { + var l = r; + if (this[l(2106)]()) try { + await this[l(2084)].broadcast("store:update:" + t, { storeName: t, sourceNodeId: n, stateUpdate: d, isInitialState: f }); + } catch (h) { + console[l(503)](l(596) + t + ":", h); } - else { - zx[f(510)](s, d), !Fx[f(2333)](s) && Fx[f(510)](s, /* @__PURE__ */ new Set()); - const l = Fx[f(1261)](s), g = () => { - const m = f, y = zx[m(1261)](s); - y && o(y, !0); - }; - l[f(2295)](g); - const h = () => { - const m = f; - this[m(1564)]() ? (l[m(1238)]((y) => y()), l[m(611)](), Fx[m(2653)](s)) : setTimeout(h, 100); - }; - setTimeout(h, 50); - } - }, c = e[r(1280)]((d) => { + }, c = x[r(2240)]((d) => { o(d, !1); }); - return x(() => { - o(e.getState(), !0); - }), o(e[r(1356)](), !0), () => { - const d = r; - c(), zx[d(2653)](s), Fx[d(2333)](s) && (Fx[d(1261)](s)[d(611)](), Fx.delete(s)); - }; - } - [(Ya = n(2036), n(1564))]() { - const e = n; - try { - const t = this[e(2036)].transport || this.endpoint[e(1452)] || this[e(2036)][e(2365)]; - return t === void 0 && typeof this[e(2036)][e(1441)] === e(1342) ? !0 : !!t; - } catch { - return typeof this[e(2036)][e(1441)] == "function"; - } - } -} -var Xa, _a; -class $n { - constructor(e) { - d0(this, _a); - d0(this, "actionManager"); - d0(this, Xa); - const t = n; - this[t(2586)] = e, this.actionManager = e[t(1936)], this[t(1107)] = e[t(1107)]; - } - [(_a = n(2586), Xa = n(1107), n(779))]({ store: e, storeName: t, onStateUpdate: a, requestInitialState: x }) { - const r = n; - this[r(1107)][r(695)](r(1082) + t, (o) => { - const c = r; - try { - o.sourceNodeId !== this[c(2586)][c(2611)]() && a(o[c(1194)]); - } catch { - } + e(() => { + var d = r; + o(x[d(642)](), !0); }); - const s = async (o = 0, c = 5, d = 100) => { - const u = r; - try { - await x(); - } catch { - if (o < c) { - const l = d * Math[u(2672)](2, o) + Math[u(861)]() * 100; - setTimeout(() => { - s(o + 1, c, d); - }, l); - } - } - }; - setTimeout(() => s(), 50); - } - initializeProducer({ store: e, storeName: t, sendStateUpdate: a, onInitialStateRequested: x }) { - const r = n, s = this[r(2586)][r(2611)](), o = async (u, f = !1) => { - const l = r; - if (this[l(1564)]()) try { - await this[l(1107)][l(2607)](l(1082) + t, { storeName: t, sourceNodeId: s, stateUpdate: u, isInitialState: f }), await a(u); - } catch { - } - }, c = e[r(1280)]((u) => { - o(u, !1); - }); - x(() => { - o(e[r(1356)](), !0); - }); - const d = r(674) + t; - return this.actionManager.implementInternalAction(d, async () => { - const u = r, f = e[u(1356)](); + const u = "__internal_requestInitialState_" + t; + return this[r(608)][r(354)](u, async () => { + var d = r; + const f = x[d(642)](); return await o(f, !0), { success: !0 }; - }), o(e[r(1356)](), !0), () => { + }), this[r(2084)][r(1541)](r(1635), async (d) => { + var f = r; + try { + (d.toNode === n || d[f(1359)] === n) && await o(x[f(642)](), !0); + } catch { + } + }), () => { var f; - const u = r; - c(), (f = this[u(1936)][u(1406)]) == null || f[u(2653)](d); + var d = r; + c(), (f = this[d(608)][d(2162)]) == null || f[d(2434)](u); }; } - [n(1564)]() { + [s(2106)]() { var t; - const e = n; + var x = s; try { - const a = this[e(2586)].connectionManager, x = a && a[e(991)]() > 0, r = ((t = this.broadcastManager.mountedEndpoints) == null ? void 0 : t.size) > 0; - return x || r; + const a = this.graphInstance[x(644)], e = a && a[x(1414)]() > 0, r = ((t = this.broadcastManager[x(1549)]) == null ? void 0 : t.size) > 0; + return e || r; + } catch { + return !!this[x(2084)]; + } + } + async [s(2562)](x, t) { + var a = s; + const e = this[a(1065)][a(753)](); + if (this[a(2106)]()) try { + await this[a(2084)][a(2391)](a(1372) + t, { storeName: t, sourceNodeId: e, stateUpdate: x[a(642)](), isInitialState: !0 }); } catch { - return !!this[e(1107)]; } } } -function ii({ endpoint: i, store: e, name: t }) { - const a = n, x = new Ln(i), r = (o) => { - const c = B, d = e[c(1356)](), u = { ...d, ...o }; - e[c(1826)](u); - }, s = async () => { - const o = B; - await i[o(1441)]({ method: o(1046) + t, params: {} }); - }; - x[a(779)]({ store: e, storeName: t, onStateUpdate: r, requestInitialState: s }); -} -function zn({ endpoint: i, store: e, name: t }) { - const a = n, x = new Ln(i), r = async (o) => { - const c = B; - await i[c(1441)]({ method: c(1790) + t, params: o }); - }, s = (o) => { - const c = B; - i[c(2593)](O({ method: r0(c(1046) + t), params: B0() }), () => { - o(); - }); - }; - return x[a(2615)]({ store: e, storeName: t, sendStateUpdate: r, onInitialStateRequested: s }); -} -function Fr({ graphInstance: i, store: e, name: t }) { - const a = n, x = new $n(i), r = (o) => { - const c = B, d = e[c(1356)](), u = { ...d, ...o }; - e[c(1826)](u); - }, s = async () => { - const o = B, c = o(674) + t; +function oi({ graphInstance: i, store: x, name: t }) { + var a = s; + const e = new zs(i), r = (o) => { + var c = K; + const u = x[c(642)](), d = { ...u, ...o }; + x.setState(d); + }, n = async () => { + var o = K; + const c = o(418) + t; try { - const d = i[o(1693)]().getNeighbors(i[o(2611)]()); - for (const u of d) - try { - const f = i[o(2369)](u); - if (f && f[o(1524)] && f[o(1524)][c]) { - await f[o(1524)][c](); - break; - } - } catch { - continue; - } - } catch (d) { - console.warn("Failed to request initial state for " + t + ":", d); + const u = i[o(2223)](t); + u && u[o(2154)] && u[o(2154)][c] && await u[o(2154)][c](); + } catch (u) { + console.warn("Failed to request initial state for " + t + ":", u); } }; - x[a(779)]({ store: e, storeName: t, onStateUpdate: r, requestInitialState: s }); + e[a(1832)]({ store: x, storeName: t, onStateUpdate: r, requestInitialState: n }); } -function oi({ graphInstance: i, store: e, name: t }) { - const a = n, x = new $n(i), r = async (o) => { - }, s = (o) => { +function ci({ graphInstance: i, store: x, name: t }) { + var a = s; + const e = new zs(i), r = async (o) => { + }, n = (o) => { }; - return x[a(2615)]({ store: e, storeName: t, sendStateUpdate: r, onInitialStateRequested: s }); + return e[a(1765)]({ store: x, storeName: t, sendStateUpdate: r, onInitialStateRequested: n }); } -var xn; -class ci { - constructor() { - d0(this, xn, /* @__PURE__ */ new Map()); - } - bindConsumer({ endpoint: e, store: t, nodeId: a }) { - const x = n; - this[x(2053)](a), ii({ endpoint: e, store: t, name: a }), this[x(2300)][x(510)](a, { nodeId: a, isProducer: !1 }); - } - [(xn = n(2300), n(2042))]({ endpoint: e, store: t, nodeId: a }) { - const x = n; - this[x(2053)](a); - const r = zn({ endpoint: e, store: t, name: a }); - this[x(2300)].set(a, { nodeId: a, isProducer: !0, cleanup: r }); - } - [n(2053)](e) { - const t = n, a = this[t(2300)][t(1261)](e); - a && (a.cleanup && a[t(821)](), this.bindings[t(2653)](e)); - } - [n(2486)](e) { - return this[n(2300)].get(e); - } - getAllBindings() { - const e = n; - return Array[e(781)](this[e(2300)][e(1109)]()); - } - [n(1185)](e) { - const t = n, a = this[t(2300)][t(1261)](e); - return a ? !a[t(710)] : !1; - } - [n(1529)](e) { - const t = n; - this.bindings[t(510)](e, { nodeId: e, isProducer: !1 }); - } - [n(821)]() { - const e = n; - for (const t of this[e(2300)].values()) - t[e(821)] && t.cleanup(); - this.bindings[e(611)](); - } -} -var en, tn, rn; -class di { - constructor(e, t = {}) { - d0(this, "graphInstance"); - d0(this, rn); - d0(this, tn, /* @__PURE__ */ new Map()); - d0(this, en); - d0(this, "currentNodeId"); - const a = n; - this[a(2586)] = e, this[a(1596)] = e[a(1596)], this[a(1312)] = e[a(1312)], this[a(2687)] = { pingInterval: t[a(1101)] || 3e4, maxRetries: t.maxRetries || 3, retryDelay: t[a(1414)] || 5e3, dfsInterval: t[a(745)] || 3e4 }; - } - startMonitoring(e) { - const t = n; - if (this[t(1573)][t(2333)](e)) return; - const a = setInterval(() => { - this[t(1963)](e); - }, this[t(2687)][t(1101)]); - this[t(1573)][t(510)](e, a); - } - [(rn = n(2687), tn = n(1573), en = n(1596), n(1234))](e) { - const t = n, a = this[t(1573)][t(1261)](e); - a && (clearInterval(a), this[t(1573)][t(2653)](e)); - } - async checkConnection(e) { - const t = n; - try { - await this[t(1462)](e); - } catch (a) { - console[t(1808)]("Connection to " + e + " appears unhealthy:", a); - } - } - async [n(1462)](e) { - const t = n, a = this[t(2586)][t(1121)](e); - if (!a) throw new Error(t(964)); - if (a[t(1782)] && typeof a[t(1782)] === t(1342) && a[t(1782)]()) return Promise[t(1987)](); - throw new Error("Connection appears to be disconnected"); - } - [n(519)]() { - const e = n; - for (const t of this[e(1573)][e(1109)]()) - clearInterval(t); - this[e(1573)][e(611)](); - } -} -var an; +var rs, as, ss; class ui { constructor() { - d0(this, an, /* @__PURE__ */ new Map()); - d0(this, "connections", /* @__PURE__ */ new Map()); - d0(this, "mountedEndpoints", /* @__PURE__ */ new Set()); + v0(this, ss, /* @__PURE__ */ new Map()); + v0(this, as, /* @__PURE__ */ new Map()); + v0(this, rs, /* @__PURE__ */ new Set()); } - [(an = n(2612), n(2628))](e) { + createGlobalDispatcherForType(x) { return (t) => { - const a = B, x = this.broadcastHandlers[a(1261)](e); - if (x) for (const r of x) + var a = K; + const e = this[a(803)][a(2229)](x); + if (e) for (const r of e) try { r(t); - } catch (s) { - console[a(2389)](a(1909) + e + ":", s); + } catch (n) { + console[a(503)](a(1935) + x + ":", n); } - (e[a(1817)](a(1082)) || e === a(630)) && !t[a(1753)] && this.forwardBroadcast(e, t); + !t[a(2596)] && this[a(923)](x, t); }; } - async [n(2054)](e, t) { - const a = n; + async forwardBroadcast(x, t) { + var a = s; try { - const x = { ...t, forwarded: !0 }, r = Array[a(781)](this[a(2460)][a(1109)]()), s = [...r]; - let o = 0; - for (const d of this[a(493)]) - r[a(1958)](d) || (s.push(d), o++); - this[a(493)][a(1754)]; - const c = s[a(2404)]((d, u) => { - const f = a, l = r[f(1958)](d) ? f(885) : "mounted"; - return d[f(2607)](e, x)[f(641)]((g) => { - throw g; + const e = { ...t, forwarded: !0 }, r = [...Array.from(this[a(2002)][a(2166)]()), ...Array[a(1147)](this[a(748)])], n = r[a(632)]((o) => { + var c = a; + return o[c(1676)]({ method: c(529), params: { messageType: x, message: e } })[c(947)]((u) => { + var d = c; + console.error(d(660) + x + ":", u); }); }); - await Promise.all(c); - } catch (x) { - console.error("[BroadcastManager] Error forwarding broadcast:", x); + await Promise[a(1897)](n); + } catch (e) { + console[a(503)]("[BroadcastManager] Error forwarding broadcast:", e); } } - [n(695)](e, t) { - const a = n; - !this[a(2612)][a(2333)](e) && this[a(2612)].set(e, /* @__PURE__ */ new Set()), this.broadcastHandlers[a(1261)](e)[a(2295)](t); - const x = this[a(2628)](e); - for (const r of this.connections[a(1109)]()) - r[a(982)](e, x); - for (const r of this[a(493)]) - r[a(982)](e, x); + [(ss = s(803), as = s(2002), rs = s(748), s(1541))](x, t) { + var a = s; + !this.broadcastHandlers[a(2561)](x) && this[a(803)][a(1951)](x, /* @__PURE__ */ new Set()), this.broadcastHandlers[a(2229)](x).add(t); } - [n(2709)](e) { - const t = n; - for (const a of this[t(2612)].keys()) { - const x = this[t(2628)](a); - e[t(982)](a, x); - } + [s(1638)](x) { + var t = s; + this[t(2536)](x); } - [n(1345)](e, t) { - const a = n; - this.connections[a(510)](e, t), this[a(2709)](t); + [s(2536)](x) { + var t = s; + const a = I({ method: r0(t(529)), params: I({ messageType: S(), message: D0() }) }); + x[t(336)](a, async (e) => { + var r = t; + const n = e[r(817)][r(829)]; + this[r(2300)](n)(e[r(817)][r(2089)]); + }); } - removeConnection(e) { - this[n(2460)].delete(e); + [s(366)](x, t) { + var a = s; + this[a(2002)][a(1951)](x, t), this.setupTransportHandlers(t); } - async broadcast(e, t) { - const a = n, x = Array.from(this[a(2460)].values()), r = [...x]; - for (const o of this[a(493)]) - !x.includes(o) && r[a(818)](o); - const s = r[a(2404)]((o) => o.broadcast(e, t)); - await Promise[a(1135)](s); + [s(2377)](x) { + var t = s; + this[t(2002)].delete(x); } - mountTo(e) { - const t = n; - this[t(493)][t(2295)](e); - for (const a of this.broadcastHandlers[t(2278)]()) { - const x = this[t(2628)](a); - e[t(982)](a, x); - } + async [s(2391)](x, t) { + var a = s; + const e = [...Array.from(this[a(2002)].values()), ...Array[a(1147)](this[a(748)])], r = e[a(632)]((n) => { + var o = a; + return n.notification({ method: o(529), params: { messageType: x, message: t } }); + }); + await Promise[a(1897)](r); } - [n(2023)]() { - const e = n; - return Array[e(781)](this[e(2612)][e(2278)]()); + mountTo(x) { + var t = s; + this[t(748)][t(1342)](x), this.setupTransportHandlers(x); } - clear() { - const e = n; - this[e(2612)][e(611)](), this.connections[e(611)](), this.mountedEndpoints.clear(); + [s(2008)]() { + var x = s; + return Array[x(1147)](this.broadcastHandlers.keys()); + } + [s(2173)]() { + var x = s; + this[x(803)][x(2173)](), this.transports[x(2173)](), this.mountedTransports[x(2173)](); } } -var nn, sn; -class fi { - constructor(e, t, a) { - d0(this, sn, /* @__PURE__ */ new Map()); - d0(this, nn); - d0(this, "currentNodeId"); - d0(this, "getConnection"); - const x = n; - this[x(1596)] = e, this.currentNodeId = t, this[x(527)] = a; +var ns, is, os, cs; +class di { + constructor(x, t, a) { + v0(this, cs, /* @__PURE__ */ new Map()); + v0(this, os); + v0(this, is); + v0(this, ns); + var e = s; + this[e(2103)] = x, this[e(1874)] = t, this[e(2461)] = a; } - [(sn = n(1406), nn = n(1596), n(933))](e, t) { - const a = n, x = this[a(1596)][a(2369)](this[a(1312)]); - if (!x) throw new Error(a(1346) + this[a(1312)]); - const r = x[a(1524)][e]; - if (!r) throw new Error("Action " + String(e) + a(1514) + this[a(1312)]); - this[a(1258)](e, t, r), this[a(1406)][a(510)](e, t); + [(cs = s(2162), os = s(2103), is = s(1874), ns = s(2461), s(2376))](x, t) { + var a = s; + const e = this[a(2103)][a(2223)](this.currentNodeId); + if (!e) throw new Error(a(1251) + this[a(1874)]); + const r = e[a(2154)][x]; + if (!r) throw new Error(a(1240) + String(x) + a(2291) + this[a(1874)]); + this.validateHandlerType(x, t, r), this[a(2162)].set(x, t); } - validateHandlerType(e, t, a) { - a[n(1007)]; + validateHandlerType(x, t, a) { + var e = s; + a[e(1234)]; } - implementInternalAction(e, t) { - const a = n; - this[a(1406)][a(510)](e, t); + [s(354)](x, t) { + var a = s; + this[a(2162)][a(1951)](x, t); } - [n(666)](e) { - const t = n; - for (const [a, x] of this[t(1406)]) { - const r = this[t(1596)][t(2369)](this.currentNodeId), s = r == null ? void 0 : r.actions[a]; - !((s == null ? void 0 : s.stream) === !0) && this[t(930)](e, a, x); - const c = { shape: { action: { value: a } } }, d = async function* (u, f, l) { - const g = t, h = u[g(726)] || u, m = x(h, f, l); - if (m && typeof m === g(2437) && Symbol[g(1938)] in m && typeof m[Symbol[g(1938)]] === g(1342)) for await (const y of m) - yield y === void 0 ? {} : y; - else { - const y = await m; - if (y && typeof y[Symbol.asyncIterator] == "function") for await (const w of y) - yield w === void 0 ? {} : w; - else yield y === void 0 ? {} : y; - } - }; - e.registerActionHandler(c, d); + [s(1360)](x) { + var t = s; + for (const [a, e] of this.actionHandlers) { + const r = this[t(2103)][t(2223)](this[t(1874)]), n = r == null ? void 0 : r[t(2154)][a]; + if (a.startsWith(t(474)) ? !1 : (n == null ? void 0 : n[t(1234)]) === !0) { + const u = I({ action: r0(a) }); + x[t(954)](u, async function* (d, f, l) { + var v = t; + const h = d[v(1073)] || d, m = e(h, f, l); + if (m && typeof m == "object" && Symbol[v(1348)] in m) for await (const y of m) + yield y === void 0 ? {} : y; + else { + const y = await m; + yield y === void 0 ? {} : y; + } + }); + } } - this[t(740)](e), this.registerDirectRequestHandlerGeneric(e); + this[t(2408)](x), this[t(2646)](x); } - [n(740)](e) { - const t = n, a = { shape: { action: { value: t(2100) } } }, x = this, r = async function* (s, o, c) { - const d = t, u = s[d(726)] || s, { targetNodeId: f, targetAction: l, targetData: g, forwardPath: h } = u; - if (!h || h.length === 0) throw new Error(d(2094)); - const m = h[0], y = h[d(2602)](1); - if (y[d(1200)] === 0 && m === x.currentNodeId) { - const w = x[d(1406)][d(1261)](l); - if (!w) throw new Error(d(2159) + l + " not found on node " + x.currentNodeId); - const S = w(g, o, c); - if (S && typeof S === d(2437) && Symbol[d(1938)] in S && typeof S[Symbol[d(1938)]] === d(1342)) for await (const R of S) - yield R === void 0 ? {} : R; + registerProxyForwardHandler(x) { + const t = I({ action: r0("__proxy_forward") }), a = this; + x.registerStreamRequestorHandler(t, async function* (e, r, n) { + var o = K; + const c = e[o(1073)] || e, { targetNodeId: u, targetAction: d, targetData: f, forwardPath: l } = c; + if (!l || l.length === 0) throw new Error("Invalid forward path for proxy action"); + const v = l[0], h = l[o(1813)](1); + if (h[o(2021)] === 0 && v === a[o(1874)]) { + const m = a.actionHandlers[o(2229)](d); + if (!m) throw new Error(o(1240) + d + o(1388) + a[o(1874)]); + const y = m(f, r, n); + if (y && typeof y == "object" && Symbol[o(1348)] in y) for await (const w of y) + yield w === void 0 ? {} : w; else { - const R = await S; - yield R === void 0 ? {} : R; + const w = await y; + yield w === void 0 ? {} : w; } return; } - if (m === x.currentNodeId && y[d(1200)] > 0) { - const w = y[0], S = x[d(527)](w); - if (S) { - const R = await S[d(2676)]({ action: d(2100), data: { targetNodeId: f, targetAction: l, targetData: g, forwardPath: y } }, {}, c); - for await (const A of R) - yield A === void 0 ? {} : A; + if (v === a[o(1874)] && h[o(2021)] > 0) { + const m = h[0], y = a[o(2461)](m); + if (y) { + const w = await y[o(1962)]({ action: "__proxy_forward", data: { targetNodeId: u, targetAction: d, targetData: f, forwardPath: h } }, I({}), n); + for await (const E of w) + yield E === void 0 ? {} : E; return; } - throw new Error(d(2503) + w + d(1015)); + throw new Error("Cannot forward to node " + m + o(2260)); } - throw new Error(d(1421) + x[d(1312)] + d(673) + h); - }; - e[t(1926)](a, r); + throw new Error(o(2171) + a[o(1874)] + " not in path " + l); + }); } getRegisteredActions() { - const e = n; - return Array.from(this[e(1406)][e(2278)]()); + var x = s; + return Array.from(this[x(2162)][x(1040)]()); } - [n(867)](e) { - const t = n; - return this[t(1406)][t(2333)](e); + [s(2563)](x) { + var t = s; + return this[t(2162)][t(2561)](x); } - [n(2617)](e) { - const t = n; - return this[t(1406)][t(1261)](e); + [s(2498)](x) { + var t = s; + return this.actionHandlers[t(2229)](x); } - [n(611)]() { - const e = n; - this[e(1406)][e(611)](); + clear() { + var x = s; + this[x(2162)][x(2173)](); } - [n(930)](e, t, a) { + registerDirectRequestHandler(x, t, a) { } - registerDirectRequestHandlerGeneric(e) { - const t = n, a = O({ method: r0(t(1500)), params: O({ action: I(), data: B0()[t(1360)]() }) }), x = this; - e[t(1688)](a, async (r, s) => { - const o = t, { action: c, data: d } = r[o(2646)]; - if (c === o(2100)) return await x[o(989)](d, s); - const u = x[o(1406)][o(1261)](c); - if (!u) throw new Error(o(2159) + c + o(486) + x[o(1312)]); - const f = u(d, s), l = await f; + [s(2646)](x) { + var t = s; + const a = I({ method: r0(t(1274)), params: I({ action: S(), data: D0()[t(1285)]() }) }), e = this; + x[t(1983)](a, async (r, n) => { + var o = t; + const { action: c, data: u } = r.params; + if (c === "__proxy_forward") return await e.handleDirectProxyForward(u, n); + const d = e[o(2162)].get(c); + if (!d) throw new Error("Action " + c + " not found on node " + e[o(1874)]); + const f = d(u, n), l = await f; return l === void 0 ? {} : l; }); } - async [n(989)](e, t) { - const a = n, { targetNodeId: x, targetAction: r, targetData: s, forwardPath: o } = e; - if (!o || o.length === 0) throw new Error(a(2094)); - const c = o[0], d = o[a(2602)](1); - if (d[a(1200)] === 0 && c === this.currentNodeId) { - const u = this.actionHandlers.get(r); - if (!u) throw new Error(a(2159) + r + a(486) + this[a(1312)]); - const f = u(s, t), l = await f; + async handleDirectProxyForward(x, t) { + var a = s; + const { targetNodeId: e, targetAction: r, targetData: n, forwardPath: o } = x; + if (!o || o[a(2021)] === 0) throw new Error("Invalid forward path for proxy action"); + const c = o[0], u = o[a(1813)](1); + if (u.length === 0 && c === this[a(1874)]) { + const d = this[a(2162)].get(r); + if (!d) throw new Error(a(1240) + r + a(1388) + this.currentNodeId); + const f = d(n, t), l = await f; return l === void 0 ? {} : l; } - if (c === this.currentNodeId && d[a(1200)] > 0) { - const u = d[0], f = this[a(527)](u); - if (f) return await f.request(a(1500), { action: a(2100), data: { targetNodeId: x, targetAction: r, targetData: s, forwardPath: d } }, B0()); - throw new Error(a(2503) + u + a(1015)); + if (c === this.currentNodeId && u[a(2021)] > 0) { + const d = u[0], f = this.getTransport(d); + if (f) return await f[a(1658)]({ method: "sdppp/directRequest", params: { action: a(628), data: { targetNodeId: e, targetAction: r, targetData: n, forwardPath: u } } }, D0()); + throw new Error(a(1328) + d + " - no connection available"); } - throw new Error(a(1421) + this[a(1312)] + a(673) + o); + throw new Error(a(2171) + this[a(1874)] + a(2098) + o); } } -var on, cn, dn, un, fn; +var us, ds, fs; +class fi { + constructor(x, t) { + v0(this, fs); + v0(this, ds); + v0(this, us, /* @__PURE__ */ new Set()); + var a = s; + this.definition = x, this[a(1874)] = t; + } + [(fs = s(2103), ds = s(1874), us = s(1462), s(2494))](x) { + var t = s; + this[t(1462)][t(1342)](x); + } + [s(2571)](x) { + var t = s; + this[t(1462)][t(2434)](x); + } + isConnected(x) { + var t = s; + return this[t(1462)][t(2561)](x); + } + [s(2505)](x, t) { + var a = s; + if (x === t) return [x]; + const e = /* @__PURE__ */ new Set(), r = [{ nodeId: x, path: [x] }]; + for (; r[a(2021)] > 0; ) { + const { nodeId: n, path: o } = r[a(761)](); + if (e[a(2561)](n)) continue; + e[a(1342)](n); + const c = this[a(2103)][a(2205)](n); + for (const u of c) { + if (u === t) return [...o, u]; + !e.has(u) && r[a(2380)]({ nodeId: u, path: [...o, u] }); + } + } + } + [s(1855)]() { + var x = s; + return Array[x(1147)](this[x(1462)]); + } + [s(1414)]() { + var x = s; + return this[x(1462)].size; + } + [s(1568)]() { + var x = s; + const t = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), e = [this[x(1874)]]; + for (a[x(1342)](this[x(1874)]); e[x(2021)] > 0; ) { + const r = e[x(761)](), n = this[x(2103)].getNeighbors(r); + for (const o of n) + !a.has(o) && (a[x(1342)](o), (this[x(1462)][x(2561)](o) || this[x(483)](o, a)) && (t[x(1342)](o), e.push(o))); + } + return Array[x(1147)](t); + } + [s(483)](x, t) { + var a = s; + const e = this.findPath(this[a(1874)], x); + if (!e || e.length <= 1) return !1; + for (let r = 1; r < e[a(2021)] - 1; r++) + if (!this[a(1462)][a(2561)](e[r])) return !1; + return !0; + } + [s(2173)]() { + var x = s; + this[x(1462)].clear(); + } +} +var ls, hs, ps, ms, vs, gs; class li { - constructor(e, t, a, x, r) { - d0(this, fn); - d0(this, "currentNodeId"); - d0(this, un, /* @__PURE__ */ new Map()); - d0(this, dn); - d0(this, cn); - d0(this, on); - const s = n; - this[s(1596)] = e, this[s(1312)] = t, this.broadcastManager = a, this[s(1936)] = x, this[s(1738)] = r; + constructor(x, t) { + v0(this, gs); + v0(this, vs); + v0(this, ms, /* @__PURE__ */ new Map()); + v0(this, "nodeProxies", /* @__PURE__ */ new Map()); + v0(this, ps); + v0(this, hs); + v0(this, ls); + v0(this, "nodeTransports", /* @__PURE__ */ new Map()); + var a = s; + this[a(2103)] = x, this[a(1874)] = t, this[a(1243)](), this[a(2084)] = new ui(), this.actionManager = new di(x, t, (e) => this.getTransportInternal(e)), this[a(644)] = new fi(x, t), this[a(2557)](); } - async [(fn = n(1596), un = n(2460), dn = n(1107), cn = n(1936), on = n(1738), n(1610))](e, t) { - const a = n; - if (!this.definition[a(2145)](this[a(1312)], e)) throw new Error(a(1772) + this.currentNodeId + a(2098) + e); - if (this.connections[a(2333)](e)) throw new Error(a(2438) + e); + [(gs = s(2103), vs = s(1874), ms = s(1091), ps = s(2084), hs = s(608), ls = s(644), s(1243))]() { + var x = s; + for (const t of this[x(2103)][x(551)]()) { + const a = this.definition[x(2223)](t); + if (a && a[x(917)]) { + const e = this[x(1653)](a[x(917)]), r = Dn(() => e); + this.nodeStores.set(t, r); + } + } + } + getDefaultValuesFromSchema(x) { + var t = s; + if (!x) return {}; try { - const x = await t(); - this[a(2460)][a(510)](e, x), this[a(1738)](e, x), this[a(1107)][a(1345)](e, x), this.setupConnectionCloseHandler(e, x); - } catch (x) { - throw x; - } - } - getConnection(e) { - const t = n; - return this[t(2460)][t(1261)](e); - } - [n(871)](e) { - const t = n, a = this[t(2460)][t(1261)](e); - if (a) return { connection: a, path: [this[t(1312)], e] }; - const x = this[t(605)](this.currentNodeId, e); - if (x && x[t(1200)] > 1) { - const r = x[1], s = this[t(2460)][t(1261)](r); - if (s) return { connection: s, path: x }; - } - } - findPath(e, t) { - const a = n; - if (e === t) return [e]; - const x = /* @__PURE__ */ new Set(), r = [{ nodeId: e, path: [e] }]; - for (; r[a(1200)] > 0; ) { - const { nodeId: s, path: o } = r[a(2621)](); - if (x.has(s)) continue; - x[a(2295)](s); - const c = this.definition.getNeighbors(s); - for (const d of c) { - if (d === t) return [...o, d]; - !x[a(2333)](d) && r.push({ nodeId: d, path: [...o, d] }); - } - } - } - [n(1634)]() { - const e = n; - return Array[e(781)](this[e(2460)][e(2278)]()); - } - [n(2449)](e) { - const t = n; - return this[t(2460)][t(2333)](e); - } - getConnectionCount() { - return this[n(2460)].size; - } - disconnect(e, t = !1) { - const a = n, x = this[a(2460)][a(1261)](e); - x && (t && a(1140) in x && typeof x[a(1140)] === a(1342) && x[a(1140)]()[a(641)]((r) => { - console.warn("Error closing connection to " + e + ":", r); - }), this[a(2460)].delete(e), this[a(1107)][a(2143)](e)); - } - [n(677)](e, t) { - const a = () => { - const x = B, r = t[x(628)], s = t[x(2032)]; - if (r && r[x(555)] !== void 0) { - const c = r[x(555)]; - r[x(555)] = (d) => { - const u = x; - this[u(1324)](e, d), c && typeof c === u(1342) && c(d); - }; - } - if (s && s[x(555)] !== void 0) { - const c = s.onclose; - s.onclose = (d) => { - const u = x; - this[u(1324)](e, d), c && typeof c === u(1342) && c(d); - }; - } - t && typeof t[x(2679)] == "function" && t[x(2679)](() => { - this[x(1324)](e); - }); - const o = t.transport; - if (o && o[x(555)] !== void 0) { - const c = o[x(555)]; - o.onclose = (d) => { - this[x(1324)](e, d), c && typeof c == "function" && c(d); - }; - } - }; - try { - a(); + return x[t(1325)]({}); } catch { + return this[t(658)](x); } } - [n(1324)](e, t) { - const a = n; - this[a(2460)][a(2333)](e) && (this[a(2460)].delete(e), this[a(1107)][a(2143)](e)); - } - [n(611)]() { - const e = n; - for (const t of this[e(2460)][e(2278)]()) - this.disconnect(t); - } -} -var ln, hn, pn, mn, gn; -class hi { - constructor(e, t, a) { - d0(this, "definition"); - d0(this, gn); - d0(this, "nodeStores", /* @__PURE__ */ new Map()); - d0(this, "nodeProxies", /* @__PURE__ */ new Map()); - d0(this, mn); - d0(this, pn, new ci()); - d0(this, "broadcastManager"); - d0(this, hn); - d0(this, ln); - const x = n; - this[x(1596)] = e, this.currentNodeId = t, this[x(1761)](), this[x(1107)] = new ui(), this[x(1936)] = new fi(e, t, (r) => this[x(1121)](r)), this[x(2206)] = new li(e, t, this[x(1107)], this[x(1936)], (r, s) => this[x(1738)](r, s)), this[x(1359)] = new di(this, a), this.setupGraphStoreSync(); - } - [(gn = n(1312), mn = n(1359), pn = n(1366), hn = n(1936), ln = n(2206), n(1761))]() { - const e = n; - for (const t of this[e(1596)][e(2718)]()) { - const a = this[e(1596)].getNode(t); - if (a && a[e(915)]) { - const x = this.getDefaultValuesFromSchema(a[e(915)]), r = Ts(() => x); - this.nodeStores[e(510)](t, r); - } + manuallyExtractDefaults(x) { + var t = s; + if (!x || !x[t(751)]) return {}; + if (x[t(751)][t(338)] === t(2641)) { + const a = x[t(751)][t(704)]; + return typeof a === t(1853) ? a() : a; } - } - [n(1397)](e) { - const t = n; - if (!e) return {}; - try { - return e.parse({}); - } catch { - return this[t(1655)](e); - } - } - manuallyExtractDefaults(e) { - const t = n; - if (!e || !e.def) return {}; - if (e[t(2729)].type === t(1658)) { - const a = e[t(2729)][t(2303)]; - return typeof a === t(1342) ? a() : a; - } - if (e[t(2729)].type === t(2437)) { + if (x[t(751)].type === t(1923)) { const a = {}; - let x; + let e; try { - x = e[t(2729)].shape; + e = x[t(751)][t(2219)]; } catch { return {}; } - if (x) for (const [r, s] of Object[t(586)](x)) { - const o = this[t(1945)](s); + if (e) for (const [r, n] of Object[t(446)](e)) { + const o = this[t(1303)](n); o !== void 0 && (a[r] = o); } return a; } return {}; } - [n(1945)](e) { - const t = n; - if (e) + getDefaultValueFromField(x) { + var t = s; + if (x) try { - return e[t(2156)](void 0); + return x.parse(void 0); } catch { - return this.manuallyExtractDefaults(e); + return this[t(658)](x); } } - async [n(1610)](e, t) { - return this[n(2206)].connect(e, t); - } - [n(1288)](e, t = !1) { - const a = n; - return this[a(2206)][a(1288)](e, t); - } - [n(1738)](e, t) { - const a = n, x = this[a(1702)][a(1261)](e); - if (!x) return; - const r = t[a(2032)] || t[a(628)]; - r && (t[a(628)] ? this[a(1366)][a(1765)]({ endpoint: r, store: x, nodeId: e }) : this[a(1366)][a(2042)]({ endpoint: r, store: x, nodeId: e })); - } - [n(1838)]() { - const e = n; - for (const [t, a] of this[e(1702)]) - t === this.currentNodeId ? oi({ graphInstance: this, store: a, name: t }) : Fr({ graphInstance: this, store: a, name: t }); - } - [n(2369)](e) { - const t = n; - if (!this[t(1672)].has(e)) { - const a = new si(this, e); - this.nodeProxies[t(510)](e, a); + async [s(1649)](x, t) { + var a = s; + if (!this[a(2103)][a(2138)](this[a(1874)], x)) throw new Error(a(1366) + this[a(1874)] + a(770) + x); + if (this.nodeTransports[a(2561)](x)) throw new Error("Already connected to node " + x); + try { + this[a(824)].set(x, t), this.connectionManager[a(2494)](x), this[a(2217)](x, t), await this.syncStoresToNewConnection(x), await this[a(2637)](x); + } catch (e) { + throw this[a(1127)](x), e; } - return this[t(1672)][t(1261)](e); } - [n(1121)](e) { - const t = n; - return this.connectionManager[t(527)](e); + [s(555)](x) { + this.cleanupConnection(x); } - getConnection(e) { - return this[n(1121)](e); + async [s(1049)](x) { + var t = s; + await new Promise((a) => setTimeout(a, 100)); + for (const [a, e] of this.nodeStores) + if (a === this[t(1874)]) try { + await this[t(2084)][t(2391)](t(1372) + a, { storeName: a, sourceNodeId: this[t(1874)], stateUpdate: e[t(642)](), isInitialState: !0 }); + } catch { + } + try { + await this[t(2084)][t(2391)](t(1635), { fromNode: this[t(1874)], toNode: x }); + } catch { + } } - [n(1256)](e) { - return this[n(1702)].get(e); + async [s(2637)](x) { + var t = s; + try { + const a = this[t(644)][t(1568)](); + for (const e of a) + try { + const r = t(418) + e, n = this[t(2223)](e); + n && n[t(2154)] && n[t(2154)][r] && await n[t(2154)][r]({}); + } catch (r) { + console[t(1133)](t(1045) + e + ":", r); + } + } catch (a) { + console[t(1133)]("Failed to request initial states after connecting to " + x + ":", a); + } + } + [s(1127)](x) { + var t = s; + const a = this[t(824)][t(2229)](x); + this[t(824)][t(2434)](x), this.connectionManager[t(2571)](x), this[t(2084)][t(2377)](x), a && a[t(1361)](); + } + [s(2217)](x, t) { + var a = s; + if (!this[a(1091)][a(2229)](this[a(1874)])) throw new Error("Store not found for " + this[a(1874)]); + this[a(608)][a(1360)](t), this[a(2084)].addMiddleware(x, t); + } + [s(2557)]() { + var x = s; + for (const [t, a] of this[x(1091)]) + t === this[x(1874)] ? ci({ graphInstance: this, store: a, name: t }) : oi({ graphInstance: this, store: a, name: t }); + } + getNode(x) { + var t = s; + if (!this.nodeProxies[t(2561)](x)) { + const a = new ii(this, x); + this[t(1542)].set(x, a); + } + return this[t(1542)][t(2229)](x); + } + getTransportInternal(x) { + var t = s; + return this.nodeTransports[t(2229)](x); + } + [s(1715)](x) { + var t = s; + const a = this[t(824)][t(2229)](x); + if (a) return { transport: a, path: [this.currentNodeId, x] }; + const e = this[t(2565)](this.currentNodeId, x); + if (e && e.length > 1) { + const r = e[1], n = this[t(824)][t(2229)](r); + if (n) return { transport: n, path: e }; + } + } + [s(702)](x) { + return this.nodeStores.get(x); } get store() { - const e = n, t = this[e(1702)][e(1261)](this[e(1312)]); - if (!t) throw new Error("Store not found for current node " + this[e(1312)]); + var x = s; + const t = this[x(1091)][x(2229)](this[x(1874)]); + if (!t) throw new Error("Store not found for current node " + this.currentNodeId); return t; } - get [n(1524)]() { - const e = n, t = this[e(1596)][e(2369)](this[e(1312)]); - if (!t) throw new Error(e(751) + this[e(1312)]); - return new Proxy({}, { get: (x, r) => { - const s = e; - if (typeof r !== s(923)) return; - const o = t[s(1524)][r]; - if (!o) throw new Error(s(2159) + r + " not found for current node " + this[s(1312)]); - return (c, d) => { - const u = s, f = this.actionManager[u(2617)](r); - if (!f) throw new Error(u(1066) + r + u(652) + this.currentNodeId); - const l = { nodeId: this[u(1312)] }; - if (o[u(1007)] === !0) { - const g = f(c, l, d); - return g && typeof g === u(2437) && Symbol[u(1938)] in g ? async function* () { - for await (const h of g) + get [s(2154)]() { + var x = s; + const t = this[x(2103)][x(2223)](this[x(1874)]); + if (!t) throw new Error("Node definition not found for current node " + this[x(1874)]); + return new Proxy({}, { get: (e, r) => { + var n = x; + if (typeof r != "string") return; + const o = t[n(2154)][r]; + if (!o) throw new Error(n(1240) + r + " not found for current node " + this[n(1874)]); + return (c, u) => { + var d = n; + const f = this[d(608)][d(2498)](r); + if (!f) throw new Error("Action handler " + r + " not implemented for node " + this.currentNodeId); + const l = { nodeId: this[d(1874)] }; + if (o[d(1234)] === !0) { + const v = f(c, l, u); + return v && typeof v == "object" && Symbol[d(1348)] in v ? async function* () { + for await (const h of v) yield h === void 0 ? {} : h; }() : async function* () { - const h = await g; + const h = await v; yield h === void 0 ? {} : h; }(); } else return (async () => { - const g = u, h = f(c, l, d); - if (h && typeof h == "object" && Symbol[g(1938)] in h) { - const m = h[Symbol[g(1938)]](), y = await m[g(1459)](); - return y[g(2391)] === void 0 ? {} : y[g(2391)]; + var v = d; + const h = f(c, l, u); + if (h && typeof h == "object" && Symbol[v(1348)] in h) { + const m = h[Symbol[v(1348)]](), y = await m[v(690)](); + return y.value === void 0 ? {} : y.value; } else { const m = await h; return m === void 0 ? {} : m; @@ -2669,4533 +2609,1961 @@ class hi { }; } }); } - getDefinition() { - return this[n(1596)]; + [s(736)]() { + return this.definition; } - getCurrentNodeId() { - return this[n(1312)]; + [s(753)]() { + var x = s; + return this[x(1874)]; } - ensureStoreConsumerBinding(e) { - const t = n; - if (e === this[t(1312)] || this[t(1366)][t(1185)](e)) return; - const a = this.nodeStores[t(1261)](e); - if (a) - try { - Fr({ graphInstance: this, store: a, name: e }), this[t(1366)][t(1529)](e); - } catch { - } + [s(2097)](x) { + var t = s; + return this[t(1715)](x); } - [n(685)](e) { - const t = n; - return this[t(2206)][t(871)](e); + [s(2376)](x, t) { + var a = s; + this[a(608)].implementAction(x, t); } - getConnectionToNode(e) { - return this[n(685)](e); + [s(1891)]() { + var x = s; + const t = Array[x(1147)](this.nodeTransports.keys()); + for (const a of t) + this[x(1127)](a); + this[x(2084)].clear(), this.actionManager[x(2173)](), this[x(644)][x(2173)](); } - [n(666)](e) { - const t = n, a = this[t(1702)][t(1261)](this.currentNodeId); - if (!a) throw new Error(t(990) + this[t(1312)]); - const x = e[t(2032)] || e[t(628)]; - zn({ endpoint: x, store: a, name: this.currentNodeId }), this[t(1936)][t(666)](e), this.broadcastManager[t(666)](e); + [s(2565)](x, t) { + var a = s; + return this[a(644)][a(2505)](x, t); } - [n(933)](e, t) { - this[n(1936)].implementAction(e, t); + [s(2505)](x, t) { + var a = s; + return this[a(2565)](x, t); } - [n(519)]() { - const e = n; - this.connectionMonitor[e(519)](), this[e(1366)][e(821)](), this[e(1107)].clear(), this[e(1936)].clear(), this[e(2206)][e(611)](); + async broadcast(x, t) { + var a = s; + return this.broadcastManager[a(2391)](x, t); } - [n(1e3)](e, t) { - const a = n; - return this[a(2206)][a(605)](e, t); - } - [n(605)](e, t) { - return this[n(1e3)](e, t); - } - async [n(2607)](e, t) { - return this[n(1107)].broadcast(e, t); - } - broadcastReceived(e, t) { - const a = n; - this[a(1107)][a(695)](e, t); + [s(663)](x, t) { + var a = s; + this[a(2084)][a(1541)](x, t); } } -const Hn = "2025-06-18", pi = [Hn, n(2587), "2024-11-05", "2024-10-07"], Oe = n(2137), Un = _0([I(), I0().int()]), Vn = I(), mi = O({ progressToken: W(Un) })[n(1209)](), ax = O({ _meta: W(mi) })[n(1209)](), ex = O({ method: I(), params: W(ax) }), ie = O({ _meta: W(O({}).passthrough()) })[n(1209)](), mx = O({ method: I(), params: W(ie) }), nx = O({ _meta: W(O({})[n(1209)]()) })[n(1209)](), Ae = _0([I(), I0().int()]), Zn = O({ jsonrpc: r0(Oe), id: Ae })[n(1290)](ex)[n(1370)](), gi = (i) => Zn[n(2732)](i)[n(2288)], Wn = O({ jsonrpc: r0(Oe) })[n(1290)](mx)[n(1370)](), vi = (i) => Wn.safeParse(i)[n(2288)], Bn = O({ jsonrpc: r0(Oe), id: Ae, result: nx }).strict(), Nr = (i) => Bn[n(2732)](i)[n(2288)]; -var bx; -(function(i) { - const e = n; - i[i[e(2576)] = -32e3] = e(2576), i[i[e(1153)] = -32001] = "RequestTimeout", i[i[e(2688)] = -32700] = e(2688), i[i[e(498)] = -32600] = e(498), i[i[e(1784)] = -32601] = e(1784), i[i[e(1158)] = -32602] = e(1158), i[i[e(557)] = -32603] = "InternalError"; -})(bx || (bx = {})); -const Kn = O({ jsonrpc: r0(Oe), id: Ae, error: O({ code: I0().int(), message: I(), data: W(se()) }) })[n(1370)](), yi = (i) => Kn[n(2732)](i)[n(2288)]; -_0([Zn, Wn, Bn, Kn]); -const Vt = nx.strict(), Zt = mx[n(2453)]({ method: r0(n(2028)), params: ie[n(2453)]({ requestId: Ae, reason: I().optional() }) }), oe = O({ name: I(), title: W(I()) })[n(1209)](), Jn = oe[n(2453)]({ version: I() }), bi = O({ experimental: W(O({})[n(1209)]()), sampling: W(O({})[n(1209)]()), elicitation: W(O({})[n(1209)]()), roots: W(O({ listChanged: W(l0()) })[n(1209)]()) }).passthrough(), Qn = ex.extend({ method: r0(n(2434)), params: ax[n(2453)]({ protocolVersion: I(), capabilities: bi, clientInfo: Jn }) }), wi = O({ experimental: W(O({})[n(1209)]()), logging: W(O({}).passthrough()), completions: W(O({})[n(1209)]()), prompts: W(O({ listChanged: W(l0()) })[n(1209)]()), resources: W(O({ subscribe: W(l0()), listChanged: W(l0()) })[n(1209)]()), tools: W(O({ listChanged: W(l0()) })[n(1209)]()) }).passthrough(), Si = nx[n(2453)]({ protocolVersion: I(), capabilities: wi, serverInfo: Jn, instructions: W(I()) }), Gn = mx[n(2453)]({ method: r0("notifications/initialized") }), Wt = ex.extend({ method: r0(n(1189)) }), Pi = O({ progress: I0(), total: W(I0()), message: W(I()) })[n(1209)](), Bt = mx.extend({ method: r0(n(2284)), params: ie[n(1290)](Pi)[n(2453)]({ progressToken: Un }) }), Te = ex[n(2453)]({ params: ax[n(2453)]({ cursor: W(Vn) })[n(1360)]() }), De = nx[n(2453)]({ nextCursor: W(Vn) }), Yn = O({ uri: I(), mimeType: W(I()), _meta: W(O({})[n(1209)]()) })[n(1209)](), Xn = Yn.extend({ text: I() }), _n = Yn.extend({ blob: I()[n(2210)]() }), xs = oe[n(2453)]({ uri: I(), description: W(I()), mimeType: W(I()), _meta: W(O({})[n(1209)]()) }), ki = oe[n(2453)]({ uriTemplate: I(), description: W(I()), mimeType: W(I()), _meta: W(O({})[n(1209)]()) }), Ei = Te[n(2453)]({ method: r0(n(2055)) }), Ci = De.extend({ resources: N0(xs) }), Ii = Te[n(2453)]({ method: r0(n(2473)) }), Ri = De[n(2453)]({ resourceTemplates: N0(ki) }), Fi = ex[n(2453)]({ method: r0(n(1642)), params: ax.extend({ uri: I() }) }), Ni = nx[n(2453)]({ contents: N0(_0([Xn, _n])) }), qi = mx[n(2453)]({ method: r0(n(1049)) }), Oi = ex[n(2453)]({ method: r0(n(2012)), params: ax[n(2453)]({ uri: I() }) }), Ai = ex.extend({ method: r0(n(1486)), params: ax.extend({ uri: I() }) }), Ti = mx[n(2453)]({ method: r0(n(2682)), params: ie[n(2453)]({ uri: I() }) }), Di = O({ name: I(), description: W(I()), required: W(l0()) })[n(1209)](), ji = oe.extend({ description: W(I()), arguments: W(N0(Di)), _meta: W(O({})[n(1209)]()) }), Mi = Te[n(2453)]({ method: r0(n(2316)) }), Li = De[n(2453)]({ prompts: N0(ji) }), $i = ex[n(2453)]({ method: r0(n(2420)), params: ax[n(2453)]({ name: I(), arguments: W(Y0(I())) }) }), xr = O({ type: r0("text"), text: I(), _meta: W(O({})[n(1209)]()) })[n(1209)](), er = O({ type: r0(n(1745)), data: I()[n(2210)](), mimeType: I(), _meta: W(O({})[n(1209)]()) })[n(1209)](), tr = O({ type: r0("audio"), data: I()[n(2210)](), mimeType: I(), _meta: W(O({})[n(1209)]()) })[n(1209)](), zi = O({ type: r0(n(1716)), resource: _0([Xn, _n]), _meta: W(O({})[n(1209)]()) })[n(1209)](), Hi = xs.extend({ type: r0(n(2383)) }), es = _0([xr, er, tr, Hi, zi]), Ui = O({ role: V0([n(2499), "assistant"]), content: es })[n(1209)](), Vi = nx[n(2453)]({ description: W(I()), messages: N0(Ui) }), Zi = mx[n(2453)]({ method: r0(n(1244)) }), Wi = O({ title: W(I()), readOnlyHint: W(l0()), destructiveHint: W(l0()), idempotentHint: W(l0()), openWorldHint: W(l0()) })[n(1209)](), Bi = oe[n(2453)]({ description: W(I()), inputSchema: O({ type: r0(n(2437)), properties: W(O({})[n(1209)]()), required: W(N0(I())) })[n(1209)](), outputSchema: W(O({ type: r0(n(2437)), properties: W(O({})[n(1209)]()), required: W(N0(I())) })[n(1209)]()), annotations: W(Wi), _meta: W(O({})[n(1209)]()) }), Ki = Te[n(2453)]({ method: r0("tools/list") }), Ji = De[n(2453)]({ tools: N0(Bi) }), ts = nx.extend({ content: N0(es)[n(1658)]([]), structuredContent: O({})[n(1209)]()[n(1360)](), isError: W(l0()) }); -ts.or(nx[n(2453)]({ toolResult: se() })); -const Qi = ex[n(2453)]({ method: r0(n(561)), params: ax.extend({ name: I(), arguments: W(Y0(se())) }) }), Gi = mx.extend({ method: r0("notifications/tools/list_changed") }), rs = V0([n(855), n(2414), n(735), n(768), n(2389), "critical", n(497), n(671)]), Yi = ex[n(2453)]({ method: r0(n(2704)), params: ax[n(2453)]({ level: rs }) }), Xi = mx[n(2453)]({ method: r0(n(1889)), params: ie[n(2453)]({ level: rs, logger: W(I()), data: se() }) }), _i = O({ name: I().optional() }).passthrough(), xo = O({ hints: W(N0(_i)), costPriority: W(I0()[n(606)](0).max(1)), speedPriority: W(I0().min(0)[n(599)](1)), intelligencePriority: W(I0()[n(606)](0)[n(599)](1)) })[n(1209)](), eo = O({ role: V0([n(2499), n(2081)]), content: _0([xr, er, tr]) })[n(1209)](), to = ex.extend({ method: r0("sampling/createMessage"), params: ax[n(2453)]({ messages: N0(eo), systemPrompt: W(I()), includeContext: W(V0([n(1939), n(2367), "allServers"])), temperature: W(I0()), maxTokens: I0()[n(1278)](), stopSequences: W(N0(I())), metadata: W(O({})[n(1209)]()), modelPreferences: W(xo) }) }), as = nx[n(2453)]({ model: I(), stopReason: W(V0([n(1620), n(2230), n(1684)]).or(I())), role: V0([n(2499), n(2081)]), content: Mn(n(2426), [xr, er, tr]) }), ro = O({ type: r0(n(958)), title: W(I()), description: W(I()), default: W(l0()) })[n(1209)](), ao = O({ type: r0(n(923)), title: W(I()), description: W(I()), minLength: W(I0()), maxLength: W(I0()), format: W(V0(["email", n(2155), "date", n(986)])) }).passthrough(), no = O({ type: V0([n(2074), "integer"]), title: W(I()), description: W(I()), minimum: W(I0()), maximum: W(I0()) })[n(1209)](), so = O({ type: r0("string"), title: W(I()), description: W(I()), enum: N0(I()), enumNames: W(N0(I())) })[n(1209)](), io = _0([ro, ao, no, so]), oo = ex.extend({ method: r0(n(2492)), params: ax[n(2453)]({ message: I(), requestedSchema: O({ type: r0(n(2437)), properties: Y0(I(), io), required: W(N0(I())) })[n(1209)]() }) }), ns = nx[n(2453)]({ action: V0([n(2542), n(1880), n(2375)]), content: W(Y0(I(), se())) }), co = O({ type: r0("ref/resource"), uri: I() })[n(1209)](), uo = O({ type: r0(n(1320)), name: I() }).passthrough(), fo = ex[n(2453)]({ method: r0("completion/complete"), params: ax[n(2453)]({ ref: _0([uo, co]), argument: O({ name: I(), value: I() })[n(1209)](), context: W(O({ arguments: W(Y0(I(), I())) })) }) }), lo = nx[n(2453)]({ completion: O({ values: N0(I())[n(599)](100), total: W(I0()[n(1278)]()), hasMore: W(l0()) })[n(1209)]() }), ho = O({ uri: I()[n(1817)](n(1480)), name: W(I()), _meta: W(O({}).passthrough()) }).passthrough(), po = ex[n(2453)]({ method: r0(n(2498)) }), ss = nx.extend({ roots: N0(ho) }), mo = mx.extend({ method: r0(n(928)) }); -_0([Wt, Qn, fo, Yi, $i, Mi, Ei, Ii, Fi, Oi, Ai, Qi, Ki]), _0([Zt, Bt, Gn, mo]), _0([Vt, as, ns, ss]), _0([Wt, to, oo, po]), _0([Zt, Bt, Xi, Ti, qi, Gi, Zi]), _0([Vt, Si, lo, Vi, Li, Ci, Ri, Ni, ts, Ji]); -class Ox extends Error { - constructor(e, t, a) { - const x = n; - super("MCP error " + e + ": " + t), this[x(1204)] = e, this[x(726)] = a, this.name = "McpError"; +const qr = { INTERCEPTOR_ERROR: "interceptor_error" }; +var ys, bs, ws; +class Tr extends (ws = Error, bs = s(338), ys = s(1921), ws) { + constructor(t, a, e, r) { + var n = s; + super(e); + v0(this, bs); + v0(this, ys); + v0(this, "originalError"); + this.name = n(650), this[n(338)] = t, this[n(1921)] = a, this[n(372)] = r; } } -const go = 6e4; -class vo { - constructor(e) { - const t = n; - this._options = e, this[t(2076)] = 0, this._requestHandlers = /* @__PURE__ */ new Map(), this[t(2180)] = /* @__PURE__ */ new Map(), this[t(2117)] = /* @__PURE__ */ new Map(), this._responseHandlers = /* @__PURE__ */ new Map(), this[t(696)] = /* @__PURE__ */ new Map(), this[t(2465)] = /* @__PURE__ */ new Map(), this[t(2150)] = /* @__PURE__ */ new Set(), this[t(2593)](Zt, (a) => { - const x = t, r = this[x(2180)].get(a[x(2646)][x(1536)]); - r == null || r[x(2480)](a[x(2646)][x(1900)]); - }), this[t(2593)](Bt, (a) => { - this._onprogress(a); - }), this.setRequestHandler(Wt, (a) => ({})); +var Ss, ks, Es, Is, Ps, Rs, Cs; +class hi { + constructor(x, t = {}) { + v0(this, "protocol"); + v0(this, "realTransport", null); + v0(this, Cs); + v0(this, "requestHandlers", /* @__PURE__ */ new Map()); + v0(this, Rs, /* @__PURE__ */ new Map()); + v0(this, "outgoingRequestInterceptors", /* @__PURE__ */ new Map()); + v0(this, Ps, /* @__PURE__ */ new Map()); + v0(this, Is, []); + v0(this, Es, []); + v0(this, ks, []); + v0(this, Ss, { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }); + var a = s; + this[a(1450)] = x, this[a(778)] = { debug: !1, interceptorTimeout: 5e3, continueOnInterceptorError: !0, ...t }; } - [n(1933)](e, t, a, x, r = !1) { - const s = n; - this[s(2465)].set(e, { timeoutId: setTimeout(x, t), startTime: Date[s(1381)](), timeout: t, maxTotalTimeout: a, resetTimeoutOnProgress: r, onTimeout: x }); + async connect(x) { + var t = s; + this[t(1873)] = x, x[t(2082)] = (a) => { + var e = t; + this[e(1333)](a); + }, x[t(2172)] = () => { + var a = t; + this[a(1652)][a(1222)]((e) => e()); + }, x[t(1865)] = (a) => { + var e = t; + this[e(865)][e(1222)]((r) => r(a)); + }, await this[t(1450)][t(1649)](this); } - [n(2163)](e) { - const t = n, a = this[t(2465)].get(e); + async [(Cs = s(778), Rs = s(1707), Ps = s(976), Is = s(1125), Es = s(1652), ks = s(865), Ss = s(307), s(1333))](x) { + var t = s; + this.log("debug", t(1362), x); + try { + if (this[t(1954)](x) && await this[t(1479)](x) || this[t(1172)](x) && await this[t(2029)](x)) + return; + this[t(1125)][t(1222)]((a) => a(x)); + } catch (a) { + this[t(307)].errors++, this[t(1133)](t(503), t(1232), a), this.messageHandlers[t(1222)]((e) => e(x)); + } + } + async [s(1479)](x) { + var t = s; + const a = this[t(851)].get(x.method); if (!a) return !1; - const x = Date[t(1381)]() - a[t(1734)]; - if (a[t(1587)] && x >= a[t(1587)]) - throw this[t(2465)][t(2653)](e), new Ox(bx[t(1153)], "Maximum total timeout exceeded", { maxTotalTimeout: a[t(1587)], totalElapsed: x }); - return clearTimeout(a.timeoutId), a[t(1815)] = setTimeout(a.onTimeout, a[t(1563)]), !0; - } - [n(1960)](e) { - const t = n, a = this[t(2465)][t(1261)](e); - a && (clearTimeout(a[t(1815)]), this[t(2465)][t(2653)](e)); - } - async [n(1610)](e) { - const t = n; - var a, x, r; - this[t(1452)] = e; - const s = (a = this[t(2728)]) === null || a === void 0 ? void 0 : a[t(555)]; - this[t(1452)].onclose = () => { - const d = t; - s == null || s(), this[d(2205)](); - }; - const o = (x = this[t(2728)]) === null || x === void 0 ? void 0 : x.onerror; - this[t(1452)][t(1626)] = (d) => { - const u = t; - o == null || o(d), this[u(2513)](d); - }; - const c = (r = this[t(1452)]) === null || r === void 0 ? void 0 : r[t(709)]; - this[t(1452)][t(709)] = (d, u) => { - const f = t; - c == null || c(d, u), Nr(d) || yi(d) ? this[f(2384)](d) : gi(d) ? this[f(929)](d, u) : vi(d) ? this._onnotification(d) : this._onerror(new Error("Unknown message type: " + JSON.stringify(d))); - }, await this._transport[t(1890)](); - } - [n(2205)]() { - const e = n; - var t; - const a = this._responseHandlers; - this[e(545)] = /* @__PURE__ */ new Map(), this[e(696)].clear(), this[e(2150)][e(611)](), this._transport = void 0, (t = this[e(555)]) === null || t === void 0 || t[e(2518)](this); - const x = new Ox(bx.ConnectionClosed, e(2275)); - for (const r of a[e(1109)]()) - r(x); - } - [n(2513)](e) { - const t = n; - var a; - (a = this[t(1626)]) === null || a === void 0 || a[t(2518)](this, e); - } - _onnotification(e) { - const t = n; - var a; - const x = (a = this._notificationHandlers[t(1261)](e[t(2097)])) !== null && a !== void 0 ? a : this[t(2606)]; - x !== void 0 && Promise.resolve()[t(1413)](() => x(e)).catch((r) => this[t(2513)](new Error(t(1491) + r))); - } - [n(929)](e, t) { - const a = n; - var x, r, s, o; - const c = (x = this._requestHandlers[a(1261)](e[a(2097)])) !== null && x !== void 0 ? x : this[a(1155)]; - if (c === void 0) { - (r = this[a(1452)]) === null || r === void 0 || r[a(1243)]({ jsonrpc: a(2137), id: e.id, error: { code: bx[a(1784)], message: a(962) } })[a(641)]((f) => this[a(2513)](new Error(a(1917) + f))); - return; - } - const d = new AbortController(); - this._requestHandlerAbortControllers.set(e.id, d); - const u = { signal: d[a(2360)], sessionId: (s = this[a(1452)]) === null || s === void 0 ? void 0 : s.sessionId, _meta: (o = e.params) === null || o === void 0 ? void 0 : o[a(1470)], sendNotification: (f) => this.notification(f, { relatedRequestId: e.id }), sendRequest: (f, l, g) => this.request(f, l, { ...g, relatedRequestId: e.id }), authInfo: t == null ? void 0 : t[a(1964)], requestId: e.id, requestInfo: t == null ? void 0 : t.requestInfo }; - Promise.resolve()[a(1413)](() => c(e, u))[a(1413)]((f) => { - const l = a; - var g; - if (!d[l(2360)][l(1786)]) - return (g = this[l(1452)]) === null || g === void 0 ? void 0 : g[l(1243)]({ result: f, jsonrpc: l(2137), id: e.id }); - }, (f) => { - const l = a; - var g, h; - if (!d.signal[l(1786)]) - return (g = this._transport) === null || g === void 0 ? void 0 : g[l(1243)]({ jsonrpc: l(2137), id: e.id, error: { code: Number[l(2736)](f[l(1204)]) ? f[l(1204)] : bx[l(557)], message: (h = f[l(2353)]) !== null && h !== void 0 ? h : l(579) } }); - })[a(641)]((f) => this[a(2513)](new Error(a(900) + f)))[a(2748)](() => { - const f = a; - this[f(2180)][f(2653)](e.id); - }); - } - [n(1853)](e) { - const t = n, { progressToken: a, ...x } = e[t(2646)], r = Number(a), s = this._progressHandlers[t(1261)](r); - if (!s) { - this[t(2513)](new Error(t(1173) + JSON[t(2301)](e))); - return; - } - const o = this[t(545)][t(1261)](r), c = this[t(2465)][t(1261)](r); - if (c && o && c[t(590)]) try { - this[t(2163)](r); - } catch (d) { - o(d); - return; - } - s(x); - } - [n(2384)](e) { - const t = n, a = Number(e.id), x = this[t(545)][t(1261)](a); - if (x === void 0) { - this[t(2513)](new Error("Received a response for an unknown message ID: " + JSON.stringify(e))); - return; - } - if (this._responseHandlers.delete(a), this[t(696)].delete(a), this[t(1960)](a), Nr(e)) x(e); - else { - const r = new Ox(e[t(2389)][t(1204)], e[t(2389)][t(2353)], e[t(2389)][t(726)]); - x(r); - } - } - get [n(2728)]() { - return this._transport; - } - async [n(1140)]() { - const e = n; - var t; - await ((t = this._transport) === null || t === void 0 ? void 0 : t[e(1140)]()); - } - [n(1352)](e, t, a) { - const { relatedRequestId: x, resumptionToken: r, onresumptiontoken: s } = a ?? {}; - return new Promise((o, c) => { - const d = B; - var u, f, l, g, h, m; - if (!this[d(1452)]) { - c(new Error(d(2096))); - return; - } - ((u = this[d(2463)]) === null || u === void 0 ? void 0 : u[d(1031)]) === !0 && this.assertCapabilityForMethod(e[d(2097)]), (f = a == null ? void 0 : a[d(2360)]) === null || f === void 0 || f[d(554)](); - const y = this[d(2076)]++, w = { ...e, jsonrpc: d(2137), id: y }; - a != null && a.onprogress && (this[d(696)][d(510)](y, a.onprogress), w.params = { ...e.params, _meta: { ...((l = e[d(2646)]) === null || l === void 0 ? void 0 : l[d(1470)]) || {}, progressToken: y } }); - const S = (C) => { - const P = d; - var E; - this[P(545)][P(2653)](y), this[P(696)][P(2653)](y), this[P(1960)](y), (E = this[P(1452)]) === null || E === void 0 || E[P(1243)]({ jsonrpc: P(2137), method: P(2028), params: { requestId: y, reason: String(C) } }, { relatedRequestId: x, resumptionToken: r, onresumptiontoken: s })[P(641)]((D) => this[P(2513)](new Error(P(1727) + D))), c(C); - }; - this[d(545)][d(510)](y, (C) => { - const P = d; - var E; - if (!(!((E = a == null ? void 0 : a[P(2360)]) === null || E === void 0) && E[P(1786)])) { - if (C instanceof Error) return c(C); - try { - const D = t[P(2156)](C.result); - o(D); - } catch (D) { - c(D); - } - } - }), (g = a == null ? void 0 : a[d(2360)]) === null || g === void 0 || g.addEventListener(d(2480), () => { - const C = d; - var P; - S((P = a == null ? void 0 : a.signal) === null || P === void 0 ? void 0 : P[C(1900)]); - }); - const R = (h = a == null ? void 0 : a[d(1563)]) !== null && h !== void 0 ? h : go, A = () => S(new Ox(bx[d(1153)], "Request timed out", { timeout: R })); - this[d(1933)](y, R, a == null ? void 0 : a[d(1587)], A, (m = a == null ? void 0 : a[d(590)]) !== null && m !== void 0 ? m : !1), this[d(1452)][d(1243)](w, { relatedRequestId: x, resumptionToken: r, onresumptiontoken: s })[d(641)]((C) => { - this[d(1960)](y), c(C); - }); - }); - } - async [n(1441)](e, t) { - const a = n; - var x, r; - if (!this[a(1452)]) throw new Error(a(2096)); - if (this[a(1162)](e[a(2097)]), ((r = (x = this[a(2463)]) === null || x === void 0 ? void 0 : x[a(1644)]) !== null && r !== void 0 ? r : [])[a(1958)](e[a(2097)]) && !e[a(2646)] && !(t != null && t[a(656)])) { - if (this[a(2150)][a(2333)](e[a(2097)])) return; - this[a(2150)][a(2295)](e[a(2097)]), Promise[a(1987)]().then(() => { - const d = a; - var u; - if (this[d(2150)][d(2653)](e[d(2097)]), !this[d(1452)]) return; - const f = { ...e, jsonrpc: d(2137) }; - (u = this[d(1452)]) === null || u === void 0 || u[d(1243)](f, t)[d(641)]((l) => this[d(2513)](l)); - }); - return; - } - const c = { ...e, jsonrpc: a(2137) }; - await this[a(1452)][a(1243)](c, t); - } - [n(1670)](e, t) { - const a = n, x = e[a(2129)][a(2097)][a(2391)]; - this.assertRequestHandlerCapability(x), this[a(1720)][a(510)](x, (r, s) => Promise[a(1987)](t(e.parse(r), s))); - } - [n(979)](e) { - this._requestHandlers.delete(e); - } - [n(978)](e) { - const t = n; - if (this._requestHandlers[t(2333)](e)) throw new Error("A request handler for " + e + t(1132)); - } - [n(2593)](e, t) { - const a = n; - this._notificationHandlers[a(510)](e[a(2129)][a(2097)][a(2391)], (x) => Promise.resolve(t(e.parse(x)))); - } - [n(1848)](e) { - const t = n; - this[t(2117)][t(2653)](e); - } -} -function yo(i, e) { - const t = n; - return Object[t(586)](e)[t(2257)]((a, [x, r]) => (r && typeof r === t(2437) ? a[x] = a[x] ? { ...a[x], ...r } : r : a[x] = r, a), { ...i }); -} -function is(i) { - const e = n; - return i && i.__esModule && Object.prototype.hasOwnProperty[e(2518)](i, "default") ? i[e(1658)] : i; -} -var Xx = { exports: {} }, bo = Xx[n(1791)], qr; -function wo() { - const i = n; - return qr ? Xx.exports : (qr = 1, function(e, t) { - (function(a, x) { - x(t); - })(bo, function(a) { - const x = B; - function r() { - const k = B; - for (var p = arguments[k(1200)], v = Array(p), b = 0; b < p; b++) - v[b] = arguments[b]; - if (v[k(1200)] > 1) { - v[0] = v[0].slice(0, -1); - for (var z = v.length - 1, H = 1; H < z; ++H) - v[H] = v[H].slice(1, -1); - return v[z] = v[z][k(2602)](1), v.join(""); - } else return v[0]; - } - function s(k) { - return B(1708) + k + ")"; - } - function o(k) { - const p = B; - return k === void 0 ? p(2634) : k === null ? p(2382) : Object[p(1166)][p(879)].call(k)[p(2248)](" ")[p(2087)]()[p(2248)]("]").shift().toLowerCase(); - } - function c(k) { - return k[B(1834)](); - } - function d(k) { - const p = B; - return k != null ? k instanceof Array ? k : typeof k[p(1200)] !== p(2074) || k[p(2248)] || k[p(1218)] || k[p(2518)] ? [k] : Array[p(1166)][p(2602)][p(2518)](k) : []; - } - function u(k, p) { - var v = k; - if (p) for (var b in p) - v[b] = p[b]; - return v; - } - function f(k) { - const p = B; - var v = "[A-Za-z]", b = p(966), z = r(b, p(1054)), H = s(s("%[EFef]" + z + "%" + z + z + "%" + z + z) + "|" + s("%[89A-Fa-f]" + z + "%" + z + z) + "|" + s("%" + z + z)), t0 = "[\\:\\/\\?\\#\\[\\]\\@]", c0 = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", S0 = r(t0, c0), T0 = k ? p(1321) : "[]", H0 = k ? p(785) : "[]", P0 = r(v, b, p(1709), T0); - s(v + r(v, b, p(2380)) + "*"), s(s(H + "|" + r(P0, c0, p(1604))) + "*"); - var A0 = s(s(p(2708)) + "|" + s(p(1970) + b) + "|" + s("1" + b + b) + "|" + s(p(1737) + b) + p(1512) + b), U0 = s(A0 + "\\." + A0 + "\\." + A0 + "\\." + A0), v0 = s(z + p(713)), M0 = s(s(v0 + "\\:" + v0) + "|" + U0), Z0 = s(s(v0 + "\\:") + p(2416) + M0), L0 = s(p(1798) + s(v0 + "\\:") + p(931) + M0), kx = s(s(v0) + p(1525) + s(v0 + "\\:") + p(1589) + M0), ox = s(s(s(v0 + "\\:") + p(2162) + v0) + p(1525) + s(v0 + "\\:") + "{3}" + M0), cx = s(s(s(v0 + "\\:") + p(1338) + v0) + "?\\:\\:" + s(v0 + "\\:") + p(1780) + M0), $x = s(s(s(v0 + "\\:") + p(2105) + v0) + p(1525) + v0 + "\\:" + M0), Rx = s(s(s(v0 + "\\:") + p(2063) + v0) + p(1525) + M0), tx = s(s(s(v0 + "\\:") + p(1762) + v0) + p(1525) + v0), dx = s(s(s(v0 + "\\:") + p(546) + v0) + p(1525)), ux = s([Z0, L0, kx, ox, cx, $x, Rx, tx, dx][p(2573)]("|")), vx = s(s(P0 + "|" + H) + "+"); - s(p(980) + z + p(1403) + r(P0, c0, "[\\:]") + "+"), s(s(H + "|" + r(P0, c0)) + "*"); - var fx = s(H + "|" + r(P0, c0, p(2471))); - return s(s(H + "|" + r(P0, c0, p(2114))) + "+"), s(s(fx + "|" + r(p(1861), H0)) + "*"), { NOT_SCHEME: new RegExp(r(p(2399), v, b, p(2380)), "g"), NOT_USERINFO: new RegExp(r(p(1195), P0, c0), "g"), NOT_HOST: new RegExp(r("[^\\%\\[\\]\\:]", P0, c0), "g"), NOT_PATH: new RegExp(r(p(1220), P0, c0), "g"), NOT_PATH_NOSCHEME: new RegExp(r(p(1830), P0, c0), "g"), NOT_QUERY: new RegExp(r(p(2695), P0, c0, p(2400), H0), "g"), NOT_FRAGMENT: new RegExp(r(p(2695), P0, c0, p(2400)), "g"), ESCAPE: new RegExp(r(p(2399), P0, c0), "g"), UNRESERVED: new RegExp(P0, "g"), OTHER_CHARS: new RegExp(r("[^\\%]", P0, S0), "g"), PCT_ENCODED: new RegExp(H, "g"), IPV4ADDRESS: new RegExp("^(" + U0 + ")$"), IPV6ADDRESS: new RegExp("^\\[?(" + ux + ")" + s(s(p(968) + z + p(718)) + "(" + vx + ")") + p(2642)) }; - } - var l = f(!1), g = f(!0), h = /* @__PURE__ */ function() { - function k(p, v) { - const b = B; - var z = [], H = !0, t0 = !1, c0 = void 0; - try { - for (var S0 = p[Symbol[b(1230)]](), T0; !(H = (T0 = S0.next())[b(507)]) && (z[b(818)](T0[b(2391)]), !(v && z[b(1200)] === v)); H = !0) - ; - } catch (H0) { - t0 = !0, c0 = H0; - } finally { - try { - !H && S0[b(2187)] && S0[b(2187)](); - } finally { - if (t0) throw c0; - } - } - return z; - } - return function(p, v) { - const b = B; - if (Array[b(2344)](p)) return p; - if (Symbol.iterator in Object(p)) return k(p, v); - throw new TypeError(b(2588)); - }; - }(), m = function(k) { - const p = B; - if (Array[p(2344)](k)) { - for (var v = 0, b = Array(k[p(1200)]); v < k[p(1200)]; v++) b[v] = k[v]; - return b; - } else return Array[p(781)](k); - }, y = 2147483647, w = 36, S = 1, R = 26, A = 38, C = 700, P = 72, E = 128, D = "-", j = /^xn--/, M = /[^\0-\x7E]/, F = /[\x2E\u3002\uFF0E\uFF61]/g, N = { overflow: x(1272), "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, U = w - S, $ = Math[x(1332)], V = String[x(2093)]; - function J(k) { - throw new RangeError(N[k]); - } - function s0(k, p) { - const v = x; - for (var b = [], z = k[v(1200)]; z--; ) - b[z] = p(k[z]); - return b; - } - function o0(k, p) { - const v = x; - var b = k[v(2248)]("@"), z = ""; - b[v(1200)] > 1 && (z = b[0] + "@", k = b[1]), k = k[v(2188)](F, "."); - var H = k[v(2248)]("."), t0 = s0(H, p)[v(2573)]("."); - return z + t0; - } - function u0(k) { - const p = x; - for (var v = [], b = 0, z = k[p(1200)]; b < z; ) { - var H = k[p(2254)](b++); - if (H >= 55296 && H <= 56319 && b < z) { - var t0 = k[p(2254)](b++); - (t0 & 64512) == 56320 ? v[p(818)](((H & 1023) << 10) + (t0 & 1023) + 65536) : (v[p(818)](H), b--); - } else v[p(818)](H); - } - return v; - } - var a0 = function(p) { - const v = x; - return String.fromCodePoint[v(1364)](String, m(p)); - }, f0 = function(p) { - return p - 48 < 10 ? p - 22 : p - 65 < 26 ? p - 65 : p - 97 < 26 ? p - 97 : w; - }, w0 = function(p, v) { - return p + 22 + 75 * (p < 26) - ((v != 0) << 5); - }, m0 = function(p, v, b) { - var z = 0; - for (p = b ? $(p / C) : p >> 1, p += $(p / v); p > U * R >> 1; z += w) - p = $(p / U); - return $(z + (U + 1) * p / (p + A)); - }, D0 = function(p) { - const v = x; - var b = [], z = p[v(1200)], H = 0, t0 = E, c0 = P, S0 = p[v(1428)](D); - S0 < 0 && (S0 = 0); - for (var T0 = 0; T0 < S0; ++T0) - p[v(2254)](T0) >= 128 && J(v(2264)), b.push(p[v(2254)](T0)); - for (var H0 = S0 > 0 ? S0 + 1 : 0; H0 < z; ) { - for (var P0 = H, A0 = 1, U0 = w; ; U0 += w) { - H0 >= z && J(v(1210)); - var v0 = f0(p.charCodeAt(H0++)); - (v0 >= w || v0 > $((y - H) / A0)) && J(v(2040)), H += v0 * A0; - var M0 = U0 <= c0 ? S : U0 >= c0 + R ? R : U0 - c0; - if (v0 < M0) break; - var Z0 = w - M0; - A0 > $(y / Z0) && J(v(2040)), A0 *= Z0; - } - var L0 = b.length + 1; - c0 = m0(H - P0, L0, P0 == 0), $(H / L0) > y - t0 && J(v(2040)), t0 += $(H / L0), H %= L0, b.splice(H++, 0, t0); - } - return String[v(1814)][v(1364)](String, b); - }, E0 = function(p) { - const v = x; - var b = []; - p = u0(p); - var z = p.length, H = E, t0 = 0, c0 = P, S0 = !0, T0 = !1, H0 = void 0; - try { - for (var P0 = p[Symbol[v(1230)]](), A0; !(S0 = (A0 = P0[v(1459)]()).done); S0 = !0) { - var U0 = A0.value; - U0 < 128 && b[v(818)](V(U0)); - } - } catch (Qx) { - T0 = !0, H0 = Qx; - } finally { - try { - !S0 && P0[v(2187)] && P0[v(2187)](); - } finally { - if (T0) throw H0; - } - } - var v0 = b[v(1200)], M0 = v0; - for (v0 && b[v(818)](D); M0 < z; ) { - var Z0 = y, L0 = !0, kx = !1, ox = void 0; - try { - for (var cx = p[Symbol[v(1230)]](), $x; !(L0 = ($x = cx[v(1459)]())[v(507)]); L0 = !0) { - var Rx = $x[v(2391)]; - Rx >= H && Rx < Z0 && (Z0 = Rx); - } - } catch (Qx) { - kx = !0, ox = Qx; - } finally { - try { - !L0 && cx[v(2187)] && cx.return(); - } finally { - if (kx) throw ox; - } - } - var tx = M0 + 1; - Z0 - H > $((y - t0) / tx) && J(v(2040)), t0 += (Z0 - H) * tx, H = Z0; - var dx = !0, ux = !1, vx = void 0; - try { - for (var fx = p[Symbol[v(1230)]](), mr; !(dx = (mr = fx[v(1459)]()).done); dx = !0) { - var gr = mr[v(2391)]; - if (gr < H && ++t0 > y && J(v(2040)), gr == H) { - for (var ce = t0, de = w; ; de += w) { - var ue = de <= c0 ? S : de >= c0 + R ? R : de - c0; - if (ce < ue) break; - var vr = ce - ue, yr = w - ue; - b[v(818)](V(w0(ue + vr % yr, 0))), ce = $(vr / yr); - } - b.push(V(w0(ce, 0))), c0 = m0(t0, tx, M0 == v0), t0 = 0, ++M0; - } - } - } catch (Qx) { - ux = !0, vx = Qx; - } finally { - try { - !dx && fx[v(2187)] && fx[v(2187)](); - } finally { - if (ux) throw vx; - } - } - ++t0, ++H; - } - return b[v(2573)](""); - }, J0 = function(p) { - return o0(p, function(v) { - const b = B; - return j[b(1313)](v) ? D0(v.slice(4)[b(1466)]()) : v; - }); - }, T = function(p) { - return o0(p, function(v) { - const b = B; - return M[b(1313)](v) ? b(1733) + E0(v) : v; - }); - }, q = { version: x(786), ucs2: { decode: u0, encode: a0 }, decode: D0, encode: E0, toASCII: T, toUnicode: J0 }, L = {}; - function Q(k) { - const p = x; - var v = k[p(2254)](0), b = void 0; - return v < 16 ? b = "%0" + v[p(879)](16)[p(1834)]() : v < 128 ? b = "%" + v[p(879)](16)[p(1834)]() : v < 2048 ? b = "%" + (v >> 6 | 192).toString(16)[p(1834)]() + "%" + (v & 63 | 128)[p(879)](16)[p(1834)]() : b = "%" + (v >> 12 | 224).toString(16)[p(1834)]() + "%" + (v >> 6 & 63 | 128)[p(879)](16)[p(1834)]() + "%" + (v & 63 | 128)[p(879)](16).toUpperCase(), b; - } - function G(k) { - const p = x; - for (var v = "", b = 0, z = k.length; b < z; ) { - var H = parseInt(k.substr(b + 1, 2), 16); - if (H < 128) v += String[p(2093)](H), b += 3; - else if (H >= 194 && H < 224) { - if (z - b >= 6) { - var t0 = parseInt(k.substr(b + 4, 2), 16); - v += String[p(2093)]((H & 31) << 6 | t0 & 63); - } else v += k[p(1221)](b, 6); - b += 6; - } else if (H >= 224) { - if (z - b >= 9) { - var c0 = parseInt(k.substr(b + 4, 2), 16), S0 = parseInt(k[p(1221)](b + 7, 2), 16); - v += String.fromCharCode((H & 15) << 12 | (c0 & 63) << 6 | S0 & 63); - } else v += k[p(1221)](b, 9); - b += 9; - } else v += k.substr(b, 3), b += 3; - } - return v; - } - function Z(k, p) { - const v = x; - function b(z) { - const H = B; - var t0 = G(z); - return t0[H(799)](p.UNRESERVED) ? t0 : z; - } - return k[v(1387)] && (k[v(1387)] = String(k[v(1387)])[v(2188)](p.PCT_ENCODED, b).toLowerCase()[v(2188)](p[v(1749)], "")), k[v(2572)] !== void 0 && (k[v(2572)] = String(k[v(2572)])[v(2188)](p[v(1882)], b).replace(p[v(1915)], Q)[v(2188)](p[v(1882)], c)), k[v(1608)] !== void 0 && (k.host = String(k.host)[v(2188)](p[v(1882)], b)[v(1466)]()[v(2188)](p[v(2239)], Q)[v(2188)](p[v(1882)], c)), k[v(1728)] !== void 0 && (k.path = String(k[v(1728)])[v(2188)](p.PCT_ENCODED, b)[v(2188)](k[v(1387)] ? p.NOT_PATH : p[v(2233)], Q)[v(2188)](p[v(1882)], c)), k[v(2066)] !== void 0 && (k[v(2066)] = String(k[v(2066)])[v(2188)](p[v(1882)], b)[v(2188)](p[v(1126)], Q)[v(2188)](p.PCT_ENCODED, c)), k[v(732)] !== void 0 && (k[v(732)] = String(k[v(732)])[v(2188)](p[v(1882)], b)[v(2188)](p[v(2738)], Q)[v(2188)](p[v(1882)], c)), k; - } - function Y(k) { - return k.replace(/^0*(.*)/, "$1") || "0"; - } - function n0(k, p) { - const v = x; - var b = k.match(p.IPV4ADDRESS) || [], z = h(b, 2), H = z[1]; - return H ? H.split(".")[v(2404)](Y).join(".") : k; - } - function i0(k, p) { - const v = x; - var b = k.match(p[v(2405)]) || [], z = h(b, 3), H = z[1], t0 = z[2]; - if (H) { - for (var c0 = H[v(1466)]()[v(2248)]("::")[v(1725)](), S0 = h(c0, 2), T0 = S0[0], H0 = S0[1], P0 = H0 ? H0[v(2248)](":")[v(2404)](Y) : [], A0 = T0.split(":")[v(2404)](Y), U0 = p[v(853)].test(A0[A0[v(1200)] - 1]), v0 = U0 ? 7 : 8, M0 = A0[v(1200)] - v0, Z0 = Array(v0), L0 = 0; L0 < v0; ++L0) - Z0[L0] = P0[L0] || A0[M0 + L0] || ""; - U0 && (Z0[v0 - 1] = n0(Z0[v0 - 1], p)); - var kx = Z0[v(2257)](function(tx, dx, ux) { - const vx = v; - if (!dx || dx === "0") { - var fx = tx[tx[vx(1200)] - 1]; - fx && fx[vx(1857)] + fx[vx(1200)] === ux ? fx[vx(1200)]++ : tx.push({ index: ux, length: 1 }); - } - return tx; - }, []), ox = kx[v(974)](function(tx, dx) { - const ux = v; - return dx[ux(1200)] - tx[ux(1200)]; - })[0], cx = void 0; - if (ox && ox[v(1200)] > 1) { - var $x = Z0[v(2602)](0, ox[v(1857)]), Rx = Z0.slice(ox[v(1857)] + ox.length); - cx = $x.join(":") + "::" + Rx.join(":"); - } else cx = Z0[v(2573)](":"); - return t0 && (cx += "%" + t0), cx; - } else return k; - } - var x0 = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, j0 = "".match(/(){0}/)[1] === void 0; - function q0(k) { - const p = x; - var v = arguments[p(1200)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = {}, z = v[p(772)] !== !1 ? g : l; - v[p(2190)] === "suffix" && (k = (v.scheme ? v.scheme + ":" : "") + "//" + k); - var H = k[p(799)](x0); - if (H) { - j0 ? (b[p(1387)] = H[1], b[p(2572)] = H[3], b[p(1608)] = H[4], b[p(1724)] = parseInt(H[5], 10), b[p(1728)] = H[6] || "", b.query = H[7], b[p(732)] = H[8], isNaN(b.port) && (b[p(1724)] = H[5])) : (b[p(1387)] = H[1] || void 0, b.userinfo = k[p(2170)]("@") !== -1 ? H[3] : void 0, b[p(1608)] = k[p(2170)]("//") !== -1 ? H[4] : void 0, b.port = parseInt(H[5], 10), b[p(1728)] = H[6] || "", b.query = k[p(2170)]("?") !== -1 ? H[7] : void 0, b[p(732)] = k.indexOf("#") !== -1 ? H[8] : void 0, isNaN(b[p(1724)]) && (b[p(1724)] = k[p(799)](/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? H[4] : void 0)), b[p(1608)] && (b[p(1608)] = i0(n0(b[p(1608)], z), z)), b[p(1387)] === void 0 && b[p(2572)] === void 0 && b[p(1608)] === void 0 && b[p(1724)] === void 0 && !b.path && b[p(2066)] === void 0 ? b.reference = "same-document" : b[p(1387)] === void 0 ? b[p(2190)] = p(2086) : b[p(732)] === void 0 ? b[p(2190)] = p(1667) : b[p(2190)] = p(2155), v[p(2190)] && v[p(2190)] !== p(1855) && v[p(2190)] !== b[p(2190)] && (b.error = b[p(2389)] || "URI is not a " + v[p(2190)] + p(1952)); - var t0 = L[(v.scheme || b[p(1387)] || "").toLowerCase()]; - if (!v.unicodeSupport && (!t0 || !t0[p(541)])) { - if (b.host && (v[p(588)] || t0 && t0[p(588)])) try { - b[p(1608)] = q.toASCII(b[p(1608)].replace(z[p(1882)], G)[p(1466)]()); - } catch (c0) { - b.error = b[p(2389)] || p(1951) + c0; - } - Z(b, l); - } else Z(b, z); - t0 && t0.parse && t0.parse(b, v); - } else b[p(2389)] = b[p(2389)] || p(1875); - return b; - } - function $0(k, p) { - const v = x; - var b = p[v(772)] !== !1 ? g : l, z = []; - return k.userinfo !== void 0 && (z[v(818)](k[v(2572)]), z[v(818)]("@")), k.host !== void 0 && z[v(818)](i0(n0(String(k[v(1608)]), b), b)[v(2188)](b[v(2405)], function(H, t0, c0) { - const S0 = v; - return "[" + t0 + (c0 ? S0(1809) + c0 : "") + "]"; - })), (typeof k.port === v(2074) || typeof k[v(1724)] === v(923)) && (z[v(818)](":"), z[v(818)](String(k[v(1724)]))), z[v(1200)] ? z[v(2573)]("") : void 0; - } - var b0 = /^\.\.?\//, K0 = /^\/\.(\/|$)/, sx = /^\/\.\.(\/|$)/, Q0 = /^\/?(?:.|\n)*?(?=\/|$)/; - function O0(k) { - const p = x; - for (var v = []; k[p(1200)]; ) - if (k[p(799)](b0)) k = k[p(2188)](b0, ""); - else if (k.match(K0)) k = k[p(2188)](K0, "/"); - else if (k[p(799)](sx)) k = k[p(2188)](sx, "/"), v.pop(); - else if (k === "." || k === "..") k = ""; - else { - var b = k[p(799)](Q0); - if (b) { - var z = b[0]; - k = k[p(2602)](z[p(1200)]), v[p(818)](z); - } else throw new Error(p(2509)); - } - return v[p(2573)](""); - } - function z0(k) { - const p = x; - var v = arguments[p(1200)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = v[p(772)] ? g : l, z = [], H = L[(v[p(1387)] || k[p(1387)] || "")[p(1466)]()]; - if (H && H.serialize && H[p(538)](k, v), k[p(1608)] && !b[p(2405)][p(1313)](k[p(1608)])) { - if (v[p(588)] || H && H[p(588)]) try { - k[p(1608)] = v[p(772)] ? q.toUnicode(k.host) : q.toASCII(k[p(1608)][p(2188)](b.PCT_ENCODED, G).toLowerCase()); - } catch (S0) { - k.error = k[p(2389)] || p(2045) + (v[p(772)] ? p(1351) : p(1177)) + p(2010) + S0; - } - } - Z(k, b), v[p(2190)] !== "suffix" && k[p(1387)] && (z[p(818)](k[p(1387)]), z.push(":")); - var t0 = $0(k, v); - if (t0 !== void 0 && (v[p(2190)] !== p(1855) && z[p(818)]("//"), z[p(818)](t0), k[p(1728)] && k[p(1728)][p(1128)](0) !== "/" && z[p(818)]("/")), k[p(1728)] !== void 0) { - var c0 = k[p(1728)]; - !v[p(2017)] && (!H || !H[p(2017)]) && (c0 = O0(c0)), t0 === void 0 && (c0 = c0.replace(/^\/\//, "/%2F")), z.push(c0); - } - return k.query !== void 0 && (z.push("?"), z[p(818)](k[p(2066)])), k[p(732)] !== void 0 && (z.push("#"), z.push(k.fragment)), z[p(2573)](""); - } - function X0(k, p) { - const v = x; - var b = arguments[v(1200)] > 2 && arguments[2] !== void 0 ? arguments[2] : {}, z = arguments[3], H = {}; - return !z && (k = q0(z0(k, b), b), p = q0(z0(p, b), b)), b = b || {}, !b[v(1872)] && p[v(1387)] ? (H[v(1387)] = p[v(1387)], H[v(2572)] = p[v(2572)], H[v(1608)] = p[v(1608)], H[v(1724)] = p[v(1724)], H[v(1728)] = O0(p[v(1728)] || ""), H[v(2066)] = p.query) : (p.userinfo !== void 0 || p.host !== void 0 || p[v(1724)] !== void 0 ? (H[v(2572)] = p[v(2572)], H.host = p[v(1608)], H[v(1724)] = p.port, H[v(1728)] = O0(p.path || ""), H.query = p[v(2066)]) : (p[v(1728)] ? (p.path[v(1128)](0) === "/" ? H[v(1728)] = O0(p[v(1728)]) : ((k.userinfo !== void 0 || k[v(1608)] !== void 0 || k[v(1724)] !== void 0) && !k.path ? H[v(1728)] = "/" + p.path : k[v(1728)] ? H[v(1728)] = k[v(1728)][v(2602)](0, k.path[v(1428)]("/") + 1) + p.path : H[v(1728)] = p[v(1728)], H[v(1728)] = O0(H[v(1728)])), H[v(2066)] = p[v(2066)]) : (H.path = k[v(1728)], p[v(2066)] !== void 0 ? H.query = p.query : H[v(2066)] = k[v(2066)]), H[v(2572)] = k.userinfo, H.host = k.host, H[v(1724)] = k[v(1724)]), H[v(1387)] = k[v(1387)]), H[v(732)] = p.fragment, H; - } - function Bx(k, p, v) { - var z = u({ scheme: x(2382) }, v); - return z0(X0(q0(k, z), q0(p, z), z, !0), z); - } - function Le(k, p) { - const v = x; - return typeof k === v(923) ? k = z0(q0(k, p), p) : o(k) === v(2437) && (k = q0(z0(k, p), p)), k; - } - function ir(k, p, v) { - const b = x; - return typeof k === b(923) ? k = z0(q0(k, v), v) : o(k) === b(2437) && (k = z0(k, v)), typeof p == "string" ? p = z0(q0(p, v), v) : o(p) === "object" && (p = z0(p, v)), k === p; - } - function ys(k, p) { - const v = x; - return k && k[v(879)]()[v(2188)](!p || !p[v(772)] ? l[v(2458)] : g[v(2458)], Q); - } - function gx(k, p) { - const v = x; - return k && k[v(879)]().replace(!p || !p[v(772)] ? l[v(1882)] : g[v(1882)], G); - } - var Kx = { scheme: "http", domainHost: !0, parse: function(p, v) { - const b = x; - return !p[b(1608)] && (p[b(2389)] = p[b(2389)] || b(771)), p; - }, serialize: function(p, v) { - const b = x; - var z = String(p[b(1387)])[b(1466)]() === b(1100); - return (p[b(1724)] === (z ? 443 : 80) || p[b(1724)] === "") && (p[b(1724)] = void 0), !p[b(1728)] && (p.path = "/"), p; - } }, or = { scheme: x(1100), domainHost: Kx.domainHost, parse: Kx[x(2156)], serialize: Kx.serialize }; - function cr(k) { - const p = x; - return typeof k[p(1527)] == "boolean" ? k[p(1527)] : String(k[p(1387)]).toLowerCase() === "wss"; - } - var Jx = { scheme: "ws", domainHost: !0, parse: function(p, v) { - const b = x; - var z = p; - return z.secure = cr(z), z[b(1019)] = (z[b(1728)] || "/") + (z[b(2066)] ? "?" + z[b(2066)] : ""), z.path = void 0, z[b(2066)] = void 0, z; - }, serialize: function(p, v) { - const b = x; - if ((p[b(1724)] === (cr(p) ? 443 : 80) || p[b(1724)] === "") && (p[b(1724)] = void 0), typeof p[b(1527)] === b(958) && (p[b(1387)] = p[b(1527)] ? "wss" : "ws", p[b(1527)] = void 0), p.resourceName) { - var z = p[b(1019)].split("?"), H = h(z, 2), t0 = H[0], c0 = H[1]; - p[b(1728)] = t0 && t0 !== "/" ? t0 : void 0, p[b(2066)] = c0, p[b(1019)] = void 0; - } - return p[b(732)] = void 0, p; - } }, dr = { scheme: "wss", domainHost: Jx[x(588)], parse: Jx[x(2156)], serialize: Jx[x(538)] }, bs = {}, ur = "[A-Za-z0-9\\-\\.\\_\\~" + x(1143) + "]", ix = "[0-9A-Fa-f]", ws = s(s(x(2014) + ix + "%" + ix + ix + "%" + ix + ix) + "|" + s(x(2520) + ix + "%" + ix + ix) + "|" + s("%" + ix + ix)), Ss = x(1556), Ps = x(1216), ks = r(Ps, '[\\"\\\\]'), Es = x(2578), Cs = new RegExp(ur, "g"), Lx = new RegExp(ws, "g"), Is = new RegExp(r(x(2399), Ss, x(2599), x(1837), ks), "g"), fr = new RegExp(r(x(2399), ur, Es), "g"), Rs = fr; - function $e(k) { - const p = x; - var v = G(k); - return v[p(799)](Cs) ? v : k; - } - var lr = { scheme: x(2071), parse: function(p, v) { - const b = x; - var z = p, H = z.to = z.path ? z.path[b(2248)](",") : []; - if (z[b(1728)] = void 0, z[b(2066)]) { - for (var t0 = !1, c0 = {}, S0 = z[b(2066)][b(2248)]("&"), T0 = 0, H0 = S0.length; T0 < H0; ++T0) { - var P0 = S0[T0][b(2248)]("="); - switch (P0[0]) { - case "to": - for (var A0 = P0[1][b(2248)](","), U0 = 0, v0 = A0.length; U0 < v0; ++U0) - H[b(818)](A0[U0]); - break; - case b(1263): - z.subject = gx(P0[1], v); - break; - case "body": - z.body = gx(P0[1], v); - break; - default: - t0 = !0, c0[gx(P0[0], v)] = gx(P0[1], v); - break; - } - } - t0 && (z[b(1899)] = c0); - } - z[b(2066)] = void 0; - for (var M0 = 0, Z0 = H[b(1200)]; M0 < Z0; ++M0) { - var L0 = H[M0].split("@"); - if (L0[0] = gx(L0[0]), v[b(541)]) L0[1] = gx(L0[1], v)[b(1466)](); - else try { - L0[1] = q[b(1433)](gx(L0[1], v).toLowerCase()); - } catch (kx) { - z[b(2389)] = z[b(2389)] || b(1417) + kx; - } - H[M0] = L0.join("@"); - } - return z; - }, serialize: function(p, v) { - const b = x; - var z = p, H = d(p.to); - if (H) { - for (var t0 = 0, c0 = H.length; t0 < c0; ++t0) { - var S0 = String(H[t0]), T0 = S0[b(1428)]("@"), H0 = S0.slice(0, T0).replace(Lx, $e).replace(Lx, c).replace(Is, Q), P0 = S0[b(2602)](T0 + 1); - try { - P0 = v[b(772)] ? q.toUnicode(P0) : q[b(1433)](gx(P0, v)[b(1466)]()); - } catch (M0) { - z.error = z[b(2389)] || b(2103) + (v[b(772)] ? b(1351) : b(1177)) + b(2010) + M0; - } - H[t0] = H0 + "@" + P0; - } - z[b(1728)] = H.join(","); - } - var A0 = p[b(1899)] = p[b(1899)] || {}; - p[b(1263)] && (A0[b(1263)] = p[b(1263)]), p[b(2271)] && (A0[b(2271)] = p[b(2271)]); - var U0 = []; - for (var v0 in A0) - A0[v0] !== bs[v0] && U0[b(818)](v0[b(2188)](Lx, $e)[b(2188)](Lx, c)[b(2188)](fr, Q) + "=" + A0[v0][b(2188)](Lx, $e)[b(2188)](Lx, c)[b(2188)](Rs, Q)); - return U0[b(1200)] && (z[b(2066)] = U0[b(2573)]("&")), z; - } }, Fs = /^([^\:]+)\:(.*)/, hr = { scheme: "urn", parse: function(p, v) { - const b = x; - var z = p[b(1728)] && p.path[b(799)](Fs), H = p; - if (z) { - var t0 = v[b(1387)] || H[b(1387)] || b(502), c0 = z[1][b(1466)](), S0 = z[2], T0 = t0 + ":" + (v.nid || c0), H0 = L[T0]; - H[b(1315)] = c0, H[b(567)] = S0, H[b(1728)] = void 0, H0 && (H = H0.parse(H, v)); - } else H[b(2389)] = H[b(2389)] || b(2690); - return H; - }, serialize: function(p, v) { - const b = x; - var z = v.scheme || p.scheme || "urn", H = p[b(1315)], t0 = z + ":" + (v[b(1315)] || H), c0 = L[t0]; - c0 && (p = c0[b(538)](p, v)); - var S0 = p, T0 = p[b(567)]; - return S0[b(1728)] = (H || v[b(1315)]) + ":" + T0, S0; - } }, Ns = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, pr = { scheme: x(1115), parse: function(p, v) { - const b = x; - var z = p; - return z.uuid = z[b(567)], z[b(567)] = void 0, !v[b(1872)] && (!z[b(2035)] || !z.uuid[b(799)](Ns)) && (z[b(2389)] = z.error || b(1482)), z; - }, serialize: function(p, v) { - const b = x; - var z = p; - return z[b(567)] = (p[b(2035)] || "")[b(1466)](), z; - } }; - L[Kx.scheme] = Kx, L[or[x(1387)]] = or, L[Jx[x(1387)]] = Jx, L[dr[x(1387)]] = dr, L[lr[x(1387)]] = lr, L[hr[x(1387)]] = hr, L[pr.scheme] = pr, a[x(2108)] = L, a[x(1730)] = Q, a.pctDecChars = G, a[x(2156)] = q0, a[x(1076)] = O0, a[x(538)] = z0, a[x(614)] = X0, a[x(1987)] = Bx, a.normalize = Le, a[x(971)] = ir, a[x(888)] = ys, a.unescapeComponent = gx, Object[x(1907)](a, x(2157), { value: !0 }); - }); - }(Xx, Xx.exports), Xx[i(1791)]); -} -var He, Or; -function rr() { - return Or || (Or = 1, He = function i(e, t) { - const a = B; - if (e === t) return !0; - if (e && t && typeof e == a(2437) && typeof t == a(2437)) { - if (e[a(2331)] !== t[a(2331)]) return !1; - var x, r, s; - if (Array[a(2344)](e)) { - if (x = e.length, x != t[a(1200)]) return !1; - for (r = x; r-- !== 0; ) if (!i(e[r], t[r])) return !1; - return !0; - } - if (e[a(2331)] === RegExp) return e[a(1411)] === t[a(1411)] && e[a(1483)] === t[a(1483)]; - if (e[a(1764)] !== Object.prototype[a(1764)]) return e[a(1764)]() === t.valueOf(); - if (e.toString !== Object[a(1166)][a(879)]) return e[a(879)]() === t[a(879)](); - if (s = Object.keys(e), x = s.length, x !== Object[a(2278)](t)[a(1200)]) return !1; - for (r = x; r-- !== 0; ) if (!Object.prototype[a(2452)][a(2518)](t, s[r])) return !1; - for (r = x; r-- !== 0; ) { - var o = s[r]; - if (!i(e[o], t[o])) return !1; - } - return !0; - } - return e !== e && t !== t; - }), He; -} -var Ue, Ar; -function So() { - return Ar || (Ar = 1, Ue = function(e) { - const t = B; - for (var a = 0, x = e[t(1200)], r = 0, s; r < x; ) - a++, s = e[t(2254)](r++), s >= 55296 && s <= 56319 && r < x && (s = e[t(2254)](r), (s & 64512) == 56320 && r++); - return a; - }), Ue; -} -var Ve, Tr; -function Ie() { - const i = ["delete", "; else vErrors = vErrors.concat(", "; else vErrors = null; } ", " for language ", ", (dataPath || '')", "toResolveHierarchy", "Comfy侧SDPPP版本({{comfyVersion}})与插件({{pluginVersion}})不匹配,运行可能有问题", "dataPathArr", "_error", "skipKeywords", "toLoad", "coerceTypes", " ? '", "isValidLookup", "reloadResources", "comfyAPI is not initialized, maybe comfyUI is too old", "requestIdSeq", "https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js", "addResources", "pow", "Note", "; else if (", "sdppp-heartbeat", "action", " = false; if (e instanceof ValidationError) ", " , params: { comparison: ", "onClose", "parentData", ".dataPath = (dataPath || '') + ", "notifications/resources/updated", "No linked layer for {{0}}", "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", "~standard", "minValue", "options", "ParseError", "languageDetector", "URN can not be parsed.", ".call(this, ", "maxLength", "All", "namespaces", "[^\\%]", "received", "适配至当前图层", "__cycle__", "concat", "Back", " , data: ", " = typeof ", "some", "logging/setLevel", " retries", " < ", "_addCheck", "25[0-5]", "setupConnectionHandlers", "sendToolListChanged", "newlayer_canvas", "favorites", " && !(", "images", " from id ", ".type || 'string'; if (", "maxRetries", "getNodeIds", "#6600CC", "', missingProperty: '", "uniqueItems", "Server does not support notifying of prompt list changes (required for ", ` + '" schema' `, "DateTimeFormat", "ZodObject", "saveMissingPlurals", "listeners", "transport", "def", "#FF0000", " = false; else if (", "safeParse", " ( ", "' + ", "actionExecutor", "isSafeInteger", "Sending image...", "NOT_FRAGMENT", "wait", "; } var err = ", "unwrap", "_regex", "找不到图层: {{0}}", "_compile", "onAbort", "url", "不裁剪", "finally", "resolvedOptions", "long", "graph", "async schema in sync schema", "click", "trim", "exactly", " not found on node ", "#FF00FF", "ZodEnum", "disconnected", "给发送的图片创建文档", " , params: { missingProperty: '", " + ']'", "mountedEndpoints", "extendTranslation", 'no schema with key or ref "', "Download", "alert", "InvalidRequest", "interpolate", "multipleOf", "Waiting in queue", "urn", " , message: 'should NOT be ", "del", "objectValues", "Expected ", "done", "less than or equal to", "ZodString", "set", " != 'undefined' && ", "_processInputParams", "arz", "]; if (", "Get selection failed", "mergeObjectSync", "cuid", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", "destroy", 'Invalid input: must start with "', " , schema: false , parentSchema: validate.schema", "你的工作流", "RULES", " var isAdditional", "isDuration", "合并组失败", "getConnection", "sdppp_widgetable_title", "week", "types", "relative-json-pointer", "服务不可用 (503)", "invalid_enum_value", "Login Successful", " ms", "ctx", "#00CC66", "serialize", "round", "exists", "unicodeSupport", "logging", "effect", "partialBundledLanguages", "_responseHandlers", "{0,6}", "; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ", "parent", ".additionalItems", " if (schema", " , (dataPath || '')", "saveMissing", " if (errors === ", "throwIfAborted", "onclose", "pluralCategories", "InternalError", "当前图层", "isURL", ".length > ", "tools/call", "[0]; ", "; if (", "uiWeightSum", "No first related layer in {{0}}", "Canvas", "nss", "contextualErrorMap", "count", "validation", "property", "style", "createErrors", "missed to pass in variable ", "maxProperties", "queue", "uxp", "errSchemaPath", "Internal error", "sendErrorResponse", "sourceCode", "nodeId", "BigInt must be ", "获取选区失败", "yrs", "entries", "DEBUG", "domainHost", "invalid_return_type", "resetTimeoutOnProgress", "schema should be object or boolean", "ZodBigInt", "usePattern", "optionsMap", "Failed to request initial state for ", '" (see option extendRefs)', "pre", "clearItems", "max", " == 'object' && Array.isArray(", " = true; if (", "arrayKeywords", "loadSchema", "([01]\\d|2[0-3]):[0-5]\\d(:", "findPath", "min", "alwaysFormat", "comfyAPI", "Exclude selection", "brand", "clear", " = errors;var ", "convert widget {0} failed:", "resolveComponents", "fallbackNS", "Client does not support sampling (required for ", "Discriminator property ", "setPrototypeOf", "显示发送的图片", "Number must be ", "开启自动运行", "; else vErrors = null; } ", ".dataPath === undefined) ", "清空所有图片", "#FFCC33", "); errors = vErrors.length; for (var ", "table", "client", "3077619YjcjzC", "mesh:state:update", "服务器错误 (500)", "[j])) { ", "formData", "sdppp", " == null) ", "适配至画布", " && ", "dataType", "MIN_SAFE_INTEGER", " = validate.schema", "catch", "rootId", "Unauthorized (401)", ") : ", "Confirm", "safeParseAsync", "changeTracker", "Crop by selection", "#FF33FF", "Server does not support sampling (required for ", "kind", " not implemented for node ", "usedNS", "lastIndex", "connected", "relatedRequestId", "load", "invalid_intersection_types", "initialState", " outer: for (;i--;) { for (j = i; j--;) { if (equal(", "; ", "createInstance", "当前任务数:", "openWorkflowJSON", "uiWeight", "mountTo", "tools", "执行成功", "missingKeyNoValueFallbackToKey", "nonempty", "emergency", "range", " not in path ", "__internal_requestInitialState_", "formatter", "resolveRunImages", "setupConnectionCloseHandler", " var schema", "))))) {", "Please select the image to get", "_cachedPath", "]; return false; ", "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "_cached", "getConnectionToNodeInternal", " console.log(", "exec_info", "'].definition; var ", "symbol", "valueType", "readonly", "heartbeatInterval", "channel", " %c", "registerHandler", "_progressHandlers", "closeWorkflow", " , message: 'should NOT have ", "unrecognized_keys", "pes", "Elicitation response content does not match requested schema: ", "setupStreamHandlers", "cuid2", " = formats[", "/required", "there was no format function for ", "openWorkflow", "Server does not support logging (required for ", "onmessage", "isProducer", "language", "Document {{0}} not found", "{1,4}", "find", "addIssue", "exclusive", "reset", "{2})", "粘贴你的模型名称", "sendPromptListChanged", " when property ", "Current Layer", ` , message: 'should match format "`, "workflows/", "No images", "data", "schema", " === undefined || ", "快捷键选图功能仅登陆后可用", "checkDataType", "_serverInfo", "fragment", "queuePrompt", " !== undefined) ; ", "notice", "arb", "simplifyPluralSuffix", "property ", ".type", "registerProxyForwardHandler", "customRule", "; }", "processors", "acm", "dfsInterval", "createNotificationHandler", "assign", "发送到PS", "protocol", "escapeFragment", "Node definition not found for current node ", "allOf", "Uploading, if the image too large, may be stuck...", "++) { ", "protocolVersion", "maximum", "#3399CC", "sourceType", "widgets", "spa", "afb", " var startErrs", "Jump to last", "__DEFAULT__", "objectKeys", "node_id", " / ", "warning", "__proto__", " + '", "HTTP URIs must have a host.", "iri", "正向裁剪(Outpaint)", ` , message: 'should pass "`, "sqr", "parentElement", ") { var err = ", "sdppp/streamRequest", "initializeConsumer", "Task execution failed: {{error}}", "from", " = true; break; }", "ZodError", " || validate.schema", "[\\uE000-\\uF8FF]", "2.1.0", "isInteger", "#FF9900", "saveMissingTo", "parseAsync", "schemaPath", "useDefault", "humanize", "useDefaults", "$$$$", " = +", "toHash", "errorMap", "match", " = false; for (var ", "curlayer_curlayer", "removeItem", "prepareLoading", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ", " validate.errors = vErrors; return false; ", "Fit to current layer", "sendLoggingMessage", "getRegExp", "[ ]*{", "contextSeparator", "varReplace", "names", "getCapabilities", "#FFCC00", "SDPPP may not be installed or version mismatch (404)", "log", ` if (typeof item == 'string') item = '"' + item; `, "push", "localeCompare", "正在创建任务...", "cleanup", "format", "cycles", "$id", "streamIterator", "ZodVoid", "joinValues", "isInt", "setDefaultNamespace", "setupAbortHandler", "$t(", "sdpppX2", ".else", "meta-schema not available", "#9933FF", " ", "allErrors", " var ", "processCode", ") && (missing", "3461339pCsHsn", "exactLength", "Layer not found: {{0}}", " var validate = ", "isInitialized", "color: ", "readingCalls", "dataVar", "void", "未实现 (501)", "loaded", "isFinite(", "IPV4ADDRESS", "typeof ", "debug", "anyOf", "Show sent images", "coerce", "ownProperties", " than ", "random", "heartbeatTimeoutTimer", "unknown", "unescapeSuffix", " if (errors === 0) return data; ", "http://json-schema.org/draft-07/schema", "hasAction", "rest", " = '' + ", "hasLoadedNamespace", "getConnectionToNode", "keyPrefix", " = undefined; ", "27354TIjOMo", "getBestMatchFromCodes", "version", " !== parseInt(division", "schemaHasRulesExcept", "toString", "` could not be extracted from all schema options", "registerCapabilities", "getLanguagePartFromCode", "ComfyUI加载中...", "getUsedParamsDetails", "outgoing", "Content", " var i = ", "escapeComponent", " return errors === 0; ", " } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ", "disable", "nodes", "filter", "pick", "removeCatch", "mergeArray", "dir", ")' returned an object instead of string.", "executed", "Failed to send response: ", ") ? ", "#00CC00", "remove", "_opts", ") == -1 ", "_loadingSchemas", "translate", " } ", "var ", "Refresh workflow list", ".length; ", "_parseAsync", "ydd", "_addSchema", "store", "syncWorkflows", "pendingCount", "openWorkflows", "exclType", "assertNever", " = false; ", "按回车打开应用: {{appName}}", "string", "=startErrs", "exactly equal to ", "offset", "unknownFormats", "notifications/roots/list_changed", "_onrequest", "registerDirectRequestHandler", "{5}", "maxReplaces", "implementAction", " == 'string' && ", "positive", "$schema", "Create layer failed", "custom", "$schema must be a string", "removeNamespaces", "MissingRefError", "backend", "missingInterpolationHandler", "statements", "meta", "nan", "removeByRequestId", " , message: '", "acq", "$async", " self._opts.$comment(", "ZodNaN", "interrupt", "++) { if (", "ComfyManager not found, cannot reboot", "usedKey", " ) || ", "boolean", "minimum", "#00CCFF", " && Object.prototype.hasOwnProperty.call(", "Method not found", "omit", "No connection available", " === false) ", "[0-9]", "_cache", "\\%25|\\%(?!", "ckb", "errs__", "equal", "#9933CC", "isLanguageChangingTo", "sort", ".errors; else vErrors = vErrors.concat(", "nodeIndexes", "not_finite", "assertCanSetRequestHandler", "removeRequestHandler", "[vV]", "nullable", "registerBroadcastHandler", "auto", "); if (", "parseMissingKeyHandler", "date-time", "definitions", " + '\\']'", "handleDirectProxyForward", "Store not found for ", "getConnectionCount", "messageQueue", "Invalid ", "#3333FF", "_oninitialize", "Graph must have at least one node", "新图层", " } if (", '" ignored in schema at path "', "findPathInternal", "promise", "extra", "translator", " == errors) {", "dataLevel", " == ", "stream", "locale", "workflow", "快捷键选图功能仅在插件窗口聚焦时可用", "sd-ppp-static/sdppp_images/", "init: no languageDetector is used and no lng is defined", "baseId", " = vErrors[", " - no connection available", "schemaId", " !== undefined && ( typeof ", "#66CC33", "resourceName", "day", ".length , ", "cmp", "callValidate", "extendRefs", "languageOnly", ")) { ", " ucs2length(", "edges", "未授权 (401)", "schema id must be string", "enforceStrictCapabilities", "设置图层的文本", "if (", "color", "' , dataPath: (dataPath || '') + ", "this", "order", "finished", "formatters", "required", "_capabilities", "调整预览文档尺寸", "请输入您的RunningHub API Key", "Current Tasks:", "mergeObjectAsync", "sdppp/requestInitialState/", "自动从PS重新获取", "#33CCCC", "notifications/resources/list_changed", "async keyword in sync schema", ") break; ", "_schemas", ") { ", "[A-Fa-f]", "item", "Get pixel of {{0}} failed", " must be number", "backendConnector", "ComfyUI服务器重连中", " = await ", "addCached", "supportedLngs", "You are passing a wrong module! Please check the object you are passing to i18next.use()", "messages", "splice", "Action handler ", "/additionalItems", "tools/list", " items' ", "checkDataTypes", "pga", "acw", "ayh", "sendStreamData", "pluralRulesCache", "removeDotSegments", "logger", "removeResourceBundle", "Get layer info", "网关超时 (504)", "Synchronous parse encountered promise.", "store:update:", "ayp", "#CCCC00", "isSupportedCode", "escapeQuotes", "logger must implement log, warn and error methods", "assertEqual", "datetime", "ZodNull", ") { ", "filename", "Paste WebApp ID here", ".additionalProperties", "; if (vErrors !== null) { if (", "pluralSeparator", "Email: {{email}}", "year", "_parseSync", "https", "pingInterval", "isTop", "Save and run immediately", "Please select the position to send image", "errorPath", "isTime", "broadcastManager", "create", "values", "transform", ' !== "object")', "pipe", "if ( ", " = true , j; if (i > 1) { ", "urn:uuid", "initialized", "_getId", "[i], ", "should NOT have additional properties", ") break; } ", "getConnectionInternal", "negative", "创建预览文档", " = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ", "strictDefaults", "NOT_QUERY", "executeHandlerAsync", "charAt", "root", "图层 {{0}} 不是一个组", "regex", " already exists, which would be overridden", "modules", "default is ignored in the schema root", "all", "isRoot", "ucs2length", "additionalItems", "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (", "close", "tried", " try { await ", "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF", "formatParams", " element(s)", "appendNamespaceToMissingKey", "buildAdjacencyList", "_refs", "loadLanguages", "ZodCatch", "too_big", "forward", "RequestTimeout", "deprecate", "fallbackRequestHandler", "#66CC00", 'custom keyword "', "InvalidParams", " = false; else {", "\\.\\d{", 'key "', "assertNotificationCapability", "Heartbeat timeout for poster ", "/*# sourceURL=", " = ", "prototype", "lte", " } }", "isCUID", "getValidEnumValues", "#/definitions/simpleTypes", "detail", "Received a progress notification for an unknown token: ", "root.refVal[0]", "sendFinishedResponse", "isCUID2", "ASCII", "regexp", "nonpositive", "Number must be finite", "getCanonicalLocales", '"; ', "canvas", "ZodTuple", "hasConsumerBinding", "isBase64url", "addMetaSchema", "verbose", "ping", "regExpMap", "validate.schema", " in ", "getKeyword", "stateUpdate", "[^\\%\\:]", "array", "ValidationError", " !== ", "getPath", "length", ` , message: 'should match pattern "`, "skipInterpolation", ") || ", "code", "assertCapabilityForMethod", "addNamespaces", "Unknown error ({{code}})", "; } catch (e) { ", "passthrough", "invalid-input", "activeState", "pst", "minLength", ") { for (var ", "ulid", "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", "#9900FF", "setInterval", "languageChanged", "[^\\%\\/\\:\\@]", "substr", "strictNumbers", '.schemaPath = "', "translation", "Outpaint (positive crop)", " break; ", "ZodUnion", "ZodOptional", "加载中...", "iterator", " } } ", "key", "getNodeTitle", "stopMonitoring", "services", "errToObj", " : ", "forEach", "Failed to reboot ComfyUI", " var async", "xmn", " for interpolating ", "send", "notifications/prompts/list_changed", "userDefinedKeySeparator", "precision", "escapeValue", "#FF9933", "exception", " { keyword: '", "执行失败", "enum", "typeName", ", '", "i18nFormat", "getNodeStore", "jsonStringifyReplacer", "validateHandlerType", "step", " = errors; var ", "get", "Create document for sent images", "subject", "isClone", "lowerCaseLng", "Comfy Manager未安装,无法重启", ", exclusive: ", "pending", "pong", "assertIs", "true", "Overflow: input needs wider integers to process", "detectCycles", "; var ", " cannot be resolved", "#0099FF", 'did not save key "', "int", "createStreamState", "subscribe", "catchall", "nullish", "days", ".length ", "formats", "partial", "Creating task...", "disconnect", "custom keyword definition is invalid: ", "merge", "unionErrors", "_any", " else { ", "lng", "ActionSet {{0}} 未找到", "missed to resolve ", "从PS", "off", "pbt", "reconnected", "#0033FF", `Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`, "Server does not support notifying about resources (required for ", "level", "exception_message", ".validateSchema(", "normalizeId", "secs", "emoji", "#FF6600", "notifications/tools/list_changed", "currentNodeId", "test", "initAsync", "nid", "waitingReads", " = false;for (var ", "updateMissing", " , message: 'should match some schema in anyOf' ", "ref/prompt", "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", ") ) ", "bigint", "handleConnectionClose", "setupNotificationHandler", " else { ", " var err = ", "workflows", "greater than or equal to ", ") { ", "selection", "floor", "one", "console", ") { errors = ", "++) if (equal(", "#33CC33", "{0,2}", "async format in sync schema", '"; } ', "execution_interrupted", "function", "right", "removeSchema", "addConnection", "Node definition not found for ", "macro", "HeartbeatTimeoutError", "newlayer_selection", "schema $id is different from id", "Unicode", "request", "getSuffixes", "var default", " is present' ", "getState", "正在运行", "1315xIobfY", "connectionMonitor", "optional", "getNeighbors", "dependencies", "shu", "apply", "#CC33FF", "storeManager", "ignoreJSONStructure", "prp", "lngs", "strict", "getFixedT", "组 {{0}} 中没有第一个相关图层", "acy", "save", "schema is invalid: ", "formatLanguageCode", "rootData", "ZodDiscriminatedUnion", "initializedStoreOnce", "strictKeywords", "now", "propsKeywords", " , message: 'property name \\'", "#0066CC", " , message: 'can\\'t resolve reference ", "assert", "scheme", ".schema = ", '$ref: validation keywords used in schema at path "', "toJSON", "currency", " is not a valid identifier", "sec", "} else { errors = ", "(typeof ", "#0000CC", "getDefaultValuesFromSchema", "Failed", "String must contain ", "isDatetime", "#CCCC33", "no plural rule found for: ", "+\\.", "网关错误 (502)", "Cycle detected: ", "actionHandlers", "fullPath", "clone", "fast", '" as the namespace "', "source", "position", "then", "retryDelay", "http://json-schema.org/draft-07/schema#", "missingKey", "Email address's domain name can not be converted to ASCII via punycode: ", "errors", "passContext", "node_errors", "Invalid proxy forwarding: current node ", "joinArrays", "_def", "typ", "customErrors", "#FF6633", "false", "lastIndexOf", "Meta-schema for $data reference (JSON Schema extension proposal)", "state", "#33CC99", 'unknown format "', "toASCII", "任务执行失败: {{error}}", "removeAdditional", "if (!", " if (true) {", "Mask", "heartbeatTimeout", "jsonPointers", "notification", "没有链接图层: {{0}}", "sendAbortedResponse", ".test(", "Running", "getSchema", "#FF3366", "Positive Crop", "$dataMetaSchema", "PluralRules", "请选择要发送图像的位置", "_transport", "Request timeout (408)", "compile", "inlineRef", "validateKeyword", "WARNING DEPRECATED: ", " = true; } else { ", "next", " return data; ", "_clientVersion", "pingConnection", "此处粘贴 WebApp ID", ".async; ", "Server does not support tools (required for ", "toLowerCase", "isObject", "aeb", "shorter", "_meta", " = false , ", "zero", "ZodArray", "comfy side transport.onerror", "Quality {{percent}}%", "resetRegExp", "postProcess", " === undefined ", "parseInt", "file://", "运行了 {{duration}} 秒,{{message}}", "UUID is not valid.", "flags", "removeEventListener", "Please select the mask to get", "resources/unsubscribe", " ? ", "跳转到最后一个", " , message: 'should have ", "setupBroadcastHandler", "Uncaught error in notification handler: ", "_unknown", "abs", " {} ", "applyPostProcessor", "Clear all images", "Keyword ", "languageChanging", "A discriminator value for key `", "sdppp/directRequest", "passingSchemas", "ZodUndefined", "Server does not support resources (required for ", "上传中,如果图片过大,可能会卡顿...", "addFormat", "email", "contains", "loadOne", "You must pass an array of schemas to z.tuple([ ... ])", " has duplicate value ", " , params: { property: '", "|0?0?", "processQueueItems", " not found for node ", "encountered", "Enter your RunningHub API Key", "app", "posterIdentifier", "context", "metaSchema", "key '", " === 1) ", "getSuffix", "actions", "?\\:\\:", "getClientVersion", "secure", "getOwnPropertyNames", "markConsumerBinding", " === null || ", "Canvas bounds", "result", "namespace", "after app.queuePrompt errors: ", "pluralResolver", "requestId", "'[\\'' + ", "Stop and cancel all", "languageUtils", " not found in graph definition", "_limitItems", "at least", "get_layer_info: layer_identify required", "nonnegative", "Server does not support notifying of tool list changes (required for ", " } } else { ", " division", "uiLocale", "getTime", "Negative Crop", "streamManager", " } if (errors === ", " ); if (isAdditional", "$el", "click to restore", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "tDescription", "Bounds", "Internal ZodObject error: invalid unknownKeys value.", " == 'string' || ", " } ", " != 'boolean') ", "timeout", "isTransportReady", " && Object.prototype.hasOwnProperty.call(", "Logout", "maxValue", "refs", "content", "responseSchema", "bind", "peo", "monitoringIntervals", "newlayer_curlayer", "(\\.\\d+)?", "=0; ", "4577344RdzRYP", "Merge group failed", "propertyNames", "Limit image size", "Invalid input", "Array.isArray(", " , message: 'should be equal to constant' ", "isNaN", " throw new ValidationError([", "_parse", "maxTotalTimeout", "sdppp/streamResponse", "{4}", "); for (var ", "'", " , schema: ", "sdppp_workflow_alias", "setComfyOrgAPIKey", " , parentSchema: validate.schema", "definition", "workflowManager", "emit", "&", "obj", "widgetableStructure", "workflow-run", "http://json-schema.org/schema", "[\\:]", ".schemaPath === undefined) { ", " = 'else'; ", "sdppp 运行 Photoshop Action", "host", "init: i18next is already initialized. You should call init just once!", "connect", "is a required property", "Date must be ", "createMessage", "keyword", "uri-reference", "oninitialized", "Fit to canvas", ") {", ", rootData) ", "endTurn", "MCP Server Error:", "Selection", " + ", "Error sending store update for ", "gte", "onerror", " levels up, current level is ", "refine", "statusText", "missingRefs", "skips", "strong", "date", "getConnectedNodeIds", "async ", "options.loadSchema should be a function", "var pattern", "_fragments", "isOpen", "setProperty", "buildDirectedAdjacencyList", "resources/read", '"number"', "debouncedNotificationMethods", "getResourceBundle", " === '' || ", "hasLanguageSomeTranslations", "maxItems", "yds", "added", " if (typeof itemIndices[item] == 'number') { ", "app.queuePrompt caught", "exclIsNumber", "milliseconds", "manuallyExtractDefaults", "reject", "prs", "default", "separator", "userAgent", "sendResourceUpdated", "#FF0099", "minItems", "mcpMesh", "#0033CC", "localRefs", "absolute", ".data = ", "\\$&", "setRequestHandler", "returnObjects", "nodeProxies", "正向裁剪", "querySelector", "_instructions", "ZodLazy", "aec", "ZodSet", " ) ", "race", "点我恢复", " is loaded but ", "nsSeparator", "maxTokens", " = null;", "resourceStore", ") { for (var ", "registerRequestHandler", " || ", "executing", "extensionManager", "Close", "getDefinition", "properties ", "#3300FF", "initializeResponseQueue", "api", "isPersisted", "processStreamQueue", "keySeparator", "Workflow stopped by user", "nodeStores", "JWT", "#/definitions/nonNegativeInteger", "should have required property \\'", "await ", "appendNamespaceToCIMode", "(?:", "[\\-\\.\\_\\~]", "_path", "execution_error", "Invalid function return type", "status", "writeOnly", "unknown keyword: ", "resource", "init", "isFinite", "self", "_requestHandlers", "async", "comfy", " if (! ", "port", "reverse", "(队列:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "Failed to send cancellation: ", "path", " properties' ", "pctEncChar", "prompt_id", "ZodNullable", "xn--", "startTime", "Module", "; } ", "0?[1-9]", "setupStoreBinding", "loadNamespaces", " , params: { allowedValues: schema", "resolveRef", " } ", "fcName", """, "image", " if (false) { ", "widgetable", "listenMessageCallback", "NOT_SCHEME", "createAbortHandler", "#3300CC", "strictCreate", "forwarded", "size", " , message: 'should be equal to one of the allowed values' ", "isIP", "needsPlural", ") ) { ", "newdoc_canvas", "hasResourceBundle", "initializeNodeStores", "{0,5}", ")) { ", "valueOf", "bindConsumer", "获取图层信息", "addSchema", "get_layer_info: 需要 layer_identify", "invalid_date", "toFixed", "#CC6600", "No edge defined from ", "nestingSuffix", ".validate", "质量{{percent}}%", "origin", "messagePoster", "ayn", "innerType", "{2}", "#33CC66", "isConnected", "ZodPipeline", "MethodNotFound", "listRoots", "aborted", " , parentSchema: validate.schema", " if (!", "createWithPreprocess", "sdppp/updateStore/", "exports", "cacheInBuiltFormats", " === '' ", "argumentsError", "checkState", " , message: 'should contain a valid item' ", " || ! Object.prototype.hasOwnProperty.call(", "\\:\\:", "[object Number]", "node", "jwt", "__nwjs", "getter", "usedLng", "base64url", "keyType", "put", "warn", "%25", "(.+?)", "&subfolder=", "#3333CC", "notificationQueue", "fromCodePoint", "timeoutId", "#0099CC", "startsWith", "ZodLiteral", "capabilities", "setupStreamRequestHandler", "arrayToEnum", "mcp-mesh-router", "mode", "显示预览框 ({{count}}张图片)", "detection", "setState", "Auto repick from PS", "#CC3333", "missingKeyHandler", "[^\\%\\/\\@]", "How to get APIKey", "请选择要获取的遮罩", "ZodReadonly", "toUpperCase", "arq", "invalid_literal", '[\\"]', "setupGraphStoreSync", "Selection bounds only", "addMessageEventListener", "ZodAny", "pbu", " if (", "Client does not support listing roots (required for ", " , message: 'should NOT have more than ", " characters' ", " && !", "removeNotificationHandler", "forkResourceStore", "获取结果失败: {{error}}", "augment", "lazycreate", "_onprogress", "payload", "suffix", ".then", "index", "正在等待图片上传...", "ZodRecord", "heartbeatTimer", "[\\/\\?]", "minute", "never", "暂无图片", "schemaErrorMap", '" for languages "', "应用ID:", "resources", "hour", "Disk", "任务未完成,当前状态: {{status}}", "tolerant", ", schema", " = [", "URI can not be parsed.", "; else vErrors = null; }", "errorDataPath", "Server does not support prompts (required for ", " = true; else if (typeof ", "decline", " , params: { type: '", "PCT_ENCODED", "extractFromKey", "getRule", "unshift", "react", "(new RegExp(", " === 0 || ", "notifications/message", "start", "toQuotedString", "_getOrReturnCtx", "userDefinedNsSeparator", "not_multiple_of", "filterByRequestId", "varOccurences", "cloneInstance", " , params: { format: ", "headers", "reason", "/properties", "fewer", "~validate", "ZodSymbol", "queueLoad", "画布范围", "defineProperty", "smaller than", "Error in broadcast handler for ", "maxDate", "getProperty", "use", "keySchema", "ComfyUI loading...", "NOT_USERINFO", " , params: { propertyName: '", "Failed to send an error response: ", "ZodBoolean", "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!", "Invalid date", "is an invalid additional property", "execution_success", "token", "compiling", "ssh", "registerActionHandler", "useRawValueToEscape", "maxSize", "$comment", "isInitializing", "debugDisableHeartbeatResponse", "roots", "_setupTimeout", "ZodNativeEnum", "duration", "actionManager", "lastPongReceived", "asyncIterator", "none", "Edge references unknown target node: ", "loadGraphData", "var missing", ", received '", " == 'boolean' || ", "getDefaultValueFromField", "yud", "Invalid JSON-pointer: ", "ZodNumber", "validateActionRequest", "millisecond", "Host's domain name can not be converted to ASCII via punycode: ", " reference.", " ) ", "valid", " } else { ", " , validate.schema", "waiting for queue prompt", "includes", "strip", "_cleanupTimeout", "greater than ", "float", "checkConnection", "authInfo", "comfy-user", "errs_", "exclusiveMinimum", "SDPPP可能未安装或和插件版本不匹配 (404)", " ) { ", "2[0-4]", "_limitProperties", "title", " for nesting ", "Transport", " == 'number' || ", " = e.errors; else throw e; } ", "非法的名称: {{0}}", 'schema with key or id "', "val is not a non-empty string or a valid number. val=", "#00CC33", "4232400abLstR", "formatArgs", " -> ", "alg", "reconnecting", "defaultVariables", "resolve", "selectColor", "Refresh", "padEnd", " === null) ", "skipCopy", "' } ", "removeDefault", "pattern", "((\\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])))", "Comfy SDPPP version ({{comfyVersion}}) does not match plugin ({{pluginVersion}}), may cause issues", "hasPath", "implements", "3rdParty", "getPrototypeOf", "process", "排队等待", "PS图片", "schema id ignored", ").length ", "Invalid function arguments", "From PS", "No crop", " via punycode: ", "_formats", "resources/subscribe", "./api/userdata/workflows%2F.index.json", "%[EFef]", "Invalid graph definition: ", " , params: { pattern: ", "absolutePath", ".errors); errors = vErrors.length; } ", "].propertyName = ", "getPathExpr", "[UnexpectedJSONParseError]: ", "minSize", "getHandlerTypes", "parentDataProperty", "-arab", "sdppp/abort", "enable", "notifications/cancelled", "Array must contain ", "Unknown", "getItem", "server", "preload", "processHandlerStream", "uuid", "endpoint", "Press Enter to open app: {{appName}}", "cacheKey", " , ", "overflow", "resolvedLanguage", "bindProducer", "/additionalProperties", "colors", "Host's domain name can not be converted to ", "too_small", ")) ", "handle", "initImmediate", "_getInvalidInput", " (async", "#6600FF", "unbind", "forwardBroadcast", "resources/list", "postMessage", " var itemIndices = {}, item; for (;i--;) { var item = ", "valueSchema", "interpolator", "expected", "regExpQueue", "prepend", "{0,4}", "dev", "second", "query", "#CC00FF", "default is ignored for: ", "loadResources", "keyword schema is invalid: ", "mailto", "abv", "Username: {{username}}", "number", "([^0-9])", "_requestMessageId", "defaultMeta", "重启ComfyUI失败", "Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.", " throw new ValidationError(vErrors); ", "assistant", "finite", ".length == 0) {", "'else'", "云端推荐:", "relative", "pop", "sdppp_assets", "toStringTag", "[^0-9]", "auz", " if (!", "fromCharCode", "Invalid forward path for proxy action", "/sd-ppp-static/sdppp-workflows/", "Not connected", "method", " to ", "coerceToTypes", "__proxy_forward", "returnedObjectHandler", "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.", "Email address's domain name can not be converted to ", " else ", "{0,3}", "1.0.0", "])) { ", "SCHEMES", " == 'function' ? ", " if (true) { ", "_metaOpts", "Uploading...", "[i]; ", "[\\@]", "enabled", '" was not yet loaded', "_notificationHandlers", "/patternProperties/", "ZodFunction", "schemas", "issues", "Failed to check workflow changeTracker state:", "validateSchema", "Intersection results could not be merged", "invalid_string", "###", " && !Array.isArray(", " validate.errors = [", "shape", "1255978LvsSSI", "fail", "segment", "++) { var ", "([+-]\\d{2}:?\\d{2})", "json", " , params: { limit: ", "2.0", "removeMessageEventListener", "storage", "common", "oneOf", "clearCache", "removeConnection", " === undefined) { ", "hasEdge", " ? await ", "maxParallelReads", "', depsCount: ", "_exclusiveLimit", "_pendingDebouncedNotifications", " == 'object' && !(", "Failed to get result: {{error}}", "addKeyword", "Source", "uri", "parse", "__esModule", "invalid_arguments", "Action ", "zh-CN", "invalid_union_discriminator", "{0,1}", "_resetTimeout", "ajp", "ltr", " , schemaPath: ", " , message: 'should be ", "async schema referenced by sync schema", "resolveImage", "indexOf", "capacity", "dataPath", " = true; if ( ", ")) { if (vErrors === null) vErrors = ", "exact", "From Disk", "less than", ".call( ", "removeListener", "_requestHandlerAbortControllers", '$ref: keywords ignored in schema at path "', "_getType", "defaultError", " delete ", "resolved promise for", "activeWorkflow", "return", "replace", "saveWorkflow", "reference", "useColors", " !== undefined) { ", " } else { errors = ", "isNANOID", "more", "missingSchema", "= N) throw new Error("Cannot access property/index " + V + $(1627) + N); - return U[N - V]; - } - if (V > N) throw new Error($(2381) + V + $(1627) + N); - if (s0 = $(726) + (N - V || ""), !J) return s0; - } - for (var u0 = s0, a0 = J.split("/"), f0 = 0; f0 < a0[$(1200)]; f0++) { - var w0 = a0[f0]; - w0 && (s0 += d(M(w0)), u0 += $(637) + s0); - } - return u0; - } - function P(F, N) { - const U = i; - return F == '""' ? N : (F + U(1623) + N)[U(2188)](/([^\\])' \+ '/g, "$1"); - } - function E(F) { - return M(decodeURIComponent(F)); - } - function D(F) { - return encodeURIComponent(j(F)); - } - function j(F) { - return F[i(2188)](/~/g, "~0").replace(/\//g, "~1"); - } - function M(F) { - return F.replace(/~1/g, "/").replace(/~0/g, "~"); - } - return Ve; -} -var Ze, Dr; -function os() { - if (Dr) return Ze; - Dr = 1; - var i = Wx(); - Ze = e; - function e(t) { - i[B(2456)](t, this); - } - return Ze; -} -var We = { exports: {} }, jr; -function Po() { - const i = n; - if (jr) return We.exports; - jr = 1; - var e = We[i(1791)] = function(x, r, s) { - const o = i; - typeof r == o(1342) && (s = r, r = {}), s = r.cb || s; - var c = typeof s == o(1342) ? s : s[o(597)] || function() { - }, d = s.post || function() { - }; - t(r, c, d, x, "", x); - }; - e.keywords = { additionalItems: !0, items: !0, contains: !0, additionalProperties: !0, propertyNames: !0, not: !0 }, e[i(602)] = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }, e[i(1382)] = { definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }, e[i(2662)] = { default: !0, enum: !0, const: !0, required: !0, maximum: !0, minimum: !0, exclusiveMaximum: !0, exclusiveMinimum: !0, multipleOf: !0, maxLength: !0, minLength: !0, pattern: !0, format: !0, maxItems: !0, minItems: !0, uniqueItems: !0, maxProperties: !0, minProperties: !0 }; - function t(x, r, s, o, c, d, u, f, l, g) { - const h = i; - if (o && typeof o == h(2437) && !Array[h(2344)](o)) { - r(o, c, d, u, f, l, g); - for (var m in o) { - var y = o[m]; - if (Array[h(2344)](y)) { - if (m in e[h(602)]) - for (var w = 0; w < y[h(1200)]; w++) t(x, r, s, y[w], c + "/" + m + "/" + w, d, c, m, o, w); - } else if (m in e[h(1382)]) { - if (y && typeof y == "object") - for (var S in y) t(x, r, s, y[S], c + "/" + m + "/" + a(S), d, c, m, o, S); - } else (m in e[h(2408)] || x[h(2335)] && !(m in e[h(2662)])) && t(x, r, s, y, c + "/" + m, d, c, m, o); - } - s(o, c, d, u, f, l, g); - } - } - function a(x) { - const r = i; - return x[r(2188)](/~/g, "~0")[r(2188)](/\//g, "~1"); - } - return We[i(1791)]; -} -var Be, Mr; -function ar() { - const i = n; - if (Mr) return Be; - Mr = 1; - var e = wo(), t = rr(), a = Wx(), x = os(), r = Po(); - Be = s, s.normalizeId = S, s[i(1407)] = m, s[i(2746)] = R, s.ids = A, s[i(1455)] = l, s.schema = o; - function s(C, P, E) { - const D = i; - var j = this[D(1148)][E]; - if (typeof j == "string") - if (this[D(1148)][j]) j = this._refs[j]; - else return s[D(2518)](this, C, P, j); - if (j = j || this._schemas[E], j instanceof x) return l(j[D(727)], this._opts[D(2515)]) ? j[D(727)] : j[D(2481)] || this._compile(j); - var M = o[D(2518)](this, P, E), F, N, U; - return M && (F = M[D(727)], P = M.root, U = M.baseId), F instanceof x ? N = F[D(2481)] || C[D(2518)](this, F.schema, P, void 0, U) : F !== void 0 && (N = l(F, this[D(904)][D(2515)]) ? F : C.call(this, F, P, void 0, U)), N; - } - function o(C, P) { - const E = i; - var D = e[E(2156)](P), j = y(D), M = m(this[E(1117)](C[E(727)])); - if (Object[E(2278)](C[E(727)]).length === 0 || j !== M) { - var F = S(j), N = this[E(1148)][F]; - if (typeof N == E(923)) return c[E(2518)](this, C, N, D); - if (N instanceof x) - N[E(2481)] || this[E(2744)](N), C = N; - else if (N = this[E(1052)][F], N instanceof x) { - if (N[E(2481)] || this[E(2744)](N), F == S(P)) return { schema: N, root: C, baseId: M }; - C = N; - } else return; - if (!C[E(727)]) return; - M = m(this[E(1117)](C[E(727)])); - } - return u[E(2518)](this, D, M, C[E(727)], C); - } - function c(C, P, E) { - const D = i; - var j = o[D(2518)](this, C, P); - if (j) { - var M = j.schema, F = j.baseId; - C = j[D(1129)]; - var N = this._getId(M); - return N && (F = R(F, N)), u[D(2518)](this, E, F, M, C); - } - } - var d = a[i(797)]([i(2372), "patternProperties", i(1252), i(1362), i(987)]); - function u(C, P, E, D) { - const j = i; - if (C[j(732)] = C[j(732)] || "", C[j(732)].slice(0, 1) == "/") { - for (var M = C[j(732)][j(2248)]("/"), F = 1; F < M.length; F++) { - var N = M[F]; - if (N) { - if (N = a.unescapeFragment(N), E = E[N], E === void 0) break; - var U; - if (!d[N] && (U = this[j(1117)](E), U && (P = R(P, U)), E[j(2287)])) { - var $ = R(P, E[j(2287)]), V = o[j(2518)](this, D, $); - V && (E = V[j(727)], D = V[j(1129)], P = V[j(1013)]); - } - } - } - if (E !== void 0 && E !== D[j(727)]) return { schema: E, root: D, baseId: P }; - } - } - var f = a[i(797)]([i(2426), "format", i(1995), i(2692), i(1213), i(575), i(2495), i(1648), i(1663), "maximum", i(959), i(2721), i(500), "required", "enum"]); - function l(C, P) { - if (P === !1) return !1; - if (P === void 0 || P === !0) return g(C); - if (P) return h(C) <= P; - } - function g(C) { - const P = i; - var E; - if (Array[P(2344)](C)) { - for (var D = 0; D < C.length; D++) - if (E = C[D], typeof E == P(2437) && !g(E)) return !1; - } else for (var j in C) - if (j == "$ref" || (E = C[j], typeof E == P(2437) && !g(E))) return !1; - return !0; - } - function h(C) { - const P = i; - var E = 0, D; - if (Array.isArray(C)) { - for (var j = 0; j < C.length; j++) - if (D = C[j], typeof D == P(2437) && (E += h(D)), E == 1 / 0) return 1 / 0; - } else for (var M in C) { - if (M == "$ref") return 1 / 0; - if (f[M]) E++; - else if (D = C[M], typeof D == P(2437) && (E += h(D) + 1), E == 1 / 0) return 1 / 0; - } - return E; - } - function m(C, P) { - P !== !1 && (C = S(C)); - var E = e.parse(C); - return y(E); - } - function y(C) { - return e[i(538)](C).split("#")[0] + "#"; - } - var w = /#\/?$/; - function S(C) { - return C ? C.replace(w, "") : ""; - } - function R(C, P) { - const E = i; - return P = S(P), e[E(1987)](C, P); - } - function A(C) { - const P = i; - var E = S(this[P(1117)](C)), D = { "": E }, j = { "": m(E, !1) }, M = {}, F = this; - return r(C, { allKeys: !0 }, function(N, U, $, V, J, s0, o0) { - const u0 = P; - if (U !== "") { - var a0 = F[u0(1117)](N), f0 = D[V], w0 = j[V] + "/" + J; - if (o0 !== void 0 && (w0 += "/" + (typeof o0 == "number" ? o0 : a[u0(750)](o0))), typeof a0 == u0(923)) { - a0 = f0 = S(f0 ? e[u0(1987)](f0, a0) : a0); - var m0 = F[u0(1148)][a0]; - if (typeof m0 == u0(923) && (m0 = F[u0(1148)][m0]), m0 && m0[u0(727)]) { - if (!t(N, m0[u0(727)])) throw new Error(u0(2564) + a0 + '" resolves to more than one schema'); - } else if (a0 != S(w0)) - if (a0[0] == "#") { - if (M[a0] && !t(N, M[a0])) throw new Error(u0(2564) + a0 + '" resolves to more than one schema'); - M[a0] = N; - } else F[u0(1148)][a0] = w0; - } - D[U] = f0, j[U] = w0; - } - }), M; - } - return Be; -} -var Ke, Lr; -function nr() { - const i = n; - if (Lr) return Ke; - Lr = 1; - var e = ar(); - Ke = { Validation: x(t), MissingRef: x(a) }; - function t(r) { - const s = B; - this[s(2353)] = s(2494), this[s(1418)] = r, this[s(2563)] = this[s(570)] = !0; - } - a[i(2353)] = function(r, s) { - const o = i; - return o(2443) + s + o(2715) + r; - }; - function a(r, s, o) { - const c = i; - this.message = o || a[c(2353)](r, s), this[c(2506)] = e[c(2746)](r, s), this[c(2196)] = e.normalizeId(e[c(1407)](this[c(2506)])); - } - function x(r) { - const s = i; - return r[s(1166)] = Object[s(1108)](Error[s(1166)]), r.prototype[s(2331)] = r, r; - } - return Ke; -} -var Je, $r; -function cs() { - return $r || ($r = 1, Je = function(i, e) { - const t = B; - e || (e = {}), typeof e === t(1342) && (e = { cmp: e }); - var a = typeof e[t(823)] === t(958) ? e[t(823)] : !1, x = e.cmp && /* @__PURE__ */ function(s) { - return function(o) { - return function(c, d) { - var u = { key: c, value: o[c] }, f = { key: d, value: o[d] }; - return s(u, f); - }; - }; - }(e[t(1022)]), r = []; - return function s(o) { - const c = t; - if (o && o[c(1390)] && typeof o[c(1390)] === c(1342) && (o = o[c(1390)]()), o !== void 0) { - if (typeof o == c(2074)) return isFinite(o) ? "" + o : c(2382); - if (typeof o != "object") return JSON[c(2301)](o); - var d, u; - if (Array[c(2344)](o)) { - for (u = "[", d = 0; d < o[c(1200)]; d++) - d && (u += ","), u += s(o[d]) || c(2382); - return u + "]"; - } - if (o === null) return c(2382); - if (r[c(2170)](o) !== -1) { - if (a) return JSON.stringify(c(2698)); - throw new TypeError(c(2294)); - } - var f = r[c(818)](o) - 1, l = Object[c(2278)](o)[c(974)](x && x(o)); - for (u = "", d = 0; d < l.length; d++) { - var g = l[d], h = s(o[g]); - h && (u && (u += ","), u += JSON[c(2301)](g) + ":" + h); - } - return r[c(1065)](f, 1), "{" + u + "}"; - } - }(i); - }), Je; -} -var Qe, zr; -function ds() { - return zr || (zr = 1, Qe = function(e, t, a) { - const x = B; - var r = "", s = e[x(727)][x(950)] === !0, o = e[x(2545)][x(878)](e[x(727)], e.RULES[x(1135)], x(2287)), c = e[x(1719)]._getId(e.schema); - if (e.opts[x(1380)]) { - var d = e.util[x(2439)](e[x(727)], e[x(523)][x(2408)]); - if (d) { - var u = x(1715) + d; - if (e[x(2244)][x(1380)] === x(816)) e.logger[x(1808)](u); - else throw new Error(u); - } - } - if (e[x(1102)] && (r += x(844), s && (e.async = !0, r += x(1635)), r += "function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ", c && (e.opts.sourceCode || e.opts.processCode) && (r += " " + (x(1164) + c + " */") + " ")), typeof e[x(727)] == x(958) || !(o || e[x(727)][x(2287)])) { - var t = x(2343), f = e.level, l = e[x(1005)], g = e.schema[t], h = e.schemaPath + e[x(2545)][x(1911)](t), m = e[x(578)] + "/" + t, P = !e[x(2244)][x(837)], j, y = x(726) + (l || ""), C = x(1954) + f; - if (e[x(727)] === !1) { - e[x(1102)] ? P = !0 : r += x(838) + C + x(921); - var w = w || []; - w.push(r), r = "", e[x(573)] !== !1 ? (r += x(1250) + (j || x(2343)) + x(1035) + e.errorPath + x(2166) + e[x(2545)][x(1891)](m) + x(2243), e[x(2244)].messages !== !1 && (r += " , message: 'boolean schema is false' "), e.opts.verbose && (r += x(521) + e.schemaPath + x(2701) + y + " "), r += " } ") : r += x(1494); - var S = r; - r = w.pop(), !e[x(2521)] && P ? e[x(1721)] ? r += x(1585) + S + x(2477) : r += x(2128) + S + x(682) : r += x(1327) + S + x(518); - } else e[x(1102)] ? s ? r += x(1460) : r += x(2292) : r += " var " + C + " = true; "; - return e[x(1102)] && (r += " }; return validate; "), r; - } - if (e[x(1102)]) { - var R = e[x(1102)], f = e[x(1304)] = 0, l = e[x(1005)] = 0, y = x(726); - if (e[x(642)] = e[x(1987)].fullPath(e[x(1719)][x(1117)](e.root[x(727)])), e.baseId = e.baseId || e.rootId, delete e[x(1102)], e[x(2660)] = [""], e.schema[x(1658)] !== void 0 && e[x(2244)][x(794)] && e[x(2244)][x(1125)]) { - var A = x(1134); - if (e[x(2244)][x(1125)] === "log") e.logger[x(1808)](A); - else throw new Error(A); - } - r += " var vErrors = null; ", r += x(2429), r += x(2601); - } else { - var f = e[x(1304)], l = e[x(1005)], y = x(726) + (l || ""); - if (c && (e[x(1013)] = e.resolve[x(2746)](e[x(1013)], c)), s && !e[x(1721)]) throw new Error(x(2752)); - r += " var errs_" + f + x(2609); - } - var C = x(1954) + f, P = !e[x(2244)][x(837)], E = "", D = "", j, M = e[x(727)].type, F = Array[x(2344)](M); - if (M && e[x(2244)][x(981)] && e[x(727)][x(981)] === !0 && (F ? M[x(2170)](x(2382)) == -1 && (M = M[x(2699)](x(2382))) : M != x(2382) && (M = [M, x(2382)], F = !0)), F && M[x(1200)] == 1 && (M = M[0], F = !1), e.schema[x(2287)] && o) { - if (e[x(2244)].extendRefs == x(2131)) throw new Error(x(1389) + e.errSchemaPath + x(596)); - e[x(2244)][x(1024)] !== !0 && (o = !1, e.logger[x(1808)](x(2181) + e.errSchemaPath + '"')); - } - if (e[x(727)][x(1929)] && e.opts.$comment && (r += " " + e[x(523)][x(1135)][x(1929)].code(e, x(1929))), M) { - if (e[x(2244)][x(2664)]) var N = e[x(2545)][x(2099)](e[x(2244)].coerceTypes, M); - var U = e[x(523)].types[M]; - if (N || F || U === !0 || U && !b0(U)) { - var h = e[x(791)] + x(739), m = e[x(578)] + x(2410), h = e.schemaPath + x(739), m = e.errSchemaPath + x(2410), $ = F ? x(1070) : "checkDataType"; - if (r += x(1843) + e[x(2545)][$](M, y, e.opts[x(1222)], !0) + x(1330), N) { - var V = x(638) + f, J = "coerced" + f; - r += x(838) + V + x(2702) + y + x(1274) + J + x(873), e[x(2244)][x(2664)] == x(1196) && (r += " if (" + V + x(600) + y + x(2514) + y + x(2447) + y + x(1165) + y + x(562) + V + x(2702) + y + x(563) + e[x(2545)][x(730)](e.schema[x(2426)], y, e.opts[x(1222)]) + ") " + J + " = " + y + x(1736)), r += x(1843) + J + x(734); - var s0 = N; - if (s0) - for (var o0, u0 = -1, a0 = s0[x(1200)] - 1; u0 < a0; ) - o0 = s0[u0 += 1], o0 == x(923) ? r += x(2534) + V + x(1975) + V + " == 'boolean') " + J + x(869) + y + x(2674) + y + x(1991) + J + x(2319) : o0 == x(2074) || o0 == x(2255) ? (r += x(2534) + V + x(1944) + y + " === null || (" + V + x(934) + y + " && " + y + " == +" + y + " ", o0 == x(2255) && (r += x(2713) + y + " % 1)"), r += x(2047) + J + x(796) + y + "; ") : o0 == "boolean" ? r += x(2534) + y + " === 'false' || " + y + x(1888) + y + x(1991) + J + x(2731) + y + " === 'true' || " + y + x(1522) + J + x(2483) : o0 == x(2382) ? r += " else if (" + y + x(1646) + y + x(1888) + y + x(965) + J + " = null; " : e[x(2244)][x(2664)] == x(1196) && o0 == x(1196) && (r += x(2534) + V + x(1560) + V + " == 'number' || " + V + x(1944) + y + x(635) + J + x(1874) + y + x(2536)); - r += x(1326); - var w = w || []; - w.push(r), r = "", e[x(573)] !== !1 ? (r += x(1250) + (j || x(2426)) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)].toQuotedString(m) + x(1881), F ? r += "" + M[x(2573)](",") : r += "" + M, r += x(1993), e[x(2244)].messages !== !1 && (r += x(2167), F ? r += "" + M.join(",") : r += "" + M, r += "' "), e.opts.verbose && (r += x(2361) + h + x(1787) + e[x(791)] + x(2701) + y + " "), r += x(2274)) : r += x(1494); - var S = r; - r = w[x(2087)](), !e[x(2521)] && P ? e[x(1721)] ? r += x(1585) + S + x(2477) : r += x(2128) + S + x(682) : r += x(1327) + S + x(518), r += x(998) + J + x(2192); - var f0 = l ? x(726) + (l - 1 || "") : x(2680), w0 = l ? e.dataPathArr[l] : "parentDataProperty"; - r += " " + y + " = " + J + "; ", !l && (r += x(1033) + f0 + " !== undefined)"), r += " " + f0 + "[" + w0 + "] = " + J + x(1736); - } else { - var w = w || []; - w.push(r), r = "", e.createErrors !== !1 ? (r += x(1250) + (j || "type") + "' , dataPath: (dataPath || '') + " + e[x(1105)] + x(2166) + e[x(2545)].toQuotedString(m) + " , params: { type: '", F ? r += "" + M[x(2573)](",") : r += "" + M, r += x(1993), e[x(2244)].messages !== !1 && (r += x(2167), F ? r += "" + M.join(",") : r += "" + M, r += "' "), e[x(2244)][x(1188)] && (r += " , schema: validate.schema" + h + x(1787) + e.schemaPath + " , data: " + y + " "), r += " } ") : r += x(1494); - var S = r; - r = w[x(2087)](), !e[x(2521)] && P ? e[x(1721)] ? r += x(1585) + S + "]); " : r += x(2128) + S + x(682) : r += x(1327) + S + x(518); - } - r += x(2274); - } - } - if (e[x(727)][x(2287)] && !o) r += " " + e[x(523)][x(1135)][x(2287)].code(e, "$ref") + " ", P && (r += x(1552), R ? r += "0" : r += x(1966) + f, r += x(1330), D += "}"); - else { - var m0 = e.RULES; - if (m0) { - for (var U, D0 = -1, E0 = m0.length - 1; D0 < E0; ) - if (U = m0[D0 += 1], b0(U)) { - if (U[x(2426)] && (r += x(1843) + e[x(2545)][x(730)](U[x(2426)], y, e[x(2244)][x(1222)]) + ") { "), e[x(2244)][x(794)]) { - if (U[x(2426)] == "object" && e.schema[x(2372)]) { - var g = e[x(727)][x(2372)], J0 = Object[x(2278)](g), T = J0; - if (T) - for (var q, L = -1, Q = T.length - 1; L < Q; ) { - q = T[L += 1]; - var G = g[q]; - if (G[x(1658)] !== void 0) { - var Z = y + e[x(2545)].getProperty(q); - if (e[x(2521)]) { - if (e.opts[x(1125)]) { - var A = x(2068) + Z; - if (e[x(2244)][x(1125)] === "log") e[x(1077)].warn(A); - else throw new Error(A); - } - } else r += " if (" + Z + x(1478), e.opts[x(794)] == "empty" && (r += " || " + Z + x(1530) + Z + " === '' "), r += x(1953) + Z + x(1165), e[x(2244)][x(794)] == "shared" ? r += " " + e[x(792)](G[x(1658)]) + " " : r += " " + JSON[x(2301)](G[x(1658)]) + " ", r += "; "; - } - } - } else if (U[x(2426)] == x(1196) && Array.isArray(e[x(727)][x(2637)])) { - var Y = e[x(727)].items; - if (Y) { - for (var G, u0 = -1, n0 = Y[x(1200)] - 1; u0 < n0; ) - if (G = Y[u0 += 1], G.default !== void 0) { - var Z = y + "[" + u0 + "]"; - if (e[x(2521)]) { - if (e.opts[x(1125)]) { - var A = x(2068) + Z; - if (e[x(2244)].strictDefaults === "log") e[x(1077)][x(1808)](A); - else throw new Error(A); - } - } else r += x(1843) + Z + x(1478), e[x(2244)][x(794)] == "empty" && (r += x(1689) + Z + x(1530) + Z + x(1793)), r += x(1953) + Z + x(1165), e.opts[x(794)] == x(2289) ? r += " " + e.useDefault(G[x(1658)]) + " " : r += " " + JSON[x(2301)](G[x(1658)]) + " ", r += "; "; - } - } - } - } - var i0 = U[x(2568)]; - if (i0) { - for (var x0, j0 = -1, q0 = i0[x(1200)] - 1; j0 < q0; ) - if (x0 = i0[j0 += 1], K0(x0)) { - var $0 = x0[x(1204)](e, x0[x(1614)], U[x(2426)]); - $0 && (r += " " + $0 + " ", P && (E += "}")); - } - } - if (P && (r += " " + E + " ", E = ""), U[x(2426)] && (r += x(2274), M && M === U.type && !N)) { - r += x(1293); - var h = e[x(791)] + x(739), m = e[x(578)] + "/type", w = w || []; - w.push(r), r = "", e[x(573)] !== !1 ? (r += x(1250) + (j || x(2426)) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](m) + " , params: { type: '", F ? r += "" + M[x(2573)](",") : r += "" + M, r += x(1993), e[x(2244)].messages !== !1 && (r += x(2167), F ? r += "" + M[x(2573)](",") : r += "" + M, r += "' "), e[x(2244)][x(1188)] && (r += x(2361) + h + x(1787) + e[x(791)] + " , data: " + y + " "), r += x(2274)) : r += " {} "; - var S = r; - r = w.pop(), !e[x(2521)] && P ? e[x(1721)] ? r += x(1585) + S + "]); " : r += x(2128) + S + x(682) : r += x(1327) + S + x(518), r += x(2274); - } - P && (r += x(553), R ? r += "0" : r += "errs_" + f, r += x(1330), D += "}"); - } - } - } - P && (r += " " + D + " "), R ? (s ? (r += x(865), r += " else throw new ValidationError(vErrors); ") : (r += " validate.errors = vErrors; ", r += x(889)), r += " }; return validate;") : r += x(838) + C + x(2479) + f + ";"; - function b0(Q0) { - const O0 = x; - for (var z0 = Q0[O0(2568)], X0 = 0; X0 < z0[O0(1200)]; X0++) if (K0(z0[X0])) return !0; - } - function K0(Q0) { - const O0 = x; - return e[O0(727)][Q0[O0(1614)]] !== void 0 || Q0[O0(1999)] && sx(Q0); - } - function sx(Q0) { - const O0 = x; - for (var z0 = Q0[O0(1999)], X0 = 0; X0 < z0[O0(1200)]; X0++) if (e.schema[z0[X0]] !== void 0) return !0; - } - return r; - }), Qe; -} -var Ge, Hr; -function ko() { - const i = n; - if (Hr) return Ge; - Hr = 1; - var e = ar(), t = Wx(), a = nr(), x = cs(), r = ds(), s = t[i(1137)], o = rr(), c = a[i(2366)]; - Ge = d; - function d(S, R, A, C) { - const P = i; - var E = this, D = this[P(904)], j = [void 0], M = {}, F = [], N = {}, U = [], $ = {}, V = []; - R = R || { schema: S, refVal: j, refs: M }; - var J = u[P(2518)](this, S, R, C), s0 = this._compilations[J[P(1857)]]; - if (J[P(1924)]) return s0[P(1023)] = w0; - var o0 = this[P(2011)], u0 = this[P(523)]; try { - var a0 = m0(S, R, A, C); - s0[P(2481)] = a0; - var f0 = s0[P(1023)]; - return f0 && (f0[P(727)] = a0.schema, f0.errors = null, f0[P(1568)] = a0[P(1568)], f0[P(2641)] = a0[P(2641)], f0[P(1129)] = a0[P(1129)], f0[P(950)] = a0[P(950)], D[P(581)] && (f0[P(1411)] = a0[P(1411)])), a0; - } finally { - f[P(2518)](this, S, R, C); - } - function w0() { - const Z = P; - var Y = s0.validate, n0 = Y[Z(1364)](this, arguments); - return w0[Z(1418)] = Y[Z(1418)], n0; - } - function m0(Z, Y, n0, i0) { - const x0 = P; - var j0 = !Y || Y && Y[x0(727)] == Z; - if (Y.schema != R[x0(727)]) return d[x0(2518)](E, Z, Y, n0, i0); - var q0 = Z[x0(950)] === !0, $0 = r({ isTop: !0, schema: Z, isRoot: j0, baseId: i0, root: Y, schemaPath: "", errSchemaPath: "#", errorPath: '""', MissingRefError: a[x0(2411)], RULES: u0, validate: r, util: t, resolve: e, resolveRef: D0, usePattern: L, useDefault: Q, useCustomRule: G, opts: D, formats: o0, logger: E[x0(1077)], self: E }); - $0 = w(j, m) + w(F, g) + w(U, h) + w(V, y) + $0, D.processCode && ($0 = D[x0(839)]($0, Z)); - var b0; - try { - var K0 = new Function("self", "RULES", x0(1285), x0(1129), x0(2641), "defaults", x0(2236), "equal", "ucs2length", x0(1197), $0); - b0 = K0(E, u0, o0, R, j, U, V, o, s, c), j[0] = b0; - } catch (sx) { - throw E.logger[x0(2389)](x0(2639), $0), sx; - } - return b0[x0(727)] = Z, b0[x0(1418)] = null, b0.refs = M, b0[x0(2641)] = j, b0[x0(1129)] = j0 ? b0 : Y, q0 && (b0[x0(950)] = !0), D[x0(581)] === !0 && (b0.source = { code: $0, patterns: F, defaults: U }), b0; - } - function D0(Z, Y, n0) { - const i0 = P; - Y = e[i0(2746)](Z, Y); - var x0 = M[Y], j0, q0; - if (x0 !== void 0) return j0 = j[x0], q0 = "refVal[" + x0 + "]", q(j0, q0); - if (!n0 && R.refs) { - var $0 = R[i0(1568)][Y]; - if ($0 !== void 0) return j0 = R[i0(2641)][$0], q0 = E0(Y, j0), q(j0, q0); - } - q0 = E0(Y); - var b0 = e[i0(2518)](E, m0, R, Y); - if (b0 === void 0) { - var K0 = A && A[Y]; - K0 && (b0 = e.inlineRef(K0, D.inlineRefs) ? K0 : d[i0(2518)](E, K0, R, A, Z)); - } - if (b0 === void 0) J0(Y); - else return T(Y, b0), q(b0, q0); - } - function E0(Z, Y) { - var i0 = j[P(1200)]; - return j[i0] = Y, M[Z] = i0, "refVal" + i0; - } - function J0(Z) { - delete M[Z]; - } - function T(Z, Y) { - var n0 = M[Z]; - j[n0] = Y; - } - function q(Z, Y) { - const n0 = P; - return typeof Z == n0(2437) || typeof Z == n0(958) ? { code: Y, schema: Z, inline: !0 } : { code: Y, $async: Z && !!Z[n0(950)] }; - } - function L(Z) { - const Y = P; - var n0 = N[Z]; - return n0 === void 0 && (n0 = N[Z] = F[Y(1200)], F[n0] = Z), Y(1995) + n0; - } - function Q(Z) { - const Y = P; - switch (typeof Z) { - case Y(958): - case Y(2074): - return "" + Z; - case "string": - return t[Y(1891)](Z); - case Y(2437): - if (Z === null) return Y(2382); - var n0 = x(Z), i0 = $[n0]; - return i0 === void 0 && (i0 = $[n0] = U[Y(1200)], U[i0] = Z), "default" + i0; - } - } - function G(Z, Y, n0, i0) { - const x0 = P; - if (E[x0(904)].validateSchema !== !1) { - var j0 = Z[x0(1596)][x0(1362)]; - if (j0 && !j0.every(function(X0) { - const Bx = x0; - return Object.prototype[Bx(2452)].call(n0, X0); - })) throw new Error("parent schema must have all required keywords: " + j0[x0(2573)](",")); - var q0 = Z[x0(1596)][x0(2123)]; - if (q0) { - var $0 = q0(Y); - if (!$0) { - var b0 = x0(2070) + E[x0(2291)](q0[x0(1418)]); - if (E._opts[x0(2123)] == x0(816)) E.logger[x0(2389)](b0); - else throw new Error(b0); - } - } - } - var K0 = Z[x0(1596)].compile, sx = Z.definition[x0(2613)], Q0 = Z.definition[x0(1347)], O0; - if (K0) O0 = K0[x0(2518)](E, Y, n0, i0); - else if (Q0) - O0 = Q0[x0(2518)](E, Y, n0, i0), D.validateSchema !== !1 && E[x0(2123)](O0, !0); - else if (sx) O0 = sx.call(E, i0, Z[x0(1614)], Y, n0); - else if (O0 = Z[x0(1596)][x0(2481)], !O0) return; - if (O0 === void 0) throw new Error(x0(1157) + Z[x0(1614)] + '"failed to compile'); - var z0 = V.length; - return V[z0] = O0, { code: x0(741) + z0, validate: O0 }; + this[t(307)][t(1145)]++; + const e = await a(x, {}); + return this.realTransport && "id" in x && await this[t(1873)].send({ jsonrpc: t(2545), id: x.id, result: e }), !0; + } catch (e) { + return this[t(307)].errors++, this[t(1873)] && "id" in x && await this[t(1873)].send({ jsonrpc: "2.0", id: x.id, error: { code: -32603, message: t(1122) + JSON[t(990)](x[t(817)]) + " " + e[t(2089)] } }), !0; } } - function u(S, R, A) { - const C = i; - var P = l[C(2518)](this, S, R, A); - return P >= 0 ? { index: P, compiling: !0 } : (P = this._compilations[C(1200)], this[C(2314)][P] = { schema: S, root: R, baseId: A }, { index: P, compiling: !1 }); - } - function f(S, R, A) { - const C = i; - var P = l[C(2518)](this, S, R, A); - P >= 0 && this[C(2314)][C(1065)](P, 1); - } - function l(S, R, A) { - const C = i; - for (var P = 0; P < this[C(2314)][C(1200)]; P++) { - var E = this[C(2314)][P]; - if (E[C(727)] == S && E[C(1129)] == R && E[C(1013)] == A) return P; - } - return -1; - } - function g(S, R) { - const A = i; - return A(1637) + S + " = new RegExp(" + t[A(1891)](R[S]) + ");"; - } - function h(S) { - return i(1354) + S + " = defaults[" + S + "];"; - } - function m(S, R) { - return R[S] === void 0 ? "" : "var refVal" + S + " = refVal[" + S + "];"; - } - function y(S) { - const R = i; - return "var customRule" + S + R(2340) + S + "];"; - } - function w(S, R) { - const A = i; - if (!S[A(1200)]) return ""; - for (var C = "", P = 0; P < S[A(1200)]; P++) C += R(P, S); - return C; - } - return Ge; -} -var Ye = { exports: {} }, Ur; -function B(i, e) { - const t = Ie(); - return B = function(a, x) { - return a = a - 485, t[a]; - }, B(i, e); -} -function Eo() { - const i = n; - if (Ur) return Ye[i(1791)]; - Ur = 1; - var e = Ye.exports = function() { - const a = i; - this[a(967)] = {}; - }; - return e.prototype[i(1807)] = function(a, x) { - const r = i; - this[r(967)][a] = x; - }, e[i(1166)][i(1261)] = function(a) { - return this[i(967)][a]; - }, e.prototype[i(504)] = function(a) { - const x = i; - delete this[x(967)][a]; - }, e[i(1166)].clear = function() { - const a = i; - this[a(967)] = {}; - }, Ye[i(1791)]; -} -var Xe, Vr; -function Co() { - const i = n; - if (Vr) return Xe; - Vr = 1; - var e = Wx(), t = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, a = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], x = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i, r = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i, s = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, o = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, c = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i, d = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i, u = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, f = /^(?:\/(?:[^~/]|~0|~1)*)*$/, l = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, g = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; - Xe = h; - function h(D) { - const j = B; - return D = D == "full" ? j(2309) : j(1409), e[j(2456)](h[D]); - } - h.fast = { date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, "date-time": /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, "uri-template": c, url: d, email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, hostname: r, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: E, uuid: u, "json-pointer": f, "json-pointer-uri-fragment": l, "relative-json-pointer": g }, h[i(2309)] = { date: y, time: w, "date-time": R, uri: C, "uri-reference": o, "uri-template": c, url: d, email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, hostname: r, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: E, uuid: u, "json-pointer": f, "json-pointer-uri-fragment": l, "relative-json-pointer": g }; - function m(D) { - return D % 4 === 0 && (D % 100 !== 0 || D % 400 === 0); - } - function y(D) { - var M = D[i(799)](t); - if (!M) return !1; - var F = +M[1], N = +M[2], U = +M[3]; - return N >= 1 && N <= 12 && U >= 1 && U <= (N == 2 && m(F) ? 29 : a[N]); - } - function w(D, j) { - var F = D[i(799)](x); - if (!F) return !1; - var N = F[1], U = F[2], $ = F[3], V = F[5]; - return (N <= 23 && U <= 59 && $ <= 59 || N == 23 && U == 59 && $ == 60) && (!j || V); - } - var S = /t|\s/i; - function R(D) { - const j = i; - var M = D[j(2248)](S); - return M[j(1200)] == 2 && y(M[0]) && w(M[1], !0); - } - var A = /\/|:/; - function C(D) { - return A[i(1313)](D) && s.test(D); - } - var P = /[^\\]\\Z/; - function E(D) { - if (P[i(1313)](D)) return !1; + async [s(2029)](x) { + var t = s; + const a = this.notificationHandlers[t(2229)](x[t(1921)]); + if (!a) return !1; try { - return new RegExp(D), !0; - } catch { - return !1; + return this.stats.notificationsHandled++, await a(x), !0; + } catch (e) { + return this.stats.errors++, this[t(1133)]("error", "Notification handler failed for " + x[t(1921)] + ":", e), !0; } } - return Xe; -} -var _e, Zr; -function Io() { - return Zr || (Zr = 1, _e = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e.dataLevel, c = e.schema[t], d = e.errSchemaPath + "/" + t, u = !e.opts.allErrors, f = "data" + (o || ""), l = x(1954) + s, g, h; - if (c == "#" || c == "#/") e[x(1136)] ? (g = e[x(1721)], h = x(2481)) : (g = e[x(1129)][x(727)][x(950)] === !0, h = x(1174)); - else { - var m = e[x(1741)](e.baseId, c, e[x(1136)]); - if (m === void 0) { - var y = e[x(941)][x(2353)](e.baseId, c); - if (e.opts[x(1630)] == x(2131)) { - e.logger[x(2389)](y); - var w = w || []; - w[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + "$ref' , dataPath: (dataPath || '') + " + e[x(1105)] + x(2166) + e.util[x(1891)](d) + x(2436) + e.util[x(1086)](c) + x(1993), e[x(2244)][x(1064)] !== !1 && (r += x(1385) + e.util[x(1086)](c) + "' "), e.opts[x(1188)] && (r += " , schema: " + e.util[x(1891)](c) + x(1787) + e[x(791)] + x(2701) + f + " "), r += x(2274)) : r += x(1494); - var S = r; - r = w.pop(), !e.compositeRule && u ? e.async ? r += " throw new ValidationError([" + S + x(2477) : r += x(2128) + S + x(682) : r += x(1327) + S + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", u && (r += x(1746)); - } else if (e[x(2244)][x(1630)] == x(2582)) e.logger[x(1808)](y), u && (r += " if (true) { "); - else throw new e.MissingRefError(e[x(1013)], c, y); - } else if (m[x(2613)]) { - var R = e[x(2545)][x(2456)](e); - R[x(1304)]++; - var A = "valid" + R[x(1304)]; - R[x(727)] = m[x(727)], R[x(791)] = "", R.errSchemaPath = c; - var C = e[x(2481)](R).replace(/validate\.schema/g, m[x(1204)]); - r += " " + C + " ", u && (r += x(1843) + A + ") { "); - } else g = m[x(950)] === !0 || e[x(1721)] && m[x(950)] !== !1, h = m[x(1204)]; - } - if (h) { - var w = w || []; - w[x(818)](r), r = "", e[x(2244)][x(1419)] ? r += " " + h + x(2691) : r += " " + h + "( ", r += " " + f + x(2657), e[x(1105)] != '""' && (r += " + " + e[x(1105)]); - var P = o ? "data" + (o - 1 || "") : "parentData", E = o ? e.dataPathArr[o] : x(2024); - r += x(2039) + P + x(2039) + E + x(1619); - var D = r; - if (r = w[x(2087)](), g) { - if (!e[x(1721)]) throw new Error(x(2168)); - u && (r += x(838) + l + "; "), r += x(1142) + D + "; ", u && (r += " " + l + x(2483)), r += x(890), u && (r += " " + l + " = false; "), r += " } ", u && (r += x(1843) + l + ") { "); - } else r += " if (!" + D + ") { if (vErrors === null) vErrors = " + h + x(975) + h + x(2018), u && (r += x(1293)); - } - return r; - }), _e; -} -var xt, Wr; -function Ro() { - return Wr || (Wr = 1, xt = function(e, t, a) { - const x = B; - var r = " ", s = e[x(727)][t], o = e[x(791)] + e[x(2545)].getProperty(t), c = e[x(578)] + "/" + t, d = !e[x(2244)][x(837)], u = e[x(2545)][x(2456)](e), f = ""; - u[x(1304)]++; - var l = x(1954) + u[x(1304)], g = u[x(1013)], h = !0, m = s; - if (m) - for (var y, w = -1, S = m[x(1200)] - 1; w < S; ) - y = m[w += 1], (e[x(2244)][x(1380)] ? typeof y == x(2437) && Object[x(2278)](y)[x(1200)] > 0 || y === !1 : e.util.schemaHasRules(y, e[x(523)].all)) && (h = !1, u[x(727)] = y, u[x(791)] = o + "[" + w + "]", u[x(578)] = c + "/" + w, r += " " + e[x(2481)](u) + " ", u.baseId = g, d && (r += " if (" + l + ") { ", f += "}")); - return d && (h ? r += x(2110) : r += " " + f[x(2602)](0, -1) + " "), r; - }), xt; -} -var et, Br; -function Fo() { - return Br || (Br = 1, et = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e.dataLevel, c = e.schema[t], d = e[x(791)] + e[x(2545)].getProperty(t), u = e[x(578)] + "/" + t, f = !e[x(2244)][x(837)], l = x(726) + (o || ""), g = x(1954) + s, h = "errs__" + s, m = e[x(2545)][x(2456)](e), y = ""; - m.level++; - var w = x(1954) + m[x(1304)], S = c.every(function(j) { - const M = x; - return e[M(2244)][M(1380)] ? typeof j == M(2437) && Object[M(2278)](j)[M(1200)] > 0 || j === !1 : e[M(2545)][M(2547)](j, e.RULES[M(1135)]); - }); - if (S) { - var R = m[x(1013)]; - r += " var " + h + x(1260) + g + x(2240); - var A = e[x(2521)]; - e[x(2521)] = m[x(2521)] = !0; - var C = c; - if (C) - for (var P, E = -1, D = C[x(1200)] - 1; E < D; ) - P = C[E += 1], m.schema = P, m[x(791)] = d + "[" + E + "]", m[x(578)] = u + "/" + E, r += " " + e.validate(m) + " ", m.baseId = R, r += " " + g + x(1165) + g + x(1689) + w + x(2554) + g + x(1330), y += "}"; - e[x(2521)] = m.compositeRule = A, r += " " + y + x(1788) + g + ") { var err = ", e[x(573)] !== !1 ? (r += x(1250) + "anyOf' , dataPath: (dataPath || '') + " + e[x(1105)] + " , schemaPath: " + e[x(2545)][x(1891)](u) + x(2243), e[x(2244)][x(1064)] !== !1 && (r += x(1319)), e.opts[x(1188)] && (r += x(2361) + d + " , parentSchema: validate.schema" + e.schemaPath + x(2701) + l + " "), r += x(2274)) : r += x(1494), r += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !e[x(2521)] && f && (e[x(1721)] ? r += x(2080) : r += x(805)), r += x(2193) + h + x(1095) + h + ") vErrors.length = " + h + x(622), e[x(2244)].allErrors && (r += x(2274)); - } else f && (r += x(2110)); - return r; - }), et; -} -var tt, Kr; -function No() { - return Kr || (Kr = 1, tt = function(e, t, a) { - const x = B; - var r = " ", s = e[x(727)][t], o = e[x(578)] + "/" + t; - e.opts[x(837)]; - var c = e[x(2545)][x(1891)](s); - return e.opts.$comment === !0 ? r += x(686) + c + ");" : typeof e[x(2244)][x(1929)] == x(1342) && (r += x(951) + c + ", " + e[x(2545)][x(1891)](o) + x(2651)), r; - }), tt; -} -var rt, Jr; -function qo() { - return Jr || (Jr = 1, rt = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e[x(1005)], c = e.schema[t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e[x(2244)][x(837)], l = x(726) + (o || ""), g = "valid" + s, h = e[x(2244)][x(2597)] && c && c[x(2597)]; - h && (r += " var schema" + s + x(1165) + e[x(2545)][x(2454)](c[x(2597)], o, e[x(2660)]) + "; "), !h && (r += " var schema" + s + x(640) + d + ";"), r += "var " + g + x(2500) + l + x(1873) + s + x(2394) + g + x(1053); - var m = m || []; - m.push(r), r = "", e[x(573)] !== !1 ? (r += " { keyword: '" + x(2442) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)].toQuotedString(u) + x(2544) + s + x(2274), e.opts.messages !== !1 && (r += x(1583)), e.opts[x(1188)] && (r += x(2361) + d + x(1787) + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += " {} "; - var y = r; - return r = m[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += " throw new ValidationError([" + y + "]); " : r += x(2128) + y + "]; return false; " : r += x(1327) + y + x(518), r += " }", f && (r += " else { "), r; - }), rt; -} -var at, Qr; -function Oo() { - return Qr || (Qr = 1, at = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e.dataLevel, c = e.schema[t], d = e.schemaPath + e.util[x(1911)](t), u = e[x(578)] + "/" + t, f = !e[x(2244)][x(837)], l = "data" + (o || ""), g = "valid" + s, h = x(970) + s, m = e.util.copy(e), y = ""; - m[x(1304)]++; - var w = x(1954) + m[x(1304)], S = "i" + s, R = m[x(1005)] = e[x(1005)] + 1, A = x(726) + R, C = e[x(1013)], P = e[x(2244)][x(1380)] ? typeof c == x(2437) && Object[x(2278)](c)[x(1200)] > 0 || c === !1 : e.util.schemaHasRules(c, e[x(523)][x(1135)]); - if (r += "var " + h + x(612) + g + ";", P) { - var E = e[x(2521)]; - e.compositeRule = m.compositeRule = !0, m.schema = c, m[x(791)] = d, m[x(578)] = u, r += x(838) + w + x(800) + S + x(2299) + S + x(2706) + l + x(911) + S + x(754), m[x(1105)] = e.util[x(2020)](e.errorPath, S, e[x(2244)][x(1440)], !0); - var D = l + "[" + S + "]"; - m[x(2660)][R] = S; - var j = e[x(2481)](m); - m[x(1013)] = C, e.util[x(1896)](j, A) < 2 ? r += " " + e[x(2545)][x(811)](j, A, D) + " " : r += " var " + A + x(1165) + D + "; " + j + " ", r += x(1843) + w + x(2562), e.compositeRule = m.compositeRule = E, r += " " + y + x(1788) + w + x(1618); - } else r += x(1843) + l + x(2083); - var M = M || []; - M[x(818)](r), r = "", e[x(573)] !== !1 ? (r += " { keyword: '" + x(1507) + x(1035) + e[x(1105)] + " , schemaPath: " + e[x(2545)][x(1891)](u) + x(2243), e[x(2244)][x(1064)] !== !1 && (r += x(1796)), e[x(2244)][x(1188)] && (r += x(2361) + d + x(1787) + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += " {} "; - var F = r; - return r = M[x(2087)](), !e.compositeRule && f ? e[x(1721)] ? r += x(1585) + F + x(2477) : r += x(2128) + F + x(682) : r += x(1327) + F + x(518), r += " } else { ", P && (r += " errors = " + h + "; if (vErrors !== null) { if (" + h + x(2525) + h + x(622)), e[x(2244)][x(837)] && (r += " } "), r; - }), at; -} -var nt, Gr; -function Ao() { - return Gr || (Gr = 1, nt = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e.dataLevel, c = e[x(727)][t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e.opts[x(837)], l = "data" + (o || ""), g = x(970) + s, h = e.util[x(2456)](e), m = ""; - h[x(1304)]++; - var y = x(1954) + h[x(1304)], w = {}, S = {}, R = e.opts[x(859)]; - for (E in c) - if (E != x(769)) { - var A = c[E], C = Array[x(2344)](A) ? S : w; - C[E] = A; - } - r += x(909) + g + x(2609); - var P = e.errorPath; - r += x(1942) + s + ";"; - for (var E in S) - if (C = S[E], C[x(1200)]) { - if (r += x(2632) + l + e[x(2545)][x(1911)](E) + x(2529), R && (r += " && Object.prototype.hasOwnProperty.call(" + l + ", '" + e[x(2545)][x(1086)](E) + x(2610)), f) { - r += x(2614); - var D = C; - if (D) - for (var j, M = -1, F = D[x(1200)] - 1; M < F; ) { - j = D[M += 1], M && (r += x(1689)); - var N = e[x(2545)][x(1911)](j), U = l + N; - r += x(2354) + U + " === undefined ", R && (r += x(1797) + l + x(1254) + e.util.escapeQuotes(j) + x(2610)), r += x(840) + s + x(1165) + e[x(2545)][x(1891)](e[x(2244)][x(1440)] ? j : N) + x(1322); - } - r += x(1763); - var $ = x(2285) + s, V = x(2734) + $ + " + '"; - e.opts._errorDataPathProperty && (e[x(1105)] = e[x(2244)].jsonPointers ? e[x(2545)][x(2020)](P, $, !0) : P + " + " + $); - var J = J || []; - J[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + x(1362) + "' , dataPath: (dataPath || '') + " + e[x(1105)] + " , schemaPath: " + e[x(2545)].toQuotedString(u) + x(1511) + e.util[x(1086)](E) + x(2720) + V + x(2148) + C[x(1200)] + ", deps: '" + e.util.escapeQuotes(C[x(1200)] == 1 ? C[0] : C[x(2573)](", ")) + x(1993), e[x(2244)].messages !== !1 && (r += x(1489), C[x(1200)] == 1 ? r += "property " + e[x(2545)][x(1086)](C[0]) : r += x(1694) + e.util[x(1086)](C[x(2573)](", ")), r += " when property " + e[x(2545)].escapeQuotes(E) + x(1355)), e.opts[x(1188)] && (r += x(2361) + d + x(1787) + e.schemaPath + x(2701) + l + " "), r += " } ") : r += x(1494); - var s0 = r; - r = J.pop(), !e[x(2521)] && f ? e.async ? r += x(1585) + s0 + x(2477) : r += x(2128) + s0 + x(682) : r += x(1327) + s0 + x(518); - } else { - r += x(1969); - var o0 = C; - if (o0) - for (var j, u0 = -1, a0 = o0[x(1200)] - 1; u0 < a0; ) { - j = o0[u0 += 1]; - var N = e.util.getProperty(j), V = e.util[x(1086)](j), U = l + N; - e[x(2244)]._errorDataPathProperty && (e[x(1105)] = e[x(2545)].getPath(P, j, e[x(2244)].jsonPointers)), r += x(2632) + U + x(1478), R && (r += " || ! Object.prototype.hasOwnProperty.call(" + l + x(1254) + e[x(2545)].escapeQuotes(j) + "') "), r += x(777), e[x(573)] !== !1 ? (r += x(1250) + x(1362) + x(1035) + e[x(1105)] + x(2166) + e.util[x(1891)](u) + x(1511) + e[x(2545)].escapeQuotes(E) + x(2720) + V + x(2148) + C[x(1200)] + ", deps: '" + e.util[x(1086)](C[x(1200)] == 1 ? C[0] : C[x(2573)](", ")) + x(1993), e[x(2244)][x(1064)] !== !1 && (r += x(1489), C.length == 1 ? r += x(738) + e.util.escapeQuotes(C[0]) : r += "properties " + e[x(2545)].escapeQuotes(C.join(", ")), r += x(721) + e[x(2545)][x(1086)](E) + " is present' "), e[x(2244)][x(1188)] && (r += x(2361) + d + " , parentSchema: validate.schema" + e[x(791)] + " , data: " + l + " "), r += " } ") : r += x(1494), r += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "; - } - } - r += " } ", f && (m += "}", r += x(1293)); - } - e[x(1105)] = P; - var f0 = h.baseId; - for (var E in w) { - var A = w[E]; - (e.opts[x(1380)] ? typeof A == "object" && Object[x(2278)](A)[x(1200)] > 0 || A === !1 : e.util.schemaHasRules(A, e[x(523)][x(1135)])) && (r += " " + y + x(2173) + l + e[x(2545)].getProperty(E) + " !== undefined ", R && (r += x(1565) + l + x(1254) + e[x(2545)][x(1086)](E) + "') "), r += ") { ", h[x(727)] = A, h[x(791)] = d + e[x(2545)][x(1911)](E), h[x(578)] = u + "/" + e[x(2545)][x(750)](E), r += " " + e[x(2481)](h) + " ", h[x(1013)] = f0, r += x(908), f && (r += x(1843) + y + ") { ", m += "}")); - } - return f && (r += x(836) + m + " if (" + g + x(1004)), r; - }), nt; -} -var st, Yr; -function To() { - return Yr || (Yr = 1, st = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e[x(1005)], c = e[x(727)][t], d = e[x(791)] + e[x(2545)].getProperty(t), u = e[x(578)] + "/" + t, f = !e[x(2244)].allErrors, l = x(726) + (o || ""), g = "valid" + s, h = e[x(2244)][x(2597)] && c && c.$data; - h && (r += x(678) + s + " = " + e[x(2545)][x(2454)](c[x(2597)], o, e[x(2660)]) + "; "); - var m = "i" + s, y = x(727) + s; - !h && (r += " var " + y + x(640) + d + ";"), r += x(909) + g + ";", h && (r += x(550) + s + x(2308) + g + x(2370) + s + x(2047) + g + x(1159)), r += "" + g + x(1317) + m + "=0; " + m + "<" + y + ".length; " + m + x(1336) + l + ", " + y + "[" + m + x(2107) + g + x(782), h && (r += " } "), r += " if (!" + g + x(1053); - var w = w || []; - w.push(r), r = "", e[x(573)] !== !1 ? (r += " { keyword: 'enum" + x(1035) + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](u) + x(1740) + s + x(2274), e[x(2244)][x(1064)] !== !1 && (r += x(1755)), e[x(2244)].verbose && (r += " , schema: validate.schema" + d + " , parentSchema: validate.schema" + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += " {} "; - var S = r; - return r = w[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += " throw new ValidationError([" + S + x(2477) : r += " validate.errors = [" + S + "]; return false; " : r += x(1327) + S + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " }", f && (r += x(1293)), r; - }), st; -} -var it, Xr; -function Do() { - return Xr || (Xr = 1, it = function(e, t, a) { - const x = B; - var r = " ", s = e.level, o = e.dataLevel, c = e.schema[t], d = e[x(791)] + e.util[x(1911)](t), u = e[x(578)] + "/" + t, f = !e[x(2244)][x(837)], l = x(726) + (o || ""); - if (e[x(2244)][x(822)] === !1) return f && (r += " if (true) { "), r; - var g = e[x(2244)][x(2597)] && c && c.$data, h; - g ? (r += x(678) + s + x(1165) + e[x(2545)][x(2454)](c[x(2597)], o, e[x(2660)]) + "; ", h = x(727) + s) : h = c; - var m = e[x(2244)][x(927)], y = Array[x(2344)](m); - if (g) { - var w = "format" + s, S = x(1467) + s, R = x(2417) + s; - r += " var " + w + x(704) + h + "]; var " + S + x(2702) + w + x(2151) + w + " instanceof RegExp) && " + w + ".validate; var " + R + x(1165) + S + x(637) + w + x(2716) + S + x(1330), e.async && (r += x(1240) + s + " = " + w + x(1464)), r += " " + w + x(1165) + w + ".validate; } if ( ", g && (r += " (" + h + x(2407) + h + x(2229)), r += " (", m != x(2582) && (r += " (" + h + x(1847) + w + " ", y && (r += " && self._opts.unknownFormats.indexOf(" + h + x(905)), r += x(1203)), r += " (" + w + x(637) + R + " == '" + a + x(2524) + w + x(2109), e.async ? r += x(2051) + s + x(2146) + w + "(" + l + x(644) + w + "(" + l + ")) " : r += " " + w + "(" + l + ") ", r += x(1237) + w + x(1444) + l + x(679); - } else { - var w = e.formats[c]; - if (!w) { - if (m == x(2582)) return e[x(1077)].warn(x(1432) + c + x(999) + e[x(578)] + '"'), f && (r += " if (true) { "), r; - if (y && m[x(2170)](c) >= 0) return f && (r += x(2110)), r; - throw new Error(x(1432) + c + x(2551) + e[x(578)] + '"'); - } - var S = typeof w == x(2437) && !(w instanceof RegExp) && w.validate, R = S && w[x(2426)] || x(923); - if (S) { - var A = w[x(1721)] === !0; - w = w[x(2481)]; - } - if (R != a) return f && (r += " if (true) { "), r; - if (A) { - if (!e.async) throw new Error(x(1339)); - var C = x(1285) + e.util[x(1911)](c) + x(1774); - r += " if (!(await " + C + "(" + l + x(2482); - } else { - r += x(1723); - var C = x(1285) + e.util.getProperty(c); - S && (C += x(1774)), typeof w == "function" ? r += " " + C + "(" + l + ") " : r += " " + C + ".test(" + l + ") ", r += ") { "; - } - } - var P = P || []; - P.push(r), r = "", e[x(573)] !== !1 ? (r += x(1250) + x(822) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](u) + x(1898), g ? r += "" + h : r += "" + e[x(2545)][x(1891)](c), r += x(1742), e[x(2244)][x(1064)] !== !1 && (r += x(723), g ? r += x(2734) + h + x(770) : r += "" + e.util[x(1086)](c), r += x(2387)), e.opts[x(1188)] && (r += " , schema: ", g ? r += x(1191) + d : r += "" + e[x(2545)][x(1891)](c), r += x(1595) + e.schemaPath + x(2701) + l + " "), r += x(2274)) : r += x(1494); - var E = r; - return r = P[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + E + x(2477) : r += " validate.errors = [" + E + x(682) : r += x(1327) + E + x(518), r += x(2274), f && (r += x(1293)), r; - }), it; -} -var ot, _r; -function jo() { - return _r || (_r = 1, ot = function(e, t, a) { - const x = B; - var r = " ", s = e.level, o = e.dataLevel, c = e[x(727)][t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e.opts[x(837)], l = x(726) + (o || ""), g = "valid" + s, h = x(970) + s, m = e[x(2545)][x(2456)](e); - m[x(1304)]++; - var y = x(1954) + m[x(1304)], w = e[x(727)].then, S = e[x(727)][x(2553)], R = w !== void 0 && (e[x(2244)][x(1380)] ? typeof w == "object" && Object[x(2278)](w)[x(1200)] > 0 || w === !1 : e[x(2545)].schemaHasRules(w, e.RULES.all)), A = S !== void 0 && (e.opts[x(1380)] ? typeof S == "object" && Object[x(2278)](S)[x(1200)] > 0 || S === !1 : e[x(2545)][x(2547)](S, e.RULES[x(1135)])), C = m[x(1013)]; - if (R || A) { - var P; - m[x(573)] = !1, m[x(727)] = c, m[x(791)] = d, m[x(578)] = u, r += x(838) + h + x(1260) + g + x(2430); - var E = e.compositeRule; - e[x(2521)] = m[x(2521)] = !0, r += " " + e.validate(m) + " ", m.baseId = C, m.createErrors = !0, r += " errors = " + h + "; if (vErrors !== null) { if (" + h + x(2525) + h + x(2655), e[x(2521)] = m[x(2521)] = E, R ? (r += x(1843) + y + x(1091), m[x(727)] = e[x(727)][x(1413)], m[x(791)] = e.schemaPath + x(1856), m.errSchemaPath = e[x(578)] + "/then", r += " " + e[x(2481)](m) + " ", m[x(1013)] = C, r += " " + g + " = " + y + "; ", R && A ? (P = x(2504) + s, r += " var " + P + x(2247)) : P = x(2202), r += " } ", A && (r += " else { ")) : r += x(1788) + y + ") { ", A && (m.schema = e[x(727)][x(2553)], m[x(791)] = e[x(791)] + x(833), m[x(578)] = e[x(578)] + "/else", r += " " + e[x(2481)](m) + " ", m[x(1013)] = C, r += " " + g + x(1165) + y + "; ", R && A ? (P = x(2504) + s, r += " var " + P + x(1606)) : P = x(2084), r += x(2274)), r += " if (!" + g + ") { var err = ", e[x(573)] !== !1 ? (r += " { keyword: 'if" + x(1035) + e.errorPath + " , schemaPath: " + e[x(2545)].toQuotedString(u) + " , params: { failingKeyword: " + P + " } ", e[x(2244)][x(1064)] !== !1 && (r += ` , message: 'should match "' + ` + P + x(2723)), e[x(2244)][x(1188)] && (r += x(2361) + d + x(1787) + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += x(1494), r += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !e[x(2521)] && f && (e.async ? r += x(2080) : r += x(805)), r += " } ", f && (r += " else { "); - } else f && (r += " if (true) { "); - return r; - }), ot; -} -var ct, xa; -function Mo() { - return xa || (xa = 1, ct = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e.dataLevel, c = e[x(727)][t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e.opts[x(837)], l = x(726) + (o || ""), g = "valid" + s, h = x(970) + s, m = e[x(2545)][x(2456)](e), y = ""; - m[x(1304)]++; - var w = x(1954) + m[x(1304)], S = "i" + s, R = m.dataLevel = e.dataLevel + 1, A = "data" + R, C = e[x(1013)]; - if (r += x(909) + h + x(612) + g + ";", Array[x(2344)](c)) { - var P = e[x(727)][x(1138)]; - if (P === !1) { - r += " " + g + x(1165) + l + ".length <= " + c[x(1200)] + "; "; - var E = u; - u = e.errSchemaPath + x(1067), r += " if (!" + g + x(1053); - var D = D || []; - D.push(r), r = "", e.createErrors !== !1 ? (r += x(1250) + x(1138) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)].toQuotedString(u) + " , params: { limit: " + c[x(1200)] + x(2274), e.opts.messages !== !1 && (r += x(1845) + c[x(1200)] + x(1069)), e.opts[x(1188)] && (r += x(521) + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += x(1494); - var j = r; - r = D[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + j + x(2477) : r += x(2128) + j + x(682) : r += x(1327) + j + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += x(2274), u = E, f && (y += "}", r += x(1293)); - } - var M = c; - if (M) { - for (var F, N = -1, U = M.length - 1; N < U; ) - if (F = M[N += 1], e[x(2244)].strictKeywords ? typeof F == x(2437) && Object.keys(F)[x(1200)] > 0 || F === !1 : e[x(2545)][x(2547)](F, e[x(523)][x(1135)])) { - r += " " + w + x(601) + l + x(560) + N + x(1330); - var $ = l + "[" + N + "]"; - m[x(727)] = F, m[x(791)] = d + "[" + N + "]", m.errSchemaPath = u + "/" + N, m.errorPath = e[x(2545)][x(2020)](e[x(1105)], N, e[x(2244)].jsonPointers, !0), m[x(2660)][R] = N; - var V = e[x(2481)](m); - m[x(1013)] = C, e[x(2545)][x(1896)](V, A) < 2 ? r += " " + e[x(2545)][x(811)](V, A, $) + " " : r += x(838) + A + x(1165) + $ + "; " + V + " ", r += " } ", f && (r += x(1843) + w + x(1330), y += "}"); - } - } - if (typeof P == x(2437) && (e.opts[x(1380)] ? typeof P == "object" && Object[x(2278)](P)[x(1200)] > 0 || P === !1 : e.util[x(2547)](P, e[x(523)][x(1135)]))) { - m[x(727)] = P, m[x(791)] = e[x(791)] + x(549), m[x(578)] = e[x(578)] + x(1067), r += " " + w + " = true; if (" + l + x(560) + c[x(1200)] + x(1687) + S + x(1165) + c[x(1200)] + "; " + S + x(2706) + l + x(911) + S + x(754), m[x(1105)] = e.util[x(2020)](e.errorPath, S, e[x(2244)][x(1440)], !0); - var $ = l + "[" + S + "]"; - m[x(2660)][R] = S; - var V = e[x(2481)](m); - m[x(1013)] = C, e.util[x(1896)](V, A) < 2 ? r += " " + e[x(2545)][x(811)](V, A, $) + " " : r += " var " + A + x(1165) + $ + "; " + V + " ", f && (r += " if (!" + w + ") break; "), r += x(1231), f && (r += x(1843) + w + x(1330), y += "}"); - } - } else if (e[x(2244)][x(1380)] ? typeof c == "object" && Object[x(2278)](c)[x(1200)] > 0 || c === !1 : e.util[x(2547)](c, e[x(523)].all)) { - m[x(727)] = c, m[x(791)] = d, m[x(578)] = u, r += " for (var " + S + " = 0; " + S + " < " + l + x(911) + S + x(754), m[x(1105)] = e[x(2545)][x(2020)](e.errorPath, S, e[x(2244)][x(1440)], !0); - var $ = l + "[" + S + "]"; - m[x(2660)][R] = S; - var V = e.validate(m); - m[x(1013)] = C, e.util[x(1896)](V, A) < 2 ? r += " " + e[x(2545)].varReplace(V, A, $) + " " : r += x(838) + A + " = " + $ + "; " + V + " ", f && (r += x(1788) + w + x(1051)), r += " }"; - } - return f && (r += " " + y + " if (" + h + x(1004)), r; - }), ct; -} -var dt, ea; -function ta() { - return ea || (ea = 1, dt = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e[x(1005)], c = e.schema[t], d = e.schemaPath + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e[x(2244)].allErrors, C, l = x(726) + (o || ""), g = e[x(2244)][x(2597)] && c && c[x(2597)], h; - g ? (r += " var schema" + s + x(1165) + e[x(2545)][x(2454)](c.$data, o, e.dataPathArr) + "; ", h = "schema" + s) : h = c; - var m = t == x(756), y = m ? x(2625) : "exclusiveMinimum", w = e.schema[y], S = e.opts[x(2597)] && w && w[x(2597)], R = m ? "<" : ">", A = m ? ">" : "<", C = void 0; - if (!(g || typeof c == x(2074) || c === void 0)) throw new Error(t + " must be number"); - if (!(S || w === void 0 || typeof w == x(2074) || typeof w == x(958))) throw new Error(y + " must be number or boolean"); - if (S) { - var P = e[x(2545)][x(2454)](w[x(2597)], o, e[x(2660)]), E = x(716) + s, D = x(919) + s, j = x(1653) + s, M = "op" + s, F = "' + " + M + " + '"; - r += x(2618) + s + x(1165) + P + "; ", P = "schemaExcl" + s, r += x(838) + E + "; var " + D + x(2702) + P + x(563) + D + " != 'boolean' && " + D + x(511) + D + " != 'number') { "; - var C = y, N = N || []; - N[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + (C || x(2149)) + "' , dataPath: (dataPath || '') + " + e.errorPath + x(2166) + e[x(2545)][x(1891)](u) + " , params: {} ", e[x(2244)].messages !== !1 && (r += x(948) + y + x(2608)), e[x(2244)].verbose && (r += " , schema: validate.schema" + d + " , parentSchema: validate.schema" + e[x(791)] + " , data: " + l + " "), r += x(2274)) : r += " {} "; - var U = r; - r = N[x(2087)](), !e.compositeRule && f ? e[x(1721)] ? r += " throw new ValidationError([" + U + x(2477) : r += x(2128) + U + x(682) : r += " var err = " + U + x(518), r += x(2475), g && (r += " (" + h + x(2407) + h + x(2313)), r += " " + D + " == 'number' ? ( (" + E + " = " + h + " === undefined || " + P + " " + R + "= " + h + x(901) + l + " " + A + "= " + P + x(1237) + l + " " + A + " " + h + " ) : ( (" + E + x(1165) + P + " === true) ? " + l + " " + A + "= " + h + x(1237) + l + " " + A + " " + h + x(957) + l + " !== " + l + ") { var op" + s + x(1165) + E + x(2665) + R + "' : '" + R + "='; ", c === void 0 && (C = y, u = e[x(578)] + "/" + y, h = P, g = S); - } else { - var j = typeof w == x(2074), F = R; - if (j && g) { - var M = "'" + F + "'"; - r += x(2632), g && (r += " (" + h + x(2407) + h + " != 'number') || "), r += x(2733) + h + x(728) + w + " " + R + "= " + h + x(1487) + l + " " + A + "= " + w + x(1237) + l + " " + A + " " + h + x(957) + l + x(1198) + l + x(1330); - } else { - j && c === void 0 ? (E = !0, C = y, u = e[x(578)] + "/" + y, h = w, A += "=") : (j && (h = Math[x(m ? 606 : 599)](w, c)), w === (j ? h : !0) ? (E = !0, C = y, u = e[x(578)] + "/" + y, A += "=") : (E = !1, F += "=")); - var M = "'" + F + "'"; - r += x(2632), g && (r += " (" + h + " !== undefined && typeof " + h + x(2313)), r += " " + l + " " + A + " " + h + x(1689) + l + " !== " + l + x(1330); - } - } - C = C || t; - var N = N || []; - N[x(818)](r), r = "", e[x(573)] !== !1 ? (r += " { keyword: '" + (C || "_limit") + x(1035) + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](u) + x(2678) + M + ", limit: " + h + x(1267) + E + x(2274), e[x(2244)].messages !== !1 && (r += x(2167) + F + " ", g ? r += x(2734) + h : r += "" + h + "'"), e.opts[x(1188)] && (r += " , schema: ", g ? r += "validate.schema" + d : r += "" + c, r += x(1595) + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += x(1494); - var U = r; - return r = N.pop(), !e.compositeRule && f ? e[x(1721)] ? r += x(1585) + U + x(2477) : r += x(2128) + U + x(682) : r += x(1327) + U + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += x(2274), f && (r += x(1293)), r; - }), dt; -} -var ut, ra; -function aa() { - return ra || (ra = 1, ut = function(e, t, a) { - const x = B; - var r = " ", s = e.level, o = e[x(1005)], c = e[x(727)][t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e[x(2244)][x(837)], y, l = x(726) + (o || ""), g = e[x(2244)].$data && c && c.$data, h; - if (g ? (r += x(678) + s + x(1165) + e[x(2545)][x(2454)](c[x(2597)], o, e[x(2660)]) + "; ", h = x(727) + s) : h = c, !(g || typeof c == "number")) throw new Error(t + x(1057)); - var m = t == x(1648) ? ">" : "<"; - r += x(1113), g && (r += " (" + h + x(2407) + h + x(2313)), r += " " + l + x(1284) + m + " " + h + ") { "; - var y = t, w = w || []; - w[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + (y || x(1541)) + x(1035) + e.errorPath + x(2166) + e[x(2545)][x(1891)](u) + x(2136) + h + x(2274), e[x(2244)][x(1064)] !== !1 && (r += x(698), t == x(1648) ? r += x(2195) : r += x(1902), r += x(860), g ? r += x(2734) + h + x(770) : r += "" + c, r += " items' "), e[x(2244)].verbose && (r += x(1592), g ? r += x(1191) + d : r += "" + c, r += x(1595) + e[x(791)] + " , data: " + l + " "), r += x(2274)) : r += x(1494); - var S = r; - return r = w[x(2087)](), !e.compositeRule && f ? e[x(1721)] ? r += " throw new ValidationError([" + S + x(2477) : r += x(2128) + S + x(682) : r += x(1327) + S + x(518), r += "} ", f && (r += " else { "), r; - }), ut; -} -var ft, na; -function sa() { - return na || (na = 1, ft = function(e, t, a) { - const x = B; - var r = " ", s = e.level, o = e.dataLevel, c = e[x(727)][t], d = e[x(791)] + e[x(2545)].getProperty(t), u = e[x(578)] + "/" + t, f = !e[x(2244)][x(837)], y, l = x(726) + (o || ""), g = e[x(2244)][x(2597)] && c && c[x(2597)], h; - if (g ? (r += x(678) + s + x(1165) + e.util[x(2454)](c[x(2597)], o, e.dataPathArr) + "; ", h = "schema" + s) : h = c, !(g || typeof c == x(2074))) throw new Error(t + x(1057)); - var m = t == x(2692) ? ">" : "<"; - r += x(1113), g && (r += " (" + h + x(2407) + h + x(2313)), e[x(2244)][x(2455)] === !1 ? r += " " + l + x(1284) : r += x(1027) + l + ") ", r += " " + m + " " + h + x(1330); - var y = t, w = w || []; - w[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + (y || x(2283)) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](u) + x(2136) + h + x(2274), e.opts[x(1064)] !== !1 && (r += x(503), t == x(2692) ? r += "longer" : r += x(1469), r += x(860), g ? r += x(2734) + h + x(770) : r += "" + c, r += x(1846)), e[x(2244)][x(1188)] && (r += x(1592), g ? r += x(1191) + d : r += "" + c, r += x(1595) + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += x(1494); - var S = r; - return r = w[x(2087)](), !e.compositeRule && f ? e[x(1721)] ? r += x(1585) + S + x(2477) : r += x(2128) + S + x(682) : r += " var err = " + S + x(518), r += "} ", f && (r += " else { "), r; - }), ft; -} -var lt, ia; -function oa() { - return ia || (ia = 1, lt = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e[x(1005)], c = e.schema[t], d = e[x(791)] + e[x(2545)].getProperty(t), u = e.errSchemaPath + "/" + t, f = !e.opts[x(837)], y, l = "data" + (o || ""), g = e[x(2244)][x(2597)] && c && c[x(2597)], h; - if (g ? (r += x(678) + s + x(1165) + e[x(2545)][x(2454)](c[x(2597)], o, e[x(2660)]) + "; ", h = x(727) + s) : h = c, !(g || typeof c == "number")) throw new Error(t + " must be number"); - var m = t == x(575) ? ">" : "<"; - r += "if ( ", g && (r += " (" + h + x(2407) + h + x(2313)), r += x(2280) + l + x(2006) + m + " " + h + x(1330); - var y = t, w = w || []; - w[x(818)](r), r = "", e[x(573)] !== !1 ? (r += " { keyword: '" + (y || x(1971)) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](u) + " , params: { limit: " + h + x(2274), e.opts[x(1064)] !== !1 && (r += x(698), t == "maxProperties" ? r += x(2195) : r += "fewer", r += x(860), g ? r += "' + " + h + " + '" : r += "" + c, r += x(1729)), e[x(2244)][x(1188)] && (r += x(1592), g ? r += x(1191) + d : r += "" + c, r += x(1595) + e.schemaPath + x(2701) + l + " "), r += x(2274)) : r += " {} "; - var S = r; - return r = w[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + S + x(2477) : r += x(2128) + S + "]; return false; " : r += x(1327) + S + x(518), r += "} ", f && (r += x(1293)), r; - }), lt; -} -var ht, ca; -function Lo() { - return ca || (ca = 1, ht = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e[x(1005)], c = e[x(727)][t], d = e[x(791)] + e.util[x(1911)](t), u = e.errSchemaPath + "/" + t, f = !e[x(2244)][x(837)], l = x(726) + (o || ""), g = e[x(2244)][x(2597)] && c && c[x(2597)], h; - if (g ? (r += x(678) + s + x(1165) + e[x(2545)][x(2454)](c.$data, o, e[x(2660)]) + "; ", h = x(727) + s) : h = c, !(g || typeof c == x(2074))) throw new Error(t + x(1057)); - r += "var division" + s + ";if (", g && (r += " " + h + x(1017) + h + " != 'number' || "), r += " (division" + s + " = " + l + x(767) + h + ", ", e[x(2244)].multipleOfPrecision ? r += " Math.abs(Math.round(division" + s + ") - division" + s + ") > 1e-" + e[x(2244)].multipleOfPrecision + " " : r += x(1547) + s + x(877) + s + ") ", r += x(1953), g && (r += x(1679)), r += " ) { "; - var m = m || []; - m[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + x(500) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](u) + " , params: { multipleOf: " + h + x(2274), e[x(2244)][x(1064)] !== !1 && (r += " , message: 'should be multiple of ", g ? r += x(2734) + h : r += "" + h + "'"), e[x(2244)][x(1188)] && (r += " , schema: ", g ? r += x(1191) + d : r += "" + c, r += " , parentSchema: validate.schema" + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += x(1494); - var y = r; - return r = m[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + y + x(2477) : r += x(2128) + y + x(682) : r += " var err = " + y + x(518), r += "} ", f && (r += x(1293)), r; - }), ht; -} -var pt, da; -function $o() { - return da || (da = 1, pt = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e.dataLevel, c = e[x(727)][t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e[x(2244)][x(837)], l = x(726) + (o || ""), g = "errs__" + s, h = e.util[x(2456)](e); - h.level++; - var m = x(1954) + h.level; - if (e[x(2244)][x(1380)] ? typeof c == x(2437) && Object[x(2278)](c)[x(1200)] > 0 || c === !1 : e[x(2545)][x(2547)](c, e[x(523)].all)) { - h[x(727)] = c, h[x(791)] = d, h[x(578)] = u, r += x(838) + g + x(2566); - var y = e[x(2521)]; - e[x(2521)] = h[x(2521)] = !0, h[x(573)] = !1; - var w; - h[x(2244)][x(837)] && (w = h.opts[x(837)], h[x(2244)][x(837)] = !1), r += " " + e[x(2481)](h) + " ", h.createErrors = !0, w && (h.opts.allErrors = w), e[x(2521)] = h.compositeRule = y, r += x(1843) + m + ") { "; - var S = S || []; - S[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + x(2645) + x(1035) + e.errorPath + " , schemaPath: " + e.util[x(1891)](u) + " , params: {} ", e[x(2244)].messages !== !1 && (r += " , message: 'should NOT be valid' "), e[x(2244)][x(1188)] && (r += x(2361) + d + x(1787) + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += x(1494); - var R = r; - r = S[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + R + x(2477) : r += x(2128) + R + x(682) : r += x(1327) + R + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } else { errors = " + g + "; if (vErrors !== null) { if (" + g + x(2525) + g + "; else vErrors = null; } ", e[x(2244)][x(837)] && (r += x(2274)); - } else r += " var err = ", e[x(573)] !== !1 ? (r += x(1250) + x(2645) + x(1035) + e.errorPath + x(2166) + e[x(2545)][x(1891)](u) + x(2243), e[x(2244)][x(1064)] !== !1 && (r += " , message: 'should NOT be valid' "), e[x(2244)][x(1188)] && (r += x(2361) + d + " , parentSchema: validate.schema" + e[x(791)] + " , data: " + l + " "), r += " } ") : r += " {} ", r += x(518), f && (r += x(1746)); - return r; - }), pt; -} -var mt, ua; -function zo() { - return ua || (ua = 1, mt = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e[x(1005)], c = e.schema[t], d = e[x(791)] + e[x(2545)].getProperty(t), u = e[x(578)] + "/" + t, f = !e[x(2244)].allErrors, l = x(726) + (o || ""), g = x(1954) + s, h = x(970) + s, m = e[x(2545)][x(2456)](e), y = ""; - m[x(1304)]++; - var w = x(1954) + m.level, S = m.baseId, R = x(2358) + s, A = x(1501) + s; - r += x(909) + h + " = errors , " + R + " = false , " + g + x(1471) + A + " = null; "; - var C = e[x(2521)]; - e.compositeRule = m[x(2521)] = !0; - var P = c; - if (P) - for (var E, D = -1, j = P[x(1200)] - 1; D < j; ) - E = P[D += 1], (e[x(2244)][x(1380)] ? typeof E == "object" && Object.keys(E)[x(1200)] > 0 || E === !1 : e[x(2545)].schemaHasRules(E, e[x(523)][x(1135)])) ? (m[x(727)] = E, m[x(791)] = d + "[" + D + "]", m.errSchemaPath = u + "/" + D, r += " " + e.validate(m) + " ", m[x(1013)] = S) : r += x(838) + w + x(2483), D && (r += x(1843) + w + x(637) + R + x(1330) + g + x(921) + A + x(1874) + A + ", " + D + "]; } else { ", y += "}"), r += x(1843) + w + x(1330) + g + x(1165) + R + x(2483) + A + x(1165) + D + x(742); - return e[x(2521)] = m.compositeRule = C, r += "" + y + x(1436) + g + x(2363), e[x(573)] !== !1 ? (r += x(1250) + x(2141) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)].toQuotedString(u) + " , params: { passingSchemas: " + A + x(2274), e.opts.messages !== !1 && (r += " , message: 'should match exactly one schema in oneOf' "), e.opts[x(1188)] && (r += x(2361) + d + x(1787) + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += x(1494), r += x(518), !e[x(2521)] && f && (e[x(1721)] ? r += " throw new ValidationError(vErrors); " : r += x(805)), r += x(1394) + h + x(1095) + h + x(2525) + h + x(1876), e.opts[x(837)] && (r += x(2274)), r; - }), mt; -} -var gt, fa; -function Ho() { - return fa || (fa = 1, gt = function(e, t, a) { - const x = B; - var r = " ", s = e.level, o = e[x(1005)], c = e.schema[t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e[x(2244)].allErrors, l = x(726) + (o || ""), g = e[x(2244)].$data && c && c[x(2597)], h; - g ? (r += x(678) + s + " = " + e[x(2545)][x(2454)](c[x(2597)], o, e.dataPathArr) + "; ", h = "schema" + s) : h = c; - var m = g ? x(1887) + h + "))" : e[x(593)](c); - r += x(1113), g && (r += " (" + h + x(2407) + h + " != 'string') || "), r += " !" + m + x(1444) + l + x(1758); - var y = y || []; - y[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + "pattern" + x(1035) + e[x(1105)] + x(2166) + e.util[x(1891)](u) + x(2016), g ? r += "" + h : r += "" + e[x(2545)][x(1891)](c), r += " } ", e[x(2244)][x(1064)] !== !1 && (r += x(1201), g ? r += x(2734) + h + x(770) : r += "" + e[x(2545)].escapeQuotes(c), r += x(2387)), e.opts[x(1188)] && (r += x(1592), g ? r += x(1191) + d : r += "" + e.util[x(1891)](c), r += x(1595) + e.schemaPath + x(2701) + l + " "), r += x(2274)) : r += x(1494); - var w = r; - return r = y.pop(), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + w + x(2477) : r += x(2128) + w + x(682) : r += x(1327) + w + x(518), r += "} ", f && (r += x(1293)), r; - }), gt; -} -var vt, la; -function Uo() { - return la || (la = 1, vt = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e[x(1005)], c = e.schema[t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e.errSchemaPath + "/" + t, f = !e[x(2244)][x(837)], l = x(726) + (o || ""), g = "errs__" + s, h = e.util[x(2456)](e), m = ""; - h.level++; - var y = x(1954) + h[x(1304)], w = "key" + s, S = "idx" + s, R = h[x(1005)] = e[x(1005)] + 1, A = x(726) + R, C = x(2490) + s, P = Object[x(2278)](c || {})[x(893)](u0), E = e[x(727)][x(2622)] || {}, D = Object[x(2278)](E)[x(893)](u0), j = e[x(727)][x(2273)], M = P[x(1200)] || D[x(1200)], F = j === !1, N = typeof j == x(2437) && Object[x(2278)](j)[x(1200)], U = e[x(2244)][x(1435)], $ = F || N || U, V = e.opts[x(859)], J = e.baseId, s0 = e[x(727)].required; - if (s0 && !(e.opts[x(2597)] && s0.$data) && s0[x(1200)] < e[x(2244)].loopRequired) var o0 = e.util[x(797)](s0); - function u0(Le) { - return Le !== x(769); - } - if (r += "var " + g + x(612) + y + x(2327), V && (r += x(838) + C + " = undefined;"), $) { - if (V ? r += " " + C + x(1165) + C + " || Object.keys(" + l + x(1590) + S + "=0; " + S + "<" + C + x(911) + S + "++) { var " + w + x(1165) + C + "[" + S + x(2536) : r += x(2493) + w + x(1192) + l + x(1330), M) { - if (r += x(524) + s + " = !(false ", P.length) - if (P.length > 8) r += x(784) + d + ".hasOwnProperty(" + w + ") "; - else { - var a0 = P; - if (a0) - for (var f0, w0 = -1, m0 = a0[x(1200)] - 1; w0 < m0; ) - f0 = a0[w0 += 1], r += x(1689) + w + x(1006) + e[x(2545)][x(1891)](f0) + " "; - } - if (D.length) { - var D0 = D; - if (D0) - for (var E0, J0 = -1, T = D0.length - 1; J0 < T; ) - E0 = D0[J0 += 1], r += " || " + e.usePattern(E0) + x(1444) + w + ") "; - } - r += x(1553) + s + x(1330); - } - if (U == x(1135)) r += " delete " + l + "[" + w + "]; "; - else { - var q = e[x(1105)], L = "' + " + w + x(770); - if (e[x(2244)][x(2474)] && (e.errorPath = e[x(2545)].getPathExpr(e[x(1105)], w, e[x(2244)][x(1440)])), F) - if (U) r += x(2184) + l + "[" + w + x(2536); - else { - r += " " + y + x(921); - var Q = u; - u = e[x(578)] + x(2043); - var G = G || []; - G.push(r), r = "", e.createErrors !== !1 ? (r += x(1250) + x(2273) + x(1035) + e[x(1105)] + x(2166) + e.util[x(1891)](u) + " , params: { additionalProperty: '" + L + "' } ", e.opts.messages !== !1 && (r += x(948), e[x(2244)][x(2474)] ? r += x(1921) : r += x(1119), r += "' "), e[x(2244)][x(1188)] && (r += x(521) + e[x(791)] + x(2701) + l + " "), r += " } ") : r += x(1494); - var Z = r; - r = G[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + Z + x(2477) : r += x(2128) + Z + x(682) : r += x(1327) + Z + x(518), u = Q, f && (r += x(1226)); - } - else if (N) - if (U == "failing") { - r += " var " + g + x(2566); - var Y = e.compositeRule; - e[x(2521)] = h[x(2521)] = !0, h.schema = j, h[x(791)] = e[x(791)] + ".additionalProperties", h[x(578)] = e.errSchemaPath + "/additionalProperties", h.errorPath = e.opts[x(2474)] ? e[x(1105)] : e[x(2545)][x(2020)](e.errorPath, w, e[x(2244)][x(1440)]); - var n0 = l + "[" + w + "]"; - h.dataPathArr[R] = w; - var i0 = e[x(2481)](h); - h[x(1013)] = J, e[x(2545)].varOccurences(i0, A) < 2 ? r += " " + e[x(2545)][x(811)](i0, A, n0) + " " : r += x(838) + A + " = " + n0 + "; " + i0 + " ", r += x(1788) + y + x(1335) + g + x(547) + l + "[" + w + x(2403), e[x(2521)] = h[x(2521)] = Y; - } else { - h[x(727)] = j, h.schemaPath = e[x(791)] + x(1094), h.errSchemaPath = e.errSchemaPath + x(2043), h.errorPath = e[x(2244)][x(2474)] ? e[x(1105)] : e[x(2545)][x(2020)](e[x(1105)], w, e[x(2244)][x(1440)]); - var n0 = l + "[" + w + "]"; - h[x(2660)][R] = w; - var i0 = e[x(2481)](h); - h.baseId = J, e[x(2545)][x(1896)](i0, A) < 2 ? r += " " + e[x(2545)][x(811)](i0, A, n0) + " " : r += x(838) + A + x(1165) + n0 + "; " + i0 + " ", f && (r += x(1788) + y + x(1051)); - } - e[x(1105)] = q; - } - M && (r += x(2274)), r += " } ", f && (r += x(1843) + y + x(1330), m += "}"); - } - var x0 = e[x(2244)][x(794)] && !e[x(2521)]; - if (P.length) { - var j0 = P; - if (j0) - for (var f0, q0 = -1, $0 = j0[x(1200)] - 1; q0 < $0; ) { - f0 = j0[q0 += 1]; - var b0 = c[f0]; - if (e[x(2244)].strictKeywords ? typeof b0 == x(2437) && Object.keys(b0).length > 0 || b0 === !1 : e[x(2545)][x(2547)](b0, e[x(523)].all)) { - var K0 = e.util.getProperty(f0), n0 = l + K0, sx = x0 && b0[x(1658)] !== void 0; - h.schema = b0, h[x(791)] = d + K0, h[x(578)] = u + "/" + e[x(2545)][x(750)](f0), h[x(1105)] = e[x(2545)][x(1199)](e.errorPath, f0, e[x(2244)][x(1440)]), h[x(2660)][R] = e.util[x(1891)](f0); - var i0 = e.validate(h); - if (h[x(1013)] = J, e.util[x(1896)](i0, A) < 2) { - i0 = e[x(2545)][x(811)](i0, A, n0); - var Q0 = n0; - } else { - var Q0 = A; - r += x(838) + A + x(1165) + n0 + "; "; - } - if (sx) r += " " + i0 + " "; - else { - if (o0 && o0[f0]) { - r += " if ( " + Q0 + x(1478), V && (r += " || ! Object.prototype.hasOwnProperty.call(" + l + x(1254) + e[x(2545)][x(1086)](f0) + "') "), r += x(1330) + y + x(921); - var q = e[x(1105)], Q = u, O0 = e[x(2545)][x(1086)](f0); - e[x(2244)][x(2474)] && (e[x(1105)] = e[x(2545)][x(1199)](q, f0, e[x(2244)].jsonPointers)), u = e[x(578)] + x(705); - var G = G || []; - G[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + "required' , dataPath: (dataPath || '') + " + e.errorPath + x(2166) + e[x(2545)][x(1891)](u) + x(491) + O0 + x(1993), e.opts[x(1064)] !== !1 && (r += " , message: '", e[x(2244)]._errorDataPathProperty ? r += "is a required property" : r += x(1705) + O0 + "\\'", r += "' "), e[x(2244)][x(1188)] && (r += " , schema: validate.schema" + d + x(1787) + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += x(1494); - var Z = r; - r = G[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + Z + "]); " : r += " validate.errors = [" + Z + x(682) : r += x(1327) + Z + x(518), u = Q, e[x(1105)] = q, r += x(1955); - } else f ? (r += x(2632) + Q0 + x(1478), V && (r += x(1797) + l + x(1254) + e[x(2545)].escapeQuotes(f0) + x(2610)), r += ") { " + y + x(1458)) : (r += x(1843) + Q0 + x(2529), V && (r += x(961) + l + x(1254) + e.util[x(1086)](f0) + x(2610)), r += x(1969)); - r += " " + i0 + x(2274); - } - } - f && (r += x(1843) + y + x(1330), m += "}"); - } - } - if (D.length) { - var z0 = D; - if (z0) - for (var E0, X0 = -1, Bx = z0[x(1200)] - 1; X0 < Bx; ) { - E0 = z0[X0 += 1]; - var b0 = E[E0]; - if (e[x(2244)].strictKeywords ? typeof b0 == "object" && Object[x(2278)](b0).length > 0 || b0 === !1 : e[x(2545)][x(2547)](b0, e[x(523)][x(1135)])) { - h[x(727)] = b0, h.schemaPath = e.schemaPath + ".patternProperties" + e[x(2545)][x(1911)](E0), h.errSchemaPath = e[x(578)] + x(2118) + e[x(2545)][x(750)](E0), V ? r += " " + C + x(1165) + C + " || Object.keys(" + l + x(1590) + S + "=0; " + S + "<" + C + x(911) + S + "++) { var " + w + x(1165) + C + "[" + S + x(2536) : r += x(2493) + w + x(1192) + l + ") { ", r += x(1843) + e[x(593)](E0) + ".test(" + w + x(1026), h[x(1105)] = e.util[x(2020)](e[x(1105)], w, e[x(2244)][x(1440)]); - var n0 = l + "[" + w + "]"; - h[x(2660)][R] = w; - var i0 = e[x(2481)](h); - h[x(1013)] = J, e[x(2545)].varOccurences(i0, A) < 2 ? r += " " + e[x(2545)].varReplace(i0, A, n0) + " " : r += x(838) + A + x(1165) + n0 + "; " + i0 + " ", f && (r += x(1788) + y + x(1051)), r += x(2274), f && (r += x(2104) + y + x(2483)), r += x(908), f && (r += x(1843) + y + x(1330), m += "}"); - } - } - } - return f && (r += " " + m + x(1843) + g + x(1004)), r; - }), vt; -} -var yt, ha; -function Vo() { - return ha || (ha = 1, yt = function(e, t, a) { - const x = B; - var r = " ", s = e.level, o = e[x(1005)], c = e.schema[t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e.errSchemaPath + "/" + t, f = !e[x(2244)][x(837)], l = x(726) + (o || ""), g = x(970) + s, h = e[x(2545)][x(2456)](e), m = ""; - h.level++; - var y = x(1954) + h.level; - if (r += x(909) + g + x(2609), e.opts.strictKeywords ? typeof c == x(2437) && Object.keys(c)[x(1200)] > 0 || c === !1 : e[x(2545)][x(2547)](c, e[x(523)][x(1135)])) { - h[x(727)] = c, h.schemaPath = d, h[x(578)] = u; - var w = x(1232) + s, S = "idx" + s, R = "i" + s, A = x(2734) + w + x(770), C = h[x(1005)] = e[x(1005)] + 1, P = x(726) + C, E = x(2490) + s, D = e.opts[x(859)], j = e[x(1013)]; - D && (r += " var " + E + x(873)), D ? r += " " + E + " = " + E + " || Object.keys(" + l + x(1590) + S + x(1576) + S + "<" + E + x(911) + S + x(2133) + w + x(1165) + E + "[" + S + x(2536) : r += x(2493) + w + x(1192) + l + ") { ", r += x(762) + s + " = errors; "; - var M = w, F = e[x(2521)]; - e[x(2521)] = h.compositeRule = !0; - var N = e[x(2481)](h); - h[x(1013)] = j, e[x(2545)][x(1896)](N, P) < 2 ? r += " " + e.util[x(811)](N, P, M) + " " : r += x(838) + P + " = " + M + "; " + N + " ", e[x(2521)] = h[x(2521)] = F, r += x(1788) + y + x(1214) + R + x(924) + s + "; " + R + " 0 || A === !1 : e[x(2545)].schemaHasRules(A, e[x(523)][x(1135)]))) && (C[C[x(1200)]] = w); - } - } else var C = c; - if (h || C.length) { - var P = e[x(1105)], E = h || C[x(1200)] >= e[x(2244)][x(2402)], D = e[x(2244)][x(859)]; - if (f) - if (r += " var missing" + s + "; ", E) { - !h && (r += x(838) + m + x(640) + d + "; "); - var j = "i" + s, M = x(727) + s + "[" + j + "]", F = x(2734) + M + x(770); - e[x(2244)][x(2474)] && (e[x(1105)] = e[x(2545)][x(2020)](P, M, e.opts.jsonPointers)), r += x(838) + g + x(2483), h && (r += x(550) + s + x(2308) + g + x(2370) + s + x(2047) + g + x(1159)), r += " for (var " + j + x(2299) + j + x(2706) + m + x(911) + j + "++) { " + g + x(1165) + l + "[" + m + "[" + j + "]] !== undefined ", D && (r += x(961) + l + ", " + m + "[" + j + x(2468)), r += x(2554) + g + x(1120), h && (r += " } "), r += x(2092) + g + ") { "; - var N = N || []; - N[x(818)](r), r = "", e[x(573)] !== !1 ? (r += x(1250) + x(1040) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)].toQuotedString(u) + x(491) + F + x(1993), e[x(2244)][x(1064)] !== !1 && (r += x(948), e[x(2244)][x(2474)] ? r += x(1611) : r += x(1705) + F + "\\'", r += "' "), e[x(2244)].verbose && (r += x(2361) + d + x(1787) + e.schemaPath + x(2701) + l + " "), r += x(2274)) : r += " {} "; - var U = r; - r = N[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + U + x(2477) : r += x(2128) + U + x(682) : r += x(1327) + U + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } else { "; - } else { - r += x(2632); - var $ = C; - if ($) - for (var V, j = -1, J = $[x(1200)] - 1; j < J; ) { - V = $[j += 1], j && (r += x(1689)); - var s0 = e[x(2545)][x(1911)](V), o0 = l + s0; - r += x(2354) + o0 + x(1478), D && (r += x(1797) + l + x(1254) + e[x(2545)][x(1086)](V) + x(2610)), r += ") && (missing" + s + x(1165) + e.util[x(1891)](e[x(2244)][x(1440)] ? V : s0) + x(1322); - } - r += x(1091); - var M = x(2285) + s, F = "' + " + M + " + '"; - e[x(2244)][x(2474)] && (e[x(1105)] = e.opts[x(1440)] ? e[x(2545)][x(2020)](P, M, !0) : P + x(1623) + M); - var N = N || []; - N.push(r), r = "", e[x(573)] !== !1 ? (r += " { keyword: 'required" + x(1035) + e[x(1105)] + x(2166) + e.util.toQuotedString(u) + x(491) + F + x(1993), e.opts[x(1064)] !== !1 && (r += x(948), e[x(2244)][x(2474)] ? r += x(1611) : r += "should have required property \\'" + F + "\\'", r += "' "), e.opts.verbose && (r += x(2361) + d + x(1787) + e[x(791)] + x(2701) + l + " "), r += " } ") : r += " {} "; - var U = r; - r = N.pop(), !e.compositeRule && f ? e[x(1721)] ? r += x(1585) + U + x(2477) : r += x(2128) + U + x(682) : r += x(1327) + U + x(518), r += x(1955); - } - else if (E) { - !h && (r += x(838) + m + " = validate.schema" + d + "; "); - var j = "i" + s, M = x(727) + s + "[" + j + "]", F = x(2734) + M + x(770); - e.opts[x(2474)] && (e[x(1105)] = e[x(2545)].getPathExpr(P, M, e[x(2244)][x(1440)])), h && (r += x(1843) + m + x(2127) + m + ")) { var err = ", e.createErrors !== !1 ? (r += x(1250) + x(1040) + "' , dataPath: (dataPath || '') + " + e.errorPath + x(2166) + e[x(2545)][x(1891)](u) + x(491) + F + "' } ", e.opts.messages !== !1 && (r += x(948), e.opts._errorDataPathProperty ? r += x(1611) : r += x(1705) + F + "\\'", r += "' "), e[x(2244)][x(1188)] && (r += x(2361) + d + " , parentSchema: validate.schema" + e[x(791)] + " , data: " + l + " "), r += x(2274)) : r += x(1494), r += x(1139) + m + x(2484)), r += x(2493) + j + x(2299) + j + x(2706) + m + x(911) + j + x(954) + l + "[" + m + "[" + j + x(2270), D && (r += " || ! Object.prototype.hasOwnProperty.call(" + l + ", " + m + "[" + j + "]) "), r += x(777), e[x(573)] !== !1 ? (r += x(1250) + x(1040) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](u) + " , params: { missingProperty: '" + F + x(1993), e.opts.messages !== !1 && (r += " , message: '", e[x(2244)][x(2474)] ? r += x(1611) : r += x(1705) + F + "\\'", r += "' "), e[x(2244)][x(1188)] && (r += x(2361) + d + x(1787) + e[x(791)] + " , data: " + l + " "), r += " } ") : r += " {} ", r += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ", h && (r += x(1561)); - } else { - var u0 = C; - if (u0) - for (var V, a0 = -1, f0 = u0.length - 1; a0 < f0; ) { - V = u0[a0 += 1]; - var s0 = e.util[x(1911)](V), F = e.util[x(1086)](V), o0 = l + s0; - e[x(2244)]._errorDataPathProperty && (e.errorPath = e[x(2545)][x(1199)](P, V, e.opts[x(1440)])), r += x(2632) + o0 + x(1478), D && (r += " || ! Object.prototype.hasOwnProperty.call(" + l + x(1254) + e[x(2545)].escapeQuotes(V) + "') "), r += x(777), e[x(573)] !== !1 ? (r += x(1250) + x(1040) + "' , dataPath: (dataPath || '') + " + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](u) + x(491) + F + x(1993), e[x(2244)].messages !== !1 && (r += x(948), e[x(2244)][x(2474)] ? r += x(1611) : r += x(1705) + F + "\\'", r += "' "), e.opts[x(1188)] && (r += " , schema: validate.schema" + d + " , parentSchema: validate.schema" + e[x(791)] + x(2701) + l + " "), r += x(2274)) : r += x(1494), r += x(804); - } - } - e[x(1105)] = P; - } else f && (r += x(1437)); - return r; - }), bt; -} -var wt, ma; -function Wo() { - return ma || (ma = 1, wt = function(e, t, a) { - const x = B; - var r = " ", s = e.level, o = e.dataLevel, c = e[x(727)][t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e[x(2244)].allErrors, l = "data" + (o || ""), g = "valid" + s, h = e[x(2244)].$data && c && c[x(2597)], m; - if (h ? (r += x(678) + s + x(1165) + e[x(2545)][x(2454)](c[x(2597)], o, e[x(2660)]) + "; ", m = x(727) + s) : m = c, (c || h) && e.opts[x(2721)] !== !1) { - h && (r += x(838) + g + x(563) + m + x(2522) + m + x(2308) + g + x(1879) + m + x(1562) + g + x(2336)), r += x(887) + l + x(1021) + g + x(1114); - var y = e.schema[x(2637)] && e.schema.items.type, w = Array[x(2344)](y); - if (!y || y == x(2437) || y == x(1196) || w && (y[x(2170)](x(2437)) >= 0 || y[x(2170)]("array") >= 0)) r += x(660) + l + x(1118) + l + x(632) + g + x(2355); - else { - r += x(2057) + l + x(2113); - var S = x(730) + (w ? "s" : ""); - r += x(1843) + e[x(2545)][S](y, x(1055), e[x(2244)][x(1222)], !0) + ") continue; ", w && (r += x(817)), r += x(1651) + g + x(1124); - } - r += x(2274), h && (r += x(1561)), r += x(1788) + g + x(1053); - var R = R || []; - R.push(r), r = "", e.createErrors !== !1 ? (r += x(1250) + "uniqueItems" + x(1035) + e[x(1105)] + x(2166) + e[x(2545)].toQuotedString(u) + x(2334), e.opts[x(1064)] !== !1 && (r += " , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "), e.opts.verbose && (r += x(1592), h ? r += x(1191) + d : r += "" + c, r += x(1595) + e.schemaPath + x(2701) + l + " "), r += x(2274)) : r += " {} "; - var A = r; - r = R[x(2087)](), !e[x(2521)] && f ? e[x(1721)] ? r += x(1585) + A + x(2477) : r += x(2128) + A + x(682) : r += x(1327) + A + x(518), r += x(2274), f && (r += x(1293)); - } else f && (r += x(2110)); - return r; - }), wt; -} -var St, ga; -function Bo() { - return ga || (ga = 1, St = { $ref: Io(), allOf: Ro(), anyOf: Fo(), $comment: No(), const: qo(), contains: Oo(), dependencies: Ao(), enum: To(), format: Do(), if: jo(), items: Mo(), maximum: ta(), minimum: ta(), maxItems: aa(), minItems: aa(), maxLength: sa(), minLength: sa(), maxProperties: oa(), minProperties: oa(), multipleOf: Lo(), not: $o(), oneOf: zo(), pattern: Ho(), properties: Uo(), propertyNames: Vo(), required: Zo(), uniqueItems: Wo(), validate: ds() }), St; -} -var Pt, va; -function Ko() { - const i = n; - if (va) return Pt; - va = 1; - var e = Bo(), t = Wx()[i(797)]; - return Pt = function() { - const x = i; - var r = [{ type: x(2074), rules: [{ maximum: [x(2625)] }, { minimum: [x(1967)] }, x(500), x(822)] }, { type: x(923), rules: [x(2692), x(1213), x(1995), x(822)] }, { type: x(1196), rules: ["maxItems", "minItems", x(2637), x(1507), x(2721)] }, { type: x(2437), rules: [x(575), "minProperties", x(1040), x(1362), x(1579), { properties: [x(2273), "patternProperties"] }] }, { rules: [x(2287), x(2442), x(1252), x(2645), x(856), x(2141), x(752), "if"] }], s = [x(2426), x(1929)], o = [x(936), x(824), "id", x(2597), x(950), x(1972), "description", x(1658), x(987), "examples", "readOnly", x(1714), x(2371), "contentEncoding", "additionalItems", x(1413), x(2553)], c = [x(2074), x(2255), x(923), x(1196), x(2437), x(958), x(2382)]; - return r.all = t(s), r[x(530)] = t(c), r[x(1238)](function(d) { - const u = x; - d[u(2568)] = d[u(2568)][u(2404)](function(f) { - const l = u; - var g; - if (typeof f == l(2437)) { - var h = Object[l(2278)](f)[0]; - g = f[h], f = h, g[l(1238)](function(y) { - const w = l; - s[w(818)](y), r[w(1135)][y] = !0; - }); - } - s[l(818)](f); - var m = r[l(1135)][f] = { keyword: f, code: e[f], implements: g }; - return m; - }), r.all[u(1929)] = { keyword: u(1929), code: e.$comment }, d[u(2426)] && (r[u(530)][d[u(2426)]] = d); - }), r[x(2408)] = t(s.concat(o)), r[x(938)] = {}, r; - }, Pt; -} -var kt, ya; -function Jo() { - const i = n; - if (ya) return kt; - ya = 1; - var e = [i(500), i(756), i(2625), i(959), i(1967), i(2692), i(1213), i(1995), i(1138), i(1648), i(1663), i(2721), "maxProperties", i(2495), "required", i(2273), "enum", i(822), i(2442)]; - return kt = function(t, a) { - const x = i; - for (var r = 0; r < a.length; r++) { - t = JSON[x(2156)](JSON.stringify(t)); - var s = a[r][x(2248)]("/"), o = t, c; - for (c = 1; c < s[x(1200)]; c++) o = o[s[c]]; - for (c = 0; c < e.length; c++) { - var d = e[c], u = o[d]; - u && (o[d] = { anyOf: [u, { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" }] }); - } - } - return t; - }, kt; -} -var Et, ba; -function Qo() { - const i = n; - if (ba) return Et; - ba = 1; - var e = nr()[i(2411)]; - Et = t; - function t(a, x, r) { - const s = i; - var o = this; - if (typeof this[s(904)][s(603)] != s(1342)) throw new Error(s(1636)); - typeof x == "function" && (r = x, x = void 0); - var c = d(a).then(function() { - const f = s; - var l = o[f(914)](a, void 0, x); - return l[f(2481)] || u(l); - }); - return r && c[s(1413)](function(f) { - r(null, f); - }, r), c; - function d(f) { - const l = s; - var g = f[l(936)]; - return g && !o[l(1446)](g) ? t[l(2518)](o, { $ref: g }, !0) : Promise.resolve(); - } - function u(f) { - const l = s; - try { - return o[l(2744)](f); - } catch (h) { - if (h instanceof e) return g(h); - throw h; - } - function g(h) { - const m = l; - var y = h[m(2196)]; - if (R(y)) throw new Error("Schema " + y + m(1682) + h[m(2506)] + m(1275)); - var w = o[m(906)][y]; - return !w && (w = o[m(906)][y] = o[m(904)][m(603)](y), w.then(S, S)), w[m(1413)](function(A) { - const C = m; - if (!R(y)) return d(A)[C(1413)](function() { - R(y) || o.addSchema(A, y, void 0, x); - }); - })[m(1413)](function() { - return u(f); - }); - function S() { - delete o._loadingSchemas[y]; - } - function R(A) { - return o[m(1148)][A] || o._schemas[A]; - } - } - } - } - return Et; -} -var Ct, wa; -function Go() { - return wa || (wa = 1, Ct = function(e, t, a) { - const x = B; - var r = " ", s = e[x(1304)], o = e.dataLevel, c = e[x(727)][t], d = e[x(791)] + e[x(2545)][x(1911)](t), u = e[x(578)] + "/" + t, f = !e[x(2244)][x(837)], l, g = x(726) + (o || ""), h = "valid" + s, m = x(970) + s, y = e[x(2244)][x(2597)] && c && c[x(2597)], w; - y ? (r += " var schema" + s + x(1165) + e[x(2545)][x(2454)](c[x(2597)], o, e[x(2660)]) + "; ", w = x(727) + s) : w = c; - var S = this, R = "definition" + s, A = S[x(1596)], C = "", P, E, D, j, M; - if (y && A[x(2597)]) { - M = x(2393) + s; - var F = A[x(2123)]; - r += x(838) + R + " = RULES.custom['" + t + x(688) + M + x(1165) + R + ".validate;"; - } else { - if (j = e.useCustomRule(S, c, e[x(727)], e), !j) return; - w = x(1191) + d, M = j[x(1204)], P = A.compile, E = A[x(2613)], D = A[x(1347)]; - } - var N = M + x(2258), U = "i" + s, $ = x(2584) + s, V = A.async; - if (V && !e[x(1721)]) throw new Error(x(1050)); - if (!(E || D) && (r += "" + N + x(1685)), r += x(909) + m + x(612) + h + ";", y && A[x(2597)] && (C += "}", r += " if (" + w + x(2144) + h + x(1458), F && (C += "}", r += " " + h + x(1165) + R + x(1306) + w + x(984) + h + ") { ")), E) A[x(944)] ? r += " " + j[x(2481)] + " " : r += " " + h + " = " + j.validate + "; "; - else if (D) { - var J = e.util.copy(e), C = ""; - J.level++; - var s0 = x(1954) + J[x(1304)]; - J[x(727)] = j.validate, J[x(791)] = ""; - var o0 = e[x(2521)]; - e[x(2521)] = J[x(2521)] = !0; - var u0 = e.validate(J)[x(2188)](/validate\.schema/g, M); - e[x(2521)] = J.compositeRule = o0, r += " " + u0; - } else { - var a0 = a0 || []; - a0[x(818)](r), r = "", r += " " + M + x(2178), e[x(2244)][x(1419)] ? r += x(1036) : r += x(1719), P || A[x(727)] === !1 ? r += x(2039) + g + " " : r += " , " + w + x(2039) + g + x(1956) + e[x(791)] + " ", r += x(551), e[x(1105)] != '""' && (r += x(1623) + e[x(1105)]); - var f0 = o ? "data" + (o - 1 || "") : x(2680), w0 = o ? e.dataPathArr[o] : "parentDataProperty"; - r += x(2039) + f0 + x(2039) + w0 + " , rootData ) "; - var m0 = r; - r = a0[x(2087)](), A[x(1418)] === !1 ? (r += " " + h + x(1165), V && (r += x(1706)), r += "" + m0 + "; ") : V ? (N = x(1425) + s, r += x(838) + N + " = null; try { " + h + x(1060) + m0 + x(1208) + h + x(2677) + N + x(1976)) : r += " " + N + " = null; " + h + x(1165) + m0 + "; "; - } - if (A.modifying && (r += x(1843) + f0 + ") " + g + x(1165) + f0 + "[" + w0 + "];"), r += "" + C, A.valid) f && (r += x(2110)); - else { - r += x(2632), A[x(1954)] === void 0 ? (r += " !", D ? r += "" + s0 : r += "" + h) : r += " " + !A.valid + " ", r += x(1330), l = S.keyword; - var a0 = a0 || []; - a0[x(818)](r), r = ""; - var a0 = a0 || []; - a0.push(r), r = "", e.createErrors !== !1 ? (r += x(1250) + (l || x(938)) + x(1035) + e[x(1105)] + x(2166) + e[x(2545)][x(1891)](u) + " , params: { keyword: '" + S.keyword + x(1993), e[x(2244)][x(1064)] !== !1 && (r += x(774) + S[x(1614)] + x(2341)), e[x(2244)][x(1188)] && (r += x(2361) + d + " , parentSchema: validate.schema" + e[x(791)] + x(2701) + g + " "), r += " } ") : r += x(1494); - var D0 = r; - r = a0.pop(), !e.compositeRule && f ? e.async ? r += x(1585) + D0 + x(2477) : r += x(2128) + D0 + x(682) : r += x(1327) + D0 + x(518); - var E0 = r; - r = a0[x(2087)](), E ? A[x(1418)] ? A[x(1418)] != "full" && (r += " for (var " + U + "=" + m + "; " + U + " this[a(995)](r)), this[a(2593)](Gn, () => { - const r = a; - var s; - return (s = this[r(1616)]) === null || s === void 0 ? void 0 : s[r(2518)](this); + [s(1769)](x) { + var t = s; + this[t(1707)][t(2434)](x); + } + [s(2228)](x) { + var t = s; + this[t(2e3)][t(2434)](x); + } + [s(2488)](x) { + var t = s; + this[t(976)][t(2434)](x); + } + [s(2667)](x) { + return this.requestHandlers.has(x); + } + [s(699)](x) { + var t = s; + return this.notificationHandlers[t(2561)](x); + } + [s(2156)](x) { + var t = s; + return this[t(2e3)].has(x); + } + [s(820)](x) { + var t = s; + return this[t(976)][t(2561)](x); + } + [s(586)]() { + var x = s; + return { ...this[x(307)] }; + } + resetStats() { + var x = s; + this[x(307)] = { requestsHandled: 0, notificationsHandled: 0, requestsIntercepted: 0, notificationsIntercepted: 0, errors: 0 }; + } + [s(1864)]() { + var x = s; + return this[x(1450)]; + } + [s(1361)]() { + var x = s; + this[x(851)][x(2173)](), this[x(1707)][x(2173)](), this[x(2e3)][x(2173)](), this[x(976)][x(2173)](); + } + [s(1954)](x) { + var t = s; + return x.jsonrpc === t(2545) && t(1921) in x && "id" in x; + } + [s(1172)](x) { + var t = s; + return x.jsonrpc === t(2545) && t(1921) in x && !("id" in x); + } + async [s(1811)](x, t) { + var a = s; + const e = new Promise((r, n) => { + var o = K; + setTimeout(() => n(new Error(o(1739))), t); }); + return await Promise[a(697)]([x, e]); } - [n(881)](e) { - const t = n; - if (this[t(2728)]) throw new Error(t(2478)); - this[t(1041)] = yo(this._capabilities, e); - } - [n(1205)](e) { - const t = n; - var a, x, r; - switch (e) { - case t(2507): - if (!(!((a = this[t(2218)]) === null || a === void 0) && a[t(2428)])) throw new Error(t(616) + e + ")"); + [s(1133)](x, t, ...a) { + var e = s; + if (!this[e(778)][e(2491)] && x === e(2491)) return; + const r = "[MCPMiddleware]"; + switch (x) { + case "debug": + console[e(2491)](r, t, ...a); break; - case t(2492): - if (!(!((x = this[t(2218)]) === null || x === void 0) && x.elicitation)) throw new Error(t(2451) + e + ")"); + case e(1604): + console[e(1604)](r, t, ...a); break; - case "roots/list": - if (!(!((r = this._clientCapabilities) === null || r === void 0) && r[t(1932)])) throw new Error(t(1844) + e + ")"); + case e(1797): + console[e(1797)](r, t, ...a); + break; + case "error": + console[e(503)](r, t, ...a); break; } } - [n(1162)](e) { - const t = n; - switch (e) { - case t(1889): - if (!this[t(1041)][t(542)]) throw new Error("Server does not support logging (required for " + e + ")"); - break; - case t(2682): - case t(1049): - if (!this[t(1041)][t(1868)]) throw new Error(t(1303) + e + ")"); - break; - case t(1311): - if (!this._capabilities[t(667)]) throw new Error(t(1545) + e + ")"); - break; - case t(1244): - if (!this[t(1041)].prompts) throw new Error(t(2722) + e + ")"); - break; - } - } - assertRequestHandlerCapability(e) { - const t = n; - switch (e) { - case t(2507): - if (!this[t(1041)][t(2428)]) throw new Error(t(650) + e + ")"); - break; - case t(2704): - if (!this[t(1041)][t(542)]) throw new Error(t(708) + e + ")"); - break; - case t(2420): - case t(2316): - if (!this[t(1041)].prompts) throw new Error(t(1878) + e + ")"); - break; - case t(2055): - case t(2473): - case t(1642): - if (!this[t(1041)].resources) throw new Error(t(1503) + e + ")"); - break; - case t(561): - case t(1068): - if (!this[t(1041)][t(667)]) throw new Error(t(1465) + e + ")"); - break; - } - } - async [n(995)](e) { - const t = n, a = e.params[t(755)]; - return this[t(2218)] = e[t(2646)].capabilities, this[t(1461)] = e[t(2646)].clientInfo, { protocolVersion: pi.includes(a) ? a : Hn, capabilities: this[t(813)](), serverInfo: this[t(731)], ...this._instructions && { instructions: this[t(1675)] } }; - } - getClientCapabilities() { - return this._clientCapabilities; - } - [n(1526)]() { - return this[n(1461)]; - } - [n(813)]() { - return this[n(1041)]; - } - async [n(1189)]() { - const e = n; - return this[e(1352)]({ method: e(1189) }, Vt); - } - async [n(1613)](e, t) { - return this[n(1352)]({ method: "sampling/createMessage", params: e }, as, t); - } - async elicitInput(e, t) { - const a = n, x = await this.request({ method: "elicitation/create", params: e }, ns, t); - if (x[a(2676)] === a(2542) && x[a(1569)]) try { - const r = new p2(), s = r[a(1454)](e.requestedSchema); - if (!s(x[a(1569)])) throw new Ox(bx[a(1158)], a(701) + r[a(2291)](s[a(1418)])); - } catch (r) { - throw r instanceof Ox ? r : new Ox(bx[a(557)], "Error validating elicitation response: " + r); - } - return x; - } - async [n(1785)](e, t) { - const a = n; - return this[a(1352)]({ method: a(2498), params: e }, ss, t); - } - async [n(807)](e) { - const t = n; - return this.notification({ method: t(1889), params: e }); - } - async [n(1661)](e) { - return this.notification({ method: "notifications/resources/updated", params: e }); - } - async sendResourceListChanged() { - const e = n; - return this.notification({ method: e(1049) }); - } - async [n(2710)]() { - const e = n; - return this[e(1441)]({ method: e(1311) }); - } - async [n(720)]() { - const e = n; - return this.notification({ method: e(1244) }); - } } -var vn, yn; -class g2 { +I({ method: r0(s(2269)), params: I({ requestId: S(), data: D0(), error: S().nullable(), finished: x0() }) }), I({ method: r0("sdppp/streamRequest"), params: I({ action: S(), data: D0() }) }), I({ method: r0(s(2508)), params: I({ requestId: S() }) }); +const pi = I({ method: r0("sdppp/streamResponse"), params: I({ requestId: S(), data: D0(), error: S()[s(1977)](), finished: x0() }) }), mi = I({ method: r0(s(411)), params: I({ action: S(), data: D0() }) }), vi = I({ method: r0(s(2508)), params: I({ requestId: S() }) }); +var Fs, Ns; +class gi { constructor() { - d0(this, yn, []); - d0(this, vn, []); + v0(this, Ns, /* @__PURE__ */ new Map()); + v0(this, Fs, /* @__PURE__ */ new Map()); } - push(e) { - const t = n; - this[t(576)][t(818)](e), this[t(2727)].forEach((a) => a(e)); + [(Ns = s(1969), Fs = s(495), s(2380))](x) { + var t = s; + const { requestId: a } = x[t(817)], e = this[t(1969)].get(a) || [], r = this[t(495)][t(2229)](a) || []; + r[t(2021)] > 0 ? r[t(761)]()(x[t(817)]) : (e[t(2380)](x[t(817)]), this.queues[t(1951)](a, e)); } - [(yn = n(576), vn = n(2727), n(1895))](e) { - const t = n; - return this[t(576)][t(893)]((a) => a[t(2646)][t(1536)] === e); + async pop(x) { + var t = s; + const a = this[t(1969)][t(2229)](x) || []; + return a.length > 0 ? a.shift() : new Promise((e) => { + var r = t; + const n = this[r(495)][r(2229)](x) || []; + n[r(2380)](e), this[r(495)].set(x, n); + }); } - [n(947)](e) { - const t = n; - this[t(576)] = this[t(576)].filter((a) => a.params.requestId !== e); - } - addListener(e) { - const t = n; - this[t(2727)][t(818)](e); - } - [n(2179)](e) { - const t = n, a = this[t(2727)][t(2170)](e); - a !== -1 && this.listeners.splice(a, 1); + [s(1361)](x) { + var t = s; + this[t(1969)].delete(x), this[t(495)].delete(x); } } -var bn; -class v2 { - constructor(e) { - d0(this, bn); - this.protocol = e; +var qs, Ts, Os, As; +class yi extends hi { + constructor(t, a = {}) { + var e = s; + super(t, a); + v0(this, As, /* @__PURE__ */ new Map()); + v0(this, Os, 1); + v0(this, Ts, /* @__PURE__ */ new Map()); + v0(this, qs, new gi()); + this[e(575)](); } - [(bn = n(749), n(1074))](e, t) { - const a = n; - this.protocol[a(1441)]({ method: "sdppp/streamResponse", params: { requestId: e, data: t, error: null, finished: !1 } }); + [(As = s(1885), Os = s(1611), Ts = s(2134), qs = s(1655), s(575))]() { + var t = s; + this[t(768)](), this[t(689)](), this[t(1807)](); } - [n(1175)](e) { - this.protocol.notification({ method: "sdppp/streamResponse", params: { requestId: e, data: null, error: null, finished: !0 } }); + [s(768)]() { + var t = s; + this[t(336)](pi, async (a) => { + this.notificationQueue.push(a); + }); } - [n(1443)](e) { - const t = n; - this[t(749)][t(1441)]({ method: t(1588), params: { requestId: e, data: null, error: t(2226), finished: !0 } }); + [s(689)]() { + var t = s; + this[t(1983)](vi, async (a, e) => { + var r = t; + const { requestId: n } = a[r(817)], o = this[r(2134)][r(2229)](n); + return o && (o[r(1198)](), this[r(2134)].delete(n)), { success: !0 }; + }); } - [n(580)](e, t) { - const a = n; - this[a(749)].notification({ method: a(1588), params: { requestId: e, data: null, error: t, finished: !0 } }); + [s(1807)]() { + var t = s; + this[t(1983)](mi, async (a, e) => { + var r = t; + const n = r(451) + this[r(1611)]++, o = this[r(1885)].get(a[r(817)][r(1863)]); + if (!o) throw new Error(r(1357) + a.params[r(1863)]); + const c = new AbortController(); + return this[r(2134)][r(1951)](n, c), this[r(295)](n, o, a[r(817)], e, c), { requestId: n }; + }); } -} -var wn, Sn; -class y2 { - constructor(e, t) { - d0(this, Sn); - d0(this, wn); - const a = n; - this[a(1551)] = e, this.runningRequests = t; - } - async [(Sn = n(1551), wn = n(2549), n(1127))](e, t, a, x, r) { - const s = n; + async executeHandlerAsync(t, a, e, r, n) { + var o = s; try { - await this[s(2034)](e, t, a, x, r); - } catch (o) { - this[s(1551)][s(580)](e, (o == null ? void 0 : o[s(2353)]) || String(o)); + const c = a(e, r, n[o(996)]); + for await (const u of c) { + if (n[o(996)].aborted) break; + await this[o(1676)]({ method: "sdppp/streamResponse", params: { requestId: t, data: u, error: null, finished: !1 } }); + } + !n[o(996)][o(806)] && await this[o(1676)]({ method: o(2269), params: { requestId: t, data: null, error: null, finished: !0 } }); + } catch (c) { + !n.signal[o(806)] && await this[o(1676)]({ method: o(2269), params: { requestId: t, data: null, error: c[o(2089)], finished: !0 } }); } finally { - this[s(2549)][s(2653)](e); + this[o(2134)][o(2434)](t); } } - async [n(2034)](e, t, a, x, r) { - const s = n; - for await (const o of t(a, x, r[s(2360)])) { - if (r[s(2360)][s(1786)]) { - this[s(1551)][s(1443)](e); - return; - } - this[s(1551)][s(1074)](e, o); - } - r[s(2360)].aborted ? this[s(1551)].sendAbortedResponse(e) : this[s(1551)][s(1175)](e); + [s(954)](t, a) { + var e = s; + this.streamRequestorHandlers[e(1951)](t[e(2219)][e(1863)][e(2038)], a); } -} -var Pn, kn; -class b2 { - constructor(e, t) { - d0(this, kn); - d0(this, Pn); - const a = n; - this.protocol = e, this[a(1813)] = t; + async [s(1962)](t, a, e) { + var r = s; + this[r(2539)](e); + const n = await this[r(1403)](t), o = this[r(638)](n), c = this[r(1006)](); + return this[r(1283)](o, c, n, e); } - [(kn = n(749), Pn = n(1813), n(1949))](e) { - if (e != null && e.aborted) throw new Error("Operation was aborted"); + [s(2539)](t) { + var a = s; + if (t && t.aborted) throw new Error(a(297)); } - async [n(2590)](e) { - const t = n; - return (await this[t(749)][t(1352)]({ method: t(778), params: { action: e[t(2676)], data: e.data } }, O({ requestId: I() })))[t(1536)]; + async [s(1403)](t) { + var a = s; + return (await this.request({ method: a(411), params: { action: t[a(1863)], data: t.data } }, I({ requestId: S() })))[a(1565)]; } - initializeResponseQueue(e) { - const t = n, a = this.notificationQueue[t(1895)](e).map((x) => ({ data: x[t(2646)][t(726)], error: x[t(2646)][t(2389)], finished: x[t(2646)][t(1038)] })); - return this.notificationQueue[t(947)](e), a; + [s(638)](t) { + return this.notificationQueue; } - createStreamState() { - return { resolve: null, finished: !1, aborted: !1 }; + [s(1006)]() { + return { finished: !1, error: null }; } - [n(702)](e, t, a, x) { - const r = n, s = this[r(746)](e, t, a), o = this[r(1750)](e, a); - return this[r(1813)][r(2406)](s), x == null || x[r(2626)](r(2480), o), { onNotification: s, onAbort: o }; - } - [n(746)](e, t, a) { - const x = n, r = O({ method: r0("sdppp/streamResponse"), params: O({ requestId: I(), data: B0(), error: I()[x(981)](), finished: l0() }) }); - return (s) => { - const o = x, c = r[o(2732)](s); - if (!c.success || c[o(726)][o(2646)][o(1536)] !== e) return; - const { data: d, error: u, finished: f } = c.data[o(2646)]; - t[o(818)]({ data: d, error: u, finished: f }), a[o(1987)] && (a.resolve(), a.resolve = null); - }; - } - [n(1750)](e, t) { - return async () => { - const a = B; - if (!t[a(1786)]) { - t[a(1786)] = !0; - try { - await this[a(749)][a(1352)]({ method: "sdppp/abort", params: { requestId: e } }, O({ success: l0() })); - } catch { - } - t.finished = !0, t[a(1987)] && (t.resolve(), t.resolve = null); - } - }; - } - [n(2595)](e, t, a, x) { - const r = this; - return { async *[Symbol.asyncIterator]() { - const s = B, o = r[s(702)](a, e, t, x); + [s(1283)](t, a, e, r) { + var n = s; + const o = this; + return { async *[Symbol[n(1348)]]() { + var c = n; try { - yield* r[s(1699)](e, t, x); + for (; !a[c(1246)] && !a[c(503)]; ) { + if (r && r[c(806)]) + throw await o[c(1658)]({ method: "sdppp/abort", params: { requestId: e } }, I({ success: x0() })), new Error(c(2132)); + const u = await t.pop(e); + if (u[c(503)]) + throw a[c(503)] = u[c(503)], new Error(u.error); + if (u.finished) { + a[c(1246)] = !0; + break; + } + u[c(1073)] !== null && (yield u[c(1073)]); + } } finally { - r.cleanupStreamHandlers(a, o, x); + t.cleanup(e); } } }; } - async *processStreamQueue(e, t, a) { - const x = n; - for (; !t[x(1038)] && !t.aborted; ) { - if (a != null && a[x(1786)] && !t[x(1786)]) { - t.aborted = !0; - break; - } - if (e[x(1200)] === 0) { - await new Promise((r) => { - const s = x; - t[s(1987)] = r; - }); - continue; - } - yield* this[x(1513)](e, t); - } - if (t.aborted) throw new Error(x(2226)); + [s(1311)]() { + var t = s; + return this[t(2134)][t(1066)]; } - *[n(1513)](e, t) { - const a = n; - for (; e[a(1200)] > 0; ) { - const x = e[a(2621)](); - if (!x) continue; - const { data: r, error: s, finished: o } = x; - if (s) throw new Error(s); - if (o) { - t[a(1038)] = !0; - break; - } - yield r; - } + async [s(2367)](t) { + var a = s; + const e = this[a(2134)][a(2229)](t); + return e ? (e[a(1198)](), this.runningRequests[a(2434)](t), !0) : !1; } - [n(2390)](e, t, a) { - const x = n; - this[x(1813)][x(2179)](t.onNotification), a == null || a[x(1484)]("abort", t[x(2745)]), this[x(1813)][x(947)](e); + abortAllRequests() { + var t = s; + for (const [a, e] of this.runningRequests) + e[t(1198)](); + this[t(2134)][t(2173)](); + } + [s(1361)]() { + var t = s; + super[t(1361)](), this[t(523)](), this[t(1885)][t(2173)](); } } -var En, Cn, In, Rn, Fn, Nn, qn, On; -class w2 { - constructor(e) { - d0(this, On, /* @__PURE__ */ new Map()); - d0(this, "broadcastHandlers", /* @__PURE__ */ new Map()); - d0(this, qn, 1); - d0(this, Nn, /* @__PURE__ */ new Map()); - d0(this, Fn); - d0(this, Rn, new g2()); - d0(this, In); - d0(this, Cn); - d0(this, En); - const t = n; - this.protocol = e, this[t(1551)] = new v2(e), this.actionExecutor = new y2(this[t(1551)], this[t(2549)]), this[t(825)] = new b2(e, this.notificationQueue), this[t(1325)](), this[t(830)](), this[t(1820)](), this.setupBroadcastHandler(); - } - [(On = n(1406), qn = n(2669), Nn = n(2549), Fn = n(749), Rn = n(1813), In = n(1551), Cn = n(2735), En = n(825), n(1325))]() { - const e = n, t = O({ method: r0("sdppp/streamResponse"), params: O({ requestId: I(), data: B0(), error: I()[e(981)](), finished: l0() }) }); - this.protocol[e(2593)](t, (a) => this.notificationQueue.push(a)); - } - [n(830)]() { - const e = n, t = O({ method: r0(e(2026)), params: O({ requestId: I() }) }); - this[e(749)].setRequestHandler(t, async (a, x) => { - const r = e, { requestId: s } = a[r(2646)], o = this[r(2549)].get(s); - return o && (o[r(2480)](), this.runningRequests[r(2653)](s)), { success: !0 }; - }); - } - [n(1820)]() { - const e = n, t = O({ method: r0(e(778)), params: O({ action: I(), data: B0() }) }); - this[e(749)][e(1670)](t, async (a, x) => { - const r = e, s = r(2296) + this[r(2669)]++, o = this.actionHandlers[r(1261)](a.params[r(2676)]); - if (!o) throw new Error("No handler for action: " + a[r(2646)].action); - const c = new AbortController(); - return this[r(2549)].set(s, c), this[r(2735)][r(1127)](s, o, a[r(2646)], x, c), { requestId: s }; - }); - } - [n(1926)](e, t) { - const a = n; - this[a(1406)][a(510)](e[a(2129)][a(2676)][a(2391)], t); - } - async action(e, t, a) { - const x = n; - this[x(825)].validateActionRequest(a); - const r = await this[x(825)][x(2590)](e), s = this[x(825)][x(1696)](r), o = this[x(825)][x(1279)](); - return this[x(825)].createAsyncIterator(s, o, r, a); - } - [n(1490)]() { - const e = n, t = O({ method: r0("sdppp/broadcast"), params: O({ messageType: I(), message: B0() }) }); - this[e(749)][e(2593)](t, (a) => { - const x = e, { messageType: r, message: s } = a[x(2646)], o = this.broadcastHandlers[x(1261)](r); - o && o(s); - }); - } - [n(982)](e, t) { - this[n(2612)].set(e, t); - } - async [n(2607)](e, t) { - const a = n; - await this[a(749)][a(1441)]({ method: a(2423), params: { messageType: e, message: t } }); - } - async request(e, t, a, x) { - const r = n; - return x || (x = {}), x[r(1563)] = x[r(1563)] || 7 * 24 * 60 * 60 * 1e3, await this[r(749)][r(1352)]({ method: e, params: t }, a, x); - } - registerRequestHandler(e, t) { - const a = n; - this.protocol[a(1670)](e, t); - } -} -class S2 extends w2 { - constructor(t, a) { - const x = n, r = new m2(t, a); - r[x(1626)] = (s) => { - const o = x; - console[o(2389)](o(1621), s); - }; - super(r); - d0(this, "server"); - this.server = r; - } - async [n(1610)](t) { - const a = n; - return await this[a(2032)][a(1610)](t); - } - async [n(1140)]() { - const t = n; - await this.server[t(1140)](); - } - [n(1782)]() { - const t = n; - return this[t(2032)][t(2728)] !== void 0; - } -} -function P2(i) { - const e = new As(i); - return { joinAs(t, a) { - const x = B; - if (!e[x(2369)](t)) throw new Error("Node " + String(t) + x(1540)); - return new hi(e, t, a); +function bi(i) { + const x = new An(i); + return { joinAs(t) { + var a = K; + if (!x[a(2223)](t)) throw new Error("Node " + String(t) + a(1763)); + return new li(x, t); }, getDefinition() { return i; }, getNodeIds() { - return e.getNodeIds(); + var t = K; + return x[t(551)](); }, getNeighbors(t) { - return e[B(1361)](t); + return x.getNeighbors(t); }, hasEdge(t, a) { - return e.hasEdge(t, a); + return x.hasEdge(t, a); }, hasPath(t, a) { - return e[B(1998)](t, a); + var e = K; + return x[e(2202)](t, a); }, findPath(t, a) { - return e[B(605)](t, a); + var e = K; + return x[e(2505)](t, a); } }; } -const k2 = O({}), E2 = O({ uname: I().default(""), activeDocumentID: I0()[n(1658)](0), layers: N0(O({ id: I0(), name: I(), identify: I() }))[n(1658)]([]), actions: N0(I())[n(1658)]([]), theme: I().default(n(2388)), sdpppX: Y0(I(), B0()).default({}), locale: V0([n(2160), n(2352)])[n(1658)](n(2352)), comfyWebviewConnectStatus: V0(["connecting", n(655), n(489)]).default("disconnected"), comfyWebviewLoadError: I().default(""), comfyWebviewLoading: l0()[n(1658)](!1), comfyWebviewVersion: I()[n(1658)](""), comfyAutoRunning: l0()[n(1658)](!1), comfyHTTPCode: I0().default(200), comfyURL: I()[n(1658)](""), sdkWebviewFocusing: l0().default(!1), sdkWebviewConnectStatus: V0([n(2323), n(655), n(489)])[n(1658)](n(489)), isLogin: l0()[n(1658)](!1), isGuest: l0()[n(1658)](!1), requestingLogin: l0()[n(1658)](!1), loginMessage: I()[n(1658)](""), token: I()[n(1658)](""), userInfo: Y0(I(), B0())[n(1658)]({}) }), Mx = { name: I(), uiWeight: I0() }, C2 = O({ ...Mx, outputType: r0(n(2714)), options: O({ required: l0(), maxCount: I0()[n(1360)](), maskMode: l0().optional() }) }), I2 = O({ ...Mx, outputType: r0("masks"), options: O({ required: l0() }) }), R2 = O({ ...Mx, outputType: r0(n(923)), options: O({ required: l0() }) }), F2 = O({ ...Mx, outputType: r0(n(958)), options: O({ required: l0() }) }), N2 = O({ ...Mx, outputType: r0(n(2074)), options: O({ required: l0(), min: I0()[n(1360)](), max: I0().optional(), step: I0().optional(), random: l0()[n(1360)](), slider: l0().optional() }) }), q2 = O({ ...Mx, outputType: r0("combo"), options: O({ required: l0(), values: N0(I()), labels: N0(I())[n(1360)]() }) }), O2 = O({ ...Mx, outputType: r0(n(2132)), options: O({ required: l0(), values: N0(I()) }) }), A2 = Mn("outputType", [C2, I2, R2, F2, N2, q2, O2]), T2 = O({ id: I(), title: I(), widgets: N0(A2), uiWeightSum: I0() }), D2 = O({ widgetableID: I(), widgetablePath: I(), nodes: Y0(I(), T2), nodeIndexes: N0(I()), note: I()[n(1360)](), options: Y0(I(), B0()) }), j2 = O({ widgetableStructure: D2[n(1658)]({ widgetableID: "", widgetablePath: "", nodes: {}, note: "", options: {}, nodeIndexes: [] }), widgetableValues: Y0(I(), N0(B0()))[n(1658)]({}), widgetableErrors: Y0(I(), I())[n(1658)]({}), queueSize: I0()[n(1658)](0), lastError: I()[n(1658)](""), progress: I0()[n(1658)](0), executingNodeTitle: I()[n(1658)](""), graphProgress: I0()[n(1658)](0), comfyUserToken: I()[n(1658)](""), comfyOrgLoggedIn: l0()[n(1658)](!1), comfyOrgAPIKey: I()[n(1658)](""), comfyWSState: V0([n(655), n(1985)])[n(1658)](n(655)), lastRunTime: I0()[n(1658)](0) }), M2 = { log: { requestSchema: O({ level: V0([n(816), n(2414), "warn", "error"]), messages: N0(I()) }), responseSchema: O({}) }, openExternalLink: { requestSchema: O({ url: I() }), responseSchema: O({ error: I()[n(1360)]() }) }, getStorage: { requestSchema: O({ key: I() }), responseSchema: O({ value: I(), error: I().optional() }) }, setStorage: { requestSchema: O({ key: I(), value: I() }), responseSchema: O({ error: I()[n(1360)]() }) }, removeStorage: { requestSchema: O({ key: I() }), responseSchema: O({ error: I()[n(1360)]() }) }, keyboardAction: { requestSchema: O({ keycode: I() }), responseSchema: O({}) }, setComfyWebviewURL: { requestSchema: O({ url: I() }), responseSchema: O({}) }, uploadComfyImage: { requestSchema: O({ uploadInput: O({ type: r0("buffer").or(r0(n(1923))), tokenOrBuffer: B0(), fileName: I() }), overwrite: l0()[n(1360)]()[n(1658)](!0) }), responseSchema: O({ name: I() }) }, proxiedFetch: { requestSchema: O({ url: I(), method: I()[n(1360)](), headers: Y0(I())[n(1360)](), body: B0()[n(1360)](), bodyType: V0(["json", n(633), "text"])[n(1360)]() }), responseSchema: O({ success: l0(), status: I0()[n(1360)](), statusText: I()[n(1360)](), headers: Y0(I())[n(1360)](), data: B0()[n(1360)](), error: I().optional() }) } }, fe = O({ thumbnail_url: I()[n(1360)](), file_token: I().optional(), source: I().optional(), error: I()[n(1360)]() }), L2 = { doGetImage: { requestSchema: O({ boundary: V0([n(1183), n(2535), n(1331)]), content: V0([n(1183), n(2535), n(1331)]).or(I()), imageSize: I0(), imageQuality: I0(), cropBySelection: V0(["no", n(935), n(1122)]) }), responseSchema: fe }, doGetMask: { requestSchema: O({ content: V0([n(1183), n(2535), n(1331)]), reverse: l0(), imageSize: I0() }), responseSchema: fe }, doSendImage: { requestSchema: O({ selection: V0([n(1759), n(2711), n(1574), n(1349), "curlayer_canvas", n(801), "curlayer_selection", "newdoc_canvas"]), url: I(), source: I(), cropBySelection: V0(["no", "positive", "negative"]).default("no") }), responseSchema: O({ error: I()[n(1360)]() }) }, requestImageGet: { requestSchema: O({}), responseSchema: fe }, requestImageSend: { requestSchema: O({ url: I(), source: I() }), responseSchema: O({ error: I()[n(1360)]() }) }, requestMaskGet: { requestSchema: O({ isMask: l0().default(!1) }), responseSchema: fe } }, $2 = O({ passwordPayload: O({ username: I(), password: I() }).or(O({ email: I(), password: I() })).or(O({ phone: I(), password: I() })).or(O({ identifier: I(), password: I() })) }).or(O({ passcodePayload: O({ phone: I(), code: I() }).or(O({ email: I(), code: I() })) })), z2 = O({ passwordPayload: O({ username: I(), password: I() }).or(O({ email: I(), password: I() })).or(O({ phone: I(), password: I() })).or(O({ identifier: I(), password: I() })) }).or(O({ passcodePayload: O({ phone: I(), code: I() }).or(O({ email: I(), code: I() })) })), H2 = { register: { requestSchema: $2, responseSchema: O({}) }, login: { requestSchema: z2, responseSchema: O({}) }, sendPassCode: { requestSchema: O({ phone: I().optional(), email: I()[n(1360)]() }), responseSchema: O({}) }, logout: { requestSchema: O({}), responseSchema: O({}) }, guestLogin: { requestSchema: O({}), responseSchema: O({}) } }, U2 = O({ workflows: N0(I()), error: I().optional() }), V2 = O({ success: l0(), nodeErrors: Y0(I())[n(1360)](), prompt_ids: N0(I()).optional(), images: N0(O({ url: I(), thumbnail: I() }))[n(1360)]() }), Z2 = { setWidgetValue: { requestSchema: O({ values: N0(O({ nodeID: I(), widgetIndex: I0(), value: Y0(I(), B0()).or(I()).or(I0()).or(l0()).or(N0(B0())) })) }), responseSchema: O({ success: l0() }) }, openWorkflow: { requestSchema: O({ workflow_path: I(), reset: l0()[n(1658)](!1) }), responseSchema: O({ success: l0() }) }, openWorkflowJSON: { requestSchema: O({ workflow_content: Y0(B0()), workflow_path: I() }), responseSchema: O({ success: l0() }) }, listWorkflows: { requestSchema: O({ listMode: I().optional(), sdpppID: I()[n(1360)](), sdpppToken: I()[n(1360)]() }), responseSchema: U2 }, saveWorkflow: { requestSchema: O({ workflow_path: I(), from_sid: I()[n(1360)]() }), responseSchema: O({ success: l0() }) }, run: { requestSchema: O({ size: I0() }), responseSchema: V2, stream: !0 }, stopAll: { requestSchema: O({}), responseSchema: O({ success: l0() }) } }, W2 = { setNodeTitle: { requestSchema: O({ node_id: I(), title: I() }), responseSchema: O({ success: l0() }) }, reboot: { requestSchema: O({}), responseSchema: O({ success: l0(), error: I().optional() }) }, setComfyOrgAPIKey: { requestSchema: O({ api_key: I() }), responseSchema: O({ success: l0() }) }, logout: { requestSchema: O({}), responseSchema: O({ success: l0() }) } }, B2 = P2({ nodes: { sdk: { store: k2, actions: {} }, uxp: { store: E2, actions: { ...L2, ...M2, ...H2 } }, comfy: { store: j2, actions: { ...Z2, ...W2 } } }, edges: [["sdk", n(577)], ["comfy", n(577)]] }), C0 = B2.joinAs("comfy"); -globalThis[n(1664)] = C0, globalThis.sdpppX2 = globalThis[n(832)] || {}; -const xe = globalThis[n(832)], K2 = { "preview.show": n(1824), "gateway.select_ai_service": "请选择AI服务", "image.jump_to_last": n(1488), "image.clear_all": n(624), "image.send_to_ps": n(748), "image.download": "下载", "image.copy": "复制", "task.waiting_upload": n(1858), "task.creating_task": n(820), "task.running_duration": n(1481), "comfy.connect": "连接", "comfy.load_failed": "ComfyUI加载失败,HTTP状态码:{{code}}", "comfy.loading": n(883), "comfy.channel_connecting": "通道连接中...", "comfy.server_reconnecting": n(1059), "comfy.version_mismatch": n(2659), "comfy.cloud_recommend": n(2085), "comfy.your_workflows": n(522), "comfy.refresh_workflows": n(2581), "comfy.queue_progress": n(1726), "comfy.save": "保存", "comfy.refresh": "刷新", "comfy.stop_cancel_all": "停止并取消全部", "comfy.stop_auto_run": "停止自动运行", "comfy.start_auto_run": n(621), "comfy.run": "运行", "comfy.back": "返回", "comfy.uploading": "正在上传...", "http.404": n(1968), "http.401": n(1029), "http.403": n(2444), "http.408": "请求超时 (408)", "http.500": n(631), "http.501": n(850), "http.502": n(1404), "http.503": n(532), "http.504": n(1080), "http.unknown": n(2565), "runninghub.get_apikey": "点此获取RunningHub APIKey", "runninghub.apikey_placeholder": n(1043), "runninghub.app_id": n(1867), "runninghub.webapp_id_placeholder": n(1463), "runninghub.open_app": n(922), "runninghub.execute": "执行", "runninghub.rh_coins": n(2241), "runninghub.current_tasks": n(663), "runninghub.status.waiting": n(2003), "runninghub.status.running": n(1357), "runninghub.status.failed": n(1251), "runninghub.status.success": n(668), "image.auto_refetch": n(1047), "runninghub.error.get_result_failed": n(1850), "runninghub.error.task_failed": n(1434), "runninghub.error.task_incomplete": n(1871), "replicate.get_apikey": "如何获取APIKey", "replicate.apikey_placeholder": "请输入您的Replicate API Key", "replicate.execute": "执行", "replicate.model_placeholder": n(719), "liblib.get_apikey": n(2349), "liblib.execute": "执行", "common.close": "关闭", "common.save_and_run": n(2633), "common.loading": n(1229), "common.error": "错误", "common.success": "成功", "common.cancel": "取消", "common.confirm": "确认", "common.options": "选项", "common.options_separator": "=== 选项 ===", webviewInForeground: n(2211), webviewInForeground2: n(1681), "auth.login_success": n(2579), "auth.username_label": n(2539), "auth.email_label": n(2328), "auth.logout": n(2604), "auth.login_required": n(2636), "image.send.select_position": n(1451), "image.send.sending": "正在发送图像...", "image.layer.new": n(997), "image.layer.current": n(558), "image.layer.fit_to_current": n(2697), "image.layer.fit_to_selection": "适配至选区", "image.layer.fit_to_canvas": n(636), "image.shortcut_auth_required": n(729), "image.shortcut_focus_required": n(1010), "image.get.select_image": "请选择要获取的图像", "image.get.entire_canvas": n(2261), "image.get.canvas": "画布", "image.get.current_layer": n(558), "image.get.current_layer_bounds": "仅当前图层范围", "image.get.selection_bounds": "仅选区范围", "image.get.canvas_bounds": n(1906), "image.crop_by_selection": n(2376), "image.limit_size": n(2227), "image.crop.none": n(2747), "image.crop.inpaint": "反向裁剪(Inpaint)", "image.crop.outpaint": n(773), "mask.get.select_mask": n(1832), "mask.selection": "选区", "mask.current_layer_bounds": "当前图层范围", "mask.all": "全部", "mask.selection_exclude": n(2419), "mask.current_layer_exclude": "当前图层除外", "mask.empty": "空", "document {{0}} not found": "找不到文档: {{0}}", "create document for preview": n(1123), "resize document for preview": n(1042), "create document for sent images": n(490), "show sent images": n(619), "create layer failed": "创建图层失败", "layer not found {{0}}": n(2743), "layer not found: {{0}}": n(2743), "layer {{0}} is not a group": n(1130), "no linked layer for {{0}}": n(1442), "no first related layer in {{0}}": n(1372), "merge group failed": n(526), "get content of layer {{0}}": "获取图层 {{0}} 的内容", "get layer info": n(1766), "get_layer_info: layer_identify required": n(1768), "get pixel of {{0}} failed": "获取像素失败: {{0}}", "get selection failed": n(584), "invalid name: {{0}}": n(1977), "desire bounds is null": n(2321), "intersect or scaledDesire is null": "交集或缩放目标为空", 'only layer kind "TEXT" is supported, invalid layer: {{0}}': "不支持非文本图层: {{0}}", "select layer": "sdppp 选中图层", "run Photoshop Action": n(1607), "Action {{0}} not found": "Action {{0}} 未找到", "Action set {{0}} not found": n(1295), "set text to layer": n(1032), "ComfyManager not found, cannot reboot": n(1266), "Failed to reboot ComfyUI": n(2078), "image.upload.from_ps": n(1297), "image.upload.from_disk": "从磁盘", "image.upload.clear": "清空", "image.upload.uploading": n(1504), "image.upload.no_images": n(1864), "source.source": "来源", "source.content": "内容", "source.boundary": "范围", "source.mask": "遮罩", "source.disk": "磁盘", "source.remote": "远端", "source.unknown": "未知", "source.ps_image": n(2004), "source.ps_mask": "PS遮罩", "source.canvas": n(2261), "source.current_layer": n(558), "source.selection": "选区", "source.quality_percent": n(1775), "source.crop.positive": n(1673), "source.crop.negative": n(2266), "source.reverse": "反转" }, J2 = { "preview.show": n(2222), "gateway.select_ai_service": "Please select AI service", "image.jump_to_last": n(763), "image.clear_all": n(1496), "image.send_to_ps": "Send to PS", "image.download": n(496), "image.copy": "Copy", "task.waiting_upload": "Waiting for image upload...", "task.creating_task": n(1287), "task.running_duration": "Running for {{duration}} seconds, {{message}}", "comfy.connect": n(2312), "comfy.load_failed": "ComfyUI failed to load, HTTP status code: {{code}}", "comfy.loading": n(1914), "comfy.channel_connecting": n(2516), "comfy.server_reconnecting": "ComfyUI server reconnecting", "comfy.version_mismatch": n(1997), "comfy.cloud_recommend": "Cloud:", "comfy.your_workflows": "Your Workflows", "comfy.refresh_workflows": n(910), "comfy.queue_progress": "(Queue:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "comfy.save": "Save", "comfy.refresh": n(1989), "comfy.stop_cancel_all": n(1538), "comfy.stop_auto_run": "Stop auto run", "comfy.start_auto_run": "Start auto run", "comfy.run": n(2377), "comfy.back": n(2700), "comfy.uploading": n(2112), "http.404": n(815), "http.401": n(643), "http.403": "Forbidden (403)", "http.408": n(1453), "http.500": n(2631), "http.501": "Not implemented (501)", "http.502": "Gateway error (502)", "http.503": n(2648), "http.504": n(2424), "http.unknown": n(1207), "runninghub.get_apikey": n(2242), "runninghub.apikey_placeholder": n(1516), "runninghub.app_id": n(2464), "runninghub.webapp_id_placeholder": n(1093), "runninghub.open_app": n(2037), "runninghub.execute": n(2594), "runninghub.rh_coins": "RH Coins:", "runninghub.current_tasks": n(1044), "runninghub.status.waiting": n(501), "runninghub.status.running": n(1445), "runninghub.status.failed": n(1398), "runninghub.status.success": "Success", "image.auto_refetch": n(1827), "runninghub.error.get_result_failed": n(2152), "runninghub.error.task_failed": n(780), "runninghub.error.task_incomplete": "Task incomplete, current status: {{status}}", "replicate.get_apikey": n(1831), "replicate.apikey_placeholder": n(2379), "replicate.execute": n(2594), "replicate.model_placeholder": n(2583), "liblib.get_apikey": "How to get APIKey and API Secret", "liblib.execute": "Execute", "common.close": n(1692), "common.save_and_run": n(1103), "common.loading": "Loading...", "common.error": n(2552), "common.success": n(2325), "common.cancel": n(2339), "common.confirm": n(645), "common.options": "Options", "common.options_separator": "=== Options ===", webviewInForeground: "PS shortcuts may be blocked by plugin...", webviewInForeground2: n(1555), "auth.login_success": n(534), "auth.username_label": n(2073), "auth.email_label": n(1097), "auth.logout": n(1566), "auth.login_required": "Please login to use the plugin", "image.send.select_position": n(1104), "image.send.sending": n(2737), "image.layer.new": n(2223), "image.layer.current": n(722), "image.layer.fit_to_current": n(806), "image.layer.fit_to_selection": n(2329), "image.layer.fit_to_canvas": n(1617), "image.shortcut_auth_required": n(2234), "image.shortcut_focus_required": n(2238), "image.get.select_image": n(680), "image.get.entire_canvas": "Entire Canvas", "image.get.canvas": n(566), "image.get.current_layer": n(722), "image.get.current_layer_bounds": "Current layer bounds only", "image.get.selection_bounds": n(1839), "image.get.canvas_bounds": n(1531), "image.crop_by_selection": n(648), "image.limit_size": n(1580), "image.crop.none": n(2009), "image.crop.inpaint": "Inpaint (reverse crop)", "image.crop.outpaint": n(1225), "mask.get.select_mask": n(1485), "mask.selection": n(1622), "mask.current_layer_bounds": n(2346), "mask.all": n(2693), "mask.selection_exclude": n(609), "mask.current_layer_exclude": "Exclude current layer", "mask.empty": n(2491), "document {{0}} not found": n(712), "create document for preview": "Create document for preview", "resize document for preview": "Resize document for preview", "create document for sent images": n(1262), "show sent images": n(857), "create layer failed": n(937), "layer not found {{0}}": n(2320), "layer not found: {{0}}": n(843), "layer {{0}} is not a group": "Layer {{0}} is not a group", "no linked layer for {{0}}": n(2683), "no first related layer in {{0}}": n(565), "merge group failed": n(1578), "get content of layer {{0}}": n(2378), "get layer info": n(1079), "get_layer_info: layer_identify required": n(1543), "get pixel of {{0}} failed": n(1056), "get selection failed": n(515), "invalid name: {{0}}": n(2640), "desire bounds is null": "Desire bounds is null", "intersect or scaledDesire is null": "Intersect or scaledDesire is null", 'only layer kind "TEXT" is supported, invalid layer: {{0}}': n(2215), "select layer": n(2574), "run Photoshop Action": n(2519), "Action {{0}} not found": "Action {{0}} not found", "Action set {{0}} not found": "Action set {{0}} not found", "set text to layer": "Set text to layer", "ComfyManager not found, cannot reboot": n(955), "Failed to reboot ComfyUI": n(1239), "image.upload.from_ps": n(2008), "image.upload.from_disk": n(2176), "image.upload.clear": "Clear", "image.upload.uploading": n(753), "image.upload.no_images": n(725), "source.source": n(2154), "source.content": n(886), "source.boundary": n(1558), "source.mask": n(1438), "source.disk": n(1870), "source.remote": "Remote", "source.unknown": n(2030), "source.ps_image": "PS", "source.ps_mask": "PS", "source.canvas": n(566), "source.current_layer": n(2530), "source.selection": n(1622), "source.quality_percent": n(1475), "source.crop.positive": n(1448), "source.crop.negative": n(1550), "source.reverse": n(2489) }, g0 = (i) => typeof i === n(923), Gx = () => { - const i = n; - let e, t; - const a = new Promise((x, r) => { - e = x, t = r; +const Fe = I({ leftDistance: t0(), topDistance: t0(), rightDistance: t0(), bottomDistance: t0(), width: t0(), height: t0() }), Me = { name: S(), uiWeight: t0() }, wi = I({ ...Me, outputType: r0(s(648)), options: I({ required: x0(), maxCount: t0()[s(1285)](), maskMode: x0().optional() }) }), Si = I({ ...Me, outputType: r0(s(2427)), options: I({ required: x0() }) }), ki = I({ ...Me, outputType: r0(s(2348)), options: I({ required: x0() }) }), Ei = I({ ...Me, outputType: r0("boolean"), options: I({ required: x0() }) }), Ii = I({ ...Me, outputType: r0(s(960)), options: I({ required: x0(), min: t0()[s(1285)](), max: t0()[s(1285)](), step: t0()[s(1285)](), random: x0()[s(1285)](), slider: x0()[s(1285)]() }) }), Pi = I({ ...Me, outputType: r0("combo"), options: I({ required: x0(), values: I0(S()), labels: I0(S())[s(1285)]() }) }), Ri = I({ ...Me, outputType: r0(s(1e3)), options: I({ required: x0(), values: I0(S()) }) }), Ci = $s("outputType", [wi, Si, ki, Ei, Ii, Pi, Ri]), Fi = I({ id: S(), title: S(), widgets: I0(Ci), uiWeightSum: t0() }), Ni = I({ widgetableID: S(), widgetablePath: S(), nodes: H0(S(), Fi), nodeIndexes: I0(S()), note: S()[s(1285)](), options: H0(S(), D0()) }), qi = I({ bannerData: D0().optional(), refreshable: x0()[s(2641)](!1), backwardable: x0()[s(2641)](!1), loginable: x0().default(!1), runnable: x0()[s(2641)](!1), workBoundaries: H0(t0(), Fe)[s(2641)]({}), workBoundaryMaxSizes: H0(t0(), t0())[s(2641)]({}) }), Ti = I({ uname: S()[s(2641)](""), activeDocumentID: t0()[s(2641)](0), layers: I0(I({ id: t0(), name: S(), identify: S() }))[s(2641)]([]), actions: I0(S())[s(2641)]([]), theme: S()[s(2641)](s(1237)), sdpppX: H0(S(), D0())[s(2641)]({}), locale: F0([s(734), s(363)])[s(2641)](s(363)), comfyWebviewConnectStatus: F0(["connecting", s(1716), s(1352)])[s(2641)](s(1352)), comfyWebviewLoadError: S()[s(2641)](""), comfyWebviewLoading: x0()[s(2641)](!1), comfyWebviewVersion: S()[s(2641)](""), comfyHTTPCode: t0()[s(2641)](200), comfyURL: S()[s(2641)](""), sdkWebviewFocusing: x0()[s(2641)](!1), sdkWebviewConnectStatus: F0([s(1780), "connected", "disconnected"])[s(2641)]("disconnected"), isLogin: x0().default(!1), isGuest: x0().default(!1), requestingLogin: x0()[s(2641)](!1), loginMessage: S()[s(2641)](""), token: S()[s(2641)](""), userInfo: H0(S(), D0()).default({}), taskLastRun: t0().default(0), canvasStateID: t0()[s(1285)](), selectionStateID: S().optional(), canvasThumbnail: S()[s(2641)](""), curlayerThumbnail: S()[s(2641)]("") }), Oi = I({ widgetableStructure: Ni[s(2641)]({ widgetableID: "", widgetablePath: "", nodes: {}, note: "", options: {}, nodeIndexes: [] }), widgetableValues: H0(S(), I0(D0()))[s(2641)]({}), widgetableErrors: H0(S(), S())[s(2641)]({}), queueSize: t0().default(0), lastError: S()[s(2641)](""), progress: t0()[s(2641)](0), executingNodeTitle: S()[s(2641)](""), executingNodeID: S()[s(2641)](""), graphProgress: t0()[s(2641)](0), comfyUserToken: S()[s(2641)](""), comfyOrgLoggedIn: x0()[s(2641)](!1), comfyOrgAPIKey: S()[s(2641)](""), comfyWSState: F0([s(1716), "reconnecting"])[s(2641)](s(1716)), lastRunTime: t0()[s(2641)](0) }), Ai = { backward: { requestSchema: zx(), responseSchema: I({ success: x0() }) }, refresh: { requestSchema: zx(), responseSchema: I({ success: x0() }) }, run: { requestSchema: zx(), responseSchema: I({ success: x0() }) } }, Di = { log: { requestSchema: I({ level: F0([s(1133), s(1604), "warn", s(503)]), messages: I0(S()) }), responseSchema: I({}) }, openExternalLink: { requestSchema: I({ url: S() }), responseSchema: I({ error: S()[s(1285)]() }) }, getStorage: { requestSchema: I({ key: S() }), responseSchema: I({ value: S(), error: S()[s(1285)]() }) }, setStorage: { requestSchema: I({ key: S(), value: S() }), responseSchema: I({ error: S()[s(1285)]() }) }, removeStorage: { requestSchema: I({ key: S() }), responseSchema: I({ error: S()[s(1285)]() }) }, keyboardAction: { requestSchema: I({ keycode: S() }), responseSchema: I({}) }, setComfyWebviewURL: { requestSchema: I({ url: S() }), responseSchema: I({}) }, getImageBase64: { requestSchema: I({ token: S() }), responseSchema: I({ base64: S()[s(1285)](), mimeType: S()[s(1285)](), error: S().optional() }) }, uploadComfyImage: { requestSchema: I({ uploadInput: I({ type: r0(s(1095)).or(r0(s(782))), tokenOrBuffer: D0(), fileName: S() }), overwrite: x0()[s(1285)]()[s(2641)](!0) }), responseSchema: I({ name: S() }) }, proxiedFetch: { requestSchema: I({ url: S(), method: S()[s(1285)](), headers: H0(S())[s(1285)](), body: D0().optional(), bodyType: F0([s(1003), s(2528), s(1645)]).optional() }), responseSchema: I({ success: x0(), status: t0().optional(), statusText: S().optional(), headers: H0(S())[s(1285)](), data: D0().optional(), error: S()[s(1285)]() }) }, openaiImageEdit: { requestSchema: I({ apiKey: S(), baseURL: S(), imageToken: S(), prompt: S(), model: S() }), responseSchema: I({ success: x0(), imageUrl: S()[s(1285)](), apiTime: t0().optional(), error: S()[s(1285)]() }) }, geminiImageGenerate: { requestSchema: I({ apiKey: S(), baseURL: S()[s(1285)](), imageInputs: I0(S())[s(1285)](), imageInput: S()[s(1285)](), imageInputType: F0([s(782), s(2287)]), prompt: S() }), responseSchema: I({ success: x0(), imageUrl: S()[s(1285)](), apiTime: t0()[s(1285)](), error: S()[s(1285)]() }) } }; +I({ thumbnail_url: S()[s(1285)](), file_token: S()[s(1285)](), source: S()[s(1285)](), error: S()[s(1285)]() }); +const Or = I({ boundary: F0([s(1805), s(424), "selection"]), content: F0([s(1805), "curlayer", s(684)]).or(S()), imageSize: t0(), imageQuality: t0(), cropBySelection: F0(["no", "positive", s(936)]) }), Ar = I({ content: F0(["canvas", "curlayer", s(684)]), reverse: x0(), imageSize: t0() }); +I({ selection: F0(["newdoc_canvas", s(2658), s(2630), s(724), s(1950), s(2141), s(2462), "newdoc_canvas"]), url: S(), source: S(), cropBySelection: F0(["no", s(1115), s(936)]) }); +const ji = { downloadImage: { requestSchema: I({ url: S() }), responseSchema: I({ thumbnail_url: S()[s(1285)](), nativePath: S()[s(1285)](), width: t0()[s(1285)](), height: t0()[s(1285)](), error: S()[s(1285)]() }) }, deleteDownloadedImage: { requestSchema: I({ nativePaths: I0(S()) }), responseSchema: I({ error: S()[s(1285)]() }) }, requestAndDoSaveImage: { requestSchema: I({ nativePaths: I0(S()) }), responseSchema: I({ error: S()[s(1285)]() }) } }, Mi = I({ passwordPayload: I({ username: S(), password: S() }).or(I({ email: S(), password: S() })).or(I({ phone: S(), password: S() })).or(I({ identifier: S(), password: S() })) }).or(I({ passcodePayload: I({ phone: S(), code: S() }).or(I({ email: S(), code: S() })) })), Li = I({ passwordPayload: I({ username: S(), password: S() }).or(I({ email: S(), password: S() })).or(I({ phone: S(), password: S() })).or(I({ identifier: S(), password: S() })) }).or(I({ passcodePayload: I({ phone: S(), code: S() }).or(I({ email: S(), code: S() })) })), $i = { register: { requestSchema: Mi, responseSchema: I({}) }, login: { requestSchema: Li, responseSchema: I({}) }, sendPassCode: { requestSchema: I({ phone: S().optional(), email: S()[s(1285)]() }), responseSchema: I({}) }, logout: { requestSchema: I({}), responseSchema: I({}) }, guestLogin: { requestSchema: I({}), responseSchema: I({}) } }, Hx = I({ taskId: S(), taskName: S(), status: F0([s(527), "completed", s(931), s(443)]), currentStep: t0().optional(), totalSteps: t0()[s(1285)](), stepDescription: S()[s(1285)](), progressPercentage: t0()[s(1524)](0)[s(2537)](100)[s(1285)](), startTime: S(), endTime: S()[s(1285)](), error: S().optional(), errorCode: S()[s(1285)](), result: D0()[s(1285)](), metadata: H0(D0())[s(1285)]() }), Ux = I({ success: x0(), error: S()[s(1285)]() }), zi = { taskAdd: { requestSchema: Hx, responseSchema: Ux }, taskUpdate: { requestSchema: Hx[s(403)]()[s(848)]({ taskId: !0 }), responseSchema: Ux }, taskRemove: { requestSchema: Hx[s(470)]({ taskId: !0 }), responseSchema: Ux } }, Hi = { manageGuides: { requestSchema: I({ action: F0(["create", "clear"]), rect: Fe[s(1285)]() }), responseSchema: I({ success: x0() }) }, openImagesFromFile: { requestSchema: I({ nativePath: S(), boundary: Fe[s(1285)]() }), responseSchema: I({ success: x0(), documentId: t0(), documentName: S(), width: t0(), height: t0() }) }, getBoundary: { requestSchema: I({ type: F0([s(424), "selection"]) }), responseSchema: Fe }, getImage: { requestSchema: I({ boundary: J0([F0(["canvas", s(424), s(684)]), Fe]), content: J0([F0([s(1805), "curlayer"]), S()]), imageSize: t0(), imageQuality: t0(), cropBySelection: F0(["no", s(1115), s(936)]) }), responseSchema: I({ thumbnail_url: S()[s(1285)](), file_token: S()[s(1285)](), source: S().optional(), error: S()[s(1285)]() }) }, getMask: { requestSchema: I({ boundary: J0([F0(["canvas", s(424), "selection"]), Fe]), content: F0([s(1805), s(424), s(684)]), reverse: x0(), imageSize: t0() }), responseSchema: I({ thumbnail_url: S().optional(), file_token: S()[s(1285)](), source: S()[s(1285)](), error: S().optional() }) }, importImage: { requestSchema: I({ nativePath: S(), boundary: J0([F0([s(1805), s(424), s(684)]), Fe])[s(1285)](), type: F0(["canvas", "curlayer", s(1899), s(1052)]), sourceWidth: t0().optional(), sourceHeight: t0()[s(1285)]() }), responseSchema: I({ success: x0(), layers: I0(I({ identify: S() }))[s(1285)](), message: S().optional(), error: S()[s(1285)]() }) }, showBoundarySelectionDialog: { requestSchema: I({ additionalData: H0(D0())[s(1285)]() }), responseSchema: I({ boundary: F0([s(1805), "curlayer", "selection"])[s(1285)](), cancelled: x0()[s(1285)]() }) }, selectCanvasImage: { requestSchema: I({ additionalData: H0(D0())[s(1285)]() }), responseSchema: I({ getImageParams: Or[s(1285)](), source: S()[s(1285)](), cancelled: x0()[s(1285)]() }) }, selectLayerImage: { requestSchema: I({ additionalData: H0(D0()).optional() }), responseSchema: I({ getImageParams: Or[s(1285)](), source: S()[s(1285)](), cancelled: x0()[s(1285)]() }) }, selectLayerMask: { requestSchema: I({ additionalData: H0(D0()).optional() }), responseSchema: I({ getMaskParams: Ar[s(1285)](), source: S()[s(1285)](), cancelled: x0()[s(1285)]() }) }, selectSelectionMask: { requestSchema: I({ additionalData: H0(D0())[s(1285)]() }), responseSchema: I({ getMaskParams: Ar[s(1285)](), source: S().optional(), cancelled: x0().optional() }) } }, Ui = I({ workflows: I0(S()), error: S()[s(1285)]() }), Vi = I({ success: x0(), nodeErrors: H0(S()).optional(), prompt_ids: I0(S())[s(1285)](), images: I0(I({ url: S(), thumbnail: S() }))[s(1285)]() }), Wi = { setWidgetValue: { requestSchema: I({ values: I0(I({ nodeID: S(), widgetIndex: t0(), value: H0(S(), D0()).or(S()).or(t0()).or(x0()).or(I0(D0())) })) }), responseSchema: I({ success: x0() }) }, openWorkflow: { requestSchema: I({ workflow_path: S(), reset: x0()[s(2641)](!1) }), responseSchema: I({ success: x0() }) }, openWorkflowJSON: { requestSchema: I({ workflow_content: H0(D0()), workflow_path: S() }), responseSchema: I({ success: x0() }) }, listWorkflows: { requestSchema: I({ listMode: S()[s(1285)](), sdpppID: S().optional(), sdpppToken: S().optional() }), responseSchema: Ui }, saveWorkflow: { requestSchema: I({ workflow_path: S(), from_sid: S().optional() }), responseSchema: I({ success: x0() }) }, run: { requestSchema: I({ size: t0() }), responseSchema: Vi, stream: !0 }, stopAll: { requestSchema: I({}), responseSchema: I({ success: x0() }) } }, Zi = { setNodeTitle: { requestSchema: I({ node_id: S(), title: S() }), responseSchema: I({ success: x0() }) }, reboot: { requestSchema: I({}), responseSchema: I({ success: x0(), error: S()[s(1285)]() }) }, setComfyOrgAPIKey: { requestSchema: I({ api_key: S() }), responseSchema: I({ success: x0() }) }, logout: { requestSchema: I({}), responseSchema: I({ success: x0() }) } }, Bi = bi({ nodes: { sdk: { store: qi, actions: { ...Ai } }, uxp: { store: Ti, actions: { ...ji, ...Di, ...$i, ...zi, ...Hi } }, comfy: { store: Oi, actions: { ...Wi, ...Zi } } }, edges: [[s(1695), s(780)], [s(978), s(780)]] }), C0 = Bi.joinAs(s(978)); +globalThis[s(2019)] = C0, globalThis.sdpppX2 = globalThis.sdpppX2 || {}; +const _e = globalThis[s(653)], Ki = { "preview.show": "显示预览框 ({{count}}张图片)", "gateway.select_ai_service": s(1858), "provider.select.title": s(1108), "provider.comfyui.description": "自定义AI工作流引擎", "provider.replicate.description": s(595), "provider.runninghub.description": s(427), "provider.google.description": "OpenAI/Google 格式API", "task.waiting_upload": s(1273), "task.creating_task": s(1390), "task.running_duration": s(2567), "task.cancelled": s(1620), "task.cancel_failed": s(1595), "comfy.connect": "连接", "comfy.load_failed": s(1177), "comfy.loading": s(1845), "comfy.channel_connecting": s(1809), "comfy.server_reconnecting": "ComfyUI服务器重连中", "comfy.version_mismatch": s(2194), "comfy.cloud_recommend": "云端推荐:", "comfy.your_workflows": "你的工作流", "comfy.refresh_workflows": "刷新工作流列表", "comfy.queue_progress": "(队列:{{queueSize}}) {{progress}}% {{executingNodeTitle}}...", "comfy.save": "保存", "comfy.refresh": "刷新", "comfy.stop_cancel_all": "停止并取消全部", "comfy.stop_auto_run": "停止自动运行", "comfy.start_auto_run": s(1986), "comfy.run": "运行", "comfy.back": "返回", "comfy.uploading": s(2327), "comfy.help_tooltip": s(2153), "boundary.title": s(486), "boundary.tooltip": "AI使用的区域与最大尺寸控制", "boundary.current_canvas": s(397), "boundary.current_layer": s(1936), "boundary.current_selection": s(2430), "boundary.set_as_canvas": "设为画布", "boundary.set_as_layer": "设为当前图层", "boundary.set_as_selection": s(362), "http.404": s(1104), "http.401": s(2010), "http.403": "禁止访问 (403)", "http.408": "请求超时 (408)", "http.500": "服务器错误 (500)", "http.501": s(2365), "http.502": "网关错误 (502)", "http.503": s(826), "http.504": s(430), "http.unknown": s(1160), "runninghub.get_apikey": s(1749), "runninghub.apikey_placeholder": "请输入您的RunningHub API Key", "runninghub.app_id": "应用ID:", "runninghub.webapp_id_placeholder": s(554), "runninghub.open_app": s(2004), "runninghub.execute": "执行", "runninghub.rh_coins": "RH币:", "runninghub.current_tasks": s(1768), "runninghub.help_tooltip": "使用教程", "runninghub.status.waiting": "排队等待", "runninghub.status.running": "正在运行", "runninghub.status.failed": s(382), "runninghub.status.success": s(713), "image.auto_refetch": s(2034), "runninghub.error.get_result_failed": s(882), "runninghub.error.task_failed": s(785), "runninghub.error.task_incomplete": "任务未完成,当前状态: {{status}}", "replicate.get_apikey": s(416), "replicate.apikey_placeholder": s(1938), "replicate.execute": "执行", "replicate.model_placeholder": s(561), "replicate.help_tooltip": s(2153), "liblib.get_apikey": s(1210), "liblib.execute": "执行", "common.close": "关闭", "common.save_and_run": "保存并立即执行", "common.loading": "加载中...", "common.error": "错误", "common.success": "成功", "common.cancel": "取消", "common.confirm": "确认", "common.options": "选项", "common.options_separator": s(879), webviewInForeground: s(2018), webviewInForeground2: "点我恢复", "auth.login_success": "登录成功", "auth.username_label": "用户名: {{username}}", "auth.email_label": s(2222), "auth.logout": "退出登录", "auth.login_required": s(1015), "image.send.select_position": "请选择要发送图像的位置", "image.send.sending": s(1669), "image.layer.new": s(1529), "image.layer.current": s(1936), "image.layer.fit_to_current": s(1972), "image.layer.fit_to_selection": s(948), "image.layer.fit_to_canvas": s(1539), "image.shortcut_auth_required": s(1639), "image.shortcut_focus_required": s(1929), "image.get.select_image": s(494), "image.get.entire_canvas": s(397), "image.get.canvas": "画布", "image.get.current_layer": s(1936), "image.get.current_layer_bounds": s(1944), "image.get.selection_bounds": s(1317), "image.get.canvas_bounds": s(1543), "image.crop_by_selection": s(2076), "image.limit_size": s(1974), "image.crop.none": "不裁剪", "image.crop.inpaint": s(1454), "image.crop.outpaint": "正向裁剪(Outpaint)", "image.send_all": s(1968), "image.save_all": "保存所有", "image.save_current": s(2064), "image.delete_current": "删除当前", "image.more_actions": s(2496), "image.jump_to_last": s(355), "image.clear_all": s(1746), "image.send_to_ps": "发送到PS", "image.download": "下载", "image.copy": "复制", "image.sending": s(1784), "image.sending_all": "正在发送所有图片...", "mask.get.select_mask": s(854), "mask.selection": "选区", "mask.current_layer_bounds": s(791), "mask.all": "全部", "mask.selection_exclude": "选区除外", "mask.current_layer_exclude": s(880), "mask.empty": "空", "document {{0}} not found": s(442), "create document for preview": s(1312), "resize document for preview": s(332), "create document for sent images": s(1395), "show sent images": s(349), "create layer failed": s(2257), "layer not found {{0}}": s(2569), "layer not found: {{0}}": s(2569), "layer {{0}} is not a group": s(1616), "no linked layer for {{0}}": "没有链接图层: {{0}}", "no first related layer in {{0}}": s(1767), "merge group failed": s(1747), "get content of layer {{0}}": s(2424), "get layer info": "获取图层信息", "get_layer_info: layer_identify required": "get_layer_info: 需要 layer_identify", "get pixel of {{0}} failed": s(1558), "get selection failed": s(314), "invalid name: {{0}}": s(784), "desire bounds is null": s(1132), "intersect or scaledDesire is null": s(348), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': "不支持非文本图层: {{0}}", "select layer": "sdppp 选中图层", "run Photoshop Action": "sdppp 运行 Photoshop Action", "Action {{0}} not found": "Action {{0}} 未找到", "Action set {{0}} not found": "ActionSet {{0}} 未找到", "set text to layer": "设置图层的文本", "ComfyManager not found, cannot reboot": s(1467), "Failed to reboot ComfyUI": s(1265), "image.upload.from_canvas": "画布", "image.upload.from_curlayer": s(1936), "image.upload.from_selection": "选区", "image.upload.from_harddisk": "硬盘", "image.upload.clear": "清空", "image.upload.uploading": "上传中,如果图片过大,可能会卡顿...", "image.upload.no_images": s(847), "image.upload.tooltip.more_options_hint": s(916), "image.upload.tooltip.alt.crop": s(830), "image.upload.tooltip.alt.reverse": s(1370), "image.upload.tooltip.shift.once": s(406), "image.upload.tooltip.image.canvas": s(2478), "image.upload.tooltip.image.curlayer": s(1016), "image.upload.tooltip.mask.curlayer": s(2635), "image.upload.tooltip.mask.selection": s(2335), "image.upload.tooltip.mask.canvas": s(1599), "source.source": "来源", "source.content": "内容", "source.boundary": "范围", "source.mask": "遮罩", "source.disk": "磁盘", "source.remote": "远端", "source.unknown": "未知", "source.ps_image": s(964), "source.ps_mask": "PS遮罩", "source.canvas": s(397), "source.current_layer": s(1936), "source.selection": "选区", "source.quality_percent": s(1494), "source.crop.positive": s(850), "source.crop.negative": s(368), "source.reverse": "反转", "send_images.create_document": s(1744), "send_images.create_document_failed": "创建文档失败", "photoshop.no_active_document": s(1423), "photoshop.rectangle_coordinates_required": s(619), "photoshop.create_guide_frame": "创建参考线框架", "photoshop.clear_guide_frame": s(480), "photoshop.invalid_action": "无效操作: {{action}}", "photoshop.file_not_found": s(1118), "photoshop.failed_to_open_file_as_document": s(2402), "photoshop.invalid_boundary": s(1109), "photoshop.failed_to_open_image_file": s(435), "photoshop.open_images_from_file": s(1149), "photoshop.failed_to_create_document_from_file": "无法从文件创建文档", "google.field.image_input": s(2535), "google.field.prompt": s(1717), "google.field.batch_count": s(577), "google.field.images_per_batch": s(387), "google.status.success": "成功", "google.status.failed": "失败", "google.status.generating": s(438), "google.apikey_placeholder": s(1110), "google.baseurl_placeholder": s(776), "google.get_apikey": s(369), "google.help_tooltip": s(476), "google.model_name": s(2627), "google.loading": s(588), "google.generating": s(457), "google.generate": "生成", "image.auto_toggle": "自动", "image.import_as_smartobject": s(2329), "image.import_as_newdoc": s(2524), "image.boundary": "边界", "image.import_tip": "按住 Shift 键以新文档方式导入", "auth.guest_login_success": "", "boundary.canvas": "画布", "boundary.select_boundary": "选择边界", "boundary.selection": "选区", "convert widget {0} failed:": "", "document {0} not found": "", "image.document.new": "", "image.layer.smart_object": "", "layer not found {0}": "", "photoshop.invalid_boundary_type": "", "photoshop.no_active_layer": "" }, Ji = { "preview.show": s(447), "gateway.select_ai_service": s(666), "provider.select.title": s(559), "provider.comfyui.description": s(2548), "provider.replicate.description": s(429), "provider.runninghub.description": s(2542), "provider.google.description": "OpenAI/Google format API", "task.waiting_upload": "Waiting for image upload...", "task.creating_task": s(460), "task.running_duration": s(790), "task.cancelled": s(296), "task.cancel_failed": "Task cancel failed: {{error}}", "comfy.connect": "Connect", "comfy.load_failed": s(1309), "comfy.loading": s(1353), "comfy.channel_connecting": s(1476), "comfy.server_reconnecting": s(2570), "comfy.version_mismatch": "Comfy SDPPP version ({{comfyVersion}}) does not match plugin ({{pluginVersion}}), may cause issues", "comfy.cloud_recommend": s(304), "comfy.your_workflows": s(1786), "comfy.refresh_workflows": "Refresh workflow list", "comfy.queue_progress": s(1046), "comfy.save": s(2233), "comfy.refresh": s(2158), "comfy.stop_cancel_all": s(477), "comfy.stop_auto_run": "Stop auto run", "comfy.start_auto_run": s(1024), "comfy.run": s(1896), "comfy.back": s(822), "comfy.uploading": s(1445), "comfy.help_tooltip": s(1988), "boundary.title": s(2190), "boundary.tooltip": "Area AI reads from; controls max image size", "boundary.current_canvas": "Entire Canvas", "boundary.current_layer": s(1678), "boundary.current_selection": "Current Selection", "boundary.set_as_canvas": "Set as Canvas", "boundary.set_as_layer": s(1441), "boundary.set_as_selection": s(1496), "http.404": s(1646), "http.401": "Unauthorized (401)", "http.403": s(2266), "http.408": s(2001), "http.500": s(1269), "http.501": s(1706), "http.502": s(1224), "http.503": "Service unavailable (503)", "http.504": s(971), "http.unknown": s(472), "runninghub.get_apikey": s(2390), "runninghub.apikey_placeholder": "Enter your RunningHub API Key", "runninghub.app_id": s(1998), "runninghub.webapp_id_placeholder": s(1242), "runninghub.open_app": s(864), "runninghub.execute": s(730), "runninghub.rh_coins": s(1354), "runninghub.current_tasks": s(2481), "runninghub.help_tooltip": s(1988), "runninghub.status.waiting": s(1158), "runninghub.status.running": s(1086), "runninghub.status.failed": "Failed", "runninghub.status.success": s(408), "image.auto_refetch": "Auto repick from PS", "runninghub.error.get_result_failed": s(1039), "runninghub.error.task_failed": s(1260), "runninghub.error.task_incomplete": s(317), "replicate.get_apikey": s(481), "replicate.apikey_placeholder": "Enter your Replicate API Key", "replicate.execute": "Execute", "replicate.model_placeholder": s(1519), "replicate.help_tooltip": s(1988), "liblib.get_apikey": "How to get APIKey and API Secret", "liblib.execute": s(730), "common.close": s(1417), "common.save_and_run": s(1561), "common.loading": "Loading...", "common.error": s(889), "common.success": "Success", "common.cancel": "Cancel", "common.confirm": s(1884), "common.options": "Options", "common.options_separator": "=== Options ===", webviewInForeground: s(752), webviewInForeground2: s(2248), "auth.login_success": "Login Successful", "auth.username_label": s(374), "auth.email_label": s(685), "auth.logout": s(2182), "auth.login_required": "Please login to use the plugin", "image.send.select_position": "Please select the position to send image", "image.send.sending": s(998), "image.layer.new": s(1720), "image.layer.current": s(1678), "image.layer.fit_to_current": "Fit to current layer", "image.layer.fit_to_selection": s(2453), "image.layer.fit_to_canvas": "Fit to canvas", "image.shortcut_auth_required": s(1559), "image.shortcut_focus_required": s(1725), "image.get.select_image": s(498), "image.get.entire_canvas": s(1440), "image.get.canvas": s(1591), "image.get.current_layer": s(1678), "image.get.current_layer_bounds": s(2466), "image.get.selection_bounds": "Selection bounds only", "image.get.canvas_bounds": "Canvas bounds", "image.crop_by_selection": "Crop by selection", "image.limit_size": "Limit image size", "image.crop.none": s(797), "image.crop.inpaint": s(611), "image.crop.outpaint": "Outpaint (positive crop)", "image.send_all": s(2394), "image.save_all": s(904), "image.save_current": "Save current", "image.delete_current": s(1119), "image.more_actions": s(2640), "image.jump_to_last": s(602), "image.clear_all": s(539), "image.send_to_ps": s(1774), "image.download": s(1019), "image.copy": "Copy", "image.sending": s(958), "image.sending_all": s(2281), "mask.get.select_mask": s(345), "mask.selection": s(1270), "mask.current_layer_bounds": s(881), "mask.all": "All", "mask.selection_exclude": "Exclude selection", "mask.current_layer_exclude": s(2512), "mask.empty": "Empty", "document {{0}} not found": s(417), "create document for preview": s(1253), "resize document for preview": s(2276), "create document for sent images": "Create document for sent images", "show sent images": s(1978), "create layer failed": s(2026), "layer not found {{0}}": "Layer not found {{0}}", "layer not found: {{0}}": s(1920), "layer {{0}} is not a group": s(754), "no linked layer for {{0}}": s(333), "no first related layer in {{0}}": s(1584), "merge group failed": s(2099), "get content of layer {{0}}": s(2282), "get layer info": s(1428), "get_layer_info: layer_identify required": s(459), "get pixel of {{0}} failed": s(2259), "get selection failed": s(1682), "invalid name: {{0}}": s(517), "desire bounds is null": "Desire bounds is null", "intersect or scaledDesire is null": s(1963), 'only layer kind "TEXT" is supported, invalid layer: {{0}}': 'Only layer kind "TEXT" is supported, invalid layer: {{0}}', "select layer": s(1623), "run Photoshop Action": "Run Photoshop Action", "Action {{0}} not found": s(837), "Action set {{0}} not found": "Action set {{0}} not found", "set text to layer": s(709), "ComfyManager not found, cannot reboot": s(2519), "Failed to reboot ComfyUI": "Failed to reboot ComfyUI", "image.upload.from_canvas": s(1591), "image.upload.from_curlayer": s(1678), "image.upload.from_selection": s(1270), "image.upload.from_harddisk": s(1107), "image.upload.clear": s(634), "image.upload.uploading": s(2437), "image.upload.no_images": s(2079), "image.upload.tooltip.more_options_hint": "+Shift for more options; Ctrl to fetch once.", "image.upload.tooltip.alt.crop": "+Alt crop by selection", "image.upload.tooltip.alt.reverse": "+Alt reversed mask", "image.upload.tooltip.shift.once": s(1754), "image.upload.tooltip.image.canvas": s(342), "image.upload.tooltip.image.curlayer": "Get image from Current Layer", "image.upload.tooltip.mask.canvas": "Get mask from Canvas", "image.upload.tooltip.mask.curlayer": s(1924), "image.upload.tooltip.mask.selection": s(2428), "source.source": s(1499), "source.content": s(876), "source.boundary": s(2175), "source.mask": s(1681), "source.disk": "Disk", "source.remote": s(1992), "source.unknown": s(312), "source.ps_image": "PS", "source.ps_mask": "PS", "source.canvas": s(1591), "source.current_layer": s(407), "source.selection": s(1270), "source.quality_percent": s(1121), "source.crop.positive": "Positive Crop", "source.crop.negative": s(2121), "source.reverse": s(2482), "send_images.create_document": "Create document", "send_images.create_document_failed": s(827), "photoshop.no_active_document": s(2321), "photoshop.rectangle_coordinates_required": s(428), "photoshop.create_guide_frame": s(2476), "photoshop.clear_guide_frame": s(938), "photoshop.invalid_action": s(1970), "photoshop.file_not_found": "File not found: {{path}}", "photoshop.failed_to_open_file_as_document": s(1171), "photoshop.invalid_boundary": s(812), "photoshop.failed_to_open_image_file": s(1394), "photoshop.open_images_from_file": s(1859), "photoshop.failed_to_create_document_from_file": s(1139), "google.field.image_input": s(857), "google.field.prompt": s(402), "google.field.batch_count": s(657), "google.field.images_per_batch": "Images Per Batch", "google.status.success": s(408), "google.status.failed": s(2507), "google.status.generating": s(319), "google.apikey_placeholder": s(2242), "google.get_apikey": s(961), "google.baseurl_placeholder": "Base URL", "google.help_tooltip": s(2065), "google.model_name": s(1830), "google.loading": s(2279), "google.generating": s(1546), "google.generate": s(1815), "image.auto_toggle": s(1694), "image.import_as_smartobject": "Import as Smart Object", "image.import_as_newdoc": "Import as New Document", "image.boundary": s(425), "image.import_tip": "Hold Shift key to import as new document", "auth.guest_login_success": s(2305), "boundary.canvas": s(1591), "boundary.select_boundary": s(282), "boundary.selection": s(1270), "convert widget {0} failed:": s(385), "document {0} not found": s(1261), "image.document.new": s(1076), "image.layer.smart_object": s(1758), "layer not found {0}": s(2534), "photoshop.invalid_boundary_type": "photoshop.invalid_boundary_type", "photoshop.no_active_layer": s(1987) }, m0 = (i) => typeof i == "string", Ge = () => { + var i = s; + let x, t; + const a = new Promise((e, r) => { + x = e, t = r; }); - return a[i(1987)] = e, a[i(1656)] = t, a; -}, Ea = (i) => i == null ? "" : "" + i, Q2 = (i, e, t) => { - i[n(1238)]((x) => { - e[x] && (t[x] = e[x]); + return a[i(1890)] = x, a[i(2201)] = t, a; +}, Dr = (i) => i == null ? "" : "" + i, Gi = (i, x, t) => { + var a = s; + i[a(1222)]((e) => { + x[e] && (t[e] = x[e]); }); -}, G2 = /###/g, Ca = (i) => i && i[n(2170)](n(2126)) > -1 ? i[n(2188)](G2, ".") : i, Ia = (i) => !i || g0(i), ee = (i, e, t) => { - const a = n, x = g0(e) ? e[a(2248)](".") : e; +}, Qi = /###/g, jr = (i) => i && i[s(831)](s(705)) > -1 ? i[s(2112)](Qi, ".") : i, Mr = (i) => !i || m0(i), ex = (i, x, t) => { + var a = s; + const e = m0(x) ? x[a(2183)](".") : x; let r = 0; - for (; r < x.length - 1; ) { - if (Ia(i)) return {}; - const s = Ca(x[r]); - !i[s] && t && (i[s] = new t()), Object.prototype.hasOwnProperty[a(2518)](i, s) ? i = i[s] : i = {}, ++r; + for (; r < e.length - 1; ) { + if (Mr(i)) return {}; + const n = jr(e[r]); + !i[n] && t && (i[n] = new t()), Object.prototype[a(781)][a(1547)](i, n) ? i = i[n] : i = {}, ++r; } - return Ia(i) ? {} : { obj: i, k: Ca(x[r]) }; -}, Ra = (i, e, t) => { - const a = n, { obj: x, k: r } = ee(i, e, Object); - if (x !== void 0 || e[a(1200)] === 1) { - x[r] = t; + return Mr(i) ? {} : { obj: i, k: jr(e[r]) }; +}, Lr = (i, x, t) => { + var a = s; + const { obj: e, k: r } = ex(i, x, Object); + if (e !== void 0 || x[a(2021)] === 1) { + e[r] = t; return; } - let s = e[e[a(1200)] - 1], o = e.slice(0, e.length - 1), c = ee(i, o, Object); - for (; c[a(1600)] === void 0 && o.length; ) - s = o[o[a(1200)] - 1] + "." + s, o = o[a(2602)](0, o[a(1200)] - 1), c = ee(i, o, Object), c != null && c[a(1600)] && typeof c[a(1600)][c.k + "." + s] < "u" && (c.obj = void 0); - c[a(1600)][c.k + "." + s] = t; -}, Y2 = (i, e, t, a) => { - const x = n, { obj: r, k: s } = ee(i, e, Object); - r[s] = r[s] || [], r[s][x(818)](t); -}, Re = (i, e) => { - const t = n, { obj: a, k: x } = ee(i, e); - if (a && Object.prototype[t(2452)][t(2518)](a, x)) - return a[x]; -}, X2 = (i, e, t) => { - const a = Re(i, t); - return a !== void 0 ? a : Re(e, t); -}, fs = (i, e, t) => { - const a = n; - for (const x in e) - x !== a(769) && x !== a(2331) && (x in i ? g0(i[x]) || i[x] instanceof String || g0(e[x]) || e[x] instanceof String ? t && (i[x] = e[x]) : fs(i[x], e[x], t) : i[x] = e[x]); + let n = x[x[a(2021)] - 1], o = x[a(1813)](0, x[a(2021)] - 1), c = ex(i, o, Object); + for (; c.obj === void 0 && o[a(2021)]; ) + n = o[o[a(2021)] - 1] + "." + n, o = o[a(1813)](0, o.length - 1), c = ex(i, o, Object), c != null && c[a(1418)] && typeof c[a(1418)][c.k + "." + n] < "u" && (c.obj = void 0); + c.obj[c.k + "." + n] = t; +}, Xi = (i, x, t, a) => { + var e = s; + const { obj: r, k: n } = ex(i, x, Object); + r[n] = r[n] || [], r[n][e(2380)](t); +}, Px = (i, x) => { + var t = s; + const { obj: a, k: e } = ex(i, x); + if (a && Object[t(2180)].hasOwnProperty.call(a, e)) + return a[e]; +}, Yi = (i, x, t) => { + const a = Px(i, t); + return a !== void 0 ? a : Px(x, t); +}, Hs = (i, x, t) => { + var a = s; + for (const e in x) + e !== a(1416) && e !== a(599) && (e in i ? m0(i[e]) || i[e] instanceof String || m0(x[e]) || x[e] instanceof String ? t && (i[e] = x[e]) : Hs(i[e], x[e], t) : i[e] = x[e]); return i; -}, Hx = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, n(1669)); -var _2 = { "&": n(1599), "<": "<", ">": n(2347), '"': n(1744), "'": n(1591), "/": "/" }; -const xc = (i) => { - const e = n; - return g0(i) ? i[e(2188)](/[&<>"'\/]/g, (t) => _2[t]) : i; +}, He = (i) => i[s(2112)](/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, s(2592)); +var _i = { "&": s(2298), "<": "<", ">": s(1862), '"': s(286), "'": s(2320), "/": s(544) }; +const eo = (i) => { + var x = s; + return m0(i) ? i[x(2112)](/[&<>"'\/]/g, (t) => _i[t]) : i; }; -class ec { - constructor(e) { - const t = n; - this[t(2171)] = e, this[t(1190)] = /* @__PURE__ */ new Map(), this[t(2061)] = []; +class xo { + constructor(x) { + var t = s; + this[t(1618)] = x, this[t(1922)] = /* @__PURE__ */ new Map(), this[t(2370)] = []; } - [n(808)](e) { - const t = n, a = this[t(1190)].get(e); + [s(970)](x) { + var t = s; + const a = this.regExpMap[t(2229)](x); if (a !== void 0) return a; - const x = new RegExp(e); - return this.regExpQueue[t(1200)] === this[t(2171)] && this.regExpMap[t(2653)](this[t(2061)][t(2621)]()), this[t(1190)][t(510)](e, x), this[t(2061)][t(818)](e), x; + const e = new RegExp(x); + return this[t(2370)][t(2021)] === this[t(1618)] && this[t(1922)].delete(this[t(2370)].shift()), this[t(1922)].set(x, e), this[t(2370)][t(2380)](x), e; } } -const tc = [" ", ",", "?", "!", ";"], rc = new ec(20), ac = (i, e, t) => { - const a = n; - e = e || "", t = t || ""; - const x = tc[a(893)]((o) => e.indexOf(o) < 0 && t[a(2170)](o) < 0); - if (x[a(1200)] === 0) return !0; - const r = rc[a(808)]("(" + x[a(2404)]((o) => o === "?" ? "\\?" : o).join("|") + ")"); - let s = !r[a(1313)](i); - if (!s) { - const o = i[a(2170)](t); - o > 0 && !r[a(1313)](i[a(2311)](0, o)) && (s = !0); +const to = [" ", ",", "?", "!", ";"], ro = new xo(20), ao = (i, x, t) => { + var a = s; + x = x || "", t = t || ""; + const e = to[a(2397)]((o) => x[a(831)](o) < 0 && t[a(831)](o) < 0); + if (e[a(2021)] === 0) return !0; + const r = ro.getRegExp("(" + e[a(632)]((o) => o === "?" ? "\\?" : o)[a(2515)]("|") + ")"); + let n = !r[a(856)](i); + if (!n) { + const o = i[a(831)](t); + o > 0 && !r[a(856)](i[a(531)](0, o)) && (n = !0); } - return s; -}, Kt = (i, e, t = ".") => { - const a = n; + return n; +}, Kt = (i, x, t = ".") => { + var a = s; if (!i) return; - if (i[e]) - return Object[a(1166)].hasOwnProperty[a(2518)](i, e) ? i[e] : void 0; - const x = e[a(2248)](t); + if (i[x]) + return Object[a(2180)].hasOwnProperty[a(1547)](i, x) ? i[x] : void 0; + const e = x.split(t); let r = i; - for (let s = 0; s < x[a(1200)]; ) { - if (!r || typeof r != "object") return; + for (let n = 0; n < e.length; ) { + if (!r || typeof r !== a(1923)) return; let o, c = ""; - for (let d = s; d < x[a(1200)]; ++d) - if (d !== s && (c += t), c += x[d], o = r[c], o !== void 0) { - if ([a(923), a(2074), a(958)][a(2170)](typeof o) > -1 && d < x[a(1200)] - 1) continue; - s += d - s + 1; + for (let u = n; u < e[a(2021)]; ++u) + if (u !== n && (c += t), c += e[u], o = r[c], o !== void 0) { + if ([a(2348), a(960), a(2251)][a(831)](typeof o) > -1 && u < e[a(2021)] - 1) continue; + n += u - n + 1; break; } r = o; } return r; -}, ae = (i) => i == null ? void 0 : i.replace("_", "-"), nc = { type: n(1077), log(i) { - const e = n; - this.output(e(816), i); +}, rx = (i) => i == null ? void 0 : i.replace("_", "-"), so = { type: "logger", log(i) { + var x = s; + this.output(x(1133), i); }, warn(i) { - this[n(2528)]("warn", i); + var x = s; + this[x(464)](x(1797), i); }, error(i) { - const e = n; - this.output(e(2389), i); -}, output(i, e) { - var t, a; - (a = (t = console == null ? void 0 : console[i]) == null ? void 0 : t.apply) == null || a.call(t, console, e); + var x = s; + this[x(464)]("error", i); +}, output(i, x) { + var a, e; + var t = s; + (e = (a = console == null ? void 0 : console[i]) == null ? void 0 : a[t(756)]) == null || e.call(a, console, x); } }; -class Fe { - constructor(e, t = {}) { - this[n(1717)](e, t); +class Rx { + constructor(x, t = {}) { + var a = s; + this[a(1448)](x, t); } - [n(1717)](e, t = {}) { - const a = n; - this[a(2212)] = t[a(2212)] || a(2225), this[a(1077)] = e || nc, this[a(2687)] = t, this[a(855)] = t.debug; + [s(1448)](x, t = {}) { + var a = s; + this[a(967)] = t[a(967)] || a(1464), this.logger = x || so, this.options = t, this[a(2491)] = t[a(2491)]; } - log(...e) { - const t = n; - return this[t(1152)](e, t(816), "", !0); + [s(1133)](...x) { + var t = s; + return this[t(1308)](x, t(1133), "", !0); } - [n(1808)](...e) { - const t = n; - return this[t(1152)](e, t(1808), "", !0); + [s(1797)](...x) { + var t = s; + return this[t(1308)](x, t(1797), "", !0); } - [n(2389)](...e) { - return this.forward(e, "error", ""); + [s(503)](...x) { + var t = s; + return this[t(1308)](x, "error", ""); } - [n(1154)](...e) { - const t = n; - return this.forward(e, "warn", t(1457), !0); + [s(1305)](...x) { + var t = s; + return this.forward(x, "warn", t(419), !0); } - [n(1152)](e, t, a, x) { - const r = n; - return x && !this.debug ? null : (g0(e[0]) && (e[0] = "" + a + this.prefix + " " + e[0]), this[r(1077)][t](e)); + forward(x, t, a, e) { + var r = s; + return e && !this[r(2491)] ? null : (m0(x[0]) && (x[0] = "" + a + this[r(967)] + " " + x[0]), this[r(1238)][t](x)); } - [n(1108)](e) { - const t = n; - return new Fe(this[t(1077)], { prefix: this.prefix + ":" + e + ":", ...this[t(2687)] }); + [s(2196)](x) { + var t = s; + return new Rx(this[t(1238)], { prefix: this[t(967)] + ":" + x + ":", ...this.options }); } - clone(e) { - const t = n; - return e = e || this[t(2687)], e[t(2212)] = e.prefix || this[t(2212)], new Fe(this[t(1077)], e); + [s(1879)](x) { + var t = s; + return x = x || this[t(778)], x.prefix = x.prefix || this.prefix, new Rx(this[t(1238)], x); } } -var lx = new Fe(); -class je { +var he = new Rx(); +class Nx { constructor() { this.observers = {}; } - on(e, t) { - const a = n; - return e[a(2248)](" ")[a(1238)]((x) => { - const r = a; - this[r(2201)][x] || (this[r(2201)][x] = /* @__PURE__ */ new Map()); - const s = this[r(2201)][x].get(t) || 0; - this[r(2201)][x][r(510)](t, s + 1); + on(x, t) { + var a = s; + return x.split(" ")[a(1222)]((e) => { + var r = a; + this[r(2302)][e] || (this.observers[e] = /* @__PURE__ */ new Map()); + const n = this.observers[e][r(2229)](t) || 0; + this[r(2302)][e][r(1951)](t, n + 1); }), this; } - [n(1298)](e, t) { - const a = n; - if (this[a(2201)][e]) { + off(x, t) { + var a = s; + if (this.observers[x]) { if (!t) { - delete this[a(2201)][e]; + delete this[a(2302)][x]; return; } - this[a(2201)][e][a(2653)](t); + this[a(2302)][x][a(2434)](t); } } - [n(1598)](e, ...t) { - const a = n; - this.observers[e] && Array[a(781)](this[a(2201)][e][a(586)]())[a(1238)](([r, s]) => { - for (let o = 0; o < s; o++) + [s(2206)](x, ...t) { + var a = s; + this[a(2302)][x] && Array[a(1147)](this[a(2302)][x][a(446)]())[a(1222)](([r, n]) => { + for (let o = 0; o < n; o++) r(...t); - }), this.observers["*"] && Array[a(781)](this[a(2201)]["*"].entries())[a(1238)](([r, s]) => { - const o = a; - for (let c = 0; c < s; c++) - r[o(1364)](r, [e, ...t]); + }), this.observers["*"] && Array.from(this[a(2302)]["*"][a(446)]()).forEach(([r, n]) => { + var o = a; + for (let c = 0; c < n; c++) + r[o(756)](r, [x, ...t]); }); } } -class Fa extends je { - constructor(e, t = { ns: [n(1224)], defaultNS: n(1224) }) { - const a = n; - super(), this.data = e || {}, this[a(2687)] = t, this[a(2687)][a(1700)] === void 0 && (this.options[a(1700)] = "."), this[a(2687)][a(1367)] === void 0 && (this.options[a(1367)] = !0); +class $r extends Nx { + constructor(x, t = { ns: [s(1286)], defaultNS: s(1286) }) { + var a = s; + super(), this.data = x || {}, this[a(778)] = t, this.options[a(1981)] === void 0 && (this[a(778)][a(1981)] = "."), this[a(778)][a(1296)] === void 0 && (this[a(778)][a(1296)] = !0); } - [n(1206)](e) { - const t = n; - this[t(2687)].ns.indexOf(e) < 0 && this[t(2687)].ns[t(818)](e); + addNamespaces(x) { + var t = s; + this.options.ns.indexOf(x) < 0 && this.options.ns[t(2380)](x); } - [n(940)](e) { - const t = n, a = this.options.ns.indexOf(e); - a > -1 && this.options.ns[t(1065)](a, 1); + [s(2157)](x) { + var t = s; + const a = this.options.ns[t(831)](x); + a > -1 && this.options.ns.splice(a, 1); } - [n(2505)](e, t, a, x = {}) { - var u, f; - const r = n, s = x[r(1700)] !== void 0 ? x.keySeparator : this[r(2687)].keySeparator, o = x[r(1367)] !== void 0 ? x[r(1367)] : this[r(2687)][r(1367)]; + [s(462)](x, t, a, e = {}) { + var d, f; + var r = s; + const n = e[r(1981)] !== void 0 ? e[r(1981)] : this.options[r(1981)], o = e.ignoreJSONStructure !== void 0 ? e[r(1296)] : this.options.ignoreJSONStructure; let c; - e[r(2170)](".") > -1 ? c = e[r(2248)](".") : (c = [e, t], a && (Array[r(2344)](a) ? c.push(...a) : g0(a) && s ? c[r(818)](...a[r(2248)](s)) : c[r(818)](a))); - const d = Re(this[r(726)], c); - return !d && !t && !a && e.indexOf(".") > -1 && (e = c[0], t = c[1], a = c.slice(2)[r(2573)](".")), d || !o || !g0(a) ? d : Kt((f = (u = this[r(726)]) == null ? void 0 : u[e]) == null ? void 0 : f[t], a, s); + x[r(831)](".") > -1 ? c = x[r(2183)](".") : (c = [x, t], a && (Array.isArray(a) ? c.push(...a) : m0(a) && n ? c[r(2380)](...a.split(n)) : c.push(a))); + const u = Px(this[r(1073)], c); + return !u && !t && !a && x.indexOf(".") > -1 && (x = c[0], t = c[1], a = c[r(1813)](2)[r(2515)](".")), u || !o || !m0(a) ? u : Kt((f = (d = this[r(1073)]) == null ? void 0 : d[x]) == null ? void 0 : f[t], a, n); } - addResource(e, t, a, x, r = { silent: !1 }) { - const s = n, o = r[s(1700)] !== void 0 ? r.keySeparator : this[s(2687)][s(1700)]; - let c = [e, t]; - a && (c = c.concat(o ? a[s(2248)](o) : a)), e[s(2170)](".") > -1 && (c = e[s(2248)]("."), x = t, t = c[1]), this[s(1206)](t), Ra(this[s(726)], c, x), r[s(2217)] || this.emit(s(1650), e, t, a, x); + [s(1310)](x, t, a, e, r = { silent: !1 }) { + var n = s; + const o = r[n(1981)] !== void 0 ? r[n(1981)] : this[n(778)][n(1981)]; + let c = [x, t]; + a && (c = c.concat(o ? a[n(2183)](o) : a)), x.indexOf(".") > -1 && (c = x[n(2183)]("."), e = t, t = c[1]), this[n(392)](t), Lr(this[n(1073)], c, e), r[n(1033)] || this.emit(n(1564), x, t, a, e); } - [n(2671)](e, t, a, x = { silent: !1 }) { - const r = n; - for (const s in a) - (g0(a[s]) || Array[r(2344)](a[s])) && this[r(2267)](e, t, s, a[s], { silent: !0 }); - x[r(2217)] || this[r(1598)](r(1650), e, t, a); + addResources(x, t, a, e = { silent: !1 }) { + var r = s; + for (const n in a) + (m0(a[n]) || Array[r(1435)](a[n])) && this[r(1310)](x, t, n, a[n], { silent: !0 }); + e.silent || this[r(2206)](r(1564), x, t, a); } - [n(2556)](e, t, a, x, r, s = { silent: !1, skipCopy: !1 }) { - const o = n; - let c = [e, t]; - e[o(2170)](".") > -1 && (c = e[o(2248)]("."), x = a, a = t, t = c[1]), this.addNamespaces(t); - let d = Re(this[o(726)], c) || {}; - s[o(1992)] || (a = JSON[o(2156)](JSON[o(2301)](a))), x ? fs(d, a, r) : d = { ...d, ...a }, Ra(this[o(726)], c, d), s.silent || this[o(1598)](o(1650), e, t, a); + [s(711)](x, t, a, e, r, n = { silent: !1, skipCopy: !1 }) { + var o = s; + let c = [x, t]; + x[o(831)](".") > -1 && (c = x[o(2183)]("."), e = a, a = t, t = c[1]), this[o(392)](t); + let u = Px(this[o(1073)], c) || {}; + n[o(903)] || (a = JSON[o(1325)](JSON[o(990)](a))), e ? Hs(u, a, r) : u = { ...u, ...a }, Lr(this[o(1073)], c, u), n[o(1033)] || this.emit(o(1564), x, t, a); } - removeResourceBundle(e, t) { - const a = n; - this.hasResourceBundle(e, t) && delete this[a(726)][e][t], this[a(940)](t), this[a(1598)](a(2263), e, t); + removeResourceBundle(x, t) { + var a = s; + this[a(1603)](x, t) && delete this[a(1073)][x][t], this[a(2157)](t), this[a(2206)](a(1266), x, t); } - [n(1760)](e, t) { - return this[n(2505)](e, t) !== void 0; + [s(1603)](x, t) { + var a = s; + return this[a(462)](x, t) !== void 0; } - [n(1645)](e, t) { - const a = n; - return t || (t = this[a(2687)].defaultNS), this[a(2505)](e, t); + getResourceBundle(x, t) { + var a = s; + return t || (t = this[a(778)].defaultNS), this[a(462)](x, t); } - [n(2338)](e) { - return this.data[e]; + [s(521)](x) { + var t = s; + return this[t(1073)][x]; } - [n(1647)](e) { - const t = n, a = this[t(2338)](e); - return !!(a && Object[t(2278)](a) || [])[t(714)]((r) => a[r] && Object[t(2278)](a[r])[t(1200)] > 0); + [s(1011)](x) { + var t = s; + const a = this[t(521)](x); + return !!(a && Object[t(1040)](a) || [])[t(1666)]((r) => a[r] && Object.keys(a[r])[t(2021)] > 0); } - toJSON() { - return this[n(726)]; + [s(2393)]() { + return this.data; } } -var ls = { processors: {}, addPostProcessor(i) { - const e = n; - this[e(743)][i[e(2200)]] = i; -}, handle(i, e, t, a, x) { - const r = n; - return i[r(1238)]((s) => { - var c; - e = ((c = this[r(743)][s]) == null ? void 0 : c.process(e, t, a, x)) ?? e; - }), e; +var Us = { processors: {}, addPostProcessor(i) { + var x = s; + this[x(478)][i[x(940)]] = i; +}, handle(i, x, t, a, e) { + return i.forEach((r) => { + var o; + var n = K; + x = ((o = this[n(478)][r]) == null ? void 0 : o[n(535)](x, t, a, e)) ?? x; + }), x; } }; -const Na = {}, qa = (i) => !g0(i) && typeof i !== n(958) && typeof i !== n(2074); -class Ne extends je { - constructor(e, t = {}) { - const a = n; - super(), Q2([a(1686), a(1539), a(1535), a(2059), a(1058), a(1255), a(2305)], e, this), this[a(2687)] = t, this[a(2687)][a(1700)] === void 0 && (this[a(2687)][a(1700)] = "."), this[a(1077)] = lx[a(1108)](a(1003)); +const zr = {}, Hr = (i) => !m0(i) && typeof i !== s(2251) && typeof i !== s(960); +class Cx extends Nx { + constructor(x, t = {}) { + var a = s; + super(), Gi(["resourceStore", a(966), "pluralResolver", a(556), a(1459), a(1482), a(846)], x, this), this.options = t, this[a(778)][a(1981)] === void 0 && (this[a(778)][a(1981)] = "."), this[a(1238)] = he.create(a(1345)); } - changeLanguage(e) { - const t = n; - e && (this[t(711)] = e); + [s(1650)](x) { + var t = s; + x && (this[t(1867)] = x); } - [n(540)](e, t = { interpolation: {} }) { - const a = { ...t }; - if (e == null) return !1; - const x = this.resolve(e, a); - return (x == null ? void 0 : x.res) !== void 0; + exists(x, t = { interpolation: {} }) { + var a = s; + const e = { ...t }; + if (x == null) return !1; + const r = this[a(1890)](x, e); + return (r == null ? void 0 : r.res) !== void 0; } - [n(1883)](e, t) { - const a = n; - let x = t.nsSeparator !== void 0 ? t[a(1683)] : this[a(2687)].nsSeparator; - x === void 0 && (x = ":"); - const r = t[a(1700)] !== void 0 ? t.keySeparator : this[a(2687)][a(1700)]; - let s = t.ns || this[a(2687)][a(2272)] || []; - const o = x && e[a(2170)](x) > -1, c = !this[a(2687)].userDefinedKeySeparator && !t[a(1700)] && !this.options[a(1893)] && !t[a(1683)] && !ac(e, x, r); + extractFromKey(x, t) { + var a = s; + let e = t.nsSeparator !== void 0 ? t[a(1714)] : this[a(778)].nsSeparator; + e === void 0 && (e = ":"); + const r = t[a(1981)] !== void 0 ? t[a(1981)] : this[a(778)][a(1981)]; + let n = t.ns || this[a(778)].defaultNS || []; + const o = e && x[a(831)](e) > -1, c = !this.options[a(1718)] && !t.keySeparator && !this[a(778)][a(1677)] && !t[a(1714)] && !ao(x, e, r); if (o && !c) { - const d = e[a(799)](this[a(2059)][a(2543)]); - if (d && d[a(1200)] > 0) return { key: e, namespaces: g0(s) ? [s] : s }; - const u = e.split(x); - (x !== r || x === r && this[a(2687)].ns[a(2170)](u[0]) > -1) && (s = u[a(2621)]()), e = u.join(r); + const u = x[a(2069)](this[a(556)].nestingRegexp); + if (u && u.length > 0) return { key: x, namespaces: m0(n) ? [n] : n }; + const d = x[a(2183)](e); + (e !== r || e === r && this.options.ns.indexOf(d[0]) > -1) && (n = d[a(761)]()), x = d.join(r); } - return { key: e, namespaces: g0(s) ? [s] : s }; + return { key: x, namespaces: m0(n) ? [n] : n }; } - [n(907)](e, t, a) { - const x = n; - let r = typeof t === x(2437) ? { ...t } : t; - if (typeof r !== x(2437) && this[x(2687)][x(2422)] && (r = this[x(2687)][x(2422)](arguments)), typeof options === x(2437) && (r = { ...r }), r || (r = {}), e == null) return ""; - Array.isArray(e) || (e = [String(e)]); - const s = r.returnDetails !== void 0 ? r.returnDetails : this[x(2687)][x(2461)], o = r.keySeparator !== void 0 ? r[x(1700)] : this.options[x(1700)], { key: c, namespaces: d } = this[x(1883)](e[e.length - 1], r), u = d[d[x(1200)] - 1]; - let f = r[x(1683)] !== void 0 ? r[x(1683)] : this[x(2687)][x(1683)]; + [s(2272)](x, t, a) { + var e = s; + let r = typeof t === e(1923) ? { ...t } : t; + if (typeof r !== e(1923) && this[e(778)][e(2127)] && (r = this.options.overloadTranslationOptionHandler(arguments)), typeof options === e(1923) && (r = { ...r }), r || (r = {}), x == null) return ""; + Array[e(1435)](x) || (x = [String(x)]); + const n = r[e(1151)] !== void 0 ? r.returnDetails : this[e(778)][e(1151)], o = r.keySeparator !== void 0 ? r[e(1981)] : this.options[e(1981)], { key: c, namespaces: u } = this[e(1203)](x[x.length - 1], r), d = u[u[e(2021)] - 1]; + let f = r[e(1714)] !== void 0 ? r[e(1714)] : this[e(778)][e(1714)]; f === void 0 && (f = ":"); - const l = r[x(1294)] || this[x(711)], g = r.appendNamespaceToCIMode || this[x(2687)][x(1707)]; - if ((l == null ? void 0 : l[x(1466)]()) === x(2297)) - return g ? s ? { res: "" + u + f + c, usedKey: c, exactUsedKey: c, usedLng: l, usedNS: u, usedParams: this[x(884)](r) } : "" + u + f + c : s ? { res: c, usedKey: c, exactUsedKey: c, usedLng: l, usedNS: u, usedParams: this[x(884)](r) } : c; - const h = this[x(1987)](e, r); - let m = h == null ? void 0 : h[x(2619)]; - const y = (h == null ? void 0 : h.usedKey) || c, w = (h == null ? void 0 : h.exactUsedKey) || c, S = [x(1799), "[object Function]", "[object RegExp]"], R = r[x(1422)] !== void 0 ? r[x(1422)] : this.options.joinArrays, A = !this[x(1255)] || this[x(1255)].handleAsObject, C = r[x(569)] !== void 0 && !g0(r[x(569)]), P = Ne[x(2596)](r), E = C ? this[x(1535)][x(1523)](l, r[x(569)], r) : "", D = r[x(2644)] && C ? this[x(1535)].getSuffix(l, r.count, { ordinal: !1 }) : "", j = C && !r[x(2644)] && r[x(569)] === 0, M = j && r["defaultValue" + this[x(2687)].pluralSeparator + x(1472)] || r[x(2303) + E] || r[x(2303) + D] || r[x(2303)]; + const l = r.lng || this.language, v = r[e(1721)] || this[e(778)].appendNamespaceToCIMode; + if ((l == null ? void 0 : l[e(1991)]()) === e(2362)) + return v ? n ? { res: "" + d + f + c, usedKey: c, exactUsedKey: c, usedLng: l, usedNS: d, usedParams: this.getUsedParamsDetails(r) } : "" + d + f + c : n ? { res: c, usedKey: c, exactUsedKey: c, usedLng: l, usedNS: d, usedParams: this[e(1728)](r) } : c; + const h = this[e(1890)](x, r); + let m = h == null ? void 0 : h[e(1376)]; + const y = (h == null ? void 0 : h[e(1302)]) || c, w = (h == null ? void 0 : h[e(2068)]) || c, E = [e(538), "[object Function]", e(1798)], O = r[e(2513)] !== void 0 ? r[e(2513)] : this[e(778)][e(2513)], T = !this[e(1482)] || this[e(1482)][e(1766)], R = r[e(415)] !== void 0 && !m0(r[e(415)]), k = Cx[e(287)](r), N = R ? this[e(1097)][e(794)](l, r[e(415)], r) : "", j = r[e(1625)] && R ? this.pluralResolver[e(794)](l, r[e(415)], { ordinal: !1 }) : "", D = R && !r[e(1625)] && r[e(415)] === 0, M = D && r["defaultValue" + this.options.pluralSeparator + e(284)] || r[e(704) + N] || r[e(704) + j] || r.defaultValue; let F = m; - A && !m && P && (F = M); - const N = qa(F), U = Object[x(1166)][x(879)][x(1364)](F); - if (A && F && N && S[x(2170)](U) < 0 && !(g0(R) && Array.isArray(F))) { - if (!r[x(1671)] && !this[x(2687)][x(1671)]) { - !this[x(2687)][x(2101)] && this[x(1077)][x(1808)]("accessing an object - but returnObjects options is not enabled!"); - const $ = this[x(2687)].returnedObjectHandler ? this[x(2687)][x(2101)](y, F, { ...r, ns: d }) : x(1521) + c + " (" + this[x(711)] + x(898); - return s ? (h[x(2619)] = $, h[x(2317)] = this[x(884)](r), h) : $; + T && !m && k && (F = M); + const C = Hr(F), H = Object[e(2180)][e(1892)][e(756)](F); + if (T && F && C && E[e(831)](H) < 0 && !(m0(O) && Array[e(1435)](F))) { + if (!r[e(2050)] && !this[e(778)][e(2050)]) { + !this[e(778)][e(1298)] && this[e(1238)][e(1797)]("accessing an object - but returnObjects options is not enabled!"); + const U = this[e(778)][e(1298)] ? this[e(778)][e(1298)](y, F, { ...r, ns: u }) : e(1123) + c + " (" + this[e(1867)] + e(2403); + return n ? (h[e(1376)] = U, h.usedParams = this[e(1728)](r), h) : U; } if (o) { - const $ = Array[x(2344)](F), V = $ ? [] : {}, J = $ ? w : y; - for (const s0 in F) - if (Object[x(1166)][x(2452)][x(2518)](F, s0)) { - const o0 = "" + J + o + s0; - P && !m ? V[s0] = this[x(907)](o0, { ...r, defaultValue: qa(M) ? M[s0] : void 0, joinArrays: !1, ns: d }) : V[s0] = this[x(907)](o0, { ...r, joinArrays: !1, ns: d }), V[s0] === o0 && (V[s0] = F[s0]); + const U = Array.isArray(F), V = U ? [] : {}, J = U ? w : y; + for (const c0 in F) + if (Object[e(2180)][e(781)][e(1547)](F, c0)) { + const u0 = "" + J + o + c0; + k && !m ? V[c0] = this[e(2272)](u0, { ...r, defaultValue: Hr(M) ? M[c0] : void 0, joinArrays: !1, ns: u }) : V[c0] = this[e(2272)](u0, { ...r, joinArrays: !1, ns: u }), V[c0] === u0 && (V[c0] = F[c0]); } m = V; } - } else if (A && g0(R) && Array[x(2344)](m)) - m = m[x(2573)](R), m && (m = this.extendTranslation(m, e, r, a)); + } else if (T && m0(O) && Array[e(1435)](m)) + m = m[e(2515)](O), m && (m = this[e(309)](m, x, r, a)); else { - let $ = !1, V = !1; - !this[x(2666)](m) && P && ($ = !0, m = M), !this.isValidLookup(m) && (V = !0, m = c); - const J = r[x(669)] || this[x(2687)][x(669)], s0 = J && V ? void 0 : m, o0 = P && M !== m && this[x(2687)][x(1318)]; - if (V || $ || o0) { - if (this[x(1077)][x(816)](o0 ? "updateKey" : x(1416), l, u, c, o0 ? M : m), o) { - const w0 = this[x(1987)](c, { ...r, keySeparator: !1 }); - w0 && w0[x(2619)] && this[x(1077)][x(1808)]("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format."); + let U = !1, V = !1; + !this.isValidLookup(m) && k && (U = !0, m = M), !this[e(799)](m) && (V = !0, m = c); + const J = r.missingKeyNoValueFallbackToKey || this[e(778)].missingKeyNoValueFallbackToKey, c0 = J && V ? void 0 : m, u0 = k && M !== m && this[e(778)][e(728)]; + if (V || U || u0) { + if (this[e(1238)][e(1133)](e(u0 ? 1101 : 2274), l, d, c, u0 ? M : m), o) { + const S0 = this[e(1890)](c, { ...r, keySeparator: !1 }); + S0 && S0[e(1376)] && this[e(1238)][e(1797)](e(2381)); } - let u0 = []; - const a0 = this[x(1539)][x(2650)](this.options[x(2306)], r[x(1294)] || this[x(711)]); - if (this.options[x(789)] === x(2580) && a0 && a0[0]) for (let w0 = 0; w0 < a0[x(1200)]; w0++) - u0[x(818)](a0[w0]); - else this.options[x(789)] === x(1135) ? u0 = this.languageUtils[x(2658)](r[x(1294)] || this[x(711)]) : u0[x(818)](r[x(1294)] || this[x(711)]); - const f0 = (w0, m0, D0) => { - var T; - const E0 = x, J0 = P && D0 !== m ? D0 : s0; - this[E0(2687)][E0(1829)] ? this.options[E0(1829)](w0, u, m0, J0, o0, r) : (T = this[E0(1058)]) != null && T[E0(552)] && this[E0(1058)][E0(552)](w0, u, m0, J0, o0, r), this[E0(1598)]("missingKey", w0, u, m0, m); + let l0 = []; + const i0 = this[e(966)][e(2412)](this[e(778)][e(2177)], r[e(2028)] || this[e(1867)]); + if (this[e(778)].saveMissingTo === e(1617) && i0 && i0[0]) for (let S0 = 0; S0 < i0[e(2021)]; S0++) + l0[e(2380)](i0[S0]); + else this.options.saveMissingTo === e(1897) ? l0 = this[e(966)][e(2101)](r[e(2028)] || this[e(1867)]) : l0[e(2380)](r[e(2028)] || this[e(1867)]); + const f0 = (S0, y0, M0) => { + var A; + var P0 = e; + const Q0 = k && M0 !== m ? M0 : c0; + this[P0(778)].missingKeyHandler ? this[P0(778)][P0(320)](S0, d, y0, Q0, u0, r) : (A = this[P0(1459)]) != null && A[P0(574)] && this.backendConnector[P0(574)](S0, d, y0, Q0, u0, r), this[P0(2206)](P0(2274), S0, d, y0, m); }; - this[x(2687)][x(552)] && (this.options[x(2726)] && C ? u0[x(1238)]((w0) => { - const m0 = x, D0 = this[m0(1535)][m0(1353)](w0, r); - j && r[m0(2303) + this[m0(2687)][m0(1096)] + m0(1472)] && D0[m0(2170)](this[m0(2687)][m0(1096)] + m0(1472)) < 0 && D0[m0(818)](this[m0(2687)][m0(1096)] + m0(1472)), D0[m0(1238)]((E0) => { - const J0 = m0; - f0([w0], c + E0, r[J0(2303) + E0] || M); + this.options[e(574)] && (this[e(778)][e(763)] && R ? l0[e(1222)]((S0) => { + var y0 = e; + const M0 = this[y0(1097)].getSuffixes(S0, r); + D && r[y0(704) + this[y0(778)][y0(933)] + y0(284)] && M0.indexOf(this[y0(778)].pluralSeparator + y0(284)) < 0 && M0[y0(2380)](this[y0(778)][y0(933)] + "zero"), M0[y0(1222)]((P0) => { + var Q0 = y0; + f0([S0], c + P0, r[Q0(704) + P0] || M); }); - }) : f0(u0, c, M)); + }) : f0(l0, c, M)); } - m = this[x(494)](m, e, r, h, a), V && m === c && this[x(2687)][x(1146)] && (m = "" + u + f + c), (V || $) && this[x(2687)][x(985)] && (m = this[x(2687)][x(985)](this[x(2687)][x(1146)] ? "" + u + f + c : c, $ ? m : void 0, r)); + m = this.extendTranslation(m, x, r, h, a), V && m === c && this[e(778)][e(1301)] && (m = "" + d + f + c), (V || U) && this[e(778)][e(2333)] && (m = this.options[e(2333)](this[e(778)][e(1301)] ? "" + d + f + c : c, U ? m : void 0, r)); } - return s ? (h[x(2619)] = m, h.usedParams = this[x(884)](r), h) : m; + return n ? (h[e(1376)] = m, h[e(1374)] = this[e(1728)](r), h) : m; } - [n(494)](e, t, a, x, r) { - var d, u; - const s = n; - if ((d = this[s(1255)]) != null && d[s(2156)]) e = this.i18nFormat.parse(e, { ...this[s(2687)][s(2435)].defaultVariables, ...a }, a.lng || this[s(711)] || x[s(1804)], x[s(653)], x[s(956)], { resolved: x }); - else if (!a[s(1202)]) { - a[s(2435)] && this[s(2059)][s(1717)]({ ...a, interpolation: { ...this[s(2687)][s(2435)], ...a[s(2435)] } }); - const f = g0(e) && (((u = a == null ? void 0 : a[s(2435)]) == null ? void 0 : u[s(2466)]) !== void 0 ? a[s(2435)][s(2466)] : this[s(2687)][s(2435)].skipOnVariables); + [s(309)](x, t, a, e, r) { + var u, d; + var n = s; + if ((u = this[n(1482)]) != null && u[n(1325)]) x = this[n(1482)][n(1325)](x, { ...this[n(778)][n(2025)][n(2032)], ...a }, a[n(2028)] || this[n(1867)] || e[n(536)], e.usedNS, e.usedKey, { resolved: e }); + else if (!a[n(625)]) { + a[n(2025)] && this[n(556)].init({ ...a, interpolation: { ...this.options[n(2025)], ...a[n(2025)] } }); + const f = m0(x) && (((d = a == null ? void 0 : a[n(2025)]) == null ? void 0 : d[n(1757)]) !== void 0 ? a.interpolation.skipOnVariables : this[n(778)][n(2025)].skipOnVariables); let l; if (f) { - const h = e[s(799)](this[s(2059)][s(2543)]); - l = h && h[s(1200)]; + const h = x[n(2069)](this[n(556)][n(2636)]); + l = h && h[n(2021)]; } - let g = a[s(2188)] && !g0(a.replace) ? a[s(2188)] : a; - if (this[s(2687)][s(2435)][s(1986)] && (g = { ...this[s(2687)][s(2435)][s(1986)], ...g }), e = this[s(2059)][s(499)](e, g, a[s(1294)] || this[s(711)] || x.usedLng, a), f) { - const h = e[s(799)](this[s(2059)].nestingRegexp), m = h && h[s(1200)]; - l < m && (a[s(2467)] = !1); + let v = a[n(2112)] && !m0(a[n(2112)]) ? a.replace : a; + if (this[n(778)][n(2025)].defaultVariables && (v = { ...this.options[n(2025)].defaultVariables, ...v }), x = this[n(556)][n(2387)](x, v, a[n(2028)] || this[n(1867)] || e[n(536)], a), f) { + const h = x.match(this.interpolator[n(2636)]), m = h && h.length; + l < m && (a[n(339)] = !1); } - !a[s(1294)] && x && x[s(2619)] && (a.lng = this.language || x.usedLng), a.nest !== !1 && (e = this[s(2059)].nest(e, (...h) => { - const m = s; - return (r == null ? void 0 : r[0]) === h[0] && !a[m(1519)] ? (this[m(1077)][m(1808)]("It seems you are nesting recursively key: " + h[0] + " in key: " + t[0]), null) : this.translate(...h, t); - }, a)), a[s(2435)] && this[s(2059)][s(717)](); + !a.lng && e && e[n(1376)] && (a[n(2028)] = this[n(1867)] || e[n(536)]), a[n(339)] !== !1 && (x = this[n(556)].nest(x, (...h) => { + var m = n; + return (r == null ? void 0 : r[0]) === h[0] && !a[m(825)] ? (this[m(1238)][m(1797)]("It seems you are nesting recursively key: " + h[0] + " in key: " + t[0]), null) : this[m(2272)](...h, t); + }, a)), a[n(2025)] && this[n(556)][n(679)](); } - const o = a[s(1477)] || this.options[s(1477)], c = g0(o) ? [o] : o; - return e != null && (c != null && c[s(1200)]) && a[s(1495)] !== !1 && (e = ls[s(2048)](c, e, t, this[s(2687)] && this[s(2687)][s(2307)] ? { i18nResolved: { ...x, usedParams: this[s(884)](a) }, ...a } : a, this)), e; + const o = a[n(2244)] || this[n(778)][n(2244)], c = m0(o) ? [o] : o; + return x != null && (c != null && c.length) && a[n(605)] !== !1 && (x = Us[n(1035)](c, x, t, this[n(778)] && this[n(778)][n(2560)] ? { i18nResolved: { ...e, usedParams: this[n(1728)](a) }, ...a } : a, this)), x; } - [n(1987)](e, t = {}) { - const a = n; - let x, r, s, o, c; - return g0(e) && (e = [e]), e[a(1238)]((d) => { - const u = a; - if (this[u(2666)](x)) return; - const f = this[u(1883)](d, t), l = f[u(1232)]; - r = l; - let g = f.namespaces; - this.options.fallbackNS && (g = g[u(2699)](this[u(2687)][u(615)])); - const h = t[u(569)] !== void 0 && !g0(t[u(569)]), m = h && !t[u(2644)] && t[u(569)] === 0, y = t[u(1519)] !== void 0 && (g0(t[u(1519)]) || typeof t.context == "number") && t.context !== "", w = t[u(1369)] ? t[u(1369)] : this.languageUtils[u(2658)](t[u(1294)] || this.language, t[u(2306)]); - g[u(1238)]((S) => { - var A, C; - const R = u; - this.isValidLookup(x) || (c = S, !Na[w[0] + "-" + S] && ((A = this[R(2305)]) != null && A[R(870)]) && !((C = this.utils) != null && C[R(870)](c)) && (Na[w[0] + "-" + S] = !0, this[R(1077)][R(1808)](R(1161) + r + R(1866) + w[R(2573)](", ") + R(2652) + c + R(2116), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), w[R(1238)]((P) => { - var M; - const E = R; - if (this[E(2666)](x)) return; - o = P; - const D = [l]; - if ((M = this[E(1255)]) != null && M[E(2395)]) this[E(1255)][E(2395)](D, l, P, S, t); + [s(1890)](x, t = {}) { + let a, e, r, n, o; + return m0(x) && (x = [x]), x.forEach((c) => { + var u = K; + if (this[u(799)](a)) return; + const d = this[u(1203)](c, t), f = d[u(1810)]; + e = f; + let l = d.namespaces; + this[u(778)].fallbackNS && (l = l[u(1355)](this.options[u(281)])); + const v = t[u(415)] !== void 0 && !m0(t[u(415)]), h = v && !t[u(1625)] && t.count === 0, m = t[u(825)] !== void 0 && (m0(t.context) || typeof t[u(825)] === u(960)) && t[u(825)] !== "", y = t[u(379)] ? t[u(379)] : this[u(966)][u(2101)](t[u(2028)] || this[u(1867)], t[u(2177)]); + l.forEach((w) => { + var O, T; + var E = u; + this.isValidLookup(a) || (o = w, !zr[y[0] + "-" + w] && ((O = this[E(846)]) != null && O[E(1956)]) && !((T = this[E(846)]) != null && T[E(1956)](o)) && (zr[y[0] + "-" + w] = !0, this.logger[E(1797)]('key "' + e + E(532) + y[E(2515)](", ") + E(1513) + o + E(1023), E(1990))), y.forEach((R) => { + var D; + var k = E; + if (this[k(799)](a)) return; + n = R; + const N = [f]; + if ((D = this.i18nFormat) != null && D[k(786)]) this[k(1482)][k(786)](N, f, R, w, t); else { - let F; - h && (F = this.pluralResolver[E(1523)](P, t[E(569)], t)); - const N = this.options[E(1096)] + E(1472), U = this[E(2687)][E(1096)] + E(2644) + this[E(2687)].pluralSeparator; - if (h && (D[E(818)](l + F), t[E(2644)] && F[E(2170)](U) === 0 && D[E(818)](l + F[E(2188)](U, this[E(2687)][E(1096)])), m && D[E(818)](l + N)), y) { - const $ = "" + l + this[E(2687)][E(810)] + t[E(1519)]; - D[E(818)]($), h && (D.push($ + F), t[E(2644)] && F.indexOf(U) === 0 && D[E(818)]($ + F.replace(U, this[E(2687)][E(1096)])), m && D.push($ + N)); + let M; + v && (M = this.pluralResolver[k(794)](R, t[k(415)], t)); + const F = this[k(778)].pluralSeparator + "zero", C = this[k(778)].pluralSeparator + "ordinal" + this[k(778)].pluralSeparator; + if (v && (N.push(f + M), t[k(1625)] && M.indexOf(C) === 0 && N[k(2380)](f + M[k(2112)](C, this.options[k(933)])), h && N[k(2380)](f + F)), m) { + const H = "" + f + this[k(778)].contextSeparator + t[k(825)]; + N[k(2380)](H), v && (N[k(2380)](H + M), t[k(1625)] && M[k(831)](C) === 0 && N[k(2380)](H + M.replace(C, this[k(778)][k(933)])), h && N.push(H + F)); } } let j; - for (; j = D[E(2087)](); ) - !this[E(2666)](x) && (s = j, x = this.getResource(P, S, j, t)); + for (; j = N[k(932)](); ) + !this[k(799)](a) && (r = j, a = this[k(462)](R, w, j, t)); })); }); - }), { res: x, usedKey: r, exactUsedKey: s, usedLng: o, usedNS: c }; + }), { res: a, usedKey: e, exactUsedKey: r, usedLng: n, usedNS: o }; } - [n(2666)](e) { - return e !== void 0 && !(!this[n(2687)].returnNull && e === null) && !(!this.options.returnEmptyString && e === ""); + [s(799)](x) { + var t = s; + return x !== void 0 && !(!this[t(778)][t(1116)] && x === null) && !(!this[t(778)][t(2092)] && x === ""); } - [n(2505)](e, t, a, x = {}) { - var s; - const r = n; - return (s = this.i18nFormat) != null && s[r(2505)] ? this[r(1255)][r(2505)](e, t, a, x) : this[r(1686)][r(2505)](e, t, a, x); + [s(462)](x, t, a, e = {}) { + var n; + var r = s; + return (n = this[r(1482)]) != null && n[r(462)] ? this[r(1482)][r(462)](x, t, a, e) : this[r(1063)][r(462)](x, t, a, e); } - [n(884)](e = {}) { - const t = n, a = ["defaultValue", t(2644), t(1519), "replace", t(1294), "lngs", "fallbackLng", "ns", t(1700), "nsSeparator", t(1671), t(2461), t(1422), t(1477), t(2435)], x = e.replace && !g0(e.replace); - let r = x ? e[t(2188)] : e; - if (x && typeof e[t(569)] !== t(2634) && (r[t(569)] = e.count), this[t(2687)].interpolation.defaultVariables && (r = { ...this[t(2687)][t(2435)][t(1986)], ...r }), !x) { + [s(1728)](x = {}) { + var t = s; + const a = [t(704), "ordinal", t(825), t(2112), t(2028), t(379), t(2177), "ns", t(1981), t(1714), "returnObjects", t(1151), "joinArrays", t(2244), "interpolation"], e = x[t(2112)] && !m0(x[t(2112)]); + let r = e ? x[t(2112)] : x; + if (e && typeof x[t(415)] !== t(1887) && (r[t(415)] = x.count), this[t(778)][t(2025)][t(2032)] && (r = { ...this.options[t(2025)].defaultVariables, ...r }), !e) { r = { ...r }; - for (const s of a) - delete r[s]; + for (const n of a) + delete r[n]; } return r; } - static hasDefaultValue(e) { - const t = n, a = t(2303); - for (const x in e) - if (Object[t(1166)][t(2452)][t(2518)](e, x) && a === x.substring(0, a[t(1200)]) && e[x] !== void 0) return !0; + static [s(287)](x) { + var t = s; + const a = t(704); + for (const e in x) + if (Object.prototype[t(781)][t(1547)](x, e) && a === e[t(531)](0, a[t(2021)]) && x[e] !== void 0) return !0; return !1; } } -class Oa { - constructor(e) { - const t = n; - this[t(2687)] = e, this[t(1062)] = this[t(2687)].supportedLngs || !1, this[t(1077)] = lx[t(1108)]("languageUtils"); +class Ur { + constructor(x) { + var t = s; + this[t(778)] = x, this[t(1569)] = this.options.supportedLngs || !1, this[t(1238)] = he[t(2196)](t(966)); } - [n(2326)](e) { - const t = n; - if (e = ae(e), !e || e[t(2170)]("-") < 0) return null; - const a = e[t(2248)]("-"); - return a.length === 2 || (a[t(2087)](), a[a.length - 1][t(1466)]() === "x") ? null : this[t(1376)](a[t(2573)]("-")); + getScriptPartFromCode(x) { + var t = s; + if (x = rx(x), !x || x[t(831)]("-") < 0) return null; + const a = x.split("-"); + return a[t(2021)] === 2 || (a[t(932)](), a[a[t(2021)] - 1][t(1991)]() === "x") ? null : this[t(925)](a[t(2515)]("-")); } - [n(882)](e) { - const t = n; - if (e = ae(e), !e || e[t(2170)]("-") < 0) return e; - const a = e[t(2248)]("-"); - return this[t(1376)](a[0]); + [s(2396)](x) { + var t = s; + if (x = rx(x), !x || x.indexOf("-") < 0) return x; + const a = x[t(2183)]("-"); + return this[t(925)](a[0]); } - formatLanguageCode(e) { - const t = n; - if (g0(e) && e[t(2170)]("-") > -1) { + [s(925)](x) { + var t = s; + if (m0(x) && x[t(831)]("-") > -1) { let a; try { - a = Intl[t(1181)](e)[0]; + a = Intl.getCanonicalLocales(x)[0]; } catch { } - return a && this.options[t(1265)] && (a = a[t(1466)]()), a || (this.options[t(1265)] ? e[t(1466)]() : e); + return a && this[t(778)].lowerCaseLng && (a = a.toLowerCase()), a || (this.options[t(352)] ? x[t(1991)]() : x); } - return this.options.cleanCode || this.options[t(1265)] ? e[t(1466)]() : e; + return this[t(778)][t(698)] || this[t(778)][t(352)] ? x.toLowerCase() : x; } - [n(1085)](e) { - const t = n; - return (this[t(2687)][t(657)] === t(1025) || this[t(2687)].nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this[t(1062)].length || this[t(1062)][t(2170)](e) > -1; + [s(1868)](x) { + var t = s; + return (this[t(778)][t(2617)] === "languageOnly" || this[t(778)][t(488)]) && (x = this[t(2396)](x)), !this.supportedLngs || !this.supportedLngs[t(2021)] || this.supportedLngs.indexOf(x) > -1; } - [n(875)](e) { - const t = n; - if (!e) return null; + [s(540)](x) { + var t = s; + if (!x) return null; let a; - return e[t(1238)]((x) => { - const r = t; + return x.forEach((e) => { + var r = K; if (a) return; - const s = this[r(1376)](x); - (!this.options[r(1062)] || this[r(1085)](s)) && (a = s); - }), !a && this[t(2687)][t(1062)] && e[t(1238)]((x) => { - const r = t; + const n = this[r(925)](e); + (!this[r(778)][r(1569)] || this[r(1868)](n)) && (a = n); + }), !a && this[t(778)][t(1569)] && x.forEach((e) => { + var r = t; if (a) return; - const s = this.getScriptPartFromCode(x); - if (this[r(1085)](s)) return a = s; - const o = this.getLanguagePartFromCode(x); - if (this[r(1085)](o)) return a = o; - a = this[r(2687)][r(1062)].find((c) => { - const d = r; + const n = this[r(2102)](e); + if (this[r(1868)](n)) return a = n; + const o = this[r(2396)](e); + if (this[r(1868)](o)) return a = o; + a = this[r(778)][r(1569)][r(1666)]((c) => { + var u = r; if (c === o) return c; - if (!(c[d(2170)]("-") < 0 && o.indexOf("-") < 0) && (c[d(2170)]("-") > 0 && o[d(2170)]("-") < 0 && c.substring(0, c[d(2170)]("-")) === o || c[d(2170)](o) === 0 && o[d(1200)] > 1)) + if (!(c[u(831)]("-") < 0 && o.indexOf("-") < 0) && (c.indexOf("-") > 0 && o[u(831)]("-") < 0 && c[u(531)](0, c[u(831)]("-")) === o || c[u(831)](o) === 0 && o[u(2021)] > 1)) return c; }); - }), a || (a = this.getFallbackCodes(this.options[t(2306)])[0]), a; + }), a || (a = this[t(2412)](this.options[t(2177)])[0]), a; } - [n(2650)](e, t) { - const a = n; - if (!e) return []; - if (typeof e === a(1342) && (e = e(t)), g0(e) && (e = [e]), Array.isArray(e)) return e; - if (!t) return e[a(1658)] || []; - let x = e[t]; - return x || (x = e[this[a(2326)](t)]), x || (x = e[this[a(1376)](t)]), x || (x = e[this[a(882)](t)]), x || (x = e.default), x || []; + [s(2412)](x, t) { + var a = s; + if (!x) return []; + if (typeof x === a(1853) && (x = x(t)), m0(x) && (x = [x]), Array[a(1435)](x)) return x; + if (!t) return x.default || []; + let e = x[t]; + return e || (e = x[this[a(2102)](t)]), e || (e = x[this[a(925)](t)]), e || (e = x[this.getLanguagePartFromCode(t)]), e || (e = x[a(2641)]), e || []; } - [n(2658)](e, t) { - const a = n, x = this[a(2650)]((t === !1 ? [] : t) || this.options[a(2306)] || [], e), r = [], s = (o) => { - const c = a; - o && (this[c(1085)](o) ? r.push(o) : this.logger.warn("rejecting language code not found in supportedLngs: " + o)); + toResolveHierarchy(x, t) { + var a = s; + const e = this[a(2412)]((t === !1 ? [] : t) || this.options.fallbackLng || [], x), r = [], n = (o) => { + var c = a; + o && (this[c(1868)](o) ? r[c(2380)](o) : this.logger[c(1797)](c(665) + o)); }; - return g0(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this[a(2687)][a(657)] !== a(1025) && s(this[a(1376)](e)), this.options[a(657)] !== a(1025) && this[a(2687)][a(657)] !== a(2649) && s(this[a(2326)](e)), this[a(2687)].load !== "currentOnly" && s(this[a(882)](e))) : g0(e) && s(this[a(1376)](e)), x[a(1238)]((o) => { - r[a(2170)](o) < 0 && s(this.formatLanguageCode(o)); + return m0(x) && (x[a(831)]("-") > -1 || x[a(831)]("_") > -1) ? (this.options.load !== a(399) && n(this.formatLanguageCode(x)), this[a(778)][a(2617)] !== "languageOnly" && this.options[a(2617)] !== a(887) && n(this[a(2102)](x)), this[a(778)][a(2617)] !== a(887) && n(this.getLanguagePartFromCode(x))) : m0(x) && n(this[a(925)](x)), e.forEach((o) => { + var c = a; + r[c(831)](o) < 0 && n(this.formatLanguageCode(o)); }), r; } } -const Aa = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }, Ta = { select: (i) => i === 1 ? n(1333) : "other", resolvedOptions: () => ({ pluralCategories: ["one", "other"] }) }; -class sc { - constructor(e, t = {}) { - const a = n; - this.languageUtils = e, this.options = t, this.logger = lx[a(1108)]("pluralResolver"), this[a(1075)] = {}; +const Vr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }, Wr = { select: (i) => s(i === 1 ? 1306 : 2479), resolvedOptions: () => ({ pluralCategories: [s(1306), s(2479)] }) }; +class no { + constructor(x, t = {}) { + var a = s; + this[a(966)] = x, this.options = t, this.logger = he[a(2196)](a(1097)), this[a(1020)] = {}; } - [n(2502)](e, t) { - this.rules[e] = t; + [s(965)](x, t) { + var a = s; + this[a(1643)][x] = t; } - [n(2142)]() { - this.pluralRulesCache = {}; + clearCache() { + var x = s; + this[x(1020)] = {}; } - getRule(e, t = {}) { - const a = n, x = ae(e === a(2064) ? "en" : e), r = t[a(2644)] ? "ordinal" : a(2199), s = JSON[a(2301)]({ cleanedCode: x, type: r }); - if (s in this[a(1075)]) return this[a(1075)][s]; + getRule(x, t = {}) { + var a = s; + const e = rx(x === a(1067) ? "en" : x), r = t[a(1625)] ? a(1625) : a(2208), n = JSON[a(990)]({ cleanedCode: e, type: r }); + if (n in this[a(1020)]) return this[a(1020)][n]; let o; try { - o = new Intl[a(1450)](x, { type: r }); + o = new Intl[a(2421)](e, { type: r }); } catch { - if (!Intl) return this.logger[a(2389)]("No Intl support, please use an Intl polyfill!"), Ta; - if (!e.match(/-|_/)) return Ta; - const d = this[a(1539)][a(882)](e); - o = this[a(1884)](d, t); + if (!Intl) return this[a(1238)].error(a(727)), Wr; + if (!x[a(2069)](/-|_/)) return Wr; + const u = this[a(966)].getLanguagePartFromCode(x); + o = this[a(321)](u, t); } - return this.pluralRulesCache[s] = o, o; + return this[a(1020)][n] = o, o; } - [n(1757)](e, t = {}) { - const a = n; - let x = this.getRule(e, t); - return x || (x = this.getRule("dev", t)), (x == null ? void 0 : x[a(2749)]()[a(556)][a(1200)]) > 1; + [s(2546)](x, t = {}) { + var a = s; + let e = this[a(321)](x, t); + return e || (e = this.getRule("dev", t)), (e == null ? void 0 : e[a(1134)]()[a(571)][a(2021)]) > 1; } - getPluralFormsOfKey(e, t, a = {}) { - const x = n; - return this[x(1353)](e, a)[x(2404)]((r) => "" + t + r); + getPluralFormsOfKey(x, t, a = {}) { + var e = s; + return this[e(895)](x, a)[e(632)]((r) => "" + t + r); } - [n(1353)](e, t = {}) { - const a = n; - let x = this[a(1884)](e, t); - return x || (x = this[a(1884)](a(2064), t)), x ? x.resolvedOptions()[a(556)][a(974)]((r, s) => Aa[r] - Aa[s]).map((r) => "" + this.options.prepend + (t[a(2644)] ? a(2644) + this.options[a(2062)] : "") + r) : []; + [s(895)](x, t = {}) { + var a = s; + let e = this.getRule(x, t); + return e || (e = this.getRule(a(1067), t)), e ? e[a(1134)]()[a(571)][a(759)]((r, n) => Vr[r] - Vr[n])[a(632)]((r) => "" + this.options.prepend + (t[a(1625)] ? a(1625) + this[a(778)][a(519)] : "") + r) : []; } - [n(1523)](e, t, a = {}) { - const x = n, r = this[x(1884)](e, a); - return r ? "" + this[x(2687)][x(2062)] + (a.ordinal ? x(2644) + this[x(2687)].prepend : "") + r.select(t) : (this[x(1077)][x(1808)](x(1402) + e), this[x(1523)](x(2064), t, a)); + [s(794)](x, t, a = {}) { + var e = s; + const r = this[e(321)](x, a); + return r ? "" + this[e(778)][e(519)] + (a[e(1625)] ? "ordinal" + this[e(778)][e(519)] : "") + r[e(330)](t) : (this[e(1238)].warn(e(2373) + x), this[e(794)]("dev", t, a)); } } -const Da = (i, e, t, a = ".", x = !0) => { - let r = X2(i, e, t); - return !r && x && g0(t) && (r = Kt(i, t, a), r === void 0 && (r = Kt(e, t, a))), r; -}, Nt = (i) => i[n(2188)](/\$/g, n(795)); -class ic { - constructor(e = {}) { +const Zr = (i, x, t, a = ".", e = !0) => { + let r = Yi(i, x, t); + return !r && e && m0(t) && (r = Kt(i, t, a), r === void 0 && (r = Kt(x, t, a))), r; +}, Vx = (i) => i[s(2112)](/\$/g, s(1211)); +class io { + constructor(x = {}) { var a; - const t = n; - this[t(1077)] = lx[t(1108)]("interpolator"), this.options = e, this[t(822)] = ((a = e == null ? void 0 : e[t(2435)]) == null ? void 0 : a.format) || ((x) => x), this[t(1717)](e); + var t = s; + this[t(1238)] = he[t(2196)]("interpolator"), this[t(778)] = x, this[t(2093)] = ((a = x == null ? void 0 : x[t(2025)]) == null ? void 0 : a[t(2093)]) || ((e) => e), this[t(1448)](x); } - [n(1717)](e = {}) { - const t = n; - e[t(2435)] || (e[t(2435)] = { escapeValue: !0 }); - const { escape: a, escapeValue: x, useRawValueToEscape: r, prefix: s, prefixEscaped: o, suffix: c, suffixEscaped: d, formatSeparator: u, unescapeSuffix: f, unescapePrefix: l, nestingPrefix: g, nestingPrefixEscaped: h, nestingSuffix: m, nestingSuffixEscaped: y, nestingOptionsSeparator: w, maxReplaces: S, alwaysFormat: R } = e[t(2435)]; - this.escape = a !== void 0 ? a : xc, this[t(1247)] = x !== void 0 ? x : !0, this[t(1927)] = r !== void 0 ? r : !1, this[t(2212)] = s ? Hx(s) : o || "{{", this[t(1855)] = c ? Hx(c) : d || "}}", this[t(2268)] = u || ",", this.unescapePrefix = f ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = g ? Hx(g) : h || Hx(t(831)), this[t(1773)] = m ? Hx(m) : y || Hx(")"), this.nestingOptionsSeparator = w || ",", this[t(932)] = S || 1e3, this[t(607)] = R !== void 0 ? R : !1, this[t(1476)](); + [s(1448)](x = {}) { + var t = s; + x.interpolation || (x.interpolation = { escapeValue: !0 }); + const { escape: a, escapeValue: e, useRawValueToEscape: r, prefix: n, prefixEscaped: o, suffix: c, suffixEscaped: u, formatSeparator: d, unescapeSuffix: f, unescapePrefix: l, nestingPrefix: v, nestingPrefixEscaped: h, nestingSuffix: m, nestingSuffixEscaped: y, nestingOptionsSeparator: w, maxReplaces: E, alwaysFormat: O } = x[t(2025)]; + this.escape = a !== void 0 ? a : eo, this[t(720)] = e !== void 0 ? e : !0, this[t(400)] = r !== void 0 ? r : !1, this[t(967)] = n ? He(n) : o || "{{", this[t(2511)] = c ? He(c) : u || "}}", this[t(1245)] = d || ",", this.unescapePrefix = f ? "" : l || "-", this[t(508)] = this[t(506)] ? "" : f || "", this.nestingPrefix = v ? He(v) : h || He(t(1742)), this.nestingSuffix = m ? He(m) : y || He(")"), this.nestingOptionsSeparator = w || ",", this[t(2210)] = E || 1e3, this[t(1563)] = O !== void 0 ? O : !1, this[t(945)](); } - [n(717)]() { - const e = n; - this.options && this[e(1717)](this[e(2687)]); + reset() { + var x = s; + this[x(778)] && this[x(1448)](this[x(778)]); } - [n(1476)]() { - const e = n, t = (a, x) => { - const r = B; - return (a == null ? void 0 : a[r(1411)]) === x ? (a.lastIndex = 0, a) : new RegExp(x, "g"); + resetRegExp() { + var x = s; + const t = (a, e) => { + var r = K; + return (a == null ? void 0 : a[r(1399)]) === e ? (a.lastIndex = 0, a) : new RegExp(e, "g"); }; - this[e(1178)] = t(this[e(1178)], this[e(2212)] + e(1810) + this[e(1855)]), this[e(2445)] = t(this[e(2445)], "" + this[e(2212)] + this[e(2315)] + e(1810) + this[e(864)] + this[e(1855)]), this.nestingRegexp = t(this.nestingRegexp, this[e(2450)] + e(1810) + this.nestingSuffix); + this.regexp = t(this.regexp, this.prefix + x(1777) + this[x(2511)]), this[x(2249)] = t(this[x(2249)], "" + this[x(967)] + this[x(506)] + x(1777) + this.unescapeSuffix + this[x(2511)]), this[x(2636)] = t(this[x(2636)], this[x(652)] + x(1777) + this[x(2544)]); } - [n(499)](e, t, a, x) { + [s(2387)](x, t, a, e) { var h; - const r = n; - let s, o, c; - const d = this[r(2687)] && this[r(2687)].interpolation && this[r(2687)].interpolation[r(1986)] || {}, u = (m) => { - const y = r; - if (m.indexOf(this[y(2268)]) < 0) { - const A = Da(t, d, m, this[y(2687)][y(1700)], this.options[y(1367)]); - return this[y(607)] ? this.format(A, void 0, a, { ...x, ...t, interpolationkey: m }) : A; + var r = s; + let n, o, c; + const u = this[r(778)] && this[r(778)][r(2025)] && this[r(778)][r(2025)][r(2032)] || {}, d = (m) => { + var y = r; + if (m[y(831)](this[y(1245)]) < 0) { + const T = Zr(t, u, m, this[y(778)][y(1981)], this[y(778)][y(1296)]); + return this[y(1563)] ? this[y(2093)](T, void 0, a, { ...e, ...t, interpolationkey: m }) : T; } - const w = m[y(2248)](this.formatSeparator), S = w[y(2621)]()[y(2754)](), R = w[y(2573)](this[y(2268)]).trim(); - return this[y(822)](Da(t, d, S, this[y(2687)][y(1700)], this[y(2687)][y(1367)]), R, a, { ...x, ...t, interpolationkey: S }); + const w = m.split(this.formatSeparator), E = w.shift()[y(902)](), O = w.join(this[y(1245)]).trim(); + return this.format(Zr(t, u, E, this.options[y(1981)], this[y(778)][y(1296)]), O, a, { ...e, ...t, interpolationkey: E }); }; - this[r(1476)](); - const f = (x == null ? void 0 : x[r(943)]) || this[r(2687)].missingInterpolationHandler, l = ((h = x == null ? void 0 : x.interpolation) == null ? void 0 : h[r(2466)]) !== void 0 ? x[r(2435)][r(2466)] : this[r(2687)][r(2435)][r(2466)]; - return [{ regex: this[r(2445)], safeValue: (m) => Nt(m) }, { regex: this[r(1178)], safeValue: (m) => this[r(1247)] ? Nt(this.escape(m)) : Nt(m) }][r(1238)]((m) => { - const y = r; - for (c = 0; s = m[y(1131)][y(2548)](e); ) { - const w = s[1].trim(); - if (o = u(w), o === void 0) - if (typeof f === y(1342)) { - const R = f(e, s, x); - o = g0(R) ? R : ""; - } else if (x && Object.prototype[y(2452)].call(x, w)) o = ""; + this[r(945)](); + const f = (e == null ? void 0 : e.missingInterpolationHandler) || this[r(778)][r(1365)], l = ((h = e == null ? void 0 : e.interpolation) == null ? void 0 : h[r(1757)]) !== void 0 ? e.interpolation[r(1757)] : this[r(778)].interpolation[r(1757)]; + return [{ regex: this[r(2249)], safeValue: (m) => Vx(m) }, { regex: this[r(2316)], safeValue: (m) => this[r(720)] ? Vx(this[r(2041)](m)) : Vx(m) }][r(1222)]((m) => { + var y = r; + for (c = 0; n = m[y(994)][y(918)](x); ) { + const w = n[1][y(902)](); + if (o = d(w), o === void 0) + if (typeof f === y(1853)) { + const O = f(x, n, e); + o = m0(O) ? O : ""; + } else if (e && Object.prototype[y(781)][y(1547)](e, w)) o = ""; else if (l) { - o = s[0]; + o = n[0]; continue; - } else this.logger[y(1808)](y(574) + w + y(1242) + e), o = ""; - else !g0(o) && !this[y(1927)] && (o = Ea(o)); - const S = m[y(2512)](o); - if (e = e[y(2188)](s[0], S), l ? (m[y(1131)].lastIndex += o[y(1200)], m[y(1131)][y(654)] -= s[0].length) : m[y(1131)][y(654)] = 0, c++, c >= this[y(932)]) break; + } else this.logger.warn(y(2382) + w + y(765) + x), o = ""; + else !m0(o) && !this[y(400)] && (o = Dr(o)); + const E = m.safeValue(o); + if (x = x[y(2112)](n[0], E), l ? (m[y(994)].lastIndex += o[y(2021)], m[y(994)].lastIndex -= n[0].length) : m[y(994)][y(805)] = 0, c++, c >= this[y(2210)]) break; } - }), e; + }), x; } - [n(2467)](e, t, a = {}) { - const x = n; - let r, s, o; - const c = (d, u) => { - const f = B, l = this.nestingOptionsSeparator; - if (d[f(2170)](l) < 0) return d; - const g = d.split(new RegExp(l + f(809))); - let h = "{" + g[1]; - d = g[0], h = this[f(499)](h, o); - const m = h[f(799)](/'/g), y = h[f(799)](/"/g); - (((m == null ? void 0 : m[f(1200)]) ?? 0) % 2 === 0 && !y || y[f(1200)] % 2 !== 0) && (h = h[f(2188)](/'/g, '"')); + [s(339)](x, t, a = {}) { + var e = s; + let r, n, o; + const c = (u, d) => { + var f = K; + const l = this[f(2554)]; + if (u[f(831)](l) < 0) return u; + const v = u[f(2183)](new RegExp(l + f(2385))); + let h = "{" + v[1]; + u = v[0], h = this.interpolate(h, o); + const m = h.match(/'/g), y = h[f(2069)](/"/g); + (((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !y || y[f(2021)] % 2 !== 0) && (h = h[f(2112)](/'/g, '"')); try { - o = JSON[f(2156)](h), u && (o = { ...u, ...o }); + o = JSON.parse(h), d && (o = { ...d, ...o }); } catch (w) { - return this.logger.warn(f(2250) + d, w), "" + d + l + h; + return this[f(1238)][f(1797)](f(2532) + u, w), "" + u + l + h; } - return o[f(2303)] && o[f(2303)].indexOf(this[f(2212)]) > -1 && delete o[f(2303)], d; + return o[f(704)] && o.defaultValue[f(831)](this[f(967)]) > -1 && delete o[f(704)], u; }; - for (; r = this[x(2543)][x(2548)](e); ) { - let d = []; - o = { ...a }, o = o[x(2188)] && !g0(o[x(2188)]) ? o[x(2188)] : o, o[x(1495)] = !1, delete o[x(2303)]; - let u = !1; - if (r[0][x(2170)](this[x(2268)]) !== -1 && !/{.*}/[x(1313)](r[1])) { - const f = r[1][x(2248)](this[x(2268)])[x(2404)]((l) => l.trim()); - r[1] = f[x(2621)](), d = f, u = !0; + for (; r = this[e(2636)][e(918)](x); ) { + let u = []; + o = { ...a }, o = o[e(2112)] && !m0(o[e(2112)]) ? o[e(2112)] : o, o[e(605)] = !1, delete o[e(704)]; + let d = !1; + if (r[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/[e(856)](r[1])) { + const f = r[1][e(2183)](this[e(1245)]).map((l) => l[e(902)]()); + r[1] = f[e(761)](), u = f, d = !0; } - if (s = t(c[x(2518)](this, r[1][x(2754)](), o), o), s && r[0] === e && !g0(s)) return s; - g0(s) || (s = Ea(s)), !s && (this[x(1077)].warn(x(1296) + r[1] + x(1973) + e), s = ""), u && (s = d[x(2257)]((f, l) => this[x(822)](f, l, a[x(1294)], { ...a, interpolationkey: r[1][x(2754)]() }), s[x(2754)]())), e = e[x(2188)](r[0], s), this[x(1178)].lastIndex = 0; + if (n = t(c[e(1547)](this, r[1][e(902)](), o), o), n && r[0] === x && !m0(n)) return n; + m0(n) || (n = Dr(n)), !n && (this[e(1238)].warn(e(1142) + r[1] + e(398) + x), n = ""), d && (n = u[e(2483)]((f, l) => this[e(2093)](f, l, a.lng, { ...a, interpolationkey: r[1][e(902)]() }), n[e(902)]())), x = x.replace(r[0], n), this[e(2316)][e(805)] = 0; } - return e; + return x; } } -const oc = (i) => { - const e = n; - let t = i[e(1466)]()[e(2754)](); +const oo = (i) => { + var x = s; + let t = i[x(1991)]()[x(902)](); const a = {}; - if (i[e(2170)]("(") > -1) { - const x = i[e(2248)]("("); - t = x[0][e(1466)]()[e(2754)](); - const r = x[1].substring(0, x[1][e(1200)] - 1); - t === e(1391) && r.indexOf(":") < 0 ? a[e(1391)] || (a[e(1391)] = r.trim()) : t === e(2228) && r.indexOf(":") < 0 ? a.range || (a.range = r[e(2754)]()) : r.split(";")[e(1238)]((o) => { - const c = e; + if (i[x(831)]("(") > -1) { + const e = i[x(2183)]("("); + t = e[0].toLowerCase()[x(902)](); + const r = e[1][x(531)](0, e[1][x(2021)] - 1); + t === x(2189) && r.indexOf(":") < 0 ? a[x(2189)] || (a.currency = r[x(902)]()) : t === x(979) && r[x(831)](":") < 0 ? a[x(853)] || (a.range = r[x(902)]()) : r[x(2183)](";")[x(1222)]((o) => { + var c = x; if (o) { - const [d, ...u] = o[c(2248)](":"), f = u[c(2573)](":")[c(2754)]()[c(2188)](/^'+|'+$/g, ""), l = d[c(2754)](); - a[l] || (a[l] = f), f === c(1427) && (a[l] = !1), f === c(1271) && (a[l] = !0), isNaN(f) || (a[l] = parseInt(f, 10)); + const [u, ...d] = o[c(2183)](":"), f = d[c(2515)](":")[c(902)]()[c(2112)](/^'+|'+$/g, ""), l = u.trim(); + a[l] || (a[l] = f), f === c(1077) && (a[l] = !1), f === c(2271) && (a[l] = !0), isNaN(f) || (a[l] = parseInt(f, 10)); } }); } return { formatName: t, formatOptions: a }; -}, ja = (i) => { - const e = {}; - return (t, a, x) => { - const r = B; - let s = x; - x && x.interpolationkey && x[r(1144)] && x[r(1144)][x[r(2575)]] && x[x[r(2575)]] && (s = { ...s, [x.interpolationkey]: void 0 }); - const o = a + JSON[r(2301)](s); - let c = e[o]; - return !c && (c = i(ae(a), x), e[o] = c), c(t); +}, Br = (i) => { + const x = {}; + return (t, a, e) => { + var r = K; + let n = e; + e && e.interpolationkey && e[r(905)] && e[r(905)][e[r(622)]] && e[e[r(622)]] && (n = { ...n, [e[r(622)]]: void 0 }); + const o = a + JSON.stringify(n); + let c = x[o]; + return !c && (c = i(rx(a), e), x[o] = c), c(t); }; -}, cc = (i) => (e, t, a) => i(ae(t), a)(e); -class dc { - constructor(e = {}) { - const t = n; - this[t(1077)] = lx[t(1108)](t(675)), this[t(2687)] = e, this[t(1717)](e); +}, co = (i) => (x, t, a) => i(rx(t), a)(x); +class uo { + constructor(x = {}) { + var t = s; + this[t(1238)] = he[t(2196)](t(2047)), this[t(778)] = x, this[t(1448)](x); } - [n(1717)](e, t = { interpolation: {} }) { - const a = n; - this[a(2268)] = t.interpolation.formatSeparator || ","; - const x = t[a(1792)] ? ja : cc; - this[a(1285)] = { number: x((r, s) => { - const o = a, c = new Intl[o(2219)](r, { ...s }); - return (d) => c.format(d); - }), currency: x((r, s) => { - const o = a, c = new Intl[o(2219)](r, { ...s, style: o(1391) }); - return (d) => c[o(822)](d); - }), datetime: x((r, s) => { - const o = a, c = new Intl[o(2724)](r, { ...s }); - return (d) => c.format(d); - }), relativetime: x((r, s) => { - const o = a, c = new Intl.RelativeTimeFormat(r, { ...s }); - return (d) => c[o(822)](d, s[o(672)] || o(1020)); - }), list: x((r, s) => { - const o = a, c = new Intl.ListFormat(r, { ...s }); - return (d) => c[o(822)](d); + [s(1448)](x, t = { interpolation: {} }) { + var a = s; + this[a(1245)] = t[a(2025)][a(1245)] || ","; + const e = t[a(1059)] ? Br : co; + this[a(2199)] = { number: e((r, n) => { + var o = a; + const c = new Intl[o(1375)](r, { ...n }); + return (u) => c[o(2093)](u); + }), currency: e((r, n) => { + var o = a; + const c = new Intl.NumberFormat(r, { ...n, style: o(2189) }); + return (u) => c.format(u); + }), datetime: e((r, n) => { + var o = a; + const c = new Intl[o(2059)](r, { ...n }); + return (u) => c[o(2093)](u); + }), relativetime: e((r, n) => { + var o = a; + const c = new Intl[o(1257)](r, { ...n }); + return (u) => c[o(2093)](u, n[o(853)] || o(1351)); + }), list: e((r, n) => { + var o = a; + const c = new Intl[o(2345)](r, { ...n }); + return (u) => c[o(2093)](u); }) }; } - [n(2295)](e, t) { - const a = n; - this[a(1285)][e[a(1466)]()[a(2754)]()] = t; + [s(1342)](x, t) { + var a = s; + this[a(2199)][x.toLowerCase()[a(902)]()] = t; } - [n(1061)](e, t) { - const a = n; - this[a(1285)][e[a(1466)]()[a(2754)]()] = ja(t); + addCached(x, t) { + var a = s; + this[a(2199)][x.toLowerCase().trim()] = Br(t); } - format(e, t, a, x = {}) { - const r = n, s = t[r(2248)](this[r(2268)]); - if (s[r(1200)] > 1 && s[0][r(2170)]("(") > 1 && s[0].indexOf(")") < 0 && s.find((c) => c[r(2170)](")") > -1)) { - const c = s.findIndex((d) => d[r(2170)](")") > -1); - s[0] = [s[0], ...s.splice(1, c)][r(2573)](this[r(2268)]); + [s(2093)](x, t, a, e = {}) { + var r = s; + const n = t[r(2183)](this.formatSeparator); + if (n[r(2021)] > 1 && n[0][r(831)]("(") > 1 && n[0][r(831)](")") < 0 && n[r(1666)]((c) => c[r(831)](")") > -1)) { + const c = n[r(2401)]((u) => u[r(831)](")") > -1); + n[0] = [n[0], ...n.splice(1, c)][r(2515)](this[r(1245)]); } - return s.reduce((c, d) => { - var g; - const u = r, { formatName: f, formatOptions: l } = oc(d); - if (this[u(1285)][f]) { + return n[r(2483)]((c, u) => { + var v; + var d = r; + const { formatName: f, formatOptions: l } = oo(u); + if (this[d(2199)][f]) { let h = c; try { - const m = ((g = x == null ? void 0 : x[u(1144)]) == null ? void 0 : g[x.interpolationkey]) || {}, y = m[u(1008)] || m.lng || x[u(1008)] || x[u(1294)] || a; - h = this[u(1285)][f](c, y, { ...l, ...x, ...m }); + const m = ((v = e == null ? void 0 : e.formatParams) == null ? void 0 : v[e[d(622)]]) || {}, y = m[d(2236)] || m.lng || e[d(2236)] || e[d(2028)] || a; + h = this.formats[f](c, y, { ...l, ...e, ...m }); } catch (m) { - this[u(1077)].warn(m); + this[d(1238)][d(1797)](m); } return h; - } else this.logger[u(1808)](u(706) + f); + } else this[d(1238)].warn(d(1393) + f); return c; - }, e); + }, x); } } -const uc = (i, e) => { - const t = n; - i.pending[e] !== void 0 && (delete i[t(1268)][e], i[t(917)]--); +const fo = (i, x) => { + var t = s; + i[t(1358)][x] !== void 0 && (delete i[t(1358)][x], i[t(2255)]--); }; -class fc extends je { - constructor(e, t, a, x = {}) { - var s, o; - const r = n; - super(), this.backend = e, this[r(915)] = t, this.services = a, this[r(1539)] = a[r(1539)], this[r(2687)] = x, this[r(1077)] = lx[r(1108)](r(1058)), this[r(1316)] = [], this[r(2147)] = x[r(2147)] || 10, this[r(847)] = 0, this[r(2717)] = x[r(2717)] >= 0 ? x.maxRetries : 5, this[r(2488)] = x[r(2488)] >= 1 ? x[r(2488)] : 350, this.state = {}, this[r(576)] = [], (o = (s = this[r(942)]) == null ? void 0 : s.init) == null || o.call(s, a, x[r(942)], x); +class lo extends Nx { + constructor(x, t, a, e = {}) { + var n, o; + var r = s; + super(), this[r(1004)] = x, this.store = t, this[r(1161)] = a, this[r(966)] = a.languageUtils, this[r(778)] = e, this[r(1238)] = he[r(2196)](r(1459)), this.waitingReads = [], this[r(2007)] = e[r(2007)] || 10, this[r(1957)] = 0, this[r(861)] = e[r(861)] >= 0 ? e[r(861)] : 5, this[r(2324)] = e.retryTimeout >= 1 ? e[r(2324)] : 350, this[r(1842)] = {}, this.queue = [], (o = (n = this.backend) == null ? void 0 : n.init) == null || o.call(n, a, e[r(1004)], e); } - queueLoad(e, t, a, x) { - const r = n, s = {}, o = {}, c = {}, d = {}; - return e[r(1238)]((u) => { - let f = !0; - t.forEach((l) => { - const g = B, h = u + "|" + l; - !a[g(2496)] && this.store.hasResourceBundle(u, l) ? this[g(1430)][h] = 2 : this[g(1430)][h] < 0 || (this[g(1430)][h] === 1 ? o[h] === void 0 && (o[h] = !0) : (this[g(1430)][h] = 1, f = !1, o[h] === void 0 && (o[h] = !0), s[h] === void 0 && (s[h] = !0), d[l] === void 0 && (d[l] = !0))); - }), f || (c[u] = !0); - }), (Object[r(2278)](s)[r(1200)] || Object.keys(o)[r(1200)]) && this.queue[r(818)]({ pending: o, pendingCount: Object[r(2278)](o)[r(1200)], loaded: {}, errors: [], callback: x }), { toLoad: Object[r(2278)](s), pending: Object.keys(o), toLoadLanguages: Object[r(2278)](c), toLoadNamespaces: Object[r(2278)](d) }; + queueLoad(x, t, a, e) { + var r = s; + const n = {}, o = {}, c = {}, u = {}; + return x[r(1222)]((d) => { + var f = r; + let l = !0; + t[f(1222)]((v) => { + var h = f; + const m = d + "|" + v; + !a[h(1525)] && this[h(917)].hasResourceBundle(d, v) ? this[h(1842)][m] = 2 : this[h(1842)][m] < 0 || (this[h(1842)][m] === 1 ? o[m] === void 0 && (o[m] = !0) : (this[h(1842)][m] = 1, l = !1, o[m] === void 0 && (o[m] = !0), n[m] === void 0 && (n[m] = !0), u[v] === void 0 && (u[v] = !0))); + }), l || (c[d] = !0); + }), (Object.keys(n)[r(2021)] || Object[r(1040)](o).length) && this[r(1214)][r(2380)]({ pending: o, pendingCount: Object[r(1040)](o)[r(2021)], loaded: {}, errors: [], callback: e }), { toLoad: Object.keys(n), pending: Object[r(1040)](o), toLoadLanguages: Object[r(1040)](c), toLoadNamespaces: Object.keys(u) }; } - loaded(e, t, a) { - const x = n, r = e[x(2248)]("|"), s = r[0], o = r[1]; - t && this[x(1598)](x(2472), s, o, t), !t && a && this[x(915)][x(2556)](s, o, a, void 0, void 0, { skipCopy: !0 }), this[x(1430)][e] = t ? -1 : 2, t && a && (this.state[e] = 0); + [s(1383)](x, t, a) { + var e = s; + const r = x[e(2183)]("|"), n = r[0], o = r[1]; + t && this[e(2206)]("failedLoading", n, o, t), !t && a && this[e(917)].addResourceBundle(n, o, a, void 0, void 0, { skipCopy: !0 }), this[e(1842)][x] = t ? -1 : 2, t && a && (this.state[x] = 0); const c = {}; - this[x(576)][x(1238)]((d) => { - const u = x; - Y2(d[u(851)], [s], o), uc(d, e), t && d[u(1418)].push(t), d[u(917)] === 0 && !d[u(507)] && (Object[u(2278)](d[u(851)])[u(1238)]((f) => { - const l = u; + this[e(1214)][e(1222)]((u) => { + var d = e; + Xi(u[d(1383)], [n], o), fo(u, x), t && u.errors.push(t), u.pendingCount === 0 && !u[d(2340)] && (Object.keys(u[d(1383)])[d(1222)]((f) => { + var l = d; c[f] || (c[f] = {}); - const g = d[l(851)][f]; - g[l(1200)] && g.forEach((h) => { + const v = u[l(1383)][f]; + v[l(2021)] && v[l(1222)]((h) => { c[f][h] === void 0 && (c[f][h] = !0); }); - }), d[u(507)] = !0, d.errors[u(1200)] ? d[u(2356)](d[u(1418)]) : d.callback()); - }), this.emit(x(851), c), this[x(576)] = this[x(576)].filter((d) => !d[x(507)]); + }), u[d(2340)] = !0, u.errors.length ? u[d(2066)](u[d(1188)]) : u[d(2066)]()); + }), this.emit(e(1383), c), this[e(1214)] = this.queue[e(2397)]((u) => !u[e(2340)]); } - [n(2216)](e, t, a, x = 0, r = this[n(2488)], s) { - const o = n; - if (!e[o(1200)]) return s(null, {}); - if (this[o(847)] >= this[o(2147)]) { - this[o(1316)][o(818)]({ lng: e, ns: t, fcName: a, tried: x, wait: r, callback: s }); + read(x, t, a, e = 0, r = this.retryTimeout, n) { + var o = s; + if (!x[o(2021)]) return n(null, {}); + if (this[o(1957)] >= this[o(2007)]) { + this[o(1088)].push({ lng: x, ns: t, fcName: a, tried: e, wait: r, callback: n }); return; } - this[o(847)]++; - const c = (u, f) => { - const l = o; - if (this[l(847)]--, this[l(1316)][l(1200)] > 0) { - const g = this[l(1316)][l(2621)](); - this[l(2216)](g[l(1294)], g.ns, g[l(1743)], g[l(1141)], g[l(2739)], g.callback); + this[o(1957)]++; + const c = (d, f) => { + var l = o; + if (this.readingCalls--, this[l(1088)].length > 0) { + const v = this[l(1088)][l(761)](); + this.read(v[l(2028)], v.ns, v.fcName, v.tried, v.wait, v[l(2066)]); } - if (u && f && x < this.maxRetries) { + if (d && f && e < this[l(861)]) { setTimeout(() => { - const g = l; - this[g(2216)][g(2518)](this, e, t, a, x + 1, r * 2, s); + var v = l; + this[v(1995)][v(1547)](this, x, t, a, e + 1, r * 2, n); }, r); return; } - s(u, f); - }, d = this[o(942)][a][o(1571)](this[o(942)]); - if (d[o(1200)] === 2) { + n(d, f); + }, u = this[o(1004)][a][o(1748)](this[o(1004)]); + if (u.length === 2) { try { - const u = d(e, t); - u && typeof u.then === o(1342) ? u[o(1413)]((f) => c(null, f))[o(641)](c) : c(null, u); - } catch (u) { - c(u); + const d = u(x, t); + d && typeof d.then === o(1853) ? d[o(432)]((f) => c(null, f))[o(947)](c) : c(null, d); + } catch (d) { + c(d); } return; } - return d(e, t, c); + return u(x, t, c); } - [n(803)](e, t, a = {}, x) { - const r = n; - if (!this.backend) return this[r(1077)][r(1808)](r(2276)), x && x(); - g0(e) && (e = this[r(1539)][r(2658)](e)), g0(t) && (t = [t]); - const s = this[r(1905)](e, t, a, x); - if (!s[r(2663)].length) - return s[r(1268)][r(1200)] || x(), null; - s[r(2663)][r(1238)]((o) => { - this[r(1508)](o); + [s(1061)](x, t, a = {}, e) { + var r = s; + if (!this[r(1004)]) return this[r(1238)][r(1797)](r(1070)), e && e(); + m0(x) && (x = this[r(966)].toResolveHierarchy(x)), m0(t) && (t = [t]); + const n = this[r(1114)](x, t, a, e); + if (!n[r(972)][r(2021)]) + return n.pending[r(2021)] || e(), null; + n.toLoad.forEach((o) => { + var c = r; + this[c(1629)](o); }); } - [n(657)](e, t, a) { - this[n(803)](e, t, {}, a); + [s(2617)](x, t, a) { + var e = s; + this[e(1061)](x, t, {}, a); } - reload(e, t, a) { - this[n(803)](e, t, { reload: !0 }, a); + [s(1525)](x, t, a) { + this.prepareLoading(x, t, { reload: !0 }, a); } - [n(1508)](e, t = "") { - const a = n, x = e[a(2248)]("|"), r = x[0], s = x[1]; - this.read(r, s, a(2216), void 0, void 0, (o, c) => { - const d = a; - o && this[d(1077)][d(1808)](t + d(2469) + s + d(2656) + r + " failed", o), !o && c && this.logger[d(816)](t + d(2627) + s + " for language " + r, c), this[d(851)](e, o, c); + [s(1629)](x, t = "") { + var a = s; + const e = x.split("|"), r = e[0], n = e[1]; + this[a(1995)](r, n, "read", void 0, void 0, (o, c) => { + var u = a; + o && this[u(1238)].warn(t + "loading namespace " + n + u(1014) + r + u(1989), o), !o && c && this[u(1238)][u(1133)](t + "loaded namespace " + n + " for language " + r, c), this[u(1383)](x, o, c); }); } - [n(552)](e, t, a, x, r, s = {}, o = () => { + saveMissing(x, t, a, e, r, n = {}, o = () => { }) { - var d, u, f, l, g; - const c = n; - if ((u = (d = this[c(1235)]) == null ? void 0 : d[c(2305)]) != null && u[c(870)] && !((l = (f = this.services) == null ? void 0 : f.utils) != null && l[c(870)](t))) { - this[c(1077)].warn(c(1277) + a + c(1410) + t + '" was not yet loaded', c(1919)); + var u, d, f, l, v; + var c = s; + if ((d = (u = this[c(1161)]) == null ? void 0 : u[c(846)]) != null && d.hasLoadedNamespace && !((l = (f = this[c(1161)]) == null ? void 0 : f[c(846)]) != null && l[c(1956)](t))) { + this.logger[c(1797)]('did not save key "' + a + c(1818) + t + c(1023), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"); return; } if (!(a == null || a === "")) { - if ((g = this.backend) != null && g[c(1108)]) { - const h = { ...s, isUpdate: r }, m = this.backend.create.bind(this[c(942)]); - if (m.length < 6) try { + if ((v = this[c(1004)]) != null && v.create) { + const h = { ...n, isUpdate: r }, m = this.backend[c(2196)][c(1748)](this[c(1004)]); + if (m[c(2021)] < 6) try { let y; - m[c(1200)] === 5 ? y = m(e, t, a, x, h) : y = m(e, t, a, x), y && typeof y[c(1413)] === c(1342) ? y[c(1413)]((w) => o(null, w))[c(641)](o) : o(null, y); + m[c(2021)] === 5 ? y = m(x, t, a, e, h) : y = m(x, t, a, e), y && typeof y[c(432)] === c(1853) ? y[c(432)]((w) => o(null, w))[c(947)](o) : o(null, y); } catch (y) { o(y); } - else m(e, t, a, x, o, h); + else m(x, t, a, e, o, h); } - !e || !e[0] || this[c(915)][c(2267)](e[0], t, a, x); + !x || !x[0] || this[c(917)][c(1310)](x[0], t, a, e); } } } -const Ma = () => ({ debug: !1, initAsync: !0, ns: ["translation"], defaultNS: [n(1224)], fallbackLng: [n(2064)], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: "all", preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: n(2580), saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: (i) => { - const e = n; +const Kr = () => ({ debug: !1, initAsync: !0, ns: ["translation"], defaultNS: ["translation"], fallbackLng: [s(1067)], fallbackNS: !1, supportedLngs: !1, nonExplicitSupportedLngs: !1, load: "all", preload: !1, simplifyPluralSuffix: !0, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: !1, saveMissing: !1, updateMissing: !1, saveMissingTo: "fallback", saveMissingPlurals: !0, missingKeyHandler: !1, missingInterpolationHandler: !1, postProcess: !1, postProcessPassResolved: !1, returnNull: !1, returnEmptyString: !0, returnObjects: !1, joinArrays: !1, returnedObjectHandler: !1, parseMissingKeyHandler: !1, appendNamespaceToMissingKey: !1, appendNamespaceToCIMode: !1, overloadTranslationOptionHandler: (i) => { + var x = s; let t = {}; - if (typeof i[1] === e(2437) && (t = i[1]), g0(i[1]) && (t[e(2303)] = i[1]), g0(i[2]) && (t[e(1557)] = i[2]), typeof i[2] == "object" || typeof i[3] == "object") { + if (typeof i[1] == "object" && (t = i[1]), m0(i[1]) && (t[x(704)] = i[1]), m0(i[2]) && (t[x(1579)] = i[2]), typeof i[2] == "object" || typeof i[3] == "object") { const a = i[3] || i[2]; - Object[e(2278)](a)[e(1238)]((x) => { - t[x] = a[x]; + Object[x(1040)](a).forEach((e) => { + t[e] = a[e]; }); } return t; -}, interpolation: { escapeValue: !0, format: (i) => i, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: n(831), nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: !0 }, cacheInBuiltFormats: !0 }), La = (i) => { +}, interpolation: { escapeValue: !0, format: (i) => i, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: "$t(", nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: !0 }, cacheInBuiltFormats: !0 }), Jr = (i) => { var t, a; - const e = n; - return g0(i.ns) && (i.ns = [i.ns]), g0(i.fallbackLng) && (i.fallbackLng = [i[e(2306)]]), g0(i[e(615)]) && (i[e(615)] = [i.fallbackNS]), ((a = (t = i[e(1062)]) == null ? void 0 : t[e(2170)]) == null ? void 0 : a.call(t, e(2297))) < 0 && (i[e(1062)] = i[e(1062)].concat([e(2297)])), typeof i.initImmediate == "boolean" && (i.initAsync = i[e(2049)]), i; -}, le = () => { -}, lc = (i) => { - const e = n; - Object[e(1528)](Object[e(2001)](i))[e(1238)]((a) => { - const x = e; - typeof i[a] == "function" && (i[a] = i[a][x(1571)](i)); + var x = s; + return m0(i.ns) && (i.ns = [i.ns]), m0(i.fallbackLng) && (i.fallbackLng = [i[x(2177)]]), m0(i[x(281)]) && (i.fallbackNS = [i[x(281)]]), ((a = (t = i[x(1569)]) == null ? void 0 : t[x(831)]) == null ? void 0 : a.call(t, x(2362))) < 0 && (i[x(1569)] = i[x(1569)].concat([x(2362)])), typeof i.initImmediate === x(2251) && (i.initAsync = i[x(2107)]), i; +}, dx = () => { +}, ho = (i) => { + var x = s; + Object.getOwnPropertyNames(Object.getPrototypeOf(i))[x(1222)]((a) => { + var e = x; + typeof i[a] === e(1853) && (i[a] = i[a][e(1748)](i)); }); }; -class ne extends je { - constructor(e = {}, t) { - const a = n; - if (super(), this.options = La(e), this.services = {}, this.logger = lx, this[a(1133)] = { external: [] }, lc(this), t && !this[a(845)] && !e.isClone) { - if (!this[a(2687)][a(1314)]) return this[a(1717)](e, t), this; +class ax extends Nx { + constructor(x = {}, t) { + var a = s; + if (super(), this.options = Jr(x), this[a(1161)] = {}, this[a(1238)] = he, this[a(2043)] = { external: [] }, ho(this), t && !this.isInitialized && !x[a(414)]) { + if (!this.options[a(2063)]) return this[a(1448)](x, t), this; setTimeout(() => { - this[a(1717)](e, t); + var e = a; + this[e(1448)](x, t); }, 0); } } - [n(1717)](e = {}, t) { - const a = n; - this[a(1930)] = !0, typeof e === a(1342) && (t = e, e = {}), e[a(2272)] == null && e.ns && (g0(e.ns) ? e[a(2272)] = e.ns : e.ns[a(2170)](a(1224)) < 0 && (e[a(2272)] = e.ns[0])); - const x = Ma(); - this[a(2687)] = { ...x, ...this.options, ...La(e) }, this.options.interpolation = { ...x[a(2435)], ...this.options.interpolation }, e[a(1700)] !== void 0 && (this[a(2687)][a(1245)] = e[a(1700)]), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator); - const r = (u) => { - const f = a; - return u ? typeof u === f(1342) ? new u() : u : null; - }; - if (!this[a(2687)][a(1264)]) { - this[a(1133)][a(1077)] ? lx[a(1717)](r(this[a(1133)][a(1077)]), this[a(2687)]) : lx.init(null, this[a(2687)]); - let u; - this.modules.formatter ? u = this[a(1133)][a(675)] : u = dc; - const f = new Oa(this[a(2687)]); - this[a(915)] = new Fa(this[a(2687)][a(1868)], this[a(2687)]); - const l = this[a(1235)]; - l.logger = lx, l.resourceStore = this[a(915)], l[a(1539)] = f, l[a(1535)] = new sc(f, { prepend: this.options[a(1096)], simplifyPluralSuffix: this.options[a(737)] }), u && (!this[a(2687)].interpolation[a(822)] || this[a(2687)][a(2435)].format === x.interpolation[a(822)]) && (l[a(675)] = r(u), l[a(675)].init(l, this[a(2687)]), this[a(2687)].interpolation[a(822)] = l.formatter[a(822)][a(1571)](l.formatter)), l[a(2059)] = new ic(this[a(2687)]), l[a(2305)] = { hasLoadedNamespace: this.hasLoadedNamespace[a(1571)](this) }, l[a(1058)] = new fc(r(this.modules[a(942)]), l[a(1686)], l, this[a(2687)]), l[a(1058)].on("*", (g, ...h) => { - this[a(1598)](g, ...h); - }), this[a(1133)][a(2689)] && (l[a(2689)] = r(this[a(1133)][a(2689)]), l[a(2689)][a(1717)] && l[a(2689)][a(1717)](l, this.options[a(1825)], this[a(2687)])), this[a(1133)][a(1255)] && (l[a(1255)] = r(this[a(1133)][a(1255)]), l[a(1255)][a(1717)] && l.i18nFormat[a(1717)](this)), this.translator = new Ne(this.services, this[a(2687)]), this[a(1003)].on("*", (g, ...h) => { - this[a(1598)](g, ...h); - }), this[a(1133)][a(2359)].forEach((g) => { - g[a(1717)] && g.init(this); + init(x = {}, t) { + var a = s; + this[a(2140)] = !0, typeof x === a(1853) && (t = x, x = {}), x[a(1284)] == null && x.ns && (m0(x.ns) ? x.defaultNS = x.ns : x.ns[a(831)](a(1286)) < 0 && (x[a(1284)] = x.ns[0])); + const e = Kr(); + this[a(778)] = { ...e, ...this[a(778)], ...Jr(x) }, this.options[a(2025)] = { ...e.interpolation, ...this[a(778)][a(2025)] }, x.keySeparator !== void 0 && (this.options[a(1718)] = x[a(1981)]), x[a(1714)] !== void 0 && (this[a(778)].userDefinedNsSeparator = x[a(1714)]); + const r = (d) => d ? typeof d == "function" ? new d() : d : null; + if (!this[a(778)][a(414)]) { + this[a(2043)][a(1238)] ? he[a(1448)](r(this.modules[a(1238)]), this[a(778)]) : he[a(1448)](null, this.options); + let d; + this[a(2043)][a(2047)] ? d = this[a(2043)][a(2047)] : d = uo; + const f = new Ur(this[a(778)]); + this[a(917)] = new $r(this[a(778)][a(1750)], this[a(778)]); + const l = this[a(1161)]; + l[a(1238)] = he, l[a(1063)] = this.store, l[a(966)] = f, l.pluralResolver = new no(f, { prepend: this[a(778)].pluralSeparator, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), d && (!this[a(778)].interpolation[a(2093)] || this.options.interpolation[a(2093)] === e[a(2025)][a(2093)]) && (l[a(2047)] = r(d), l.formatter.init(l, this[a(778)]), this[a(778)][a(2025)][a(2093)] = l.formatter[a(2093)][a(1748)](l[a(2047)])), l[a(556)] = new io(this[a(778)]), l[a(846)] = { hasLoadedNamespace: this.hasLoadedNamespace[a(1748)](this) }, l.backendConnector = new lo(r(this[a(2043)][a(1004)]), l[a(1063)], l, this[a(778)]), l[a(1459)].on("*", (v, ...h) => { + var m = a; + this[m(2206)](v, ...h); + }), this[a(2043)][a(906)] && (l.languageDetector = r(this[a(2043)][a(906)]), l.languageDetector[a(1448)] && l[a(906)].init(l, this.options.detection, this[a(778)])), this[a(2043)][a(1482)] && (l[a(1482)] = r(this[a(2043)][a(1482)]), l.i18nFormat[a(1448)] && l[a(1482)][a(1448)](this)), this[a(1345)] = new Cx(this[a(1161)], this[a(778)]), this[a(1345)].on("*", (v, ...h) => { + var m = a; + this[m(2206)](v, ...h); + }), this[a(2043)].external[a(1222)]((v) => { + var h = a; + v[h(1448)] && v[h(1448)](this); }); } - if (this[a(822)] = this.options[a(2435)][a(822)], t || (t = le), this.options[a(2306)] && !this[a(1235)][a(2689)] && !this[a(2687)][a(1294)]) { - const u = this[a(1235)][a(1539)][a(2650)](this[a(2687)].fallbackLng); - u[a(1200)] > 0 && u[0] !== "dev" && (this[a(2687)][a(1294)] = u[0]); + if (this.format = this.options[a(2025)][a(2093)], t || (t = dx), this[a(778)].fallbackLng && !this[a(1161)][a(906)] && !this[a(778)][a(2028)]) { + const d = this[a(1161)][a(966)].getFallbackCodes(this[a(778)][a(2177)]); + d.length > 0 && d[0] !== a(1067) && (this[a(778)][a(2028)] = d[0]); } - !this.services[a(2689)] && !this[a(2687)][a(1294)] && this[a(1077)].warn(a(1012)), ["getResource", "hasResourceBundle", a(1645), "getDataByLanguage"][a(1238)]((u) => { - this[u] = (...f) => this.store[u](...f); - }), ["addResource", a(2671), a(2556), a(1078)][a(1238)]((u) => { - this[u] = (...f) => (this.store[u](...f), this); - }); - const c = Gx(), d = () => { - const u = a, f = (l, g) => { - const h = B; - this[h(1930)] = !1, this.isInitialized && !this[h(1379)] && this.logger.warn(h(1609)), this[h(845)] = !0, this[h(2687)][h(1264)] || this[h(1077)].log(h(1116), this[h(2687)]), this[h(1598)](h(1116), this[h(2687)]), c.resolve(g), t(l, g); + !this[a(1161)][a(906)] && !this.options[a(2028)] && this[a(1238)].warn(a(1042)), [a(462), a(1603), "getResourceBundle", "getDataByLanguage"].forEach((d) => { + var f = a; + this[d] = (...l) => this[f(917)][d](...l); + }), [a(1310), "addResources", "addResourceBundle", "removeResourceBundle"][a(1222)]((d) => { + this[d] = (...f) => { + var l = K; + return this[l(917)][d](...f), this; }; - if (this[u(2433)] && !this[u(845)]) return f(null, this.t[u(1571)](this)); - this[u(2392)](this[u(2687)][u(1294)], f); + }); + const c = Ge(), u = () => { + var d = a; + const f = (l, v) => { + var h = K; + this.isInitializing = !1, this[h(290)] && !this[h(1745)] && this[h(1238)][h(1797)](h(651)), this[h(290)] = !0, this[h(778)][h(414)] || this[h(1238)][h(1133)](h(760), this.options), this.emit("initialized", this.options), c.resolve(v), t(l, v); + }; + if (this.languages && !this[d(290)]) return f(null, this.t[d(1748)](this)); + this[d(1650)](this[d(778)][d(2028)], f); }; - return this[a(2687)][a(1868)] || !this[a(2687)][a(1314)] ? d() : setTimeout(d, 0), c; + return this[a(778)].resources || !this[a(778)][a(2063)] ? u() : setTimeout(u, 0), c; } - loadResources(e, t = le) { - var s, o; - const a = n; - let x = t; - const r = g0(e) ? e : this[a(711)]; - if (typeof e === a(1342) && (x = e), !this.options.resources || this[a(2687)].partialBundledLanguages) { - if ((r == null ? void 0 : r.toLowerCase()) === a(2297) && (!this[a(2687)][a(2033)] || this.options[a(2033)].length === 0)) return x(); - const c = [], d = (u) => { - const f = a; - if (!u || u === "cimode") return; - this[f(1235)][f(1539)][f(2658)](u)[f(1238)]((g) => { - const h = f; - g !== h(2297) && c[h(2170)](g) < 0 && c[h(818)](g); + [s(1263)](x, t = dx) { + var n, o; + var a = s; + let e = t; + const r = m0(x) ? x : this.language; + if (typeof x === a(1853) && (e = x), !this[a(778)][a(1750)] || this[a(778)][a(469)]) { + if ((r == null ? void 0 : r[a(1991)]()) === a(2362) && (!this[a(778)][a(1444)] || this.options[a(1444)][a(2021)] === 0)) return e(); + const c = [], u = (d) => { + var f = a; + if (!d || d === f(2362)) return; + this.services.languageUtils.toResolveHierarchy(d)[f(1222)]((v) => { + var h = f; + v !== h(2362) && c[h(831)](v) < 0 && c[h(2380)](v); }); }; - r ? d(r) : this[a(1235)][a(1539)][a(2650)](this[a(2687)][a(2306)])[a(1238)]((f) => d(f)), (o = (s = this[a(2687)][a(2033)]) == null ? void 0 : s[a(1238)]) == null || o.call(s, (u) => d(u)), this[a(1235)][a(1058)][a(657)](c, this[a(2687)].ns, (u) => { - const f = a; - !u && !this[f(2041)] && this[f(711)] && this.setResolvedLanguage(this[f(711)]), x(u); + r ? u(r) : this[a(1161)].languageUtils[a(2412)](this[a(778)].fallbackLng).forEach((f) => u(f)), (o = (n = this[a(778)][a(1444)]) == null ? void 0 : n[a(1222)]) == null || o.call(n, (d) => u(d)), this.services[a(1459)].load(c, this[a(778)].ns, (d) => { + var f = a; + !d && !this.resolvedLanguage && this[f(1867)] && this[f(1673)](this[f(1867)]), e(d); }); - } else x(null); + } else e(null); } - [n(2667)](e, t, a) { - const x = n, r = Gx(); - return typeof e === x(1342) && (a = e, e = void 0), typeof t === x(1342) && (a = t, t = void 0), e || (e = this[x(2433)]), t || (t = this[x(2687)].ns), a || (a = le), this[x(1235)][x(1058)][x(2496)](e, t, (s) => { - r[x(1987)](), a(s); + reloadResources(x, t, a) { + var e = s; + const r = Ge(); + return typeof x === e(1853) && (a = x, x = void 0), typeof t == "function" && (a = t, t = void 0), x || (x = this.languages), t || (t = this[e(778)].ns), a || (a = dx), this[e(1161)][e(1459)][e(1525)](x, t, (n) => { + var o = e; + r[o(1890)](), a(n); }), r; } - [n(1912)](e) { - const t = n; - if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()"); - if (!e[t(2426)]) throw new Error(t(1063)); - return e[t(2426)] === "backend" && (this.modules[t(942)] = e), (e[t(2426)] === "logger" || e[t(816)] && e[t(1808)] && e[t(2389)]) && (this.modules[t(1077)] = e), e[t(2426)] === t(2689) && (this[t(1133)][t(2689)] = e), e[t(2426)] === t(1255) && (this[t(1133)][t(1255)] = e), e[t(2426)] === t(2441) && ls.addPostProcessor(e), e[t(2426)] === t(675) && (this[t(1133)][t(675)] = e), e[t(2426)] === t(2e3) && this[t(1133)][t(2359)][t(818)](e), this; + use(x) { + var t = s; + if (!x) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()"); + if (!x[t(338)]) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()"); + return x[t(338)] === "backend" && (this.modules[t(1004)] = x), (x[t(338)] === "logger" || x[t(1133)] && x[t(1797)] && x[t(503)]) && (this[t(2043)][t(1238)] = x), x.type === t(906) && (this[t(2043)][t(906)] = x), x.type === t(1482) && (this[t(2043)][t(1482)] = x), x[t(338)] === t(1181) && Us[t(2061)](x), x[t(338)] === "formatter" && (this[t(2043)][t(2047)] = x), x[t(338)] === t(2582) && this[t(2043)][t(2022)][t(2380)](x), this; } - [n(2245)](e) { - const t = n; - if (!(!e || !this[t(2433)]) && !([t(2297), t(2064)][t(2170)](e) > -1)) { - for (let a = 0; a < this[t(2433)].length; a++) { - const x = this[t(2433)][a]; - if (!(["cimode", t(2064)][t(2170)](x) > -1) && this[t(915)][t(1647)](x)) { - this[t(2041)] = x; + [s(1673)](x) { + var t = s; + if (!(!x || !this.languages) && !(["cimode", t(1067)].indexOf(x) > -1)) { + for (let a = 0; a < this[t(2087)].length; a++) { + const e = this[t(2087)][a]; + if (!([t(2362), t(1067)].indexOf(e) > -1) && this[t(917)][t(1011)](e)) { + this.resolvedLanguage = e; break; } } - !this[t(2041)] && this[t(2433)][t(2170)](e) < 0 && this[t(915)][t(1647)](e) && (this[t(2041)] = e, this[t(2433)][t(1885)](e)); + !this[t(2583)] && this.languages[t(831)](x) < 0 && this.store[t(1011)](x) && (this.resolvedLanguage = x, this[t(2087)][t(821)](x)); } } - [n(2392)](e, t) { - const a = n; - this[a(973)] = e; - const x = Gx(); - this.emit(a(1498), e); + [s(1650)](x, t) { + var a = s; + this[a(2058)] = x; + const e = Ge(); + this[a(2206)](a(1320), x); const r = (c) => { - const d = a; - this.language = c, this[d(2433)] = this[d(1235)].languageUtils[d(2658)](c), this[d(2041)] = void 0, this[d(2245)](c); - }, s = (c, d) => { - const u = a; - d ? this[u(973)] === e && (r(d), this[u(1003)][u(2392)](d), this[u(973)] = void 0, this[u(1598)](u(1219), d), this.logger.log(u(1219), d)) : this.isLanguageChangingTo = void 0, x[u(1987)]((...f) => this.t(...f)), t && t(c, (...f) => this.t(...f)); + var u = a; + this[u(1867)] = c, this.languages = this.services.languageUtils[u(2101)](c), this.resolvedLanguage = void 0, this[u(1673)](c); + }, n = (c, u) => { + var d = a; + u ? this[d(2058)] === x && (r(u), this[d(1345)][d(1650)](u), this[d(2058)] = void 0, this.emit(d(322), u), this.logger[d(1133)](d(322), u)) : this[d(2058)] = void 0, e[d(1890)]((...f) => this.t(...f)), t && t(c, (...f) => this.t(...f)); }, o = (c) => { - var l, g; - const d = a; - !e && !c && this[d(1235)].languageDetector && (c = []); - const u = g0(c) ? c : c && c[0], f = this[d(915)][d(1647)](u) ? u : this[d(1235)][d(1539)][d(875)](g0(c) ? [c] : c); - f && (!this[d(711)] && r(f), this.translator[d(711)] || this[d(1003)][d(2392)](f), (g = (l = this[d(1235)][d(2689)]) == null ? void 0 : l[d(2550)]) == null || g.call(l, f)), this[d(2069)](f, (h) => { - s(h, f); + var l, v; + var u = a; + !x && !c && this[u(1161)][u(906)] && (c = []); + const d = m0(c) ? c : c && c[0], f = this[u(917)].hasLanguageSomeTranslations(d) ? d : this[u(1161)].languageUtils[u(540)](m0(c) ? [c] : c); + f && (!this[u(1867)] && r(f), this[u(1345)].language || this[u(1345)][u(1650)](f), (v = (l = this[u(1161)][u(906)]) == null ? void 0 : l[u(1400)]) == null || v.call(l, f)), this[u(1263)](f, (h) => { + n(h, f); }); }; - return !e && this.services[a(2689)] && !this[a(1235)].languageDetector[a(1721)] ? o(this[a(1235)].languageDetector.detect()) : !e && this.services[a(2689)] && this.services[a(2689)][a(1721)] ? this[a(1235)][a(2689)].detect.length === 0 ? this[a(1235)][a(2689)].detect().then(o) : this[a(1235)][a(2689)].detect(o) : o(e), x; + return !x && this.services[a(906)] && !this[a(1161)][a(906)][a(2572)] ? o(this[a(1161)].languageDetector[a(1431)]()) : !x && this[a(1161)][a(906)] && this[a(1161)][a(906)].async ? this[a(1161)][a(906)][a(1431)][a(2021)] === 0 ? this[a(1161)][a(906)][a(1431)]().then(o) : this.services.languageDetector.detect(o) : o(x), e; } - [n(1371)](e, t, a) { - const x = n, r = (s, o, ...c) => { - const d = B; - let u; - typeof o !== d(2437) ? u = this[d(2687)].overloadTranslationOptionHandler([s, o][d(2699)](c)) : u = { ...o }, u.lng = u.lng || r.lng, u[d(1369)] = u[d(1369)] || r.lngs, u.ns = u.ns || r.ns, u[d(872)] !== "" && (u[d(872)] = u.keyPrefix || a || r[d(872)]); - const f = this.options[d(1700)] || "."; + [s(668)](x, t, a) { + var e = s; + const r = (n, o, ...c) => { + var u = K; + let d; + typeof o !== u(1923) ? d = this[u(778)][u(2127)]([n, o][u(1355)](c)) : d = { ...o }, d[u(2028)] = d[u(2028)] || r[u(2028)], d[u(379)] = d.lngs || r[u(379)], d.ns = d.ns || r.ns, d[u(2406)] !== "" && (d.keyPrefix = d.keyPrefix || a || r[u(2406)]); + const f = this.options.keySeparator || "."; let l; - return u[d(872)] && Array[d(2344)](s) ? l = s[d(2404)]((g) => "" + u[d(872)] + f + g) : l = u[d(872)] ? "" + u.keyPrefix + f + s : s, this.t(l, u); + return d.keyPrefix && Array[u(1435)](n) ? l = n.map((v) => "" + d[u(2406)] + f + v) : l = d[u(2406)] ? "" + d[u(2406)] + f + n : n, this.t(l, d); }; - return g0(e) ? r[x(1294)] = e : r[x(1369)] = e, r.ns = t, r[x(872)] = a, r; + return m0(x) ? r.lng = x : r.lngs = x, r.ns = t, r[e(2406)] = a, r; } - t(...e) { + t(...x) { var a; - const t = n; - return (a = this[t(1003)]) == null ? void 0 : a[t(907)](...e); + var t = s; + return (a = this[t(1345)]) == null ? void 0 : a[t(2272)](...x); } - [n(540)](...e) { + [s(308)](...x) { var a; - return (a = this[n(1003)]) == null ? void 0 : a.exists(...e); + var t = s; + return (a = this[t(1345)]) == null ? void 0 : a[t(308)](...x); } - [n(829)](e) { - const t = n; - this[t(2687)][t(2272)] = e; + [s(1613)](x) { + var t = s; + this[t(778)].defaultNS = x; } - [n(870)](e, t = {}) { - const a = n; - if (!this.isInitialized) return this[a(1077)].warn("hasLoadedNamespace: i18next was not initialized", this[a(2433)]), !1; - if (!this.languages || !this[a(2433)][a(1200)]) return this.logger[a(1808)]("hasLoadedNamespace: i18n.languages were undefined or empty", this[a(2433)]), !1; - const x = t[a(1294)] || this[a(2041)] || this[a(2433)][0], r = this[a(2687)] ? this[a(2687)][a(2306)] : !1, s = this.languages[this[a(2433)].length - 1]; - if (x[a(1466)]() === a(2297)) return !0; - const o = (c, d) => { - const u = a, f = this[u(1235)][u(1058)][u(1430)][c + "|" + d]; + [s(1956)](x, t = {}) { + var a = s; + if (!this[a(290)]) return this[a(1238)].warn(a(1200), this.languages), !1; + if (!this[a(2087)] || !this[a(2087)][a(2021)]) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this[a(2087)]), !1; + const e = t[a(2028)] || this[a(2583)] || this[a(2087)][0], r = this.options ? this[a(778)].fallbackLng : !1, n = this.languages[this[a(2087)].length - 1]; + if (e[a(1991)]() === a(2362)) return !0; + const o = (c, u) => { + var d = a; + const f = this[d(1161)][d(1459)][d(1842)][c + "|" + u]; return f === -1 || f === 0 || f === 2; }; - if (t[a(2541)]) { - const c = t[a(2541)](this, o); + if (t[a(2014)]) { + const c = t[a(2014)](this, o); if (c !== void 0) return c; } - return !!(this[a(1760)](x, e) || !this.services[a(1058)][a(942)] || this[a(2687)][a(1868)] && !this.options[a(544)] || o(x, e) && (!r || o(s, e))); + return !!(this[a(1603)](e, x) || !this[a(1161)].backendConnector[a(1004)] || this[a(778)][a(1750)] && !this[a(778)].partialBundledLanguages || o(e, x) && (!r || o(n, x))); } - [n(1739)](e, t) { - const a = n, x = Gx(); - return this.options.ns ? (g0(e) && (e = [e]), e[a(1238)]((r) => { - const s = a; - this[s(2687)].ns[s(2170)](r) < 0 && this[s(2687)].ns[s(818)](r); - }), this.loadResources((r) => { - x[a(1987)](), t && t(r); - }), x) : (t && t(), Promise.resolve()); + [s(1689)](x, t) { + var a = s; + const e = Ge(); + return this.options.ns ? (m0(x) && (x = [x]), x[a(1222)]((r) => { + var n = a; + this[n(778)].ns.indexOf(r) < 0 && this.options.ns.push(r); + }), this[a(1263)]((r) => { + e.resolve(), t && t(r); + }), e) : (t && t(), Promise[a(1890)]()); } - loadLanguages(e, t) { - const a = n, x = Gx(); - g0(e) && (e = [e]); - const r = this.options[a(2033)] || [], s = e.filter((o) => r[a(2170)](o) < 0 && this[a(1235)][a(1539)][a(1085)](o)); - return s[a(1200)] ? (this[a(2687)].preload = r.concat(s), this[a(2069)]((o) => { - x[a(1987)](), t && t(o); - }), x) : (t && t(), Promise[a(1987)]()); + [s(1647)](x, t) { + var a = s; + const e = Ge(); + m0(x) && (x = [x]); + const r = this[a(778)].preload || [], n = x.filter((o) => r[a(831)](o) < 0 && this[a(1161)][a(966)][a(1868)](o)); + return n.length ? (this[a(778)][a(1444)] = r[a(1355)](n), this[a(1263)]((o) => { + var c = a; + e[c(1890)](), t && t(o); + }), e) : (t && t(), Promise[a(1890)]()); } - [n(897)](e) { - var r, s; - const t = n; - if (e || (e = this.resolvedLanguage || (((r = this[t(2433)]) == null ? void 0 : r[t(1200)]) > 0 ? this[t(2433)][0] : this[t(711)])), !e) return t(2526); - const a = ["ar", t(1363), t(775), t(1925), "xaa", t(2567), t(1946), "aao", t(2364), t(2072), t(744), t(949), t(1072), t(2559), t(1373), "adf", "ads", t(1468), t(1677), t(761), t(2164), "apc", t(2485), t(736), t(1835), t(2533), "ary", t(513), t(2091), "avl", t(1073), t(2251), t(1778), t(1083), t(2418), t(1071), "he", "iw", "ps", t(1299), t(1842), t(1212), t(1368), "prd", "ug", "ur", t(913), t(1649), t(2279), "ji", "yi", "hbo", t(2398), t(1241), "fa", t(2252), t(1572), t(700), t(1657), "dv", t(2459), t(969)], x = ((s = this[t(1235)]) == null ? void 0 : s[t(1539)]) || new Oa(Ma()); - return a[t(2170)](x[t(882)](e)) > -1 || e[t(1466)]()[t(2170)](t(2025)) > 1 ? t(2526) : t(2165); + [s(2431)](x) { + var r, n; + var t = s; + if (x || (x = this.resolvedLanguage || (((r = this.languages) == null ? void 0 : r[t(2021)]) > 0 ? this[t(2087)][0] : this[t(1867)])), !x) return t(2492); + const a = ["ar", t(465), t(434), t(1573), t(1697), t(2275), t(1103), t(1993), t(1169), t(731), t(1486), t(1437), t(1692), t(1654), "acy", t(1607), "ads", t(1484), "aec", "afb", t(771), t(2608), t(949), t(2056), t(1404), "ars", t(1871), t(1276), t(2446), t(1497), t(367), t(2077), t(2551), t(2578), t(2558), t(928), "he", "iw", "ps", "pbt", "pbu", t(2045), t(1300), "prd", "ug", "ur", t(351), t(2444), t(501), "ji", "yi", t(2399), t(950), t(405), "fa", t(1094), t(1861), "pes", t(1536), "dv", t(1473), "ckb"], e = ((n = this[t(1161)]) == null ? void 0 : n[t(966)]) || new Ur(Kr()); + return a[t(831)](e[t(2396)](x)) > -1 || x[t(1991)]()[t(831)](t(1446)) > 1 ? t(2492) : t(2383); } - static [n(662)](e = {}, t) { - return new ne(e, t); + static [s(542)](x = {}, t) { + return new ax(x, t); } - [n(1897)](e = {}, t = le) { - const a = n, x = e.forkResourceStore; - x && delete e[a(1849)]; - const r = { ...this[a(2687)], ...e, isClone: !0 }, s = new ne(r); - if ((e.debug !== void 0 || e[a(2212)] !== void 0) && (s[a(1077)] = s[a(1077)][a(1408)](e)), ["store", a(1235), a(711)][a(1238)]((c) => { - s[c] = this[c]; - }), s[a(1235)] = { ...this.services }, s[a(1235)][a(2305)] = { hasLoadedNamespace: s.hasLoadedNamespace[a(1571)](s) }, x) { - const c = Object[a(2278)](this[a(915)].data)[a(2257)]((d, u) => { - const f = a; - return d[u] = { ...this[f(915)][f(726)][u] }, d[u] = Object[f(2278)](d[u])[f(2257)]((l, g) => (l[g] = { ...d[u][g] }, l), d[u]), d; + [s(2286)](x = {}, t = dx) { + var a = s; + const e = x[a(2458)]; + e && delete x[a(2458)]; + const r = { ...this.options, ...x, isClone: !0 }, n = new ax(r); + if ((x[a(2491)] !== void 0 || x[a(967)] !== void 0) && (n.logger = n[a(1238)].clone(x)), ["store", "services", "language"][a(1222)]((c) => { + n[c] = this[c]; + }), n[a(1161)] = { ...this[a(1161)] }, n[a(1161)].utils = { hasLoadedNamespace: n[a(1956)][a(1748)](n) }, e) { + const c = Object[a(1040)](this[a(917)][a(1073)]).reduce((u, d) => { + var f = a; + return u[d] = { ...this.store[f(1073)][d] }, u[d] = Object[f(1040)](u[d])[f(2483)]((l, v) => (l[v] = { ...u[d][v] }, l), u[d]), u; }, {}); - s[a(915)] = new Fa(c, r), s[a(1235)][a(1686)] = s[a(915)]; + n.store = new $r(c, r), n[a(1161)][a(1063)] = n.store; } - return s.translator = new Ne(s.services, r), s[a(1003)].on("*", (c, ...d) => { - s.emit(c, ...d); - }), s.init(r, t), s[a(1003)].options = r, s[a(1003)][a(1058)][a(1235)][a(2305)] = { hasLoadedNamespace: s[a(870)][a(1571)](s) }, s; + return n[a(1345)] = new Cx(n.services, r), n[a(1345)].on("*", (c, ...u) => { + var d = a; + n[d(2206)](c, ...u); + }), n[a(1448)](r, t), n.translator.options = r, n.translator[a(1459)].services[a(846)] = { hasLoadedNamespace: n[a(1956)][a(1748)](n) }, n; } - [n(1390)]() { - const e = n; - return { options: this[e(2687)], store: this[e(915)], language: this[e(711)], languages: this.languages, resolvedLanguage: this[e(2041)] }; + toJSON() { + var x = s; + return { options: this[x(778)], store: this[x(917)], language: this[x(1867)], languages: this[x(2087)], resolvedLanguage: this[x(2583)] }; } } -const G0 = ne[n(662)](); -G0[n(662)] = ne.createInstance, G0.createInstance, G0[n(897)], G0.init, G0[n(2069)], G0.reloadResources, G0[n(1912)], G0.changeLanguage, G0.getFixedT, G0.t, G0[n(540)], G0.setDefaultNamespace, G0[n(870)], G0.loadNamespaces, G0[n(1149)]; -function hc() { - const i = n; - if (typeof navigator !== i(2634) && navigator[i(711)]) return navigator[i(711)] === i(2160) ? i(2160) : i(2352); +const Y0 = ax[s(542)](); +Y0[s(542)] = ax[s(542)], Y0[s(542)], Y0[s(2431)], Y0[s(1448)], Y0[s(1263)], Y0[s(2497)], Y0[s(1509)], Y0[s(1650)], Y0[s(668)], Y0.t, Y0.exists, Y0.setDefaultNamespace, Y0.hasLoadedNamespace, Y0[s(1689)], Y0[s(1647)]; +function po() { + var i = s; + if (typeof navigator !== i(1887) && navigator.language) return navigator[i(1867)] === i(734) ? i(734) : i(363); try { - const e = typeof require < "u" ? require : void 0; - if (e) - return e("uxp").host[i(1548)][i(1817)]("zh") ? i(2160) : i(2352); + const x = typeof require !== i(1887) ? require : void 0; + if (x) + return x(i(780))[i(671)][i(1846)][i(467)]("zh") ? "zh-CN" : "en-US"; } catch { } - return i(2352); + return "en-US"; } -let hs = hc(); -const pc = { "zh-CN": {}, "en-US": {} }; +let Vs = po(); +const mo = { "zh-CN": {}, "en-US": {} }; function Jt(i) { - const e = i === "zh-CN" ? K2 : J2, t = pc[i]; - return { ...e, ...t }; + const x = i === "zh-CN" ? Ki : Ji, t = mo[i]; + return { ...x, ...t }; } -function mc() { - return hs; +function vo() { + return Vs; } -function Qt(i, e = {}) { - const t = n; - let x = Jt(hs)[i]; - return x ? typeof x === t(923) ? x[t(2188)](/\{\{(\w+)\}\}/g, (r, s) => e[s] !== void 0 ? String(e[s]) : r) : x : i; +function Gt(i, x = {}) { + var t = s; + let e = Jt(Vs)[i]; + return e ? typeof e == "string" ? e[t(2112)](/\{\{(\w+)\}\}/g, (r, n) => x[n] !== void 0 ? String(x[n]) : r) : e : i; } -const gc = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, vc = { "&": "&", "&": "&", "<": "<", "<": "<", ">": ">", ">": ">", "'": "'", "'": "'", """: '"', """: '"', " ": " ", " ": " ", "©": "©", "©": "©", "®": "®", "®": "®", "…": "…", "…": "…", "/": "/", "/": "/" }, yc = (i) => vc[i], bc = (i) => i.replace(gc, yc); -let $a = { bindI18n: "languageChanged", bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", n(1632), "i", "p"], useSuspense: !0, unescape: bc }; -const wc = (i = {}) => { - $a = { ...$a, ...i }; -}, Sc = { type: "3rdParty", init(i) { - const e = n; - wc(i[e(2687)][e(1886)]); +function Ws(i) { + var x = s; + return i && i[x(951)] && Object[x(2180)][x(781)].call(i, x(2641)) ? i[x(2641)] : i; +} +const go = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, yo = { "&": "&", "&": "&", "<": "<", "<": "<", ">": ">", ">": ">", "'": "'", "'": "'", """: '"', """: '"', " ": " ", " ": " ", "©": "©", "©": "©", "®": "®", "®": "®", "…": "…", "…": "…", "/": "/", "/": "/" }, bo = (i) => yo[i], wo = (i) => i[s(2112)](go, bo); +let Gr = { bindI18n: s(322), bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", s(2031), "i", "p"], useSuspense: !0, unescape: wo }; +const So = (i = {}) => { + Gr = { ...Gr, ...i }; +}, ko = { type: "3rdParty", init(i) { + var x = s; + So(i.options[x(2526)]); } }; -!G0[n(845)] && G0.use(Sc)[n(1717)]({ resources: { "zh-CN": { translation: Jt(n(2160)) }, "en-US": { translation: Jt(n(2352)) } }, lng: mc(), fallbackLng: n(2352), interpolation: { escapeValue: !1 } }); -const Ix = []; -xe.widgetable = xe[n(1747)] || {}, xe.widgetable[n(2295)] = function(i, e) { - const t = n; - typeof e === t(1342) ? Ix[t(818)]([i, { formatter: e, setter: null }]) : Ix[t(818)]([i, e]); +!Y0[s(290)] && Y0[s(1509)](ko)[s(1448)]({ resources: { "zh-CN": { translation: Jt("zh-CN") }, "en-US": { translation: Jt("en-US") } }, lng: vo(), fallbackLng: s(363), interpolation: { escapeValue: !1 } }); +const Re = []; +_e[s(2323)] = _e.widgetable || {}, _e[s(2323)].add = function(i, x) { + var t = s; + typeof x === t(1853) ? Re[t(2380)]([i, { formatter: x, setter: null }]) : Re[t(2380)]([i, x]); }; -function Pc(i, e, t) { - var c, d, u; - const a = n, x = Ix[a(714)](([f]) => f == a(764)), r = Ix.find(([f]) => sr(f, i[a(2426)])) || x; - let s = !1; +function Eo(i, x, t) { + var c, u, d; + var a = s; + const e = Re[a(1666)](([f]) => { + var l = a; + return f == l(867); + }), r = Re[a(1666)](([f]) => { + var l = a; + return ar(f, i[l(338)]); + }) || e; + let n = !1; if (r) { - const f = r[1].setter; - f && (s = !!f(i, e, t)); + const f = r[1][a(815)]; + f && (n = !!f(i, x, t)); } - !s && (i[a(759)][e][a(2391)] = t, (d = (c = i[a(759)][e])[a(2356)]) == null || d.call(c, t)), (u = (R0[a(1597)] || R0[a(1691)][a(1009)]).activeWorkflow) == null || u[a(647)][a(1795)](); + !n && (i[a(621)][x][a(2038)] = t, (u = (c = i[a(621)][x])[a(2066)]) == null || u.call(c, t)), (d = (q0.workflowManager || q0.extensionManager.workflow)[a(1693)]) == null || d[a(587)][a(2588)](); } -function qe(i) { - const e = n, t = {}, a = Ix[e(714)](([x]) => x == e(764)); - return i.nodes[e(1238)]((x) => { - const r = e; - if (!x[r(759)] || x[r(759)][r(1200)] == 0) return; - const s = Ix[r(714)](([o]) => sr(o, x.type)) || a; - if (s) try { - const o = s[1].formatter(x); - o && (t[x.id] = o.widgets[r(2404)]((c) => c[r(2391)])); +function Fx(i) { + var x = s; + const t = {}, a = Re[x(1666)](([e]) => { + var r = x; + return e == r(867); + }); + return i[x(719)][x(1222)]((e) => { + var r = x; + if (!e.widgets || e.widgets.length == 0) return; + const n = Re[r(1666)](([o]) => { + var c = r; + return ar(o, e[c(338)]); + }) || a; + if (n) try { + const o = n[1][r(2047)](e); + o && (t[e.id] = o[r(621)][r(632)]((c) => c[r(2038)])); } catch { - t[x.id] = []; + t[e.id] = []; } }), t; } -function Gt(i, e) { - var r, s, o; - const t = n; +function Qt(i, x) { + var r, n, o; + var t = s; if (!i) return { widgetableID: "", widgetablePath: "", nodes: {}, nodeIndexes: [], options: {}, note: "" }; - const a = i[t(892)][t(2404)]((c) => { - const d = t; - if (c[d(1823)] != 0) return; - const u = me(c); - if (!u || u.startsWith(".") || !c.widgets || c[d(759)][d(1200)] == 0) return; - let f = Ix[d(714)](([m]) => sr(m, c.type)); + const a = i[t(719)][t(632)]((c) => { + var u = t; + if (c[u(306)] != 0) return; + const d = hx(c); + if (!d || d[u(467)](".") || !c[u(621)] || c[u(621)].length == 0) return; + let f = Re.find(([m]) => { + var y = u; + return ar(m, c[y(338)]); + }); if (f) try { - const m = f[1].formatter(c); - if (m) return m.id = c.id, m[d(564)] = m[d(759)][d(2257)]((y, w) => y + (w[d(665)] || 12), 0), m; + const m = f[1][u(2047)](c); + if (m) return m.id = c.id, m[u(1792)] = m[u(621)].reduce((y, w) => y + (w[u(2417)] || 12), 0), m; } catch (m) { - return { id: c.id, title: u, uiWeightSum: 12, widgets: [{ outputType: "error", value: Qt(d(613), f[0]) + (m[d(2353)] || m || ""), name: "", options: {} }] }; + return { id: c.id, title: d, uiWeightSum: 12, widgets: [{ outputType: "error", value: Gt(u(385), f[0]) + (m[u(2089)] || m || ""), name: "", options: {} }] }; } - if (!u[d(1817)]("#")) return null; - let l = c.widgets; - const g = Ix[d(714)](([m]) => m == d(764)); - if (g) { - const m = g[1][d(675)](c); - if (m) return Object[d(747)](m, { uiWeightSum: m[d(759)][d(2257)]((y, w) => y + (w.uiWeight || 12), 0) }); + if (!d[u(467)]("#")) return null; + let l = c[u(621)]; + const v = Re.find(([m]) => { + var y = u; + return m == y(867); + }); + if (v) { + const m = v[1][u(2047)](c); + if (m) return Object.assign(m, { uiWeightSum: m.widgets.reduce((y, w) => y + (w[u(2417)] || 12), 0) }); } - const h = { id: c.id, title: u, widgets: l[d(2404)]((m) => ({ name: m.label || m[d(2200)], outputType: m[d(2426)] || d(923), value: m.value, options: m.options })) }; - return Object.assign(h, { uiWeightSum: h[d(759)][d(2257)]((m, y) => m + (y[d(665)] || 12), 0) }); - })[t(893)](Boolean).sort((c, d) => { - const u = t; - let f = me(c), l = me(d); - return f = f[u(1817)]("#") ? f[u(2602)](1)[u(2754)]() : f[u(2754)](), l = l[u(1817)]("#") ? l[u(2602)](1).trim() : l[u(2754)](), f[u(819)](l); - }), x = ((s = (r = i.nodes[t(714)]((c) => c[t(2426)] == t(2673) && c.title[t(799)](/SD-?PPP/i))) == null ? void 0 : r.widgets[0]) == null ? void 0 : s.value) || ""; - return { widgetablePath: ((o = e[t(1211)][t(1002)]) == null ? void 0 : o[t(1593)]) || e[t(1728)], widgetableID: e.activeState.id, nodes: a[t(2257)]((c, d) => (c[d.id] = d, c), {}), note: x, nodeIndexes: a[t(2404)]((c) => c.id), options: {} }; + const h = { id: c.id, title: d, widgets: l[u(632)]((m) => ({ name: m[u(2501)] || m[u(940)], outputType: m[u(338)] || "string", value: m.value, options: m.options })) }; + return Object[u(740)](h, { uiWeightSum: h[u(621)][u(2483)]((m, y) => m + (y[u(2417)] || 12), 0) }); + })[t(2397)](Boolean)[t(759)]((c, u) => { + var d = t; + let f = hx(c), l = hx(u); + return f = f[d(467)]("#") ? f[d(1813)](1).trim() : f[d(902)](), l = l[d(467)]("#") ? l[d(1813)](1).trim() : l[d(902)](), f[d(2051)](l); + }), e = ((n = (r = i[t(719)].find((c) => c[t(338)] == t(708) && c[t(344)].match(/SD-?PPP/i))) == null ? void 0 : r.widgets[0]) == null ? void 0 : n.value) || ""; + return { widgetablePath: ((o = x.activeState.extra) == null ? void 0 : o[t(515)]) || x[t(1796)], widgetableID: x[t(1708)].id, nodes: a.reduce((c, u) => (c[u.id] = u, c), {}), note: e, nodeIndexes: a[t(632)]((c) => c.id), options: {} }; } -function sr(i, e) { - const t = n, a = i.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/\?/g, "."); - return new RegExp("^" + a + "$")[t(1313)](e); +function ar(i, x) { + var t = s; + const a = i[t(2112)](/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*")[t(2112)](/\?/g, "."); + return new RegExp("^" + a + "$")[t(856)](x); } -function me(i, e = "") { - var x; - const t = n; - let a = e || i.title || ""; - return i[t(1640)] && (a[t(1817)]("#") || a[t(1817)](".")) ? i[t(1640)](t(528), a) : a = ((x = i[t(2372)]) == null ? void 0 : x.sdppp_widgetable_title) || a, a; +function hx(i, x = "") { + var e; + var t = s; + let a = x || i.title || ""; + return i.setProperty && (a[t(467)]("#") || a[t(467)](".")) ? i.setProperty("sdppp_widgetable_title", a) : a = ((e = i.properties) == null ? void 0 : e[t(1021)]) || a, a; } -xe[n(1233)] = me; -var he = { exports: {} }, qt, za; -function kc() { - if (za) return qt; - za = 1; - var i = 1e3, e = i * 60, t = e * 60, a = t * 24, x = a * 7, r = a * 365.25; - qt = function(u, f) { - const l = B; +_e[s(347)] = hx; +var fx = { exports: {} }, Wx, Qr; +function Io() { + if (Qr) return Wx; + Qr = 1; + var i = 1e3, x = i * 60, t = x * 60, a = t * 24, e = a * 7, r = a * 365.25; + Wx = function(d, f) { + var l = K; f = f || {}; - var g = typeof u; - if (g === l(923) && u[l(1200)] > 0) return s(u); - if (g === l(2074) && isFinite(u)) return f[l(2750)] ? c(u) : o(u); - throw new Error(l(1979) + JSON.stringify(u)); + var v = typeof d; + if (v === "string" && d[l(2021)] > 0) return n(d); + if (v === l(960) && isFinite(d)) return f.long ? c(d) : o(d); + throw new Error("val is not a non-empty string or a valid number. val=" + JSON[l(990)](d)); }; - function s(u) { - const f = B; - if (u = String(u), !(u.length > 100)) { - var l = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i[f(2548)](u); + function n(d) { + var f = K; + if (d = String(d), !(d[f(2021)] > 100)) { + var l = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d); if (l) { - var g = parseFloat(l[1]), h = (l[2] || "ms")[f(1466)](); + var v = parseFloat(l[1]), h = (l[2] || "ms")[f(1991)](); switch (h) { - case "years": - case f(1098): - case f(585): + case f(2164): + case f(2075): + case "yrs": case "yr": case "y": - return g * r; - case f(2235): - case f(529): + return v * r; + case f(2517): + case f(584): case "w": - return g * x; - case f(1283): - case f(1020): + return v * e; + case f(2604): + case f(1351): case "d": - return g * a; - case f(2591): - case f(1869): - case f(2368): + return v * a; + case f(360): + case "hour": + case "hrs": case "hr": case "h": - return g * t; - case "minutes": - case f(1862): - case "mins": - case f(606): + return v * t; + case f(2131): + case f(2504): + case f(946): + case "min": case "m": - return g * e; - case "seconds": - case f(2065): - case f(1308): - case f(1393): + return v * x; + case f(2638): + case f(1029): + case f(2027): + case f(1022): case "s": - return g * i; - case f(1654): - case f(1950): - case f(2293): - case "msec": + return v * i; + case "milliseconds": + case f(2119): + case "msecs": + case f(942): case "ms": - return g; + return v; default: return; } } } } - function o(u) { - const f = B; - var l = Math[f(1493)](u); - return l >= a ? Math[f(539)](u / a) + "d" : l >= t ? Math[f(539)](u / t) + "h" : l >= e ? Math.round(u / e) + "m" : l >= i ? Math[f(539)](u / i) + "s" : u + "ms"; + function o(d) { + var f = K, l = Math[f(1580)](d); + return l >= a ? Math[f(440)](d / a) + "d" : l >= t ? Math[f(440)](d / t) + "h" : l >= x ? Math[f(440)](d / x) + "m" : l >= i ? Math[f(440)](d / i) + "s" : d + "ms"; } - function c(u) { - const f = B; - var l = Math.abs(u); - return l >= a ? d(u, l, a, "day") : l >= t ? d(u, l, t, f(1869)) : l >= e ? d(u, l, e, f(1862)) : l >= i ? d(u, l, i, f(2065)) : u + f(535); + function c(d) { + var f = K, l = Math[f(1580)](d); + return l >= a ? u(d, l, a, f(1351)) : l >= t ? u(d, l, t, f(783)) : l >= x ? u(d, l, x, "minute") : l >= i ? u(d, l, i, f(1029)) : d + f(585); } - function d(u, f, l, g) { - const h = B; - var m = f >= l * 1.5; - return Math[h(539)](u / l) + " " + g + (m ? "s" : ""); + function u(d, f, l, v) { + var h = K, m = f >= l * 1.5; + return Math[h(440)](d / l) + " " + v + (m ? "s" : ""); } - return qt; + return Wx; } -var Ot, Ha; -function Ec() { - if (Ha) return Ot; - Ha = 1; - function i(e) { - const t = B; - x.debug = x, x.default = x, x[t(858)] = u, x[t(891)] = c, x.enable = s, x[t(2115)] = d, x.humanize = kc(), x.destroy = f, Object[t(2278)](e)[t(1238)]((l) => { - x[l] = e[l]; - }), x.names = [], x[t(1631)] = [], x.formatters = {}; +var Zx, Xr; +function Po() { + if (Xr) return Zx; + Xr = 1; + function i(x) { + var t = K; + e[t(2491)] = e, e[t(2641)] = e, e[t(779)] = d, e[t(1280)] = c, e[t(1043)] = n, e[t(2254)] = u, e[t(1155)] = Io(), e[t(1891)] = f, Object[t(1040)](x).forEach((l) => { + e[l] = x[l]; + }), e[t(2083)] = [], e[t(1514)] = [], e[t(450)] = {}; function a(l) { - const g = t; + var v = t; let h = 0; - for (let m = 0; m < l.length; m++) - h = (h << 5) - h + l.charCodeAt(m), h |= 0; - return x[g(2044)][Math[g(1493)](h) % x[g(2044)][g(1200)]]; + for (let m = 0; m < l[v(2021)]; m++) + h = (h << 5) - h + l[v(2184)](m), h |= 0; + return e[v(1460)][Math[v(1580)](h) % e[v(1460)].length]; } - x.selectColor = a; - function x(l) { - const g = t; + e[t(1038)] = a; + function e(l) { + var v = t; let h, m = null, y, w; - function S(...R) { - const A = B; - if (!S[A(2115)]) return; - const C = S, P = Number(/* @__PURE__ */ new Date()), E = P - (h || P); - C[A(2413)] = E, C.prev = h, C[A(2265)] = P, h = P, R[0] = x[A(858)](R[0]), typeof R[0] !== A(923) && R[A(1885)]("%O"); - let D = 0; - R[0] = R[0].replace(/%([a-zA-Z%])/g, (M, F) => { - const N = A; + function E(...O) { + var T = K; + if (!E.enabled) return; + const R = E, k = Number(/* @__PURE__ */ new Date()), N = k - (h || k); + R[T(1659)] = N, R[T(562)] = h, R[T(376)] = k, h = k, O[0] = e[T(779)](O[0]), typeof O[0] != "string" && O.unshift("%O"); + let j = 0; + O[0] = O[0][T(2112)](/%([a-zA-Z%])/g, (M, F) => { + var C = T; if (M === "%%") return "%"; - D++; - const U = x[N(1039)][F]; - if (typeof U === N(1342)) { - const $ = R[D]; - M = U[N(2518)](C, $), R[N(1065)](D, 1), D--; + j++; + const H = e.formatters[F]; + if (typeof H == "function") { + const U = O[j]; + M = H.call(R, U), O[C(855)](j, 1), j--; } return M; - }), x.formatArgs[A(2518)](C, R), (C[A(816)] || x.log).apply(C, R); + }), e.formatArgs[T(1547)](R, O), (R[T(1133)] || e[T(1133)])[T(756)](R, O); } - return S[g(1533)] = l, S[g(2191)] = x[g(2191)](), S[g(1034)] = x[g(1988)](l), S[g(2453)] = r, S.destroy = x[g(519)], Object[g(1907)](S, g(2115), { enumerable: !0, configurable: !1, get: () => { - const R = g; - return m !== null ? m : (y !== x[R(2694)] && (y = x[R(2694)], w = x[R(2115)](l)), w); - }, set: (R) => { - m = R; - } }), typeof x.init === g(1342) && x[g(1717)](S), S; + return E.namespace = l, E[v(2179)] = e[v(2179)](), E[v(1219)] = e[v(1038)](l), E.extend = r, E.destroy = e[v(1891)], Object.defineProperty(E, v(2254), { enumerable: !0, configurable: !1, get: () => { + var O = v; + return m !== null ? m : (y !== e.namespaces && (y = e[O(1330)], w = e[O(2254)](l)), w); + }, set: (O) => { + m = O; + } }), typeof e[v(1448)] === v(1853) && e[v(1448)](E), E; } - function r(l, g) { - const h = t, m = x(this[h(1533)] + (typeof g === h(2634) ? ":" : g) + l); - return m[h(816)] = this[h(816)], m; + function r(l, v) { + var h = t; + const m = e(this[h(580)] + (typeof v === h(1887) ? ":" : v) + l); + return m[h(1133)] = this[h(1133)], m; } - function s(l) { - const g = t; - x[g(1374)](l), x[g(2694)] = l, x.names = [], x.skips = []; - const h = (typeof l === g(923) ? l : "")[g(2754)]()[g(2188)](/\s+/g, ",")[g(2248)](",")[g(893)](Boolean); + function n(l) { + var v = t; + e[v(2265)](l), e[v(1330)] = l, e[v(2083)] = [], e.skips = []; + const h = (typeof l === v(2348) ? l : "")[v(902)]()[v(2112)](/\s+/g, ",")[v(2183)](",")[v(2397)](Boolean); for (const m of h) - m[0] === "-" ? x.skips[g(818)](m.slice(1)) : x.names[g(818)](m); + m[0] === "-" ? e[v(1514)][v(2380)](m[v(1813)](1)) : e[v(2083)][v(2380)](m); } - function o(l, g) { - const h = t; - let m = 0, y = 0, w = -1, S = 0; - for (; m < l[h(1200)]; ) - if (y < g[h(1200)] && (g[y] === l[m] || g[y] === "*")) g[y] === "*" ? (w = y, S = m, y++) : (m++, y++); - else if (w !== -1) y = w + 1, S++, m = S; + function o(l, v) { + var h = t; + let m = 0, y = 0, w = -1, E = 0; + for (; m < l[h(2021)]; ) + if (y < v[h(2021)] && (v[y] === l[m] || v[y] === "*")) v[y] === "*" ? (w = y, E = m, y++) : (m++, y++); + else if (w !== -1) y = w + 1, E++, m = E; else return !1; - for (; y < g[h(1200)] && g[y] === "*"; ) + for (; y < v[h(2021)] && v[y] === "*"; ) y++; - return y === g[h(1200)]; + return y === v[h(2021)]; } function c() { - const l = t, g = [...x.names, ...x.skips[l(2404)]((h) => "-" + h)][l(2573)](","); - return x[l(2027)](""), g; + var l = t; + const v = [...e[l(2083)], ...e[l(1514)][l(632)]((h) => "-" + h)][l(2515)](","); + return e.enable(""), v; } - function d(l) { - const g = t; - for (const h of x[g(1631)]) + function u(l) { + var v = t; + for (const h of e.skips) if (o(l, h)) return !1; - for (const h of x[g(812)]) + for (const h of e[v(2083)]) if (o(l, h)) return !0; return !1; } - function u(l) { - const g = t; - return l instanceof Error ? l.stack || l[g(2353)] : l; + function d(l) { + var v = t; + return l instanceof Error ? l[v(2108)] || l[v(2089)] : l; } function f() { - const l = t; - console[l(1808)](l(2102)); + var l = t; + console[l(1797)](l(1663)); } - return x[t(2027)](x[t(657)]()), x; + return e.enable(e[t(2617)]()), e; } - return Ot = i, Ot; + return Zx = i, Zx; } -var Ua; -function Cc() { - const i = n; - return Ua ? he[i(1791)] : (Ua = 1, function(e, t) { - const a = i; - t[a(1982)] = r, t[a(1374)] = s, t[a(657)] = o, t[a(2191)] = x, t[a(2139)] = c(), t[a(519)] = /* @__PURE__ */ (() => { - let u = !1; +var Yr; +function Ro() { + var i = s; + return Yr ? fx[i(1175)] : (Yr = 1, function(x, t) { + var a = i; + t.formatArgs = r, t[a(2265)] = n, t[a(2617)] = o, t.useColors = e, t[a(2650)] = c(), t[a(1891)] = /* @__PURE__ */ (() => { + let d = !1; return () => { - const f = B; - !u && (u = !0, console[f(1808)](f(2102))); + var f = K; + !d && (d = !0, console[f(1797)](f(1663))); }; - })(), t[a(2044)] = [a(1396), a(2470), a(1665), a(1301), a(1384), "#0066FF", a(1816), a(1276), a(902), a(1980), a(537), a(2221), a(2620), a(960), a(1751), a(1695), a(1812), a(994), a(2253), a(2396), a(757), a(2302), "#33CC00", a(1337), a(1781), a(1431), a(1048), a(2448), a(2719), a(2052), a(2497), a(2540), a(1156), a(1018), "#9900CC", a(1217), a(972), a(835), a(2282), "#99CC33", "#CC0000", a(2357), "#CC0066", "#CC0099", a(2527), a(2067), a(2501), a(1828), a(2232), a(2401), "#CC33CC", a(1365), a(1771), "#CC6633", "#CC9900", "#CC9933", a(1084), a(1401), a(2730), "#FF0033", "#FF0066", a(1662), "#FF00CC", a(487), a(2569), "#FF3333", a(1447), "#FF3399", "#FF33CC", a(649), a(1310), a(1426), a(788), a(1248), a(814), a(625)]; - function x() { - const u = a; - if (typeof window !== u(2634) && window[u(2002)] && (window[u(2002)][u(2426)] === "renderer" || window[u(2002)][u(1802)])) return !0; - if (typeof navigator !== u(2634) && navigator[u(1660)] && navigator[u(1660)].toLowerCase()[u(799)](/(edge|trident)\/(\d+)/)) return !1; + })(), t.colors = [a(1869), a(1606), "#0033CC", a(1421), a(1143), a(1176), a(620), a(2471), a(2547), a(1771), a(992), a(1402), a(2054), a(609), a(1297), "#3300FF", "#3333CC", a(886), a(1671), "#3366FF", a(1683), a(2634), a(2211), a(1426), "#33CC66", a(1860), a(2585), a(2518), a(2237), a(1908), a(1945), a(926), a(1702), a(300), a(743), a(1740), a(987), a(2357), a(1056), a(2328), a(1833), a(1141), a(2330), a(2090), a(1249), a(1898), "#CC3300", a(1984), "#CC3366", a(641), "#CC33CC", a(1456), "#CC6600", a(1576), a(2368), a(2611), a(2313), a(2484), "#FF0000", a(514), "#FF0066", a(662), a(1167), "#FF00FF", a(1875), a(285), "#FF3366", a(943), a(1710), a(1574), a(1605), a(1105), a(1615), a(2533), a(552), a(1553)]; + function e() { + var d = a; + if (typeof window !== d(1887) && window[d(535)] && (window[d(535)][d(338)] === d(2589) || window[d(535)][d(2247)])) return !0; + if (typeof navigator !== d(1887) && navigator.userAgent && navigator[d(2178)][d(1991)]()[d(2069)](/(edge|trident)\/(\d+)/)) return !1; let f; - return typeof document < "u" && document[u(2537)] && document[u(2537)][u(572)] && document.documentElement[u(572)][u(2304)] || typeof window !== u(2634) && window[u(1334)] && (window[u(1334)].firebug || window[u(1334)][u(1249)] && window[u(1334)][u(627)]) || typeof navigator !== u(2634) && navigator.userAgent && (f = navigator[u(1660)][u(1466)]()[u(799)](/firefox\/(\d+)/)) && parseInt(f[1], 10) >= 31 || typeof navigator !== u(2634) && navigator.userAgent && navigator[u(1660)][u(1466)]().match(/applewebkit\/(\d+)/); + return typeof document !== d(1887) && document[d(2410)] && document.documentElement.style && document[d(2410)].style.WebkitAppearance || typeof window !== d(1887) && window.console && (window[d(2142)].firebug || window[d(2142)].exception && window.console[d(1928)]) || typeof navigator !== d(1887) && navigator.userAgent && (f = navigator.userAgent[d(1991)]()[d(2069)](/firefox\/(\d+)/)) && parseInt(f[1], 10) >= 31 || typeof navigator !== d(1887) && navigator[d(2178)] && navigator.userAgent[d(1991)]()[d(2069)](/applewebkit\/(\d+)/); } - function r(u) { - const f = a; - if (u[0] = (this.useColors ? "%c" : "") + this.namespace + (this[f(2191)] ? f(694) : " ") + u[0] + (this.useColors ? "%c " : " ") + "+" + e[f(1791)][f(793)](this[f(2413)]), !this[f(2191)]) return; - const l = f(846) + this.color; - u[f(1065)](1, 0, l, "color: inherit"); - let g = 0, h = 0; - u[0].replace(/%[a-zA-Z%]/g, (m) => { - m !== "%%" && (g++, m === "%c" && (h = g)); - }), u[f(1065)](h, 0, l); + function r(d) { + var f = a; + if (d[0] = (this[f(2179)] ? "%c" : "") + this[f(580)] + (this.useColors ? " %c" : " ") + d[0] + (this.useColors ? f(1405) : " ") + "+" + x.exports[f(1155)](this[f(1659)]), !this[f(2179)]) return; + const l = f(631) + this[f(1219)]; + d[f(855)](1, 0, l, f(567)); + let v = 0, h = 0; + d[0][f(2112)](/%[a-zA-Z%]/g, (m) => { + m !== "%%" && (v++, m === "%c" && (h = v)); + }), d[f(855)](h, 0, l); } - t[a(816)] = console[a(855)] || console.log || (() => { + t.log = console.debug || console[a(1133)] || (() => { }); - function s(u) { - const f = a; + function n(d) { + var f = a; try { - u ? t.storage.setItem(f(855), u) : t.storage[f(802)](f(855)); + d ? t.storage.setItem(f(2491), d) : t[f(2650)][f(1074)]("debug"); } catch { } } function o() { - const u = a; + var d = a; let f; try { - f = t[u(2139)][u(2031)](u(855)) || t[u(2139)][u(2031)]("DEBUG"); + f = t.storage[d(2270)](d(2491)) || t[d(2650)].getItem("DEBUG"); } catch { } - return !f && typeof process !== u(2634) && "env" in process && (f = process.env[u(587)]), f; + return !f && typeof process !== d(1887) && d(1197) in process && (f = process[d(1197)][d(1054)]), f; } function c() { try { @@ -7203,397 +4571,3108 @@ function Cc() { } catch { } } - e[a(1791)] = Ec()(t); - const { formatters: d } = e[a(1791)]; - d.j = function(u) { - const f = a; + x[a(1175)] = Po()(t); + const { formatters: u } = x[a(1175)]; + u.j = function(d) { + var f = a; try { - return JSON[f(2301)](u); + return JSON.stringify(d); } catch (l) { - return f(2021) + l[f(2353)]; + return "[UnexpectedJSONParseError]: " + l[f(2089)]; } }; - }(he, he[i(1791)]), he.exports); + }(fx, fx.exports), fx.exports); } -var Ic = Cc(); -const ps = is(Ic); -ps.enable("*"); -function Rc(i, e) { - const t = n, a = ps(i), x = (r, s) => async function(...o) { +var Co = Ro(); +const Zs = Ws(Co); +Zs.enable("*"); +function Fo(i, x) { + var t = s; + const a = Zs(i), e = (r, n) => async function(...o) { try { - await e({ level: r, messages: o }); + await x({ level: r, messages: o }); } catch { } }; - return a.log = x(t(816)), a; + return a[t(1133)] = e("log"), a; } -const Me = Rc("mesh:comfy", async ({ level: i, messages: e }) => { - const t = n, { mcpMesh: a } = await Promise.resolve()[t(1413)](() => Tc); - await a[t(2369)](t(577))[t(1524)][t(816)]({ level: i, messages: e }); -}), Yt = Me.extend("mesh:workflow"), Va = /* @__PURE__ */ new Set(); -C0.implementAction("setWidgetValue", async (i) => { - const e = n; - return i[e(1109)][e(1238)](({ nodeID: t, widgetIndex: a, value: x }) => { - const r = e, s = R0[r(2751)][r(892)][r(714)]((o) => o.id == t); - !s || x == s.widgets[a][r(2391)] || Pc(s, a, x); +const qx = Fo(s(1438), async ({ level: i, messages: x }) => { + var t = s; + const { mcpMesh: a } = await Promise[t(1890)]()[t(432)](() => jc); + await a[t(2223)](t(780))[t(2154)].log({ level: i, messages: x }); +}), Xt = qx[s(1369)](s(492)), _r = /* @__PURE__ */ new Set(); +C0.implementAction(s(1555), async (i) => { + var x = s; + return i[x(2166)].forEach(({ nodeID: t, widgetIndex: a, value: e }) => { + var r = x; + const n = q0[r(2506)][r(719)].find((o) => o.id == t); + !n || e == n.widgets[a][r(2038)] || Eo(n, a, e); }), { success: !0 }; -}), C0.implementAction(n(707), async (i) => { - const e = n, { workflow_path: t } = i, a = !Va[e(2333)](t), x = i[e(717)] || a; - if (Va[e(2295)](t), t[e(1817)]("sdppp://")) return await c(t); - const r = R0.extensionManager[e(1009)] || R0[e(1597)], s = r[e(1328)].find((d) => d[e(2281)] === t || d[e(1728)] === t || d[e(1728)] === e(724) + t); - if (!x) { - const d = await Fc(r, s); - return Yt("reset=false but needsReset: " + d), d ? await Za(r, s) : await o(r, s), { success: !0 }; +}), C0.implementAction("openWorkflow", async (i) => { + var x = s; + const { workflow_path: t } = i, a = !_r[x(2561)](t), e = i[x(679)] || a; + _r[x(1342)](t); + const r = q0[x(839)][x(2334)] || q0[x(1079)], n = r[x(2404)][x(1666)]((c) => c[x(834)] === t || c[x(1796)] === t || c[x(1796)] === x(1640) + t); + if (!e) { + const c = await No(r, n); + if (Xt(x(883) + c), c) await Bx(r, n); + else try { + await o(r, n); + } catch { + await Bx(r, n); + } + return { success: !0 }; } - return await Za(r, s), { success: !0 }; - async function o(d, u) { - const f = e; - Yt(f(2362) + u.path, u.initialState), R0.workflowManager == d ? await u[f(657)]() : (await d[f(707)](u), await R0[f(1941)](JSON[f(2156)](JSON.stringify(u[f(659)])), !0, !0, u, {})); + return await Bx(r, n), { success: !0 }; + async function o(c, u) { + var d = x; + Xt("openWorkflow: " + u.path, u.initialState), q0.workflowManager == c ? await u.load() : (await c[d(1166)](u), await q0[d(482)](JSON[d(1325)](JSON[d(990)](u[d(371)])), !0, !0, u, {})); } - async function c(d) { - const u = e, f = d.replace("sdppp://", ""), l = await fetch(u(2095) + f)[u(1413)]((g) => g.json()); - return l[u(1002)].sdppp_workflow_alias = d, await R0[u(1941)](l), { success: !0 }; - } -}), C0.implementAction(n(664), async function(i) { - const e = n; +}), C0.implementAction("openWorkflowJSON", async function(i) { + var x = s; let { workflow_content: t, workflow_path: a } = i; - return t[e(1002)] = { ...t.extra || {}, sdppp_workflow_alias: a }, await R0[e(1941)](t), { success: !0 }; -}), C0[n(933)](n(2546), async (i) => { + return t[x(1005)] = { ...t[x(1005)] || {}, sdppp_workflow_alias: a }, await q0[x(482)](t), { success: !0 }; +}), C0[s(2376)](s(1581), async (i) => { var r; - const e = n, t = R0[e(1597)] || R0[e(1691)][e(1009)]; - (r = t[e(916)]) == null || r.call(t), await new Promise((s) => requestAnimationFrame(s)); - let x = t[e(1328)].map((s) => s[e(1728)][e(2188)](e(724), "")); + var x = s; + const t = q0.workflowManager || q0.extensionManager[x(2334)]; + (r = t[x(1168)]) == null || r.call(t), await new Promise((n) => requestAnimationFrame(n)); + let e = t.workflows[x(632)]((n) => n[x(1796)][x(2112)]("workflows/", "")); try { - const s = new Headers(), o = localStorage.getItem(e(2421)); - o && s[e(510)](e(1965), o); - const c = await fetch(e(2013), { headers: s }); - let d = []; - c.ok && (d = (await c[e(2135)]())[e(2712)][e(2404)]((f) => f[e(2188)](e(724), ""))), x.sort((u, f) => { - const l = e, g = d[l(1958)](u), h = d[l(1958)](f); - return g && !h ? -1 : !g && h ? 1 : u[l(819)](f); + const n = new Headers(), o = localStorage[x(2270)](x(1434)); + o && n[x(1951)](x(833), o); + const c = await fetch(x(1466), { headers: n }); + let u = []; + c.ok && (u = (await c[x(1003)]())[x(2256)][x(632)]((f) => f[x(2112)]("workflows/", ""))), e[x(759)]((d, f) => { + var l = x; + const v = u.includes(d), h = u[l(553)](f); + return v && !h ? -1 : !v && h ? 1 : d.localeCompare(f); }); } catch { } - return { workflows: x, error: "" }; -}), C0.implementAction("saveWorkflow", async (i) => { - var s; - const e = n, { workflow_path: t, from_sid: a } = i, x = R0.workflowManager || R0[e(1691)].workflow, r = x.workflows[e(714)]((o) => o.fullFilename === t || o[e(1728)] === t || o[e(1728)] === e(724) + t); - if (!r) throw new Error("Workflow not found"); - return ((s = x[e(2186)]) == null ? void 0 : s.id) != r.id && await R0[e(707)](t, a, !1), r[e(647)][e(1795)](), await x[e(2189)](r), { success: !0 }; + return { workflows: e, error: "" }; +}), C0[s(2376)](s(2081), async (i) => { + var n; + var x = s; + const { workflow_path: t, from_sid: a } = i, e = q0[x(1079)] || q0[x(839)].workflow, r = e[x(2404)].find((o) => o[x(834)] === t || o[x(1796)] === t || o[x(1796)] === x(1640) + t); + if (!r) throw new Error(x(772)); + return ((n = e[x(1693)]) == null ? void 0 : n.id) != r.id && await q0[x(1166)](t, a, !1), r[x(587)].checkState(), await e[x(2081)](r), { success: !0 }; }); -async function Fc(i, e) { - var x, r, s; - const t = n; - if (!e || !(((x = i[t(2186)]) == null ? void 0 : x.id) === e.id)) return !1; - if ((r = e[t(647)]) != null && r.checkState) try { - e[t(647)][t(1795)](); +async function No(i, x) { + var e, r, n; + var t = s; + if (!x || !(((e = i[t(1693)]) == null ? void 0 : e.id) === x.id)) return !1; + if ((r = x[t(587)]) != null && r[t(2588)]) try { + x[t(587)].checkState(); } catch (o) { - console.warn(t(2122), o); + console[t(1797)](t(2212), o); } try { - const o = (s = R0.graph) == null ? void 0 : s.serialize(), c = e[t(1211)]; + const o = (n = q0[t(2506)]) == null ? void 0 : n.serialize(), c = x[t(1708)]; if (!o || !c) return !1; - const d = JSON[t(2301)](o), u = JSON[t(2301)](c); - return d !== u; + const u = JSON[t(990)](o), d = JSON[t(990)](c); + return u !== d; } catch (o) { - return console.warn("Failed to check workflow state changes:", o), !1; + return console[t(1797)](t(2347), o), !1; } } -async function Za(i, e) { - var r; - const t = n; - Yt("performWorkflowReset: " + e[t(1728)]); - const a = { last_node_id: 0, last_link_id: 0, nodes: [], links: [], groups: [], config: {}, extra: {}, version: 0.4 }; - async function x(s, o) { - const c = t; - R0[c(1597)] == s ? await o[c(657)]() : (await s[c(707)](o), await R0[c(1941)](JSON[c(2156)](JSON[c(2301)](o[c(1211)])), !0, !0, o, {})); +async function Bx(i, x) { + var e; + var t = s; + Xt(t(533) + x[t(1796)]); + async function a(r, n) { + var o = t; + q0[o(1079)] == r ? await n.load() : (await r.openWorkflow(n), await q0[o(482)](JSON.parse(JSON[o(990)](n.activeState)), !0, !0, n, {})); } - (e[t(1639)] || (r = i.isOpen) != null && r.call(i, e)) && i[t(918)][t(1200)] === 1 ? await R0[t(1941)](a) : await x(i, i[t(918)][0] == e ? i[t(918)][1] : i[t(918)][0]), await i[t(697)](e, !1), await new Promise((s) => requestAnimationFrame(s)), await x(i, e); + if ((x[t(2339)] || (e = i[t(2339)]) != null && e.call(i, x)) && i[t(579)][t(2021)] === 1) { + const r = i[t(1034)](); + i.openWorkflow(r); + } else await a(i, i.openWorkflows[0] == x ? i[t(579)][1] : i.openWorkflows[0]); + await i[t(2239)](x, !1), await new Promise((r) => requestAnimationFrame(r)), await a(i, x); } -const _x = Me[n(2453)](n(1602)), Nx = /* @__PURE__ */ new Map(); -function Nc(i, e) { - const t = n, a = Nx[t(1261)](i); - _x(t(676), i, e, a, Nx), a && a[t(2169)](e); +const Xe = qx[s(1369)](s(564)), Ne = /* @__PURE__ */ new Map(); +function qo(i, x) { + var t = s; + const a = Ne.get(i); + Xe(t(1893), i, x, a, Ne), a && a.resolveImage(x); } -C0[n(933)](n(2555), async function* (i) { - const e = n; +C0[s(2376)](s(463), async function* (i) { + var x = s; let t = !1, a = []; - function x() { - const l = B; + function e() { + var l = K; if (t) return; - const g = Ax[l(733)]; - Ax[l(733)] = async (...h) => { - const m = l; + const v = Oe[l(1730)]; + Oe[l(1730)] = async (...h) => { + var m = l; try { - const y = await g[m(2518)](Ax, ...h); - return a[m(818)]({ error: null, result: y, prompt_id: y[m(1731)] }), y; + const y = await v[m(1547)](Oe, ...h); + return a.push({ error: null, result: y, prompt_id: y.prompt_id }), y; } catch (y) { - throw a[m(818)]({ error: y, result: null, prompt_id: "" }), y; + throw a.push({ error: y, result: null, prompt_id: "" }), y; } }, t = !0; } - t || x(); - const r = i[e(1754)]; - let s = !1, o = {}, c = []; - C0[e(915)].setState({ lastError: "", widgetableErrors: {} }); + t || e(); + const r = i[x(1066)]; + let n = !1, o = {}, c = []; + C0[x(917)][x(892)]({ lastError: "", widgetableErrors: {} }); try { - a = [], await R0.queuePrompt(1, r), a[e(1238)]((l) => { + a = [], await q0.queuePrompt(1, r), a.forEach((l) => { var h, m; - const g = e; - if (l[g(2389)]) s = !0, o = l[g(2389)].response ? f(l[g(2389)][g(2259)][g(1420)]) : {}, Object[g(747)](o, { "-1": ((m = (h = l[g(2389)][g(2259)]) == null ? void 0 : h.error) == null ? void 0 : m[g(2353)]) || l[g(2389)][g(2353)] }); + var v = x; + if (l[v(503)]) n = !0, o = l[v(503)][v(2198)] ? f(l[v(503)][v(2198)].node_errors) : {}, Object[v(740)](o, { "-1": ((m = (h = l[v(503)].response) == null ? void 0 : h[v(503)]) == null ? void 0 : m[v(2089)]) || l[v(503)].message }); else { - const y = l[g(1532)][g(1731)]; - c[g(818)](y); - let w, S; - const R = new Promise((C, P) => { - w = C, S = P; - }), A = { promise: R, resolveImage: w, rejectImage: S }; - Nx[g(510)](y, A); + const y = l[v(1806)][v(583)]; + c[v(2380)](y); + let w, E; + const O = new Promise((R, k) => { + w = R, E = k; + }), T = { promise: O, resolveImage: w, rejectImage: E }; + Ne[v(1951)](y, T); } }); } catch (l) { - _x(e(1652), l.stack), s = !0, o = { "-1": l[e(2353)] || l[e(879)]() }; + Xe(x(593), l[x(2108)]), n = !0, o = { "-1": l[x(2089)] || l[x(1892)]() }; } - _x(e(1534), s, o, e(2409), c), s && C0[e(915)].setState({ widgetableErrors: o }); - let d = []; - const u = /* @__PURE__ */ new Map(); + Xe(x(1236), n, o, x(473), c), n && C0[x(917)][x(892)]({ widgetableErrors: o }); + let u = []; + const d = /* @__PURE__ */ new Map(); for (const l of c) { - const g = Nx.get(l); - g && u[e(510)](l, g[e(1001)]); + const v = Ne.get(l); + v && d[x(1951)](l, v[x(694)]); } - for (_x(e(1957)); u.size > 0; ) { - const l = Array.from(u[e(586)]()), g = l[e(2404)](([y, w]) => w[e(1413)]((S) => ({ prompt_id: y, images: S }))), { prompt_id: h, images: m } = await Promise[e(1680)](g); - _x(e(2185), h), d.push(...m), u.delete(h), Nx[e(2653)](h), yield { success: !0, prompt_ids: [h], images: m }; + for (Xe(x(1275)); d[x(1066)] > 0; ) { + const l = Array[x(1147)](d[x(446)]()), v = l[x(632)](([y, w]) => w[x(432)]((E) => ({ prompt_id: y, images: E }))), { prompt_id: h, images: m } = await Promise.race(v); + Xe(x(2151), h), u[x(2380)](...m), d[x(2434)](h), Ne[x(2434)](h), yield { success: !0, prompt_ids: [h], images: m }; } function f(l) { - const g = e, h = {}; - return Object[g(2278)](l).forEach((m) => { - const y = g, w = m[y(2248)](":")[0], S = R0[y(2751)][y(892)][y(714)]((R) => R.id == w); - h[w] = "[" + ((S == null ? void 0 : S[y(1972)]) || w) + "]" + l[m].errors.map(JSON[y(2301)])[y(2573)](` + const v = {}; + return Object.keys(l).forEach((h) => { + var m = K; + const y = h[m(2183)](":")[0], w = q0[m(2506)][m(719)][m(1666)]((E) => E.id == y); + v[y] = "[" + ((w == null ? void 0 : w[m(344)]) || y) + "]" + l[h][m(1188)][m(632)](JSON.stringify).join(` `); - }), h; + }), v; } -}), C0[n(933)]("stopAll", async () => { - const i = n; - await R0[i(1697)][i(598)]("queue"), await R0[i(1697)][i(953)](); - const e = Array.from(Nx[i(1109)]()); - Nx[i(611)](); - for (const t of e) +}), C0[s(2376)](s(578), async () => { + var i = s; + await q0.api[i(1255)]("queue"), await q0[i(1634)].interrupt(); + const x = Array[i(1147)](Ne.values()); + Ne.clear(); + for (const t of x) try { - t.rejectImage(new Error(i(1701))); + t.rejectImage(new Error(i(813))); } catch { } return { success: !0 }; -}), C0[n(933)]("setNodeTitle", async (i) => { - const e = n, { node_id: t, title: a } = i, x = R0[e(2751)][e(892)][e(714)]((r) => r.id == t); - if (!x) throw new Error("Node not found"); - return x[e(1972)] = a, x[e(1640)]("sdppp_widgetable_title", a), { success: !0 }; +}), C0[s(2376)](s(2104), async (i) => { + var x = s; + const { node_id: t, title: a } = i, e = q0[x(2506)][x(719)][x(1666)]((r) => r.id == t); + if (!e) throw new Error(x(1050)); + return e.title = a, e.setProperty(x(1021), a), { success: !0 }; }), C0.implementAction("reboot", async () => { - const i = n, e = await fetch("./api/manager/reboot"); - return e[i(1713)] == 404 ? { error: Qt(i(955)), success: !1 } : e[i(1713)] == 200 ? { success: !0 } : { error: Qt(i(1239)) + e[i(1629)], success: !1 }; -}), C0[n(933)](n(1594), async (i) => { - const e = n, { api_key: t } = i; - return localStorage[e(2603)]("comfy_api_key", t), location[e(2496)](), { success: !0 }; -}), C0[n(933)]("logout", async () => { - const i = n; - return document[i(1674)](i(2440))[i(776)][i(2753)](), { success: !0 }; + var i = s; + const x = await fetch("./api/manager/reboot"); + return x[i(2296)] == 404 ? { error: Gt(i(2519)), success: !1 } : x[i(2296)] == 200 ? { success: !0 } : { error: Gt(i(2147)) + x.statusText, success: !1 }; +}), C0.implementAction(s(739), async (i) => { + var x = s; + const { api_key: t } = i; + return localStorage[x(2124)](x(1781), t), location[x(1525)](), { success: !0 }; +}), C0[s(2376)](s(1209), async () => { + var i = s; + return document[i(2405)](".pi-sign-out")[i(1378)].click(), { success: !0 }; }); -class qc extends Error { - constructor(e, t) { - const a = n; - super(a(1163) + e + a(2415) + t + "ms"), this[a(2200)] = a(1348); +const Bs = s(1247), To = [Bs, "2025-03-26", "2024-11-05", s(1709)], Tx = s(2545), Ks = J0([S(), t0().int()]), Js = S(), Oo = I({ progressToken: Z(Ks) }).passthrough(), ae = I({ _meta: Z(Oo) })[s(1685)](), xe = I({ method: S(), params: Z(ae) }), nx = I({ _meta: Z(I({})[s(1685)]()) })[s(1685)](), ve = I({ method: S(), params: Z(nx) }), se = I({ _meta: Z(I({})[s(1685)]()) })[s(1685)](), Ox = J0([S(), t0()[s(2395)]()]), Gs = I({ jsonrpc: r0(Tx), id: Ox })[s(2310)](xe).strict(), Ao = (i) => Gs.safeParse(i).success, Qs = I({ jsonrpc: r0(Tx) })[s(2310)](ve).strict(), Do = (i) => Qs[s(915)](i)[s(2624)], Xs = I({ jsonrpc: r0(Tx), id: Ox, result: se })[s(565)](), ea = (i) => Xs[s(915)](i).success; +var be; +(function(i) { + var x = s; + i[i.ConnectionClosed = -32e3] = x(686), i[i[x(1131)] = -32001] = x(1131), i[i[x(1931)] = -32700] = "ParseError", i[i.InvalidRequest = -32600] = x(1135), i[i[x(1427)] = -32601] = x(1427), i[i[x(1934)] = -32602] = x(1934), i[i.InternalError = -32603] = "InternalError"; +})(be || (be = {})); +const Ys = I({ jsonrpc: r0(Tx), id: Ox, error: I({ code: t0()[s(2395)](), message: S(), data: Z(sx()) }) })[s(565)](), jo = (i) => Ys.safeParse(i)[s(2624)]; +J0([Gs, Qs, Xs, Ys]); +const Yt = se.strict(), _t = ve[s(1369)]({ method: r0("notifications/cancelled"), params: nx[s(1369)]({ requestId: Ox, reason: S()[s(1285)]() }) }), ix = I({ name: S(), title: Z(S()) })[s(1685)](), _s = ix[s(1369)]({ version: S() }), Mo = I({ experimental: Z(I({})[s(1685)]()), sampling: Z(I({}).passthrough()), elicitation: Z(I({})[s(1685)]()), roots: Z(I({ listChanged: Z(x0()) })[s(1685)]()) })[s(1685)](), en = xe[s(1369)]({ method: r0(s(2226)), params: ae[s(1369)]({ protocolVersion: S(), capabilities: Mo, clientInfo: _s }) }), Lo = I({ experimental: Z(I({})[s(1685)]()), logging: Z(I({})[s(1685)]()), completions: Z(I({})[s(1685)]()), prompts: Z(I({ listChanged: Z(x0()) })[s(1685)]()), resources: Z(I({ subscribe: Z(x0()), listChanged: Z(x0()) })[s(1685)]()), tools: Z(I({ listChanged: Z(x0()) })[s(1685)]()) }).passthrough(), $o = se[s(1369)]({ protocolVersion: S(), capabilities: Lo, serverInfo: _s, instructions: Z(S()) }), xn = ve.extend({ method: r0(s(1752)) }), er = xe[s(1369)]({ method: r0(s(1592)) }), zo = I({ progress: t0(), total: Z(t0()), message: Z(S()) }).passthrough(), xr = ve[s(1369)]({ method: r0(s(901)), params: nx[s(2310)](zo)[s(1369)]({ progressToken: Ks }) }), Ax = xe[s(1369)]({ params: ae[s(1369)]({ cursor: Z(Js) }).optional() }), Dx = se[s(1369)]({ nextCursor: Z(Js) }), tn = I({ uri: S(), mimeType: Z(S()), _meta: Z(I({})[s(1685)]()) })[s(1685)](), rn = tn[s(1369)]({ text: S() }), an = tn[s(1369)]({ blob: S().base64() }), sn = ix.extend({ uri: S(), description: Z(S()), mimeType: Z(S()), _meta: Z(I({}).passthrough()) }), Ho = ix.extend({ uriTemplate: S(), description: Z(S()), mimeType: Z(S()), _meta: Z(I({})[s(1685)]()) }), Uo = Ax.extend({ method: r0(s(843)) }), Vo = Dx.extend({ resources: I0(sn) }), Wo = Ax[s(1369)]({ method: r0(s(985)) }), Zo = Dx[s(1369)]({ resourceTemplates: I0(Ho) }), Bo = xe[s(1369)]({ method: r0(s(866)), params: ae[s(1369)]({ uri: S() }) }), Ko = se[s(1369)]({ contents: I0(J0([rn, an])) }), Jo = ve.extend({ method: r0(s(1888)) }), Go = xe[s(1369)]({ method: r0(s(816)), params: ae.extend({ uri: S() }) }), Qo = xe[s(1369)]({ method: r0(s(1500)), params: ae.extend({ uri: S() }) }), Xo = ve[s(1369)]({ method: r0("notifications/resources/updated"), params: nx[s(1369)]({ uri: S() }) }), Yo = I({ name: S(), description: Z(S()), required: Z(x0()) })[s(1685)](), _o = ix[s(1369)]({ description: Z(S()), arguments: Z(I0(Yo)), _meta: Z(I({})[s(1685)]()) }), e2 = Ax[s(1369)]({ method: r0(s(1377)) }), x2 = Dx.extend({ prompts: I0(_o) }), t2 = xe[s(1369)]({ method: r0(s(1544)), params: ae[s(1369)]({ name: S(), arguments: Z(H0(S())) }) }), sr = I({ type: r0(s(1645)), text: S(), _meta: Z(I({})[s(1685)]()) })[s(1685)](), nr = I({ type: r0(s(1027)), data: S()[s(2287)](), mimeType: S(), _meta: Z(I({}).passthrough()) }).passthrough(), ir = I({ type: r0(s(2516)), data: S()[s(2287)](), mimeType: S(), _meta: Z(I({}).passthrough()) })[s(1685)](), r2 = I({ type: r0(s(2443)), resource: J0([rn, an]), _meta: Z(I({})[s(1685)]()) }).passthrough(), a2 = sn[s(1369)]({ type: r0(s(1424)) }), nn = J0([sr, nr, ir, a2, r2]), s2 = I({ role: F0([s(868), s(496)]), content: nn })[s(1685)](), n2 = se[s(1369)]({ description: Z(S()), messages: I0(s2) }), i2 = ve[s(1369)]({ method: r0(s(1349)) }), o2 = I({ title: Z(S()), readOnlyHint: Z(x0()), destructiveHint: Z(x0()), idempotentHint: Z(x0()), openWorldHint: Z(x0()) })[s(1685)](), c2 = ix[s(1369)]({ description: Z(S()), inputSchema: I({ type: r0(s(1923)), properties: Z(I({}).passthrough()), required: Z(I0(S())) }).passthrough(), outputSchema: Z(I({ type: r0(s(1923)), properties: Z(I({})[s(1685)]()), required: Z(I0(S())) })[s(1685)]()), annotations: Z(o2), _meta: Z(I({})[s(1685)]()) }), u2 = Ax[s(1369)]({ method: r0(s(2095)) }), d2 = Dx[s(1369)]({ tools: I0(c2) }), on = se[s(1369)]({ content: I0(nn)[s(2641)]([]), structuredContent: I({})[s(1685)]()[s(1285)](), isError: Z(x0()) }); +on.or(se.extend({ toolResult: sx() })); +const f2 = xe[s(1369)]({ method: r0("tools/call"), params: ae[s(1369)]({ name: S(), arguments: Z(H0(sx())) }) }), l2 = ve[s(1369)]({ method: r0("notifications/tools/list_changed") }), cn = F0(["debug", s(1604), s(311), s(2522), s(503), "critical", s(1566), s(1575)]), h2 = xe[s(1369)]({ method: r0("logging/setLevel"), params: ae[s(1369)]({ level: cn }) }), p2 = ve[s(1369)]({ method: r0(s(1401)), params: nx[s(1369)]({ level: cn, logger: Z(S()), data: sx() }) }), m2 = I({ name: S().optional() })[s(1685)](), v2 = I({ hints: Z(I0(m2)), costPriority: Z(t0()[s(1524)](0)[s(2537)](1)), speedPriority: Z(t0()[s(1524)](0)[s(2537)](1)), intelligencePriority: Z(t0().min(0)[s(2537)](1)) })[s(1685)](), g2 = I({ role: F0([s(868), s(496)]), content: J0([sr, nr, ir]) })[s(1685)](), y2 = xe[s(1369)]({ method: r0(s(732)), params: ae[s(1369)]({ messages: I0(g2), systemPrompt: Z(S()), includeContext: Z(F0(["none", s(1610), s(1967)])), temperature: Z(t0()), maxTokens: t0()[s(2395)](), stopSequences: Z(I0(S())), metadata: Z(I({})[s(1685)]()), modelPreferences: Z(v2) }) }), un = se.extend({ model: S(), stopReason: Z(F0([s(1633), s(2150), s(810)]).or(S())), role: F0(["user", s(496)]), content: $s(s(338), [sr, nr, ir]) }), b2 = I({ type: r0("boolean"), title: Z(S()), description: Z(S()), default: Z(x0()) }).passthrough(), w2 = I({ type: r0(s(2348)), title: Z(S()), description: Z(S()), minLength: Z(t0()), maxLength: Z(t0()), format: Z(F0([s(2500), s(2338), s(1582), "date-time"])) })[s(1685)](), S2 = I({ type: F0([s(960), s(893)]), title: Z(S()), description: Z(S()), minimum: Z(t0()), maximum: Z(t0()) })[s(1685)](), k2 = I({ type: r0(s(2348)), title: Z(S()), description: Z(S()), enum: I0(S()), enumNames: Z(I0(S())) })[s(1685)](), E2 = J0([b2, w2, S2, k2]), I2 = xe.extend({ method: r0("elicitation/create"), params: ae[s(1369)]({ message: S(), requestedSchema: I({ type: r0(s(1923)), properties: H0(S(), E2), required: Z(I0(S())) })[s(1685)]() }) }), dn = se[s(1369)]({ action: F0([s(2622), s(640), s(2252)]), content: Z(H0(S(), sx())) }), P2 = I({ type: r0(s(1641)), uri: S() })[s(1685)](), R2 = I({ type: r0(s(1124)), name: S() }).passthrough(), C2 = xe[s(1369)]({ method: r0("completion/complete"), params: ae[s(1369)]({ ref: J0([R2, P2]), argument: I({ name: S(), value: S() })[s(1685)](), context: Z(I({ arguments: Z(H0(S(), S())) })) }) }), F2 = se[s(1369)]({ completion: I({ values: I0(S())[s(2537)](100), total: Z(t0()[s(2395)]()), hasMore: Z(x0()) })[s(1685)]() }), N2 = I({ uri: S().startsWith(s(1704)), name: Z(S()), _meta: Z(I({})[s(1685)]()) })[s(1685)](), q2 = xe[s(1369)]({ method: r0(s(1396)) }), fn = se[s(1369)]({ roots: I0(N2) }), T2 = ve[s(1369)]({ method: r0(s(1489)) }); +J0([er, en, C2, h2, t2, e2, Uo, Wo, Bo, Go, Qo, f2, u2]), J0([_t, xr, xn, T2]), J0([Yt, un, dn, fn]), J0([er, y2, I2, q2]), J0([_t, xr, p2, Xo, Jo, l2, i2]), J0([Yt, $o, F2, n2, x2, Vo, Zo, Ko, on, d2]); +class Te extends Error { + constructor(x, t, a) { + var e = s; + super(e(683) + x + ": " + t), this.code = x, this[e(1073)] = a, this.name = e(1295); } } -const pe = /* @__PURE__ */ new Map(); -class Oc { - constructor(e) { - const t = n; - if (this[t(992)] = [], this[t(1937)] = Date[t(1381)](), pe[t(2333)](e[t(1518)])) { - const a = pe[t(1261)](e.posterIdentifier); - a && a.close(); - } - this[t(1518)] = e[t(1518)], this[t(1777)] = e[t(1777)], this[t(1840)] = e[t(1840)], this.removeMessageEventListener = e.removeMessageEventListener, this[t(692)] = e[t(692)] ?? 12e4, this.heartbeatTimeout = e[t(1439)] ?? 3e4, this[t(1931)] = e[t(1931)] ?? !1, pe.set(this[t(1518)], this), this[t(1748)] = this[t(1748)][t(1571)](this), this.externalListenMessageCallback = this[t(1840)](this.listenMessageCallback); +const O2 = 6e4; +class A2 { + constructor(x) { + var t = s; + this[t(350)] = x, this[t(1081)] = 0, this[t(2325)] = /* @__PURE__ */ new Map(), this._requestHandlerAbortControllers = /* @__PURE__ */ new Map(), this[t(413)] = /* @__PURE__ */ new Map(), this[t(1700)] = /* @__PURE__ */ new Map(), this[t(1966)] = /* @__PURE__ */ new Map(), this[t(283)] = /* @__PURE__ */ new Map(), this[t(1799)] = /* @__PURE__ */ new Set(), this[t(336)](_t, (a) => { + var e = t; + const r = this[e(1159)][e(2229)](a[e(817)].requestId); + r == null || r[e(1198)](a[e(817)][e(581)]); + }), this[t(336)](xr, (a) => { + var e = t; + this[e(710)](a); + }), this[t(1983)](er, (a) => ({})); } - listenMessageCallback(e) { - const t = n; - if (e[t(1518)] === this[t(1518)]) { - if (e.channel === t(2675)) { - e[t(2426)] === "ping" && !this[t(1931)] ? this[t(1777)]({ channel: "sdppp-heartbeat", posterIdentifier: this.posterIdentifier, type: "pong", timestamp: e.timestamp }) : e.type === t(1269) && (this[t(1937)] = Date.now(), this[t(862)] && (clearTimeout(this[t(862)]), this[t(862)] = void 0)); - return; - } - e[t(693)] === t(634) && (this[t(709)] && t(1854) in e ? this.onmessage(e[t(1854)]) : t(1854) in e && this.messageQueue[t(818)](e[t(1854)])); + [s(983)](x, t, a, e, r = !1) { + var n = s; + this[n(283)][n(1951)](x, { timeoutId: setTimeout(e, t), startTime: Date[n(2600)](), timeout: t, maxTotalTimeout: a, resetTimeoutOnProgress: r, onTimeout: e }); + } + [s(364)](x) { + var t = s; + const a = this[t(283)][t(2229)](x); + if (!a) return !1; + const e = Date[t(2600)]() - a[t(2130)]; + if (a[t(2459)] && e >= a.maxTotalTimeout) + throw this[t(283)][t(2434)](x), new Te(be[t(1131)], t(870), { maxTotalTimeout: a[t(2459)], totalElapsed: e }); + return clearTimeout(a[t(1943)]), a.timeoutId = setTimeout(a[t(2375)], a[t(1588)]), !0; + } + [s(898)](x) { + var t = s; + const a = this[t(283)][t(2229)](x); + a && (clearTimeout(a.timeoutId), this[t(283)][t(2434)](x)); + } + async [s(1649)](x) { + var t = s, a, e, r; + this._transport = x; + const n = (a = this.transport) === null || a === void 0 ? void 0 : a.onclose; + this[t(1775)][t(2172)] = () => { + var u = t; + n == null || n(), this[u(1556)](); + }; + const o = (e = this[t(1433)]) === null || e === void 0 ? void 0 : e[t(1865)]; + this[t(1775)].onerror = (u) => { + o == null || o(u), this._onerror(u); + }; + const c = (r = this[t(1775)]) === null || r === void 0 ? void 0 : r[t(2082)]; + this[t(1775)].onmessage = (u, d) => { + var f = t; + c == null || c(u, d), ea(u) || jo(u) ? this._onresponse(u) : Ao(u) ? this._onrequest(u, d) : Do(u) ? this[f(1906)](u) : this[f(383)](new Error(f(908) + JSON.stringify(u))); + }, await this[t(1775)].start(); + } + [s(1556)]() { + var x = s, t; + const a = this[x(1700)]; + this[x(1700)] = /* @__PURE__ */ new Map(), this[x(1966)].clear(), this[x(1799)][x(2173)](), this[x(1775)] = void 0, (t = this.onclose) === null || t === void 0 || t[x(1547)](this); + const e = new Te(be[x(686)], x(2553)); + for (const r of a[x(2166)]()) + r(e); + } + [s(383)](x) { + var t = s, a; + (a = this[t(1865)]) === null || a === void 0 || a[t(1547)](this, x); + } + _onnotification(x) { + var t = s, a; + const e = (a = this._notificationHandlers.get(x[t(1921)])) !== null && a !== void 0 ? a : this[t(1516)]; + e !== void 0 && Promise[t(1890)]().then(() => e(x))[t(947)]((r) => this[t(383)](new Error(t(1461) + r))); + } + [s(2035)](x, t) { + var a = s, e, r, n, o; + const c = (e = this._requestHandlers[a(2229)](x[a(1921)])) !== null && e !== void 0 ? e : this[a(1764)]; + if (c === void 0) { + (r = this[a(1775)]) === null || r === void 0 || r[a(980)]({ jsonrpc: "2.0", id: x.id, error: { code: be[a(1427)], message: a(649) } })[a(947)]((f) => this[a(383)](new Error(a(2006) + f))); + return; + } + const u = new AbortController(); + this._requestHandlerAbortControllers[a(1951)](x.id, u); + const d = { signal: u[a(996)], sessionId: (n = this[a(1775)]) === null || n === void 0 ? void 0 : n[a(1324)], _meta: (o = x[a(817)]) === null || o === void 0 ? void 0 : o[a(326)], sendNotification: (f) => this[a(1676)](f, { relatedRequestId: x.id }), sendRequest: (f, l, v) => this[a(1658)](f, l, { ...v, relatedRequestId: x.id }), authInfo: t == null ? void 0 : t[a(1290)], requestId: x.id, requestInfo: t == null ? void 0 : t[a(849)] }; + Promise.resolve().then(() => c(x, d)).then((f) => { + var l = a, v; + if (!u[l(996)][l(806)]) + return (v = this._transport) === null || v === void 0 ? void 0 : v[l(980)]({ result: f, jsonrpc: l(2545), id: x.id }); + }, (f) => { + var l = a, v, h; + if (!u[l(996)][l(806)]) + return (v = this[l(1775)]) === null || v === void 0 ? void 0 : v.send({ jsonrpc: "2.0", id: x.id, error: { code: Number.isSafeInteger(f.code) ? f[l(733)] : be[l(537)], message: (h = f[l(2089)]) !== null && h !== void 0 ? h : l(1889) } }); + }).catch((f) => this[a(383)](new Error(a(1648) + f)))[a(1817)](() => { + var f = a; + this[f(1159)][f(2434)](x.id); + }); + } + [s(710)](x) { + var t = s; + const { progressToken: a, ...e } = x.params, r = Number(a), n = this._progressHandlers[t(2229)](r); + if (!n) { + this[t(383)](new Error(t(1594) + JSON[t(990)](x))); + return; + } + const o = this[t(1700)][t(2229)](r), c = this[t(283)][t(2229)](r); + if (c && o && c[t(2398)]) try { + this[t(364)](r); + } catch (u) { + o(u); + return; + } + n(e); + } + _onresponse(x) { + var t = s; + const a = Number(x.id), e = this[t(1700)][t(2229)](a); + if (e === void 0) { + this[t(383)](new Error(t(530) + JSON[t(990)](x))); + return; + } + if (this[t(1700)][t(2434)](a), this._progressHandlers[t(2434)](a), this[t(898)](a), ea(x)) e(x); + else { + const r = new Te(x[t(503)].code, x[t(503)].message, x.error.data); + e(r); } } - async [n(1890)]() { - const e = n; - for (; this.messageQueue[e(1200)] > 0; ) { - const t = this[e(992)][e(2621)](); - t && this[e(709)] && this[e(709)](t); - } - this[e(2585)](); - } - [n(2585)]() { - const e = n; - this[e(1860)] = setInterval(() => { - const t = e, a = Date[t(1381)](); - this.messagePoster({ channel: t(2675), posterIdentifier: this[t(1518)], type: t(1189), timestamp: a }), this[t(862)] = setTimeout(() => { - const x = t, r = new qc(this[x(1518)], this.heartbeatTimeout); - this[x(1626)] && this[x(1626)](r); - }, this[t(1439)]); - }, this[e(692)]); - } - async [n(1243)](e, t) { - const a = n; - this[a(1777)]({ channel: a(634), posterIdentifier: this.posterIdentifier, payload: e }); + get [s(1433)]() { + var x = s; + return this[x(1775)]; } async close() { - const e = n; - this[e(1860)] && (clearInterval(this[e(1860)]), this[e(1860)] = void 0), this[e(862)] && (clearTimeout(this[e(862)]), this[e(862)] = void 0), pe.delete(this.posterIdentifier), this[e(2138)](this[e(2204)]); + var x = s, t; + await ((t = this[x(1775)]) === null || t === void 0 ? void 0 : t[x(2114)]()); + } + [s(1658)](x, t, a) { + const { relatedRequestId: e, resumptionToken: r, onresumptiontoken: n } = a ?? {}; + return new Promise((o, c) => { + var u = K, d, f, l, v, h, m; + if (!this[u(1775)]) { + c(new Error(u(2311))); + return; + } + ((d = this[u(350)]) === null || d === void 0 ? void 0 : d.enforceStrictCapabilities) === !0 && this[u(2143)](x.method), (f = a == null ? void 0 : a[u(996)]) === null || f === void 0 || f[u(576)](); + const y = this[u(1081)]++, w = { ...x, jsonrpc: u(2545), id: y }; + a != null && a[u(1478)] && (this[u(1966)].set(y, a.onprogress), w[u(817)] = { ...x.params, _meta: { ...((l = x[u(817)]) === null || l === void 0 ? void 0 : l[u(326)]) || {}, progressToken: y } }); + const E = (R) => { + var k = u, N; + this[k(1700)][k(2434)](y), this[k(1966)][k(2434)](y), this[k(898)](y), (N = this[k(1775)]) === null || N === void 0 || N[k(980)]({ jsonrpc: k(2545), method: k(862), params: { requestId: y, reason: String(R) } }, { relatedRequestId: e, resumptionToken: r, onresumptiontoken: n })[k(947)]((j) => this[k(383)](new Error(k(2614) + j))), c(R); + }; + this[u(1700)][u(1951)](y, (R) => { + var k = u, N; + if (!(!((N = a == null ? void 0 : a[k(996)]) === null || N === void 0) && N[k(806)])) { + if (R instanceof Error) return c(R); + try { + const j = t[k(1325)](R[k(1806)]); + o(j); + } catch (j) { + c(j); + } + } + }), (v = a == null ? void 0 : a[u(996)]) === null || v === void 0 || v.addEventListener(u(1198), () => { + var R = u, k; + E((k = a == null ? void 0 : a[R(996)]) === null || k === void 0 ? void 0 : k.reason); + }); + const O = (h = a == null ? void 0 : a[u(1588)]) !== null && h !== void 0 ? h : O2, T = () => E(new Te(be.RequestTimeout, u(1724), { timeout: O })); + this[u(983)](y, O, a == null ? void 0 : a.maxTotalTimeout, T, (m = a == null ? void 0 : a[u(2398)]) !== null && m !== void 0 ? m : !1), this._transport.send(w, { relatedRequestId: e, resumptionToken: r, onresumptiontoken: n }).catch((R) => { + var k = u; + this[k(898)](y), c(R); + }); + }); + } + async [s(1676)](x, t) { + var a = s, e, r; + if (!this[a(1775)]) throw new Error(a(2311)); + if (this[a(1075)](x.method), ((r = (e = this[a(350)]) === null || e === void 0 ? void 0 : e.debouncedNotificationMethods) !== null && r !== void 0 ? r : [])[a(553)](x[a(1921)]) && !x[a(817)] && !(t != null && t.relatedRequestId)) { + if (this[a(1799)].has(x.method)) return; + this[a(1799)][a(1342)](x[a(1921)]), Promise[a(1890)]().then(() => { + var u = a, d; + if (this[u(1799)].delete(x[u(1921)]), !this[u(1775)]) return; + const f = { ...x, jsonrpc: u(2545) }; + (d = this[u(1775)]) === null || d === void 0 || d.send(f, t)[u(947)]((l) => this[u(383)](l)); + }); + return; + } + const c = { ...x, jsonrpc: "2.0" }; + await this[a(1775)][a(980)](c, t); + } + [s(1983)](x, t) { + var a = s; + const e = x[a(2219)].method[a(2038)]; + this[a(2601)](e), this[a(2325)][a(1951)](e, (r, n) => { + var o = a; + return Promise[o(1890)](t(x[o(1325)](r), n)); + }); + } + [s(703)](x) { + var t = s; + this[t(2325)][t(2434)](x); + } + [s(959)](x) { + var t = s; + if (this[t(2325)][t(2561)](x)) throw new Error(t(1129) + x + " already exists, which would be overridden"); + } + [s(336)](x, t) { + var a = s; + this._notificationHandlers[a(1951)](x[a(2219)][a(1921)][a(2038)], (e) => Promise[a(1890)](t(x[a(1325)](e)))); + } + [s(1030)](x) { + var t = s; + this[t(413)][t(2434)](x); } } -const Ac = Me.extend("mesh"); -async function ms() { - const i = n; - if (window[i(2589)]) - return await C0[i(1610)](i(577), async function() { - const e = i, t = new Oc({ posterIdentifier: "comfy-uxp", messagePoster: (x) => { - window[B(2589)].postMessage(x, "*"); - }, addMessageEventListener: (x) => { - const r = B, s = (o) => { - x(o[B(726)]); - }; - return window[r(2626)](r(2353), s), s; - }, removeMessageEventListener: (x) => { - window[B(1484)]("message", x); - } }); - t.onerror = (x) => { - const r = B; - x[r(2200)] === r(1348) && (Ac(r(1474), x), t[r(1140)](), location[r(2496)]()); - }; - const a = new S2({ name: e(2249), version: e(2106) }); - return a[e(1610)](t), C0[e(666)](a), window[e(2589)][e(2056)]({ channel: e(1822), meshName: e(1722), action: e(1610) }, "*"), await new Promise((x) => { - const r = e; - a[r(2032)].oninitialized = () => { - const s = r; - a[s(2032)].oninitialized = void 0, x(!0); - }; - }), a; - }); +function D2(i, x) { + var t = s; + return Object.entries(x)[t(2483)]((a, [e, r]) => { + var n = t; + return r && typeof r === n(1923) ? a[e] = a[e] ? { ...a[e], ...r } : r : a[e] = r, a; + }, { ...i }); } -const Tc = Object.freeze(Object[n(1907)]({ __proto__: null, connectUXP: ms, mcpMesh: C0 }, Symbol[n(2089)], { value: n(1735) })); -Ax[n(2626)]("graphChanged", (i) => { - const e = n, t = R0[e(1597)] || R0[e(1691)][e(1009)], a = t[e(2186)]; - if (i.detail.id !== a[e(1211)].id) return; - const x = C0.store[e(1356)]()[e(1601)], r = Gt(R0[e(2751)], a); - vs(r, x) && C0[e(915)].setState({ widgetableStructure: r }), C0[e(915)][e(1826)]({ widgetableValues: qe(R0[e(2751)]) }); -}), Ax[n(2626)](n(899), () => { - const i = n; - C0.store.setState({ widgetableValues: qe(R0[i(2751)]) }); +var Ye = { exports: {} }, j2 = Ye[s(1175)], xa; +function M2() { + var i = s; + return xa || (xa = 1, function(x, t) { + (function(a, e) { + e(t); + })(j2, function(a) { + var e = K; + function r() { + for (var P = K, p = arguments[P(2021)], g = Array(p), b = 0; b < p; b++) + g[b] = arguments[b]; + if (g[P(2021)] > 1) { + g[0] = g[0][P(1813)](0, -1); + for (var z = g[P(2021)] - 1, $ = 1; $ < z; ++$) + g[$] = g[$][P(1813)](1, -1); + return g[z] = g[z][P(1813)](1), g[P(2515)](""); + } else return g[0]; + } + function n(P) { + return "(?:" + P + ")"; + } + function o(P) { + var p = K; + return P === void 0 ? "undefined" : P === null ? "null" : Object[p(2180)][p(1892)][p(1547)](P)[p(2183)](" ")[p(932)]()[p(2183)]("]")[p(761)]()[p(1991)](); + } + function c(P) { + var p = K; + return P[p(1626)](); + } + function u(P) { + var p = K; + return P != null ? P instanceof Array ? P : typeof P[p(2021)] !== p(960) || P.split || P[p(858)] || P[p(1547)] ? [P] : Array[p(2180)][p(1813)][p(1547)](P) : []; + } + function d(P, p) { + var g = P; + if (p) for (var b in p) + g[b] = p[b]; + return g; + } + function f(P) { + var p = K, g = p(676), b = p(1672), z = r(b, "[A-Fa-f]"), $ = n(n(p(1364) + z + "%" + z + z + "%" + z + z) + "|" + n("%[89A-Fa-f]" + z + "%" + z + z) + "|" + n("%" + z + z)), s0 = p(558), d0 = p(2493), R0 = r(s0, d0), j0 = P ? p(1379) : "[]", W0 = P ? p(1917) : "[]", k0 = r(g, b, p(1343), j0); + n(g + r(g, b, "[\\+\\-\\.]") + "*"), n(n($ + "|" + r(k0, d0, p(1409))) + "*"); + var A0 = n(n(p(1735)) + "|" + n(p(1578) + b) + "|" + n("1" + b + b) + "|" + n(p(746) + b) + p(1925) + b), Z0 = n(A0 + "\\." + A0 + "\\." + A0 + "\\." + A0), g0 = n(z + p(2566)), $0 = n(n(g0 + "\\:" + g0) + "|" + Z0), B0 = n(n(g0 + "\\:") + "{6}" + $0), z0 = n(p(2648) + n(g0 + "\\:") + p(2214) + $0), Ee = n(n(g0) + p(2120) + n(g0 + "\\:") + "{4}" + $0), oe = n(n(n(g0 + "\\:") + p(2590) + g0) + p(2120) + n(g0 + "\\:") + "{3}" + $0), ce = n(n(n(g0 + "\\:") + p(2185) + g0) + p(2120) + n(g0 + "\\:") + p(490) + $0), ze = n(n(n(g0 + "\\:") + p(1674) + g0) + p(2120) + g0 + "\\:" + $0), Ce = n(n(n(g0 + "\\:") + p(1163) + g0) + p(2120) + $0), te = n(n(n(g0 + "\\:") + p(2126) + g0) + p(2120) + g0), ue = n(n(n(g0 + "\\:") + p(324) + g0) + p(2120)), de = n([B0, z0, Ee, oe, ce, ze, Ce, te, ue][p(2515)]("|")), fe = n(n(k0 + "|" + $) + "+"); + n(p(2245) + z + p(1507) + r(k0, d0, p(1409)) + "+"), n(n($ + "|" + r(k0, d0)) + "*"); + var le = n($ + "|" + r(k0, d0, p(1387))); + return n(n($ + "|" + r(k0, d0, p(455))) + "+"), n(n(le + "|" + r("[\\/\\?]", W0)) + "*"), { NOT_SCHEME: new RegExp(r(p(313), g, b, p(289)), "g"), NOT_USERINFO: new RegExp(r("[^\\%\\:]", k0, d0), "g"), NOT_HOST: new RegExp(r(p(1335), k0, d0), "g"), NOT_PATH: new RegExp(r(p(2161), k0, d0), "g"), NOT_PATH_NOSCHEME: new RegExp(r(p(422), k0, d0), "g"), NOT_QUERY: new RegExp(r(p(1220), k0, d0, "[\\:\\@\\/\\?]", W0), "g"), NOT_FRAGMENT: new RegExp(r(p(1220), k0, d0, p(1368)), "g"), ESCAPE: new RegExp(r(p(313), k0, d0), "g"), UNRESERVED: new RegExp(k0, "g"), OTHER_CHARS: new RegExp(r("[^\\%]", k0, R0), "g"), PCT_ENCODED: new RegExp($, "g"), IPV4ADDRESS: new RegExp("^(" + Z0 + ")$"), IPV6ADDRESS: new RegExp("^\\[?(" + de + ")" + n(n("\\%25|\\%(?!" + z + p(2359)) + "(" + fe + ")") + p(1662)) }; + } + var l = f(!1), v = f(!0), h = /* @__PURE__ */ function() { + function P(p, g) { + var b = K, z = [], $ = !0, s0 = !1, d0 = void 0; + try { + for (var R0 = p[Symbol[b(2597)]](), j0; !($ = (j0 = R0[b(690)]())[b(2340)]) && (z[b(2380)](j0[b(2038)]), !(g && z.length === g)); $ = !0) + ; + } catch (W0) { + s0 = !0, d0 = W0; + } finally { + try { + !$ && R0[b(1794)] && R0[b(1794)](); + } finally { + if (s0) throw d0; + } + } + return z; + } + return function(p, g) { + var b = K; + if (Array[b(1435)](p)) return p; + if (Symbol[b(2597)] in Object(p)) return P(p, g); + throw new TypeError(b(2350)); + }; + }(), m = function(P) { + var p = K; + if (Array[p(1435)](P)) { + for (var g = 0, b = Array(P.length); g < P[p(2021)]; g++) b[g] = P[g]; + return b; + } else return Array[p(1147)](P); + }, y = 2147483647, w = 36, E = 1, O = 26, T = 38, R = 700, k = 72, N = 128, j = "-", D = /^xn--/, M = /[^\0-\x7E]/, F = /[\x2E\u3002\uFF0E\uFF61]/g, C = { overflow: e(1084), "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": e(1506) }, H = w - E, U = Math.floor, V = String[e(2606)]; + function J(P) { + throw new RangeError(C[P]); + } + function c0(P, p) { + for (var g = e, b = [], z = P[g(2021)]; z--; ) + b[z] = p(P[z]); + return b; + } + function u0(P, p) { + var g = e, b = P[g(2183)]("@"), z = ""; + b.length > 1 && (z = b[0] + "@", P = b[1]), P = P[g(2112)](F, "."); + var $ = P.split("."), s0 = c0($, p).join("."); + return z + s0; + } + function l0(P) { + for (var p = e, g = [], b = 0, z = P[p(2021)]; b < z; ) { + var $ = P[p(2184)](b++); + if ($ >= 55296 && $ <= 56319 && b < z) { + var s0 = P[p(2184)](b++); + (s0 & 64512) == 56320 ? g[p(2380)]((($ & 1023) << 10) + (s0 & 1023) + 65536) : (g[p(2380)]($), b--); + } else g.push($); + } + return g; + } + var i0 = function(p) { + var g = e; + return String[g(863)][g(756)](String, m(p)); + }, f0 = function(p) { + return p - 48 < 10 ? p - 22 : p - 65 < 26 ? p - 65 : p - 97 < 26 ? p - 97 : w; + }, S0 = function(p, g) { + return p + 22 + 75 * (p < 26) - ((g != 0) << 5); + }, y0 = function(p, g, b) { + var z = 0; + for (p = b ? U(p / R) : p >> 1, p += U(p / g); p > H * O >> 1; z += w) + p = U(p / H); + return U(z + (H + 1) * p / (p + T)); + }, M0 = function(p) { + var g = e, b = [], z = p[g(2021)], $ = 0, s0 = N, d0 = k, R0 = p[g(1231)](j); + R0 < 0 && (R0 = 0); + for (var j0 = 0; j0 < R0; ++j0) + p[g(2184)](j0) >= 128 && J(g(844)), b[g(2380)](p[g(2184)](j0)); + for (var W0 = R0 > 0 ? R0 + 1 : 0; W0 < z; ) { + for (var k0 = $, A0 = 1, Z0 = w; ; Z0 += w) { + W0 >= z && J(g(614)); + var g0 = f0(p[g(2184)](W0++)); + (g0 >= w || g0 > U((y - $) / A0)) && J(g(2267)), $ += g0 * A0; + var $0 = Z0 <= d0 ? E : Z0 >= d0 + O ? O : Z0 - d0; + if (g0 < $0) break; + var B0 = w - $0; + A0 > U(y / B0) && J(g(2267)), A0 *= B0; + } + var z0 = b[g(2021)] + 1; + d0 = y0($ - k0, z0, k0 == 0), U($ / z0) > y - s0 && J(g(2267)), s0 += U($ / z0), $ %= z0, b.splice($++, 0, s0); + } + return String[g(863)][g(756)](String, b); + }, P0 = function(p) { + var g = e, b = []; + p = l0(p); + var z = p[g(2021)], $ = N, s0 = 0, d0 = k, R0 = !0, j0 = !1, W0 = void 0; + try { + for (var k0 = p[Symbol[g(2597)]](), A0; !(R0 = (A0 = k0[g(690)]())[g(2340)]); R0 = !0) { + var Z0 = A0[g(2038)]; + Z0 < 128 && b.push(V(Z0)); + } + } catch (Je) { + j0 = !0, W0 = Je; + } finally { + try { + !R0 && k0.return && k0[g(1794)](); + } finally { + if (j0) throw W0; + } + } + var g0 = b[g(2021)], $0 = g0; + for (g0 && b[g(2380)](j); $0 < z; ) { + var B0 = y, z0 = !0, Ee = !1, oe = void 0; + try { + for (var ce = p[Symbol[g(2597)]](), ze; !(z0 = (ze = ce[g(690)]()).done); z0 = !0) { + var Ce = ze[g(2038)]; + Ce >= $ && Ce < B0 && (B0 = Ce); + } + } catch (Je) { + Ee = !0, oe = Je; + } finally { + try { + !z0 && ce[g(1794)] && ce[g(1794)](); + } finally { + if (Ee) throw oe; + } + } + var te = $0 + 1; + B0 - $ > U((y - s0) / te) && J("overflow"), s0 += (B0 - $) * te, $ = B0; + var ue = !0, de = !1, fe = void 0; + try { + for (var le = p[Symbol[g(2597)]](), yr; !(ue = (yr = le[g(690)]())[g(2340)]); ue = !0) { + var br = yr[g(2038)]; + if (br < $ && ++s0 > y && J(g(2267)), br == $) { + for (var ox = s0, cx = w; ; cx += w) { + var ux = cx <= d0 ? E : cx >= d0 + O ? O : cx - d0; + if (ox < ux) break; + var wr = ox - ux, Sr = w - ux; + b[g(2380)](V(S0(ux + wr % Sr, 0))), ox = U(wr / Sr); + } + b[g(2380)](V(S0(ox, 0))), d0 = y0(s0, te, $0 == g0), s0 = 0, ++$0; + } + } + } catch (Je) { + de = !0, fe = Je; + } finally { + try { + !ue && le[g(1794)] && le[g(1794)](); + } finally { + if (de) throw fe; + } + } + ++s0, ++$; + } + return b[g(2515)](""); + }, Q0 = function(p) { + return u0(p, function(g) { + var b = K; + return D[b(856)](g) ? M0(g.slice(4)[b(1991)]()) : g; + }); + }, A = function(p) { + return u0(p, function(g) { + return M.test(g) ? "xn--" + P0(g) : g; + }); + }, q = { version: e(2243), ucs2: { decode: l0, encode: i0 }, decode: M0, encode: P0, toASCII: A, toUnicode: Q0 }, L = {}; + function G(P) { + var p = e, g = P[p(2184)](0), b = void 0; + return g < 16 ? b = "%0" + g[p(1892)](16)[p(1626)]() : g < 128 ? b = "%" + g[p(1892)](16)[p(1626)]() : g < 2048 ? b = "%" + (g >> 6 | 192)[p(1892)](16)[p(1626)]() + "%" + (g & 63 | 128).toString(16)[p(1626)]() : b = "%" + (g >> 12 | 224).toString(16)[p(1626)]() + "%" + (g >> 6 & 63 | 128)[p(1892)](16).toUpperCase() + "%" + (g & 63 | 128)[p(1892)](16)[p(1626)](), b; + } + function X(P) { + for (var p = e, g = "", b = 0, z = P[p(2021)]; b < z; ) { + var $ = parseInt(P.substr(b + 1, 2), 16); + if ($ < 128) g += String[p(2606)]($), b += 3; + else if ($ >= 194 && $ < 224) { + if (z - b >= 6) { + var s0 = parseInt(P[p(390)](b + 4, 2), 16); + g += String[p(2606)](($ & 31) << 6 | s0 & 63); + } else g += P.substr(b, 6); + b += 6; + } else if ($ >= 224) { + if (z - b >= 9) { + var d0 = parseInt(P[p(390)](b + 4, 2), 16), R0 = parseInt(P[p(390)](b + 7, 2), 16); + g += String[p(2606)](($ & 15) << 12 | (d0 & 63) << 6 | R0 & 63); + } else g += P.substr(b, 9); + b += 9; + } else g += P[p(390)](b, 3), b += 3; + } + return g; + } + function W(P, p) { + var g = e; + function b(z) { + var $ = K, s0 = X(z); + return s0[$(2069)](p[$(2144)]) ? s0 : z; + } + return P[g(1026)] && (P[g(1026)] = String(P.scheme)[g(2112)](p[g(2495)], b)[g(1991)]()[g(2112)](p.NOT_SCHEME, "")), P[g(2426)] !== void 0 && (P[g(2426)] = String(P.userinfo)[g(2112)](p[g(2495)], b).replace(p[g(1802)], G)[g(2112)](p[g(2495)], c)), P[g(671)] !== void 0 && (P.host = String(P[g(671)])[g(2112)](p[g(2495)], b)[g(1991)]()[g(2112)](p[g(1878)], G)[g(2112)](p[g(2495)], c)), P[g(1796)] !== void 0 && (P[g(1796)] = String(P[g(1796)])[g(2112)](p.PCT_ENCODED, b)[g(2112)](P[g(1026)] ? p[g(2460)] : p[g(2186)], G)[g(2112)](p[g(2495)], c)), P[g(2155)] !== void 0 && (P[g(2155)] = String(P.query).replace(p[g(2495)], b).replace(p[g(1939)], G)[g(2112)](p[g(2495)], c)), P[g(2514)] !== void 0 && (P[g(2514)] = String(P[g(2514)])[g(2112)](p.PCT_ENCODED, b).replace(p.NOT_FRAGMENT, G)[g(2112)](p[g(2495)], c)), P; + } + function Q(P) { + var p = e; + return P[p(2112)](/^0*(.*)/, "$1") || "0"; + } + function n0(P, p) { + var g = e, b = P[g(2069)](p[g(1964)]) || [], z = h(b, 2), $ = z[1]; + return $ ? $.split(".").map(Q)[g(2515)](".") : P; + } + function o0(P, p) { + var g = e, b = P[g(2069)](p[g(471)]) || [], z = h(b, 3), $ = z[1], s0 = z[2]; + if ($) { + for (var d0 = $[g(1991)]()[g(2183)]("::")[g(1976)](), R0 = h(d0, 2), j0 = R0[0], W0 = R0[1], k0 = W0 ? W0.split(":").map(Q) : [], A0 = j0[g(2183)](":")[g(632)](Q), Z0 = p[g(1964)].test(A0[A0.length - 1]), g0 = Z0 ? 7 : 8, $0 = A0[g(2021)] - g0, B0 = Array(g0), z0 = 0; z0 < g0; ++z0) + B0[z0] = k0[z0] || A0[$0 + z0] || ""; + Z0 && (B0[g0 - 1] = n0(B0[g0 - 1], p)); + var Ee = B0.reduce(function(te, ue, de) { + var fe = g; + if (!ue || ue === "0") { + var le = te[te[fe(2021)] - 1]; + le && le[fe(2602)] + le[fe(2021)] === de ? le[fe(2021)]++ : te[fe(2380)]({ index: de, length: 1 }); + } + return te; + }, []), oe = Ee[g(759)](function(te, ue) { + var de = g; + return ue[de(2021)] - te[de(2021)]; + })[0], ce = void 0; + if (oe && oe[g(2021)] > 1) { + var ze = B0[g(1813)](0, oe.index), Ce = B0[g(1813)](oe[g(2602)] + oe[g(2021)]); + ce = ze[g(2515)](":") + "::" + Ce[g(2515)](":"); + } else ce = B0[g(2515)](":"); + return s0 && (ce += "%" + s0), ce; + } else return P; + } + var _ = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, L0 = "".match(/(){0}/)[1] === void 0; + function T0(P) { + var p = e, g = arguments[p(2021)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = {}, z = g[p(358)] !== !1 ? v : l; + g.reference === p(2511) && (P = (g[p(1026)] ? g[p(1026)] + ":" : "") + "//" + P); + var $ = P.match(_); + if ($) { + L0 ? (b.scheme = $[1], b[p(2426)] = $[3], b[p(671)] = $[4], b[p(1339)] = parseInt($[5], 10), b[p(1796)] = $[6] || "", b[p(2155)] = $[7], b.fragment = $[8], isNaN(b.port) && (b[p(1339)] = $[5])) : (b[p(1026)] = $[1] || void 0, b[p(2426)] = P[p(831)]("@") !== -1 ? $[3] : void 0, b[p(671)] = P[p(831)]("//") !== -1 ? $[4] : void 0, b[p(1339)] = parseInt($[5], 10), b[p(1796)] = $[6] || "", b[p(2155)] = P[p(831)]("?") !== -1 ? $[7] : void 0, b[p(2514)] = P.indexOf("#") !== -1 ? $[8] : void 0, isNaN(b[p(1339)]) && (b[p(1339)] = P.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? $[4] : void 0)), b.host && (b[p(671)] = o0(n0(b.host, z), z)), b[p(1026)] === void 0 && b[p(2426)] === void 0 && b[p(671)] === void 0 && b.port === void 0 && !b.path && b[p(2155)] === void 0 ? b[p(493)] = "same-document" : b[p(1026)] === void 0 ? b.reference = "relative" : b[p(2514)] === void 0 ? b.reference = p(1204) : b.reference = p(2338), g[p(493)] && g[p(493)] !== "suffix" && g[p(493)] !== b[p(493)] && (b.error = b[p(503)] || "URI is not a " + g.reference + p(1192)); + var s0 = L[(g[p(1026)] || b[p(1026)] || "")[p(1991)]()]; + if (!g[p(841)] && (!s0 || !s0.unicodeSupport)) { + if (b.host && (g.domainHost || s0 && s0[p(2580)])) try { + b[p(671)] = q[p(1060)](b[p(671)].replace(z[p(2495)], X)[p(1991)]()); + } catch (d0) { + b[p(503)] = b[p(503)] || p(1472) + d0; + } + W(b, l); + } else W(b, z); + s0 && s0[p(1325)] && s0[p(1325)](b, g); + } else b[p(503)] = b[p(503)] || "URI can not be parsed."; + return b; + } + function U0(P, p) { + var g = e, b = p[g(358)] !== !1 ? v : l, z = []; + return P.userinfo !== void 0 && (z.push(P[g(2426)]), z[g(2380)]("@")), P[g(671)] !== void 0 && z[g(2380)](o0(n0(String(P.host), b), b)[g(2112)](b.IPV6ADDRESS, function($, s0, d0) { + return "[" + s0 + (d0 ? "%25" + d0 : "") + "]"; + })), (typeof P[g(1339)] === g(960) || typeof P[g(1339)] === g(2348)) && (z[g(2380)](":"), z[g(2380)](String(P[g(1339)]))), z[g(2021)] ? z[g(2515)]("") : void 0; + } + var w0 = /^\.\.?\//, G0 = /^\/\.(\/|$)/, ne = /^\/\.\.(\/|$)/, X0 = /^\/?(?:.|\n)*?(?=\/|$)/; + function O0(P) { + for (var p = e, g = []; P[p(2021)]; ) + if (P[p(2069)](w0)) P = P[p(2112)](w0, ""); + else if (P[p(2069)](G0)) P = P[p(2112)](G0, "/"); + else if (P[p(2069)](ne)) P = P[p(2112)](ne, "/"), g.pop(); + else if (P === "." || P === "..") P = ""; + else { + var b = P[p(2069)](X0); + if (b) { + var z = b[0]; + P = P[p(1813)](z.length), g[p(2380)](z); + } else throw new Error("Unexpected dot segment condition"); + } + return g[p(2515)](""); + } + function V0(P) { + var p = e, g = arguments[p(2021)] > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = g[p(358)] ? v : l, z = [], $ = L[(g[p(1026)] || P[p(1026)] || "")[p(1991)]()]; + if ($ && $[p(2612)] && $.serialize(P, g), P[p(671)] && !b.IPV6ADDRESS.test(P.host)) { + if (g[p(2580)] || $ && $[p(2580)]) try { + P[p(671)] = g[p(358)] ? q[p(1572)](P[p(671)]) : q[p(1060)](P[p(671)][p(2112)](b[p(2495)], X).toLowerCase()); + } catch (R0) { + P[p(503)] = P[p(503)] || p(1534) + (g[p(358)] ? p(2071) : p(2540)) + p(2033) + R0; + } + } + W(P, b), g.reference !== p(2511) && P.scheme && (z[p(2380)](P[p(1026)]), z[p(2380)](":")); + var s0 = U0(P, g); + if (s0 !== void 0 && (g.reference !== p(2511) && z.push("//"), z[p(2380)](s0), P[p(1796)] && P[p(1796)][p(453)](0) !== "/" && z[p(2380)]("/")), P[p(1796)] !== void 0) { + var d0 = P[p(1796)]; + !g[p(526)] && (!$ || !$[p(526)]) && (d0 = O0(d0)), s0 === void 0 && (d0 = d0[p(2112)](/^\/\//, p(1940))), z[p(2380)](d0); + } + return P[p(2155)] !== void 0 && (z[p(2380)]("?"), z[p(2380)](P[p(2155)])), P[p(2514)] !== void 0 && (z[p(2380)]("#"), z[p(2380)](P[p(2514)])), z[p(2515)](""); + } + function _0(P, p) { + var g = e, b = arguments[g(2021)] > 2 && arguments[2] !== void 0 ? arguments[2] : {}, z = arguments[3], $ = {}; + return !z && (P = T0(V0(P, b), b), p = T0(V0(p, b), b)), b = b || {}, !b[g(378)] && p.scheme ? ($[g(1026)] = p[g(1026)], $[g(2426)] = p[g(2426)], $[g(671)] = p[g(671)], $[g(1339)] = p[g(1339)], $[g(1796)] = O0(p[g(1796)] || ""), $[g(2155)] = p[g(2155)]) : (p[g(2426)] !== void 0 || p[g(671)] !== void 0 || p.port !== void 0 ? ($[g(2426)] = p[g(2426)], $[g(671)] = p.host, $.port = p.port, $.path = O0(p[g(1796)] || ""), $.query = p[g(2155)]) : (p.path ? (p[g(1796)][g(453)](0) === "/" ? $[g(1796)] = O0(p[g(1796)]) : ((P[g(2426)] !== void 0 || P[g(671)] !== void 0 || P[g(1339)] !== void 0) && !P[g(1796)] ? $.path = "/" + p[g(1796)] : P[g(1796)] ? $[g(1796)] = P.path[g(1813)](0, P[g(1796)].lastIndexOf("/") + 1) + p[g(1796)] : $[g(1796)] = p[g(1796)], $.path = O0($[g(1796)])), $[g(2155)] = p[g(2155)]) : ($[g(1796)] = P.path, p[g(2155)] !== void 0 ? $[g(2155)] = p.query : $[g(2155)] = P[g(2155)]), $[g(2426)] = P[g(2426)], $[g(671)] = P[g(671)], $[g(1339)] = P[g(1339)]), $[g(1026)] = P[g(1026)]), $[g(2514)] = p.fragment, $; + } + function Le(P, p, g) { + var b = e, z = d({ scheme: b(1382) }, g); + return V0(_0(T0(P, z), T0(p, z), z, !0), z); + } + function jx(P, p) { + var g = e; + return typeof P === g(2348) ? P = V0(T0(P, p), p) : o(P) === g(1923) && (P = T0(V0(P, p), p)), P; + } + function Mx(P, p, g) { + var b = e; + return typeof P === b(2348) ? P = V0(T0(P, g), g) : o(P) === b(1923) && (P = V0(P, g)), typeof p === b(2348) ? p = V0(T0(p, g), g) : o(p) === b(1923) && (p = V0(p, g)), P === p; + } + function bn(P, p) { + var g = e; + return P && P[g(1892)]().replace(!p || !p.iri ? l[g(774)] : v[g(774)], G); + } + function ge(P, p) { + var g = e; + return P && P.toString()[g(2112)](!p || !p[g(358)] ? l[g(2495)] : v.PCT_ENCODED, X); + } + var Be = { scheme: e(1254), domainHost: !0, parse: function(p, g) { + var b = e; + return !p.host && (p[b(503)] = p[b(503)] || b(1953)), p; + }, serialize: function(p, g) { + var b = e, z = String(p[b(1026)])[b(1991)]() === "https"; + return (p.port === (z ? 443 : 80) || p[b(1339)] === "") && (p.port = void 0), !p[b(1796)] && (p[b(1796)] = "/"), p; + } }, dr = { scheme: "https", domainHost: Be.domainHost, parse: Be[e(1325)], serialize: Be[e(2612)] }; + function fr(P) { + var p = e; + return typeof P[p(1779)] === p(2251) ? P.secure : String(P[p(1026)])[p(1991)]() === p(520); + } + var Ke = { scheme: "ws", domainHost: !0, parse: function(p, g) { + var b = e, z = p; + return z[b(1779)] = fr(z), z.resourceName = (z[b(1796)] || "/") + (z[b(2155)] ? "?" + z.query : ""), z[b(1796)] = void 0, z.query = void 0, z; + }, serialize: function(p, g) { + var b = e; + if ((p[b(1339)] === (fr(p) ? 443 : 80) || p[b(1339)] === "") && (p.port = void 0), typeof p[b(1779)] == "boolean" && (p.scheme = p.secure ? b(520) : "ws", p.secure = void 0), p[b(1839)]) { + var z = p[b(1839)][b(2183)]("?"), $ = h(z, 2), s0 = $[0], d0 = $[1]; + p[b(1796)] = s0 && s0 !== "/" ? s0 : void 0, p[b(2155)] = d0, p[b(1839)] = void 0; + } + return p.fragment = void 0, p; + } }, lr = { scheme: e(520), domainHost: Ke.domainHost, parse: Ke[e(1325)], serialize: Ke[e(2612)] }, wn = {}, hr = e(546) + "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", ie = e(921), Sn = n(n(e(1364) + ie + "%" + ie + ie + "%" + ie + ie) + "|" + n("%[89A-Fa-f]" + ie + "%" + ie + ie) + "|" + n("%" + ie + ie)), kn = e(2188), En = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", In = r(En, e(2086)), Pn = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", Rn = new RegExp(hr, "g"), $e = new RegExp(Sn, "g"), Cn = new RegExp(r(e(313), kn, "[\\.]", e(475), In), "g"), pr = new RegExp(r(e(313), hr, Pn), "g"), Fn = pr; + function Lx(P) { + var p = e, g = X(P); + return g[p(2069)](Rn) ? g : P; + } + var mr = { scheme: "mailto", parse: function(p, g) { + var b = e, z = p, $ = z.to = z[b(1796)] ? z[b(1796)][b(2183)](",") : []; + if (z.path = void 0, z[b(2155)]) { + for (var s0 = !1, d0 = {}, R0 = z[b(2155)].split("&"), j0 = 0, W0 = R0[b(2021)]; j0 < W0; ++j0) { + var k0 = R0[j0].split("="); + switch (k0[0]) { + case "to": + for (var A0 = k0[1][b(2183)](","), Z0 = 0, g0 = A0[b(2021)]; Z0 < g0; ++Z0) + $[b(2380)](A0[Z0]); + break; + case "subject": + z.subject = ge(k0[1], g); + break; + case b(874): + z.body = ge(k0[1], g); + break; + default: + s0 = !0, d0[ge(k0[0], g)] = ge(k0[1], g); + break; + } + } + s0 && (z.headers = d0); + } + z[b(2155)] = void 0; + for (var $0 = 0, B0 = $[b(2021)]; $0 < B0; ++$0) { + var z0 = $[$0].split("@"); + if (z0[0] = ge(z0[0]), g.unicodeSupport) z0[1] = ge(z0[1], g)[b(1991)](); + else try { + z0[1] = q.toASCII(ge(z0[1], g).toLowerCase()); + } catch (Ee) { + z[b(503)] = z.error || "Email address's domain name can not be converted to ASCII via punycode: " + Ee; + } + $[$0] = z0[b(2515)]("@"); + } + return z; + }, serialize: function(p, g) { + var b = e, z = p, $ = u(p.to); + if ($) { + for (var s0 = 0, d0 = $[b(2021)]; s0 < d0; ++s0) { + var R0 = String($[s0]), j0 = R0[b(1231)]("@"), W0 = R0[b(1813)](0, j0)[b(2112)]($e, Lx)[b(2112)]($e, c)[b(2112)](Cn, G), k0 = R0[b(1813)](j0 + 1); + try { + k0 = g[b(358)] ? q[b(1572)](k0) : q.toASCII(ge(k0, g)[b(1991)]()); + } catch ($0) { + z.error = z[b(503)] || b(1958) + (g[b(358)] ? b(2071) : "ASCII") + b(2033) + $0; + } + $[s0] = W0 + "@" + k0; + } + z.path = $[b(2515)](","); + } + var A0 = p[b(2626)] = p.headers || {}; + p[b(1570)] && (A0[b(1570)] = p.subject), p[b(874)] && (A0[b(874)] = p.body); + var Z0 = []; + for (var g0 in A0) + A0[g0] !== wn[g0] && Z0[b(2380)](g0.replace($e, Lx).replace($e, c)[b(2112)](pr, G) + "=" + A0[g0][b(2112)]($e, Lx)[b(2112)]($e, c).replace(Fn, G)); + return Z0[b(2021)] && (z.query = Z0[b(2515)]("&")), z; + } }, Nn = /^([^\:]+)\:(.*)/, vr = { scheme: e(1587), parse: function(p, g) { + var b = e, z = p.path && p[b(1796)][b(2069)](Nn), $ = p; + if (z) { + var s0 = g[b(1026)] || $[b(1026)] || b(1587), d0 = z[1][b(1991)](), R0 = z[2], j0 = s0 + ":" + (g[b(1537)] || d0), W0 = L[j0]; + $[b(1537)] = d0, $.nss = R0, $[b(1796)] = void 0, W0 && ($ = W0[b(1325)]($, g)); + } else $[b(503)] = $[b(503)] || "URN can not be parsed."; + return $; + }, serialize: function(p, g) { + var b = e, z = g[b(1026)] || p[b(1026)] || b(1587), $ = p.nid, s0 = z + ":" + (g.nid || $), d0 = L[s0]; + d0 && (p = d0[b(2612)](p, g)); + var R0 = p, j0 = p[b(1474)]; + return R0[b(1796)] = ($ || g[b(1537)]) + ":" + j0, R0; + } }, qn = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, gr = { scheme: "urn:uuid", parse: function(p, g) { + var b = e, z = p; + return z[b(616)] = z[b(1474)], z[b(1474)] = void 0, !g[b(378)] && (!z[b(616)] || !z[b(616)][b(2069)](qn)) && (z.error = z.error || "UUID is not valid."), z; + }, serialize: function(p, g) { + var b = e, z = p; + return z[b(1474)] = (p[b(616)] || "")[b(1991)](), z; + } }; + L[Be.scheme] = Be, L[dr[e(1026)]] = dr, L[Ke[e(1026)]] = Ke, L[lr[e(1026)]] = lr, L[mr[e(1026)]] = mr, L[vr[e(1026)]] = vr, L[gr.scheme] = gr, a[e(1916)] = L, a[e(913)] = G, a[e(896)] = X, a[e(1325)] = T0, a.removeDotSegments = O0, a[e(2612)] = V0, a[e(1711)] = _0, a[e(1890)] = Le, a[e(2445)] = jx, a[e(1946)] = Mx, a[e(1048)] = bn, a[e(2642)] = ge, Object[e(1907)](a, e(951), { value: !0 }); + }); + }(Ye, Ye[i(1175)])), Ye[i(1175)]; +} +var Kx, ta; +function or() { + return ta || (ta = 1, Kx = function i(x, t) { + var a = K; + if (x === t) return !0; + if (x && t && typeof x == a(1923) && typeof t == "object") { + if (x[a(599)] !== t[a(599)]) return !1; + var e, r, n; + if (Array.isArray(x)) { + if (e = x[a(2021)], e != t[a(2021)]) return !1; + for (r = e; r-- !== 0; ) if (!i(x[r], t[r])) return !1; + return !0; + } + if (x[a(599)] === RegExp) return x[a(1399)] === t[a(1399)] && x[a(907)] === t[a(907)]; + if (x[a(2653)] !== Object.prototype.valueOf) return x.valueOf() === t[a(2653)](); + if (x.toString !== Object[a(2180)][a(1892)]) return x[a(1892)]() === t[a(1892)](); + if (n = Object[a(1040)](x), e = n.length, e !== Object[a(1040)](t)[a(2021)]) return !1; + for (r = e; r-- !== 0; ) if (!Object[a(2180)].hasOwnProperty.call(t, n[r])) return !1; + for (r = e; r-- !== 0; ) { + var o = n[r]; + if (!i(x[o], t[o])) return !1; + } + return !0; + } + return x !== x && t !== t; + }), Kx; +} +var Jx, ra; +function L2() { + return ra || (ra = 1, Jx = function(x) { + for (var t = K, a = 0, e = x[t(2021)], r = 0, n; r < e; ) + a++, n = x[t(2184)](r++), n >= 55296 && n <= 56319 && r < e && (n = x.charCodeAt(r), (n & 64512) == 56320 && r++); + return a; + }), Jx; +} +var Gx, aa; +function Ze() { + var i = s; + if (aa) return Gx; + aa = 1, Gx = { copy: x, checkDataType: t, checkDataTypes: a, coerceToTypes: r, toHash: n, getProperty: u, escapeQuotes: d, equal: or(), ucs2length: L2(), varOccurences: f, varReplace: l, schemaHasRules: v, schemaHasRulesExcept: h, schemaUnknownRules: m, toQuotedString: y, getPathExpr: w, getPath: E, getData: R, unescapeFragment: N, unescapeJsonPointer: M, escapeFragment: j, escapeJsonPointer: D }; + function x(F, C) { + C = C || {}; + for (var H in F) C[H] = F[H]; + return C; + } + function t(F, C, H, U) { + var V = K, J = U ? V(461) : " === ", c0 = V(U ? 388 : 1760), u0 = U ? "!" : "", l0 = U ? "" : "!"; + switch (F) { + case V(1382): + return C + J + V(1382); + case V(1315): + return u0 + V(2603) + C + ")"; + case V(1923): + return "(" + u0 + C + c0 + V(361) + C + J + V(1554) + c0 + l0 + V(2603) + C + "))"; + case V(893): + return V(989) + C + J + '"number"' + c0 + l0 + "(" + C + V(325) + c0 + C + J + C + (H ? c0 + u0 + V(2521) + C + ")" : "") + ")"; + case V(960): + return V(989) + C + J + '"' + F + '"' + (H ? c0 + u0 + V(2521) + C + ")" : "") + ")"; + default: + return V(361) + C + J + '"' + F + '"'; + } + } + function a(F, C, H) { + var U = K; + switch (F.length) { + case 1: + return t(F[0], C, H, !0); + default: + var V = "", J = n(F); + J[U(1315)] && J.object && (V = J.null ? "(" : "(!" + C + " || ", V += U(361) + C + ' !== "object")', delete J[U(1382)], delete J[U(1315)], delete J[U(1923)]), J.number && delete J[U(893)]; + for (var c0 in J) V += (V ? U(1760) : "") + t(c0, C, H, !0); + return V; + } + } + var e = n(["string", i(960), i(893), i(2251), i(1382)]); + function r(F, C) { + var H = i; + if (Array[H(1435)](C)) { + for (var U = [], V = 0; V < C[H(2021)]; V++) { + var J = C[V]; + (e[J] || F === H(1315) && J === H(1315)) && (U[U[H(2021)]] = J); + } + if (U[H(2021)]) return U; + } else { + if (e[C]) return [C]; + if (F === H(1315) && C === H(1315)) return [H(1315)]; + } + } + function n(F) { + for (var C = i, H = {}, U = 0; U < F[C(2021)]; U++) H[F[U]] = !0; + return H; + } + var o = /^[a-z$_][a-z$_0-9]*$/i, c = /'|\\/g; + function u(F) { + var C = i; + return typeof F == C(960) ? "[" + F + "]" : o[C(856)](F) ? "." + F : "['" + d(F) + "']"; + } + function d(F) { + var C = i; + return F[C(2112)](c, C(2592))[C(2112)](/\n/g, "\\n")[C(2112)](/\r/g, "\\r").replace(/\f/g, "\\f")[C(2112)](/\t/g, "\\t"); + } + function f(F, C) { + var H = i; + C += H(2203); + var U = F.match(new RegExp(C, "g")); + return U ? U[H(2021)] : 0; + } + function l(F, C, H) { + var U = i; + return C += "([^0-9])", H = H[U(2112)](/\$/g, U(1211)), F[U(2112)](new RegExp(C, "g"), H + "$1"); + } + function v(F, C) { + if (typeof F == "boolean") return !F; + for (var H in F) if (C[H]) return !0; + } + function h(F, C, H) { + var U = i; + if (typeof F == U(2251)) return !F && H != U(518); + for (var V in F) if (V != H && C[V]) return !0; + } + function m(F, C) { + var H = i; + if (typeof F != H(2251)) { + for (var U in F) if (!C[U]) return U; + } + } + function y(F) { + return "'" + d(F) + "'"; + } + function w(F, C, H, U) { + var V = i, J = H ? V(2465) + C + (U ? "" : V(777)) : U ? V(1146) + C + " + ']'" : "'[\\'' + " + C + V(1501); + return k(F, J); + } + function E(F, C, H) { + var U = y(H ? "/" + D(C) : u(C)); + return k(F, U); + } + var O = /^\/(?:[^~]|~0|~1)*$/, T = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; + function R(F, C, H) { + var U = i, V, J, c0, u0; + if (F === "") return U(2414); + if (F[0] == "/") { + if (!O.test(F)) throw new Error(U(2442) + F); + J = F, c0 = U(2414); + } else { + if (u0 = F.match(T), !u0) throw new Error(U(2442) + F); + if (V = +u0[1], J = u0[2], J == "#") { + if (V >= C) throw new Error(U(2170) + V + U(1980) + C); + return H[C - V]; + } + if (V > C) throw new Error(U(930) + V + U(1980) + C); + if (c0 = U(1073) + (C - V || ""), !J) return c0; + } + for (var l0 = c0, i0 = J.split("/"), f0 = 0; f0 < i0[U(2021)]; f0++) { + var S0 = i0[f0]; + S0 && (c0 += u(M(S0)), l0 += U(1760) + c0); + } + return l0; + } + function k(F, C) { + var H = i; + return F == '""' ? C : (F + " + " + C)[H(2112)](/([^\\])' \+ '/g, "$1"); + } + function N(F) { + return M(decodeURIComponent(F)); + } + function j(F) { + return encodeURIComponent(D(F)); + } + function D(F) { + var C = i; + return F[C(2112)](/~/g, "~0")[C(2112)](/\//g, "~1"); + } + function M(F) { + var C = i; + return F[C(2112)](/~1/g, "/")[C(2112)](/~0/g, "~"); + } + return Gx; +} +var Qx, sa; +function ln() { + if (sa) return Qx; + sa = 1; + var i = Ze(); + Qx = x; + function x(t) { + var a = K; + i[a(1753)](t, this); + } + return Qx; +} +var Xx = { exports: {} }, na; +function $2() { + var i = s; + if (na) return Xx[i(1175)]; + na = 1; + var x = Xx[i(1175)] = function(e, r, n) { + var o = i; + typeof r == o(1853) && (n = r, r = {}), n = r.cb || n; + var c = typeof n == o(1853) ? n : n.pre || function() { + }, u = n.post || function() { + }; + t(r, c, u, e, "", e); + }; + x[i(2605)] = { additionalItems: !0, items: !0, contains: !0, additionalProperties: !0, propertyNames: !0, not: !0 }, x.arrayKeywords = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }, x[i(1319)] = { definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }, x[i(439)] = { default: !0, enum: !0, const: !0, required: !0, maximum: !0, minimum: !0, exclusiveMaximum: !0, exclusiveMinimum: !0, multipleOf: !0, maxLength: !0, minLength: !0, pattern: !0, format: !0, maxItems: !0, minItems: !0, uniqueItems: !0, maxProperties: !0, minProperties: !0 }; + function t(e, r, n, o, c, u, d, f, l, v) { + var h = i; + if (o && typeof o == "object" && !Array[h(1435)](o)) { + r(o, c, u, d, f, l, v); + for (var m in o) { + var y = o[m]; + if (Array[h(1435)](y)) { + if (m in x[h(1699)]) + for (var w = 0; w < y[h(2021)]; w++) t(e, r, n, y[w], c + "/" + m + "/" + w, u, c, m, o, w); + } else if (m in x[h(1319)]) { + if (y && typeof y == h(1923)) + for (var E in y) t(e, r, n, y[E], c + "/" + m + "/" + a(E), u, c, m, o, E); + } else (m in x[h(2605)] || e.allKeys && !(m in x[h(439)])) && t(e, r, n, y, c + "/" + m, u, c, m, o); + } + n(o, c, u, d, f, l, v); + } + } + function a(e) { + var r = i; + return e[r(2112)](/~/g, "~0")[r(2112)](/\//g, "~1"); + } + return Xx[i(1175)]; +} +var Yx, ia; +function cr() { + var i = s; + if (ia) return Yx; + ia = 1; + var x = M2(), t = or(), a = Ze(), e = ln(), r = $2(); + Yx = n, n.normalizeId = E, n.fullPath = m, n[i(1965)] = O, n[i(2351)] = T, n[i(2647)] = l, n[i(1174)] = o; + function n(R, k, N) { + var j = i, D = this[j(1900)][N]; + if (typeof D == j(2348)) + if (this[j(1900)][D]) D = this[j(1900)][D]; + else return n[j(1547)](this, R, k, D); + if (D = D || this[j(302)][N], D instanceof e) return l(D[j(1174)], this[j(2623)][j(1392)]) ? D[j(1174)] : D[j(328)] || this[j(1585)](D); + var M = o[j(1547)](this, k, N), F, C, H; + return M && (F = M[j(1174)], k = M[j(1882)], H = M.baseId), F instanceof e ? C = F.validate || R[j(1547)](this, F.schema, k, void 0, H) : F !== void 0 && (C = l(F, this._opts.inlineRefs) ? F : R[j(1547)](this, F, k, void 0, H)), C; + } + function o(R, k) { + var N = i, j = x[N(1325)](k), D = y(j), M = m(this[N(458)](R.schema)); + if (Object[N(1040)](R[N(1174)])[N(2021)] === 0 || D !== M) { + var F = E(D), C = this._refs[F]; + if (typeof C == "string") return c[N(1547)](this, R, C, j); + if (C instanceof e) + C[N(328)] || this[N(1585)](C), R = C; + else if (C = this._schemas[F], C instanceof e) { + if (C[N(328)] || this._compile(C), F == E(k)) return { schema: C, root: R, baseId: M }; + R = C; + } else return; + if (!R[N(1174)]) return; + M = m(this[N(458)](R[N(1174)])); + } + return d.call(this, j, M, R[N(1174)], R); + } + function c(R, k, N) { + var j = i, D = o[j(1547)](this, R, k); + if (D) { + var M = D[j(1174)], F = D[j(1880)]; + R = D[j(1882)]; + var C = this._getId(M); + return C && (F = O(F, C)), d[j(1547)](this, N, F, M, R); + } + } + var u = a[i(626)]([i(1696), i(969), i(1053), i(2372), i(877)]); + function d(R, k, N, j) { + var D = i; + if (R.fragment = R[D(2514)] || "", R[D(2514)][D(1813)](0, 1) == "/") { + for (var M = R[D(2514)].split("/"), F = 1; F < M[D(2021)]; F++) { + var C = M[F]; + if (C) { + if (C = a[D(2192)](C), N = N[C], N === void 0) break; + var H; + if (!u[C] && (H = this[D(458)](N), H && (k = O(k, H)), N[D(2015)])) { + var U = O(k, N[D(2015)]), V = o[D(1547)](this, j, U); + V && (N = V[D(1174)], j = V[D(1882)], k = V[D(1880)]); + } + } + } + if (N !== void 0 && N !== j.schema) return { schema: N, root: j, baseId: k }; + } + } + var f = a[i(626)]([i(338), "format", i(2072), i(2277), i(549), i(2225), i(1901), "maxItems", i(1457), i(981), i(1848), i(1552), i(2246), "required", i(1053)]); + function l(R, k) { + if (k === !1) return !1; + if (k === void 0 || k === !0) return v(R); + if (k) return h(R) <= k; + } + function v(R) { + var k = i, N; + if (Array[k(1435)](R)) { + for (var j = 0; j < R[k(2021)]; j++) + if (N = R[j], typeof N == k(1923) && !v(N)) return !1; + } else for (var D in R) + if (D == k(2015) || (N = R[D], typeof N == k(1923) && !v(N))) return !1; + return !0; + } + function h(R) { + var k = i, N = 0, j; + if (Array[k(1435)](R)) { + for (var D = 0; D < R.length; D++) + if (j = R[D], typeof j == k(1923) && (N += h(j)), N == 1 / 0) return 1 / 0; + } else for (var M in R) { + if (M == k(2015)) return 1 / 0; + if (f[M]) N++; + else if (j = R[M], typeof j == k(1923) && (N += h(j) + 1), N == 1 / 0) return 1 / 0; + } + return N; + } + function m(R, k) { + k !== !1 && (R = E(R)); + var N = x.parse(R); + return y(N); + } + function y(R) { + return x.serialize(R).split("#")[0] + "#"; + } + var w = /#\/?$/; + function E(R) { + var k = i; + return R ? R[k(2112)](w, "") : ""; + } + function O(R, k) { + var N = i; + return k = E(k), x[N(1890)](R, k); + } + function T(R) { + var k = i, N = E(this[k(458)](R)), j = { "": N }, D = { "": m(N, !1) }, M = {}, F = this; + return r(R, { allKeys: !0 }, function(C, H, U, V, J, c0, u0) { + var l0 = k; + if (H !== "") { + var i0 = F._getId(C), f0 = j[V], S0 = D[V] + "/" + J; + if (u0 !== void 0 && (S0 += "/" + (typeof u0 == l0(960) ? u0 : a[l0(1170)](u0))), typeof i0 == l0(2348)) { + i0 = f0 = E(f0 ? x.resolve(f0, i0) : i0); + var y0 = F[l0(1900)][i0]; + if (typeof y0 == l0(2348) && (y0 = F._refs[y0]), y0 && y0[l0(1174)]) { + if (!t(C, y0.schema)) throw new Error('id "' + i0 + l0(1185)); + } else if (i0 != E(S0)) + if (i0[0] == "#") { + if (M[i0] && !t(C, M[i0])) throw new Error(l0(2341) + i0 + '" resolves to more than one schema'); + M[i0] = C; + } else F[l0(1900)][i0] = S0; + } + j[H] = f0, D[H] = S0; + } + }), M; + } + return Yx; +} +var _x, oa; +function ur() { + if (oa) return _x; + oa = 1; + var i = cr(); + _x = { Validation: a(x), MissingRef: a(t) }; + function x(e) { + var r = K; + this[r(2089)] = r(1756), this.errors = e, this[r(1664)] = this[r(391)] = !0; + } + t.message = function(e, r) { + var n = K; + return n(1282) + r + n(2342) + e; + }; + function t(e, r, n) { + var o = K; + this.message = n || t[o(2089)](e, r), this.missingRef = i.url(e, r), this[o(288)] = i[o(1691)](i[o(1206)](this.missingRef)); + } + function a(e) { + var r = K; + return e[r(2180)] = Object.create(Error[r(2180)]), e[r(2180)][r(599)] = e, e; + } + return _x; +} +var et, ca; +function hn() { + return ca || (ca = 1, et = function(i, x) { + var t = K; + x || (x = {}), typeof x === t(1853) && (x = { cmp: x }); + var a = typeof x.cycles == "boolean" ? x[t(952)] : !1, e = x[t(627)] && /* @__PURE__ */ function(n) { + return function(o) { + return function(c, u) { + var d = { key: c, value: o[c] }, f = { key: u, value: o[u] }; + return n(d, f); + }; + }; + }(x[t(627)]), r = []; + return function n(o) { + var c = t; + if (o && o[c(2393)] && typeof o[c(2393)] === c(1853) && (o = o[c(2393)]()), o !== void 0) { + if (typeof o == c(960)) return isFinite(o) ? "" + o : c(1382); + if (typeof o !== c(1923)) return JSON.stringify(o); + var u, d; + if (Array[c(1435)](o)) { + for (d = "[", u = 0; u < o[c(2021)]; u++) + u && (d += ","), d += n(o[u]) || c(1382); + return d + "]"; + } + if (o === null) return c(1382); + if (r[c(831)](o) !== -1) { + if (a) return JSON[c(990)]("__cycle__"); + throw new TypeError(c(433)); + } + var f = r.push(o) - 1, l = Object[c(1040)](o).sort(e && e(o)); + for (d = "", u = 0; u < l[c(2021)]; u++) { + var v = l[u], h = n(o[v]); + h && (d && (d += ","), d += JSON[c(990)](v) + ":" + h); + } + return r.splice(f, 1), "{" + d + "}"; + } + }(i); + }), et; +} +var xt, ua; +function pn() { + return ua || (ua = 1, xt = function(x, t, a) { + var e = K, r = "", n = x.schema.$async === !0, o = x[e(2643)][e(2181)](x[e(1174)], x[e(2057)][e(1897)], e(2015)), c = x[e(2049)][e(458)](x.schema); + if (x[e(1948)][e(484)]) { + var u = x.util[e(1772)](x[e(1174)], x[e(2057)][e(2605)]); + if (u) { + var d = e(2353) + u; + if (x[e(1948)][e(484)] === "log") x.logger[e(1797)](d); + else throw new Error(d); + } + } + if (x[e(1933)] && (r += " var validate = ", n && (x[e(2572)] = !0, r += "async "), r += e(1778), c && (x[e(1948)].sourceCode || x[e(1948)][e(2422)]) && (r += " " + (e(2487) + c + e(1644)) + " ")), typeof x[e(1174)] == e(2251) || !(o || x[e(1174)][e(2015)])) { + var t = "false schema", f = x.level, l = x[e(1675)], v = x[e(1174)][t], h = x.schemaPath + x.util.getProperty(t), m = x[e(298)] + "/" + t, k = !x[e(1948)][e(2168)], D, y = e(1073) + (l || ""), R = e(2538) + f; + if (x[e(1174)] === !1) { + x[e(1933)] ? k = !0 : r += e(682) + R + e(2364); + var w = w || []; + w[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + (D || "false schema") + "' , dataPath: (dataPath || '') + " + x[e(1952)] + e(511) + x[e(2643)][e(2451)](m) + e(2326), x.opts[e(1057)] !== !1 && (r += " , message: 'boolean schema is false' "), x[e(1948)].verbose && (r += e(1776) + x[e(1350)] + e(617) + y + " "), r += e(2062)) : r += e(2152); + var E = r; + r = w[e(932)](), !x.compositeRule && k ? x[e(2572)] ? r += " throw new ValidationError([" + E + e(1719) : r += e(2550) + E + e(973) : r += e(2662) + E + e(1826); + } else x[e(1933)] ? n ? r += " return data; " : r += e(1795) : r += e(682) + R + e(1844); + return x[e(1933)] && (r += e(303)), r; + } + if (x[e(1933)]) { + var O = x.isTop, f = x.level = 0, l = x[e(1675)] = 0, y = e(1073); + if (x[e(2474)] = x.resolve.fullPath(x[e(2049)][e(458)](x.root[e(1174)])), x[e(1880)] = x[e(1880)] || x.rootId, delete x[e(1933)], x.dataPathArr = [""], x.schema[e(2641)] !== void 0 && x[e(1948)][e(504)] && x.opts.strictDefaults) { + var T = e(2584); + if (x[e(1948)][e(2657)] === e(1133)) x[e(1238)].warn(T); + else throw new Error(T); + } + r += e(550), r += e(1498), r += e(1801); + } else { + var f = x[e(1624)], l = x[e(1675)], y = e(1073) + (l || ""); + if (c && (x.baseId = x.resolve[e(1965)](x[e(1880)], c)), n && !x[e(2572)]) throw new Error(e(1017)); + r += e(1761) + f + e(1100); + } + var R = e(2538) + f, k = !x[e(1948)].allErrors, N = "", j = "", D, M = x[e(1174)][e(338)], F = Array[e(1435)](M); + if (M && x[e(1948)][e(1977)] && x[e(1174)][e(1977)] === !0 && (F ? M.indexOf(e(1382)) == -1 && (M = M[e(1355)](e(1382))) : M != e(1382) && (M = [M, "null"], F = !0)), F && M[e(2021)] == 1 && (M = M[0], F = !1), x[e(1174)].$ref && o) { + if (x[e(1948)].extendRefs == e(2221)) throw new Error(e(1475) + x[e(298)] + e(1982)); + x[e(1948)][e(716)] !== !0 && (o = !1, x.logger.warn('$ref: keywords ignored in schema at path "' + x[e(298)] + '"')); + } + if (x[e(1174)][e(2297)] && x[e(1948)].$comment && (r += " " + x[e(2057)][e(1897)][e(2297)][e(733)](x, e(2297))), M) { + if (x[e(1948)][e(744)]) var C = x[e(2643)][e(449)](x[e(1948)][e(744)], M); + var H = x[e(2057)][e(2215)][M]; + if (C || F || H === !0 || H && !w0(H)) { + var h = x[e(1350)] + e(944), m = x[e(298)] + "/type", h = x[e(1350)] + ".type", m = x[e(298)] + e(547), U = e(F ? 2415 : 1824); + if (r += e(1138) + x.util[U](M, y, x[e(1948)][e(1178)], !0) + e(1597), C) { + var V = "dataType" + f, J = e(1468) + f; + r += e(682) + V + e(2660) + y + e(1510) + J + e(2369), x.opts.coerceTypes == e(1315) && (r += e(1138) + V + e(741) + y + e(2668) + y + e(2220) + y + e(729) + y + e(1406) + V + " = typeof " + y + "; if (" + x.util.checkDataType(x[e(1174)][e(338)], y, x[e(1948)].strictNumbers) + ") " + J + e(729) + y + e(664)), r += e(1138) + J + e(1471); + var c0 = C; + if (c0) + for (var u0, l0 = -1, i0 = c0[e(2021)] - 1; l0 < i0; ) + u0 = c0[l0 += 1], u0 == e(2348) ? r += e(1452) + V + e(1876) + V + e(1062) + J + e(2306) + y + e(2016) + y + e(637) + J + e(2594) : u0 == "number" || u0 == e(893) ? (r += e(1452) + V + e(1152) + y + e(678) + V + " == 'string' && " + y + e(1760) + y + e(2149) + y + " ", u0 == "integer" && (r += " && !(" + y + e(325)), r += ")) " + J + e(991) + y + "; ") : u0 == e(2251) ? r += " else if (" + y + e(1773) + y + " === 0 || " + y + e(637) + J + e(316) + y + " === 'true' || " + y + e(2651) + J + e(1844) : u0 == e(1382) ? r += e(1452) + y + e(1187) + y + e(1128) + y + e(835) + J + " = null; " : x[e(1948)][e(744)] == e(1315) && u0 == e(1315) && (r += " else if (" + V + e(1262) + V + " == 'number' || " + V + e(1152) + y + e(315) + J + e(701) + y + e(692)); + r += " else { "; + var w = w || []; + w.push(r), r = "", x.createErrors !== !1 ? (r += e(1264) + (D || "type") + e(953) + x[e(1952)] + e(511) + x.util[e(2451)](m) + " , params: { type: '", F ? r += "" + M[e(2515)](",") : r += "" + M, r += e(1687), x[e(1948)].messages !== !1 && (r += e(1221), F ? r += "" + M[e(2515)](",") : r += "" + M, r += "' "), x[e(1948)][e(1153)] && (r += " , schema: validate.schema" + h + e(2411) + x[e(1350)] + e(617) + y + " "), r += e(2062)) : r += e(2152); + var E = r; + r = w.pop(), !x.compositeRule && k ? x.async ? r += e(1883) + E + "]); " : r += e(2550) + E + e(973) : r += e(2662) + E + e(1826), r += e(2042) + J + e(2510); + var f0 = l ? e(1073) + (l - 1 || "") : e(984), S0 = l ? x[e(2197)][l] : "parentDataProperty"; + r += " " + y + e(729) + J + "; ", !l && (r += e(395) + f0 + " !== undefined)"), r += " " + f0 + "[" + S0 + "] = " + J + e(664); + } else { + var w = w || []; + w.push(r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + (D || "type") + e(953) + x[e(1952)] + e(511) + x.util[e(2451)](m) + e(1825), F ? r += "" + M[e(2515)](",") : r += "" + M, r += e(1687), x[e(1948)].messages !== !1 && (r += e(1221), F ? r += "" + M[e(2515)](",") : r += "" + M, r += "' "), x[e(1948)][e(1153)] && (r += e(1150) + h + " , parentSchema: validate.schema" + x[e(1350)] + e(617) + y + " "), r += " } ") : r += e(2152); + var E = r; + r = w[e(932)](), !x[e(2416)] && k ? x.async ? r += e(1883) + E + "]); " : r += e(2550) + E + e(973) : r += e(2662) + E + e(1826); + } + r += e(2062); + } + } + if (x[e(1174)].$ref && !o) r += " " + x.RULES.all[e(2015)][e(733)](x, e(2015)) + " ", k && (r += " } if (errors === ", O ? r += "0" : r += "errs_" + f, r += e(1597), j += "}"); + else { + var y0 = x.RULES; + if (y0) { + for (var H, M0 = -1, P0 = y0[e(2021)] - 1; M0 < P0; ) + if (H = y0[M0 += 1], w0(H)) { + if (H.type && (r += e(1138) + x.util[e(1824)](H.type, y, x.opts[e(1178)]) + e(1597)), x[e(1948)][e(504)]) { + if (H[e(338)] == "object" && x.schema[e(1696)]) { + var v = x[e(1174)][e(1696)], Q0 = Object[e(1040)](v), A = Q0; + if (A) + for (var q, L = -1, G = A[e(2021)] - 1; L < G; ) { + q = A[L += 1]; + var X = v[q]; + if (X[e(2641)] !== void 0) { + var W = y + x[e(2643)][e(2337)](q); + if (x[e(2416)]) { + if (x[e(1948)][e(2657)]) { + var T = e(591) + W; + if (x.opts[e(2657)] === e(1133)) x[e(1238)][e(1797)](T); + else throw new Error(T); + } + } else r += " if (" + W + e(2455), x[e(1948)].useDefaults == e(636) && (r += e(388) + W + " === null || " + W + e(1518)), r += e(680) + W + e(729), x[e(1948)][e(504)] == "shared" ? r += " " + x.useDefault(X[e(2641)]) + " " : r += " " + JSON[e(990)](X.default) + " ", r += "; "; + } + } + } else if (H[e(338)] == "array" && Array[e(1435)](x.schema[e(2187)])) { + var Q = x[e(1174)].items; + if (Q) { + for (var X, l0 = -1, n0 = Q[e(2021)] - 1; l0 < n0; ) + if (X = Q[l0 += 1], X.default !== void 0) { + var W = y + "[" + l0 + "]"; + if (x[e(2416)]) { + if (x[e(1948)][e(2657)]) { + var T = e(591) + W; + if (x.opts[e(2657)] === e(1133)) x[e(1238)].warn(T); + else throw new Error(T); + } + } else r += e(1138) + W + e(2455), x.opts.useDefaults == e(636) && (r += e(388) + W + e(1836) + W + e(1518)), r += " ) " + W + e(729), x.opts.useDefaults == e(1420) ? r += " " + x[e(1316)](X.default) + " " : r += " " + JSON[e(990)](X[e(2641)]) + " ", r += "; "; + } + } + } + } + var o0 = H[e(1643)]; + if (o0) { + for (var _, L0 = -1, T0 = o0.length - 1; L0 < T0; ) + if (_ = o0[L0 += 1], G0(_)) { + var U0 = _.code(x, _[e(1919)], H[e(338)]); + U0 && (r += " " + U0 + " ", k && (N += "}")); + } + } + if (k && (r += " " + N + " ", N = ""), H[e(338)] && (r += e(2062), M && M === H.type && !C)) { + r += " else { "; + var h = x.schemaPath + e(944), m = x.errSchemaPath + e(547), w = w || []; + w[e(2380)](r), r = "", x.createErrors !== !1 ? (r += e(1264) + (D || e(338)) + e(953) + x.errorPath + e(511) + x[e(2643)][e(2451)](m) + e(1825), F ? r += "" + M[e(2515)](",") : r += "" + M, r += e(1687), x[e(1948)][e(1057)] !== !1 && (r += e(1221), F ? r += "" + M.join(",") : r += "" + M, r += "' "), x.opts.verbose && (r += " , schema: validate.schema" + h + e(2411) + x[e(1350)] + e(617) + y + " "), r += " } ") : r += e(2152); + var E = r; + r = w[e(932)](), !x[e(2416)] && k ? x[e(2572)] ? r += e(1883) + E + "]); " : r += " validate.errors = [" + E + e(973) : r += e(2662) + E + e(1826), r += e(2062); + } + k && (r += e(1190), O ? r += "0" : r += e(466) + f, r += e(1597), j += "}"); + } + } + } + k && (r += " " + j + " "), O ? (n ? (r += e(2632), r += " else throw new ValidationError(vErrors); ") : (r += " validate.errors = vErrors; ", r += e(1239)), r += e(1955)) : r += " var " + R + e(1485) + f + ";"; + function w0(X0) { + for (var O0 = e, V0 = X0[O0(1643)], _0 = 0; _0 < V0.length; _0++) if (G0(V0[_0])) return !0; + } + function G0(X0) { + var O0 = e; + return x[O0(1174)][X0[O0(1919)]] !== void 0 || X0.implements && ne(X0); + } + function ne(X0) { + for (var O0 = e, V0 = X0[O0(700)], _0 = 0; _0 < V0[O0(2021)]; _0++) if (x[O0(1174)][V0[_0]] !== void 0) return !0; + } + return r; + }), xt; +} +var tt, da; +function z2() { + var i = s; + if (da) return tt; + da = 1; + var x = cr(), t = Ze(), a = ur(), e = hn(), r = pn(), n = t[i(2264)], o = or(), c = a[i(1201)]; + tt = u; + function u(E, O, T, R) { + var k = i, N = this, j = this._opts, D = [void 0], M = {}, F = [], C = {}, H = [], U = {}, V = []; + O = O || { schema: E, refVal: D, refs: M }; + var J = d[k(1547)](this, E, O, R), c0 = this[k(2400)][J[k(2602)]]; + if (J[k(2664)]) return c0[k(1182)] = S0; + var u0 = this[k(1415)], l0 = this.RULES; + try { + var i0 = y0(E, O, T, R); + c0[k(328)] = i0; + var f0 = c0.callValidate; + return f0 && (f0[k(1174)] = i0.schema, f0[k(1188)] = null, f0.refs = i0[k(819)], f0[k(421)] = i0[k(421)], f0[k(1882)] = i0[k(1882)], f0[k(2283)] = i0[k(2283)], j.sourceCode && (f0[k(1399)] = i0.source)), i0; + } finally { + f[k(1547)](this, E, O, R); + } + function S0() { + var W = k, Q = c0[W(328)], n0 = Q[W(756)](this, arguments); + return S0[W(1188)] = Q[W(1188)], n0; + } + function y0(W, Q, n0, o0) { + var _ = k, L0 = !Q || Q && Q[_(1174)] == W; + if (Q[_(1174)] != O[_(1174)]) return u[_(1547)](N, W, Q, n0, o0); + var T0 = W[_(2283)] === !0, U0 = r({ isTop: !0, schema: W, isRoot: L0, baseId: o0, root: Q, schemaPath: "", errSchemaPath: "#", errorPath: '""', MissingRefError: a[_(1849)], RULES: l0, validate: r, util: t, resolve: x, resolveRef: M0, usePattern: L, useDefault: G, useCustomRule: X, opts: j, formats: u0, logger: N[_(1238)], self: N }); + U0 = w(D, m) + w(F, v) + w(H, h) + w(V, y) + U0, j.processCode && (U0 = j[_(2422)](U0, W)); + var w0; + try { + var G0 = new Function(_(2049), _(2057), _(2199), _(1882), _(421), _(2216), _(767), _(1946), _(2264), _(2564), U0); + w0 = G0(N, l0, u0, O, D, H, V, o, n, c), D[0] = w0; + } catch (ne) { + throw N.logger[_(503)](_(2432), U0), ne; + } + return w0[_(1174)] = W, w0[_(1188)] = null, w0[_(819)] = M, w0[_(421)] = D, w0[_(1882)] = L0 ? w0 : Q, T0 && (w0[_(2283)] = !0), j[_(2454)] === !0 && (w0[_(1399)] = { code: U0, patterns: F, defaults: H }), w0; + } + function M0(W, Q, n0) { + var o0 = k; + Q = x[o0(1965)](W, Q); + var _ = M[Q], L0, T0; + if (_ !== void 0) return L0 = D[_], T0 = "refVal[" + _ + "]", q(L0, T0); + if (!n0 && O[o0(819)]) { + var U0 = O.refs[Q]; + if (U0 !== void 0) return L0 = O[o0(421)][U0], T0 = P0(Q, L0), q(L0, T0); + } + T0 = P0(Q); + var w0 = x[o0(1547)](N, y0, O, Q); + if (w0 === void 0) { + var G0 = T && T[Q]; + G0 && (w0 = x.inlineRef(G0, j[o0(1392)]) ? G0 : u[o0(1547)](N, G0, O, T, W)); + } + if (w0 === void 0) Q0(Q); + else return A(Q, w0), q(w0, T0); + } + function P0(W, Q) { + var n0 = k, o0 = D[n0(2021)]; + return D[o0] = Q, M[W] = o0, n0(421) + o0; + } + function Q0(W) { + delete M[W]; + } + function A(W, Q) { + var n0 = M[W]; + D[n0] = Q; + } + function q(W, Q) { + var n0 = k; + return typeof W == n0(1923) || typeof W == n0(2251) ? { code: Q, schema: W, inline: !0 } : { code: Q, $async: W && !!W.$async }; + } + function L(W) { + var Q = k, n0 = C[W]; + return n0 === void 0 && (n0 = C[W] = F[Q(2021)], F[n0] = W), Q(2072) + n0; + } + function G(W) { + var Q = k; + switch (typeof W) { + case Q(2251): + case Q(960): + return "" + W; + case Q(2348): + return t[Q(2451)](W); + case Q(1923): + if (W === null) return Q(1382); + var n0 = e(W), o0 = U[n0]; + return o0 === void 0 && (o0 = U[n0] = H[Q(2021)], H[o0] = W), "default" + o0; + } + } + function X(W, Q, n0, o0) { + var _ = k; + if (N[_(2623)].validateSchema !== !1) { + var L0 = W[_(2103)].dependencies; + if (L0 && !L0[_(1979)](function(_0) { + var Le = _; + return Object[Le(2180)].hasOwnProperty[Le(1547)](n0, _0); + })) throw new Error(_(528) + L0[_(2515)](",")); + var T0 = W[_(2103)][_(795)]; + if (T0) { + var U0 = T0(Q); + if (!U0) { + var w0 = _(1425) + N[_(1823)](T0.errors); + if (N._opts[_(795)] == _(1133)) N.logger[_(503)](w0); + else throw new Error(w0); + } + } + } + var G0 = W[_(2103)][_(1157)], ne = W[_(2103)].inline, X0 = W.definition[_(1819)], O0; + if (G0) O0 = G0.call(N, Q, n0, o0); + else if (X0) + O0 = X0[_(1547)](N, Q, n0, o0), j.validateSchema !== !1 && N[_(795)](O0, !0); + else if (ne) O0 = ne[_(1547)](N, o0, W[_(1919)], Q, n0); + else if (O0 = W[_(2103)][_(328)], !O0) return; + if (O0 === void 0) throw new Error(_(487) + W[_(1919)] + _(293)); + var V0 = V.length; + return V[V0] = O0, { code: _(2241) + V0, validate: O0 }; + } + } + function d(E, O, T) { + var R = i, k = l[R(1547)](this, E, O, T); + return k >= 0 ? { index: k, compiling: !0 } : (k = this._compilations[R(2021)], this[R(2400)][k] = { schema: E, root: O, baseId: T }, { index: k, compiling: !1 }); + } + function f(E, O, T) { + var R = i, k = l[R(1547)](this, E, O, T); + k >= 0 && this._compilations.splice(k, 1); + } + function l(E, O, T) { + for (var R = i, k = 0; k < this._compilations.length; k++) { + var N = this._compilations[k]; + if (N[R(1174)] == E && N[R(1882)] == O && N.baseId == T) return k; + } + return -1; + } + function v(E, O) { + var T = i; + return T(927) + E + " = new RegExp(" + t[T(2451)](O[E]) + ");"; + } + function h(E) { + var O = i; + return O(1820) + E + O(1822) + E + "];"; + } + function m(E, O) { + var T = i; + return O[E] === void 0 ? "" : T(513) + E + T(1455) + E + "];"; + } + function y(E) { + var O = i; + return "var customRule" + E + O(1829) + E + "];"; + } + function w(E, O) { + var T = i; + if (!E[T(2021)]) return ""; + for (var R = "", k = 0; k < E.length; k++) R += O(k, E); + return R; + } + return tt; +} +var rt = { exports: {} }, fa; +function H2() { + var i = s; + if (fa) return rt.exports; + fa = 1; + var x = rt[i(1175)] = function() { + var a = i; + this[a(1229)] = {}; + }; + return x[i(2180)][i(655)] = function(a, e) { + var r = i; + this[r(1229)][a] = e; + }, x[i(2180)][i(2229)] = function(a) { + var e = i; + return this[e(1229)][a]; + }, x[i(2180)][i(669)] = function(a) { + var e = i; + delete this[e(1229)][a]; + }, x.prototype.clear = function() { + var a = i; + this[a(1229)] = {}; + }, rt.exports; +} +var at, la; +function U2() { + var i = s; + if (la) return at; + la = 1; + var x = Ze(), t = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, a = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], e = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i, r = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i, n = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, o = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i, c = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i, u = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i, d = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i, f = /^(?:\/(?:[^~/]|~0|~1)*)*$/, l = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i, v = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/; + at = h; + function h(j) { + var D = K; + return j = j == "full" ? D(2374) : D(1337), x[D(1753)](h[j]); + } + h[i(1337)] = { date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/, time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, "date-time": /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i, "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i, "uri-template": c, url: u, email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i, hostname: r, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: N, uuid: d, "json-pointer": f, "json-pointer-uri-fragment": l, "relative-json-pointer": v }, h[i(2374)] = { date: y, time: w, "date-time": O, uri: R, "uri-reference": o, "uri-template": c, url: u, email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, hostname: r, ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/, ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i, regex: N, uuid: d, "json-pointer": f, "json-pointer-uri-fragment": l, "relative-json-pointer": v }; + function m(j) { + return j % 4 === 0 && (j % 100 !== 0 || j % 400 === 0); + } + function y(j) { + var D = j.match(t); + if (!D) return !1; + var M = +D[1], F = +D[2], C = +D[3]; + return F >= 1 && F <= 12 && C >= 1 && C <= (F == 2 && m(M) ? 29 : a[F]); + } + function w(j, D) { + var M = i, F = j[M(2069)](e); + if (!F) return !1; + var C = F[1], H = F[2], U = F[3], V = F[5]; + return (C <= 23 && H <= 59 && U <= 59 || C == 23 && H == 59 && U == 60) && (!D || V); + } + var E = /t|\s/i; + function O(j) { + var D = i, M = j.split(E); + return M[D(2021)] == 2 && y(M[0]) && w(M[1], !0); + } + var T = /\/|:/; + function R(j) { + var D = i; + return T[D(856)](j) && n[D(856)](j); + } + var k = /[^\\]\\Z/; + function N(j) { + var D = i; + if (k[D(856)](j)) return !1; + try { + return new RegExp(j), !0; + } catch { + return !1; + } + } + return at; +} +var st, ha; +function V2() { + return ha || (ha = 1, st = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x[e(1174)][t], u = x.errSchemaPath + "/" + t, d = !x[e(1948)][e(2168)], f = "data" + (o || ""), l = e(2538) + n, v, h; + if (c == "#" || c == "#/") x.isRoot ? (v = x[e(2572)], h = e(328)) : (v = x[e(1882)].schema[e(2283)] === !0, h = e(1932)); + else { + var m = x[e(1259)](x[e(1880)], c, x[e(1407)]); + if (m === void 0) { + var y = x[e(2011)][e(2089)](x[e(1880)], c); + if (x[e(1948)][e(1028)] == "fail") { + x[e(1238)].error(y); + var w = w || []; + w.push(r), r = "", x[e(1598)] !== !1 ? (r += " { keyword: '" + e(2015) + e(953) + x.errorPath + e(511) + x[e(2643)][e(2451)](u) + e(2039) + x[e(2643)][e(1619)](c) + e(1687), x[e(1948)][e(1057)] !== !1 && (r += e(2366) + x[e(2643)][e(1619)](c) + "' "), x[e(1948)][e(1153)] && (r += e(1291) + x[e(2643)][e(2451)](c) + e(2411) + x.schemaPath + e(617) + f + " "), r += e(2062)) : r += e(2152); + var E = r; + r = w[e(932)](), !x[e(2416)] && d ? x.async ? r += e(1883) + E + e(1719) : r += e(2550) + E + "]; return false; " : r += e(2662) + E + e(1826), d && (r += " if (false) { "); + } else if (x[e(1948)][e(1028)] == e(1667)) x[e(1238)][e(1797)](y), d && (r += e(597)); + else throw new x[e(2011)](x.baseId, c, y); + } else if (m[e(1087)]) { + var O = x[e(2643)][e(1753)](x); + O[e(1624)]++; + var T = e(2538) + O.level; + O.schema = m.schema, O[e(1350)] = "", O[e(298)] = c; + var R = x.validate(O)[e(2112)](/validate\.schema/g, m[e(733)]); + r += " " + R + " ", d && (r += e(1138) + T + e(1597)); + } else v = m.$async === !0 || x.async && m[e(2283)] !== !1, h = m[e(733)]; + } + if (h) { + var w = w || []; + w[e(2380)](r), r = "", x.opts[e(2148)] ? r += " " + h + e(643) : r += " " + h + "( ", r += " " + f + ", (dataPath || '')", x.errorPath != '""' && (r += e(1512) + x[e(1952)]); + var k = o ? e(1073) + (o - 1 || "") : "parentData", N = o ? x.dataPathArr[o] : "parentDataProperty"; + r += " , " + k + e(1490) + N + e(2659); + var j = r; + if (r = w.pop(), v) { + if (!x[e(2572)]) throw new Error(e(1785)); + d && (r += " var " + l + "; "), r += e(2543) + j + "; ", d && (r += " " + l + " = true; "), r += e(1632), d && (r += " " + l + " = false; "), r += e(2062), d && (r += e(1138) + l + ") { "); + } else r += e(375) + j + e(2319) + h + e(2133) + h + e(2125), d && (r += e(1866)); + } + return r; + }), st; +} +var nt, pa; +function W2() { + return pa || (pa = 1, nt = function(x, t, a) { + var e = K, r = " ", n = x[e(1174)][t], o = x[e(1350)] + x[e(2643)][e(2337)](t), c = x.errSchemaPath + "/" + t, u = !x[e(1948)][e(2168)], d = x[e(2643)][e(1753)](x), f = ""; + d[e(1624)]++; + var l = e(2538) + d[e(1624)], v = d.baseId, h = !0, m = n; + if (m) + for (var y, w = -1, E = m.length - 1; w < E; ) + y = m[w += 1], (x[e(1948)][e(484)] ? typeof y == e(1923) && Object[e(1040)](y).length > 0 || y === !1 : x[e(2643)].schemaHasRules(y, x[e(2057)][e(1897)])) && (h = !1, d[e(1174)] = y, d.schemaPath = o + "[" + w + "]", d[e(298)] = c + "/" + w, r += " " + x[e(328)](d) + " ", d[e(1880)] = v, u && (r += " if (" + l + e(1597), f += "}")); + return u && (h ? r += e(597) : r += " " + f.slice(0, -1) + " "), r; + }), nt; +} +var it, ma; +function Z2() { + return ma || (ma = 1, it = function(x, t, a) { + var e = K, r = " ", n = x.level, o = x[e(1675)], c = x[e(1174)][t], u = x[e(1350)] + x[e(2643)].getProperty(t), d = x.errSchemaPath + "/" + t, f = !x[e(1948)][e(2168)], l = e(1073) + (o || ""), v = "valid" + n, h = e(1314) + n, m = x[e(2643)][e(1753)](x), y = ""; + m.level++; + var w = "valid" + m.level, E = c[e(1979)](function(D) { + var M = e; + return x[M(1948)].strictKeywords ? typeof D == M(1923) && Object[M(1040)](D)[M(2021)] > 0 || D === !1 : x[M(2643)][M(1743)](D, x.RULES[M(1897)]); + }); + if (E) { + var O = m[e(1880)]; + r += e(682) + h + e(1517) + v + " = false; "; + var T = x[e(2416)]; + x[e(2416)] = m.compositeRule = !0; + var R = c; + if (R) + for (var k, N = -1, j = R.length - 1; N < j; ) + k = R[N += 1], m[e(1174)] = k, m[e(1350)] = u + "[" + N + "]", m[e(298)] = d + "/" + N, r += " " + x[e(328)](m) + " ", m[e(1880)] = O, r += " " + v + " = " + v + e(388) + w + e(878) + v + e(1597), y += "}"; + x[e(2416)] = m[e(2416)] = T, r += " " + y + e(375) + v + e(1540), x[e(1598)] !== !1 ? (r += e(1264) + "anyOf" + e(953) + x.errorPath + " , schemaPath: " + x[e(2643)][e(2451)](d) + e(2326), x.opts[e(1057)] !== !1 && (r += " , message: 'should match some schema in anyOf' "), x[e(1948)][e(1153)] && (r += " , schema: validate.schema" + u + " , parentSchema: validate.schema" + x[e(1350)] + " , data: " + l + " "), r += e(2062)) : r += " {} ", r += e(1826), !x[e(2416)] && f && (x[e(2572)] ? r += e(793) : r += e(327)), r += e(2663) + h + "; if (vErrors !== null) { if (" + h + ") vErrors.length = " + h + "; else vErrors = null; } ", x[e(1948)][e(2168)] && (r += e(2062)); + } else f && (r += e(597)); + return r; + }), it; +} +var ot, va; +function B2() { + return va || (va = 1, ot = function(x, t, a) { + var e = K, r = " ", n = x[e(1174)][t], o = x.errSchemaPath + "/" + t; + x[e(1948)].allErrors; + var c = x[e(2643)][e(2451)](n); + return x[e(1948)][e(2297)] === !0 ? r += e(1212) + c + ");" : typeof x[e(1948)][e(2297)] == "function" && (r += e(1436) + c + ", " + x.util[e(2451)](o) + e(1165)), r; + }), ot; +} +var ct, ga; +function K2() { + return ga || (ga = 1, ct = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x[e(1174)][t], u = x[e(1350)] + x.util[e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], l = e(1073) + (o || ""), v = e(2538) + n, h = x[e(1948)][e(2176)] && c && c[e(2176)]; + h && (r += e(800) + n + e(729) + x[e(2643)].getData(c[e(2176)], o, x[e(2197)]) + "; "), !h && (r += e(800) + n + " = validate.schema" + u + ";"), r += e(2261) + v + e(670) + l + e(2489) + n + e(2379) + v + e(2654); + var m = m || []; + m[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + e(1318) + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + e(1973) + n + e(2062), x.opts[e(1057)] !== !1 && (r += e(645)), x[e(1948)][e(1153)] && (r += e(1150) + u + e(2411) + x[e(1350)] + e(617) + l + " "), r += " } ") : r += e(2152); + var y = r; + return r = m[e(932)](), !x.compositeRule && f ? x[e(2572)] ? r += e(1883) + y + e(1719) : r += e(2550) + y + e(973) : r += " var err = " + y + e(1826), r += " }", f && (r += " else { "), r; + }), ct; +} +var ut, ya; +function J2() { + return ya || (ya = 1, ut = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x.schema[t], u = x.schemaPath + x[e(2643)][e(2337)](t), d = x.errSchemaPath + "/" + t, f = !x[e(1948)].allErrors, l = "data" + (o || ""), v = e(2538) + n, h = "errs__" + n, m = x.util[e(1753)](x), y = ""; + m[e(1624)]++; + var w = e(2538) + m[e(1624)], E = "i" + n, O = m[e(1675)] = x[e(1675)] + 1, T = e(1073) + O, R = x.baseId, k = x[e(1948)][e(484)] ? typeof c == e(1923) && Object[e(1040)](c)[e(2021)] > 0 || c === !1 : x.util[e(1743)](c, x[e(2057)][e(1897)]); + if (r += e(2261) + h + e(1838) + v + ";", k) { + var N = x[e(2416)]; + x[e(2416)] = m.compositeRule = !0, m.schema = c, m[e(1350)] = u, m[e(298)] = d, r += " var " + w + e(2017) + E + e(1680) + E + e(1913) + l + ".length; " + E + e(2191), m[e(1952)] = x[e(2643)][e(2610)](x[e(1952)], E, x.opts[e(2420)], !0); + var j = l + "[" + E + "]"; + m[e(2197)][O] = E; + var D = x[e(328)](m); + m[e(1880)] = R, x.util[e(1622)](D, T) < 2 ? r += " " + x.util[e(1299)](D, T, j) + " " : r += e(682) + T + e(729) + j + "; " + D + " ", r += e(1138) + w + e(2477), x[e(2416)] = m[e(2416)] = N, r += " " + y + e(375) + w + ") {"; + } else r += e(1138) + l + ".length == 0) {"; + var M = M || []; + M.push(r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + e(747) + "' , dataPath: (dataPath || '') + " + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + " , params: {} ", x[e(1948)][e(1057)] !== !1 && (r += e(999)), x[e(1948)][e(1153)] && (r += e(1150) + u + " , parentSchema: validate.schema" + x[e(1350)] + " , data: " + l + " "), r += e(2062)) : r += e(2152); + var F = r; + return r = M.pop(), !x[e(2416)] && f ? x[e(2572)] ? r += e(1883) + F + e(1719) : r += e(2550) + F + "]; return false; " : r += e(2662) + F + e(1826), r += e(840), k && (r += e(1881) + h + "; if (vErrors !== null) { if (" + h + e(738) + h + e(2469)), x[e(1948)][e(2168)] && (r += e(2062)), r; + }), ut; +} +var dt, ba; +function G2() { + return ba || (ba = 1, dt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x[e(1174)][t], u = x[e(1350)] + x[e(2643)][e(2337)](t), d = x.errSchemaPath + "/" + t, f = !x[e(1948)].allErrors, l = e(1073) + (o || ""), v = e(1314) + n, h = x[e(2643)].copy(x), m = ""; + h[e(1624)]++; + var y = "valid" + h[e(1624)], w = {}, E = {}, O = x[e(1948)][e(1503)]; + for (N in c) + if (N != "__proto__") { + var T = c[N], R = Array.isArray(T) ? E : w; + R[N] = T; + } + r += e(2261) + v + " = errors;"; + var k = x[e(1952)]; + r += e(1533) + n + ";"; + for (var N in E) + if (R = E[N], R.length) { + if (r += e(737) + l + x.util[e(2337)](N) + " !== undefined ", O && (r += e(365) + l + ", '" + x[e(2643)].escapeQuotes(N) + e(2169)), f) { + r += e(897); + var j = R; + if (j) + for (var D, M = -1, F = j[e(2021)] - 1; M < F; ) { + D = j[M += 1], M && (r += e(388)); + var C = x.util[e(2337)](D), H = l + C; + r += " ( ( " + H + e(2455), O && (r += e(1202) + l + e(1356) + x.util.escapeQuotes(D) + e(2169)), r += ") && (missing" + n + e(729) + x[e(2643)][e(2451)](x[e(1948)][e(2420)] ? D : C) + e(1686); + } + r += e(696); + var U = e(1722) + n, V = "' + " + U + e(2555); + x.opts[e(1268)] && (x[e(1952)] = x[e(1948)][e(2420)] ? x.util[e(2610)](k, U, !0) : k + " + " + U); + var J = J || []; + J[e(2380)](r), r = "", x.createErrors !== !1 ? (r += e(1264) + e(2372) + "' , dataPath: (dataPath || '') + " + x[e(1952)] + " , schemaPath: " + x[e(2643)][e(2451)](d) + e(1530) + x[e(2643)][e(1619)](N) + e(2044) + V + "', depsCount: " + R.length + ", deps: '" + x[e(2643)][e(1619)](R[e(2021)] == 1 ? R[0] : R[e(2515)](", ")) + e(1687), x[e(1948)][e(1057)] !== !1 && (r += e(1912), R[e(2021)] == 1 ? r += e(845) + x[e(2643)].escapeQuotes(R[0]) : r += e(1816) + x[e(2643)][e(1619)](R[e(2515)](", ")), r += e(1847) + x[e(2643)][e(1619)](N) + e(2407)), x[e(1948)].verbose && (r += e(1150) + u + e(2411) + x[e(1350)] + e(617) + l + " "), r += " } ") : r += e(2152); + var c0 = r; + r = J[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += " throw new ValidationError([" + c0 + e(1719) : r += e(2550) + c0 + e(973) : r += e(2662) + c0 + e(1826); + } else { + r += e(712); + var u0 = R; + if (u0) + for (var D, l0 = -1, i0 = u0[e(2021)] - 1; l0 < i0; ) { + D = u0[l0 += 1]; + var C = x[e(2643)][e(2337)](D), V = x.util[e(1619)](D), H = l + C; + x[e(1948)][e(1268)] && (x[e(1952)] = x.util[e(1449)](k, D, x[e(1948)].jsonPointers)), r += " if ( " + H + " === undefined ", O && (r += e(1202) + l + e(1356) + x[e(2643)].escapeQuotes(D) + "') "), r += ") { var err = ", x.createErrors !== !1 ? (r += e(1264) + e(2372) + e(953) + x.errorPath + e(511) + x[e(2643)][e(2451)](d) + e(1530) + x[e(2643)][e(1619)](N) + e(2044) + V + e(541) + R[e(2021)] + e(1250) + x[e(2643)].escapeQuotes(R[e(2021)] == 1 ? R[0] : R[e(2515)](", ")) + e(1687), x[e(1948)].messages !== !1 && (r += e(1912), R.length == 1 ? r += e(845) + x[e(2643)].escapeQuotes(R[0]) : r += e(1816) + x[e(2643)][e(1619)](R[e(2515)](", ")), r += e(1847) + x[e(2643)][e(1619)](N) + e(2407)), x.opts[e(1153)] && (r += e(1150) + u + e(2411) + x.schemaPath + e(617) + l + " "), r += e(2062)) : r += e(2152), r += e(1502); + } + } + r += e(1504), f && (m += "}", r += " else { "); + } + x[e(1952)] = k; + var f0 = h[e(1880)]; + for (var N in w) { + var T = w[N]; + (x.opts[e(484)] ? typeof T == e(1923) && Object.keys(T)[e(2021)] > 0 || T === !1 : x[e(2643)][e(1743)](T, x[e(2057)][e(1897)])) && (r += " " + y + " = true; if ( " + l + x[e(2643)][e(2337)](N) + e(755), O && (r += e(365) + l + e(1356) + x[e(2643)][e(1619)](N) + "') "), r += e(1597), h[e(1174)] = T, h[e(1350)] = u + x.util[e(2337)](N), h[e(298)] = d + "/" + x[e(2643)][e(1170)](N), r += " " + x.validate(h) + " ", h.baseId = f0, r += " } ", f && (r += e(1138) + y + e(1597), m += "}")); + } + return f && (r += e(2586) + m + e(1138) + v + e(1493)), r; + }), dt; +} +var ft, wa; +function Q2() { + return wa || (wa = 1, ft = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x.dataLevel, c = x[e(1174)][t], u = x[e(1350)] + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], l = e(1073) + (o || ""), v = e(2538) + n, h = x[e(1948)].$data && c && c.$data; + h && (r += " var schema" + n + " = " + x[e(2643)][e(2040)](c[e(2176)], o, x[e(2197)]) + "; "); + var m = "i" + n, y = e(1174) + n; + !h && (r += e(682) + y + " = validate.schema" + u + ";"), r += e(2261) + v + ";", h && (r += " if (schema" + n + " === undefined) " + v + e(2322) + n + ")) " + v + e(2656)), r += "" + v + " = false;for (var " + m + "=0; " + m + "<" + y + e(2363) + m + e(1877) + l + ", " + y + "[" + m + e(1338) + v + e(2413), h && (r += e(1843)), r += " if (!" + v + e(2654); + var w = w || []; + w.push(r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + e(1053) + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + e(396) + n + " } ", x[e(1948)][e(1057)] !== !1 && (r += e(1164)), x[e(1948)][e(1153)] && (r += e(1150) + u + e(2411) + x[e(1350)] + e(617) + l + " "), r += e(2062)) : r += e(2152); + var E = r; + return r = w[e(932)](), !x[e(2416)] && f ? x.async ? r += e(1883) + E + e(1719) : r += e(2550) + E + "]; return false; " : r += " var err = " + E + e(1826), r += " }", f && (r += e(1866)), r; + }), ft; +} +var lt, Sa; +function X2() { + return Sa || (Sa = 1, lt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x[e(1174)][t], u = x[e(1350)] + x.util[e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], l = e(1073) + (o || ""); + if (x.opts[e(2093)] === !1) return f && (r += e(597)), r; + var v = x[e(1948)][e(2176)] && c && c[e(2176)], h; + v ? (r += e(800) + n + " = " + x[e(2643)][e(2040)](c[e(2176)], o, x[e(2197)]) + "; ", h = e(1174) + n) : h = c; + var m = x[e(1948)][e(291)], y = Array.isArray(m); + if (v) { + var w = e(2093) + n, E = e(2273) + n, O = e(1835) + n; + r += e(682) + w + " = formats[" + h + "]; var " + E + " = typeof " + w + e(1227) + w + e(329) + w + e(1327) + O + e(729) + E + e(1760) + w + ".type || 'string'; if (" + E + e(1597), x[e(2572)] && (r += " var async" + n + e(729) + w + e(2238)), r += " " + w + " = " + w + ".validate; } if ( ", v && (r += " (" + h + e(1341) + h + " != 'string') || "), r += " (", m != "ignore" && (r += " (" + h + e(2360) + w + " ", y && (r += e(646) + h + e(2346)), r += ") || "), r += " (" + w + e(1760) + O + e(2060) + a + e(1180) + w + e(2429), x[e(2572)] ? r += " (async" + n + " ? await " + w + "(" + l + ") : " + w + "(" + l + e(2009) : r += " " + w + "(" + l + ") ", r += e(1281) + w + ".test(" + l + e(2629); + } else { + var w = x[e(2199)][c]; + if (!w) { + if (m == e(1667)) return x[e(1238)][e(1797)]('unknown format "' + c + '" ignored in schema at path "' + x[e(298)] + '"'), f && (r += e(597)), r; + if (y && m[e(831)](c) >= 0) return f && (r += e(597)), r; + throw new Error(e(1148) + c + e(377) + x[e(298)] + '"'); + } + var E = typeof w == e(1923) && !(w instanceof RegExp) && w[e(328)], O = E && w[e(338)] || e(2348); + if (E) { + var T = w.async === !0; + w = w[e(328)]; + } + if (O != a) return f && (r += e(597)), r; + if (T) { + if (!x.async) throw new Error(e(612)); + var R = e(2199) + x[e(2643)][e(2337)](c) + ".validate"; + r += e(2529) + R + "(" + l + "))) { "; + } else { + r += e(292); + var R = e(2199) + x[e(2643)].getProperty(c); + E && (R += ".validate"), typeof w == e(1853) ? r += " " + R + "(" + l + ") " : r += " " + R + e(1910) + l + ") ", r += e(1597); + } + } + var k = k || []; + k[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += " { keyword: '" + e(2093) + e(953) + x[e(1952)] + e(511) + x.util[e(2451)](d) + " , params: { format: ", v ? r += "" + h : r += "" + x[e(2643)][e(2451)](c), r += " } ", x[e(1948)].messages !== !1 && (r += ` , message: 'should match format "`, v ? r += e(2308) + h + e(2555) : r += "" + x[e(2643)][e(1619)](c), r += e(2314)), x[e(1948)][e(1153)] && (r += " , schema: ", v ? r += e(2012) + u : r += "" + x[e(2643)][e(2451)](c), r += e(1334) + x.schemaPath + e(617) + l + " "), r += e(2062)) : r += e(2152); + var N = r; + return r = k[e(932)](), !x.compositeRule && f ? x.async ? r += e(1883) + N + e(1719) : r += e(2550) + N + e(973) : r += " var err = " + N + e(1826), r += e(2062), f && (r += e(1866)), r; + }), lt; +} +var ht, ka; +function Y2() { + return ka || (ka = 1, ht = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x.schema[t], u = x[e(1350)] + x[e(2643)].getProperty(t), d = x.errSchemaPath + "/" + t, f = !x.opts.allErrors, l = e(1073) + (o || ""), v = e(2538) + n, h = e(1314) + n, m = x.util[e(1753)](x); + m[e(1624)]++; + var y = e(2538) + m[e(1624)], w = x[e(1174)][e(432)], E = x[e(1174)].else, O = w !== void 0 && (x[e(1948)][e(484)] ? typeof w == "object" && Object[e(1040)](w)[e(2021)] > 0 || w === !1 : x.util.schemaHasRules(w, x[e(2057)][e(1897)])), T = E !== void 0 && (x.opts[e(484)] ? typeof E == e(1923) && Object[e(1040)](E)[e(2021)] > 0 || E === !1 : x[e(2643)].schemaHasRules(E, x[e(2057)][e(1897)])), R = m[e(1880)]; + if (O || T) { + var k; + m.createErrors = !1, m[e(1174)] = c, m[e(1350)] = u, m[e(298)] = d, r += e(682) + h + e(1517) + v + " = true; "; + var N = x.compositeRule; + x[e(2416)] = m[e(2416)] = !0, r += " " + x.validate(m) + " ", m.baseId = R, m[e(1598)] = !0, r += e(1881) + h + "; if (vErrors !== null) { if (" + h + e(738) + h + e(2023), x[e(2416)] = m.compositeRule = N, O ? (r += e(1138) + y + ") { ", m[e(1174)] = x[e(1174)][e(432)], m[e(1350)] = x[e(1350)] + ".then", m[e(298)] = x[e(298)] + "/then", r += " " + x[e(328)](m) + " ", m[e(1880)] = R, r += " " + v + e(729) + y + "; ", O && T ? (k = e(798) + n, r += " var " + k + e(1548)) : k = e(2509), r += e(2062), T && (r += e(1866))) : r += e(375) + y + ") { ", T && (m[e(1174)] = x[e(1174)][e(448)], m[e(1350)] = x.schemaPath + ".else", m[e(298)] = x.errSchemaPath + "/else", r += " " + x[e(328)](m) + " ", m.baseId = R, r += " " + v + e(729) + y + "; ", O && T ? (k = e(798) + n, r += e(682) + k + e(582)) : k = e(2020), r += e(2062)), r += " if (!" + v + e(1540), x[e(1598)] !== !1 ? (r += " { keyword: 'if" + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + " , params: { failingKeyword: " + k + e(2062), x[e(1948)][e(1057)] !== !1 && (r += e(1083) + k + e(773)), x[e(1948)].verbose && (r += e(1150) + u + e(2411) + x[e(1350)] + e(617) + l + " "), r += e(2062)) : r += e(2152), r += e(1826), !x[e(2416)] && f && (x[e(2572)] ? r += e(793) : r += e(327)), r += " } ", f && (r += " else { "); + } else f && (r += e(597)); + return r; + }), ht; +} +var pt, Ea; +function _2() { + return Ea || (Ea = 1, pt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x[e(1174)][t], u = x.schemaPath + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], l = "data" + (o || ""), v = "valid" + n, h = e(1314) + n, m = x.util[e(1753)](x), y = ""; + m[e(1624)]++; + var w = e(2538) + m[e(1624)], E = "i" + n, O = m.dataLevel = x.dataLevel + 1, T = e(1073) + O, R = x.baseId; + if (r += e(2261) + h + e(1838) + v + ";", Array.isArray(c)) { + var k = x[e(1174)][e(2118)]; + if (k === !1) { + r += " " + v + e(729) + l + e(1997) + c.length + "; "; + var N = d; + d = x[e(298)] + e(1731), r += " if (!" + v + e(2654); + var j = j || []; + j[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += " { keyword: '" + e(2118) + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + e(1723) + c[e(2021)] + " } ", x[e(1948)][e(1057)] !== !1 && (r += e(2036) + c[e(2021)] + e(963)), x[e(1948)][e(1153)] && (r += " , schema: false , parentSchema: validate.schema" + x[e(1350)] + " , data: " + l + " "), r += e(2062)) : r += " {} "; + var D = r; + r = j.pop(), !x[e(2416)] && f ? x[e(2572)] ? r += e(1883) + D + e(1719) : r += e(2550) + D + e(973) : r += " var err = " + D + e(1826), r += e(2062), d = N, f && (y += "}", r += e(1866)); + } + var M = c; + if (M) { + for (var F, C = -1, H = M[e(2021)] - 1; C < H; ) + if (F = M[C += 1], x.opts[e(484)] ? typeof F == e(1923) && Object[e(1040)](F)[e(2021)] > 0 || F === !1 : x[e(2643)][e(1743)](F, x[e(2057)].all)) { + r += " " + w + e(1854) + l + ".length > " + C + e(1597); + var U = l + "[" + C + "]"; + m[e(1174)] = F, m.schemaPath = u + "[" + C + "]", m[e(298)] = d + "/" + C, m[e(1952)] = x[e(2643)][e(2610)](x[e(1952)], C, x.opts[e(2420)], !0), m[e(2197)][O] = C; + var V = x.validate(m); + m.baseId = R, x[e(2643)][e(1622)](V, T) < 2 ? r += " " + x[e(2643)][e(1299)](V, T, U) + " " : r += e(682) + T + e(729) + U + "; " + V + " ", r += " } ", f && (r += e(1138) + w + e(1597), y += "}"); + } + } + if (typeof k == e(1923) && (x[e(1948)][e(484)] ? typeof k == e(1923) && Object[e(1040)](k)[e(2021)] > 0 || k === !1 : x[e(2643)][e(1743)](k, x[e(2057)][e(1897)]))) { + m[e(1174)] = k, m[e(1350)] = x[e(1350)] + ".additionalItems", m.errSchemaPath = x[e(298)] + e(1731), r += " " + w + e(1854) + l + e(2352) + c.length + e(2587) + E + e(729) + c.length + "; " + E + e(1913) + l + ".length; " + E + "++) { ", m[e(1952)] = x[e(2643)][e(2610)](x[e(1952)], E, x[e(1948)][e(2420)], !0); + var U = l + "[" + E + "]"; + m[e(2197)][O] = E; + var V = x.validate(m); + m.baseId = R, x[e(2643)].varOccurences(V, T) < 2 ? r += " " + x[e(2643)].varReplace(V, T, U) + " " : r += e(682) + T + e(729) + U + "; " + V + " ", f && (r += e(375) + w + e(1732)), r += e(2146), f && (r += e(1138) + w + e(1597), y += "}"); + } + } else if (x.opts[e(484)] ? typeof c == e(1923) && Object[e(1040)](c)[e(2021)] > 0 || c === !1 : x[e(2643)][e(1743)](c, x[e(2057)].all)) { + m.schema = c, m[e(1350)] = u, m[e(298)] = d, r += " for (var " + E + e(729) + 0 + "; " + E + e(1913) + l + e(2363) + E + e(2191), m[e(1952)] = x.util[e(2610)](x.errorPath, E, x[e(1948)][e(2420)], !0); + var U = l + "[" + E + "]"; + m[e(2197)][O] = E; + var V = x.validate(m); + m[e(1880)] = R, x[e(2643)][e(1622)](V, T) < 2 ? r += " " + x[e(2643)][e(1299)](V, T, U) + " " : r += e(682) + T + e(729) + U + "; " + V + " ", f && (r += e(375) + w + ") break; "), r += " }"; + } + return f && (r += " " + y + e(1138) + h + e(1493)), r; + }), pt; +} +var mt, Ia; +function Pa() { + return Ia || (Ia = 1, mt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x.dataLevel, c = x.schema[t], u = x[e(1350)] + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)].allErrors, R, l = e(1073) + (o || ""), v = x[e(1948)][e(2176)] && c && c[e(2176)], h; + v ? (r += e(800) + n + e(729) + x[e(2643)][e(2040)](c[e(2176)], o, x[e(2197)]) + "; ", h = e(1174) + n) : h = c; + var m = t == e(981), y = e(m ? 1515 : 654), w = x[e(1174)][y], E = x[e(1948)][e(2176)] && w && w.$data, O = m ? "<" : ">", T = m ? ">" : "<", R = void 0; + if (!(v || typeof c == "number" || c === void 0)) throw new Error(t + e(2070)); + if (!(E || w === void 0 || typeof w == e(960) || typeof w == e(2251))) throw new Error(y + e(1193)); + if (E) { + var k = x[e(2643)][e(2040)](w.$data, o, x[e(2197)]), N = "exclusive" + n, j = e(1856) + n, D = e(1194) + n, M = "op" + n, F = e(2308) + M + e(2555); + r += " var schemaExcl" + n + e(729) + k + "; ", k = e(2485) + n, r += e(682) + N + "; var " + j + e(2660) + k + e(2577) + j + e(1307) + j + e(2137) + j + e(1960); + var R = y, C = C || []; + C.push(r), r = "", x.createErrors !== !1 ? (r += " { keyword: '" + (R || e(1857)) + e(953) + x.errorPath + e(511) + x[e(2643)][e(2451)](d) + " , params: {} ", x[e(1948)].messages !== !1 && (r += e(1668) + y + e(1189)), x[e(1948)][e(1153)] && (r += e(1150) + u + e(2411) + x[e(1350)] + e(617) + l + " "), r += e(2062)) : r += " {} "; + var H = r; + r = C[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += " throw new ValidationError([" + H + e(1719) : r += e(2550) + H + e(973) : r += e(2662) + H + e(1826), r += e(1621), v && (r += " (" + h + e(1341) + h + e(1831)), r += " " + j + e(534) + N + e(729) + h + e(2621) + k + " " + O + "= " + h + e(1661) + l + " " + T + "= " + k + e(1281) + l + " " + T + " " + h + e(2503) + N + " = " + k + " === true) ? " + l + " " + T + "= " + h + e(1281) + l + " " + T + " " + h + e(2343) + l + e(461) + l + e(1665) + n + e(729) + N + e(1814) + O + e(941) + O + "='; ", c === void 0 && (R = y, d = x[e(298)] + "/" + y, h = k, v = E); + } else { + var D = typeof w == e(960), F = O; + if (D && v) { + var M = "'" + F + "'"; + r += e(737), v && (r += " (" + h + e(1341) + h + e(1831)), r += e(1612) + h + e(2621) + w + " " + O + "= " + h + " ? " + l + " " + T + "= " + w + " : " + l + " " + T + " " + h + e(2343) + l + e(461) + l + e(1597); + } else { + D && c === void 0 ? (N = !0, R = y, d = x[e(298)] + "/" + y, h = w, T += "=") : (D && (h = Math[m ? e(1524) : "max"](w, c)), w === (D ? h : !0) ? (N = !0, R = y, d = x[e(298)] + "/" + y, T += "=") : (N = !1, F += "=")); + var M = "'" + F + "'"; + r += e(737), v && (r += " (" + h + e(1341) + h + e(1831)), r += " " + l + " " + T + " " + h + e(388) + l + " !== " + l + e(1597); + } + } + R = R || t; + var C = C || []; + C[e(2380)](r), r = "", x.createErrors !== !1 ? (r += e(1264) + (R || e(1179)) + e(953) + x[e(1952)] + e(511) + x[e(2643)].toQuotedString(d) + e(2312) + M + e(661) + h + ", exclusive: " + N + e(2062), x[e(1948)][e(1057)] !== !1 && (r += e(1221) + F + " ", v ? r += e(2308) + h : r += "" + h + "'"), x[e(1948)][e(1153)] && (r += " , schema: ", v ? r += "validate.schema" + u : r += "" + c, r += e(1334) + x[e(1350)] + e(617) + l + " "), r += " } ") : r += " {} "; + var H = r; + return r = C[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += " throw new ValidationError([" + H + e(1719) : r += e(2550) + H + e(973) : r += e(2662) + H + e(1826), r += " } ", f && (r += " else { "), r; + }), mt; +} +var vt, Ra; +function Ca() { + return Ra || (Ra = 1, vt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x.dataLevel, c = x[e(1174)][t], u = x.schemaPath + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], y, l = e(1073) + (o || ""), v = x[e(1948)][e(2176)] && c && c[e(2176)], h; + if (v ? (r += e(800) + n + " = " + x[e(2643)].getData(c[e(2176)], o, x[e(2197)]) + "; ", h = e(1174) + n) : h = c, !(v || typeof c == e(960))) throw new Error(t + e(2070)); + var m = t == "maxItems" ? ">" : "<"; + r += "if ( ", v && (r += " (" + h + e(1341) + h + e(1831)), r += " " + l + e(1930) + m + " " + h + e(1597); + var y = t, w = w || []; + w[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += " { keyword: '" + (y || e(1082)) + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + e(1723) + h + e(2062), x[e(1948)].messages !== !1 && (r += " , message: 'should NOT have ", t == e(2024) ? r += e(509) : r += e(875), r += " than ", v ? r += e(2308) + h + e(2555) : r += "" + c, r += " items' "), x[e(1948)][e(1153)] && (r += e(2439), v ? r += e(2012) + u : r += "" + c, r += e(1334) + x[e(1350)] + " , data: " + l + " "), r += e(2062)) : r += e(2152); + var E = r; + return r = w[e(932)](), !x[e(2416)] && f ? x.async ? r += e(1883) + E + "]); " : r += e(2550) + E + e(973) : r += " var err = " + E + e(1826), r += "} ", f && (r += " else { "), r; + }), vt; +} +var gt, Fa; +function Na() { + return Fa || (Fa = 1, gt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x.dataLevel, c = x[e(1174)][t], u = x[e(1350)] + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], y, l = e(1073) + (o || ""), v = x[e(1948)][e(2176)] && c && c.$data, h; + if (v ? (r += e(800) + n + e(729) + x[e(2643)][e(2040)](c.$data, o, x[e(2197)]) + "; ", h = e(1174) + n) : h = c, !(v || typeof c == e(960))) throw new Error(t + e(2070)); + var m = t == e(2277) ? ">" : "<"; + r += e(357), v && (r += " (" + h + e(1341) + h + e(1831)), x[e(1948)].unicode === !1 ? r += " " + l + e(1930) : r += " ucs2length(" + l + ") ", r += " " + m + " " + h + e(1597); + var y = t, w = w || []; + w.push(r), r = "", x[e(1598)] !== !1 ? (r += " { keyword: '" + (y || e(1994)) + e(953) + x[e(1952)] + e(511) + x.util[e(2451)](d) + e(1723) + h + e(2062), x.opts[e(1057)] !== !1 && (r += e(1511), t == e(2277) ? r += e(2253) : r += e(2423), r += e(832), v ? r += e(2308) + h + " + '" : r += "" + c, r += e(2122)), x.opts.verbose && (r += e(2439), v ? r += e(2012) + u : r += "" + c, r += e(1334) + x[e(1350)] + e(617) + l + " "), r += e(2062)) : r += " {} "; + var E = r; + return r = w[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += e(1883) + E + e(1719) : r += e(2550) + E + "]; return false; " : r += e(2662) + E + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += "} ", f && (r += e(1866)), r; + }), gt; +} +var yt, qa; +function Ta() { + return qa || (qa = 1, yt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x[e(1174)][t], u = x[e(1350)] + x[e(2643)][e(2337)](t), d = x.errSchemaPath + "/" + t, f = !x.opts[e(2168)], y, l = e(1073) + (o || ""), v = x[e(1948)][e(2176)] && c && c[e(2176)], h; + if (v ? (r += e(800) + n + e(729) + x.util[e(2040)](c[e(2176)], o, x[e(2197)]) + "; ", h = "schema" + n) : h = c, !(v || typeof c == e(960))) throw new Error(t + e(2070)); + var m = t == e(2225) ? ">" : "<"; + r += e(357), v && (r += " (" + h + e(1341) + h + " != 'number') || "), r += e(2284) + l + ").length " + m + " " + h + e(1597); + var y = t, w = w || []; + w[e(2380)](r), r = "", x.createErrors !== !1 ? (r += e(1264) + (y || e(563)) + "' , dataPath: (dataPath || '') + " + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + e(1723) + h + e(2062), x[e(1948)][e(1057)] !== !1 && (r += e(1521), t == e(2225) ? r += e(509) : r += e(875), r += e(832), v ? r += e(2308) + h + e(2555) : r += "" + c, r += e(838)), x[e(1948)][e(1153)] && (r += " , schema: ", v ? r += e(2012) + u : r += "" + c, r += e(1334) + x.schemaPath + e(617) + l + " "), r += e(2062)) : r += e(2152); + var E = r; + return r = w[e(932)](), !x.compositeRule && f ? x[e(2572)] ? r += " throw new ValidationError([" + E + e(1719) : r += e(2550) + E + e(973) : r += e(2662) + E + e(1826), r += "} ", f && (r += e(1866)), r; + }), yt; +} +var bt, Oa; +function ec() { + return Oa || (Oa = 1, bt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x.dataLevel, c = x[e(1174)][t], u = x[e(1350)] + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x.opts.allErrors, l = e(1073) + (o || ""), v = x[e(1948)][e(2176)] && c && c[e(2176)], h; + if (v ? (r += e(800) + n + e(729) + x[e(2643)][e(2040)](c[e(2176)], o, x[e(2197)]) + "; ", h = e(1174) + n) : h = c, !(v || typeof c == e(960))) throw new Error(t + e(2070)); + r += "var division" + n + e(997), v && (r += " " + h + " !== undefined && ( typeof " + h + e(1430)), r += " (division" + n + " = " + l + e(723) + h + ", ", x[e(1948)][e(1590)] ? r += e(431) + n + e(1631) + n + e(802) + x[e(1948)][e(1590)] + " " : r += e(594) + n + e(1545) + n + ") ", r += e(680), v && (r += e(828)), r += e(2384); + var m = m || []; + m[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += " { keyword: 'multipleOf' , dataPath: (dataPath || '') + " + x.errorPath + e(511) + x.util[e(2451)](d) + e(1106) + h + " } ", x[e(1948)][e(1057)] !== !1 && (r += " , message: 'should be multiple of ", v ? r += "' + " + h : r += "" + h + "'"), x[e(1948)].verbose && (r += " , schema: ", v ? r += e(2012) + u : r += "" + c, r += e(1334) + x[e(1350)] + e(617) + l + " "), r += " } ") : r += e(2152); + var y = r; + return r = m[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += e(1883) + y + "]); " : r += e(2550) + y + e(973) : r += " var err = " + y + e(1826), r += "} ", f && (r += e(1866)), r; + }), bt; +} +var wt, Aa; +function xc() { + return Aa || (Aa = 1, wt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x.dataLevel, c = x[e(1174)][t], u = x[e(1350)] + x.util[e(2337)](t), d = x.errSchemaPath + "/" + t, f = !x[e(1948)][e(2168)], l = "data" + (o || ""), v = e(1314) + n, h = x[e(2643)].copy(x); + h[e(1624)]++; + var m = "valid" + h.level; + if (x[e(1948)][e(484)] ? typeof c == e(1923) && Object[e(1040)](c)[e(2021)] > 0 || c === !1 : x[e(2643)].schemaHasRules(c, x[e(2057)][e(1897)])) { + h[e(1174)] = c, h[e(1350)] = u, h[e(298)] = d, r += e(682) + v + e(1905); + var y = x.compositeRule; + x[e(2416)] = h[e(2416)] = !0, h.createErrors = !1; + var w; + h[e(1948)][e(2168)] && (w = h[e(1948)][e(2168)], h[e(1948)].allErrors = !1), r += " " + x[e(328)](h) + " ", h[e(1598)] = !0, w && (h[e(1948)][e(2168)] = w), x[e(2416)] = h.compositeRule = y, r += e(1138) + m + ") { "; + var E = E || []; + E[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + e(518) + e(953) + x[e(1952)] + e(511) + x.util.toQuotedString(d) + e(2326), x[e(1948)].messages !== !1 && (r += " , message: 'should NOT be valid' "), x[e(1948)][e(1153)] && (r += e(1150) + u + e(2411) + x[e(1350)] + e(617) + l + " "), r += " } ") : r += e(2152); + var O = r; + r = E[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += " throw new ValidationError([" + O + e(1719) : r += e(2550) + O + e(973) : r += " var err = " + O + e(1826), r += e(2663) + v + e(598) + v + e(738) + v + e(2469), x.opts[e(2168)] && (r += e(2062)); + } else r += e(341), x[e(1598)] !== !1 ? (r += e(1264) + e(518) + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + e(2326), x[e(1948)][e(1057)] !== !1 && (r += e(788)), x[e(1948)].verbose && (r += e(1150) + u + " , parentSchema: validate.schema" + x.schemaPath + " , data: " + l + " "), r += e(2062)) : r += e(2152), r += e(1826), f && (r += " if (false) { "); + return r; + }), wt; +} +var St, Da; +function tc() { + return Da || (Da = 1, St = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x.schema[t], u = x.schemaPath + x.util[e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)].allErrors, l = e(1073) + (o || ""), v = e(2538) + n, h = e(1314) + n, m = x.util[e(1753)](x), y = ""; + m.level++; + var w = "valid" + m[e(1624)], E = m.baseId, O = e(988) + n, T = e(762) + n; + r += e(2261) + h + e(2094) + O + e(2136) + v + e(2136) + T + e(2085); + var R = x[e(2416)]; + x[e(2416)] = m.compositeRule = !0; + var k = c; + if (k) + for (var N, j = -1, D = k[e(2021)] - 1; j < D; ) + N = k[j += 1], (x[e(1948)][e(484)] ? typeof N == e(1923) && Object[e(1040)](N)[e(2021)] > 0 || N === !1 : x[e(2643)].schemaHasRules(N, x[e(2057)][e(1897)])) ? (m[e(1174)] = N, m[e(1350)] = u + "[" + j + "]", m.errSchemaPath = d + "/" + j, r += " " + x.validate(m) + " ", m[e(1880)] = E) : r += " var " + w + e(1844), j && (r += e(1138) + w + e(1760) + O + e(1597) + v + " = false; " + T + e(701) + T + ", " + j + e(1137), y += "}"), r += " if (" + w + e(1597) + v + e(729) + O + e(1844) + T + e(729) + j + e(1018); + return x.compositeRule = m[e(2416)] = R, r += "" + y + e(2473) + v + ") { var err = ", x[e(1598)] !== !1 ? (r += e(1264) + "oneOf" + e(953) + x[e(1952)] + e(511) + x[e(2643)].toQuotedString(d) + e(722) + T + e(2062), x[e(1948)].messages !== !1 && (r += " , message: 'should match exactly one schema in oneOf' "), x.opts[e(1153)] && (r += e(1150) + u + " , parentSchema: validate.schema" + x[e(1350)] + " , data: " + l + " "), r += e(2062)) : r += e(2152), r += e(1826), !x[e(2416)] && f && (x[e(2572)] ? r += e(793) : r += " validate.errors = vErrors; return false; "), r += e(717) + h + "; if (vErrors !== null) { if (" + h + ") vErrors.length = " + h + e(1538), x[e(1948)][e(2168)] && (r += e(2062)), r; + }), St; +} +var kt, ja; +function rc() { + return ja || (ja = 1, kt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x[e(1174)][t], u = x[e(1350)] + x.util[e(2337)](t), d = x.errSchemaPath + "/" + t, f = !x[e(1948)].allErrors, l = e(1073) + (o || ""), v = x[e(1948)].$data && c && c.$data, h; + v ? (r += e(800) + n + " = " + x[e(2643)][e(2040)](c.$data, o, x[e(2197)]) + "; ", h = "schema" + n) : h = c; + var m = v ? e(667) + h + "))" : x[e(2230)](c); + r += e(357), v && (r += " (" + h + e(1341) + h + e(1465)), r += " !" + m + e(1910) + l + e(1412); + var y = y || []; + y[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + e(2072) + "' , dataPath: (dataPath || '') + " + x[e(1952)] + " , schemaPath: " + x[e(2643)][e(2451)](d) + e(1453), v ? r += "" + h : r += "" + x.util[e(2451)](c), r += e(1793), x[e(1948)].messages !== !1 && (r += e(1828), v ? r += e(2308) + h + e(2555) : r += "" + x[e(2643)][e(1619)](c), r += e(2314)), x.opts[e(1153)] && (r += e(2439), v ? r += e(2012) + u : r += "" + x[e(2643)][e(2451)](c), r += e(1334) + x.schemaPath + e(617) + l + " "), r += " } ") : r += e(2152); + var w = r; + return r = y[e(932)](), !x[e(2416)] && f ? x.async ? r += " throw new ValidationError([" + w + e(1719) : r += " validate.errors = [" + w + e(973) : r += e(2662) + w + e(1826), r += "} ", f && (r += " else { "), r; + }), kt; +} +var Et, Ma; +function ac() { + return Ma || (Ma = 1, Et = function(x, t, a) { + var e = K, r = " ", n = x.level, o = x[e(1675)], c = x[e(1174)][t], u = x[e(1350)] + x.util[e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], l = "data" + (o || ""), v = e(1314) + n, h = x[e(2643)].copy(x), m = ""; + h.level++; + var y = e(2538) + h.level, w = "key" + n, E = e(725) + n, O = h[e(1675)] = x[e(1675)] + 1, T = e(1073) + O, R = e(1384) + n, k = Object[e(1040)](c || {})[e(2397)](l0), N = x.schema[e(969)] || {}, j = Object[e(1040)](N)[e(2397)](l0), D = x.schema[e(2576)], M = k[e(2021)] || j[e(2021)], F = D === !1, C = typeof D == e(1923) && Object[e(1040)](D)[e(2021)], H = x[e(1948)][e(2655)], U = F || C || H, V = x[e(1948)][e(1503)], J = x[e(1880)], c0 = x[e(1174)].required; + if (c0 && !(x[e(1948)][e(2176)] && c0[e(2176)]) && c0[e(2021)] < x[e(1948)][e(456)]) var u0 = x[e(2643)][e(626)](c0); + function l0(jx) { + var Mx = e; + return jx !== Mx(1416); + } + if (r += e(2261) + v + e(1838) + y + e(1505), V && (r += e(682) + R + e(1156)), U) { + if (V ? r += " " + R + e(729) + R + e(1630) + l + e(1985) + E + e(426) + E + "<" + R + e(2363) + E + e(2419) + w + e(729) + R + "[" + E + e(692) : r += e(693) + w + " in " + l + e(1597), M) { + if (r += " var isAdditional" + n + e(1112), k.length) + if (k[e(2021)] > 8) r += e(1733) + u + e(1113) + w + ") "; + else { + var i0 = k; + if (i0) + for (var f0, S0 = -1, y0 = i0[e(2021)] - 1; S0 < y0; ) + f0 = i0[S0 += 1], r += " || " + w + e(545) + x[e(2643)][e(2451)](f0) + " "; + } + if (j[e(2021)]) { + var M0 = j; + if (M0) + for (var P0, Q0 = -1, A = M0[e(2021)] - 1; Q0 < A; ) + P0 = M0[Q0 += 1], r += e(388) + x[e(2230)](P0) + e(1910) + w + ") "; + } + r += e(1292) + n + e(1597); + } + if (H == e(1897)) r += " delete " + l + "[" + w + e(692); + else { + var q = x[e(1952)], L = e(2308) + w + e(2555); + if (x.opts[e(1268)] && (x[e(1952)] = x[e(2643)][e(2610)](x[e(1952)], w, x[e(1948)][e(2420)])), F) + if (H) r += e(911) + l + "[" + w + e(692); + else { + r += " " + y + " = false; "; + var G = d; + d = x[e(298)] + "/additionalProperties"; + var X = X || []; + X[e(2380)](r), r = "", x.createErrors !== !1 ? (r += e(1264) + e(2576) + e(953) + x[e(1952)] + e(511) + x.util[e(2451)](d) + " , params: { additionalProperty: '" + L + "' } ", x[e(1948)][e(1057)] !== !1 && (r += e(1668), x[e(1948)][e(1268)] ? r += e(569) : r += e(869), r += "' "), x[e(1948)][e(1153)] && (r += " , schema: false , parentSchema: validate.schema" + x[e(1350)] + e(617) + l + " "), r += e(2062)) : r += e(2152); + var W = r; + r = X[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += e(1883) + W + e(1719) : r += e(2550) + W + e(973) : r += " var err = " + W + e(1826), d = G, f && (r += e(1007)); + } + else if (C) + if (H == e(299)) { + r += e(682) + v + e(1905); + var Q = x[e(2416)]; + x[e(2416)] = h[e(2416)] = !0, h[e(1174)] = D, h[e(1350)] = x[e(1350)] + ".additionalProperties", h[e(298)] = x[e(298)] + "/additionalProperties", h[e(1952)] = x.opts[e(1268)] ? x[e(1952)] : x[e(2643)][e(2610)](x[e(1952)], w, x.opts[e(2420)]); + var n0 = l + "[" + w + "]"; + h[e(2197)][O] = w; + var o0 = x[e(328)](h); + h.baseId = J, x[e(2643)].varOccurences(o0, T) < 2 ? r += " " + x[e(2643)].varReplace(o0, T, n0) + " " : r += " var " + T + e(729) + n0 + "; " + o0 + " ", r += e(375) + y + e(1410) + v + e(1258) + l + "[" + w + e(1241), x[e(2416)] = h[e(2416)] = Q; + } else { + h.schema = D, h.schemaPath = x[e(1350)] + ".additionalProperties", h.errSchemaPath = x[e(298)] + e(610), h[e(1952)] = x[e(1948)]._errorDataPathProperty ? x.errorPath : x[e(2643)].getPathExpr(x[e(1952)], w, x[e(1948)][e(2420)]); + var n0 = l + "[" + w + "]"; + h.dataPathArr[O] = w; + var o0 = x[e(328)](h); + h[e(1880)] = J, x[e(2643)][e(1622)](o0, T) < 2 ? r += " " + x.util[e(1299)](o0, T, n0) + " " : r += e(682) + T + e(729) + n0 + "; " + o0 + " ", f && (r += " if (!" + y + e(1732)); + } + x.errorPath = q; + } + M && (r += e(2062)), r += e(2523), f && (r += e(1138) + y + e(1597), m += "}"); + } + var _ = x.opts[e(504)] && !x[e(2416)]; + if (k.length) { + var L0 = k; + if (L0) + for (var f0, T0 = -1, U0 = L0[e(2021)] - 1; T0 < U0; ) { + f0 = L0[T0 += 1]; + var w0 = c[f0]; + if (x[e(1948)].strictKeywords ? typeof w0 == "object" && Object[e(1040)](w0)[e(2021)] > 0 || w0 === !1 : x[e(2643)][e(1743)](w0, x.RULES[e(1897)])) { + var G0 = x[e(2643)].getProperty(f0), n0 = l + G0, ne = _ && w0[e(2641)] !== void 0; + h.schema = w0, h[e(1350)] = u + G0, h[e(298)] = d + "/" + x[e(2643)][e(1170)](f0), h[e(1952)] = x.util[e(1449)](x[e(1952)], f0, x[e(1948)].jsonPointers), h[e(2197)][O] = x[e(2643)].toQuotedString(f0); + var o0 = x[e(328)](h); + if (h[e(1880)] = J, x[e(2643)].varOccurences(o0, T) < 2) { + o0 = x.util[e(1299)](o0, T, n0); + var X0 = n0; + } else { + var X0 = T; + r += e(682) + T + e(729) + n0 + "; "; + } + if (ne) r += " " + o0 + " "; + else { + if (u0 && u0[f0]) { + r += e(737) + X0 + e(2455), V && (r += e(1202) + l + e(1356) + x.util[e(1619)](f0) + e(2169)), r += e(1597) + y + e(2364); + var q = x[e(1952)], G = d, O0 = x[e(2643)][e(1619)](f0); + x.opts[e(1268)] && (x[e(1952)] = x[e(2643)][e(1449)](q, f0, x[e(1948)][e(2420)])), d = x[e(298)] + e(1583); + var X = X || []; + X[e(2380)](r), r = "", x.createErrors !== !1 ? (r += e(1264) + e(848) + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + e(1608) + O0 + e(1687), x[e(1948)][e(1057)] !== !1 && (r += e(1668), x[e(1948)][e(1268)] ? r += e(1949) : r += e(1099) + O0 + "\\'", r += "' "), x.opts.verbose && (r += " , schema: validate.schema" + u + e(2411) + x[e(1350)] + e(617) + l + " "), r += e(2062)) : r += " {} "; + var W = r; + r = X.pop(), !x[e(2416)] && f ? x[e(2572)] ? r += e(1883) + W + "]); " : r += e(2550) + W + e(973) : r += e(2662) + W + e(1826), d = G, x[e(1952)] = q, r += " } else { "; + } else f ? (r += " if ( " + X0 + e(2455), V && (r += " || ! Object.prototype.hasOwnProperty.call(" + l + ", '" + x.util[e(1619)](f0) + e(2169)), r += ") { " + y + e(343)) : (r += e(1138) + X0 + e(755), V && (r += " && Object.prototype.hasOwnProperty.call(" + l + e(1356) + x[e(2643)].escapeQuotes(f0) + e(2169)), r += e(712)); + r += " " + o0 + e(2062); + } + } + f && (r += e(1138) + y + e(1597), m += "}"); + } + } + if (j[e(2021)]) { + var V0 = j; + if (V0) + for (var P0, _0 = -1, Le = V0[e(2021)] - 1; _0 < Le; ) { + P0 = V0[_0 += 1]; + var w0 = N[P0]; + if (x[e(1948)][e(484)] ? typeof w0 == "object" && Object[e(1040)](w0)[e(2021)] > 0 || w0 === !1 : x[e(2643)].schemaHasRules(w0, x[e(2057)][e(1897)])) { + h[e(1174)] = w0, h[e(1350)] = x[e(1350)] + e(454) + x[e(2643)][e(2337)](P0), h.errSchemaPath = x[e(298)] + e(1093) + x[e(2643)][e(1170)](P0), V ? r += " " + R + e(729) + R + e(1630) + l + e(1985) + E + e(426) + E + "<" + R + e(2363) + E + "++) { var " + w + " = " + R + "[" + E + e(692) : r += " for (var " + w + e(1458) + l + e(1597), r += " if (" + x[e(2230)](P0) + e(1910) + w + ")) { ", h.errorPath = x[e(2643)][e(2610)](x[e(1952)], w, x.opts[e(2420)]); + var n0 = l + "[" + w + "]"; + h[e(2197)][O] = w; + var o0 = x[e(328)](h); + h[e(1880)] = J, x.util[e(1622)](o0, T) < 2 ? r += " " + x[e(2643)][e(1299)](o0, T, n0) + " " : r += e(682) + T + " = " + n0 + "; " + o0 + " ", f && (r += e(375) + y + e(1732)), r += e(2062), f && (r += " else " + y + " = true; "), r += e(2523), f && (r += e(1138) + y + e(1597), m += "}"); + } + } + } + return f && (r += " " + m + e(1138) + v + " == errors) {"), r; + }), Et; +} +var It, La; +function sc() { + return La || (La = 1, It = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x.schema[t], u = x[e(1350)] + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x.opts.allErrors, l = e(1073) + (o || ""), v = e(1314) + n, h = x[e(2643)][e(1753)](x), m = ""; + h[e(1624)]++; + var y = e(2538) + h[e(1624)]; + if (r += e(2261) + v + e(1100), x[e(1948)][e(484)] ? typeof c == e(1923) && Object[e(1040)](c)[e(2021)] > 0 || c === !1 : x[e(2643)][e(1743)](c, x[e(2057)][e(1897)])) { + h[e(1174)] = c, h[e(1350)] = u, h[e(298)] = d; + var w = "key" + n, E = e(725) + n, O = "i" + n, T = "' + " + w + e(2555), R = h[e(1675)] = x.dataLevel + 1, k = e(1073) + R, N = "dataProperties" + n, j = x.opts.ownProperties, D = x[e(1880)]; + j && (r += e(682) + N + e(2369)), j ? r += " " + N + e(729) + N + e(1630) + l + e(1985) + E + e(426) + E + "<" + N + ".length; " + E + e(2419) + w + e(729) + N + "[" + E + e(692) : r += e(693) + w + " in " + l + e(1597), r += e(2218) + n + " = errors; "; + var M = w, F = x[e(2416)]; + x[e(2416)] = h[e(2416)] = !0; + var C = x[e(328)](h); + h[e(1880)] = D, x[e(2643)][e(1622)](C, k) < 2 ? r += " " + x.util[e(1299)](C, k, M) + " " : r += " var " + k + e(729) + M + "; " + C + " ", x.compositeRule = h.compositeRule = F, r += e(375) + y + e(1651) + O + e(1111) + n + "; " + O + e(1481) + O + "++) { vErrors[" + O + e(2613) + w + e(1470), x[e(1598)] !== !1 ? (r += e(1264) + e(2531) + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + " , params: { propertyName: '" + T + e(1687), x[e(1948)][e(1057)] !== !1 && (r += " , message: 'property name \\'" + T + e(630)), x[e(1948)].verbose && (r += e(1150) + u + " , parentSchema: validate.schema" + x.schemaPath + e(617) + l + " "), r += " } ") : r += " {} ", r += "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", !x[e(2416)] && f && (x.async ? r += e(793) : r += e(327)), f && (r += e(1007)), r += e(2541); + } + return f && (r += " " + m + e(1138) + v + " == errors) {"), r; + }), It; +} +var Pt, $a; +function nc() { + return $a || ($a = 1, Pt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x[e(1174)][t], u = x[e(1350)] + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], l = "data" + (o || ""), v = e(2538) + n, h = x[e(1948)][e(2176)] && c && c.$data; + h && (r += " var schema" + n + e(729) + x[e(2643)][e(2040)](c.$data, o, x[e(2197)]) + "; "); + var m = "schema" + n; + if (!h) + if (c[e(2021)] < x[e(1948)][e(456)] && x[e(1174)][e(1696)] && Object[e(1040)](x[e(1174)][e(1696)]).length) { + var R = [], y = c; + if (y) + for (var w, E = -1, O = y.length - 1; E < O; ) { + w = y[E += 1]; + var T = x[e(1174)].properties[w]; + !(T && (x[e(1948)][e(484)] ? typeof T == e(1923) && Object.keys(T).length > 0 || T === !1 : x[e(2643)].schemaHasRules(T, x[e(2057)][e(1897)]))) && (R[R[e(2021)]] = w); + } + } else var R = c; + if (h || R.length) { + var k = x[e(1952)], N = h || R[e(2021)] >= x[e(1948)].loopRequired, j = x[e(1948)][e(1503)]; + if (f) + if (r += " var missing" + n + "; ", N) { + !h && (r += e(682) + m + " = validate.schema" + u + "; "); + var D = "i" + n, M = e(1174) + n + "[" + D + "]", F = e(2308) + M + e(2555); + x[e(1948)]._errorDataPathProperty && (x[e(1952)] = x[e(2643)].getPathExpr(k, M, x[e(1948)][e(2420)])), r += " var " + v + e(1844), h && (r += e(2116) + n + " === undefined) " + v + e(2322) + n + e(2009) + v + e(2656)), r += " for (var " + D + e(1680) + D + e(1913) + m + e(2363) + D + "++) { " + v + e(729) + l + "[" + m + "[" + D + e(491), j && (r += " && Object.prototype.hasOwnProperty.call(" + l + ", " + m + "[" + D + "]) "), r += e(878) + v + ") break; } ", h && (r += " } "), r += e(2355) + v + e(2654); + var C = C || []; + C.push(r), r = "", x.createErrors !== !1 ? (r += " { keyword: 'required" + e(953) + x[e(1952)] + e(511) + x[e(2643)].toQuotedString(d) + " , params: { missingProperty: '" + F + e(1687), x[e(1948)][e(1057)] !== !1 && (r += e(1668), x[e(1948)][e(1268)] ? r += "is a required property" : r += e(1099) + F + "\\'", r += "' "), x.opts.verbose && (r += e(1150) + u + e(2411) + x[e(1350)] + " , data: " + l + " "), r += e(2062)) : r += e(2152); + var H = r; + r = C[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += e(1883) + H + e(1719) : r += e(2550) + H + e(973) : r += e(2662) + H + e(1826), r += " } else { "; + } else { + r += e(737); + var U = R; + if (U) + for (var V, D = -1, J = U[e(2021)] - 1; D < J; ) { + V = U[D += 1], D && (r += e(388)); + var c0 = x[e(2643)][e(2337)](V), u0 = l + c0; + r += e(1381) + u0 + e(2455), j && (r += e(1202) + l + e(1356) + x[e(2643)][e(1619)](V) + e(2169)), r += e(2262) + n + " = " + x.util.toQuotedString(x[e(1948)].jsonPointers ? V : c0) + e(1686); + } + r += e(512); + var M = e(1722) + n, F = e(2308) + M + e(2555); + x[e(1948)][e(1268)] && (x[e(1952)] = x[e(1948)][e(2420)] ? x[e(2643)].getPathExpr(k, M, !0) : k + e(1512) + M); + var C = C || []; + C[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + "required" + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + e(1608) + F + e(1687), x[e(1948)].messages !== !1 && (r += " , message: '", x[e(1948)][e(1268)] ? r += e(1949) : r += "should have required property \\'" + F + "\\'", r += "' "), x.opts[e(1153)] && (r += e(1150) + u + " , parentSchema: validate.schema" + x[e(1350)] + e(617) + l + " "), r += " } ") : r += " {} "; + var H = r; + r = C[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += e(1883) + H + e(1719) : r += " validate.errors = [" + H + e(973) : r += e(2662) + H + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += e(840); + } + else if (N) { + !h && (r += e(682) + m + e(2438) + u + "; "); + var D = "i" + n, M = e(1174) + n + "[" + D + "]", F = e(2308) + M + e(2555); + x[e(1948)][e(1268)] && (x[e(1952)] = x[e(2643)].getPathExpr(k, M, x[e(1948)][e(2420)])), h && (r += " if (" + m + e(2502) + m + ")) { var err = ", x.createErrors !== !1 ? (r += e(1264) + e(848) + e(953) + x[e(1952)] + e(511) + x[e(2643)].toQuotedString(d) + e(1608) + F + e(1687), x[e(1948)][e(1057)] !== !1 && (r += e(1668), x[e(1948)][e(1268)] ? r += e(1949) : r += "should have required property \\'" + F + "\\'", r += "' "), x[e(1948)][e(1153)] && (r += e(1150) + u + e(2411) + x.schemaPath + e(617) + l + " "), r += e(2062)) : r += e(2152), r += e(1429) + m + " !== undefined) { "), r += e(693) + D + e(1680) + D + e(1913) + m + ".length; " + D + e(1937) + l + "[" + m + "[" + D + "]] === undefined ", j && (r += e(1202) + l + ", " + m + "[" + D + "]) "), r += ") { var err = ", x.createErrors !== !1 ? (r += " { keyword: '" + e(848) + e(953) + x[e(1952)] + e(511) + x.util.toQuotedString(d) + e(1608) + F + "' } ", x[e(1948)].messages !== !1 && (r += e(1668), x[e(1948)][e(1268)] ? r += "is a required property" : r += e(1099) + F + "\\'", r += "' "), x[e(1948)][e(1153)] && (r += e(1150) + u + e(2411) + x[e(1350)] + " , data: " + l + " "), r += e(2062)) : r += e(2152), r += e(452), h && (r += e(1843)); + } else { + var l0 = R; + if (l0) + for (var V, i0 = -1, f0 = l0[e(2021)] - 1; i0 < f0; ) { + V = l0[i0 += 1]; + var c0 = x[e(2643)][e(2337)](V), F = x[e(2643)][e(1619)](V), u0 = l + c0; + x.opts[e(1268)] && (x[e(1952)] = x.util[e(1449)](k, V, x[e(1948)].jsonPointers)), r += " if ( " + u0 + " === undefined ", j && (r += e(1202) + l + e(1356) + x[e(2643)].escapeQuotes(V) + e(2169)), r += ") { var err = ", x[e(1598)] !== !1 ? (r += e(1264) + e(848) + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + " , params: { missingProperty: '" + F + "' } ", x[e(1948)][e(1057)] !== !1 && (r += e(1668), x.opts[e(1268)] ? r += e(1949) : r += "should have required property \\'" + F + "\\'", r += "' "), x[e(1948)][e(1153)] && (r += e(1150) + u + e(2411) + x[e(1350)] + e(617) + l + " "), r += e(2062)) : r += e(2152), r += e(1502); + } + } + x[e(1952)] = k; + } else f && (r += " if (true) {"); + return r; + }), Pt; +} +var Rt, za; +function ic() { + return za || (za = 1, Rt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x.dataLevel, c = x[e(1174)][t], u = x.schemaPath + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], l = e(1073) + (o || ""), v = "valid" + n, h = x[e(1948)][e(2176)] && c && c[e(2176)], m; + if (h ? (r += e(800) + n + e(729) + x.util[e(2040)](c[e(2176)], o, x[e(2197)]) + "; ", m = e(1174) + n) : m = c, (c || h) && x[e(1948)][e(1552)] !== !1) { + h && (r += e(682) + v + e(2577) + m + e(1228) + m + e(2666) + v + e(659) + m + e(1336) + v + e(957)), r += e(735) + l + e(672) + v + e(968); + var y = x.schema[e(2187)] && x.schema.items[e(338)], w = Array[e(1435)](y); + if (!y || y == e(1923) || y == e(1315) || w && (y[e(831)]("object") >= 0 || y[e(831)](e(1315)) >= 0)) r += e(787) + l + e(2336) + l + e(1080) + v + " = false; break outer; } } } "; + else { + r += " var itemIndices = {}, item; for (;i--;) { var item = " + l + e(1025); + var E = e(1824) + (w ? "s" : ""); + r += e(1138) + x[e(2643)][E](y, e(1329), x.opts[e(1178)], !0) + e(2472), w && (r += e(2209)), r += e(929) + v + e(2609); + } + r += e(2062), h && (r += e(1843)), r += " if (!" + v + ") { "; + var O = O || []; + O[e(2380)](r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + "uniqueItems" + e(953) + x[e(1952)] + " , schemaPath: " + x[e(2643)].toQuotedString(d) + e(899), x[e(1948)][e(1057)] !== !1 && (r += e(525)), x[e(1948)].verbose && (r += e(2439), h ? r += e(2012) + u : r += "" + c, r += " , parentSchema: validate.schema" + x[e(1350)] + " , data: " + l + " "), r += e(2062)) : r += e(2152); + var T = r; + r = O[e(932)](), !x[e(2416)] && f ? x[e(2572)] ? r += e(1883) + T + e(1719) : r += " validate.errors = [" + T + e(973) : r += " var err = " + T + e(1826), r += e(2062), f && (r += e(1866)); + } else f && (r += e(597)); + return r; + }), Rt; +} +var Ct, Ha; +function oc() { + return Ha || (Ha = 1, Ct = { $ref: V2(), allOf: W2(), anyOf: Z2(), $comment: B2(), const: K2(), contains: J2(), dependencies: G2(), enum: Q2(), format: X2(), if: Y2(), items: _2(), maximum: Pa(), minimum: Pa(), maxItems: Ca(), minItems: Ca(), maxLength: Na(), minLength: Na(), maxProperties: Ta(), minProperties: Ta(), multipleOf: ec(), not: xc(), oneOf: tc(), pattern: rc(), properties: ac(), propertyNames: sc(), required: nc(), uniqueItems: ic(), validate: pn() }), Ct; +} +var Ft, Ua; +function cc() { + var i = s; + if (Ua) return Ft; + Ua = 1; + var x = oc(), t = Ze()[i(626)]; + return Ft = function() { + var e = i, r = [{ type: "number", rules: [{ maximum: ["exclusiveMaximum"] }, { minimum: [e(654)] }, e(2246), e(2093)] }, { type: e(2348), rules: [e(2277), e(549), e(2072), e(2093)] }, { type: e(1315), rules: ["maxItems", e(1457), e(2187), e(747), "uniqueItems"] }, { type: e(1923), rules: [e(2225), e(1901), e(848), "dependencies", e(2531), { properties: [e(2576), "patternProperties"] }] }, { rules: ["$ref", "const", e(1053), e(518), e(386), e(1531), e(982), "if"] }], n = [e(338), "$comment"], o = [e(764), e(437), "id", e(2176), e(2283), e(344), e(1941), e(2641), e(877), e(1411), e(502), e(2193), e(974), e(1800), e(2118), e(432), e(448)], c = ["number", "integer", e(2348), e(1315), e(1923), e(2251), e(1382)]; + return r[e(1897)] = t(n), r.types = t(c), r.forEach(function(u) { + var d = e; + u[d(1643)] = u[d(1643)].map(function(f) { + var l = d, v; + if (typeof f == l(1923)) { + var h = Object[l(1040)](f)[0]; + v = f[h], f = h, v[l(1222)](function(y) { + var w = l; + n.push(y), r[w(1897)][y] = !0; + }); + } + n[l(2380)](f); + var m = r[l(1897)][f] = { keyword: f, code: x[f], implements: v }; + return m; + }), r.all[d(2297)] = { keyword: "$comment", code: x[d(2297)] }, u.type && (r[d(2215)][u[d(338)]] = u); + }), r.keywords = t(n[e(1355)](o)), r[e(2290)] = {}, r; + }, Ft; +} +var Nt, Va; +function uc() { + var i = s; + if (Va) return Nt; + Va = 1; + var x = [i(2246), i(981), i(1515), i(1848), i(654), "maxLength", "minLength", i(2072), i(2118), i(2024), i(1457), i(1552), i(2225), i(1901), "required", i(2576), i(1053), i(2093), i(1318)]; + return Nt = function(t, a) { + for (var e = i, r = 0; r < a.length; r++) { + t = JSON[e(1325)](JSON[e(990)](t)); + var n = a[r][e(2183)]("/"), o = t, c; + for (c = 1; c < n[e(2021)]; c++) o = o[n[c]]; + for (c = 0; c < x[e(2021)]; c++) { + var u = x[c], d = o[u]; + d && (o[u] = { anyOf: [d, { $ref: e(2117) }] }); + } + } + return t; + }, Nt; +} +var qt, Wa; +function dc() { + var i = s; + if (Wa) return qt; + Wa = 1; + var x = ur()[i(1849)]; + qt = t; + function t(a, e, r) { + var n = i, o = this; + if (typeof this[n(2623)][n(1660)] != n(1853)) throw new Error(n(1096)); + typeof e == n(1853) && (r = e, e = void 0); + var c = u(a).then(function() { + var f = n, l = o[f(2371)](a, void 0, e); + return l[f(328)] || d(l); + }); + return r && c[n(432)](function(f) { + r(null, f); + }, r), c; + function u(f) { + var l = n, v = f[l(764)]; + return v && !o[l(2288)](v) ? t[l(1547)](o, { $ref: v }, !0) : Promise[l(1890)](); + } + function d(f) { + var l = n; + try { + return o[l(1585)](f); + } catch (h) { + if (h instanceof x) return v(h); + throw h; + } + function v(h) { + var m = l, y = h.missingSchema; + if (O(y)) throw new Error(m(2145) + y + m(1701) + h.missingRef + m(1600)); + var w = o._loadingSchemas[y]; + return !w && (w = o._loadingSchemas[y] = o[m(2623)][m(1660)](y), w.then(E, E)), w[m(432)](function(T) { + if (!O(y)) return u(T).then(function() { + O(y) || o.addSchema(T, y, void 0, e); + }); + })[m(432)](function() { + return d(f); + }); + function E() { + var T = m; + delete o[T(624)][y]; + } + function O(T) { + var R = m; + return o[R(1900)][T] || o._schemas[T]; + } + } + } + } + return qt; +} +var Tt, Za; +function fc() { + return Za || (Za = 1, Tt = function(x, t, a) { + var e = K, r = " ", n = x[e(1624)], o = x[e(1675)], c = x[e(1174)][t], u = x[e(1350)] + x[e(2643)][e(2337)](t), d = x[e(298)] + "/" + t, f = !x[e(1948)][e(2168)], l, v = e(1073) + (o || ""), h = e(2538) + n, m = e(1314) + n, y = x[e(1948)][e(2176)] && c && c[e(2176)], w; + y ? (r += e(800) + n + e(729) + x[e(2643)][e(2040)](c[e(2176)], o, x[e(2197)]) + "; ", w = e(1174) + n) : w = c; + var E = this, O = e(2103) + n, T = E[e(2103)], R = "", k, N, j, D, M; + if (y && T[e(2176)]) { + M = "keywordValidate" + n; + var F = T.validateSchema; + r += e(682) + O + e(2165) + t + e(1244) + M + e(729) + O + e(695); + } else { + if (D = x[e(1235)](E, c, x[e(1174)], x), !D) return; + w = e(2012) + u, M = D.code, k = T[e(1157)], N = T[e(1087)], j = T[e(1819)]; + } + var C = M + e(2304), H = "i" + n, U = e(305) + n, V = T[e(2572)]; + if (V && !x[e(2572)]) throw new Error(e(1637)); + if (!(N || j) && (r += "" + C + e(1872)), r += e(2261) + m + e(1838) + h + ";", y && T[e(2176)] && (R += "}", r += " if (" + w + " === undefined) { " + h + e(343), F && (R += "}", r += " " + h + e(729) + O + e(497) + w + e(1256) + h + ") { ")), N) T[e(1791)] ? r += " " + D[e(328)] + " " : r += " " + h + e(729) + D.validate + "; "; + else if (j) { + var J = x.util[e(1753)](x), R = ""; + J.level++; + var c0 = e(2538) + J[e(1624)]; + J[e(1174)] = D[e(328)], J[e(1350)] = ""; + var u0 = x[e(2416)]; + x[e(2416)] = J[e(2416)] = !0; + var l0 = x.validate(J)[e(2112)](/validate\.schema/g, M); + x.compositeRule = J.compositeRule = u0, r += " " + l0; + } else { + var i0 = i0 || []; + i0.push(r), r = "", r += " " + M + e(1340), x[e(1948)].passContext ? r += "this" : r += e(2049), k || T[e(1174)] === !1 ? r += " , " + v + " " : r += e(1490) + w + e(1490) + v + e(1961) + x[e(1350)] + " ", r += e(2052), x.errorPath != '""' && (r += e(1512) + x[e(1952)]); + var f0 = o ? "data" + (o - 1 || "") : "parentData", S0 = o ? x[e(2197)][o] : e(1586); + r += e(1490) + f0 + e(1490) + S0 + " , rootData ) "; + var y0 = r; + r = i0[e(932)](), T.errors === !1 ? (r += " " + h + " = ", V && (r += "await "), r += "" + y0 + "; ") : V ? (C = e(1596) + n, r += e(682) + C + " = null; try { " + h + e(2639) + y0 + e(920) + h + e(814) + C + e(909)) : r += " " + C + e(2085) + h + " = " + y0 + "; "; + } + if (T.modifying && (r += e(1138) + f0 + ") " + v + " = " + f0 + "[" + S0 + "];"), r += "" + R, T[e(2538)]) f && (r += e(597)); + else { + r += e(737), T[e(2538)] === void 0 ? (r += " !", j ? r += "" + c0 : r += "" + h) : r += " " + !T[e(2538)] + " ", r += e(1597), l = E[e(1919)]; + var i0 = i0 || []; + i0.push(r), r = ""; + var i0 = i0 || []; + i0.push(r), r = "", x[e(1598)] !== !1 ? (r += e(1264) + (l || e(2290)) + e(953) + x.errorPath + e(511) + x[e(2643)][e(2451)](d) + e(1894) + E.keyword + e(1687), x[e(1948)][e(1057)] !== !1 && (r += e(2231) + E.keyword + `" keyword validation' `), x[e(1948)].verbose && (r += " , schema: validate.schema" + u + " , parentSchema: validate.schema" + x[e(1350)] + e(617) + v + " "), r += e(2062)) : r += e(2152); + var M0 = r; + r = i0[e(932)](), !x[e(2416)] && f ? x.async ? r += e(1883) + M0 + e(1719) : r += e(2550) + M0 + e(973) : r += e(2662) + M0 + e(1826); + var P0 = r; + r = i0[e(932)](), N ? T[e(1188)] ? T.errors != e(2374) && (r += e(900) + H + "=" + m + "; " + H + e(1481) + H + e(2419) + U + e(1577) + H + e(1770) + U + e(2250) + U + e(370) + x[e(1952)] + e(2577) + U + e(2224) + U + e(2448) + d + '"; } ', x.opts[e(1153)] && (r += " " + U + e(1184) + w + "; " + U + e(823) + v + "; "), r += e(2062)) : T[e(1188)] === !1 ? r += " " + P0 + " " : (r += " if (" + m + e(294) + P0 + e(1726) + H + "=" + m + "; " + H + e(1481) + H + e(2419) + U + e(1577) + H + e(1770) + U + e(2250) + U + e(370) + x.errorPath + "; if (" + U + e(2224) + U + e(2448) + d + '"; } ', x[e(1948)][e(1153)] && (r += " " + U + e(1184) + w + "; " + U + ".data = " + v + "; "), r += e(1656)) : j ? (r += " var err = ", x.createErrors !== !1 ? (r += e(1264) + (l || e(2290)) + e(953) + x[e(1952)] + e(511) + x[e(2643)][e(2451)](d) + e(1894) + E[e(1919)] + e(1687), x[e(1948)][e(1057)] !== !1 && (r += e(2231) + E[e(1919)] + `" keyword validation' `), x[e(1948)].verbose && (r += " , schema: validate.schema" + u + " , parentSchema: validate.schema" + x.schemaPath + e(617) + v + " "), r += e(2062)) : r += e(2152), r += e(1826), !x.compositeRule && f && (x[e(2572)] ? r += e(793) : r += e(327))) : T.errors === !1 ? r += " " + P0 + " " : (r += e(681) + C + ")) { if (vErrors === null) vErrors = " + C + "; else vErrors = vErrors.concat(" + C + e(499) + H + "=" + m + "; " + H + e(1481) + H + "++) { var " + U + " = vErrors[" + H + e(1770) + U + e(2250) + U + e(370) + x[e(1952)] + e(560) + U + e(2448) + d + e(381), x.opts.verbose && (r += " " + U + e(1184) + w + "; " + U + ".data = " + v + "; "), r += e(2440) + P0 + " } "), r += e(2062), f && (r += e(1866)); + } + return r; + }), Tt; +} +const lc = s(310), hc = "http://json-schema.org/draft-07/schema#", pc = s(2530), mc = { schemaArray: { type: s(1315), minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: s(2568) }, { default: 0 }] }, simpleTypes: { enum: [s(1315), s(2251), "integer", s(1382), "number", s(1923), s(2348)] }, stringArray: { type: s(1315), items: { type: s(2348) }, uniqueItems: !0, default: [] } }, vc = [s(1923), s(2251)], gc = { $id: { type: s(2348), format: "uri-reference" }, $schema: { type: s(2348), format: "uri" }, $ref: { type: "string", format: s(1313) }, $comment: { type: "string" }, title: { type: s(2348) }, description: { type: s(2348) }, default: !0, readOnly: { type: s(2251), default: !1 }, examples: { type: s(1315), items: !0 }, multipleOf: { type: s(960), exclusiveMinimum: 0 }, maximum: { type: s(960) }, exclusiveMaximum: { type: "number" }, minimum: { type: s(960) }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: s(2568) }, minLength: { $ref: s(2456) }, pattern: { type: s(2348), format: s(994) }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: s(2235) }], default: !0 }, maxItems: { $ref: s(2568) }, minItems: { $ref: s(2456) }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: s(2456) }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: s(1923), additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: s(1923), additionalProperties: { $ref: "#" }, propertyNames: { format: s(994) }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: s(1277) }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: s(1315), items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: s(1738) }, { type: s(1315), items: { $ref: s(1738) }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: s(2348) }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: s(2235) }, anyOf: { $ref: s(2235) }, oneOf: { $ref: s(2235) }, not: { $ref: "#" } }, mn = { $schema: lc, $id: hc, title: pc, definitions: mc, type: vc, properties: gc, default: !0 }; +var Ot, Ba; +function yc() { + var i = s; + if (Ba) return Ot; + Ba = 1; + var x = mn; + return Ot = { $id: "https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js", definitions: { simpleTypes: x.definitions[i(1834)] }, type: i(1923), dependencies: { schema: [i(328)], $data: [i(328)], statements: [i(1087)], valid: { not: { required: [i(1819)] } } }, properties: { type: x.properties.type, schema: { type: i(2251) }, statements: { type: i(2251) }, dependencies: { type: i(1315), items: { type: i(2348) } }, metaSchema: { type: "object" }, modifying: { type: "boolean" }, valid: { type: i(2251) }, $data: { type: i(2251) }, async: { type: i(2251) }, errors: { anyOf: [{ type: i(2251) }, { const: i(2374) }] } } }, Ot; +} +var At, Ka; +function bc() { + if (Ka) return At; + Ka = 1; + var i = /^[a-z_$][a-z0-9_$-]*$/i, x = fc(), t = yc(); + At = { add: a, get: e, remove: r, validate: n }; + function a(o, c) { + var u = K, d = this[u(2057)]; + if (d[u(2605)][o]) throw new Error(u(2625) + o + u(507)); + if (!i[u(856)](o)) throw new Error("Keyword " + o + " is not a valid identifier"); + if (c) { + this.validateKeyword(c, !0); + var f = c.type; + if (Array[u(1435)](f)) + for (var l = 0; l < f[u(2021)]; l++) h(o, f[l], c); + else h(o, f, c); + var v = c.metaSchema; + v && (c[u(2176)] && this[u(2623)][u(2176)] && (v = { anyOf: [v, { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" }] }), c[u(795)] = this[u(1157)](v, !0)); + } + d[u(2605)][o] = d[u(1897)][o] = !0; + function h(m, y, w) { + for (var E = u, O, T = 0; T < d[E(2021)]; T++) { + var R = d[T]; + if (R[E(338)] == y) { + O = R; + break; + } + } + !O && (O = { type: y, rules: [] }, d[E(2380)](O)); + var k = { keyword: m, definition: w, custom: !0, code: x, implements: w[E(700)] }; + O[E(1643)][E(2380)](k), d[E(2290)][m] = k; + } + return this; + } + function e(o) { + var c = K, u = this[c(2057)][c(2290)][o]; + return u ? u.definition : this[c(2057)][c(2605)][o] || !1; + } + function r(o) { + var c = K, u = this[c(2057)]; + delete u.keywords[o], delete u[c(1897)][o], delete u[c(2290)][o]; + for (var d = 0; d < u[c(2021)]; d++) + for (var f = u[d][c(1643)], l = 0; l < f.length; l++) + if (f[l][c(1919)] == o) { + f[c(855)](l, 1); + break; + } + return this; + } + function n(o, c) { + var u = K; + n[u(1188)] = null; + var d = this._validateKeyword = this[u(1487)] || this[u(1157)](t, !0); + if (d(o)) return !0; + if (n[u(1188)] = d[u(1188)], c) throw new Error("custom keyword definition is invalid: " + this.errorsText(d[u(1188)])); + return !1; + } + return At; +} +const wc = s(310), Sc = s(2117), kc = s(2425), Ec = s(1923), Ic = [s(2176)], Pc = { $data: { type: "string", anyOf: [{ format: s(1323) }, { format: s(1904) }] } }, Rc = !1, Cc = { $schema: wc, $id: Sc, description: kc, type: Ec, required: Ic, properties: Pc, additionalProperties: Rc }; +var Dt, Ja; +function Fc() { + var i = s; + if (Ja) return Dt; + Ja = 1; + var x = z2(), t = cr(), a = H2(), e = ln(), r = hn(), n = U2(), o = cc(), c = uc(), u = Ze(); + Dt = m, m[i(2180)][i(328)] = y, m[i(2180)][i(1157)] = w, m[i(2180)].addSchema = E, m.prototype[i(2616)] = O, m[i(2180)][i(795)] = T, m[i(2180)][i(2288)] = k, m[i(2180)].removeSchema = D, m[i(2180)][i(1688)] = u0, m.prototype.errorsText = c0, m[i(2180)][i(2371)] = F, m[i(2180)][i(1585)] = C, m[i(2180)].compileAsync = dc(); + var d = bc(); + m[i(2180)].addKeyword = d.add, m[i(2180)].getKeyword = d[i(2229)], m.prototype.removeKeyword = d[i(485)], m[i(2180)][i(1593)] = d.validate; + var f = ur(); + m[i(2564)] = f[i(1201)], m[i(2011)] = f[i(1849)], m[i(404)] = c; + var l = i(1332), v = [i(2655), i(504), i(744), i(2657)], h = [i(993)]; + function m(A) { + var q = i; + if (!(this instanceof m)) return new m(A); + A = this[q(2623)] = u[q(1753)](A) || {}, P0(this), this._schemas = {}, this[q(1900)] = {}, this[q(1927)] = {}, this[q(1415)] = n(A[q(2093)]), this[q(1229)] = A.cache || new a(), this[q(624)] = {}, this._compilations = [], this[q(2057)] = o(), this[q(458)] = H(A), A[q(456)] = A[q(456)] || 1 / 0, A[q(2490)] == "property" && (A[q(1268)] = !0), A[q(2612)] === void 0 && (A[q(2612)] = r), this[q(1911)] = M0(this), A[q(2199)] && f0(this), A.keywords && S0(this), l0(this), typeof A[q(2470)] == q(1923) && this.addMetaSchema(A[q(2470)]), A[q(1977)] && this[q(1841)](q(1977), { metaSchema: { type: "boolean" } }), i0(this); + } + function y(A, q) { + var L = i, G; + if (typeof A == "string") { + if (G = this[L(2288)](A), !G) throw new Error('no schema with key or ref "' + A + '"'); + } else { + var X = this[L(2371)](A); + G = X[L(328)] || this[L(1585)](X); + } + var W = G(q); + return G.$async !== !0 && (this[L(1188)] = G[L(1188)]), W; + } + function w(A, q) { + var L = i, G = this[L(2371)](A, void 0, q); + return G.validate || this._compile(G); + } + function E(A, q, L, G) { + var X = i; + if (Array[X(1435)](A)) { + for (var W = 0; W < A[X(2021)]; W++) this.addSchema(A[W], void 0, L, G); + return this; + } + var Q = this[X(458)](A); + if (Q !== void 0 && typeof Q != X(2348)) throw new Error(X(1703)); + return q = t[X(1691)](q || Q), y0(this, q), this._schemas[q] = this[X(2371)](A, L, G, !0), this; + } + function O(A, q, L) { + var G = i; + return this[G(1827)](A, q, L, !0), this; + } + function T(A, q) { + var L = i, G = A[L(764)]; + if (G !== void 0 && typeof G != L(2348)) throw new Error(L(410)); + if (G = G || this[L(2623)].defaultMeta || R(this), !G) return this[L(1238)][L(1797)]("meta-schema not available"), this[L(1188)] = null, !0; + var X = this[L(328)](G, A); + if (!X && q) { + var W = L(962) + this[L(1823)](); + if (this[L(2623)][L(795)] == "log") this[L(1238)].error(W); + else throw new Error(W); + } + return X; + } + function R(A) { + var q = i, L = A._opts.meta; + return A[q(2623)][q(2358)] = typeof L == q(1923) ? A[q(458)](L) || L : A[q(2288)](l) ? l : void 0, A[q(2623)][q(2358)]; + } + function k(A) { + var q = i, L = j(this, A); + switch (typeof L) { + case q(1923): + return L[q(328)] || this[q(1585)](L); + case "string": + return this[q(2288)](L); + case "undefined": + return N(this, A); + } + } + function N(A, q) { + var L = i, G = t[L(1174)][L(1547)](A, { schema: {} }, q); + if (G) { + var X = G[L(1174)], W = G[L(1882)], Q = G[L(1880)], n0 = x[L(1547)](A, X, W, void 0, Q); + return A[L(1927)][q] = new e({ ref: q, fragment: !0, schema: X, root: W, baseId: Q, validate: n0 }), n0; + } + } + function j(A, q) { + var L = i; + return q = t.normalizeId(q), A[L(302)][q] || A._refs[q] || A._fragments[q]; + } + function D(A) { + var q = i; + if (A instanceof RegExp) return M(this, this[q(302)], A), M(this, this[q(1900)], A), this; + switch (typeof A) { + case q(1887): + return M(this, this[q(302)]), M(this, this._refs), this[q(1229)][q(2173)](), this; + case q(2348): + var L = j(this, A); + return L && this[q(1229)][q(669)](L[q(2213)]), delete this[q(302)][A], delete this[q(1900)][A], this; + case q(1923): + var G = this._opts[q(2612)], X = G ? G(A) : A; + this[q(1229)].del(X); + var W = this._getId(A); + W && (W = t[q(1691)](W), delete this[q(302)][W], delete this._refs[W]); + } + return this; + } + function M(A, q, L) { + var G = i; + for (var X in q) { + var W = q[X]; + !W.meta && (!L || L[G(856)](X)) && (A[G(1229)][G(669)](W[G(2213)]), delete q[X]); + } + } + function F(A, q, L, G) { + var X = i; + if (typeof A != "object" && typeof A != "boolean") throw new Error(X(2447)); + var W = this[X(2623)][X(2612)], Q = W ? W(A) : A, n0 = this[X(1229)].get(Q); + if (n0) return n0; + G = G || this[X(2623)][X(1741)] !== !1; + var o0 = t[X(1691)](this[X(458)](A)); + o0 && G && y0(this, o0); + var _ = this._opts[X(795)] !== !1 && !q, L0; + _ && !(L0 = o0 && o0 == t[X(1691)](A[X(764)])) && this[X(795)](A, !0); + var T0 = t.ids.call(this, A), U0 = new e({ id: o0, schema: A, localRefs: T0, cacheKey: Q, meta: L }); + return o0[0] != "#" && G && (this[X(1900)][o0] = U0), this[X(1229)].put(Q, U0), _ && L0 && this[X(795)](A, !0), U0; + } + function C(A, q) { + var L = i; + if (A[L(2664)]) + return A[L(328)] = W, W[L(1174)] = A[L(1174)], W[L(1188)] = null, W[L(1882)] = q || W, A.schema[L(2283)] === !0 && (W.$async = !0), W; + A[L(2664)] = !0; + var G; + A.meta && (G = this[L(2623)], this._opts = this[L(1911)]); + var X; + try { + X = x[L(1547)](this, A[L(1174)], q, A[L(1413)]); + } catch (Q) { + throw delete A[L(328)], Q; + } finally { + A.compiling = !1, A[L(2470)] && (this[L(2623)] = G); + } + return A.validate = X, A.refs = X[L(819)], A[L(421)] = X[L(421)], A.root = X[L(1882)], X; + function W() { + var Q = L, n0 = A[Q(328)], o0 = n0[Q(756)](this, arguments); + return W.errors = n0[Q(1188)], o0; + } + } + function H(A) { + var q = i; + switch (A[q(919)]) { + case q(589): + return J; + case "id": + return U; + default: + return V; + } + } + function U(A) { + var q = i; + return A[q(437)] && this[q(1238)][q(1797)](q(749), A[q(437)]), A.id; + } + function V(A) { + var q = i; + return A.id && this[q(1238)][q(1797)](q(2332), A.id), A[q(437)]; + } + function J(A) { + var q = i; + if (A.$id && A.id && A[q(437)] != A.id) throw new Error(q(1183)); + return A[q(437)] || A.id; + } + function c0(A, q) { + var L = i; + if (A = A || this[L(1188)], !A) return L(2174); + q = q || {}; + for (var G = q[L(1278)] === void 0 ? ", " : q[L(1278)], X = q[L(615)] === void 0 ? L(1073) : q[L(615)], W = "", Q = 0; Q < A.length; Q++) { + var n0 = A[Q]; + n0 && (W += X + n0[L(1737)] + " " + n0[L(2089)] + G); + } + return W[L(1813)](0, -G[L(2021)]); + } + function u0(A, q) { + var L = i; + return typeof q == L(2348) && (q = new RegExp(q)), this._formats[A] = q, this; + } + function l0(A) { + var q = i, L; + if (A[q(2623)].$data && (L = Cc, A.addMetaSchema(L, L.$id, !0)), A[q(2623)][q(2470)] !== !1) { + var G = mn; + A._opts[q(2176)] && (G = c(G, h)), A[q(2616)](G, l, !0), A[q(1900)][q(1217)] = l; + } + } + function i0(A) { + var q = i, L = A[q(2623)][q(318)]; + if (L) + if (Array[q(1435)](L)) A[q(1827)](L); + else + for (var G in L) A[q(1827)](L[G], G); + } + function f0(A) { + var q = i; + for (var L in A[q(2623)][q(2199)]) { + var G = A._opts[q(2199)][L]; + A.addFormat(L, G); + } + } + function S0(A) { + var q = i; + for (var L in A[q(2623)].keywords) { + var G = A[q(2623)][q(2605)][L]; + A[q(1841)](L, G); + } + } + function y0(A, q) { + var L = i; + if (A[L(302)][q] || A[L(1900)][q]) throw new Error(L(1439) + q + L(1523)); + } + function M0(A) { + for (var q = i, L = u[q(1753)](A[q(2623)]), G = 0; G < v[q(2021)]; G++) delete L[v[G]]; + return L; + } + function P0(A) { + var q = i, L = A[q(2623)].logger; + if (L === !1) A.logger = { log: Q0, warn: Q0, error: Q0 }; + else { + if (L === void 0 && (L = console), !(typeof L == q(1923) && L[q(1133)] && L.warn && L.error)) throw new Error(q(2317)); + A[q(1238)] = L; + } + } + function Q0() { + } + return Dt; +} +var Nc = Fc(); +const qc = Ws(Nc); +class Tc extends A2 { + constructor(x, t) { + var a = s, e; + super(t), this[a(1492)] = x, this[a(1398)] = (e = t == null ? void 0 : t[a(934)]) !== null && e !== void 0 ? e : {}, this[a(629)] = t == null ? void 0 : t[a(2073)], this[a(1983)](en, (r) => this._oninitialize(r)), this[a(336)](xn, () => { + var r = a, n; + return (n = this[r(346)]) === null || n === void 0 ? void 0 : n[r(1547)](this); + }); + } + [s(745)](x) { + var t = s; + if (this[t(1433)]) throw new Error(t(2464)); + this[t(1398)] = D2(this[t(1398)], x); + } + assertCapabilityForMethod(x) { + var t = s, a, e, r; + switch (x) { + case t(732): + if (!(!((a = this[t(2581)]) === null || a === void 0) && a[t(1432)])) throw new Error(t(1551) + x + ")"); + break; + case "elicitation/create": + if (!(!((e = this._clientCapabilities) === null || e === void 0) && e.elicitation)) throw new Error(t(1010) + x + ")"); + break; + case t(1396): + if (!(!((r = this[t(2581)]) === null || r === void 0) && r[t(884)])) throw new Error("Client does not support listing roots (required for " + x + ")"); + break; + } + } + [s(1075)](x) { + var t = s; + switch (x) { + case t(1401): + if (!this[t(1398)].logging) throw new Error("Server does not support logging (required for " + x + ")"); + break; + case "notifications/resources/updated": + case t(1888): + if (!this._capabilities[t(1750)]) throw new Error(t(2615) + x + ")"); + break; + case "notifications/tools/list_changed": + if (!this[t(1398)][t(1422)]) throw new Error(t(2631) + x + ")"); + break; + case "notifications/prompts/list_changed": + if (!this[t(1398)][t(789)]) throw new Error("Server does not support notifying of prompt list changes (required for " + x + ")"); + break; + } + } + assertRequestHandlerCapability(x) { + var t = s; + switch (x) { + case t(732): + if (!this[t(1398)][t(1432)]) throw new Error(t(1380) + x + ")"); + break; + case t(393): + if (!this[t(1398)][t(2331)]) throw new Error(t(859) + x + ")"); + break; + case "prompts/get": + case t(1377): + if (!this[t(1398)][t(789)]) throw new Error(t(1903) + x + ")"); + break; + case t(843): + case t(985): + case t(866): + if (!this._capabilities[t(1750)]) throw new Error(t(2318) + x + ")"); + break; + case "tools/call": + case t(2095): + if (!this[t(1398)][t(1422)]) throw new Error("Server does not support tools (required for " + x + ")"); + break; + } + } + async _oninitialize(x) { + var t = s; + const a = x[t(817)].protocolVersion; + return this[t(2581)] = x.params[t(934)], this[t(873)] = x[t(817)][t(1712)], { protocolVersion: To[t(553)](a) ? a : Bs, capabilities: this.getCapabilities(), serverInfo: this._serverInfo, ...this[t(629)] && { instructions: this[t(629)] } }; + } + [s(2467)]() { + return this._clientCapabilities; + } + getClientVersion() { + var x = s; + return this[x(873)]; + } + [s(1140)]() { + var x = s; + return this[x(1398)]; + } + async ping() { + var x = s; + return this[x(1658)]({ method: "ping" }, Yt); + } + async [s(1527)](x, t) { + var a = s; + return this[a(1658)]({ method: a(732), params: x }, un, t); + } + async elicitInput(x, t) { + var a = s; + const e = await this[a(1658)]({ method: a(2457), params: x }, dn, t); + if (e[a(1863)] === a(2622) && e[a(1248)]) try { + const r = new qc(), n = r.compile(x.requestedSchema); + if (!n(e[a(1248)])) throw new Te(be[a(1934)], a(1447) + r[a(1823)](n[a(1188)])); + } catch (r) { + throw r instanceof Te ? r : new Te(be.InternalError, a(2088) + r); + } + return e; + } + async [s(2303)](x, t) { + var a = s; + return this[a(1658)]({ method: a(1396), params: x }, fn, t); + } + async [s(706)](x) { + var t = s; + return this[t(1676)]({ method: t(1401), params: x }); + } + async sendResourceUpdated(x) { + var t = s; + return this[t(1676)]({ method: "notifications/resources/updated", params: x }); + } + async [s(1367)]() { + var x = s; + return this[x(1676)]({ method: x(1888) }); + } + async [s(1783)]() { + var x = s; + return this[x(1676)]({ method: "notifications/tools/list_changed" }); + } + async [s(647)]() { + var x = s; + return this[x(1676)]({ method: x(1349) }); + } +} +class Oc extends Error { + constructor(x, t) { + var a = s; + super("Heartbeat timeout for poster " + x + a(1085) + t + "ms"), this[a(940)] = a(1386); + } +} +const lx = /* @__PURE__ */ new Map(); +class Ac { + constructor(x) { + var t = s; + if (this.messageQueue = [], this[t(922)] = Date.now(), lx[t(2561)](x.posterIdentifier)) { + const a = lx[t(2229)](x.posterIdentifier); + a && a[t(2114)](); + } + this.posterIdentifier = x.posterIdentifier, this[t(1069)] = x[t(1069)], this[t(721)] = x.addMessageEventListener, this[t(2135)] = x[t(2135)], this[t(2552)] = x.heartbeatInterval ?? 5e3, this[t(715)] = x.heartbeatTimeout ?? 5e3, this[t(2468)] = x[t(2468)] ?? !1, lx[t(1951)](this[t(1186)], this), this.listenMessageCallback = this[t(2078)].bind(this), this[t(1199)] = this[t(721)](this[t(2078)]); + } + listenMessageCallback(x) { + var t = s; + if (x.posterIdentifier === this[t(1186)]) { + if (x[t(673)] === t(2633)) { + x[t(338)] === t(1592) && !this[t(2468)] ? this[t(1069)]({ channel: "sdppp-heartbeat", posterIdentifier: this.posterIdentifier, type: t(1522), timestamp: x[t(1870)] }) : x[t(338)] === t(1522) && (this[t(922)] = Date[t(2600)](), this[t(2661)] && (clearTimeout(this[t(2661)]), this.heartbeatTimeoutTimer = void 0)); + return; + } + x.channel === "sdppp" && (this.onmessage && t(1895) in x ? this.onmessage(x[t(1895)]) : t(1895) in x && this[t(1078)][t(2380)](x.payload)); + } + } + async [s(1480)]() { + for (var x = s; this[x(1078)][x(2021)] > 0; ) { + const t = this.messageQueue[x(761)](); + t && this[x(2082)] && this[x(2082)](t); + } + this[x(2378)](); + } + [s(2378)]() { + var x = s; + this[x(601)] = setInterval(() => { + var t = x; + const a = Date[t(2600)](); + this[t(1069)]({ channel: t(2633), posterIdentifier: this[t(1186)], type: t(1592), timestamp: a }), this.heartbeatTimeoutTimer = setTimeout(() => { + var e = t; + const r = new Oc(this[e(1186)], this[e(715)]); + this[e(1865)] && this.onerror(r); + }, this.heartbeatTimeout); + }, this[x(2552)]); + } + async send(x, t) { + var a = s; + this[a(1069)]({ channel: "sdppp", posterIdentifier: this[a(1186)], payload: x }); + } + async [s(2114)]() { + var x = s; + this.heartbeatTimer && (clearInterval(this[x(601)]), this.heartbeatTimer = void 0), this.heartbeatTimeoutTimer && (clearTimeout(this[x(2661)]), this.heartbeatTimeoutTimer = void 0), lx[x(2434)](this[x(1186)]), this.removeMessageEventListener(this.externalListenMessageCallback); + } +} +const Dc = qx[s(1369)](s(2005)); +async function vn() { + var i = s; + if (!window[i(2110)]) return; + const x = new Ac({ posterIdentifier: i(2159), messagePoster: (e) => { + var r = i; + window[r(2110)].postMessage(e, "*"); + }, addMessageEventListener: (e) => { + var r = i; + const n = (o) => { + e(o.data); + }; + return window.addEventListener(r(2089), n), n; + }, removeMessageEventListener: (e) => { + var r = i; + window[r(1293)]("message", e); + } }); + x[i(1865)] = (e) => { + var r = i; + Dc(r(2030), e); + }; + const t = new Tc({ name: i(2159), version: i(1557) }, {}), a = new yi(t); + return await a[i(1649)](x), window[i(2110)][i(524)]({ channel: i(359), meshName: i(978), action: i(1649) }, "*"), await C0[i(1649)](i(780), a); +} +const jc = Object[s(568)](Object[s(1907)]({ __proto__: null, connectUXP: vn, mcpMesh: C0 }, Symbol[s(2258)], { value: s(1959) })); +Oe[s(675)](s(2263), (i) => { + var x = s; + const t = q0.workflowManager || q0[x(839)].workflow, a = t[x(1693)]; + if (i.detail.id !== a[x(1708)].id) return; + const e = C0[x(917)][x(642)]()[x(1698)], r = Qt(q0[x(2506)], a); + yn(r, e) && C0[x(917)][x(892)]({ widgetableStructure: r }), C0[x(917)][x(892)]({ widgetableValues: Fx(q0[x(2506)]) }); +}), Oe[s(675)](s(557), () => { + var i = s; + C0[i(917)][i(892)]({ widgetableValues: Fx(q0[i(2506)]) }); }); -let Wa = 0, Ba = !0, Ka = ""; -function gs() { - const i = n; - requestAnimationFrame(gs); - const e = R0.workflowManager || R0[i(1691)].workflow, t = e.activeWorkflow, a = (t == null ? void 0 : t.id) || 0, x = (t == null ? void 0 : t[i(1728)]) || "", r = (t == null ? void 0 : t[i(1698)]) || !0; - if (a === Wa && x === Ka && r === Ba) return; - Wa = a, Ka = x, Ba = r; - const s = Gt(R0[i(2751)], t), o = qe(R0[i(2751)]); - C0[i(915)][i(1826)]({ widgetableStructure: s, widgetableValues: o }), setTimeout(() => { - const c = i; - if (t !== e[c(2186)]) return; - const d = Gt(R0[c(2751)], t), u = qe(R0.graph); - vs(d, s) && C0[c(915)].setState({ widgetableStructure: d }), C0[c(915)][c(1826)]({ widgetableValues: u }); +let Ga = 0, Qa = !0, Xa = ""; +function gn() { + var i = s; + requestAnimationFrame(gn); + const x = q0[i(1079)] || q0[i(839)][i(2334)], t = x[i(1693)], a = (t == null ? void 0 : t.id) || 0, e = (t == null ? void 0 : t[i(1796)]) || "", r = (t == null ? void 0 : t[i(769)]) || !0; + if (a === Ga && e === Xa && r === Qa) return; + Ga = a, Xa = e, Qa = r; + const n = Qt(q0[i(2506)], t), o = Fx(q0[i(2506)]); + C0[i(917)][i(892)]({ widgetableStructure: n, widgetableValues: o }), setTimeout(() => { + var c = i; + if (t !== x[c(1693)]) return; + const u = Qt(q0.graph, t), d = Fx(q0[c(2506)]); + yn(u, n) && C0[c(917)][c(892)]({ widgetableStructure: u }), C0[c(917)][c(892)]({ widgetableValues: d }); }, 800); } -requestAnimationFrame(gs); -function vs(i, e) { - const t = n; - return i[t(976)][t(1200)] !== e[t(976)].length || JSON[t(2301)](i.nodeIndexes) !== JSON[t(2301)](e[t(976)]) || JSON.stringify(i.nodes) !== JSON[t(2301)](e[t(892)]); +requestAnimationFrame(gn); +function K(i, x) { + var t = Ix(); + return K = function(a, e) { + a = a - 281; + var r = t[a]; + return r; + }, K(i, x); } -let Ja = !1; -async function Dc() { - const i = n; - if (Ja) return Promise[i(1987)](); - Ax[i(2499)] && C0[i(915)][i(1826)]({ comfyUserToken: Ax[i(2499)] }), Ja = !0; +function yn(i, x) { + var t = s; + return i[t(603)][t(2021)] !== x[t(603)].length || JSON[t(990)](i[t(603)]) !== JSON[t(990)](x[t(603)]) || JSON[t(990)](i[t(719)]) !== JSON[t(990)](x[t(719)]); } -Me[n(2453)]("comfy-entry"); -async function jc(i, e, t) { - const a = n; - e[a(2626)]("progress", ({ detail: s }) => { - const o = a; - if (!s) return; - let c = 0, d = 0; - !isNaN(s[o(2391)] / s[o(599)]) && (c = Math[o(539)](s.value / s.max * 100)); - const u = s[o(1800)], f = graph[o(892)][o(714)]((l) => l.id == u); - if (f && f[o(1037)]) { - const l = 100 / graph[o(892)][o(1200)]; - d = Math[o(539)](f[o(1037)] * l) + (c ? c / 100 * l : 0); +let Ya = !1; +async function Mc() { + var i = s; + if (Ya) return Promise[i(1890)](); + Oe.user && C0[i(917)][i(892)]({ comfyUserToken: Oe[i(868)] }), Ya = !0; +} +qx.extend(s(885)); +async function Lc(i, x, t) { + var a = s; + x[a(675)]("progress", ({ detail: n }) => { + var o = a; + if (!n) return; + let c = 0, u = 0; + !isNaN(n[o(2038)] / n[o(2537)]) && (c = Math[o(440)](n[o(2038)] / n[o(2537)] * 100)); + const d = n.node, f = graph[o(719)][o(1666)]((l) => l.id == d); + if (f && f[o(2449)]) { + const l = 100 / graph[o(719)][o(2021)]; + u = Math[o(440)](f[o(2449)] * l) + (c ? c / 100 * l : 0); } - C0[o(915)][o(1826)]({ progress: c, graphProgress: d }); - }), e[a(2626)](a(1713), (s) => { + C0[o(917)][o(892)]({ progress: c, graphProgress: u }); + }), x[a(675)](a(2296), (n) => { var c; - const o = a; - (c = s[o(1172)]) != null && c[o(687)] && C0[o(915)][o(1826)]({ queueSize: s.detail[o(687)][o(2332)] }); - }), e[a(2626)](a(1711), ({ detail: s }) => { - const o = a; - if (C0[o(915)][o(1826)]({ executingNodeTitle: "", lastError: s.exception_message }), s[o(766)]) { - const c = i.graph[o(892)][o(714)]((d) => d.id == s.node_id); - C0[o(915)][o(1826)]({ widgetableErrors: { [s[o(766)]]: "[" + ((c == null ? void 0 : c[o(1972)]) || s[o(766)]) + "]" + s[o(1305)] } }); + var o = a; + (c = n[o(1031)]) != null && c[o(804)] && C0[o(917)].setState({ queueSize: n[o(1031)][o(804)][o(1044)] }); + }), x[a(675)](a(1751), ({ detail: n }) => { + var o = a; + if (C0.store[o(892)]({ executingNodeTitle: "", executingNodeID: "", lastError: n.exception_message }), n[o(2091)]) { + const c = i[o(2506)][o(719)][o(1666)]((u) => u.id == n.node_id); + C0[o(917)][o(892)]({ widgetableErrors: { [n[o(2091)]]: "[" + ((c == null ? void 0 : c.title) || n.node_id) + "]" + n[o(1601)] } }); } - }), e.addEventListener(a(1690), (s) => { - const o = a, c = s[o(1172)], d = graph.nodes.find((u) => u.id == c); - if (d) { - const u = 100 / graph[o(892)][o(1200)]; - C0.store[o(1826)]({ executingNodeTitle: d[o(1972)], graphProgress: Math.round(d[o(1037)] * u) }); + }), x[a(675)]("executing", (n) => { + var o = a; + const c = n[o(1031)], u = graph[o(719)].find((d) => d.id == c); + if (u) { + const d = 100 / graph[o(719)][o(2021)]; + C0.store[o(892)]({ executingNodeTitle: u.title, executingNodeID: u.id, graphProgress: Math[o(440)](u[o(2449)] * d) }); } - }), e[a(2626)](a(1341), () => { - const s = a; - C0[s(915)][s(1826)]({ progress: 0, executingNodeTitle: "" }); - }), e.addEventListener("execution_start", ({ detail: s }) => { - const o = a; - C0[o(915)][o(1826)]({ lastError: "", widgetableErrors: {}, progress: 0, executingNodeTitle: "", lastRunTime: Date.now() }); + }), x[a(675)](a(2499), () => { + C0.store.setState({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); + }), x[a(675)]("execution_start", ({ detail: n }) => { + var o = a; + C0[o(917)][o(892)]({ lastError: "", widgetableErrors: {}, progress: 0, executingNodeTitle: "", executingNodeID: "", lastRunTime: Date.now() }); }); - const x = /* @__PURE__ */ new Map(); - e.addEventListener(a(1922), (s) => { - const o = a; - C0[o(915)][o(1826)]({ progress: 0, executingNodeTitle: "" }); - const c = (x[o(1261)](s[o(1172)][o(1731)]) || [])[o(2404)]((d) => ({ url: d, thumbnail: d })); - Nc(s[o(1172)][o(1731)], c), x[o(2653)](s[o(1172)][o(1731)]); - }), e[a(2626)](a(899), (s) => { - const o = a, c = x[o(1261)](s.detail[o(1731)]) || []; - s[o(1172)][o(2528)] && Array.isArray(s[o(1172)][o(2528)][o(2714)]) && s[o(1172)][o(2528)][o(2714)][o(1200)] > 0 && c.push(...s[o(1172)][o(2528)][o(2714)][o(893)]((d) => d[o(2426)] == "output")[o(2404)]((d) => { - const u = o; - return location[u(1776)] + location.pathname + u(2616) + d[u(2426)] + "&filename=" + encodeURIComponent(d[u(1092)]) + (d.subfolder ? u(1811) + encodeURIComponent(d[u(2269)]) : ""); - })), s[o(1172)][o(2528)] && Array[o(2344)](s[o(1172)][o(2528)].sdppp_assets) && s[o(1172)].output[o(2088)][o(1200)] > 0 && c[o(818)](...s[o(1172)][o(2528)].sdppp_assets[o(2404)]((d) => { - const u = o; - return location[u(1776)] + location.pathname + u(1011) + encodeURIComponent(d); - })), x[o(510)](s[o(1172)][o(1731)], c); + const e = /* @__PURE__ */ new Map(); + x[a(675)](a(323), (n) => { + var o = a; + C0.store[o(892)]({ progress: 0, executingNodeTitle: "", executingNodeID: "" }); + const c = (e[o(2229)](n.detail[o(583)]) || [])[o(632)]((u) => ({ url: u, thumbnail: u })); + qo(n.detail.prompt_id, c), e.delete(n[o(1031)].prompt_id); + }), x.addEventListener(a(557), (n) => { + var o = a; + const c = e.get(n.detail[o(583)]) || []; + n[o(1031)][o(464)] && Array[o(1435)](n[o(1031)][o(464)][o(648)]) && n.detail[o(464)][o(648)][o(2021)] > 0 && c.push(...n[o(1031)].output[o(648)][o(2397)]((u) => u.type == o(464))[o(632)]((u) => { + var d = o; + return location[d(1915)] + location.pathname + d(2349) + u[d(338)] + "&filename=" + encodeURIComponent(u[d(1208)]) + (u[d(420)] ? "&subfolder=" + encodeURIComponent(u.subfolder) : ""); + })), n.detail.output && Array[o(1435)](n[o(1031)].output.sdppp_assets) && n[o(1031)][o(464)][o(2163)][o(2021)] > 0 && c[o(2380)](...n.detail[o(464)][o(2163)][o(632)]((u) => { + var d = o; + return location[d(1915)] + location[d(1463)] + "sd-ppp-static/sdppp_images/" + encodeURIComponent(u); + })), e.set(n[o(1031)][o(583)], c); }); let r = null; - e[a(2626)](a(1985), (s) => { + x[a(675)](a(436), (n) => { r = setTimeout(() => { - const o = B; - C0[o(915)][o(1826)]({ comfyWSState: o(1985) }); + var o = K; + C0.store[o(892)]({ comfyWSState: "reconnecting" }); }, 1e3); - }), e[a(2626)](a(1300), (s) => { - const o = a; - C0[o(915)][o(1826)]({ comfyWSState: o(655) }), clearTimeout(r); + }), x.addEventListener(a(1419), (n) => { + var o = a; + C0[o(917)][o(892)]({ comfyWSState: o(1716) }), clearTimeout(r); }); } -let At = []; +let jt = []; (async function() { - var e, t, a, x, r, s; - const i = n; - if (typeof gradioApp == i(2634)) { + var x, t, a, e, r, n; + var i = s; + if (typeof gradioApp == i(1887)) { try { - const o = (t = (e = window[i(608)]) == null ? void 0 : e[i(1517)]) == null ? void 0 : t[i(1517)], c = (x = (a = window[i(608)]) == null ? void 0 : a.ui) == null ? void 0 : x[i(1554)], d = (s = (r = window[i(608)]) == null ? void 0 : r[i(1697)]) == null ? void 0 : s[i(1697)]; - if (!o || !d || !c) throw new Error(i(2668)); - await Dc(), await ms(), await jc(o, d, c), import("./sdppp-custom.js")[i(1413)]((u) => { - u.default(xe, 2); + const o = (t = (x = window[i(1975)]) == null ? void 0 : x.app) == null ? void 0 : t[i(939)], c = (e = (a = window[i(1975)]) == null ? void 0 : a.ui) == null ? void 0 : e[i(2278)], u = (n = (r = window[i(1975)]) == null ? void 0 : r[i(1634)]) == null ? void 0 : n[i(1634)]; + if (!o || !u || !c) throw new Error(i(891)); + await Mc(), await vn(), await Lc(o, u, c), import(i(1571))[i(432)]((d) => { + var f = i; + d[f(2641)](_e, 2); }); } catch (o) { - At.push(o.stack || o[i(2353)] || o); + jt[i(2380)](o[i(2108)] || o[i(2089)] || o); } - await new Promise((o) => setTimeout(o, 2e3)), At[i(1200)] && console[i(2389)](At[0]); + await new Promise((o) => setTimeout(o, 2e3)), jt[i(2021)] && console[i(503)](jt[0]); } })(); diff --git a/package.json b/package.json index df2b300..e9893bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sdppp", - "version": "1.9.4", + "version": "1.9.10", "type": "module", "scripts": { "watch": "nodemon -w typescripts -e mjs,js,jsx,mts,ts,tsx,json,css,html -x node typescripts/src/build/index.build.ts", diff --git a/pyproject.toml b/pyproject.toml index 7c12d99..5cbd9aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "sd-ppp" description = "getting/sending picture from/to Photoshop with a simple connection. Make Photoshop become the workspace of your ComfyUI." -version = "1.9.4" +version = "1.9.10" license = { file = "LICENSE" } [project.urls] diff --git a/static/sd-ppp2_PS.ccx b/static/sd-ppp2_PS.ccx index 14c4378..b96f6ed 100644 Binary files a/static/sd-ppp2_PS.ccx and b/static/sd-ppp2_PS.ccx differ diff --git a/static/sd-ppp2_PS.zip b/static/sd-ppp2_PS.zip index 14c4378..b96f6ed 100644 Binary files a/static/sd-ppp2_PS.zip and b/static/sd-ppp2_PS.zip differ diff --git a/static/sd-ppp_PS.ccx b/static/sd-ppp_PS.ccx index 2410b7a..3894292 100644 Binary files a/static/sd-ppp_PS.ccx and b/static/sd-ppp_PS.ccx differ